OSDN Git Service

drm/radeon: fix adding all VAs to the freed list on remove v2
authorChristian König <christian.koenig@amd.com>
Fri, 26 Jun 2015 10:31:29 +0000 (12:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jun 2015 15:21:50 +0000 (11:21 -0400)
commitb13e22aeba06aea2acdae657e988c93c22080858
treee0fd6e5f7740fe375f5488e3f3857d6b040d301d
parent9a5e8fb1c8372ea4b58a76bbb82cb97683bb204b
drm/radeon: fix adding all VAs to the freed list on remove v2

We only should do so when the BO_VA was actually mapped.
Otherwise we get a nice error message on the next CS.

v2: It actually doesn't matter if it was invalidated or not,
    if it was mapped we need to clear the area where it was mapped.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_vm.c