Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle multiple nodes #18

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Conversation

SergiiDmytruk
Copy link
Member

  • Revert change that made SKL work only on Fam 16h and up, so it can be used with Fam 15h or even older CPUs.
  • Update configuration of DEV of each northbridge that's present.

@krystian-hebel krystian-hebel force-pushed the iommu_updates branch 3 times, most recently from b58b2d6 to 4304942 Compare April 10, 2024 17:10
@krystian-hebel krystian-hebel force-pushed the iommu_updates branch 2 times, most recently from d2cb1b7 to f16a0d0 Compare April 16, 2024 12:45
@SergiiDmytruk SergiiDmytruk force-pushed the handle-multiple-nodes branch from 589a643 to 951f504 Compare April 16, 2024 21:24
Base automatically changed from iommu_updates to shrink_measured_size April 17, 2024 17:47
Copy link
Member

@krystian-hebel krystian-hebel left a comment

Choose a reason for hiding this comment

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

Please also rebase it, recently merged code should fix the issue where non-debug version didn't work.

dev.c Show resolved Hide resolved
include/dev.h Outdated Show resolved Hide resolved
…ssors"

This reverts commit 335c103.

Without -march=btver2 SKL can be used on AMD 15h or earlier and now that
SKL more than fits into 64KiB limit, no need for such options to save a
bit of space.

Signed-off-by: Sergii Dmytruk <[email protected]>
DEV is specific to a northbridge, so there are multiple of them on
systems with several CPU sockets. 0x18 is the device number of the
first one with the rest using successive numbers (0x19, 0x1A, etc.).

Signed-off-by: Sergii Dmytruk <[email protected]>
@SergiiDmytruk SergiiDmytruk force-pushed the handle-multiple-nodes branch from 951f504 to 18f5358 Compare April 17, 2024 18:27
@krystian-hebel krystian-hebel merged commit 18f5358 into shrink_measured_size Apr 17, 2024
66 checks passed
@krystian-hebel krystian-hebel deleted the handle-multiple-nodes branch April 17, 2024 18:36
Comment on lines +24 to +26
* There are only 5 bits (0x00..0x1f) for PCI slot number (see definition of
* PCI_DEVFN) and we start at 0x18 (DEV_PCI_DEVICE), so there is hard upper
* limit on how many nodes can exist.
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI: There actually is a setting in AMD Family 10h/15h to remap those node devices to bus 0xfe and 0xff, giving a potential for up to 64 nodes: https://github.com/coreboot/coreboot/blob/4.11_branch/src/northbridge/amd/amdfam10/early_ht.c#L29

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.

3 participants