diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-01 23:26:28 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-01 23:26:28 +0000 |
commit | b50d8770e5ee52c915d1691c3a98f431a86a9b1d (patch) | |
tree | 00d9721782853d7ae8c9493f4446fd72d2c3e76a /sys/dev/pci | |
parent | 9e937c9519df724bdae5c7d36189fb443f52a933 (diff) |
get stolen memory base and size for gen 12
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915/intel_stolen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/intel_stolen.c b/sys/dev/pci/drm/i915/intel_stolen.c index 59ae7308336..892e6ac7dea 100644 --- a/sys/dev/pci/drm/i915/intel_stolen.c +++ b/sys/dev/pci/drm/i915/intel_stolen.c @@ -163,7 +163,7 @@ intel_init_stolen_res(struct inteldrm_softc *dev_priv) if (GRAPHICS_VER(dev_priv) >= 3 && GRAPHICS_VER(dev_priv) < 11) stolen_base = gen3_stolen_base(dev_priv); - else if (GRAPHICS_VER(dev_priv) == 11) + else if (GRAPHICS_VER(dev_priv) == 11 || GRAPHICS_VER(dev_priv) == 12) stolen_base = gen11_stolen_base(dev_priv); if (IS_I830(dev_priv) || IS_I845G(dev_priv)) @@ -177,7 +177,7 @@ intel_init_stolen_res(struct inteldrm_softc *dev_priv) stolen_size = gen6_stolen_size(dev_priv); else if (GRAPHICS_VER(dev_priv) == 8) stolen_size = gen8_stolen_size(dev_priv); - else if (GRAPHICS_VER(dev_priv) >= 9 && GRAPHICS_VER(dev_priv) < 12) + else if (GRAPHICS_VER(dev_priv) >= 9 && GRAPHICS_VER(dev_priv) <= 12) stolen_size = gen9_stolen_size(dev_priv); if (stolen_base == 0 || stolen_size == 0) |