reloading etnaviv module causes kernel warning
When removing and reloading the etnaviv module, the following splat occurs:
sysfs: cannot create duplicate filename '/devices/platform/etnaviv'
CPU: 0 PID: 1471 Comm: modprobe Not tainted 4.17.0+ #1608 Hardware name: Marvell Dove (Cubox) Backtrace: [<c00157d4>] (dump_backtrace) from [<c0015b8c>] (show_stack+0x18/0x1c) r6:ef033e38 r5:ee07b340 r4:edb9d000 r3:00000000 [<c0015b74>] (show_stack) from [<c0620784>] (dump_stack+0x20/0x28) [<c0620764>] (dump_stack) from [<c01bcd24>] (sysfs_warn_dup+0x5c/0x70) [<c01bccc8>] (sysfs_warn_dup) from [<c01bce14>] (sysfs_create_dir_ns+0x90/0x98) r6:ffffffef r5:ef033e38 r4:ed984818 r3:ed984818 [<c01bcd84>] (sysfs_create_dir_ns) from [<c0625578>] (kobject_add_internal+0xb4/0x2d0) r6:ed98481c r5:ef03fd00 r4:ed984818 [<c06254c4>] (kobject_add_internal) from [<c06258d0>] (kobject_add+0x50/0x98) r8:00000001 r7:c08f6f08 r6:c08f6f10 r5:00000000 r4:ed984818 [<c0625884>] (kobject_add) from [<c037b164>] (device_add+0xc8/0x538) r3:00000003 r2:00000000 r6:ed984818 r5:00000000 r4:ed984810 [<c037b09c>] (device_add) from [<c037ff24>] (platform_device_add+0xb4/0x220) r10:ed197e60 r9:bf107748 r8:00000001 r7:ed984810 r6:ed984800 r5:00000000 r4:ed197d80 [<c037fe70>] (platform_device_add) from [<c0380874>] (platform_device_register_full+0xe8/0x110) r8:00000001 r7:00000000 r6:c0921620 r5:ed984800 r4:ed197d80 r3:00000000 [<c038078c>] (platform_device_register_full) from [<bf10e0e4>] (etnaviv_init+0xa4/0xd0 [etnaviv]) r5:00000000 r4:ef7b71ec [<bf10e040>] (etnaviv_init [etnaviv]) from [<c000b478>] (do_one_initcall+0x90/0x294) r5:bf10e040 r4:bf107700 [<c000b3e8>] (do_one_initcall) from [<c00ac83c>] (do_init_module+0x68/0x1d4) r8:00000001 r7:bf107700 r6:eea50300 r5:c0921b48 r4:bf107700 [<c00ac7d4>] (do_init_module) from [<c00ab524>] (load_module+0x189c/0x2018) r7:bf107700 r6:eeb78400 r5:c0921b48 r4:ed197f38 [<c00a9c88>] (load_module) from [<c00abe78>] (sys_finit_module+0x94/0xa0) r10:00020000 r9:ed196000 r8:004d784c r7:00000003 r6:00000000 r5:00000000 r4:7fffffff [<c00abde4>] (sys_finit_module) from [<c0009000>] (ret_fast_syscall+0x0/0x54) Exception stack(0xed197fa8 to 0xed197ff0)
7fa0: 004eb178 00000000 00000003 004d784c 00000000 004eccc0
7fc0: 004eb178 00000000 57daf400 0000017b 00040000 00000000 004ebea0 00000000
7fe0: be84e1f8 be84e1e8 004cf4bb b6ef76b2
r8:c0009228 r7:0000017b r6:57daf400 r5:00000000 r4:004eb178kobject_add_internal failed for etnaviv with -EEXIST, don't try to register things with the same name in the same directory.
Signature · 7 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Russell,
Quoted 2 lines · Russell King - ARM Linux
When removing and reloading the etnaviv module, the following splat occurs:
We are missing to call platform_device_unregister() in etnaviv_exit().
Calling platform_device_unregister() like in the patch from the link below seems to fix the problem:
http://code.bulix.org/6h4iz5-364009
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Fabio Estevam
Hi Russell,
Quoted 2 lines · Russell King - ARM Linux
When removing and reloading the etnaviv module, the following splat occurs:
Quoted 6 lines
We are missing to call
platform_device_unregister()inetnaviv_exit().Calling
platform_device_unregister()like in the patch from the link below seems to fix the problem:
I sent the patch, but missed to put you on Cc, Russell. Sorry.
https://lists.freedesktop.org/archives/dri-devel/2018-June/180990.html
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel