]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 11 Aug 2017 10:37:41 +0000 (12:37 +0200)
commit27396447a6c94a45422dcbc2c0a1a960c887ef0a
treed0cfe0627f7eadb59db10c0ac2b7d49fb4475665
parent34eae9942a1f8985ad1faf7ff1e7e6e9664d56b5
drm/amd/amdgpu: Return error if initiating read out of range on vram

BugLink: http://bugs.launchpad.net/bugs/1707233
commit 9156e723301c0a7a7def4cde820e018ce791b842 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c