Re: [Patch v2] drm/ttm: Allow direct reclaim to allocate local memory

2024-07-13 Thread Vlastimil Babka
ompaction. (/proc/sys/vm/compact_memory) > > Note: On certain distros such as RHEL, the proactive compaction is > disabled. (https://tinyurl.com/4f32f7rs) > > Cc: Dave Airlie > Cc: Vlastimil Babka > Cc: Daniel Vetter > Reviewed-by: Christian König > Signed-off-by: Rajneesh Bh

Re: page fault GCVM_L2_PROTECTION_FAULT_STATUS on 7900xtx Linux 6.7-rc1 with Mesa 23.3.0-rc3

2023-11-16 Thread Vlastimil Babka
On 11/16/23 20:34, Alex Deucher wrote: > On Thu, Nov 16, 2023 at 11:42 AM Vlastimil Babka wrote: >> >> On 11/14/23 05:51, Abhinav Praveen wrote: >> > Hi, >> > >> > When I start X/i3 on a 7900xtx with Linux 6.7-rc1 and Mesa 23.3_rc3, my >> > log

Re: page fault GCVM_L2_PROTECTION_FAULT_STATUS on 7900xtx Linux 6.7-rc1 with Mesa 23.3.0-rc3

2023-11-16 Thread Vlastimil Babka
On 11/14/23 05:51, Abhinav Praveen wrote: > Hi, > > When I start X/i3 on a 7900xtx with Linux 6.7-rc1 and Mesa 23.3_rc3, my > log is filled with errors like: I have same kind of errors filling my dmesg with 6.7-rc1 with Radeon RX 7600 using KDE on Wayland. I don't notice any other issues than the

Re: [PATCH 3/5] drm/amdkfd: use vma_is_stack() and vma_is_heap()

2023-07-14 Thread Vlastimil Babka
On 7/12/23 18:24, Felix Kuehling wrote: > Allocations in the heap and stack tend to be small, with several > allocations sharing the same page. Sharing the same page for different > allocations with different access patterns leads to thrashing when we > migrate data back and forth on GPU and CPU

Re: [PATCH v2 0/8] Fix several device private page reference counting issues

2022-10-25 Thread Vlastimil Babka (SUSE)
On 9/28/22 14:01, Alistair Popple wrote: > This series aims to fix a number of page reference counting issues in > drivers dealing with device private ZONE_DEVICE pages. These result in > use-after-free type bugs, either from accessing a struct page which no > longer exists because it has been remo

Re: [PATCH v1 02/14] mm: remove extra ZONE_DEVICE struct page refcount

2021-08-27 Thread Vlastimil Babka
On 8/25/21 19:49, Ralph Campbell wrote: > > On 8/25/21 4:15 AM, Vlastimil Babka wrote: >> On 8/25/21 05:48, Alex Sierra wrote: >>> From: Ralph Campbell >>> >>> ZONE_DEVICE struct pages have an extra reference count that complicates the >>> code

Re: [PATCH v1 02/14] mm: remove extra ZONE_DEVICE struct page refcount

2021-08-25 Thread Vlastimil Babka
On 8/25/21 05:48, Alex Sierra wrote: > From: Ralph Campbell > > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, > migr