Skip to contentSkip to conversation

Add ahci_imx to the ARM specific disk drivers

PATCH In review Nicolas Chauvet 2 participants 3 messages May 14, 2014 – May 15, 2014 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Add ahci_imx to the ARM specific disk drivers

---
 modules.d/90kernel-modules/module-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/90kernel-modules/module-setup.sh +1 -1
index 2378663..6852b76 100755
@@ -52,7 +52,7 @@ installkernel() {
         if [[ "$(uname -p)" == arm* ]]; then
             # arm specific modules
             hostonly='' instmods sdhci_esdhc_imx mmci sdhci_tegra mvsdio omap omapdrm \
-                omap_hsmmc panel-tfp410 sdhci_dove ahci_platform pata_imx sata_mv \
+                omap_hsmmc panel-tfp410 sdhci_dove ahci_platform ahci_imx pata_imx sata_mv \
                 ehci-tegra mmc_block usb_storage
         fi
 
Signature · 1 line
1.8.3.1
#2 lore raw

RFC PATCH 2/2 Add tegra-drm/host1x case and ARM hostonly support

In reply to a message not in the archive

This is a wip version as plymouth still doesn't work for me

1/ On arm, aliases use a different path (soc)
2/ host1x has the matching device aliases
whereas tegra_drm has the crt_init symbol
3/ Others ARM drivers may behave similarly
4/ backlight and pwm_bl also need to be bundled.

I'm currenly testing with fedora kernel 3.14 or 3.15

---
 modules.d/50drm/module-setup.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
modules.d/50drm/module-setup.sh +6 -2
index e25fc9f..c3ca1e4 100755
@@ -51,14 +51,18 @@ installkernel() {
         return 0
     }
 
+    # Some modules don't have drm_crtc_init but modalias needed by hostonly detection
+    local _drm_needed=$(find_kernel_modules_by_path drivers/gpu/{host1x,drm/{i2c,panel})
+
     for _modname in $(find_kernel_modules_by_path drivers/gpu/drm \
-        | drm_module_filter) ; do
+        | drm_module_filter) $_drm_needed ; do
         # if the hardware is present, include module even if it is not currently loaded,
         # as we could e.g. be in the installer; nokmsboot boot parameter will disable
         # loading of the driver if needed
         if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \
-            | grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
+            | grep -qxf - /sys/bus/{pci/devices,soc/devices/soc?}/*/modalias 2>/dev/null; then
             hostonly='' instmods $_modname
+            hostonly='' [[ $_modname == host1x ]] && instmods tegra-drm
             continue
         fi
         instmods $_modname
Signature · 1 line
1.8.3.1
#4 lore raw

Re: [PATCH 2/2] [RFC] Add tegra-drm/host1x case and ARM hostonly support

In reply to a message not in the archive

Op 14 mei 2014, om 19:34 heeft Nicolas Chauvet <[email protected]> het volgende geschreven:

Quoted 18 lines

This is a wip version as plymouth still doesn't work for me

1/ On arm, aliases use a different path (soc)
2/ host1x has the matching device aliases
whereas tegra_drm has the crt_init symbol
3/ Others ARM drivers may behave similarly
4/ backlight and pwm_bl also need to be bundled.

I'm currenly testing with fedora kernel 3.14 or 3.15
---
modules.d/50drm/module-setup.sh | 8 ++++++--

1 file changed, 6 insertions(+), 2 deletions(-)
modules.d/50drm/module-setup.sh +0 -0
index e25fc9f..c3ca1e4 100755

modules.d/50drm/module-setup.sh installkernel() { · line 55

Quoted 5 lines
modules.d/50drm/module-setup.sh +2 -0
@@ -51,14 +51,18 @@ installkernel() {
        return 0
    }
 
+    # Some modules don't have drm_crtc_init but modalias needed by hostonly detection
+    local _drm_needed=$(find_kernel_modules_by_path drivers/gpu/{host1x,drm/{i2c,panel})

Unbalanced accolades.

Quoted 23 lines
modules.d/50drm/module-setup.sh +4 -2
+
    for _modname in $(find_kernel_modules_by_path drivers/gpu/drm \
-        | drm_module_filter) ; do
+        | drm_module_filter) $_drm_needed ; do
        # if the hardware is present, include module even if it is not currently loaded,
        # as we could e.g. be in the installer; nokmsboot boot parameter will disable
        # loading of the driver if needed
        if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \
-            | grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
+            | grep -qxf - /sys/bus/{pci/devices,soc/devices/soc?}/*/modalias 2>/dev/null; then
            hostonly='' instmods $_modname
+            hostonly='' [[ $_modname == host1x ]] && instmods tegra-drm
            continue
        fi
        instmods $_modname
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html