HomeFreeBSD

arm64/gicv3: correct the size of the distributor resource

Description

arm64/gicv3: correct the size of the distributor resource

Use the GICD_SIZE macro (0x10000), which is half the size of the current
fixed-sized mapping (128 * 1024 == 0x20000).

In ARM64 Hyper-V instances, it seems the Distributor's registers are
located immediately preceding a range of physical memory in the bus
address space. Thus, when ram0 is attaching and attempts to reserve
SYS_RES_MEMORY resources corresponding to its physmem ranges, it fails,
because the first 0x10000 bytes of this range are already owned by gic0.

PR: 270415
Reported by: whu
Tested by: whu
Differential Revision: https://reviews.freebsd.org/D39260

Details

Provenance
mhorneAuthored on Mar 31 2023, 3:32 PM
Differential Revision
D39260: arm64/gicv3: correct the size of the distributor mapping
Parents
rG1a3cb489e5aa: arm64: Move the initial kernel stack out of the init_pagetables section
Branches
Unknown
Tags
Unknown