All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey.Brodkin@synopsys.com (Alexey Brodkin)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH] arc: remove num-slots from arc platforms
Date: Wed, 5 Jul 2017 10:14:58 +0000	[thread overview]
Message-ID: <1499249697.4224.31.camel@synopsys.com> (raw)
In-Reply-To: <5d73fd6c-0ca3-aced-fa2a-cbf9ee119cb9@samsung.com>

Hi Jaehoon,

On Wed, 2017-07-05@18:58 +0900, Jaehoon Chung wrote:
> Hi Alexey,
> 
> On 07/05/2017 06:23 PM, Alexey Brodkin wrote:
> > 
> > Hi Jaehoon,
> > 
> > On Wed, 2017-07-05@18:13 +0900, Jaehoon Chung wrote:
> > > 
> > > Hi Alexey,
> > > 
> > > On 07/05/2017 06:05 PM, Alexey Brodkin wrote:
> > > > 
> > > > 
> > > > Hi Shawn,
> > > > 
> > > > On Wed, 2017-07-05@15:10 +0800, Shawn Lin wrote:
> > > > > 
> > > > > 
> > > > > dwmmc driver deprecated num-slots and plan to get rid
> > > > > of it finally. Just move a step to cleanup it from DT.
> > > > 
> > > > Hm, that's interesting.
> > > > In our upcoming devboard (HSDK, see
> > > > https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.infradead.org_pipermail_linux-2Dsnps-2Darc_2017-2DJuly_002667.html&d=DwICaQ&c=DPL6_X
> > > > _6Jk
> > > > XFx7AXWqB0tg&r=lqdeeSSEes0GFDDl656eViXO7breS55ytWkhpk5R81I&m=b7bMsqUn3obLZnR09LeBC0q6AouAgBH_cIlb0VcM43U&s=yMZ4dGcco3uL5H1m51kiI8d2sF6MCA_IdFw
> > > > T326
> > > > IOGk&e= )
> > > > we do use 2 slots of DW MobileStorage controller (even though it's not yet
> > > > mentioned in its .dts).
> > > 
> > > I didn't see about multiple slot for dwmmc controller.
> > 
> > I was about to add a second SD-card slot to hsdk.dts
> > once we have a peripheral attached to it working.
> 
> Sorry, Have we discuss about this?

I think it was never discussed unfortunately.

> > > > So the question is if multi-slot support gets removed from dwmmc driver or
> > > > it's just a .dts option gets obsoleted. In latter case I'm wondering how to
> > > > enable a second slot in dwmmc driver (will it just auto-probe it etc)?
> > > 
> > > In dwmmc controller, already removed the multiple slot concept.
> > 
> > Too bad for us as the second slot is attached to SDIO peripheral we really need.
> > What was a reason to get rid of multi-slot support on DW MMC?
> 
> After merged dwmmc in mainline, we were keeping the slot concept.
> During 6 years, we didn't see the use-case about multi-slots..
> In all dts files, num-slots were used to "1" like "by-default".
> It was meaningless value.
> 
> when we kept the multiple slot concept, it's complex to handle the driver.
> e,g) if upstream some patch, it has to check "cur_slot" and "slot" ..because dwmmc controller was doing context switch for slot.
> 	Sometime slot was not assigned..occurred the panic or NULL pointer dereference error.
> 
> If there is no advantage for maintaining it, then i felt that the removing multiple slot is better than keeping.
> Then we can focus on one slot..and maintenance is more easier...
> And as i know, MMC subsystem doesn't consider the multiple slot.
> 
> That's why i have removed it.

Ok that's a good reason to do it.

I was really surprised to see people prefer to add a few more
instances of DW MMC controolers in their systems (I did see about 5 of them
on some boards) instead of using extra slots of the same one controller.
I guess that's because all slots reuse the same data lines and so performance
degradation is inevitable.

Anyways we still don't have that SDIO peripheral working as expected
and for now only 1 slot is fine. Though it might become a nightmare for me
if the need for the second slot really arises. But let's see how it goes.

BTW do you know if that multi-slot functionality was ever tested at all?
Now I have a feeling that our SDIO peripheral attached to the second slot of DW MMC
is not working because:
?a) Linux driver support for multi-slot is not functional
?b) Hardware itself is not working as expected as nobody ever tried that functionality.

-Alexey

  reply	other threads:[~2017-07-05 10:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05  7:10 [PATCH] arc: remove num-slots from arc platforms Shawn Lin
2017-07-05  9:05 ` Alexey Brodkin
2017-07-05  9:13   ` Jaehoon Chung
2017-07-05  9:23     ` Alexey Brodkin
2017-07-05  9:58       ` Jaehoon Chung
2017-07-05 10:14         ` Alexey Brodkin [this message]
2017-07-06  4:17           ` Jaehoon Chung
2017-07-06 11:33             ` Alexey Brodkin
2017-07-06 11:46               ` Shawn Lin
2017-07-07  8:13 ` Alexey Brodkin
2017-07-07  8:25   ` Jaehoon Chung
2017-07-07 22:35   ` Vineet Gupta
2017-07-07 22:41     ` Alexey Brodkin
2017-07-18  8:11     ` Shawn Lin
2017-07-18 17:50       ` Vineet Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499249697.4224.31.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.com \
    --cc=linux-snps-arc@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.