drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO
Subsystems (2)
PATCH 1/1 drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO
From: Michel Dänzer <[email protected]>
It indicates a pin/unpin imbalance bug somewhere. While the bug isn't necessarily in the call chain hitting this, it's at least one part involved.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -1
@@ -912,7 +912,7 @@ int amdgpu_bo_unpin(struct amdgpu_bo *bo)struct ttm_operation_ctx ctx = { false, false };int r, i; -if (!bo->pin_count) { +if (WARN_ON_ONCE (!bo->pin_count)) {dev_warn (adev->dev,"%p unpin not necessary\n" , bo);return 0 ; }
Signature · 6 lines
2.20.0.rc2 _______________________________________________ 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): 20181213160635.2182-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Deucher, Alexander
Reviewed-by Alex Deucher________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Michel Dänzer <[email protected]>
Sent: Thursday, December 13, 2018 11:06:35 AM
To: [email protected]
Subject: [PATCH] drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO
From: Michel Dänzer <[email protected]>
It indicates a pin/unpin imbalance bug somewhere. While the bug isn't necessarily in the call chain hitting this, it's at least one part involved.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -1
@@ -912,7 +912,7 @@ int amdgpu_bo_unpin(struct amdgpu_bo *bo)struct ttm_operation_ctx ctx = { false, false };int r, i; -if (!bo->pin_count) { +if (WARN_ON_ONCE (!bo->pin_count)) {dev_warn (adev->dev,"%p unpin not necessary\n" , bo);return 0 ; }
--
2.20.0.rc2
_______________________________________________
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