drm/amdgpu: use 256 bit buffers for all wb allocations (v2)
Subsystems (2)
PATCH 1/1 drm/amdgpu: use 256 bit buffers for all wb allocations (v2)
May waste a bit of memory, but simplifies the interface significantly.
v2: convert internal accounting to use 256bit slots
Reviewed-by Christian König <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 -- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 77 ++---------------------------- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 65 +++++++------------------ 3 files changed, 20 insertions(+), 126 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -4
@@ -1131,10 +1131,6 @@ struct amdgpu_wb {int amdgpu_wb_get (struct amdgpu_device *adev,u32 *wb);void amdgpu_wb_free (struct amdgpu_device *adev,u32 wb); -int amdgpu_wb_get_64bit (struct amdgpu_device *adev,u32 *wb); -int amdgpu_wb_get_256bit (struct amdgpu_device *adev,u32 *wb); -void amdgpu_wb_free_64bit (struct amdgpu_device *adev,u32 wb); -void amdgpu_wb_free_256bit (struct amdgpu_device *adev,u32 wb);void amdgpu_get_pcie_info (struct amdgpu_device *adev);
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -73
97 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +16 -49
82 lines not on this page · raw message
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx