From: Nirmoy Das <nirmoy.das@amd.com>
To: dri-devel@lists.freedesktop.org
Cc: thomas_os@shipmail.org, "Nirmoy Das" <nirmoy.das@amd.com>,
linux-graphics-maintainer@vmware.com,
"Christian König" <christian.koenig@amd.com>
Subject: [PATCH 1/1] drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move
Date: Tue, 8 Jun 2021 20:13:06 +0200 [thread overview]
Message-ID: <20210608181306.90008-1-nirmoy.das@amd.com> (raw)
In-Reply-To: <da5e1e94-4283-c929-6540-9522b1757648@amd.com>
Use ttm_bo_move_null() instead of ttm_bo_assign_mem().
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
---
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
index bfcf31bf7e37..0488042fb287 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
@@ -733,7 +733,7 @@ static int vmw_move(struct ttm_buffer_object *bo,
if (old_man->use_tt && new_man->use_tt) {
if (bo->resource->mem_type == TTM_PL_SYSTEM) {
- ttm_bo_assign_mem(bo, new_mem);
+ ttm_bo_move_null(bo, new_mem);
return 0;
}
ret = ttm_bo_wait_ctx(bo, ctx);
--
2.31.1
next prev parent reply other threads:[~2021-06-08 18:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 15:09 [PATCH 1/1] drm/vmwgfx: free bo resource before assigning new one Nirmoy Das
2021-06-08 17:28 ` Christian König
2021-06-08 17:54 ` Das, Nirmoy
2021-06-08 18:01 ` Nirmoy Das
2021-06-08 18:05 ` Das, Nirmoy
2021-06-08 18:13 ` Nirmoy Das [this message]
2021-06-09 6:38 ` [PATCH 1/1] drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move Christian König
2021-06-09 9:05 ` Das, Nirmoy
-- strict thread matches above, loose matches on Subject: below --
2021-05-03 19:00 Nirmoy Das
2021-05-03 19:02 ` Christian König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210608181306.90008-1-nirmoy.das@amd.com \
--to=nirmoy.das@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-graphics-maintainer@vmware.com \
--cc=thomas_os@shipmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.