Skip to contentSkip to conversation

arm64: defconfig: Update UFSHCD for Hi3660 soc

PATCH Applied Valentin Schneider 4 participants 6 messages Apr 16, 2019 – Apr 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: defconfig: Update UFSHCD for Hi3660 soc

Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends
on

  (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD)

were left to being built as modules.

Commit 1f4fa50dd48f ("arm64: defconfig: Regenerate for v4.20") "fixed" that by reverting to 'CONFIG_SCSI_UFS_HISI=m'.

Thing is, if the rootfs is stored in the on-board flash (which is the "canonical" way of doing things), we either need these drivers to be built-in, or we need to fiddle with an initramfs to access that flash and eventually load the modules installed over there.

The former is the easiest, do that.

---
 arch/arm64/configs/defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/configs/defconfig +3 -3
index 2d9c39033c1a..32fb03503b0b 100644
@@ -222,10 +222,10 @@ CONFIG_BLK_DEV_SD=y
 CONFIG_SCSI_SAS_ATA=y
 CONFIG_SCSI_HISI_SAS=y
 CONFIG_SCSI_HISI_SAS_PCI=y
-CONFIG_SCSI_UFSHCD=m
-CONFIG_SCSI_UFSHCD_PLATFORM=m
+CONFIG_SCSI_UFSHCD=y
+CONFIG_SCSI_UFSHCD_PLATFORM=y
 CONFIG_SCSI_UFS_QCOM=m
-CONFIG_SCSI_UFS_HISI=m
+CONFIG_SCSI_UFS_HISI=y
 CONFIG_ATA=y
 CONFIG_SATA_AHCI=y
 CONFIG_SATA_AHCI_PLATFORM=y

--
2.20.1

Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Valentin Schneider

Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends
on

  (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD)

were left to being built as modules.

Commit 1f4fa50dd48f ("arm64: defconfig: Regenerate for v4.20") "fixed" that by reverting to 'CONFIG_SCSI_UFS_HISI=m'.

Quoted 8 lines

Thing is, if the rootfs is stored in the on-board flash (which is the "canonical" way of doing things), we either need these drivers to be built-in, or we need to fiddle with an initramfs to access that flash and eventually load the modules installed over there.

The former is the easiest, do that.

Looks good to me:

Quoted 25 lines
---
 arch/arm64/configs/defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/configs/defconfig +3 -4
index 2d9c39033c1a..32fb03503b0b 100644
@@ -222,10 +222,10 @@ CONFIG_BLK_DEV_SD=y
 CONFIG_SCSI_SAS_ATA=y
 CONFIG_SCSI_HISI_SAS=y
 CONFIG_SCSI_HISI_SAS_PCI=y
-CONFIG_SCSI_UFSHCD=m
-CONFIG_SCSI_UFSHCD_PLATFORM=m
+CONFIG_SCSI_UFSHCD=y
+CONFIG_SCSI_UFSHCD_PLATFORM=y
 CONFIG_SCSI_UFS_QCOM=m
-CONFIG_SCSI_UFS_HISI=m
+CONFIG_SCSI_UFS_HISI=y
 CONFIG_ATA=y
 CONFIG_SATA_AHCI=y
 CONFIG_SATA_AHCI_PLATFORM=y
--

2.20.1

#2 lore raw
In reply to Valentin Schneider
Quoted 10 lines · Valentin Schneider

Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends on

  (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD)

were left to being built as modules.

Commit 1f4fa50dd48f ("arm64: defconfig: Regenerate for v4.20") "fixed" that by reverting to 'CONFIG_SCSI_UFS_HISI=m'.

Quoted 6 lines

Thing is, if the rootfs is stored in the on-board flash (which is the "canonical" way of doing things), we either need these drivers to be built-in, or we need to fiddle with an initramfs to access that flash and eventually load the modules installed over there.

The former is the easiest, do that.

By that logic, wouldn't every UFS driver need to be built-in?

SCSI_UFS_QCOM
SCSI_UFS_MEDIATEK
SCSI_UFS_HISI

And generalizing, wouldn't every storage driver also need to be built-in? (SDHC, MMC, USB, MTD, etc)

(FWIW, I dislike Christmas-tree defconfigs.)

Regards.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
Quoted 19 lines · Marc Gonzalez
Quoted 10 lines · Valentin Schneider

Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends on

  (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD)

were left to being built as modules.

Commit 1f4fa50dd48f ("arm64: defconfig: Regenerate for v4.20") "fixed" that by reverting to 'CONFIG_SCSI_UFS_HISI=m'.

Quoted 6 lines

Thing is, if the rootfs is stored in the on-board flash (which is the "canonical" way of doing things), we either need these drivers to be built-in, or we need to fiddle with an initramfs to access that flash and eventually load the modules installed over there.

The former is the easiest, do that.

Quoted 9 lines

By that logic, wouldn't every UFS driver need to be built-in?

SCSI_UFS_QCOM
SCSI_UFS_MEDIATEK
SCSI_UFS_HISI

And generalizing, wouldn't every storage driver also need to be built-in? (SDHC, MMC, USB, MTD, etc)

Fair point. My reason for sending this out is that the Hikey960 is the (or at least one of few) board with a recent flagship SoC that runs mainline (USB support is being worked on the list, but that's about it).

So it's the most relevant board for us folks doing power/perf work and who'd like to run something less antiquated than 4.9.

I've carried this patch in a local HiKey960 branch for a while now, but IMO it'd be really nice to be able to compile & run the latest master without having to worry about extra configs/patches. The Arm Juno is great in that regard, but its hardware is showing its wrinkles.

True, this is more about convenience that a hard-requirement, but I think there's an argument to be made for that board.

Quoted 4 lines

(FWIW, I dislike Christmas-tree defconfigs.)

Regards.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw
In reply to Marc Gonzalez
Quoted 19 lines · Marc Gonzalez
Quoted 10 lines · Valentin Schneider

Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends on

  (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD)

were left to being built as modules.

Commit 1f4fa50dd48f ("arm64: defconfig: Regenerate for v4.20") "fixed" that by reverting to 'CONFIG_SCSI_UFS_HISI=m'.

Quoted 6 lines

Thing is, if the rootfs is stored in the on-board flash (which is the "canonical" way of doing things), we either need these drivers to be built-in, or we need to fiddle with an initramfs to access that flash and eventually load the modules installed over there.

The former is the easiest, do that.

Quoted 8 lines

By that logic, wouldn't every UFS driver need to be built-in?

SCSI_UFS_QCOM
SCSI_UFS_MEDIATEK
SCSI_UFS_HISI

And generalizing, wouldn't every storage driver also need to be built-in? (SDHC, MMC, USB, MTD, etc)

The general guidance is that storage drivers that known well-supported platforms need to mount root filesystem from are fine as built-in, but secondary storage should still be modules.

Quoted 1 line

(FWIW, I dislike Christmas-tree defconfigs.)

I don't know what you mean with this, but the above is just fine. You should feel free to use something else than just the defconfig for your system if you feel it is getting too large for your personal use case.

-Olof

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#5 lore raw
In reply to Valentin Schneider
Quoted 11 lines · Valentin Schneider

Commit 7ee7ef24d02d ("scsi: arm64: defconfig: enable configs for Hisilicon ufs") set 'CONFIG_SCSI_UFS_HISI=y', but the configs it depends
on

  (CONFIG_SCSI_HFSHCD_PLATFORM && CONFIG_SCSI_UFSHCD)

were left to being built as modules.

Commit 1f4fa50dd48f ("arm64: defconfig: Regenerate for v4.20") "fixed" that by reverting to 'CONFIG_SCSI_UFS_HISI=m'.

Quoted 8 lines

Thing is, if the rootfs is stored in the on-board flash (which is the "canonical" way of doing things), we either need these drivers to be built-in, or we need to fiddle with an initramfs to access that flash and eventually load the modules installed over there.

The former is the easiest, do that.

Applied, thanks!

-Olof