]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: disable pci resize on 32-bit machine
authorNirmoy Das <nirmoy.das@intel.com>
Wed, 27 Jul 2022 17:33:06 +0000 (19:33 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 28 Jul 2022 10:29:55 +0000 (11:29 +0100)
commit78805ba0b881b54e18756b51e31acdb3a80c5d60
tree4aebedb2e479936c7f660fd3218eb9056537e2a2
parent983cf17da08d9a3a7211437d38b1601e19db841b
drm/i915: disable pci resize on 32-bit machine

PCI bar resize only works with 64 bit BAR so disable
this on 32-bit machine and resolve below compilation error:

drivers/gpu/drm/i915/gt/intel_region_lmem.c:94:23: error: result of
comparison of constant 4294967296 with expression of type
'resource_size_t' (aka 'unsigned int') is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
                    root_res->start > 0x100000000ull)

Fixes: afbeec7cd0d1e ("drm/i915: Add support for LMEM PCIe resizable bar")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Acked-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220727173306.16247-1-nirmoy.das@intel.com
drivers/gpu/drm/i915/gt/intel_region_lmem.c