]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/ttm: fix incrementing the page pointer for huge pages
authorChristian König <christian.koenig@amd.com>
Wed, 10 Apr 2019 09:43:43 +0000 (11:43 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitb731cc22d4b2a87d6b834431fb5b93fcd833493f
treea842dae97763497c9edbf308da2998618ff4cc8c
parentd5e035adb82abba765cf8487ce14f75132eab896
drm/ttm: fix incrementing the page pointer for huge pages

BugLink: https://bugs.launchpad.net/bugs/1861934
commit 453393369dc9806d2455151e329c599684762428 upstream.

When we increment the counter we need to increment the pointer as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: e16858a7e6e7 drm/ttm: fix start page for huge page check in ttm_put_pages()
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Zubin Mithra <zsm@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c