[PATCH v2 32/59] docs/dyndbg: explain flags parse 1st

2025-03-22 Thread Jim Cromie
When writing queries to >control, flags are parsed 1st, since they are the only required field, and they require specific compositions. So if the flags draw an error (on those specifics), then keyword errors aren't reported. This can be mildly confusing/annoying, so explain it instead. cc: linux

[PATCH 4/5] drm/amdgpu: move X_GB_ADDR_CONFIG_GOLDEN in GFX7

2025-03-22 Thread Alexandre Demers
[BONAIRE|HAWAII]_GB_ADDR_CONFIG_GOLDEN are only used by GFX7. So keep them where they are needed. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/cikd.h | 3 --- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 5/6] drm/radeon: fix MAX_POWER_SHIFT value

2025-03-22 Thread Alexandre Demers
While I don't think it is being used anywhere, if it were used, it would be wrong. We can base this assumption on MAX_POWER_MASK, where the shift is by 16 bits. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/radeon/sid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

RE: [PATCH v2] drm/amdgpu: Increase KIQ invalidate_tlbs timeout

2025-03-22 Thread Russell, Kent
[Public] Reviewed-by: Kent Russell > -Original Message- > From: Cornwall, Jay > Sent: Saturday, March 22, 2025 10:10 AM > To: amd-gfx@lists.freedesktop.org > Cc: Cornwall, Jay ; Russell, Kent > > Subject: [PATCH v2] drm/amdgpu: Increase KIQ invalidate_tlbs timeout > > KIQ invalidate_

Re: [PATCH 5/6] drm/radeon: fix MAX_POWER_SHIFT value

2025-03-22 Thread Alexandre Demers
The title's prefix should only indicate [PATCH]. It was part of the series just sent a moment ago, but it was removed from it because it concerned drm/radeon. Alexandre On Sat, Mar 22, 2025 at 2:39 PM Alexandre Demers wrote: > > While I don't think it is being used anywhere, if it were used, it w

Re: [PATCH 6/5] drm/amdgpu: fix style in dce_v8_0.c and in vi.c

2025-03-22 Thread Alexandre Demers
This should be titled patch 5/5. There was initially another one in the lot about radeon. However, it was removed from the series and sent alone. Alexandre On Sat, Mar 22, 2025 at 2:37 PM Alexandre Demers wrote: > > Bring things on a single line and fix spacing. > > Signed-off-by: Alexandre Demer

[PATCH 2/5] drm/amdgpu: use cik_sdma_is_idle() in CIK SDMA

2025-03-22 Thread Alexandre Demers
cik_sdma_is_idle() does exactly what we need, so use it. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c index ede1a02

[PATCH 1/5] drm/amdgpu: use gmc_v7_0_is_idle() since it is available under GMC7

2025-03-22 Thread Alexandre Demers
gmc_v7_0_is_idle() does exactly what we need, so use it. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c index b601

[PATCH 6/5] drm/amdgpu: fix style in dce_v8_0.c and in vi.c

2025-03-22 Thread Alexandre Demers
Bring things on a single line and fix spacing. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 10 +++--- drivers/gpu/drm/amd/amdgpu/vi.c | 8 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/

[PATCH 3/5] drm/amdgpu: small cleanup to CIK SDMA

2025-03-22 Thread Alexandre Demers
Tidy cik_sdma_hw_init() by returning directly cik_sdma_start()'s result. Keep amdgpu_cik_gpu_check_soft_reset() early declaration with others. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

[PATCH 0/5] Small tidy up of CIK code

2025-03-22 Thread Alexandre Demers
This series tidy up CIK code a bit. It uses some functions already available to remove redundant code in GMC7 and CIK SDMA. Some GOLDEN defines are moved into GFX7, the only place where they are used. It fixes coding style in VI and DCE8. Alexandre Demers (5): drm/amdgpu: use gmc_v7_0_is_idle()

Re: [PATCH v2 00/18] Properly wire defines, shifts and masks in SI and cleanup

2025-03-22 Thread Alexandre Demers
I should have written "v2" in the title Alexandre On Fri., Mar. 21, 2025, 21:47 Alexandre Demers, < alexandre.f.dem...@gmail.com> wrote: > The following series is intented to remove duplicated defines, shifts and > masks or > to classify them where they belong. si_enums.h has been used as a garb

[PATCH v2 59/59] drm: RFC - make drm_dyndbg_user.o for drm-*_helpers, drivers

2025-03-22 Thread Jim Cromie
Add new drm_dyndbg_user.c with a single call to DYNDBG_CLASSMAP_USE(drm_debug_classes). This creates a _class_user record (and a linkage dependency). If a driver adds this object to its Makefile target, it gets the record, which authorizes dyndbg to enable the module's class'd pr_debugs, such as

[PATCH v2] drm/amdgpu: Increase KIQ invalidate_tlbs timeout

2025-03-22 Thread Jay Cornwall
KIQ invalidate_tlbs request has been seen to marginally exceed the configured 100 ms timeout on systems under load. All other KIQ requests in the driver use a 10 second timeout. Use a similar timeout implementation on the invalidate_tlbs path. v2: Poll once before msleep Signed-off-by: Jay Cornw

Re: [PATCH] drm/amdgpu: Increase KIQ invalidate_tlbs timeout

2025-03-22 Thread Jay Cornwall
On 3/21/2025 14:36, Russell, Kent wrote: Do we want to actually do a fence_wait_polling before the loop begins like in all of the other functions? I know 5ms isn't a big deal, but the other ones we have are all after a single fence_wait_polling first. Oh I see what you're saying now. This in

Re: commit 7ffb791423c7 breaks steam game

2025-03-22 Thread Balbir Singh
On 3/22/25 19:04, Ingo Molnar wrote: > > * Balbir Singh wrote: > >>> How frequently does this happen and what is the impact to users if >>> this happens? >> >> It happens a 100% of the time when the BAR space lies beyond the >> 10TiB region. > > And how frequently is the BAR space beyond the

[PATCH 15/18] drm/amdgpu: huge sid.h cleanup, drop substituted defines.

2025-03-22 Thread Alexandre Demers
Now that we are using the proper defines, cleanup useless old "substituted" defines. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/sid.h | 1219 +- 1 file changed, 9 insertions(+), 1210 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sid.h b/dr

[PATCH 06/18] drm/amdgpu: use GRPH_SECONDARY_SURFACE_ADDRESS_MASK with GRPH_SECONDARY_SURFACE_ADDRESS in DCE6

2025-03-22 Thread Alexandre Demers
It seems a copy-paste error: since we are working with mmGRPH_SECONDARY_SURFACE_ADDRESS, GRPH_SECONDARY_SURFACE_ADDRESS__GRPH_SECONDARY_SURFACE_ADDRESS_MASK should be used. Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

Re: commit 7ffb791423c7 breaks steam game

2025-03-22 Thread Ingo Molnar
* Balbir Singh wrote: > > How frequently does this happen and what is the impact to users if > > this happens? > > It happens a 100% of the time when the BAR space lies beyond the > 10TiB region. And how frequently is the BAR space beyond the 10TiB region, on modern systems? Thanks,

[PATCH v2 40/59] drm-dyndbg: DRM_CLASSMAP_USE in i915 driver

2025-03-22 Thread Jim Cromie
Following the dyndbg-api-fix, replace DECLARE_DYNDBG_CLASSMAP with DRM_CLASSMAP_USE. This refs the defined & exported classmap, rather than re-declaring it redundantly, and error-prone-ly. This resolves the appearance of "class:_UNKNOWN_" in the control file for the driver's drm_dbg()s. Fixes: f