drm/amd/amdgpu: Support VM environments in amdgpu_ttm_access_memory()
Subsystems (2)
PATCH 1/1 drm/amd/amdgpu: Support VM environments in amdgpu_ttm_access_memory()
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +4 -4
@@ -1201,14 +1201,14 @@ static int amdgpu_ttm_access_memory(struct ttm_buffer_object *bo, }spin_lock_irqsave (&adev->mmio_idx_lock, flags); -WREG32 (mmMM_INDEX, ((uint32_t )aligned_pos) |0x80000000 ); -WREG32 (mmMM_INDEX_HI, aligned_pos >>31 ); +WREG32_NO_KIQ (mmMM_INDEX, ((uint32_t )aligned_pos) |0x80000000 ); +WREG32_NO_KIQ (mmMM_INDEX_HI, aligned_pos >>31 );if (!write || mask !=0xffffffff ) - value =RREG32 (mmMM_DATA); + value =RREG32_NO_KIQ (mmMM_DATA);if (write) { value &= ~mask; value |= (*(uint32_t *)buf << shift) & mask; -WREG32 (mmMM_DATA, value); +WREG32_NO_KIQ (mmMM_DATA, value); }spin_unlock_irqrestore (&adev->mmio_idx_lock, flags);if (!write) {
Signature · 6 lines
2.12.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 10 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom St Denis
Sent: Thursday, September 14, 2017 8:59 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/amd/amdgpu: Support VM environments inamdgpu_ttm_access_memory()Signed-off-by Tom St Denis <[email protected]>
Quoted 34 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +4
-4@@ -1201,14 +1201,14 @@ static int amdgpu_ttm_access_memory(struct ttm_buffer_object *bo, }spin_lock_irqsave (&adev->mmio_idx_lock, flags); -WREG32 (mmMM_INDEX, ((uint32_t )aligned_pos) | 0x80000000); -WREG32 (mmMM_INDEX_HI, aligned_pos >>31 ); +WREG32_NO_KIQ (mmMM_INDEX, ((uint32_t )aligned_pos) |0x80000000 ); +WREG32_NO_KIQ (mmMM_INDEX_HI, aligned_pos >>31 );if (!write || mask !=0xffffffff ) - value =RREG32 (mmMM_DATA); + value =RREG32_NO_KIQ (mmMM_DATA);if (write) { value &= ~mask; value |= (*(uint32_t *)buf << shift) & mask; -WREG32 (mmMM_DATA, value); +WREG32_NO_KIQ (mmMM_DATA, value);drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +0
-1}spin_unlock_irqrestore (&adev->mmio_idx_lock, flags);if (!write) { --2.12.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB16520B593DE382C1F9E1C844F76F0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Pushed to stg-4.13. Should I push to 4.12 too for the time being?
Tom
Quoted 47 lines · Alexander
Quoted 10 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom St Denis
Sent: Thursday, September 14, 2017 8:59 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/amd/amdgpu: Support VM environments inamdgpu_ttm_access_memory()Signed-off-by Tom St Denis <[email protected]>Reviewed-by Alex Deucher <[email protected]>Quoted 34 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +4
-4@@ -1201,14 +1201,14 @@ static int amdgpu_ttm_access_memory(struct ttm_buffer_object *bo, }spin_lock_irqsave (&adev->mmio_idx_lock, flags); -WREG32 (mmMM_INDEX, ((uint32_t )aligned_pos) | 0x80000000); -WREG32 (mmMM_INDEX_HI, aligned_pos >>31 ); +WREG32_NO_KIQ (mmMM_INDEX, ((uint32_t )aligned_pos) |0x80000000 ); +WREG32_NO_KIQ (mmMM_INDEX_HI, aligned_pos >>31 );if (!write || mask !=0xffffffff ) - value =RREG32 (mmMM_DATA); + value =RREG32_NO_KIQ (mmMM_DATA);if (write) { value &= ~mask; value |= (*(uint32_t *)buf << shift) & mask; -WREG32 (mmMM_DATA, value); +WREG32_NO_KIQ (mmMM_DATA, value);}
spin_unlock_irqrestore(&adev->mmio_idx_lock, flags); if (!write) {
--
2.12.0
Quoted 4 lines
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 991e5a4e-d46a-922b-57f0-f99628715b11-5C7GfCeVMHo@public.gmane.org
Please push to amd-staging-drm-next
Quoted 60 lines
-----Original Message-----
From: StDenis, Tom
Sent: Thursday, September 14, 2017 9:05 AM
To: Deucher, Alexander; [email protected]
Subject: Re: [PATCH] drm/amd/amdgpu: Support VM environments inamdgpu_ttm_access_memory()Pushed to stg-4.13. Should I push to 4.12 too for the time being?
Tom
Quoted 2 lines · Alexander
Quoted 2 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] OnBehalf
Quoted 45 lines
Quoted 8 lines
Of Tom St Denis
Sent: Thursday, September 14, 2017 8:59 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/amd/amdgpu: Support VM environments inamdgpu_ttm_access_memory()Signed-off-by Tom St Denis <[email protected]>Reviewed-by Alex Deucher <[email protected]>Quoted 34 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +4
-4@@ -1201,14 +1201,14 @@ static int amdgpu_ttm_access_memory(struct ttm_buffer_object *bo, }spin_lock_irqsave (&adev->mmio_idx_lock, flags); -WREG32 (mmMM_INDEX, ((uint32_t )aligned_pos) | 0x80000000); -WREG32 (mmMM_INDEX_HI, aligned_pos >>31 ); +WREG32_NO_KIQ (mmMM_INDEX, ((uint32_t )aligned_pos) |0x80000000 ); +WREG32_NO_KIQ (mmMM_INDEX_HI, aligned_pos >>31 );if (!write || mask !=0xffffffff ) - value =RREG32 (mmMM_DATA); + value =RREG32_NO_KIQ (mmMM_DATA);if (write) { value &= ~mask; value |= (*(uint32_t *)buf << shift) & mask; -WREG32 (mmMM_DATA, value); +WREG32_NO_KIQ (mmMM_DATA, value);}
spin_unlock_irqrestore(&adev->mmio_idx_lock, flags); if (!write) {
--
2.12.0
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB16524AE2C44004ACBC283750F76F0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Ok done.
Cheers,
Tom
Quoted 62 lines · Alexander
Please push to amd-staging-drm-next
Quoted 60 lines
-----Original Message-----
From: StDenis, Tom
Sent: Thursday, September 14, 2017 9:05 AM
To: Deucher, Alexander; [email protected]
Subject: Re: [PATCH] drm/amd/amdgpu: Support VM environments inamdgpu_ttm_access_memory()Pushed to stg-4.13. Should I push to 4.12 too for the time being?
Tom
Quoted 2 lines · Alexander
Quoted 2 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] OnBehalf
Quoted 45 lines
Quoted 8 lines
Of Tom St Denis
Sent: Thursday, September 14, 2017 8:59 AM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/amd/amdgpu: Support VM environments inamdgpu_ttm_access_memory()Signed-off-by Tom St Denis <[email protected]>Reviewed-by Alex Deucher <[email protected]>Quoted 34 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +4
-4@@ -1201,14 +1201,14 @@ static int amdgpu_ttm_access_memory(struct ttm_buffer_object *bo, }spin_lock_irqsave (&adev->mmio_idx_lock, flags); -WREG32 (mmMM_INDEX, ((uint32_t )aligned_pos) | 0x80000000); -WREG32 (mmMM_INDEX_HI, aligned_pos >>31 ); +WREG32_NO_KIQ (mmMM_INDEX, ((uint32_t )aligned_pos) |0x80000000 ); +WREG32_NO_KIQ (mmMM_INDEX_HI, aligned_pos >>31 );if (!write || mask !=0xffffffff ) - value =RREG32 (mmMM_DATA); + value =RREG32_NO_KIQ (mmMM_DATA);if (write) { value &= ~mask; value |= (*(uint32_t *)buf << shift) & mask; -WREG32 (mmMM_DATA, value); +WREG32_NO_KIQ (mmMM_DATA, value);} spin_unlock_irqrestore(&adev->mmio_idx_lock, flags); if (!write) {--
2.12.0
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx