Re: [PATCH v3] drm/amdgpu: add workarounds for VCN TMZ issue on CHIP_RAVEN

2022-03-18 Thread Paul Menzel
Dear Christian, Am 16.03.22 um 11:08 schrieb Christian König: Am 16.03.22 um 10:57 schrieb Paul Menzel: Am 16.03.22 um 10:41 schrieb Christian König: Am 16.03.22 um 07:21 schrieb Lang Yu: On 03/16/ , Paul Menzel wrote: Am 16.03.22 um 02:27 schrieb Lang Yu: On 03/15/ , Paul Menzel wrot

Re: [PATCH v2 1/2] drm: Add GPU reset sysfs event

2022-03-18 Thread Christian König
Am 17.03.22 um 18:31 schrieb Rob Clark: On Thu, Mar 17, 2022 at 10:27 AM Daniel Vetter wrote: [SNIP] (At some point, I'd like to use scheduler for the replay, and actually use drm_sched_stop()/etc.. but last time I looked there were still some sched bugs in that area which prevented me from de

Re: radeon ring 0 test failed on arm64

2022-03-18 Thread Christian König
Am 18.03.22 um 08:51 schrieb Kever Yang: On 2022/3/17 20:19, Peter Geis wrote: On Wed, Mar 16, 2022 at 11:08 PM Kever Yang wrote: Hi Peter, On 2022/3/17 08:14, Peter Geis wrote: Good Evening, I apologize for raising this email chain from the dead, but there have been some developments th

Re: radeon ring 0 test failed on arm64

2022-03-18 Thread Christian König
Am 18.03.22 um 12:24 schrieb Peter Geis: On Fri, Mar 18, 2022 at 4:35 AM Christian König wrote: Am 18.03.22 um 08:51 schrieb Kever Yang: On 2022/3/17 20:19, Peter Geis wrote: On Wed, Mar 16, 2022 at 11:08 PM Kever Yang wrote: Hi Peter, On 2022/3/17 08:14, Peter Geis wrote: Good Evening

Re: [RFC PATCH 1/4] drm/amdkfd: Improve amdgpu_vm_handle_moved

2022-03-18 Thread Christian König
Am 17.03.22 um 20:11 schrieb Felix Kuehling: Am 2022-03-17 um 04:21 schrieb Christian König: Am 17.03.22 um 01:20 schrieb Felix Kuehling: Let amdgpu_vm_handle_moved update all BO VA mappings of BOs reserved by the caller. This will be useful for handling extra BO VA mappings in KFD VMs that ar

[PATCH v9 1/4] gpu: drm: separate panel orientation property creating and value setting

2022-03-18 Thread Hsin-Yi Wang
drm_dev_register() sets connector->registration_state to DRM_CONNECTOR_REGISTERED and dev->registered to true. If drm_connector_set_panel_orientation() is first called after drm_dev_register(), it will fail several checks and results in following warning. Add a function to create panel orientation

Re: [REGRESSION] Too-low frequency limit for AMD GPU PCI-passed-through to Windows VM

2022-03-18 Thread Thorsten Leemhuis
On 18.03.22 06:43, Paul Menzel wrote: > > Am 17.03.22 um 13:54 schrieb Thorsten Leemhuis: >> On 13.03.22 19:33, James Turner wrote: >>> My understanding at this point is that the root problem is probably not in the Linux kernel but rather something else (e.g. the machine firmware or

[PATCH v9 0/4] Separate panel orientation property creating and value setting

2022-03-18 Thread Hsin-Yi Wang
Some drivers, eg. mtk_drm and msm_drm, rely on the panel to set the orientation. Panel calls drm_connector_set_panel_orientation() to create orientation property and sets the value. However, connector properties can't be created after drm_dev_register() is called. The goal is to separate the orient

Re: radeon ring 0 test failed on arm64

2022-03-18 Thread Kever Yang
On 2022/3/17 20:19, Peter Geis wrote: On Wed, Mar 16, 2022 at 11:08 PM Kever Yang wrote: Hi Peter, On 2022/3/17 08:14, Peter Geis wrote: Good Evening, I apologize for raising this email chain from the dead, but there have been some developments that have introduced even more questions. I'v

[PATCH v9 2/4] drm/mediatek: init panel orientation property

2022-03-18 Thread Hsin-Yi Wang
Init panel orientation property after connector is initialized. Let the panel driver decides the orientation value later. Signed-off-by: Hsin-Yi Wang Acked-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediate

[PATCH v9 4/4] arm64: dts: mt8183: Add panel rotation

2022-03-18 Thread Hsin-Yi Wang
krane, kakadu, and kodama boards have a default panel rotation. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra Tested-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/

Re: radeon ring 0 test failed on arm64

2022-03-18 Thread Peter Geis
On Fri, Mar 18, 2022 at 8:31 AM Christian König wrote: > > Am 18.03.22 um 12:24 schrieb Peter Geis: > > On Fri, Mar 18, 2022 at 4:35 AM Christian König > > wrote: > >> > >> > >> Am 18.03.22 um 08:51 schrieb Kever Yang: > >> > >> > >> On 2022/3/17 20:19, Peter Geis wrote: > >> > >> On Wed, Mar 16,

Re: [Intel-gfx] [PATCH v8 1/3] gpu: drm: separate panel orientation property creating and value setting

2022-03-18 Thread Hsin-Yi Wang
On Fri, Feb 18, 2022 at 11:57 PM Harry Wentland wrote: > > On 2022-02-18 07:12, Simon Ser wrote: > > On Friday, February 18th, 2022 at 12:54, Hans de Goede > > wrote: > > > >> On 2/18/22 12:39, Simon Ser wrote: > >>> On Friday, February 18th, 2022 at 11:38, Hans de Goede > >>> wrote: > >>> > >

[PATCH v9 3/4] drm/msm: init panel orientation property

2022-03-18 Thread Hsin-Yi Wang
Init panel orientation property after connector is initialized. Let the panel driver decides the orientation value later. Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers

Re: radeon ring 0 test failed on arm64

2022-03-18 Thread Peter Geis
On Fri, Mar 18, 2022 at 4:35 AM Christian König wrote: > > > > Am 18.03.22 um 08:51 schrieb Kever Yang: > > > On 2022/3/17 20:19, Peter Geis wrote: > > On Wed, Mar 16, 2022 at 11:08 PM Kever Yang wrote: > > Hi Peter, > > On 2022/3/17 08:14, Peter Geis wrote: > > Good Evening, > > I apologize for

Re: [RFC PATCH 1/4] drm/amdkfd: Improve amdgpu_vm_handle_moved

2022-03-18 Thread Felix Kuehling
Am 2022-03-18 um 08:38 schrieb Christian König: Am 17.03.22 um 20:11 schrieb Felix Kuehling: Am 2022-03-17 um 04:21 schrieb Christian König: Am 17.03.22 um 01:20 schrieb Felix Kuehling: Let amdgpu_vm_handle_moved update all BO VA mappings of BOs reserved by the caller. This will be useful fo

Re: [REGRESSION] Too-low frequency limit for AMD GPU PCI-passed-through to Windows VM

2022-03-18 Thread Alex Williamson
On Fri, 18 Mar 2022 08:01:31 +0100 Thorsten Leemhuis wrote: > On 18.03.22 06:43, Paul Menzel wrote: > > > > Am 17.03.22 um 13:54 schrieb Thorsten Leemhuis: > >> On 13.03.22 19:33, James Turner wrote: > >>> > My understanding at this point is that the root problem is probably > not

Re: [REGRESSION] Too-low frequency limit for AMD GPU PCI-passed-through to Windows VM

2022-03-18 Thread Alex Deucher
On Fri, Mar 18, 2022 at 10:46 AM Alex Williamson wrote: > > On Fri, 18 Mar 2022 08:01:31 +0100 > Thorsten Leemhuis wrote: > > > On 18.03.22 06:43, Paul Menzel wrote: > > > > > > Am 17.03.22 um 13:54 schrieb Thorsten Leemhuis: > > >> On 13.03.22 19:33, James Turner wrote: > > >>> > > My under

Re: [PATCH v2 1/2] drm: Add GPU reset sysfs event

2022-03-18 Thread Rob Clark
On Fri, Mar 18, 2022 at 12:42 AM Christian König wrote: > > Am 17.03.22 um 18:31 schrieb Rob Clark: > > On Thu, Mar 17, 2022 at 10:27 AM Daniel Vetter wrote: > >> [SNIP] > >>> (At some point, I'd like to use scheduler for the replay, and actually > >>> use drm_sched_stop()/etc.. but last time I l

Re: [REGRESSION] Too-low frequency limit for AMD GPU PCI-passed-through to Windows VM

2022-03-18 Thread Alex Williamson
On Fri, 18 Mar 2022 11:06:00 -0400 Alex Deucher wrote: > On Fri, Mar 18, 2022 at 10:46 AM Alex Williamson > wrote: > > > > On Fri, 18 Mar 2022 08:01:31 +0100 > > Thorsten Leemhuis wrote: > > > > > On 18.03.22 06:43, Paul Menzel wrote: > > > > > > > > Am 17.03.22 um 13:54 schrieb Thorsten Le

Re: [PATCH 4/7] drm/amdgpu: rework TLB flushing

2022-03-18 Thread philip yang
On 2022-03-17 9:50 a.m., Christian König wrote: Instead of tracking the VM updates through the dependencies just use a sequence counter for page table updates which indicates the need to flush the TLB. This reduces the need to flush the TLB drastically. Sig

[PATCH] drm/amd/display: Fix p-state allow debug index on dcn31

2022-03-18 Thread Nicholas Kazlauskas
[Why] It changed since dcn30 but the hubbub31 constructor hasn't been modified to reflect this. [How] Update the value in the constructor to 0x6 so we're checking the right bits for p-state allow. It worked before by accident, but can falsely assert 0 depending on HW state transitions. The most f

[pull] amdgpu, amdkfd drm-next-5.18

2022-03-18 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 5.18. The following changes since commit f6d790e5a7fe42706756c7fa1686d08d230610fc: Merge tag 'drm-intel-next-fixes-2022-03-10' of git://anongit.freedesktop.org/drm/drm-intel into drm-next (2022-03-11 13:27:00 +1000) are available in the Git repository at: https

[PATCH 0/1] Title: DC Patches March 18, 2022

2022-03-18 Thread Alex Hung
This DC patchset brings improvements in multiple areas. In summary, we highlight: * HDCP SEND AKI INIT error * fix audio format not updated after edid updated * Reduce stack size * FEC check in timing validation * Add fSMC_MSG_SetDtbClk support * Update VTEM Infopacket definition * [FW Promotion]

[PATCH 00/13] Title: DC Patches March 18, 2022

2022-03-18 Thread Alex Hung
This DC patchset brings improvements in multiple areas. In summary, we highlight: * HDCP SEND AKI INIT error * fix audio format not updated after edid updated * Reduce stack size * FEC check in timing validation * Add fSMC_MSG_SetDtbClk support * Update VTEM Infopacket definition * [FW Promotion]

[PATCH 01/13] drm/amd/display: HDCP SEND AKI INIT error

2022-03-18 Thread Alex Hung
From: Ahmad Othman [why] HDCP sends AKI INIT error in case of multiple display on dock [how] Added new checks and method to handfle display adjustment for multiple display cases Reviewed-by: Wenjing Liu Acked-by: Alex Hung Signed-off-by: Ahmad Othman --- .../gpu/drm/amd/display/modules/hdcp

[PATCH 02/13] drm/amd/display: fix audio format not updated after edid updated

2022-03-18 Thread Alex Hung
From: Charlene Liu [why] for the case edid change only changed audio format. driver still need to update stream. Reviewed-by: Alvin Lee Reviewed-by: Aric Cyr Acked-by: Alex Hung Signed-off-by: Charlene Liu --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 ins

[PATCH 03/13] drm/amd/display: Reduce stack size

2022-03-18 Thread Alex Hung
From: Rodrigo Siqueira Linux kernel enabled more compilation restrictions related to the stack size, which caused compilation failures in our code. This commit reduces the allocation size by allocating the required memory dynamically. Reviewed-by: Harry Wentland Reviewed-by: Aric Cyr Acked-by:

[PATCH 04/13] drm/amd/display: FEC check in timing validation

2022-03-18 Thread Alex Hung
From: Chiawen Huang [Why] disable/enable leads fec mismatch between hw/sw fec state. [How] check fec status to fastboot on/off. Reviewed-by: Anthony Koo Acked-by: Alex Hung Signed-off-by: Chiawen Huang --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 1 file changed, 4 insertions(+) d

[PATCH 05/13] drm/amd/display: Add fSMC_MSG_SetDtbClk support

2022-03-18 Thread Alex Hung
From: Oliver Logush [why] Needed to support dcn315 Reviewed-by: Charlene Liu Acked-by: Alex Hung Signed-off-by: Oliver Logush --- .../display/dc/clk_mgr/dcn315/dcn315_smu.c| 19 +++ .../display/dc/clk_mgr/dcn315/dcn315_smu.h| 4 +++- 2 files changed, 18 insertions(+)

[PATCH 06/13] drm/amd/display: Update VTEM Infopacket definition

2022-03-18 Thread Alex Hung
From: "Leo (Hanghong) Ma" [Why & How] The latest HDMI SPEC has updated the VTEM packet structure, so change the VTEM Infopacket defined in the driver side to align with the SPEC. Reviewed-by: Chris Park Acked-by: Alex Hung Signed-off-by: Leo (Hanghong) Ma --- .../gpu/drm/amd/display/modules/

[PATCH 07/13] drm/amd/display: [FW Promotion] Release 0.0.109.0

2022-03-18 Thread Alex Hung
From: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Alex Hung Signed-off-by: Anthony Koo --- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h b/drivers/gpu/drm/amd/display/dmu

[PATCH 08/13] drm/amd/display: 3.2.178

2022-03-18 Thread Alex Hung
From: Aric Cyr This version brings along following fixes: - HDCP SEND AKI INIT error - fix audio format not updated after edid updated - Reduce stack size - FEC check in timing validation - Add fSMC_MSG_SetDtbClk support - Update VTEM Infopacket definition - [FW Promotion] Release 0.0.109.0 Acke

[PATCH 09/13] drm/amd/display: Add support for zstate during extended vblank

2022-03-18 Thread Alex Hung
From: Gabe Teeger [why] When we enter FREESYNC_STATE_VIDEO, we want to use the extra vblank portion to enter zstate if possible. [how] When we enter freesync, a full update is triggered and the new vtotal with extra lines is passed to dml in a stream update. The time gained from extra vblank lin

Re: [PATCH 0/1] Title: DC Patches March 18, 2022

2022-03-18 Thread Hung, Alex
[AMD Official Use Only] My apology to send incorrect one. Please ignore this. An updated one will be sent. From: Hung, Alex Sent: 18 March 2022 15:44 To: amd-gfx@lists.freedesktop.org Cc: Hung, Alex Subject: [PATCH 0/1] Title: DC Patches March 18, 2022 This DC

[PATCH 10/13] drm/amd/display: remove destructive verify link for TMDS

2022-03-18 Thread Alex Hung
From: Charlene Liu [why and how] TMDS not need destructive verify link Reviewed-by: Aric Cyr Acked-by: Alan Liu Acked-by: Alex Hung Signed-off-by: Charlene Liu --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 11/13] drm/amd/dicplay: move FPU related code from dcn31 to dml/dcn31 folder

2022-03-18 Thread Alex Hung
From: Melissa Wen Creates FPU files in dml/dcn31 folder to centralize FPU operations from 3.1x drivers and moves all FPU-associated code from dcn31 driver to there. It includes the struct _vcs_dpi_ip_params_st and _vcs_dpi_soc_bounding_box_st and functions: - dcn31_calculate_wm_and_dlg_fp() - dc

[PATCH 12/13] drm/amd/display: move FPU related code from dcn315 to dml/dcn31 folder

2022-03-18 Thread Alex Hung
From: Melissa Wen Moves related structs and dcn315_update_bw_bounding_box from dcn315 driver code to dml/dcn31_fpu that centralizes FPU code for DCN 3.1x. Signed-off-by: Melissa Wen Reviewed-by: Alex Hung --- .../gpu/drm/amd/display/dc/dcn315/Makefile| 26 -- .../amd/display/dc/dcn315/dc

[PATCH 13/13] drm/amd/display: move FPU related code from dcn316 to dml/dcn31 folder

2022-03-18 Thread Alex Hung
From: Melissa Wen Moves FPU-related structs and dcn316_update_bw_bounding_box from dcn316 driver to dml/dcn31 that centralize FPU operations for DCN 3.1x Signed-off-by: Melissa Wen Reviewed-by: Alex Hung --- .../gpu/drm/amd/display/dc/dcn316/Makefile| 26 -- .../amd/display/dc/dcn316/dcn

Re: [PATCH 03/13] drm/amd/display: Reduce stack size

2022-03-18 Thread Paul Menzel
Dear Alex, dear Rodrigo, Thank you for the patch. Am 18.03.22 um 22:47 schrieb Alex Hung: From: Rodrigo Siqueira Linux kernel enabled more compilation restrictions related to the stack size, Could you please reference the commit, where that was introduced. which caused compilation failur