Skip to contentSkip to conversation

New: OF fails to handle some PCI resources on a PowerMac G4 3,6 (e.g. OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532)

Bug 216427 [email protected] 1 participant 5 messages Aug 29, 2022 – Sep 12, 2022

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=216427

            Bug ID: 216427
           Summary: OF fails to handle some PCI resources on a PowerMac G4
                    3,6 (e.g. OF:
                    /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not
                    find phandle 1751474532)
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 6.0-rc3
          Hardware: PPC-32
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-32
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
        Regression: No

Created attachment 301698
--> https://bugzilla.kernel.org/attachment.cgi?id=301698&action=edit
dmesg (kernel 6.0-rc3, PowerMac G4 DP)

This pops up in dmesg on my G4 DP. Perhaps an OF or DT issue?

[...]
Duplicate name in PowerPC,G4@0, renamed to "l2-cache#1"
Duplicate name in l2-cache#1, renamed to "l2-cache#1"
Duplicate name in PowerPC,G4@1, renamed to "l2-cache#1"
Duplicate name in l2-cache#1, renamed to "l2-cache#1"
Duplicate name in gpio@50, renamed to "gpio5@6f#1"
Duplicate name in gpio@50, renamed to "gpio6@70#1"
Duplicate name in gpio@50, renamed to "gpio11@75#1"
Duplicate name in gpio@50, renamed to "extint-gpio15@67#1"
[...]
OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532
OF: /pci@f2000000/mac-io@17/gpio@50/extint-gpio15@67: could not find phandle 1751474532
OF: /pci@f2000000/mac-io@17/gpio@50/gpio6@70: could not find phandle 1634562093
OF: /pci@f2000000/mac-io@17/gpio@50/extint-gpio16@68: could not find phandle 1936745825
OF: /pci@f2000000/mac-io@17/gpio@50/extint-gpio14@66: could not find phandle 1818848869
OF: /pci@f2000000/mac-io@17/gpio@50/gpio12@76: could not find phandle 1835103092
OF: /pci@f2000000/mac-io@17/gpio@50/gpio11@75: could not find phandle 1635083369
OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532
OF: /pci@f2000000/mac-io@17/gpio@50/gpio6@70: could not find phandle 1634562093
OF: /pci@f2000000/mac-io@17/gpio@50/extint-gpio4@5c: could not find phandle 1818848869
OF: /pci@f2000000/mac-io@17/gpio@50/gpio11@75: could not find phandle 1635083369
OF: /pci@f2000000/mac-io@17/gpio@50/extint-gpio15@67: could not find phandle 1751474532
[...]

Apart from that the machine seems to run fine. More details in the attached dmesg.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 216427] OF fails to handle some PCI resources on a PowerMac G4 3,6 (e.g. OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532)

https://bugzilla.kernel.org/show_bug.cgi?id=216427

--- Comment #1 from Erhard F. ([email protected]) --- Created attachment 301699
--> https://bugzilla.kernel.org/attachment.cgi?id=301699&action=edit
kernel .config (kernel 6.0-rc3, PowerMac G4 DP)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
author Tested-by Marek Szyprowski
#2 lore raw

[Bug 216427] [bisected] OF fails to handle some PCI resources on a PowerMac G4 3,6 (e.g. OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=216427

Erhard F. ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|OF fails to handle some PCI |[bisected] OF fails to
                   |resources on a PowerMac G4  |handle some PCI resources
                   |3,6 (e.g. OF:               |on a PowerMac G4 3,6 (e.g.
                   |/pci@f2000000/mac-io@17/gpi |OF:
                   |o@50/gpio5@6f: could not    |/pci@f2000000/mac-io@17/gpi
                   |find phandle 1751474532)    |o@50/gpio5@6f: could not
                   |                            |find phandle 1751474532)

--- Comment #2 from Erhard F. ([email protected]) --- Did a bisect which revealed this as 1st bad commit:

 # git bisect good
c78c31b374a68be79cb4a03ef5b6c187f034e903 is the first bad commit
commit c78c31b374a68be79cb4a03ef5b6c187f034e903
Author: Saravana Kannan <[email protected]>
Date:   Tue Apr 28 12:20:05 2020 -0700

Revert "Revert "driver core: Set fw_devlink to "permissive" behavior by
default""

This reverts commit 18555cb6db2373b9a5ec1f7572773fd58c77f9ba.

The reason[1] for the original revert has now been fixed by commit 00b247557858 ("driver core: Fix handling of fw_devlink=permissive"). So, this patch reverts the revert. Marek has also tested this patch with the fix mentioned above and confirmed that the issue has been fixed.

[1] -
https://lore.kernel.org/lkml/CAGETcx8nbz-J1gLvoEKE_HgCcVGyV2o8rZeq_USFKM6=s7WmNg@mail.gmail.com/T/#m12dfb5dfd23805b84c49f4bb2238a8cce436c2f7

    [2] -

https://lore.kernel.org/lkml/CAGETcx8nbz-J1gLvoEKE_HgCcVGyV2o8rZeq_USFKM6=s7WmNg@mail.gmail.com/T/#m2408a6ce098b2ebf583ca8534329695923ae57fe

Link:
https://lore.kernel.org/r/[email protected]

 drivers/base/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 216427] [bisected] OF fails to handle some PCI resources on a PowerMac G4 3,6 (e.g. OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=216427

--- Comment #3 from Erhard F. ([email protected]) --- Created attachment 301744
--> https://bugzilla.kernel.org/attachment.cgi?id=301744&action=edit
bisect.log

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 216427] [bisected] OF fails to handle some PCI resources on a PowerMac G4 3,6 (e.g. OF: /pci@f2000000/mac-io@17/gpio@50/gpio5@6f: could not find phandle 1751474532)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=216427

Erhard F. ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Erhard F. ([email protected]) --- Looks like I already reported that one 2 yrs ago...

*** This bug has been marked as a duplicate of bug 208197 ***

Signature · 4 lines
You may reply to this email to add a comment.

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