arc: remove num-slots from arc platforms
PATCH 1/1 arc: remove num-slots from arc platforms
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
---
arch/arc/boot/dts/axs10x_mb.dtsi | 1 - arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 1 - 2 files changed, 2 deletions(-)
arch/arc/boot/dts/axs10x_mb.dtsi +0 -1
@@ -101,7 +101,6 @@ mmc at 0x15000 { compatible = "altr,socfpga-dw-mshc"; reg = < 0x15000 0x400 >; - num-slots = < 1 >; fifo-depth = < 16 >; card-detect-delay = < 200 >; clocks = <&apbclk>, <&mmcclk>;
arch/arc/boot/dts/vdk_axs10x_mb.dtsi +0 -1
@@ -104,7 +104,6 @@ mmc at 0x15000 { compatible = "snps,dw-mshc"; reg = <0x15000 0x400>; - num-slots = <1>; fifo-depth = <1024>; card-detect-delay = <200>; clocks = <&apbclk>, <&mmcclk>;
Signature · 1 line
1.9.1
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Shawn,
Quoted 2 lines · Shawn Lin
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
http://lists.infradead.org/pipermail/linux-snps-arc/2017-July/002667.html)
we do use 2 slots of DW MobileStorage controller (even though it's not yet mentioned in its .dts).
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)?
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Alexey,
Quoted 11 lines · Alexey Brodkin
Hi Shawn,
Quoted 2 lines · Shawn Lin
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
http://lists.infradead.org/pipermail/linux-snps-arc/2017-July/002667.html)
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.
Quoted 4 lines
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.
Best Regards,
Jaehoon Chung
Quoted 3 lines
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
Hi?Jaehoon,
Quoted 19 lines · Jaehoon Chung
Hi Alexey,
Quoted 8 lines · Alexey Brodkin
Hi Shawn,
Quoted 3 lines · Shawn Lin
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
Quoted 7 lines
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_IdFwT326 IOGk&e= )
we do use 2 slots of DW MobileStorage controller (even though it's not yet
mentioned in its .dts).
Quoted 1 line
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.
Quoted 5 lines
Quoted 3 lines
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?
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Alexey,
Quoted 22 lines · Alexey Brodkin
Hi Jaehoon,
Quoted 19 lines · Jaehoon Chung
Hi Alexey,
Quoted 15 lines · Alexey Brodkin
Hi Shawn,
Quoted 3 lines · Shawn Lin
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_IdFwT326 IOGk&e= )
we do use 2 slots of DW MobileStorage controller (even though it's not yet
mentioned in its .dts).
Quoted 4 lines
Quoted 1 line
I didn't see about multiple slot for dwmmc controller.
I was about to add a second SD-card slot to
hsdk.dtsonce we have a peripheral attached to it working.
Sorry, Have we discuss about this?
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
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.
Best Regards,
Jaehoon Chung
Quoted 3 lines
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Jaehoon,
Quoted 31 lines · Jaehoon Chung
Hi Alexey,
Quoted 28 lines · Alexey Brodkin
Hi Jaehoon,
Quoted 24 lines · Jaehoon Chung
Hi Alexey,
Quoted 19 lines · Alexey Brodkin
Hi Shawn,
Quoted 4 lines · Shawn Lin
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_6JkXFx7AXWqB0tg&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).
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I didn't see about multiple slot for dwmmc controller.
I was about to add a second SD-card slot to
hsdk.dtsonce we have a peripheral attached to it working.Sorry, Have we discuss about this?
I think it was never discussed unfortunately.
Quoted 18 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
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.
Quoted 5 lines
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
PATCH 1/1 arc: remove num-slots from arc platforms
Quoted 67 lines · Alexey Brodkin
Hi Jaehoon,
Quoted 31 lines · Jaehoon Chung
Hi Alexey,
Quoted 28 lines · Alexey Brodkin
Hi Jaehoon,
Quoted 24 lines · Jaehoon Chung
Hi Alexey,
Quoted 19 lines · Alexey Brodkin
Hi Shawn,
Quoted 4 lines · Shawn Lin
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_6JkXFx7AXWqB0tg&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).Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I didn't see about multiple slot for dwmmc controller.
I was about to add a second SD-card slot to
hsdk.dtsonce we have a peripheral attached to it working.Sorry, Have we discuss about this?
I think it was never discussed unfortunately.
Quoted 18 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
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.Quoted 5 lines
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.
Quoted 7 lines
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.
Right, that's why doesn't use the multiple slot.
Company hopes to make the product that costumer is satisfied. Performance is one of important things...
For saving about the cost that using more IP ...use the multiple slots via one IP? It doesn't make sense..but i don't know why your board is using the multiple slot.. Maybe there are some reasons..?
Quoted 6 lines
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?
I know...i didn't never test the multi-slot..did you check the slot->sdio_id? Rockchip is using the slot 8 as sdio peripheral.
As you already know, dwmmc needs to shift the bit according to slot.
Best Regards,
Jaehoon Chung
Quoted 7 lines
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
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Jaehoon,
Quoted 7 lines · Jaehoon Chung
On 07/05/
Right, that's why doesn't use the multiple slot.
Company hopes to make the product that costumer is satisfied. Performance is one of important things...
For saving about the cost that using more IP ...use the multiple slots via one IP? It doesn't make sense..but i don't know why your board is using the multiple slot.. Maybe there are some reasons..?
Indeed there is. As it was quite late decision so we thought why not to use this nice feature and serve yet another SDIO device for free with just addition of a couple of wires (compare it with another controller integration in a SoC).
Quoted 7 lines
Quoted 5 lines
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?
I know...i didn't never test the multi-slot..did you check the
slot->sdio_id?
Well I think to some extent it worked for me but for some reason attached peripheral was not answering to any command so there could be another problem not related to DW MMC controller. Again as I understood slot is selected simply by supplying a clock. I.e. data is put on the same lines for all attached SD-devices and who gets a clock from the controller becomes active.
We'll see if I get this peripheral working then probably I'll need to revisit that slot-related topic.
Quoted 1 line
Rockchip is using the slot 8 as sdio peripheral.
Still slot support is getting dropped? :)
Like Rockchip people don't care?
Quoted 1 line
As you already know, dwmmc needs to shift the bit according to slot.
Yeah, I saw that.
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Alexey,
Quoted 29 lines · Alexey Brodkin
Hi Jaehoon,
Quoted 7 lines · Jaehoon Chung
On 07/05/
Right, that's why doesn't use the multiple slot.
Company hopes to make the product that costumer is satisfied. Performance is one of important things...
For saving about the cost that using more IP ...use the multiple slots via one IP? It doesn't make sense..but i don't know why your board is using the multiple slot.. Maybe there are some reasons..?Indeed there is. As it was quite late decision so we thought why not to use this nice feature and serve yet another SDIO device for free with just addition of a couple of wires (compare it with another controller integration in a SoC).
Quoted 7 lines
Quoted 5 lines
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?
I know...i didn't never test the multi-slot..did you check the
slot->sdio_id?Well I think to some extent it worked for me but for some reason attached peripheral was not answering to any command so there could be another problem not related to DW MMC controller. Again as I understood slot is selected simply by supplying a clock. I.e. data is put on the same lines for all attached SD-devices and who gets a clock from the controller becomes active.
Quoted 7 lines
We'll see if I get this peripheral working then probably I'll need to revisit that slot-related topic.
Quoted 1 line
Rockchip is using the slot 8 as sdio peripheral.
Still slot support is getting dropped? :)
Like Rockchip people don't care?
As we hard-code the slot number for sdio peripheral and won't change anymore, so we actually don't object killing slot concept.
And we haven't come up with any use case for multi-slot for the past years for any rockchip platforms, but instead we have to carefully carry on the code to check the slot which makes the code hard to be improved.
Quoted 7 lines
Quoted 2 lines
As you already know, dwmmc needs to shift the bit according to slot.
Yeah, I saw that.
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
In reply to Shawn LinHi Shawn,
Quoted 6 lines · Shawn Lin
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
Cc Jaehoon Chung <jh80.chung at samsung.com>Signed-off-by Shawn Lin <shawn.lin at rock-chips.com>---
Probably it worth for Vineet to pull this patch to his ARC tree.
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
Quoted 11 lines · Alexey Brodkin
Hi Shawn,
Quoted 6 lines · Shawn Lin
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
Cc Jaehoon Chung <jh80.chung at samsung.com>Signed-off-by Shawn Lin <shawn.lin at rock-chips.com>---
Acked-by Alexey Brodkin <abrodkin at synopsys.com>
Best Regards,
Jaehoon Chung
Quoted 5 lines
Probably it worth for Vineet to pull this patch to his ARC tree.
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
In reply to Alexey BrodkinQuoted 6 lines · Alexey Brodkin
Hi Shawn,
Quoted 3 lines · Shawn Lin
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
Quoted 8 lines
Quoted 3 lines
Cc Jaehoon Chung <jh80.chung at samsung.com>Signed-off-by Shawn Lin <shawn.lin at rock-chips.com>---
Acked-by Alexey Brodkin <abrodkin at synopsys.com>Probably it worth for Vineet to pull this patch to his ARC tree.
-Alexey
I'd prefer it goes via the tree which changed the driver in first place !
BTW we do need this multi-slot support in driver for HSDK - NO ?
-Vineet
PATCH 1/1 arc: remove num-slots from arc platforms
Hi Vineet,
Quoted 12 lines · Vineet Gupta
Quoted 11 lines · Alexey Brodkin
Hi Shawn,
Quoted 7 lines · Shawn Lin
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
Cc Jaehoon Chung <jh80.chung at samsung.com>Signed-off-by Shawn Lin <shawn.lin at rock-chips.com>---
Quoted 7 lines
Quoted 5 lines
Acked-by Alexey Brodkin <abrodkin at synopsys.com>Probably it worth for Vineet to pull this patch to his ARC tree.
-Alexey
I'd prefer it goes via the tree which changed the driver in first place !
That's OK.
Quoted 1 line
BTW we do need this multi-slot support in driver for HSDK - NO ?
We do need this but:
1) We still cannot get that Wi-Fi module to work in SDIO mode on HSDK.
2) It is unclear if multi-slot support was ever tested at all as it turned ? ?out nobody ever used that for real.
So I'd better return to this topic once we have SDIO on the second slot working at least in bare-metal test app.
-Alexey
PATCH 1/1 arc: remove num-slots from arc platforms
In reply to Vineet GuptaHi Vineet,
Quoted 10 lines · Vineet Gupta
Quoted 9 lines · Alexey Brodkin
Hi Shawn,
Quoted 6 lines · Shawn Lin
dwmmc driver deprecated num-slots and plan to get rid of it finally. Just move a step to cleanup it from DT.
Cc Jaehoon Chung <jh80.chung at samsung.com>Signed-off-by Shawn Lin <shawn.lin at rock-chips.com>---
Quoted 7 lines
Quoted 5 lines
Acked-by Alexey Brodkin <abrodkin at synopsys.com>Probably it worth for Vineet to pull this patch to his ARC tree.
-Alexey
I'd prefer it goes via the tree which changed the driver in first place !
So does it mean that you are okay for mmc maintainer to pick this up with your and Alexey's ack?
Quoted 7 lines
BTW we do need this multi-slot support in driver for HSDK - NO ?
-Vineet
PATCH 1/1 arc: remove num-slots from arc platforms
Quoted 4 lines · Shawn Lin
Quoted 1 line
I'd prefer it goes via the tree which changed the driver in first place !
So does it mean that you are okay for mmc maintainer to pick this up with your and Alexey's ack?
Yes please.
Thx,
-Vineet