From: xinhui pan <xinhui.pan@amd.com> To: amd-gfx@lists.freedesktop.org Cc: alexander.deucher@amd.com, xinhui pan <xinhui.pan@amd.com>, christian.koenig@amd.com, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/ttm: Do not add non-system domain BO into swap list Date: Wed, 24 Feb 2021 11:28:08 +0800 [thread overview] Message-ID: <20210224032808.150465-1-xinhui.pan@amd.com> (raw) BO would be added into swap list if it is validated into system domain. If BO is validated again into non-system domain, say, VRAM domain. It actually should not be in the swap list. Signed-off-by: xinhui pan <xinhui.pan@amd.com> --- drivers/gpu/drm/ttm/ttm_bo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index a97d41f4ce3c..3a10bebb75d6 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -111,6 +111,8 @@ void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo, swap = &ttm_glob.swap_lru[bo->priority]; list_move_tail(&bo->swap, swap); + } else { + list_del_init(&bo->swap); } if (bdev->funcs->del_from_lru_notify) -- 2.25.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: xinhui pan <xinhui.pan@amd.com> To: amd-gfx@lists.freedesktop.org Cc: alexander.deucher@amd.com, xinhui pan <xinhui.pan@amd.com>, christian.koenig@amd.com, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/ttm: Do not add non-system domain BO into swap list Date: Wed, 24 Feb 2021 11:28:08 +0800 [thread overview] Message-ID: <20210224032808.150465-1-xinhui.pan@amd.com> (raw) BO would be added into swap list if it is validated into system domain. If BO is validated again into non-system domain, say, VRAM domain. It actually should not be in the swap list. Signed-off-by: xinhui pan <xinhui.pan@amd.com> --- drivers/gpu/drm/ttm/ttm_bo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index a97d41f4ce3c..3a10bebb75d6 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -111,6 +111,8 @@ void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo, swap = &ttm_glob.swap_lru[bo->priority]; list_move_tail(&bo->swap, swap); + } else { + list_del_init(&bo->swap); } if (bdev->funcs->del_from_lru_notify) -- 2.25.1 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next reply other threads:[~2021-02-24 3:28 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-24 3:28 xinhui pan [this message] 2021-02-24 3:28 ` [PATCH] drm/ttm: Do not add non-system domain BO into swap list xinhui pan 2021-02-24 3:34 ` Alex Deucher 2021-02-24 3:34 ` Alex Deucher 2021-02-24 5:16 ` Chen, Guchun 2021-02-24 5:16 ` Chen, Guchun 2021-02-24 8:57 ` Christian König 2021-02-24 8:57 ` 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=20210224032808.150465-1-xinhui.pan@amd.com \ --to=xinhui.pan@amd.com \ --cc=alexander.deucher@amd.com \ --cc=amd-gfx@lists.freedesktop.org \ --cc=christian.koenig@amd.com \ --cc=dri-devel@lists.freedesktop.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: linkBe 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.