uncore_acpi: Clean up resource code
commit9dc9ef3082714b98ed14f37d6e82f96b02ef5946
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Mon, 21 Oct 2024 15:38:23 +0000 (21 17:38 +0200)
committerLean Sheng Tan <sheng.tan@9elements.com>
Mon, 28 Oct 2024 22:06:41 +0000 (28 22:06 +0000)
treed8e3765f3ca293d8b40245b57c7ba1d0b4f39b62
parent485f51cf73c13a25a9b41b5c2c0e4498a4df2764
uncore_acpi: Clean up resource code

Use the resource size to determine Vtd BAR size and drop the code to
calculate the Vtd BAR size.
While on it do not truncate the resource address to 32-bit, since the
DMAR entry is 64-bit wide anyway.

TEST: Booted on intel/archercity_crb

Change-Id: Ibaadc25c44345ba2eb9e6f75989d32b43d00d7a5
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84829
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
src/soc/intel/xeon_sp/uncore_acpi.c