Hello all,
kern :info : [ 0.593597] pci 0000:01:00.0: BAR 4 [io 0x1000-0x101f]: assigned kern :info : [ 0.593629] pci 0000:01:00.0: BAR 0 [io 0x1020-0x1027]: assigned kern :info : [ 0.593660] pci 0000:01:00.0: BAR 2 [io 0x1028-0x102f]: assigned kern :info : [ 0.593692] pci 0000:01:00.0: BAR 1 [io 0x1030-0x1033]: assigned kern :info : [ 0.593722] pci 0000:01:00.0: BAR 3 [io 0x1034-0x1037]: assigned kern :info : [ 0.593753] pci 0000:00:00.0: PCI bridge to [bus 01-ff] kern :info : [ 0.593767] pci 0000:00:00.0: bridge window [io 0x1000-0x1fff] kern :info : [ 0.593781] pci 0000:00:00.0: bridge window [mem 0x01100000-0x011fffff] kern :info : [ 0.593795] pci 0000:00:00.0: bridge window [mem 0x01200000-0x012fffff pref] kern :warn : [ 0.593856] sysfs: cannot create duplicate filename '/devices/platform/soc/1ffc000.pcie/pci0000:00/0000:00:00.0/resource0' kern :warn : [ 0.593875] CPU: 1 PID: 28 Comm: kworker/u5:1 Not tainted 6.6.141-rc1-7.7.0-devel #1 kern :warn : [ 0.593891] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) kern :warn : [ 0.593904] Workqueue: events_unbound async_run_entry_fn kern :warn : [ 0.593959] unwind_backtrace from show_stack+0x10/0x14 kern :warn : [ 0.594004] show_stack from dump_stack_lvl+0x40/0x4c kern :warn : [ 0.594040] dump_stack_lvl from sysfs_warn_dup+0x58/0x64 kern :warn : [ 0.594080] sysfs_warn_dup from sysfs_add_bin_file_mode_ns+0xbc/0xcc kern :warn : [ 0.594112] sysfs_add_bin_file_mode_ns from sysfs_create_bin_file+0xac/0xb4 kern :warn : [ 0.594144] sysfs_create_bin_file from pci_create_resource_files+0x84/0x13c kern :warn : [ 0.594181] pci_create_resource_files from pci_bus_add_device+0x24/0x94 kern :warn : [ 0.594220] pci_bus_add_device from pci_bus_add_devices+0x2c/0x70 kern :warn : [ 0.594250] pci_bus_add_devices from pci_host_probe+0x40/0x90 kern :warn : [ 0.594276] pci_host_probe from dw_pcie_host_init+0x3e4/0x614 kern :warn : [ 0.594309] dw_pcie_host_init from imx6_pcie_probe+0x414/0x6ec kern :warn : [ 0.594340] imx6_pcie_probe from platform_probe+0x5c/0xb0 kern :warn : [ 0.594375] platform_probe from really_probe+0xd0/0x3c8 kern :warn : [ 0.594415] really_probe from __driver_probe_device+0x98/0x20c kern :warn : [ 0.594448] __driver_probe_device from driver_probe_device+0x30/0xc0 kern :warn : [ 0.594482] driver_probe_device from __driver_attach_async_helper+0x50/0xd8 kern :warn : [ 0.594515] __driver_attach_async_helper from async_run_entry_fn+0x30/0x144 kern :warn : [ 0.594548] async_run_entry_fn from process_one_work+0x144/0x2cc kern :warn : [ 0.594584] process_one_work from worker_thread+0x18c/0x3b8 kern :warn : [ 0.594611] worker_thread from kthread+0x110/0x12c kern :warn : [ 0.594647] kthread from ret_from_fork+0x14/0x28 kern :warn : [ 0.594670] Exception stack(0xf08edfb0 to 0xf08edff8) kern :warn : [ 0.594683] dfa0: 00000000 00000000 00000000 00000000 kern :warn : [ 0.594697] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 kern :warn : [ 0.594709] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 kern :info : [ 0.594873] mmc0: SDHCI controller on 2198000.mmc [2198000.mmc] using ADMA kern :info : [ 0.594997] mmc1: SDHCI controller on 2190000.mmc [2190000.mmc] using ADMA kern :info : [ 0.595838] pcieport 0000:00:00.0: PME: Signaling with IRQ 291 kern :info : [ 0.596396] pcieport 0000:00:00.0: AER: enabled with IRQ 291 kern :warn : [ 0.596583] sysfs: cannot create duplicate filename '/devices/platform/soc/1ffc000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/resource0' kern :warn : [ 0.596598] CPU: 1 PID: 28 Comm: kworker/u5:1 Not tainted 6.6.141-rc1-7.7.0-devel #1 kern :warn : [ 0.596614] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) kern :warn : [ 0.596626] Workqueue: events_unbound async_run_entry_fn kern :warn : [ 0.596659] unwind_backtrace from show_stack+0x10/0x14 kern :warn : [ 0.596702] show_stack from dump_stack_lvl+0x40/0x4c kern :warn : [ 0.596738] dump_stack_lvl from sysfs_warn_dup+0x58/0x64 kern :warn : [ 0.596772] sysfs_warn_dup from sysfs_add_bin_file_mode_ns+0xbc/0xcc kern :warn : [ 0.596804] sysfs_add_bin_file_mode_ns from sysfs_create_bin_file+0xac/0xb4 kern :warn : [ 0.596836] sysfs_create_bin_file from pci_create_resource_files+0x84/0x13c kern :warn : [ 0.596872] pci_create_resource_files from pci_bus_add_device+0x24/0x94 kern :warn : [ 0.596907] pci_bus_add_device from pci_bus_add_devices+0x2c/0x70 kern :warn : [ 0.596938] pci_bus_add_devices from pci_bus_add_devices+0x60/0x70 kern :warn : [ 0.596968] pci_bus_add_devices from pci_host_probe+0x40/0x90 kern :warn : [ 0.596994] pci_host_probe from dw_pcie_host_init+0x3e4/0x614 kern :warn : [ 0.597022] dw_pcie_host_init from imx6_pcie_probe+0x414/0x6ec kern :warn : [ 0.597048] imx6_pcie_probe from platform_probe+0x5c/0xb0 kern :warn : [ 0.597074] platform_probe from really_probe+0xd0/0x3c8 kern :warn : [ 0.597105] really_probe from __driver_probe_device+0x98/0x20c kern :warn : [ 0.597138] __driver_probe_device from driver_probe_device+0x30/0xc0 kern :warn : [ 0.597170] driver_probe_device from __driver_attach_async_helper+0x50/0xd8 kern :warn : [ 0.597202] __driver_attach_async_helper from async_run_entry_fn+0x30/0x144 kern :warn : [ 0.597232] async_run_entry_fn from process_one_work+0x144/0x2cc kern :warn : [ 0.597261] process_one_work from worker_thread+0x18c/0x3b8 kern :warn : [ 0.597288] worker_thread from kthread+0x110/0x12c kern :warn : [ 0.597315] kthread from ret_from_fork+0x14/0x28 kern :warn : [ 0.597335] Exception stack(0xf08edfb0 to 0xf08edff8) kern :warn : [ 0.597350] dfa0: 00000000 00000000 00000000 00000000 kern :warn : [ 0.597364] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 kern :warn : [ 0.597376] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 kern :info : [ 0.631336] mmc1: new high speed SDXC card at address 0001 kern :info : [ 0.632908] mmcblk1: mmc1:0001 SD64G 58.2 GiB kern :info : [ 0.642235] fec 2188000.ethernet eth0: registered PHC device 0 kern :info : [ 0.643162] imx_thermal 20c8000.anatop:tempmon: Industrial CPU temperature grade - max:105C critical:105C passive:95C
This warning happens on our tests for Apalis iMX6, and seems to come from the imx6_pcie_probe function in the pci-imx6.c driver. We found some instances of this happening on as early as 6.6.129. This went unnoticed until now, we're not sure when this started to happen.
Do you know what could be causing the duplicate file here?