diff options
author | Furquan Shaikh <furquan@google.com> | 2020-05-16 23:55:02 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-05-26 15:18:16 +0000 |
commit | 7cf96aeeb7b983d50387297931bbeeed642552fc (patch) | |
tree | 11ad6babbbb9b0e172cd3fdb6921b40b1500ca66 /src/northbridge | |
parent | 8bdf3f4a047d5777534e18ac641f53a304587fe7 (diff) |
northbridge/intel/i945: Mark legacy VGA memory as reserved
This change adds legacy VGA memory (0xa0000 - 0xbffff) as
mmio_resource in northbridge.c read_resources() to match what is
exposed to the OS in hostbridge.asl. It ensures that the resource
allocator does not use this range for dynamic resource allocation.
Change-Id: I24e3aaf97202575fa9df8408366c8db5bea07145
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41482
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/intel/i945/northbridge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c index f814c976b4..56cad7a971 100644 --- a/src/northbridge/intel/i945/northbridge.c +++ b/src/northbridge/intel/i945/northbridge.c @@ -110,6 +110,8 @@ static void mch_domain_read_resources(struct device *dev) uma_resource(dev, 5, uma_memory_base >> 10, uma_memory_size >> 10); mmio_resource(dev, 6, tseg_memory_base >> 10, tseg_memory_size >> 10); uma_resource(dev, 7, cbmem_topk, delta_cbmem); + /* legacy VGA memory */ + mmio_resource(dev, 8, 640, 768 - 640); } static void mch_domain_set_resources(struct device *dev) |