Skip to contentSkip to conversation

Revert "drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO"

PATCH In review Emily Deng 1 participant 2 messages Dec 25, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Emily Deng

author
#0 lore raw

PATCH 1/1 Revert "drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO"

This reverts commit 8870ff7fe439aa9d7a542579c4508ea50c0f5b6e.

---
 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
index 52fc6ba..959e244 100644
@@ -949,7 +949,7 @@ int amdgpu_bo_unpin(struct amdgpu_bo *bo)
 	struct ttm_operation_ctx ctx = { false, false };
 	int r, i;
 
-	if (WARN_ON_ONCE(!bo->pin_count)) {
+	if (!bo->pin_count) {
 		dev_warn(adev->dev, "%p unpin not necessary\n", bo);
 		return 0;
 	}
Signature · 6 lines
2.7.4

_______________________________________________
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): 1545716840-22778-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Hi,
Please ignore this patch.

Quoted 33 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Emily Deng
Sent: Tuesday, December 25, 2018 1:47 PM
To: [email protected]
Cc: Deng, Emily <[email protected]>
Subject: [PATCH] Revert "drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO"

This reverts commit 8870ff7fe439aa9d7a542579c4508ea50c0f5b6e.

---
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 -2
index 52fc6ba..959e244 100644
@@ -949,7 +949,7 @@ int amdgpu_bo_unpin(struct amdgpu_bo *bo)
 	struct ttm_operation_ctx ctx = { false, false };
 	int r, i;
 
-	if (WARN_ON_ONCE(!bo->pin_count)) {
+	if (!bo->pin_count) {
 		dev_warn(adev->dev, "%p unpin not necessary\n", bo);
 		return 0;
 	}
--

2.7.4

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