Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

From: Christoph Hellwig
Date: Tue Mar 23 2021 - 13:01:42 EST


On Tue, Mar 23, 2021 at 01:37:15PM -0300, Jason Gunthorpe wrote:
> Isn't the devmap PTE flag arch optional? Does this fall back to not
> using huge pages on arches that don't support it?
>
> Also, I feel like this code to install "pte_special" huge pages does
> not belong in the drm subsystem..

It doesn't. Unfortunately the drm code has a lot of such warts where
it pokes way to deep into VM internals.