[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-04-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Michael Ellerman (mich...@ellerman.id.au) changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED
 CC||mich...@ellerman.id.au
 Resolution|OBSOLETE|CODE_FIX

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-02-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Erhard F. (erhar...@mailbox.org) changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #16 from Erhard F. (erhar...@mailbox.org) ---
Fix landed in 6.2 and 6.1 LTS meanwhile. Thanks!

Closing here.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #15 from Michal Suchánek (msucha...@suse.de) ---
You do have two outputs defined in the device tree:

/pci@f000/ATY,AlteracParent@10/ATY,Alterac_A@0
/pci@f000/ATY,AlteracParent@10/ATY,Alterac_B@1

If they correspond to a physical outputs is another question. After all if one
of the outputs exists only on some card models it would never detect a
connected screen on the cards on which the output does not physically exist and
everything will work just fine.

Here is a patch that aims to resolve the problem
https://lore.kernel.org/lkml/20230117165804.18036-1-msucha...@suse.de/

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #14 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303601
  --> https://bugzilla.kernel.org/attachment.cgi?id=303601=edit
kernel .config (6.2-rc3, PowerMac G4 DP)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Erhard F. (erhar...@mailbox.org) changed:

   What|Removed |Added

 Attachment #303509|0   |1
is obsolete||

--- Comment #13 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303600
  --> https://bugzilla.kernel.org/attachment.cgi?id=303600=edit
dmesg (6.2-rc3, PowerMac G4 DP)

(In reply to Michal Suchánek from comment #12)
> Thanks for the DT dumps.
> 
> So you really do have two outputs but the problem is likely different:
Two outputs? I got only a Radeon 9600 in the G4 and it does show up as a single
card in lspci (no secondary output). Xorg.log. only shows a single device.

 # lspci 
:00:0b.0 Host bridge: Apple Inc. UniNorth 2 AGP
:00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
RV350 [Radeon 9550/9600/X1050 Series]
0001:10:0b.0 Host bridge: Apple Inc. UniNorth 2 PCI
0001:10:12.0 USB controller: NEC Corporation OHCI USB Controller (rev 43)
0001:10:12.1 USB controller: NEC Corporation OHCI USB Controller (rev 43)
0001:10:12.2 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev
04)
0001:10:13.0 Mass storage controller: Silicon Image, Inc. SiI 3112
[SATALink/SATARaid] Serial ATA Controller (rev 02)
0001:10:15.0 Serial controller: MosChip Semiconductor Technology Ltd. PCI 9865
Multi-I/O Controller
0001:10:15.1 Serial controller: MosChip Semiconductor Technology Ltd. PCI 9865
Multi-I/O Controller
0001:10:15.2 Parallel controller: Illegal Vendor ID Device 9865
0001:10:16.0 Network controller: Broadcom Inc. and subsidiaries BCM4306
802.11b/g Wireless LAN Controller (rev 02)
0001:10:17.0 Unassigned class [ff00]: Apple Inc. KeyLargo Mac I/O (rev 03)
0001:10:18.0 USB controller: Apple Inc. KeyLargo USB
0001:10:19.0 USB controller: Apple Inc. KeyLargo USB
0001:10:1b.0 USB controller: NEC Corporation OHCI USB Controller (rev 43)
0001:10:1b.1 USB controller: NEC Corporation OHCI USB Controller (rev 43)
0001:10:1b.2 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev
04)
0002:20:0b.0 Host bridge: Apple Inc. UniNorth 2 Internal PCI
0002:20:0d.0 Unassigned class [ff00]: Apple Inc. UniNorth 2 ATA/100
0002:20:0e.0 FireWire (IEEE 1394): Apple Inc. UniNorth 2 FireWire (rev 01)
0002:20:0f.0 Ethernet controller: Apple Inc. UniNorth 2 GMAC (Sun GEM)

 # lspci -v -s :00:10.0
:00:10.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
RV350 [Radeon 9550/9600/X1050 Series] (prog-if 00 [VGA controller])
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] R9600 Pro primary
(Asus OEM for HP)
Device tree node:
/sys/firmware/devicetree/base/pci@f000/ATY,AlteracParent@10
Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 48
Memory at a000 (32-bit, prefetchable) [size=256M]
I/O ports at 0400 [disabled] [size=256]
Memory at 9000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at 9002 [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Capabilities: [50] Power Management version 2

> The hardware-specific driver gets initialized earlier, and then the
> offb/ofdrm driver cannot get the resources for the framebuffer because the
> native driver is already using them.
> 
> That should be fine but the message it prints is not exactly clear.
Ok. To rule out influence of other drivers I disabled them (# CONFIG_FB is not
set, # CONFIG_DRM_RADEON is not set) and only set CONFIG_DRM=y,
CONFIG_DRM_OFDRM=y but it made no difference. Sill I get this:
sysfs: cannot create duplicate filename '/devices/platform/of-display'
[...]
of-display: probe of of-display failed with error -22

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #12 from Michal Suchánek (msucha...@suse.de) ---
Thanks for the DT dumps.

So you really do have two outputs but the problem is likely different:

The hardware-specific driver gets initialized earlier, and then the offb/ofdrm
driver cannot get the resources for the framebuffer because the native driver
is already using them.

That should be fine but the message it prints is not exactly clear.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #11 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303554
  --> https://bugzilla.kernel.org/attachment.cgi?id=303554=edit
device tree - PowerMac G5 11,2

Here's also the device tree of my G5, having the same issue.

It was not necessary to force the output via '-f' here but I got lots of
warnings:

 # dtc -I fs -O dts /proc/device-tree > PowerMac-G5_11,2_device-tree.dts
: Warning (reg_format): /smu@0,0:reg: property has invalid length (4
bytes) (#address-cells == 2, #size-cells == 1)
: Warning (pci_bridge): /ht@0,f200/pci@4: missing ranges for PCI
bridge (or not a bridge)
: Warning (pci_bridge): /ht@0,f200/pci@1: missing ranges for PCI
bridge (or not a bridge)
: Warning (unit_address_format): Failed prerequisite 'pci_bridge'
: Warning (pci_device_reg): Failed prerequisite 'reg_format'
: Warning (pci_device_reg): Failed prerequisite 'pci_bridge'
: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge'
: Warning (simple_bus_reg): Failed prerequisite 'reg_format'
: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
: Warning (avoid_default_addr_size): /rom@0,ff80/boot-rom@fff0:
Relying on default #size-cells value
: Warning (avoid_default_addr_size):
/ht@0,f200/pci@8/mac-io@7/escc@13000/ch-b@13000: Relying on default
#size-cells value
: Warning (avoid_default_addr_size):
/ht@0,f200/pci@8/mac-io@7/escc@13000/ch-a@13020: Relying on default
#size-cells value
: Warning (avoid_default_addr_size):
/ht@0,f200/pci@8/mac-io@7/i2s@0/i2s-c@14000: Relying on default #size-cells
value
: Warning (avoid_default_addr_size):
/ht@0,f200/pci@8/mac-io@7/i2s@0/i2s-a@1: Relying on default #size-cells
value
: Warning (avoid_default_addr_size):
/ht@0,f200/pci@8/mac-io@7/escc-legacy@12000/ch-b@12000: Relying on default
#size-cells value
: Warning (avoid_default_addr_size):
/ht@0,f200/pci@8/mac-io@7/escc-legacy@12000/ch-a@12004: Relying on default
#size-cells value
: Warning (avoid_unnecessary_addr_size): Failed prerequisite
'avoid_default_addr_size'
: Warning (unique_unit_address): Failed prerequisite
'avoid_default_addr_size'
: Warning (chosen_node_stdout_path): /chosen:linux,stdout-path: Use
'stdout-path' instead
: Warning (alias_paths): /aliases:ipc: aliases property is not a valid
node (/ipc)
: Warning (alias_paths): /aliases:pci6: aliases property is not a valid
node (/ht/pci@6)
: Warning (alias_paths): /aliases:nvram: aliases property is not a
valid node (/nvram)
: Warning (alias_paths): /aliases:mac-io: aliases property is not a
valid node (/ht/pci@8/mac-io)
: Warning (alias_paths): /aliases:usb3: aliases property is not a valid
node (/ht/pci@8/@b,1)
: Warning (alias_paths): /aliases:pci4: aliases property is not a valid
node (/ht/pci@4)
: Warning (alias_paths): /aliases:k2-sata: aliases property is not a
valid node (/ht/pci@9/k2-sata-root)
: Warning (alias_paths): /aliases:macio-mpic: aliases property is not a
valid node (/ht/pci@8/mac-io/mpic)
: Warning (alias_paths): /aliases:via-pmu: aliases property is not a
valid node (/ht/pci@8/mac-io/via-pmu)
: Warning (alias_paths): /aliases:pci2: aliases property is not a valid
node (/ht/pci@2)
: Warning (alias_paths): /aliases:ultra2: aliases property is not a
valid node (/ht/pci@9/k2-sata-root/k2-sata@2/disk@0)
: Warning (alias_paths): /aliases:k2-mac-io: aliases property is not a
valid node (/ht/pci@8/mac-io)
: Warning (alias_paths): /aliases:k2-fw: aliases property is not a
valid node (/ht/pci@9/firewire)
: Warning (alias_paths): /aliases:ui2c: aliases property is not a valid
node (/u4/i2c)
: Warning (alias_paths): /aliases:sccb: aliases property is not a valid
node (/ht/pci@8/mac-io/escc/ch-b)
: Warning (alias_paths): /aliases:sd2: aliases property is not a valid
node (/ht/pci@9/k2-sata-root/k2-sata@2/disk@0)
: Warning (alias_paths): /aliases:pci: aliases property is not a valid
node (/ht/pci@8)
: Warning (alias_paths): /aliases:cpu3: aliases property is not a valid
node (/cpus/@3)
: Warning (alias_paths): /aliases:k2-cd: aliases property is not a
valid node (/ht/pci@9/ata-6/disk@0)
: Warning (alias_paths): /aliases:ultra0: aliases property is not a
valid node (/ht/pci@9/k2-sata-root/k2-sata@0/disk@0)
: Warning (alias_paths): /aliases:hd: aliases property is not a valid
node (/ht/pci@9/k2-sata-root/k2-sata@0/disk@0)
: Warning (alias_paths): /aliases:usb-2b: aliases property is not a
valid node (/ht/pci@8/@b,1)
: Warning (alias_paths): /aliases:sd0: aliases property is not a valid
node (/ht/pci@9/k2-sata-root/k2-sata@0/disk@0)
: Warning (alias_paths): /aliases:pci9: aliases property is not a valid
node (/ht/pci@9)
: Warning (alias_paths): /aliases:sata: aliases property is not a valid
node (/ht/pci@9/k2-sata-root)
: Warning (alias_paths): /aliases:fw: aliases property is not a valid
node (/ht/pci@9/firewire)
: Warning 

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #10 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303553
  --> https://bugzilla.kernel.org/attachment.cgi?id=303553=edit
device tree -  PowerMac G4 3,6 DP

(In reply to Michal Suchánek from comment #9)
> Could you also attach the devicetree?
> 
> dtc -I fs -O dts /proc/device-tree > device-tree.dts
Sorry for the delay, I overlooked your post!

I needed to force the output but otherwise it seemed to work fine:
# dtc -f -I fs -O dts /proc/device-tree > PowerMac-G4_3,6_device-tree.dts
: ERROR (property_name_chars): /options:prev-lang:kbd: Bad character
':' in property 
Warning: Input tree has errors, output forced

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2023-01-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Michal Suchánek (msucha...@suse.de) changed:

   What|Removed |Added

 CC||msucha...@suse.de

--- Comment #9 from Michal Suchánek (msucha...@suse.de) ---
Could you also attach the devicetree?

dtc -I fs -O dts /proc/device-tree > device-tree.dts

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-12-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Erhard F. (erhar...@mailbox.org) changed:

   What|Removed |Added

 Attachment #301128|0   |1
is obsolete||

--- Comment #8 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303510
  --> https://bugzilla.kernel.org/attachment.cgi?id=303510=edit
kernel .config (6.2-rc1, PowerMac G4 DP)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-12-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #7 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303509
  --> https://bugzilla.kernel.org/attachment.cgi?id=303509=edit
dmesg (6.2-rc1, PowerMac G4 DP)

Now as the new ofdrm driver is in 6.2-rc1 the G4 fails to pick it up. ;)

When I try to load it manually as a module I get "Error: Driver 'of-display' is
already registered, aborting..." in the dmesg.

When I build it statically into the kernel it says "of-display: probe of
of-display failed with error -22".

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-11-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Erhard F. (erhar...@mailbox.org) changed:

   What|Removed |Added

 Attachment #301576|0   |1
is obsolete||
 Attachment #301581|0   |1
is obsolete||

--- Comment #6 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303183
  --> https://bugzilla.kernel.org/attachment.cgi?id=303183=edit
kernel .config (6.1-rc5, PowerMac G5 11,2)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-11-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #5 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 303182
  --> https://bugzilla.kernel.org/attachment.cgi?id=303182=edit
dmesg (6.0-rc1, PowerMac G5 11,2)

Still shows up in 6.1-rc5:

[...]
sysfs: cannot create duplicate filename '/devices/platform/of-display'
CPU: 0 PID: 1 Comm: swapper/0 Tainted: GT  6.1.0-rc5-PMacG5 #2
Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac
Call Trace:
[c1b37610] [c0b4e7c0] .dump_stack_lvl+0x7c/0xd8 (unreliable)
[c1b376a0] [c040c338] .sysfs_warn_dup+0x78/0xc0
[c1b37730] [c040c56c] .sysfs_create_dir_ns+0x13c/0x160
[c1b377d0] [c0b5869c] .kobject_add_internal+0x14c/0x3c0
[c1b37870] [c0b590a8] .kobject_add+0x68/0x100
[c1b37900] [c08074b0] .device_add+0xe0/0xbd0
[c1b379f0] [c0909f44] .of_device_add+0x44/0x70
[c1b37a60] [c090a790]
.of_platform_device_create_pdata+0xc0/0x160
[c1b37b00] [c10737e8]
.of_platform_default_populate_init+0x41c/0x4c4
[c1b37be0] [c000fa84] .do_one_initcall+0x84/0x2b8
[c1b37cc0] [c1005c98] .kernel_init_freeable+0x420/0x54c
[c1b37da0] [c000ff50] .kernel_init+0x20/0x190
[c1b37e10] [c000bd58] .ret_from_kernel_thread+0x58/0x60
kobject_add_internal failed for of-display with -EEXIST, don't try to register
things with the same name in the same directory.
PCI: Probing PCI hardware

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-08-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

Erhard F. (erhar...@mailbox.org) changed:

   What|Removed |Added

 Attachment #301577|0   |1
is obsolete||

--- Comment #4 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 301581
  --> https://bugzilla.kernel.org/attachment.cgi?id=301581=edit
kernel .config (6.0-rc1, PowerMac G5 11,2)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-08-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #3 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 301577
  --> https://bugzilla.kernel.org/attachment.cgi?id=301577=edit
kernel .config (6.0-rc1, PowerMac G5 11,2)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-08-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #2 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 301576
  --> https://bugzilla.kernel.org/attachment.cgi?id=301576=edit
dmesg (6.0-rc1, PowerMac G5 11,2)

Still a problem in 6.0-rc1:

[...]
sysfs: cannot create duplicate filename '/devices/platform/of-display'
CPU: 0 PID: 1 Comm: swapper/0 Tainted: GT  6.0.0-rc1-PMacG5 #1
Call Trace:
[c15eb620] [c06d0200] .dump_stack_lvl+0x7c/0xc4 (unreliable)
[c15eb6b0] [c03c2684] .sysfs_warn_dup+0x74/0xa0
[c15eb740] [c03c287c] .sysfs_create_dir_ns+0x11c/0x160
[c15eb7e0] [c06d9190] .kobject_add_internal+0x130/0x380
[c15eb890] [c06d9b28] .kobject_add+0x68/0xf0
[c15eb920] [c079005c] .device_add+0x13c/0xb40
[c15eba10] [c087b408] .of_device_add+0x58/0x70
[c15eba90] [c087bbd0]
.of_platform_device_create_pdata+0xc0/0x170
[c15ebb30] [c103a718]
.of_platform_default_populate_init+0x1cc/0x20c
[c15ebbd0] [c000f7b4] .do_one_initcall+0x64/0x250
[c15ebcb0] [c1004400] .kernel_init_freeable+0x2ec/0x388
[c15ebda0] [c000fc10] .kernel_init+0x20/0x190
[c15ebe10] [c000bb50] .ret_from_kernel_thread+0x58/0x60
kobject_add_internal failed for of-display with -EEXIST, don't try to register
things with the same name in the same directory.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

[Bug 216095] sysfs: cannot create duplicate filename '/devices/platform/of-display'

2022-06-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216095

--- Comment #1 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 301128
  --> https://bugzilla.kernel.org/attachment.cgi?id=301128=edit
kernel .config (5.19-rc1, PowerMac G4 DP)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.