RE: [PATCH 3/3] drm/amdgpu/mes: warn on unexpected pipe numbers

2025-03-27 Thread Liu, Shaoyun
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Shaoyun.liu -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Thursday, March 20, 2025 10:23 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 3/3] drm/amdgpu/mes: warn on une

[PATCH 11/18] drm/pm/legacy-dpm: move SI away from sid.h and si_enums.h

2025-03-27 Thread Alexandre Demers
Replace defines for the ones under smu_6_0_d.h and smu_6_0_sh_mask.h Signed-off-by: Alexandre Demers --- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 338 +++-- drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 36 +-- 2 files changed, 190 insertions(+), 184 deletions(-) diff --git

[PATCH 1/3] drm/amdgpu/gfx: make amdgpu_gfx_me_queue_to_bit() static

2025-03-27 Thread Alex Deucher
It's not used outside of amdgpu_gfx.c. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/a

[PATCH 10/18] drm/amdgpu: add missing SMU6 defines, shifts and masks

2025-03-27 Thread Alexandre Demers
They will be used later when switching away from sid.h/si_enums.h. Signed-off-by: Alexandre Demers --- .../drm/amd/include/asic_reg/smu/smu_6_0_d.h | 44 .../include/asic_reg/smu/smu_6_0_sh_mask.h| 190 +- 2 files changed, 230 insertions(+), 4 deletions(-) diff --git

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

2025-03-27 Thread Alexandre Demers
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 garbage can for anything and everything when moving SI code from radeon to amdgpu. Where needed, the defines found under sid.h and si_enums.h were

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

2025-03-27 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] drm/amd/display: removed unused function

2025-03-27 Thread James Flowers
Removed unused function mpc401_get_3dlut_fast_load_status. Signed-off-by: James Flowers --- drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h | 17 - .../drm/amd/display/dc/mpc/dcn401/dcn401_mpc.c | 11 --- .../drm/amd/display/dc/mpc/dcn401/dcn401_mpc.h | 14 -

Re: [PATCH 02/14] drm/amd: Avoid showing an error about memory allocation in amdgpu_acpi_enumerate_xcc()

2025-03-27 Thread Lazar, Lijo
On 3/28/2025 2:08 AM, Mario Limonciello wrote: > From: Mario Limonciello > > checkpatch.pl complains about unnecessary error messages for failing > to allocate memory. These aren't needed when the return code is -ENOMEM. It's not about the error code. It conveys till what stage driver proceed

[PATCH] Revert "drm/amdgpu: Increase KIQ invalidate_tlbs timeout"

2025-03-27 Thread Jay Cornwall
This reverts commit fdb90033846e2f23dfaaa01dc47fec7b94704d0e. Reportedly causing unknown issue in memory management code: [ 128.047288] amdgpu :65:00.0: amdgpu: Failed to map peer::46:00.0 mem_domain:2 [...] [ 137.815340] WARNING: CPU: 81 PID: 1006 at drivers/gpu/drm/ttm/ttm_bo.c:613

RE: [PATCH] drm/amdkfd: limit sdma queue reset caps flagging for gfx9

2025-03-27 Thread Zhang, Jesse(Jie)
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Jesse Zhang -Original Message- From: amd-gfx On Behalf Of Jonathan Kim Sent: Thursday, March 27, 2025 11:54 PM To: amd-gfx@lists.freedesktop.org Cc: Belanger, David ; Kasiviswanathan, Harish ; Kim, Jonathan Subject:

[PATCH v2 53/59] drm-dyndbg: add DRM_CLASSMAP_USE to udl driver

2025-03-27 Thread Jim Cromie
The udl driver has a number of DRM_UT_* debugs, make them controllable when CONFIG_DRM_USE_DYNAMIC_DEBUG=y by telling dyndbg that the module uses them. Signed-off-by: Jim Cromie --- drivers/gpu/drm/udl/udl_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/udl/udl_main.

RE: [PATCH] drm/amd/display: port the workload profile setting logic into dm

2025-03-27 Thread Feng, Kenneth
[AMD Official Use Only - AMD Internal Distribution Only] -Original Message- From: Alex Deucher Sent: Thursday, March 27, 2025 10:09 PM To: Feng, Kenneth Cc: amd-gfx@lists.freedesktop.org; Wang, Yang(Kevin) ; Deucher, Alexander ; Wentland, Harry Subject: Re: [PATCH] drm/amd/display: po

[pull] amdgpu drm-next-6.15

2025-03-27 Thread Alex Deucher
Hi Dave, Simona, Fixes for 6.15. The following changes since commit cf05922d63e2ae6a9b1b52ff5236a44c3b29f78c: Merge tag 'drm-intel-gt-next-2025-03-12' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next (2025-03-25 08:21:07 +1000) are available in the Git repository at: https

[PATCH v2 58/59] drm: restore CONFIG_DRM_USE_DYNAMIC_DEBUG un-BROKEN

2025-03-27 Thread Jim Cromie
Time for some thorough CI. Also, the previous 18 patches could perhaps be replaced by a single invocation of DYNDBG_CLASSMAP_USE, from a C-file linked into all drm drivers & helpers. I didn't find such a file, nor a drm-client linkage item in the Makefile. Signed-off-by: Jim Cromie --- drivers

Re: [PATCH v2 34/59] checkpatch: dont warn about unused macro arg on empty body

2025-03-27 Thread Joe Perches
On Thu, 2025-03-20 at 12:52 -0600, Jim Cromie wrote: > we currently get: > WARNING: Argument 'name' is not used in function-like macro > on: > #define DRM_CLASSMAP_USE(name) /* nothing here */ > > Following this advice is wrong here, and shouldn't be fixed by > ignoring args altogether; the m

Re: Try to fix amdgpu's error handling

2025-03-27 Thread Danilo Krummrich
On Tue, Mar 18, 2025 at 01:03:11PM +0100, Christian König wrote: > Hi guys, > > as partially discussed on the list already amdgpu has a bug in it's gang > submission code. > > Basic problem is to add the correct dependency to the gang leader we > need to arm the other gang members first, but that

Re: [PATCH V8 09/43] drm/colorop: Add atomic state print for drm_colorop

2025-03-27 Thread Simon Ser
Reviewed-by: Simon Ser

Re: [PATCH V8 08/43] drm/colorop: Add NEXT property

2025-03-27 Thread Simon Ser
Reviewed-by: Simon Ser

[PATCH V2 1/3] drm/amd/display: Protect FPU in dml21_copy()

2025-03-27 Thread Huacai Chen
Commit 7da55c27e76749b9 ("drm/amd/display: Remove incorrect FP context start") removes the FP context protection of dml2_create(), and it said "All the DC_FP_START/END should be used before call anything from DML2". However, dml21_copy() are not protected from their callers, causing such errors:

[PATCH 14/14] drm/amd: Drop 'amdgpu' from pr_fmt()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello As the driver uses drm_*() macros to print messages it's not necessary to include amdgpu a second time in all messages. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 12 drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.

Re: commit 7ffb791423c7 breaks steam game

2025-03-27 Thread Balbir Singh
On 3/27/25 21:53, Ingo Molnar wrote: > > * Balbir Singh wrote: > >>> Yes, turning off CONFIG_HSA_AMD_SVM fixes the issue, the strange memory >>> resource  >>> afe-aff : :03:00.0 >>> is gone. >>> >>> If one would add a max_pyhs_addr argument to devm_request_free_mem_region() >

[PATCH 09/14] drm/amd: Adjust amdgpu connector messages from DRM_*() to drm_*()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Messages emitted from amdgpu connector are currently with legacy DRM macros. These don't show which device they are using. To make messages clearer in multi-GPU systems adjust to drm_*() macros. Signed-off-by: Mario Limonciello --- .../gpu/drm/amd/amdgpu/amdgpu_connecto

[PATCH 06/14] drm/amd: Drop prototype for amdgpu_ucode_print_imu_hdr()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello There is no matching function for amdgpu_ucode_print_imu_hdr(). Drop the prototype. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h b/drivers/gpu

[PATCH 10/14] drm/amd: Adjust amdgpu_atombios messages from DRM_*() to drm_*()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Messages emitted from amdgpu_atombios are currently with legacy DRM macros. These don't show which device they are using. To make messages clearer in multi-GPU systems adjust to drm_*() macros. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_atomb

[PATCH 01/14] drm/amd: Use ACPI macros for amdgpu_acpi

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Messages emitted from amdgpu_acpi are not device specific nor DRM specific, but rather operate on ACPI handles. Adjust the messages to use ACPI macros instead. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 22 -- 1

[PATCH 12/14] drm/amd: Add struct amdgpu_device argument to amdgpu_reset_create_reset_domain()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello In order to be able to log messages specific to a GPU, add device argument into the amdgpu_reset_create_reset_domain() function. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 3 ++-

[PATCH 00/14] Convert more of amdgpu to drm_*() macros

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Several commits have gone in various parts of the driver already to convert from DRM_*() and pr_*() to drm_*() macros, but a lot of places are also still missing. This updates a lot more of the driver. Patch 13 is the biggest one, others are small tidbits and changes to s

[PATCH 08/14] drm/amd: Use drm_*() macros for all amdgpu_ucode prints

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Messages emitted from amdgpu_ucode are currently with legacy DRM macros. These don't show which device they are using. To make messages clearer in multi-GPU systems adjust to drm_*() macros. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

[PATCH 03/14] drm/amd: Convert dev_err_once() messages to drm_err_once()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello The errors for power consumption in amdgpu_acpi_is_s0ix_active() are under device scope. As they're drm errors, adjust to drm scope. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 05/14] drm/amd: Adjust atombios parser messages from DRM_*() to drm_*()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Messages emitted from atombios parser are currently with legacy DRM macros. These don't show which device they are using. To make messages clearer in multi-GPU systems adjust to drm_*() macros. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/atom.c

[PATCH 07/14] drm/amd: Add a 'struct amdgpu_device' argument to all header printers

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello To allow header printing to reflect the correct GPU, pass the device into all functions. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_

[PATCH 04/14] drm/amd: Adjust amdgpu_vpe messages from dev_*() to drm_*()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello Messages emitted in amdgpu_vpe are currently device scope, but as they are drm driver messages they should be drm scope. Adjust accordingly. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 18 ++ 1 file changed, 10 insertio

[PATCH 11/14] drm/amd: Add struct amdgpu_device into amdgpu_gfx_parse_disable_cu()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello In order for messages from amdgpu_gfx_parse_disable_cu() to be device specific pass in the device to the function and adjust all callers. Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 +

[PATCH 02/14] drm/amd: Avoid showing an error about memory allocation in amdgpu_acpi_enumerate_xcc()

2025-03-27 Thread Mario Limonciello
From: Mario Limonciello checkpatch.pl complains about unnecessary error messages for failing to allocate memory. These aren't needed when the return code is -ENOMEM. Drop such a message from amdgpu_acpi_enumerate_xcc(). Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp

RE: [PATCH] drm/amdkfd: limit sdma queue reset caps flagging for gfx9

2025-03-27 Thread Kasiviswanathan, Harish
[Public] Please add fixes tag, with that Reviewed-by: Harish Kasiviswanathan -Original Message- From: Kim, Jonathan Sent: Thursday, March 27, 2025 11:54 AM To: amd-gfx@lists.freedesktop.org Cc: Belanger, David ; Kasiviswanathan, Harish ; Kim, Jonathan Subject: [PATCH] drm/amdkfd: li

RE: [PATCH] drm/amd/pp: Fix potential NULL pointer dereference in atomctrl_initialize_mc_reg_table

2025-03-27 Thread Deucher, Alexander
[Public] > -Original Message- > From: Charles Han > Sent: Thursday, March 27, 2025 12:05 AM > To: Feng, Kenneth ; Deucher, Alexander > ; Koenig, Christian > ; airl...@gmail.com; sim...@ffwll.ch; > s...@itb.spb.ru; Huang, Tim ; Zhang, Jesse(Jie) > ; li...@treblig.org; Huang, Ray > ; rex...

Re: [PATCH] Documentation: Remove repeated word in docs

2025-03-27 Thread Alex Deucher
On Thu, Feb 13, 2025 at 2:08 AM Charles Han wrote: > > Remove the repeated word "the" in docs. > > Signed-off-by: Charles Han Applied. Thanks! Alex > --- > Documentation/gpu/amdgpu/display/dc-debug.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/gpu

Re: [PATCH] drm/amdkfd: limit sdma queue reset caps flagging for gfx9

2025-03-27 Thread Belanger, David
Reviewed-by: David Belanger On 3/27/2025 11:53 AM, Jonathan Kim wrote: > ASICs post GFX 9 are being flagged as SDMA per queue reset supported > in the KGD but KFD and scheduler FW currently have no support. > Limit SDMA queue reset capabilities to GFX 9. > > Signed-off-by: Jonathan Kim > --- >

[PATCH V8 42/43] drm/amd/display: Add AMD color pipeline doc

2025-03-27 Thread Alex Hung
From: Harry Wentland Add kernel doc for AMD color pipeline. Signed-off-by: Alex Hung Signed-off-by: Harry Wentland --- .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 122 +++--- 1 file changed, 102 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH] drm/amdkfd: Drop workaround for GC v9.4.3 revID 0

2025-03-27 Thread Apurv Mishra
remove workaround code for the early engineering samples GC v9.4.3 SOCs with revID 0 - GFX 940 & 941 - from driver Reviewed-by: Lijo Lazar Signed-off-by: Apurv Mishra --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 +++- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 14 ++ dr

[PATCH v2 10/59] dyndbg: replace classmap list with a vector

2025-03-27 Thread Jim Cromie
Classmaps are stored in an elf section/array, but currently are individually list-linked onto dyndbg's per-module ddebug_table for operation. This is unnecessary. Just like dyndbg's descriptors, classes are packed in compile order; so even with many builtin modules employing multiple classmaps, ea

[PATCH] drm/amdgpu: Add indirect L1_TLB_CNTL reg programming for VFs

2025-03-27 Thread Victor Skvortsov
VFs on some IP verions are unable to access this register directly. This register must be programmed before PSP ring is setup, so use PSP VF mailbox directly. Signed-off-by: Victor Skvortsov --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h|

[PATCH] drm/amdkfd: limit sdma queue reset caps flagging for gfx9

2025-03-27 Thread Jonathan Kim
ASICs post GFX 9 are being flagged as SDMA per queue reset supported in the KGD but KFD and scheduler FW currently have no support. Limit SDMA queue reset capabilities to GFX 9. Signed-off-by: Jonathan Kim --- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 6 +++--- 1 file changed, 3 insertions(+),

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

2025-03-27 Thread Alex Deucher
On Thu, Mar 27, 2025 at 12:16 AM Alexandre Demers wrote: > > On Mon, Mar 24, 2025 at 2:21 PM Alex Deucher wrote: > > > > On Sat, Mar 22, 2025 at 2:48 PM Alexandre Demers > > wrote: > > > > > > Bring things on a single line and fix spacing. > > > > > > Signed-off-by: Alexandre Demers > > > --- >

Re: [PATCH] drm/amdgpu: immediately use GTT for new allocations

2025-03-27 Thread Alex Deucher
On Thu, Mar 27, 2025 at 10:29 AM Christian König wrote: > > Only use GTT as a fallback if we already have a backing store. This > prevents evictions when an application constantly allocates and frees new > memory. > > Partially fixes > https://gitlab.freedesktop.org/drm/amd/-/issues/3844#note_2833

[PATCH V2 2/2] drm/amdgpu/userq: prevent runtime pm when userqs are active

2025-03-27 Thread Alex Deucher
Similar to KFD, prevent runtime pm while user queues are active. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 30 + 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv

[PATCH] drm/amdgpu: immediately use GTT for new allocations

2025-03-27 Thread Christian König
Only use GTT as a fallback if we already have a backing store. This prevents evictions when an application constantly allocates and frees new memory. Partially fixes https://gitlab.freedesktop.org/drm/amd/-/issues/3844#note_2833985. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/

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

2025-03-27 Thread Christian König
Am 27.03.25 um 13:02 schrieb Bert Karwatzki: > devm_request_free_mem_region() places resources at the end of the > physical address space, DIRECT_MAP_PHYSMEM_END. If the the dma mask > of a pci device is smaller than DIRECT_MAP_PHSYMEM_END then this > resource is not dma accessible by the device wh

Re: [PATCH] drm/amdgpu: only lock the valid list of invalidated bo

2025-03-27 Thread Christian König
Am 27.03.25 um 10:27 schrieb Prike Liang: > Before locking and traversing the user queue invalidated BO list, > it requires ensuring the VM done list is available. No it doesn't. This patch here is just a no-op. list_for_each_entry() works perfectly fine on empty lists. Regards, Christian. >

Re: [PATCH] drm/amd/display: port the workload profile setting logic into dm

2025-03-27 Thread Alex Deucher
On Thu, Mar 27, 2025 at 4:22 AM Feng, Kenneth wrote: > > [AMD Official Use Only - AMD Internal Distribution Only] > > -Original Message- > From: Alex Deucher > Sent: Wednesday, March 26, 2025 11:08 PM > To: Feng, Kenneth > Cc: amd-gfx@lists.freedesktop.org; Wang, Yang(Kevin) > ; Deucher

Re: [PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-27 Thread Christian König
Am 27.03.25 um 10:37 schrieb SRINIVASAN SHANMUGAM: > On 3/27/2025 2:54 PM, Christian König wrote: > Over all this change doesn't seem to make much sense to me. > Why exactly is isolation->spearhead not pointing to the dummy kernel job > we submit? Does the owner check or gang_subm

Re: [PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-27 Thread Alex Deucher
On Thu, Mar 27, 2025 at 5:37 AM SRINIVASAN SHANMUGAM wrote: > > > On 3/27/2025 2:54 PM, Christian König wrote: > > > Over all this change doesn't seem to make much sense to me. > > Why exactly is isolation->spearhead not pointing to the dummy kernel job we > submit? > > Does the owner check or ga

[PATCH V2 3/3] drm/amd/display: Protect FPU in dml2_validate()/dml21_validate()

2025-03-27 Thread Huacai Chen
Commit 7da55c27e76749b9 ("drm/amd/display: Remove incorrect FP context start") removes the FP context protection of dml2_create(), and it said "All the DC_FP_START/END should be used before call anything from DML2". However, dml2_validate()/dml21_validate() are not protected from their callers, ca

[PATCH V2 2/3] drm/amd/display: Protect FPU in dml2_init()/dml21_init()

2025-03-27 Thread Huacai Chen
Commit 7da55c27e76749b9 ("drm/amd/display: Remove incorrect FP context start") removes the FP context protection of dml2_create(), and it said "All the DC_FP_START/END should be used before call anything from DML2". However, dml2_init()/dml21_init() are not protected from their callers, causing su

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

2025-03-27 Thread Bert Karwatzki
devm_request_free_mem_region() places resources at the end of the physical address space, DIRECT_MAP_PHYSMEM_END. If the the dma mask of a pci device is smaller than DIRECT_MAP_PHSYMEM_END then this resource is not dma accessible by the device which can cause the device to fallback to using 32bit d

Re: [PATCH] drm/amdgpu/ip_discovery: add missing ip_discovery fw

2025-03-27 Thread Alex Deucher
Reviewed-by: Alex Deucher On Wed, Mar 26, 2025 at 8:23 AM Flora Cui wrote: > > Signed-off-by: Flora Cui > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c > b/drivers/gpu/drm/amd/amdgpu

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 gets > > placed > > by devm_request_free_

Re: commit 7ffb791423c7 breaks steam game

2025-03-27 Thread Ingo Molnar
* Balbir Singh wrote: > > Yes, turning off CONFIG_HSA_AMD_SVM fixes the issue, the strange memory > > resource  > > afe-aff : :03:00.0 > > is gone. > > > > If one would add a max_pyhs_addr argument to devm_request_free_mem_region() > > (which return the resource addr in kgd

Re: commit 7ffb791423c7 breaks steam game

2025-03-27 Thread Ingo Molnar
* Linus Torvalds wrote: > 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 gets > > placed > > by devm_request_free_mem_region() which places the memory at

RE: [PATCH v2 4/4] drm/amdgpu/gfx12: Implement the GFX12 KCQ pipe reset

2025-03-27 Thread Liang, Prike
[Public] > From: Alex Deucher > Sent: Monday, March 24, 2025 10:20 PM > To: Liang, Prike > Cc: amd-gfx@lists.freedesktop.org; Deucher, Alexander > > Subject: Re: [PATCH v2 4/4] drm/amdgpu/gfx12: Implement the GFX12 KCQ pipe > reset > > On Mon, Mar 24, 2025 at 8:01 AM Liang, Prike wrote: > > >

Re: [PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-27 Thread SRINIVASAN SHANMUGAM
On 3/27/2025 2:54 PM, Christian König wrote: Over all this change doesn't seem to make much sense to me. Why exactly is isolation->spearhead not pointing to the dummy kernel job we submit? Does the owner check or gang_submit check in amdgpu_device_enforce_isolation() fail to set up the spear

Re: [PATCH] drm/amd/display: add proper error message for vblank init

2025-03-27 Thread Mario Limonciello
On 3/21/2025 06:37, Saleemkhan Jamadar wrote: Update message to identifiy the vblank initialization fail case Signed-off-by: Saleemkhan Jamadar --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/displa

[PATCH] drm/amdgpu: only lock the valid list of invalidated bo

2025-03-27 Thread Prike Liang
Before locking and traversing the user queue invalidated BO list, it requires ensuring the VM done list is available. Signed-off-by: Prike Liang --- drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 20 ++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/

Re: [PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-27 Thread Christian König
>>> Over all this change doesn't seem to make much sense to me. >>> Why exactly is isolation->spearhead not pointing to the dummy kernel job we >>> submit? >> Does the owner check or gang_submit check in >> amdgpu_device_enforce_isolation() fail to set up the spearhead? > I'm currently debugging

RE: [PATCH] drm/amd/display: port the workload profile setting logic into dm

2025-03-27 Thread Feng, Kenneth
[AMD Official Use Only - AMD Internal Distribution Only] -Original Message- From: Alex Deucher Sent: Wednesday, March 26, 2025 11:08 PM To: Feng, Kenneth Cc: amd-gfx@lists.freedesktop.org; Wang, Yang(Kevin) ; Deucher, Alexander ; Wentland, Harry Subject: Re: [PATCH] drm/amd/display: p

2025 X.Org Foundation Membership deadline for voting in the upcoming election

2025-03-27 Thread Mark Filion
Hello, Now that the freedesktop server migration is almost done, it's time to turn our attention on the 2025 X.Org Foundation elections, which are rapidly approaching! We will be forwarding the election schedule and nominating process to the membership shortly. Please note that only current membe

[PATCH] drm/amd/pp: Fix potential NULL pointer dereference in atomctrl_initialize_mc_reg_table

2025-03-27 Thread Charles Han
The function atomctrl_initialize_mc_reg_table() and atomctrl_initialize_mc_reg_table_v2_2() does not check the return value of smu_atom_get_data_table(). If smu_atom_get_data_table() fails to retrieve vram_info, it returns NULL which is later dereferenced. Fixes: b3892e2bb519 ("drm/amd/pp: Use ato

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] [ T1] pci :03:00.0: BAR

Re: commit 7ffb791423c7 breaks steam game

2025-03-27 Thread 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 gets placed > by devm_request_free_mem_region() which places the memory at the end of the > physical address space (D

Re: [PATCH 3/3] drm/amdgpu/mes: warn on unexpected pipe numbers

2025-03-27 Thread Lazar, Lijo
On 3/20/2025 7:53 PM, Alex Deucher wrote: > Warn if the number of pipes exceeds what the MES supports. > > Signed-off-by: Alex Deucher Patches 1,2 Acked-by: Lijo Lazar Patch 3 Reviewed-by: Lijo Lazar Thanks, Lijo > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 23 +