]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Return error if initiating read out of range on vram
authorTom St Denis <tom.stdenis@amd.com>
Tue, 23 May 2017 15:35:22 +0000 (11:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 22:23:55 +0000 (18:23 -0400)
commitb29306592f05b766986c0b183d383e8c11b3f966
tree25e3490da0e52e2c7b4c5f39a609b63c048e5740
parent90a44fb54f57d248e1dc42ae1f77f41768161f91
drm/amd/amdgpu: Return error if initiating read out of range on vram

If you initiate a read that is out of the VRAM address space return
ENXIO instead of 0.

Reads that begin below that point will read upto the VRAM limit as
before.

Cc: stable@vger.kernel.org
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c