[PATCH 3/4] mm: simplify device private page handling in hmm_range_fault

Christoph Hellwig hch at lst.de
Mon Mar 16 21:33:53 UTC 2020


On Mon, Mar 16, 2020 at 04:59:23PM -0300, Jason Gunthorpe wrote:
> However, between patch 3 and 4 doesn't this break amd gpu as it will
> return device_private pages now if not requested? Squash the two?

No change in behavior in this patch as long as HMM_PFN_DEVICE_PRIVATE
isn't set in ->pfns or ->default_flags, which is the case for both
nouveau and amdgpu.  The existing behavior is broken for private
pages not known to the driver, but that is fixed in the next patch.


More information about the amd-gfx mailing list