Skip to content

pci: add config space locking and set ecsm bit #228

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

Merged
merged 1 commit into from
Nov 28, 2021

Conversation

cjams
Copy link
Contributor

@cjams cjams commented Nov 18, 2021

Set ecsm to 1 in pci_cfg_set_addr to ensure that configuration
cycles are generated.

Add a global pci_cfg_lock spinlock in pci_cfg.c and corresponding
spin_lock/spin_unlock sections in pci_{read,write}* to ensure that
access to the config address and data IO ports are synchronized.

Signed-off-by: Connor Davis connojd@amazon.com

Preliminary work towards Issue #179

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Set ecsm to 1 in pci_cfg_set_addr to ensure that configuration
cycles are generated.

Add a global pci_cfg_lock spinlock in pci_cfg.c and corresponding
spin_lock/spin_unlock sections in pci_{read,write}* to ensure that
access to the config address and data IO ports are synchronized.

Signed-off-by: Connor Davis <connojd@amazon.com>
@cjams cjams requested a review from a team as a code owner November 18, 2021 16:46
@dkgupta-amzn dkgupta-amzn merged commit 1c347d9 into KernelTestFramework:mainline Nov 28, 2021
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.

None yet

3 participants