]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon: Refuse to migrate a prime BO to VRAM. (v2)
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Mon, 3 Apr 2017 03:35:23 +0000 (13:35 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Apr 2017 16:20:41 +0000 (12:20 -0400)
commitede2e019adec0b6fd21a54ace92358969f1a1629
tree6af5eeb8a3093ac93c41eac3f99e373eed969f29
parent0d16d299400471735e77d7a8c4107e71b523446d
drm/radeon: Refuse to migrate a prime BO to VRAM. (v2)

BOs shared via dma-buf, either imported or exported, cannot sensibly be migrated to VRAM
without breaking the dma-buf sharing. Refuse userspace requests to migrate to VRAM,
ensure such BOs are not migrated during command submission, and refuse to pin them
to VRAM.

v2: Don't pin BOs in GTT. Instead, refuse to migrate BOs to VRAM.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_cs.c
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_object.c