]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Remove PageReserved manipulation from drm_pci_alloc
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 2 Feb 2020 17:16:31 +0000 (17:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Feb 2020 23:56:31 +0000 (23:56 +0000)
commit3808f0e747f464abc80380eaa5a07b42432ecc5e
tree1cefd0a278bcbad242038fb671dbcf6a74ccf5e2
parent0605f5c5210bcfb8129c9ef95f2c2aac2f916854
drm: Remove PageReserved manipulation from drm_pci_alloc

drm_pci_alloc/drm_pci_free are very thin wrappers around the core dma
facilities, and we have no special reason within the drm layer to behave
differently. In particular, since

commit b920220b383ed879d243ae3a791fff87a22a67b1
Author: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Date:   Fri Jan 15 16:51:42 2016 -0800

    page-flags: define PG_reserved behavior on compound pages

    As far as I can see there's no users of PG_reserved on compound pages.
    Let's use PF_NO_COMPOUND here.

it has been illegal to combine GFP_COMP with SetPageReserved, so lets
stop doing both and leave the dma layer to its own devices.

Reported-by: Taketo Kabe
Bug: https://gitlab.freedesktop.org/drm/intel/issues/1027
Fixes: b920220b383e ("page-flags: define PG_reserved behavior on compound pages")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: <stable@vger.kernel.org> # v4.5+
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200202171635.4039044-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_pci.c