OSDN Git Service

amdgpu: fix "add AMDGPU_VA_RANGE_HIGH"
authorChristian König <christian.koenig@amd.com>
Wed, 28 Feb 2018 14:39:46 +0000 (15:39 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 28 Feb 2018 19:04:32 +0000 (20:04 +0100)
commitbca585b02f09e27d7adef8375630515711bd4802
treec8b670e9a394240b6bfb0a2faf1bb2ed77a72219
parentff0da7b32369a08c8a2f69cd4dcd046ad7a15bec
amdgpu: fix "add AMDGPU_VA_RANGE_HIGH"

The range is stored as exclusive, not inclusive. Subtracts one to get
the inclusive interval for the calculation. This fixes crashes when 32bit
addresses are in use.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
amdgpu/amdgpu_device.c