diff options
| author | Felix Kuehling <[email protected]> | 2021-07-15 19:05:37 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2021-07-16 07:22:57 +0000 |
| commit | fa5239f2af983ffdf08395a542a7d6356b6222c5 (patch) | |
| tree | 0f8338f92a816824522f6468a60217667a6a996d /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | drm/vc4: hdmi: Drop devm interrupt handler for CEC interrupts (diff) | |
| download | kernel-fa5239f2af983ffdf08395a542a7d6356b6222c5.tar.gz kernel-fa5239f2af983ffdf08395a542a7d6356b6222c5.zip | |
drm/amdgpu: workaround failed COW checks for Thunk VMAs
KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE.
is_cow_mapping returns true for these mappings, which causes mmap to fail
in ttm_bo_mmap_obj.
As a workaround, clear VM_MAYWRITE for PROT_NONE-COW mappings. This
should prevent the mapping from ever becoming writable and makes
is_cow_mapping(vm_flags) false.
Fixes: f91142c62161 ("drm/ttm: nuke VM_MIXEDMAP on BO mappings v3")
Suggested-by: Daniel Vetter <[email protected]>
Tested-by: Felix Kuehling <[email protected]>
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
