Skip to content

Conversation

@rudywasfound
Copy link

amd64/pci: tighten up MMCONFIG access handling and consolidate cfg read return values

Motivation

  • Apply realloc and MMCONFIG mapping check, limit the number of MCFG regions, unconditionally make config reads return uint32_t, enforce 1/2/4-byte CFGA access and mask I/O widths.

Changes

  • amd64/pci: make MMCONFIG accesses more robust and unify config-space returns
  • Check realloc and pmap_mapdev_pciecfg return, cap MCFG regions, normalize config read return type to uint32_t, limit/align CFGA sizes, mask I/O transfers.

Signed-off-by: Atiksh Sharma [email protected]

@github-actions
Copy link

Thank you for taking the time to contribute to FreeBSD!
There is an issue that needs to be fixed:

  • Missing Signed-off-by linesb098707

Please review CONTRIBUTING.md, then update and push your branch again.

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.

1 participant