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

arch/arm64: Optimized SGI to avoid VM exit. #14689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions arch/arm64/src/common/arm64_gicv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,7 @@ static int arm64_gic_send_sgi(unsigned int sgi_id, uint64_t target_aff,
uint32_t aff1;
uint64_t sgi_val;
uint32_t regval;
unsigned long base;

base = gic_get_rdist() + GICR_SGI_BASE_OFF;
ASSERT(GIC_IS_SGI(sgi_id));

/* Extract affinity fields from target */
Expand All @@ -394,7 +392,9 @@ static int arm64_gic_send_sgi(unsigned int sgi_id, uint64_t target_aff,

ARM64_DSB();

regval = getreg32(IGROUPR(base, 0));
/* Read the IGROUPR0 value we set in `gicv3_cpuif_init` */

regval = IGROUPR_SGI_VAL;

if (regval & BIT(sgi_id))
{
Expand Down