Skip to content

PCI: apple: name the tunable that has no register window - #1606

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
joshuaswarren:w7c/up-pcie-tunable-msg
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
joshuaswarren:w7c/up-pcie-tunable-msg

Conversation

@joshuaswarren

Copy link
Copy Markdown
Contributor

A tunable whose register window is missing from the device tree made apple_pcie_t6050_tune_host() return -EINVAL with no message. On the 14-inch M5 Max MacBook Pro a stale device tree (pcie0 without the four tunable windows) failed the probe that way, and the boot log gave no hint. The cause took a decompile of the live tree to find.

The probe now names the property and the missing reg window, and reports a cell count that is not a multiple of four as its own error. No behavior change on a correct tree.

A tunable whose register window the device tree does not list returned -EINVAL from the probe with no message. On the K114c a stale device tree (pcie0 without the four tunable windows) failed that way, and the boot log said nothing about why.

Report which property names the missing window, and report a cell count that is not a multiple of four separately.

Signed-off-by: Joshua Warren <[email protected]>
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 12, 2026 01:40

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Joshua. Only the error path of apple_pcie_t6050_tune_host() changes, and a missing reg window and a bad cell count now say which property is wrong. Builds clean with the rest of the series; no change on a correct tree.

@RyanTheTide
RyanTheTide merged commit de6a8d4 into aurora-silicon:integration/aurora Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants