Re: [PATCH 2/2] drm/ttm: Fix COW check

2021-07-12 Thread Christian König
Am 10.07.21 um 02:29 schrieb Felix Kuehling: On 2021-07-09 3:37 p.m., Christian König wrote: Am 09.07.21 um 21:31 schrieb Felix Kuehling: On 2021-07-09 2:38 a.m., Christian König wrote: Am 08.07.21 um 21:36 schrieb Alex Deucher: From: Felix Kuehling KFD Thunk maps invisible VRAM BOs

Re: [PATCH 2/2] drm/ttm: Fix COW check

2021-07-09 Thread Felix Kuehling
On 2021-07-09 3:37 p.m., Christian König wrote: Am 09.07.21 um 21:31 schrieb Felix Kuehling: On 2021-07-09 2:38 a.m., Christian König wrote: Am 08.07.21 um 21:36 schrieb Alex Deucher: From: Felix Kuehling KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE. is_cow_mapping

Re: [PATCH 2/2] drm/ttm: Fix COW check

2021-07-09 Thread Felix Kuehling
On 2021-07-09 2:38 a.m., Christian König wrote: Am 08.07.21 um 21:36 schrieb Alex Deucher: From: Felix Kuehling KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE. is_cow_mapping returns true for these mappings. Add a check for vm_flags & VM_WRITE to avoid mmap failures on

Re: [PATCH 2/2] drm/ttm: Fix COW check

2021-07-09 Thread Christian König
Am 09.07.21 um 21:31 schrieb Felix Kuehling: On 2021-07-09 2:38 a.m., Christian König wrote: Am 08.07.21 um 21:36 schrieb Alex Deucher: From: Felix Kuehling KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE. is_cow_mapping returns true for these mappings. Add a check for

Re: [PATCH 2/2] drm/ttm: Fix COW check

2021-07-09 Thread Daniel Vetter
On Fri, Jul 9, 2021 at 8:38 AM Christian König wrote: > > > > Am 08.07.21 um 21:36 schrieb Alex Deucher: > > From: Felix Kuehling > > > > KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE. > > is_cow_mapping returns true for these mappings. Add a check for > > vm_flags & VM_WRITE to

Re: [PATCH 2/2] drm/ttm: Fix COW check

2021-07-09 Thread Christian König
Am 08.07.21 um 21:36 schrieb Alex Deucher: From: Felix Kuehling KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE. is_cow_mapping returns true for these mappings. Add a check for vm_flags & VM_WRITE to avoid mmap failures on private read-only or PROT_NONE mappings. I'm pretty

[PATCH 2/2] drm/ttm: Fix COW check

2021-07-08 Thread Alex Deucher
From: Felix Kuehling KFD Thunk maps invisible VRAM BOs with PROT_NONE, MAP_PRIVATE. is_cow_mapping returns true for these mappings. Add a check for vm_flags & VM_WRITE to avoid mmap failures on private read-only or PROT_NONE mappings. Fixes: f91142c62161 ("drm/ttm: nuke VM_MIXEDMAP on BO