[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210321184529.59006-1-thomas_os@shipmail.org>
Date: Sun, 21 Mar 2021 19:45:27 +0100
From: Thomas Hellström (Intel)
<thomas_os@...pmail.org>
To: dri-devel@...ts.freedesktop.org
Cc: Thomas Hellström (Intel)
<thomas_os@...pmail.org>,
Christian Koenig <christian.koenig@....com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Andrew Morton <akpm@...ux-foundation.org>,
Jason Gunthorpe <jgg@...dia.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 0/2] mm,drm/ttm: Always block GUP to TTM pages
get_user_pages() to TTM pages is uwanted since TTM assumes it owns
the pages exclusively and / or sets up page-table mappings to io memory.
The first patch make sures we stop fast gup to huge TTM pages using
a trick with pmd_devmap() and pud_devmap() without a backing
dev_pagemap.
The second patch makes sure we block normal gup by setting VM_PFNMAP
Cc: Christian Koenig <christian.koenig@....com>
Cc: David Airlie <airlied@...ux.ie>
Cc: Daniel Vetter <daniel@...ll.ch>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jason Gunthorpe <jgg@...dia.com>
Cc: linux-mm@...ck.org
Cc: dri-devel@...ts.freedesktop.org
Cc: linux-kernel@...r.kernel.org
Signed-off-by: Thomas Hellström (Intel) <thomas_os@...pmail.org>
Powered by blists - more mailing lists