drm/ttm: Don't count pages in SG BOs against pages_limit
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 14 Apr 2021 06:48:03 +0000 (02:48 -0400)
committerChristian König <christian.koenig@amd.com>
Wed, 21 Apr 2021 13:35:20 +0000 (15:35 +0200)
commita4394b6d0a273941a75ebe86a86d6416d536ed0f
tree95011e5fa8a935c22607d24f5b0828bebcd4dcdd
parent8a9d24f222ea1b1c20dffbc62bff736f3f94b768
drm/ttm: Don't count pages in SG BOs against pages_limit

Pages in SG BOs were not allocated by TTM. So don't count them against
TTM's pages limit.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210414064804.29356-9-Felix.Kuehling@amd.com
drivers/gpu/drm/ttm/ttm_tt.c