Linux 3.10 Driver crash

Hi ,

I am seeing some Linux driver crash , which i have no idea about it. Can anyone help in finding the root cause of it. Please find the driver cash info as below.

] ------------[ cut here ]------------
[   22.116854] WARNING: at /home/saiprasad/L4T_R21.1_v5/kernel/fs/sysfs/dir.c:530 sysfs_add_one+0x8c/0xac()
[   22.116855] sysfs: cannot create duplicate filename '/devices/platform/regulators.5/d.regulator/regulator/regulator.32/tegradc.0-avdd_lcd'
[   22.116864] Modules linked in: dm_crypt dm_mod sd8897 sd8897mlan cfg80211 rfkill nvhost_vi
[   22.116868] CPU: 0 PID: 1423 Comm: Xorg Tainted: G        W    3.10.40-v2 #26
[   22.116878] [<c00167dc>] (unwind_backtrace+0x0/0x140) from [<c0012f48>] (show_stack+0x18/0x1c)
[   22.116884] [<c0012f48>] (show_stack+0x18/0x1c) from [<c0062dc4>] (warn_slowpath_common+0x54/0x70)
[   22.116890] [<c0062dc4>] (warn_slowpath_common+0x54/0x70) from [<c0062e8c>] (warn_slowpath_fmt+0x38/0x48)
[   22.116895] [<c0062e8c>] (warn_slowpath_fmt+0x38/0x48) from [<c01aa32c>] (sysfs_add_one+0x8c/0xac)
[   22.116900] [<c01aa32c>] (sysfs_add_one+0x8c/0xac) from [<c01aaf34>] (sysfs_do_create_link_sd+0xb8/0x200)
[   22.116907] [<c01aaf34>] (sysfs_do_create_link_sd+0xb8/0x200) from [<c03848fc>] (create_regulator+0xb4/0x228)
[   22.116913] [<c03848fc>] (create_regulator+0xb4/0x228) from [<c0384ba8>] (_regulator_get+0x138/0x1b8)
[   22.116918] [<c0384ba8>] (_regulator_get+0x138/0x1b8) from [<c0054f34>] (dalmore_dsi_regulator_get+0x30/0x104)
[   22.116923] [<c0054f34>] (dalmore_dsi_regulator_get+0x30/0x104) from [<c0055018>] (dsi_p_wuxga_10_1_enable+0x10/0x214)
[   22.116927] [<c0055018>] (dsi_p_wuxga_10_1_enable+0x10/0x214) from [<c0336638>] (_tegra_dc_controller_enable+0x58/0x1054)
[   22.116932] [<c0336638>] (_tegra_dc_controller_enable+0x58/0x1054) from [<c0337698>] (_tegra_dc_enable+0x64/0xa0)
[   22.116936] [<c0337698>] (_tegra_dc_enable+0x64/0xa0) from [<c03379ac>] (tegra_dc_enable+0xe4/0x104)
[   22.116941] [<c03379ac>] (tegra_dc_enable+0xe4/0x104) from [<c036f634>] (tegra_fb_blank+0xcc/0x18c)
[   22.116947] [<c036f634>] (tegra_fb_blank+0xcc/0x18c) from [<c02f4f18>] (fb_blank+0x5c/0xa0)
[   22.116952] [<c02f4f18>] (fb_blank+0x5c/0xa0) from [<c02f5ca4>] (do_fb_ioctl+0x450/0x66c)
[   22.116957] [<c02f5ca4>] (do_fb_ioctl+0x450/0x66c) from [<c015b110>] (do_vfs_ioctl+0x80/0x2bc)
[   22.116961] [<c015b110>] (do_vfs_ioctl+0x80/0x2bc) from [<c015b3a4>] (SyS_ioctl+0x58/0x180)
[   22.116966] [<c015b3a4>] (SyS_ioctl+0x58/0x180) from [<c000ee80>] (ret_fast_syscall+0x0/0x30)
[   22.116987] ---[ end trace 14739398b0e7f09b ]---
[   22.116991] as3722-gpio4-supply: could not add device link tegradc.0 err -17
[   22.116998] as3722-gpio4-supply: Failed to create debugfs directory
[   22.117009] ------------[ cut here ]------------
[   22.117013] WARNING: at /home/saiprasad/L4T_R21.1_v5/kernel/fs/sysfs/dir.c:530 sysfs_add_one+0x8c/0xac()
[   22.117014] sysfs: cannot create duplicate filename '/devices/platform/regulators.5/a.regulator/regulator/regulator.29/tegradc.0-dvdd_lcd'
[   22.117020] Modules linked in: dm_crypt dm_mod sd8897 sd8897mlan cfg80211 rfkill nvhost_vi
[   22.117023] CPU: 0 PID: 1423 Comm: Xorg Tainted: G        W    3.10.40-orwl_v2 #26
[   22.117028] [<c00167dc>] (unwind_backtrace+0x0/0x140) from [<c0012f48>] (show_stack+0x18/0x1c)
[   22.117033] [<c0012f48>] (show_stack+0x18/0x1c) from [<c0062dc4>] (warn_slowpath_common+0x54/0x70)
[   22.117038] [<c0062dc4>] (warn_slowpath_common+0x54/0x70) from [<c0062e8c>] (warn_slowpath_fmt+0x38/0x48)
[   22.117042] [<c0062e8c>] (warn_slowpath_fmt+0x38/0x48) from [<c01aa32c>] (sysfs_add_one+0x8c/0xac)
[   22.117046] [<c01aa32c>] (sysfs_add_one+0x8c/0xac) from [<c01aaf34>] (sysfs_do_create_link_sd+0xb8/0x200)
[   22.117051] [<c01aaf34>] (sysfs_do_create_link_sd+0xb8/0x200) from [<c03848fc>] (create_regulator+0xb4/0x228)
[   22.117056] [<c03848fc>] (create_regulator+0xb4/0x228) from [<c0384ba8>] (_regulator_get+0x138/0x1b8)
[   22.117060] [<c0384ba8>] (_regulator_get+0x138/0x1b8) from [<c0054f4c>] (dalmore_dsi_regulator_get+0x48/0x104)
[   22.117064] [<c0054f4c>] (dalmore_dsi_regulator_get+0x48/0x104) from [<c0055018>] (dsi_p_wuxga_10_1_enable+0x10/0x214)
[   22.117068] [<c0055018>] (dsi_p_wuxga_10_1_enable+0x10/0x214) from [<c0336638>] (_tegra_dc_controller_enable+0x58/0x1054)
[   22.117072] [<c0336638>] (_tegra_dc_controller_enable+0x58/0x1054) from [<c0337698>] (_tegra_dc_enable+0x64/0xa0)
[   22.117076] [<c0337698>] (_tegra_dc_enable+0x64/0xa0) from [<c03379ac>] (tegra_dc_enable+0xe4/0x104)
[   22.117080] [<c03379ac>] (tegra_dc_enable+0xe4/0x104) from [<c036f634>] (tegra_fb_blank+0xcc/0x18c)
[   22.117084] [<c036f634>] (tegra_fb_blank+0xcc/0x18c) from [<c02f4f18>] (fb_blank+0x5c/0xa0)
[   22.117089] [<c02f4f18>] (fb_blank+0x5c/0xa0) from [<c02f5ca4>] (do_fb_ioctl+0x450/0x66c)
[   22.117093] [<c02f5ca4>] (do_fb_ioctl+0x450/0x66c) from [<c015b110>] (do_vfs_ioctl+0x80/0x2bc)
[   22.117096] [<c015b110>] (do_vfs_ioctl+0x80/0x2bc) from [<c015b3a4>] (SyS_ioctl+0x58/0x180)
[   22.117100] [<c015b3a4>] (SyS_ioctl+0x58/0x180) from [<c000ee80>] (ret_fast_syscall+0x0/0x30)
[   22.117101] ---[ end trace 14739398b0e7f09c ]---

What are you doing when you see that? Does it cause something not to work?

Based on the print it’s a warning as it’s trying to do something that already done (duplicate filename) so it may not be anything critical.

Hi kulve,

I observe these logs when the wifi modules are loaded . I am using Marvell WiFi card. I see that firmware is loaded but it is not getting initialised.

Those errors seem to relate to the kernel display driver (tegraDC) and not to any WiFi cards.

You may want to try the newest 21.3 release. Or the Grinch kernel as that enables many WiFi mini-PCIe cards. In addition to enabling drivers in the kernel it has modified DTB that enables rfkill by using the GPIO 191. You can toggle the GPIO also through sysfs on a running system.

Hi Kulve ,

Thanks for the quick response. I will try the 21.3 release and also Grinch kernel .

Also i think that those errors are related to WiFI cards since in the logs it displays
‘[ 22.116864] Modules linked in: dm_crypt dm_mod sd8897 sd8897mlan cfg80211 rfkill nvhost_vi’, where sd8897 and sd8897mlan are related to my WiFI card.

The “Modules linked in” is standard part of the trace. It just lists all kernel modules currently loaded in the kernel, whether or not they have anything to do with the trace.

Thanks for the information kulve.