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)
Sat, Dec 21, 4:33 PM
Unknown Object (File)
Dec 1 2024, 5:40 AM
Unknown Object (File)
Nov 5 2024, 8:13 AM
Unknown Object (File)
Nov 5 2024, 8:13 AM
Unknown Object (File)
Nov 5 2024, 8:13 AM
Unknown Object (File)
Nov 3 2024, 5:44 AM
Unknown Object (File)
Oct 17 2024, 11:49 AM
Unknown Object (File)
Sep 18 2024, 7:38 AM

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 Skipped
Unit
Tests Skipped

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.