Re: commit 7ffb791423c7 breaks steam game

2025-04-04 Thread Bert Karwatzki
Am Sonntag, dem 23.03.2025 um 17:51 +1100 schrieb Balbir Singh: > On 3/22/25 23:23, Bert Karwatzki wrote: > > The problem occurs in this part of ttm_tt_populate(), in the nokaslr case > > the loop is entered and repeatedly run because ttm_dma32_pages allocated >

[PATCH v0] kernel: resource: add devm_request_free_mem_region_from_end()

2025-03-27 Thread Bert Karwatzki
/ Signed-off-by: Bert Karwatzki --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 3 ++- include/linux/ioport.h | 3 +++ kernel/resource.c| 31 ++-- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd

Re: commit 7ffb791423c7 breaks steam game

2025-03-27 Thread Bert Karwatzki
Am Mittwoch, dem 26.03.2025 um 15:58 -0700 schrieb Linus Torvalds: > On Wed, 26 Mar 2025 at 15:00, Bert Karwatzki wrote: > > > > As Balbir Singh found out this memory comes from amdkfd > > (kgd2kfd_init_zone_device()) with CONFIG_HSA_AMD_SVM=y. The memory ge

Re: commit 7ffb791423c7 breaks steam game

2025-03-27 Thread Bert Karwatzki
Am Dienstag, dem 25.03.2025 um 13:23 +0100 schrieb Christian König: > Am 25.03.25 um 11:14 schrieb Bert Karwatzki: > > My /proc/iomem contans two memory areas of 8G size which are > > belonging to PCI :03:00.0, one of the is the BAR reported by dmesg > > [ 0.312692] [

Re: commit 7ffb791423c7 breaks steam game

2025-03-26 Thread Bert Karwatzki
Am Mittwoch, dem 26.03.2025 um 12:50 +1100 schrieb Balbir Singh: > On 3/26/25 10:43, Balbir Singh wrote: > > On 3/26/25 10:21, Bert Karwatzki wrote: > > > Am Mittwoch, dem 26.03.2025 um 09:45 +1100 schrieb Balbir Singh: > > > > > > > > > > > &g

Re: commit 7ffb791423c7 breaks steam game

2025-03-26 Thread Bert Karwatzki
Am Mittwoch, dem 26.03.2025 um 21:36 +1100 schrieb Balbir Singh: > On 3/26/25 21:10, Bert Karwatzki wrote: > > Am Mittwoch, dem 26.03.2025 um 12:50 +1100 schrieb Balbir Singh: > > > On 3/26/25 10:43, Balbir Singh wrote: > > > > On 3/26/25 10:21, Bert Karwatzki wro

Re: commit 7ffb791423c7 breaks steam game

2025-03-26 Thread Bert Karwatzki
03:00.0: kfd_migrate: kgd2kfd_init_zone_device: range.start = 0x3ffe ranges.end = 0x3fff Bert Karwatzki

RE: commit 7ffb791423c7 breaks steam game

2025-03-25 Thread Bert Karwatzki
fe30403fff : :04:00.0 fe30404000-fe30404fff : :04:00.0 afe-aff : :03:00.0 This is the memory which shifts with nokaslr Bert Karwatzki

Re: commit 7ffb791423c7 breaks steam game

2025-03-25 Thread Bert Karwatzki
ases (c) In the non-working case amdgpu_gtt_mgr_del() is called far more often then in the working case: Non-working case (cmdline: nokaslr) 834 calls to amdgpu_gtt_mgt_del() Working case (cmdline: nokaslr amdgpu.vramlimit=512) 51 calls to amdgpu_gtt_mgr_del() Working case (cmdline: no additional arguments) 44 calls to amdgpu_gtt_mgr_del() Bert Karwatzki

RE: commit 7ffb791423c7 breaks steam game

2025-03-24 Thread Bert Karwatzki
&amdgpu_bo_driver, adev->dev, adev_to_drm(adev)->anon_inode->i_mapping, adev_to_drm(adev)->vma_offset_manager, adev->need_swiotlb, false /* use_dma32 */); if (r) { DRM_ERROR("failed initializing buffer object driver(%d).\n", r); return r; } Bert Karwatzki

Re: commit 7ffb791423c7 breaks steam game

2025-03-21 Thread Bert Karwatzki
D case ttm_global_swapout() is called 585 times leading to 54495 calls to ttm_bo_swapout_cb() while in the GOOD both function are called 0 times. Bert Karwatzki

Re: commit 7ffb791423c7 breaks steam game

2025-03-17 Thread Bert Karwatzki
Am Sonntag, dem 16.03.2025 um 14:09 +0100 schrieb Bert Karwatzki: > This is related to the admgpu.gttsize. My laptop has the maximum amount  > of memory (64G) and usually gttsize is half of main memory size. I just  > tested with cmdline="nokaslr amdgpi.gttsize=2048" and the

Re: commit 7ffb791423c7 breaks steam game

2025-03-17 Thread Bert Karwatzki
GOOD 64000 GOOD So for the discrete GPU increasing gttsize does no reproduce the bug. Bert Karwatzki

Re: commit 7ffb791423c7 breaks steam game

2025-03-15 Thread Bert Karwatzki
Am Samstag, dem 15.03.2025 um 00:34 +1100 schrieb Balbir Singh: > On 3/14/25 17:14, Balbir Singh wrote: > > On 3/14/25 09:22, Bert Karwatzki wrote: > > > Am Freitag, dem 14.03.2025 um 08:54 +1100 schrieb Balbir Singh: > > > > On 3/14/25 05:12, Bert Karwatzki wrote

Re: commit 7ffb791423c7 breaks steam game

2025-03-14 Thread Bert Karwatzki
Am Freitag, dem 14.03.2025 um 08:54 +1100 schrieb Balbir Singh: > On 3/14/25 05:12, Bert Karwatzki wrote: > > Am Donnerstag, dem 13.03.2025 um 22:47 +1100 schrieb Balbir Singh: > > > > > > > > > Anyway, I think the nokaslr result is interesting, it seems lik

commit 9d8c094ddab0 breaks Xorg/xfce4

2024-08-02 Thread Bert Karwatzki
_dm/amdgpu_dm.c | 52 +++- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 ++ 3 files changed, 53 insertions(+), 5 deletions(-) Bert Karwatzki

[PATCH] gpu: drm: amd: amdgpu: Fix calls to dev_{info,err}

2023-08-01 Thread Bert Karwatzki
radeon_atpx. Fixes: https://gitlab.freedesktop.org/drm/amd/-/issues/2744 Signed-off-by: Bert Karwatzki --- .../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 40 +-- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 30 +++--- 2 files changed, 32 insertions(+), 38 deletions

Re: [PATCH] drm/amd: use drm_kms_helper_poll_fini in amdgpu_device_suspend to avoid warning

2023-02-24 Thread Bert Karwatzki
> Regards, > > Guchun > > > > -Original Message- > > From: amd-gfx On Behalf Of > > Bert Karwatzki > > Sent: Friday, February 24, 2023 4:52 AM > > To: amd-gfx@lists.freedesktop.org > > Subject: Re: [PATCH] drm/amd: use drm_kms_helper_poll

Re: [PATCH] drm/amd: use drm_kms_helper_poll_fini in amdgpu_device_suspend to avoid warning

2023-02-24 Thread Bert Karwatzki
> Regards, > > Guchun > > > > -Original Message- > > From: amd-gfx On Behalf Of > > Bert Karwatzki > > Sent: Friday, February 24, 2023 4:52 AM > > To: amd-gfx@lists.freedesktop.org > > Subject: Re: [PATCH] drm/amd: use drm_kms_helper_poll

Re: [PATCH] drm/amd: use drm_kms_helper_poll_fini in amdgpu_device_suspend to avoid warning

2023-02-23 Thread Bert Karwatzki
Evolution seems to have garbled the first patch. >From 51cba3ae1e9f557cca8e37eb43b9b9310d0d504d Mon Sep 17 00:00:00 2001 From: Bert Karwatzki Date: Thu, 16 Feb 2023 10:34:11 +0100 Subject: [PATCH] Use drm_kms_helper_poll_fini instead of  drm_kms_helper_poll_disable in amdgpu_device.c to avoi

[PATCH] drm/amd: use drm_kms_helper_poll_fini in amdgpu_device_suspend to avoid warning

2023-02-16 Thread Bert Karwatzki
rom 51cba3ae1e9f557cca8e37eb43b9b9310d0d504d Mon Sep 17 00:00:00 2001 From: Bert Karwatzki Date: Thu, 16 Feb 2023 10:34:11 +0100 Subject: [PATCH] Use drm_kms_helper_poll_fini instead of drm_kms_helper_poll_disable in amdgpu_device.c to avoid a warning from __flush_work. Signed-off-by: Bert Karwatzki --- drivers/gpu/

Re: [PATCH] drm/amd: fix memory leak in amdgpu_cs_sync_rings

2023-02-03 Thread Bert Karwatzki
Here is the fix for (send again to test if I can get it right with Evolution) Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2360 From 6e064c9565ef0da890f3fcb2a4f6a8cd44a12fdb Mon Sep 17 00:00:00 2001 From: Bert Karwatzki Date: Thu, 2 Feb 2023 19:50:27 +0100 Subject: [PATCH] Fix memory

Re: [PATCH] drm/amd: fix memory leak in amdgpu_cs_sync_rings

2023-02-02 Thread Bert Karwatzki
I hope I got it right this time: Here is the fix for Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2360 >From 6e064c9565ef0da890f3fcb2a4f6a8cd44a12fdb Mon Sep 17 00:00:00 2001 From: Bert Karwatzki Date: Thu, 2 Feb 2023 19:50:27 +0100 Subject: [PATCH] Fix memory leak

[PATCH] drm/amd: fix memory leak in amdgpu_cs_sync_rings

2023-02-02 Thread Bert Karwatzki
r = amdgpu_sync_fence(&p->gang_leader->explicit_sync, fence); + dma_fence_put(fence); if (r) return r; } Bert Karwatzki

[PATCH 10/13] drm/amdgpu: use scheduler depenencies for CS

2022-12-22 Thread Bert Karwatzki
tlab.freedesktop.org/drm/amd/-/issues/2291 Bert Karwatzki

Re: [PATCH 10/13] drm/amdgpu: use scheduler depenencies for CS

2022-12-22 Thread Bert Karwatzki
tlab.freedesktop.org/drm/amd/-/issues/2291 Bert Karwatzki

Re: amd-staging-drm-next breaks suspend

2022-01-20 Thread Bert Karwatzki
issue by getting rid of the unneeded flag check > during gart bind: > https://patchwork.freedesktop.org/patch/469907/ > > Thanks, > > Jon > > > -Original Message- > > From: amd-gfx On Behalf Of > > Bert > > Karwatzki > > Sent: January 19, 2

Re: amd-staging-drm-next breaks suspend

2022-01-19 Thread Bert Karwatzki
n 19, 2022 at 7:48 PM Bert Karwatzki > wrote: > > > > Bisected the error and found the first bad commit to be > > d015e9861e55928a78137a2c95897bc50637fc47 is the first bad commit > > commit d015e9861e55928a78137a2c95897bc50637fc47 > > Author: Jonathan Kim > >

Re: amd-staging-drm-next breaks suspend

2022-01-19 Thread Bert Karwatzki
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 4 ++ 2 files changed, 82 insertions(+) Am Donnerstag, dem 20.01.2022 um 00:22 +0100 schrieb Bert Karwatzki: > Reverting commit 72f686438de13f121c52f58d7445570a33dfdc61 does not > change the errors: > [   

Re: amd-staging-drm-next breaks suspend

2022-01-19 Thread Bert Karwatzki
he oth GPU in the system (the integrated one at 08:00.0) Am Mittwoch, dem 19.01.2022 um 23:40 +0100 schrieb Das, Nirmoy: > > On 1/19/2022 10:59 PM, Limonciello, Mario wrote: > > [Public] > > > > > -Original Message- > > > From: Bert Karwatzki

amd-staging-drm-next breaks suspend

2022-01-19 Thread Bert Karwatzki
I just tested drm-staging-drm-next with HEAD f1b2924ee6929cb431440e6f961f06eb65d52beb: Going into suspend leads to a hang again: This is probably caused by [ 1.310551] trying to bind memory to uninitialized GART ! and/or [ 3.976438] trying to bind memory to uninitialized GART ! Here's the complet

Re: [PATCH v5] drm/amd/display: Revert W/A for hard hangs on DCN20/DCN21

2022-01-15 Thread Bert Karwatzki
Am Mittwoch, dem 12.01.2022 um 02:08 + schrieb Limonciello, Mario: > [AMD Official Use Only] > > > -Original Message- > > From: Bert Karwatzki > > Sent: Tuesday, January 11, 2022 19:12 > > To: amd-gfx@lists.freedesktop.org > > Cc: Limonciel

Re: [PATCH v5] drm/amd/display: Revert W/A for hard hangs on DCN20/DCN21

2022-01-13 Thread Bert Karwatzki
Am Mittwoch, dem 12.01.2022 um 02:08 + schrieb Limonciello, Mario: > [AMD Official Use Only] > > > -Original Message- > > From: Bert Karwatzki > > Sent: Tuesday, January 11, 2022 19:12 > > To: amd-gfx@lists.freedesktop.org > > Cc: Limonciel

[PATCH v5] drm/amd/display: Revert W/A for hard hangs on DCN20/DCN21

2022-01-11 Thread Bert Karwatzki
I just tested patch v5 applied to amd-staging-drm-next (with HEAD 26c981e27e698c251ef3241f73ac846e66ad7fc3) and suspend and resume work fine. But as amd-staging-drm-next is still based on linux-5.13 I had to replace the mediatek wlan driver by the version from linux-5.16.