Page MenuHomeFreeBSD

Attach and LAW problems to fix
ClosedPublic

Authored by int0dster_gmail.com on Aug 26 2016, 4:44 PM.
Referenced Files
Unknown Object (File)
Apr 2 2024, 12:34 AM
Unknown Object (File)
Mar 13 2024, 8:03 AM
Unknown Object (File)
Dec 23 2023, 11:39 AM
Unknown Object (File)
Dec 22 2023, 2:13 PM
Unknown Object (File)
Dec 18 2023, 4:46 PM
Unknown Object (File)
Nov 2 2023, 8:04 PM
Unknown Object (File)
Sep 11 2023, 4:55 PM
Unknown Object (File)
Aug 15 2023, 12:28 PM

Details

Summary
  1. Attach problem - mpc85xx_probe() relies on fact that 0xfff0 mask

matches all QorIQ CPUs what is not true since e6500. This shall be reworked to match
against all supported CPUPs.

  1. IMO there is no any reason for operating system to re-program or anyhow else touch the LaWs programmed by

firmware (u-boot). Right now mpc85xx_attach() removes all LaW entries except for DRAM. This causes
MCE to be generated when later any of driver maps DTB-provided hardware addresses which do not exist
anymore because corresponding LaWs were removed.

Test Plan
  1. Build kernel
  2. Ensure that it boots all the way up to attempt of rootfs mount on t2080rdb board.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

int0dster_gmail.com retitled this revision from to Attach and LAW problems to fix.
int0dster_gmail.com updated this object.
int0dster_gmail.com edited the test plan for this revision. (Show Details)
int0dster_gmail.com set the repository for this revision to rS FreeBSD src repository - subversion.
int0dster_gmail.com added a project: PowerPC.

Adding a couple other reviewers. Looks fine to me, but summer may argue that the drivers should be responsible for the LAWs they use. I don't think Linux clears the windows, so I have no problem with the removal.

Looks Ok to me. Any idea why things were set up this way to begin with?

Looks Ok to me. Any idea why things were set up this way to begin with?

No any specific ideas. May be those are leftovers from some contribution where they
got reprogrammed later, but these reprogramming bits were somehow missed.

jhibbits edited edge metadata.
This revision is now accepted and ready to land.Aug 29 2016, 7:50 PM
This revision was automatically updated to reflect the committed changes.