Re: [PATCH] drm/amd/display: fix cursor-plane-only atomic commits not triggering pageflips

2023-12-07 Thread Harry Wentland
On 2023-12-07 14:30, Xaver Hugl wrote: Sorry, it looks like I sent this too soon. I tested the patch on a second PC and it doesn't fix the issue there. Ah, too bad. Won't merge it then. Harry Am Do., 7. Dez. 2023 um 19:25 Uhr schrieb Xaver Hugl : With VRR, every atomic commit

Re: [PATCH 1/2] drm/amdgpu/debugfs: fix error code when smc register accessors are NULL

2023-12-07 Thread Alex Deucher
Ping on this series? Alex On Mon, Nov 27, 2023 at 5:52 PM Alex Deucher wrote: > > Should be -EOPNOTSUPP. > > Fixes: 5104fdf50d32 ("drm/amdgpu: Fix a null pointer access when the smc_rreg > pointer is NULL") > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4

[PATCH] drm/amd/display: fix cursor-plane-only atomic commits not triggering pageflips

2023-12-07 Thread Xaver Hugl
With VRR, every atomic commit affecting a given display must trigger a new scanout cycle, so that userspace is able to control the refresh rate of the display. Before this commit, this was not the case for atomic commits that only contain cursor plane properties. Closes:

Re: [PATCH] drm/amdkfd: Fix sparse __rcu annotation warnings

2023-12-07 Thread Felix Kuehling
On 2023-12-05 17:20, Felix Kuehling wrote: Properly mark kfd_process->ef as __rcu and consistently access it with rcu_dereference_protected. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312052245.yfpbsgnh-...@intel.com/ Signed-off-by: Felix Kuehling

Re: [PATCH] drm/amd/display: fix cursor-plane-only atomic commits not triggering pageflips

2023-12-07 Thread Harry Wentland
On 2023-12-07 13:25, Xaver Hugl wrote: With VRR, every atomic commit affecting a given display must trigger a new scanout cycle, so that userspace is able to control the refresh rate of the display. Before this commit, this was not the case for atomic commits that only contain cursor plane

[PATCH 2/4] drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL

2023-12-07 Thread Alex Deucher
For backwards compatibility with userspace. Fixes: 47f1724db4fe ("drm/amd: Introduce `AMDGPU_PP_SENSOR_GPU_INPUT_POWER`") Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2897 Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 7 ++- 1 file changed, 6

[PATCH 4/4] drm/amdgpu/pm: clarify debugfs pm output

2023-12-07 Thread Alex Deucher
On APUs power is SoC power, not just GPU. Clarify that for UVD/VCE/VCN the IP is powered down, not disabled which can confusing and lead to concerns that the IP is actually not available. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 28 ++-- 1

[PATCH 1/4] drm/amdgpu: fix avg vs input power reporting on smu7

2023-12-07 Thread Alex Deucher
Hawaii, Bonaire, Fiji, and Tonga support average power, the others support current power. Signed-off-by: Alex Deucher --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git

[PATCH 3/4] drm/amdgpu: add new INFO IOCTL query for input power

2023-12-07 Thread Alex Deucher
Some chips provide both average and input power. Previously we just exposed average power, add a new query for input power. Example userspace: https://github.com/Umio-Yasuno/libdrm-amdgpu-sys-rs/tree/input_power Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 9

Re: [PATCH][next] drm/amd/display: Fix spelling mistake "SMC_MSG_AllowZstatesEntr" -> "SMC_MSG_AllowZstatesEntry"

2023-12-07 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Dec 7, 2023 at 6:32 AM Colin Ian King wrote: > > There is a spelling mistake in a smu_print message. Fix it. > > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH 1/2] drm/amdgpu/atom: fix vram_usagebyfirmware parsing

2023-12-07 Thread Alex Deucher
Ping on this series. Alex On Fri, Nov 17, 2023 at 11:17 AM Alex Deucher wrote: > > The changes to support vram_usagebyfirmware v2.2 changed the behavior > to explicitly match 2.1 for everything older rather than just using it > by default. If the version is 2.2 or newer, use the 2.2 parsing,

Re: [PATCH 3/3] drm/amdgpu: add new INFO IOCTL query for input power

2023-12-07 Thread Alex Deucher
On Fri, Nov 10, 2023 at 3:22 AM Lazar, Lijo wrote: > > > > On 11/10/2023 3:44 AM, Alex Deucher wrote: > > Some chips provide both average and input power. Previously > > we just exposed average power, add a new query for input > > power. > > > > Input looks like a misnomer (not the supply side,

[PATCH 1/2] drm: update drm_show_memory_stats() for dma-bufs

2023-12-07 Thread Alex Deucher
Show buffers as shared if they are shared via dma-buf as well (e.g., shared with v4l or some other subsystem). Signed-off-by: Alex Deucher Cc: Rob Clark --- drivers/gpu/drm/drm_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_file.c

[PATCH 2/2] drm/amdgpu: add shared fdinfo stats

2023-12-07 Thread Alex Deucher
Add shared stats. Useful for seeing shared memory. v2: take dma-buf into account as well Signed-off-by: Alex Deucher Cc: Rob Clark --- drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_object.h

[PATCH 0/2] fdinfo shared stats

2023-12-07 Thread Alex Deucher
We had a request to add shared buffer stats to fdinfo for amdgpu and while implementing that, Christian mentioned that just looking at the GEM handle count doesn't take into account buffers shared with other subsystems like V4L or RDMA. Those subsystems don't use GEM, so it doesn't really matter

Re: [PATCH] drm/amd/display: fix cursor-plane-only atomic commits not triggering pageflips

2023-12-07 Thread Xaver Hugl
Sorry, it looks like I sent this too soon. I tested the patch on a second PC and it doesn't fix the issue there. Am Do., 7. Dez. 2023 um 19:25 Uhr schrieb Xaver Hugl : > > With VRR, every atomic commit affecting a given display must trigger > a new scanout cycle, so that userspace is able to

[PATCH v2 15/23] drm/amdkfd: trigger pc sampling trap for aldebaran

2023-12-07 Thread James Zhu
Implement trigger pc sampling trap for aldebaran. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c

[PATCH v2 19/23] drm/amdkfd: add queue remapping

2023-12-07 Thread James Zhu
Add queue remapping to ensure that any waves executing the PC sampling part of the trap handler are done before kfd_pc_sample_stop returns, and that no new waves enter that part of the trap handler afterwards. This avoids race conditions that could lead to use-after-free. Unmapping and remapping

[PATCH v2 23/23] drm/amdkfd: bump kfd ioctl minor version for pc sampling availability

2023-12-07 Thread James Zhu
Bump the minor version to declare pc sampling feature is now available. Signed-off-by: James Zhu --- include/uapi/linux/kfd_ioctl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h index

[PATCH v2 21/23] drm/amdkfd: add pc sampling thread to trigger trap

2023-12-07 Thread James Zhu
Add a kthread to trigger pc sampling trap. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 68 +++- drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 1 + 2 files changed, 68 insertions(+), 1 deletion(-) diff --git

[PATCH v2 12/23] drm/amdgpu: use trapID 4 for host trap

2023-12-07 Thread James Zhu
Since TRAPSTS.HOST_TRAP won't work pre-gfx943, so use TTMP1 (bit 24: HT) and (bit 16-23: trapID) to identify the host trap. Signed-off-by: James Zhu --- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c |2 + .../gpu/drm/amd/amdkfd/cwsr_trap_handler.h| 2117 +

[PATCH v2 22/23] drm/amdkfd: add pc sampling release when process release

2023-12-07 Thread James Zhu
Add pc sampling release when process release, it will force to stop all activate sessions with this process. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 21 drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.h | 1 +

[PATCH v2 09/23] drm/amdkfd: add interface to trigger pc sampling trap

2023-12-07 Thread James Zhu
Add interface to trigger pc sampling trap. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h index

[PATCH v2 14/23] drm/amdkfd: trigger pc sampling trap for arcturus

2023-12-07 Thread James Zhu
Implement trigger pc sampling trap for arcturus. Signed-off-by: James Zhu --- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c| 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c

[PATCH v2 11/23] drm/amdkfd/gfx9: enable host trap

2023-12-07 Thread James Zhu
Enable host trap. Signed-off-by: James Zhu --- .../gpu/drm/amd/amdkfd/cwsr_trap_handler.h| 63 +++ .../drm/amd/amdkfd/cwsr_trap_handler_gfx9.asm | 24 --- 2 files changed, 52 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h

[PATCH v2 13/23] drm/amdgpu: add sq host trap status check

2023-12-07 Thread James Zhu
Before fire a new host trap, check the host trap status. Signed-off-by: James Zhu --- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 35 +++ .../amd/include/asic_reg/gc/gc_9_0_offset.h | 2 ++ .../amd/include/asic_reg/gc/gc_9_0_sh_mask.h | 5 +++ 3 files changed, 42

[PATCH v2 20/23] drm/amdkfd: enable pc sampling start

2023-12-07 Thread James Zhu
Enable pc sampling start. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 26 +--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c b/drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c index

[PATCH v2 17/23] drm/amdkfd: add setting trap pc sampling flag

2023-12-07 Thread James Zhu
Add setting trap pc sampling flag. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 2 ++ drivers/gpu/drm/amd/amdkfd/kfd_process.c | 13 + 2 files changed, 15 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h

[PATCH v2 16/23] drm/amdkfd: use bit operation set debug trap

2023-12-07 Thread James Zhu
1st level TMA's 2nd byte which used for trap type setting, to use bit operation to change selected bit only. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCH v2 18/23] drm/amdkfd: enable pc sampling stop

2023-12-07 Thread James Zhu
Enable pc sampling stop. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 28 +--- drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 4 +++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c

[PATCH v2 00/23] Support Host Trap Sampling for gfx941/gfx942

2023-12-07 Thread James Zhu
PC sampling is a form of software profiling, where the threads of an application are periodically interrupted and the program counter that the threads are currently attempting to execute is saved out for profiling. David Yat Sin (4): drm/amdkfd/kfd_ioctl: add pc sampling support drm/amdkfd:

[PATCH v2 02/23] drm/amdkfd: add pc sampling support

2023-12-07 Thread James Zhu
From: David Yat Sin Add pc sampling functions in amdkfd. Co-developed-by: James Zhu Signed-off-by: James Zhu Signed-off-by: David Yat Sin --- drivers/gpu/drm/amd/amdkfd/Makefile | 3 +- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 44 +++

[PATCH v2 01/23] drm/amdkfd/kfd_ioctl: add pc sampling support

2023-12-07 Thread James Zhu
From: David Yat Sin Add pc sampling support in kfd_ioctl. The user mode code which uses this new kfd_ioctl is linked to https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface with master branch. Co-developed-by: James Zhu Signed-off-by: James Zhu Signed-off-by: David Yat Sin ---

[PATCH v2 04/23] drm/amdkfd: add pc sampling mutex

2023-12-07 Thread James Zhu
Add pc sampling mutex per node, and do init/destroy in node init. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 12 drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 7 +++ 2 files changed, 19 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c

[PATCH v2 05/23] drm/amdkfd: enable pc sampling create

2023-12-07 Thread James Zhu
From: David Yat Sin Enable pc sampling create. Co-developed-by: James Zhu Signed-off-by: James Zhu Signed-off-by: David Yat Sin --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 53 +++- drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 10 2 files changed, 62

[PATCH v2 07/23] drm/amdkfd: check pcs_enrty valid

2023-12-07 Thread James Zhu
Check pcs_entry valid for pc sampling ioctl. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 33 ++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c

[PATCH v2 03/23] drm/amdkfd: enable pc sampling query

2023-12-07 Thread James Zhu
From: David Yat Sin Enable pc sampling to query system capability. Co-developed-by: James Zhu Signed-off-by: James Zhu Signed-off-by: David Yat Sin --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 54 +++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git

[PATCH v2 10/23] drm/amdkfd: trigger pc sampling trap for gfx v9

2023-12-07 Thread James Zhu
Implement trigger pc sampling trap for gfx v9. Signed-off-by: James Zhu --- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 36 +++ .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h | 7 2 files changed, 43 insertions(+) diff --git

[PATCH v2 06/23] drm/amdkfd: add trace_id return

2023-12-07 Thread James Zhu
Add trace_id return for new pc sampling creation per device, Use IDR to quickly locate pc_sampling_entry for reference. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 ++ drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 20 +++-

[PATCH v2 08/23] drm/amdkfd: enable pc sampling destroy

2023-12-07 Thread James Zhu
Enable pc sampling destroy. Signed-off-by: James Zhu --- drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c b/drivers/gpu/drm/amd/amdkfd/kfd_pc_sampling.c index

[PATCH] drm/amdgpu: xgmi_fill_topology_info

2023-12-07 Thread Vignesh Chander
1. Use the mirrored topology info to fill links for VF. The new solution is required to simplify and optimize host driver logic. Only use the new solution for VFs that support full duplex and extended_peer_link_info otherwise the info would be incomplete. 2. avoid calling extended_link_info on VF

[PATCH v2] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Hamza Mahfooz
We currently don't support dirty rectangles on hardware rotated modes. So, if a user is using hardware rotated modes with PSR-SU enabled, use PSR-SU FFU for all rotated planes (including cursor planes). Cc: sta...@vger.kernel.org Fixes: 30ebe41582d1 ("drm/amd/display: add FB_DAMAGE_CLIPS

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Mario Limonciello
Bin, KH, Thanks for the confirmation! Hamza, I think you can add a Tested-by tag for Bin too. On 12/7/2023 04:38, Bin Li wrote: Hi Mario, It's a false alarm from my side, after testing the 6.1.0-oem and 6.5.0-oem kernels, this patch works perfectly fine, sorry about that. On Thu, Dec 7,

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Hamza Mahfooz
On 12/5/23 15:29, Mario Limonciello wrote: On 12/5/2023 14:17, Hamza Mahfooz wrote: We currently don't support dirty rectangles on hardware rotated modes. So, if a user is using hardware rotated modes with PSR-SU enabled, use PSR-SU FFU for all rotated planes (including cursor planes). Here

Re: [PATCH v15 1/9] Documentation/driver-api: Add document about WBRF mechanism

2023-12-07 Thread kernel test robot
Hi Ma, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.7-rc4 next-20231207] [cannot apply to drm-misc/drm-misc-next wireless-next/main wireless/main] [If your patch is applied to the wrong git tree, kindly drop us

Re: [PATCH] drm/amd/display: Restore guard against default backlight value < 1 nit

2023-12-07 Thread Alex Deucher
On Thu, Dec 7, 2023 at 9:47 AM Mario Limonciello wrote: > > Mark reports that brightness is not restored after Xorg dpms screen blank. > > This behavior was introduced by commit d9e865826c20 ("drm/amd/display: > Simplify brightness initialization") which dropped the cached backlight > value in

[PATCH 1/2] drm/buddy: Implement tracking clear page feature

2023-12-07 Thread Arunpravin Paneer Selvam
- Add tracking clear page feature. - If driver requests cleared memory we prefer cleared memory but fallback to uncleared if we can't find the cleared blocks. when driver requests uncleared memory we try to use uncleared but fallback to cleared memory if necessary. - Driver should enable

[PATCH 2/2] drm/amdgpu: Enable clear page functionality

2023-12-07 Thread Arunpravin Paneer Selvam
Add clear page support in vram memory region. Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c| 13 +++-- .../gpu/drm/amd/amdgpu/amdgpu_res_cursor.h| 25 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 50 +++

Re: [PATCH] drm/amd/display: Restore guard against default backlight value < 1 nit

2023-12-07 Thread Harry Wentland
On 2023-12-07 10:03, Alex Deucher wrote: > On Thu, Dec 7, 2023 at 9:47 AM Mario Limonciello > wrote: >> >> Mark reports that brightness is not restored after Xorg dpms screen blank. >> >> This behavior was introduced by commit d9e865826c20 ("drm/amd/display: >> Simplify brightness

[PATCH v1] drm/amdgpu/jpeg: configure doorbell for each playback

2023-12-07 Thread Saleemkhan Jamadar
Doorbell is configured during start of each playback. v1 - add comment for the doorbell programming change (Veera) Signed-off-by: Saleemkhan Jamadar Acked-by: Leo Liu --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Kai-Heng Feng
On Thu, Dec 7, 2023 at 9:57 AM Mario Limonciello wrote: > > On 12/6/2023 19:23, Kai-Heng Feng wrote: > > On Wed, Dec 6, 2023 at 4:29 AM Mario Limonciello > > wrote: > >> > >> On 12/5/2023 14:17, Hamza Mahfooz wrote: > >>> We currently don't support dirty rectangles on hardware rotated modes. >

[PATCH][next] drm/amd/display: Fix spelling mistake "SMC_MSG_AllowZstatesEntr" -> "SMC_MSG_AllowZstatesEntry"

2023-12-07 Thread Colin Ian King
There is a spelling mistake in a smu_print message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c

Re: Regression: Radeon video card does not work with 6.6.4; works fine with 6.6.3

2023-12-07 Thread Bagas Sanjaya
[Cc'ing also amdgpu people] On Wed, Dec 06, 2023 at 05:22:20PM -0500, Dianne Skoll wrote: > Hi, > > I had to go back to 6.6.3 because 6.6.4 seems to have broken my Radeon > video setup. The full bug report: > https://bugzilla.kernel.org/show_bug.cgi?id=218238 > Can you bisect to find the

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Bin Li
Hi Mario, I found I missed the part in drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c with kai.heng's review. I will rebuild a new kernel and test it again, and reply later, sorry about that. On Thu, Dec 7, 2023 at 2:58 PM Kai-Heng Feng wrote: > On Thu, Dec 7, 2023 at 10:10 AM Mario

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Bin Li
Hi Mario, It's a false alarm from my side, after testing the 6.1.0-oem and 6.5.0-oem kernels, this patch works perfectly fine, sorry about that. On Thu, Dec 7, 2023 at 3:47 PM Bin Li wrote: > > Hi Mario, > > I found I missed the part in >

Re: [PATCH] drm/amdgpu: drop the long-double-128 powerpc check/hack

2023-12-07 Thread Christophe Leroy
Le 31/03/2023 à 12:53, Michael Ellerman a écrit : > "Daniel Kolesa" writes: >> Commit c653c591789b ("drm/amdgpu: Re-enable DCN for 64-bit powerpc") >> introduced this check as a workaround for the driver not building >> with toolchains that default to 64-bit long double. > ... >> In mainline,

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Kai-Heng Feng
On Wed, Dec 6, 2023 at 4:29 AM Mario Limonciello wrote: > > On 12/5/2023 14:17, Hamza Mahfooz wrote: > > We currently don't support dirty rectangles on hardware rotated modes. > > So, if a user is using hardware rotated modes with PSR-SU enabled, > > use PSR-SU FFU for all rotated planes

Re: [PATCH] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Kai-Heng Feng
On Thu, Dec 7, 2023 at 10:10 AM Mario Limonciello wrote: > > On 12/6/2023 20:07, Kai-Heng Feng wrote: > > On Thu, Dec 7, 2023 at 9:57 AM Mario Limonciello > > wrote: > >> > >> On 12/6/2023 19:23, Kai-Heng Feng wrote: > >>> On Wed, Dec 6, 2023 at 4:29 AM Mario Limonciello > >>> wrote: > >

Re: [PATCH v2] drm/amd/display: fix hw rotated modes when PSR-SU is enabled

2023-12-07 Thread Mario Limonciello
On 12/7/2023 08:51, Hamza Mahfooz wrote: We currently don't support dirty rectangles on hardware rotated modes. So, if a user is using hardware rotated modes with PSR-SU enabled, use PSR-SU FFU for all rotated planes (including cursor planes). Cc: sta...@vger.kernel.org Fixes: 30ebe41582d1

RE: [PATCH v1] drm/amdgpu/jpeg: configure doorbell for each playback

2023-12-07 Thread Gopalakrishnan, Veerabadhran (Veera)
[AMD Official Use Only - General] Looking good to me. Reviewed-by: Veerabadhran Gopalakrishnan Regards, Veera -Original Message- From: Jamadar, Saleemkhan Sent: Thursday, December 7, 2023 9:22 PM To: Jamadar, Saleemkhan ; Liu, Leo ; Gopalakrishnan, Veerabadhran (Veera) ;

Re: [PATCH 2/2] drm/amdgpu: Enable clear page functionality

2023-12-07 Thread Alex Deucher
On Thu, Dec 7, 2023 at 10:12 AM Arunpravin Paneer Selvam wrote: > > Add clear page support in vram memory region. > > Signed-off-by: Arunpravin Paneer Selvam > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_object.c| 13 +++-- > .../gpu/drm/amd/amdgpu/amdgpu_res_cursor.h| 25 ++ >