[PATCH v3 19/19 5.15.y] minmax.h: remove some #defines that are only expanded once

2025-10-10 Thread Eliav Farber
From: David Laight [ Upstream commit 2b97aaf74ed534fb838d09867d09a3ca5d795208 ] The bodies of __signed_type_use() and __unsigned_type_use() are much the same size as their names - so put the bodies in the only line that expands them. Similarly __signed_type() is defined separately for 64bit and

[PATCH v2] drm/amd: Check that VPE has reached DPM0 in idle handler

2025-10-10 Thread Mario Limonciello
[Why] Newer VPE microcode has functionality that will decrease DPM level only when a workload has run for 2 or more seconds. If VPE is turned off before this DPM decrease, the SOC can get stuck with a higher DPM level. This can happen from amdgpu's ring buffer test because it's a short quick work

Re: [PATCH v3 2/5] drm/ttm: Replace multiple booleans with flags in pool init

2025-10-10 Thread kernel test robot
https://github.com/intel-lab-lkp/linux/commits/Tvrtko-Ursulin/drm-ttm-Add-getter-for-some-pool-properties/20251010-052711 base: git://anongit.freedesktop.org/drm/drm drm-next patch link: https://lore.kernel.org/r/20251008115314.55438-3-tvrtko.ursulin%40igalia.com patch subject: [PATCH v3 2/

[PATCH 5/7] drm/amdgpu: Update AMDGPU_INFO_UQ_FW_AREAS query for compute

2025-10-10 Thread Alex Deucher
Add a query for compute queues. Userspace can use this to query the size of the EOP buffers for compute user queues. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 26 + include/uapi/drm/amdgpu_drm.h | 8 2 files changed, 34

[PATCH 2/7] drm/amdgpu/userq: fix SDMA and compute validation

2025-10-10 Thread Alex Deucher
The CSA and EOP buffers have different alignement requirements. Hardcode them for now as a bug fix. A proper query will be added in a subsequent patch. Fixes: 9e46b8bb0539 ("drm/amdgpu: validate userq buffer virtual address and size") Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/

[PATCH 1/7] drm/amdgpu: drop unused structures in amdgpu_drm.h

2025-10-10 Thread Alex Deucher
These were never used and are duplicated with the interface that is used. Maybe leftovers from a previous revision of the patch that added them. Fixes: 90c448fef312 ("drm/amdgpu: add new AMDGPU_INFO subquery for userq objects") Signed-off-by: Alex Deucher --- include/uapi/drm/amdgpu_drm.h | 21

[PATCH] drm/amdkfd: Fix false positive queue buffer free warning

2025-10-10 Thread Philip Yang
If active queue buffer is freed, kfd_lookup_process_by_mm return NULL, means process exited and mm is gone, it is fine to evict queue then free queue buffer CPU mapping and memory from do_exit. Only show warning message if process mm is still alive when queue buffer is freed. Fixes: b049504e211e

[PATCH v3 6/6] drm/amdgpu: Add logic for VF data exchange region to init from dynamic crit_region offsets

2025-10-10 Thread Ellen Pan
1. Added VF logic to init data exchange region using the offsets from dynamic(v2) critical regions; Signed-off-by: Ellen Pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 88 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 1 + 2 files changed, 77 insertions(+), 12 deletio

[PATCH 2/3] drm/amdgpu: fix hung reset queue array memory allocation

2025-10-10 Thread Jonathan Kim
By design the MES will return an array result that is twice the number of hung doorbells it can report. i.e. if up k reported doorbells are supported, then the second half of the array, also of length k, holds the HQD information (type/queue/pipe) where queue 1 corresponds to index 0 and k, queue

Re: [PATCH v2 2/2] drm/amdgpu: Reserve discovery TMR only if needed

2025-10-10 Thread Alex Deucher
On Fri, Oct 10, 2025 at 11:06 AM Lijo Lazar wrote: > > For legacy SOCs, discovery binary is sideloaded. Instead of checking for > binary blob, use a flag to determine if discovery region needs to be > reserved. > > Signed-off-by: Lijo Lazar Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/am

Re: [PATCH v2 1/2] drm/amdgpu: Add amdgpu_discovery_info

2025-10-10 Thread Alex Deucher
On Fri, Oct 10, 2025 at 11:11 AM Lijo Lazar wrote: > > Add amdgpu_discovery_info structure to keep all discovery related > information. > > Signed-off-by: Lijo Lazar > --- > > v2: Remove superfluous discovery_ prefix for members (Alex) > > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 +- >

Re: [PATCH 6/6] drm/amdgpu: Add logic for VF data exchange region to init from dynamic crit_region offsets

2025-10-10 Thread Alex Deucher
On Fri, Oct 10, 2025 at 1:01 AM Ellen Pan wrote: > > 1. Added VF logic to init data exchange region using the offsets from > dynamic(v2) critical regions; > > Signed-off-by: Ellen Pan > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 88 > drivers/gpu/drm/amd/amdgpu/am

[PATCH v2 2/2] drm/amdgpu: Reserve discovery TMR only if needed

2025-10-10 Thread Lijo Lazar
For legacy SOCs, discovery binary is sideloaded. Instead of checking for binary blob, use a flag to determine if discovery region needs to be reserved. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 10 - drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.h | 1 +

[PATCH 1/2] drm/amdgpu: Add amdgpu_discovery_info

2025-10-10 Thread Lijo Lazar
Add amdgpu_discovery_info structure to keep all discovery related information. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 8 +- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 4 +- drivers/gpu/drm/amd

Re: [PATCH] drm/sched: Avoid killing entity last used by parent on child SIGKILL

2025-10-10 Thread David Rosca
On 10. 10. 25 14:28, Christian König wrote: David any objections that I take this patch and make the necessary modifications? Sure, please go ahead. Thanks, David People are pinging me about the problem. Regards, Christian. On 09.10.25 17:04, Christian König wrote: FYI On 09.10.25 09

Re: [PATCH 03/28] drm/sched: Add some more scheduling quality unit tests

2025-10-10 Thread Philipp Stanner
On Wed, 2025-10-08 at 09:53 +0100, Tvrtko Ursulin wrote: > This time round we explore the rate of submitted job queue processing > with multiple identical parallel clients. > > Example test output: > > 3 clients: >     t   cycle: min  avg max : ... >     + 0ms 

[PATCH] drm/radeon: Solve the problem of the audio options not disappearing promptly after unplugging the HDMI audio.

2025-10-10 Thread 2564278112
From: Wang Jiang The audio detection process in the Radeon driver is as follows: radeon_dvi_detect/radeon_dp_detect -> radeon_audio_detect -> radeon_audio_enable -> radeon_audio_component_notify -> radeon_audio_component_get_eld When HDMI is unplugged, radeon_dvi_detect is triggered. At this po

RE: [PATCH 4/6] drm/amdgpu: Reuse fw_vram_usage_* for dynamic critical region in SRIOV

2025-10-10 Thread Lazar, Lijo
[AMD Official Use Only - AMD Internal Distribution Only] >-Original Message- >From: Pan, Ellen >Sent: Friday, October 10, 2025 10:13 AM >To: amd-gfx@lists.freedesktop.org >Cc: Deucher, Alexander ; Koenig, Christian >; Lazar, Lijo ; Chan, Hing >Pong ; Pan, Ellen >Subject: [PATCH 4/6] drm/

[PATCH v5 13/30] dyndbg: DECLARE_DYNDBG_CLASSMAP needs stub defn

2025-10-10 Thread Jim Cromie
Add a DECLARE_DYNDBG_CLASSMAP stub/do-nothing defn, so that callers will compile properly with CONFIG_DYNAMIC_DEBUG=n Signed-off-by: Jim Cromie --- include/linux/dynamic_debug.h | 39 ++- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/include/linu

[PATCH v5 05/30] dyndbg: make ddebug_class_param union members same size

2025-10-10 Thread Jim Cromie
struct ddebug_class_param keeps a ref to the state-storage of the param; make both class-types use the same unsigned long storage type. ISTM this is simpler and safer; it avoids an irrelevant difference, and if 2 users somehow get class-type mixed up (or refer to the wrong union member), at least

[PATCH v5 02/30] docs/dyndbg: explain flags parse 1st

2025-10-10 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 v5 23/30] dyndbg-test: change do_prints testpoint to accept a loopct

2025-10-10 Thread Jim Cromie
echo 1000 > /sys/module/test_dynamic_debug/parameters/do_prints This allows its use as a scriptable load generator, to generate dynamic-prefix-emits for flag combinations vs undecorated messages. This will make it easy to assess the cost of the prefixing. Reading the ./do_prints node also prints

[PATCH v5 26/30] dyndbg: split multi-query strings with %

2025-10-10 Thread Jim Cromie
Since commit 85f7f6c0edb8 ("dynamic_debug: process multiple debug-queries on a line") Multi-query commands have been allowed: modprobe drm dyndbg="class DRM_UT_CORE +p; class DRM_UT_KMS +p" modprobe drm dyndbg=< [ 203.902703] dyndbg: query parse failed [ 203.902871] dyndbg: processed 2 quer

[PATCH v5 27/30] selftests-dyndbg: add test_mod_submod

2025-10-10 Thread Jim Cromie
This new test-fn runs 3 module/submodule modprobe scenarios, variously using both the generic dyndbg= modprobe arg, and the test-module's classmap-params to manipulate the test-mod*'s pr_debugs. In all cases, the current flag-settings are counted and tested vs expectations. The 3rd scenario recapi

[PATCH v5 12/30] dyndbg: macrofy a 2-index for-loop pattern

2025-10-10 Thread Jim Cromie
dynamic-debug has several __sections, each with , num_, and it iterates over these with a 2-index for-loop. These loops are fiddly with the 2 names. We have only 2 such loops now, but are getting more soon; lets embed/abstract the fiddlyness in the for_subvec() macro, and avoid repeating it going

[PATCH v5 14/30] dyndbg, module: make proper substructs in _ddebug_info

2025-10-10 Thread Jim Cromie
recompose struct _ddebug_info, inserting proper sub-structs. The struct currently has 2 pairs of ptr,length fields distinguished by name. Several for-loops operate on these field pairs, soon many more will be added. Looping over these blocks by respective field-pairs is repetitive and fiddly, di