diff options
| author | Djordje Nedic <djordje.nedic@nextsilicon.com> | 2026-09-29 16:35:01 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-10-07 12:36:02 +0300 |
| commit | d97995e99cc52615feea79990fdf6f7dd50f2027 (patch) | |
| tree | 3dca206610c480bc6e9a8c8fd0ec7e9546baaf48 /BaseTools/Source/Python | |
| parent | 3278ad66117e1d0a4530ac411a644cb3624915bf (diff) | |
| download | edk2-d97995e99cc52615feea79990fdf6f7dd50f2027.tar.xz | |
DynamicTablesPkg/RiscV: Support IMSICs without guest interrupt files
ACPI 6.6 Table 5.57 requires NumGuestIds to be zero when no guest
interrupt files are implemented. The FDT parser currently defaults
the count to NumIds even when no guest index bits are present,
and the MADT generator asserts on a zero count.
Parse and validate the guest index width before deriving NumGuestIds.
An absent riscv,guest-index-bits property defaults to zero, so emit
zero guest identities for an absent or zero width without reading
the unused riscv,num-guest-ids property. For a nonzero width,
preserve the explicit guest identity count or its default from
riscv,num-ids. Validate explicit counts before narrowing, including
rejecting zero as required by the DT binding.
Allow zero in the MADT generator while preserving the bounds and
granularity checks for nonzero counts. The existing RINTC size
calculation already yields one supervisor page for zero guest index
bits and remains bounded by the DT reg extent.
Signed-off-by: Djordje Nedic <djordje.nedic@nextsilicon.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions
