imx6: sata fixes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Paolo Pisati | ||
Saucy |
Fix Released
|
Medium
|
Paolo Pisati |
Bug Description
SRU Justification:
Impact:
/dev/sda doesn't show up on imx6 board and while support for the sata controller was submitted upstream[1], we were missing a dts snippet that didn't make the 3.11 window (but entered as part of 3.12, thus i cherry-picked plus some mechanical
modification to make it apply).
Moreover, building this driver as a module triggers an error when loading:
[ 3.447345] sysfs: cannot create duplicate filename '/bus/platform/
[ 3.454799] Modules linked in: ahci_imx(F+) xor(F+) zlib_deflate(F) libcrc32c(F)
[ 3.462343] CPU: 0 PID: 193 Comm: modprobe Tainted: GF 3.11.0-13-generic #20~imx6sata
[ 3.471223] [<c001dd70>] (unwind_
[ 3.479916] [<c00184dc>] (show_stack+
[ 3.488040] [<c065c710>] (dump_stack+
[ 3.497066] [<c004e2fc>] (warn_slowpath_
[ 3.498634] 32regs : 709.200 MB/sec
[ 3.498640] xor: using function: arm4regs (1087.600 MB/sec)
[ 3.516510] [<c004e3b4>] (warn_slowpath_
[ 3.525557] [<c01a901c>] (sysfs_
[ 3.535207] [<c01a9c20>] (sysfs_
[ 3.545004] [<c03bb5a8>] (bus_add_
[ 3.553770] [<c03b98d8>] (device_
[ 3.562958] [<c03bdc3c>] (platform_
[ 3.573456] [<bf01234c>] (imx_ahci_
[ 3.583774] [<c03bd7a8>] (platform_
[ 3.593562] [<c03bc378>] (driver_
[ 3.603174] [<c03ba718>] (bus_for_
[ 3.612093] [<c03bc1dc>] (device_
[ 3.621018] [<c03bb6e4>] (bus_probe_
[ 3.629853] [<c03b992c>] (device_
[ 3.639031] [<c03bdc3c>] (platform_
[ 3.649509] [<bf01234c>] (imx_ahci_
[ 3.659810] [<c03bd7a8>] (platform_
[ 3.669588] [<c03bc378>] (driver_
[ 3.679106] [<c03bc648>] (__driver_
[ 3.688175] [<c03ba7b4>] (bus_for_
[ 3.697266] [<c03bb914>] (bus_add_
[ 3.706353] [<c03bcb44>] (driver_
[ 3.715532] [<c0008814>] (do_one_
[ 3.724617] [<c00a9844>] (load_module+
[ 3.733707] [<c00aa004>] (SyS_init_
[ 3.742781] ---[ end trace 17860721d4bad439 ]---
[ 3.748403] ahci-imx: probe of ahci failed with error -17
[ 3.763773] Request for unknown module key 'Magrathea: Glacier signing key: ec957d9a18384ea
[ 3.768979] platform ahci: failed to claim resource 0
[ 3.769006] ahci-imx: probe of ahci failed with error -16
as it appears it's the same driver that tries to create the same sysfile multiple times, failing:
root@ubuntu-
OF_NAME=sata
OF_FULLNAME=
OF_COMPATIBLE_
OF_COMPATIBLE_N=1
MODALIAS=
Statically compiling support for AHCI_IMX works workaround this problem (and all the other kernel supporting this board - indeed - compile this driver statically BTW), so until a proper fix is found, i propose to compile it in.
Fix:
apply the two patches below
Testcase:
compile a patched kernel and boot it
description: | updated |
tags: | added: patch |
Changed in linux (Ubuntu Saucy): | |
importance: | Undecided → Medium |
assignee: | nobody → Paolo Pisati (p-pisati) |
status: | Incomplete → Fix Committed |
tags: |
added: verification-done-saucy removed: verification-needed-saucy |
Changed in linux (Ubuntu): | |
status: | Fix Committed → Fix Released |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1240038
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.