Page MenuHomeFreeBSD

Enable L1SS handling on RPI4 pcib
AbandonedPublic

Authored by hp_tmm.cx on Apr 17 2024, 12:03 PM.
Tags
Referenced Files
Unknown Object (File)
Fri, Nov 1, 5:22 AM
Unknown Object (File)
Oct 4 2024, 11:03 AM
Unknown Object (File)
Sep 30 2024, 9:23 PM
Unknown Object (File)
Sep 18 2024, 10:26 AM
Unknown Object (File)
Sep 12 2024, 10:32 AM
Unknown Object (File)
Sep 6 2024, 9:17 AM
Unknown Object (File)
Aug 31 2024, 1:49 PM
Unknown Object (File)
Aug 31 2024, 1:49 PM
Subscribers

Details

Summary

Thanks to @kevans91 for pointing me in the right direction. FreeBSD had the same bug as Linux (see https://bugzilla.kernel.org/show_bug.cgi?id=217276) where the ultimate solution was to honor the brcm,enable-l1ss FDT property.

In current versions of the dtb files this property has been added by default.

Without this on many, many pcie addin cards the pcib will Serror when trying to assert the clreq# pin on the pcie bus. Many cards do not have these hooked up.

Test Plan

I have done the following

  1. Without the patch applied, attach non-RPI specific PCIe devices to the PCIe bus. Observe the Serror
  2. Apply the patch, observe that the Serror goes away, and the PCIe device works

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste added inline comments.
sys/arm/broadcom/bcm2835/bcm2838_pci.c
746–747

how did you arrive at the need for this additional delay, out of curiosity?

Let's put all the reviews in the PR for this. It's usually a bad idea to do both and wastes my time having to deal with both unless there's a good reason.

sys/arm/broadcom/bcm2835/bcm2838_pci.c
729–730

No need to read the node here, just use ofw_bus_has_prop

I put all of the suggested changes in https://github.com/freebsd/freebsd-src/pull/1179 sorry for doubling up on phab and gb. I'm new here :)

hp_tmm.cx marked an inline comment as done.

Moved to github.