[linux-next:master] BUILD REGRESSION d0b3c8aa5e37775cd7c3ac07b256218df0fd6678

2024-01-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: d0b3c8aa5e37775cd7c3ac07b256218df0fd6678 Add linux-next specific files for 20240104 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202401041942.qrb1amzm-...@intel.com Error

[PATCH v2] drm/amdgpu: Fix the warning info in mode1 reset

2024-01-04 Thread Ma Jun
Fix the warning info below during mode1 reset. [ +0.04] Call Trace: [ +0.04] [ +0.06] ? show_regs+0x6e/0x80 [ +0.11] ? __flush_work.isra.0+0x2e8/0x390 [ +0.05] ? __warn+0x91/0x150 [ +0.09] ? __flush_work.isra.0+0x2e8/0x390 [ +0.06] ? report_bug+0x19d/0x1b0

[PATCH v2] drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'

2024-01-04 Thread Srinivasan Shanmugam
The amdgpu_gmc_vram_checking() function in emulation checks whether all of the memory range of shared system memory could be accessed by GPU, from this aspect, -EIO is returned for error scenarios. Fixes the below: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:919 gmc_v6_0_hw_init() warn: missing error c

[PATCH v2] drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'

2024-01-04 Thread Srinivasan Shanmugam
The amdgpu_gmc_vram_checking() function in emulation checks whether all of the memory range of shared system memory could be accessed by GPU, from this aspect, -EIO is returned for error scenarios. Fixes the below: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:919 gmc_v6_0_hw_init() warn: missing error c

Re: [PATCH] Revert "drm/amdkfd: Relocate TBA/TMA to opposite side of VM hole"

2024-01-04 Thread Marek Olšák
Hi, I have received information that the original commit makes all 32-bit userspace VA allocations fail, so UMDs like Mesa can't even initialize and they either crash or fail to load. If TBA/TMA was relocated to the 32-bit address range, it would explain why UMDs can't allocate anything in that ra

Re: [PATCH v2 07/14] LoongArch: Implement ARCH_HAS_KERNEL_FPU_SUPPORT

2024-01-04 Thread Samuel Holland
Hi Huacai, On 2024-01-04 3:55 AM, Huacai Chen wrote: > Hi, Samuel, > > On Thu, Dec 28, 2023 at 9:42 AM Samuel Holland > wrote: >> >> LoongArch already provides kernel_fpu_begin() and kernel_fpu_end() in >> asm/fpu.h, so it only needs to add kernel_fpu_available() and export >> the CFLAGS adjustm

[PATCH 10/10] drm/amd/display: 3.2.266

2024-01-04 Thread Rodrigo Siqueira
From: Aric Cyr This version brings along following fixes: - Improve z8/z10 support - Revert some of the VRR optimization - Improve usb4 when using MST Acked-by: Rodrigo Siqueira Signed-off-by: Aric Cyr --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 09/10] drm/amd/display: Dpia hpd status not in sync after S4

2024-01-04 Thread Rodrigo Siqueira
From: Meenakshikumar Somasundaram [Why] Dpia hpd status not in sync causing driver not enabling BW Alloc after S4. [How] Update hpd_status of the link when querying hpd state from dmub in dpia_query_hpd_status(). Reviewed-by: Nicholas Kazlauskas Acked-by: Rodrigo Siqueira Signed-off-by: Meena

[PATCH 07/10] Revert "drm/amd/display: Fix conversions between bytes and KB"

2024-01-04 Thread Rodrigo Siqueira
From: Daniel Miess This reverts commit 058d7bea47e9d9fd43dc0503b6403071c3429d91. The previous commit causes failure to light up for 1080p eDP + 8k HDMI panel combo. Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-off-by: Daniel Miess --- .../amd/display/dc/dml2/display_mode_core

[PATCH 08/10] drm/amd/display: Update z8 latency

2024-01-04 Thread Rodrigo Siqueira
From: Charlene Liu Adjust z8 latency for performance. Reviewed-by: Muhammad Ahmed Acked-by: Rodrigo Siqueira Signed-off-by: Charlene Liu --- drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/disp

[PATCH 06/10] drm/amd/display: Request usb4 bw for mst streams

2024-01-04 Thread Rodrigo Siqueira
From: Peichen Huang [WHY] When usb4 bandwidth allocation mode is enabled, driver need to request bandwidth from connection manager. For mst link, the requested bandwidth should be big enough for all remote streams. [HOW] - If mst link, the requested bandwidth should be the sum of all mst stre

[PATCH 05/10] drm/amd/display: revert "Optimize VRR updates to only necessary ones"

2024-01-04 Thread Rodrigo Siqueira
From: Martin Leung This reverts commit 64d446649677255bc6b4e1fc757d8b772b6166b1. The original commit causes regression in corner case with HDMI at specific timings. reverting from staging to get the full suite to retest Reviewed-by: Rodrigo Siqueira Signed-off-by: Martin Leung --- drivers/g

[PATCH 04/10] drm/amd/display: revert "for FPO & SubVP/DRR config program vmin/max"

2024-01-04 Thread Rodrigo Siqueira
From: Martin Leung This reverts commit 4b70dc8c46fc6e89dd1ce90d5ab7b620b25374f0. The original commit causes issues with certain features when DRR is disabled, need to revisit this change later after resolving issues with new DRR policy. Reviewed-by: Rodrigo Siqueira Signed-off-by: Martin Leung

[PATCH 02/10] drm/amd/display: To adjust dprefclk by down spread percentage

2024-01-04 Thread Rodrigo Siqueira
From: Martin Tsai [Why] Panels show corruption with high refresh rate timings when ssc is enabled. [How] Read down-spread percentage from lut to adjust dprefclk. Issues come from S0i3 with this commit has been fixed by SMU. Reviewed-by: Nicholas Kazlauskas Acked-by: Rodrigo Siqueira Signed-of

[PATCH 03/10] drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

2024-01-04 Thread Rodrigo Siqueira
From: George Shen [Why] If an OPP is used for a different OPTC without first being disconnected from the previous OPTC, unexpected behaviour can occur. This also applies to phantom pipes, which is what the current logic missed. [How] Disconnect OPPs from OPTC for phantom pipes before disabling O

[PATCH 01/10] drm/amd/display: allow z8/z10 from driver

2024-01-04 Thread Rodrigo Siqueira
From: Charlene Liu Copy StutterPeriod from DML2 into DML1 StutterPeriod parameter. Reviewed-by: Muhammad Ahmed Reviewed-by: Aric Cyr Acked-by: Rodrigo Siqueira Signed-off-by: Charlene Liu --- drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --

[PATCH 00/10] DC Patches Jan 04, 2024

2024-01-04 Thread Rodrigo Siqueira
This DC patchset brings improvements in multiple areas. In summary, we have: - Improve z8/z10 support - Revert some of the VRR optimization - Improve usb4 when using MST Thanks Siqueira Cc: Daniel Wheeler Aric Cyr (1): drm/amd/display: 3.2.266 Charlene Liu (2): drm/amd/display: allow z8/z

Re: [PATCH v5 1/2] drm/amdgpu: Auto-validate DMABuf imports in compute VMs

2024-01-04 Thread Felix Kuehling
On 2024-01-04 4:33, Christian König wrote: Am 04.01.24 um 00:15 schrieb Felix Kuehling: DMABuf imports in compute VMs are not wrapped in a kgd_mem object on the process_info->kfd_bo_list. There is no explicit KFD API call to validate them or add eviction fences to them. This patch automatically

[pull] amdgpu drm-fixes-6.7

2024-01-04 Thread Alex Deucher
Hi Dave, Sima, Happy New Year! Fixes for 6.7. The changes for SMU 13.0.6 are relatively big, but it's a new IP added in 6.7 and the changes are isolated to that IP so it should not affect anything else and this should make the IP fully functional for the 6.7 release. The rest are just bug fixes

Re: [PATCH] drm/amdgpu: Fix the warning info in mode1 reset

2024-01-04 Thread Alex Deucher
On Thu, Jan 4, 2024 at 12:55 AM Ma Jun wrote: > > Fix the warning info below during mode1 reset. > [ +0.04] Call Trace: > [ +0.04] > [ +0.06] ? show_regs+0x6e/0x80 > [ +0.11] ? __flush_work.isra.0+0x2e8/0x390 > [ +0.05] ? __warn+0x91/0x150 > [ +0.09] ? __flush_w

RE: [PATCH 3/3] drm/amdgpu/gmc11: re-enable AGP

2024-01-04 Thread Zhang, Hawking
[AMD Official Use Only - General] Series is Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Thursday, January 4, 2024 05:56 To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH 3/3] drm/amdgpu/gmc11: re-e

Re: [PATCH v3] drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()'

2024-01-04 Thread Alex Deucher
On Tue, Dec 26, 2023 at 5:10 AM Srinivasan Shanmugam wrote: > > In function 'amdgpu_device_need_post(struct amdgpu_device *adev)' - > 'adev->pm.fw' may not be released before return. > > Using the function release_firmware() to release adev->pm.fw. > > Thus fixing the below: > drivers/gpu/drm/amd/

Re: [PATCH v2] drm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_request()'

2024-01-04 Thread Alex Deucher
On Thu, Jan 4, 2024 at 4:46 AM Srinivasan Shanmugam wrote: > > Fixes the below: > drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:1404 amdgpu_ucode_request() warn: > '*fw' from request_firmware() not released on lines: 1404. > > Cc: Mario Limonciello > Cc: Lijo Lazar > Cc: Christian König > Cc: Alex

Re: [PATCH] drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR

2024-01-04 Thread Greg KH
On Thu, Jan 04, 2024 at 08:54:19AM -0500, Hamza Mahfooz wrote: > On 1/3/24 14:17, Joshua Ashton wrote: > > Thanks! Is it possible for us to get this backported too? > > Sure thing. > > Cc: sta...@vger.kernel.org This is not the correct way to submit patches for inclusion in the stable kernel t

Re: [PATCH] drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR

2024-01-04 Thread Hamza Mahfooz
On 1/3/24 14:17, Joshua Ashton wrote: Thanks! Is it possible for us to get this backported too? Sure thing. Cc: sta...@vger.kernel.org I forgot to add a Fixes: tag to this commit. It should be Fixes: 15f9dfd545a1 ("drm/amd/display: Register Colorspace property for DP and HDMI") - Joshie

[PATCH v2 11/12] drm/amdgpu: add xgmi v6.4.0 ACA support

2024-01-04 Thread Yang Wang
add xgmi v6.4.0 ACA driver support Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 63 +++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index a6c88f2

[PATCH v2 12/12] drm/amdgpu: replace MCA macro with ACA for XGMI

2024-01-04 Thread Yang Wang
use new ACA macro to instead of MCA Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index 6120

[PATCH v2 10/12] drm/amdgpu: add mmhub v1.8 ACA support

2024-01-04 Thread Yang Wang
v1: add mmhub v1.8 ACA driver support v2: use macro to define smn address value. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 88 + 1 file changed, 88 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c b/drivers/gpu/drm/amd/amd

[PATCH v2 09/12] drm/amdgpu: add sdma v4.4.2 ACA support

2024-01-04 Thread Yang Wang
v1: add sdma v4.4.2 ACA driver support v2: use macro to define smn address value. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 82 1 file changed, 82 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/a

[PATCH v2 08/12] drm/amdgpu: add gfx v9.4.3 ACA support

2024-01-04 Thread Yang Wang
v1: add gfx v9.4.3 ACA driver support v2: use macro to define smn address value. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 89 + 1 file changed, 89 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/amd/amd

[PATCH v2 06/12] drm/amdgpu: add amdgpu ras aca query interface

2024-01-04 Thread Yang Wang
v1: - add ACA error query interface v2: - Add a new helper function to determine whether to use ACA or MCA. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 8 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 105 ++

[PATCH v2 07/12] drm/amdgpu: add umc v12.0 ACA support

2024-01-04 Thread Yang Wang
add umc v12.0 ACA driver support NOTE: The bad page retirement feature will be re-implemented based on aca later. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/umc_v12_0.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v1

[PATCH v2 05/12] drm/amdgpu: add aca sysfs support

2024-01-04 Thread Yang Wang
Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 32 - drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 15 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 3 +++ 4 files changed, 51 insertions(+), 1 d

[PATCH v2 04/12] drm/amd/pm: add aca smu backend support for smu v13.0.6

2024-01-04 Thread Yang Wang
add aca smu backend support for smu v13.0.6. Signed-off-by: Yang Wang --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 139 ++ 1 file changed, 139 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6

[PATCH v2 02/12] drm/amdgpu: add ACA kernel hardware error log support

2024-01-04 Thread Yang Wang
add ACA kernel hardware error log support. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c index 756b40bde38b..f0

[PATCH v2 03/12] drm/amdgpu: add ACA bank dump debugfs support

2024-01-04 Thread Yang Wang
add ACA bank dump debugfs support Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 119 drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 14 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 + 4 files chan

[PATCH v2 01/12] drm/amdgpu: implement RAS ACA driver framework

2024-01-04 Thread Yang Wang
v1: implement new RAS ACA driver code framework. v2: - rename aca_bank_set to aca_banks. - rename aca_source_xxx to aca_handle_xxx v3: - Optimize some function implementation details. (from Hawking's suggestion) Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/amdgpu/Makefile| 2 +-

[PATCH v2 00/12] implement new ras ACA driver

2024-01-04 Thread Yang Wang
v1: - implement ACA driver v2: - Keep the old MCA driver code - add a helper function to determine different code path between ACA and MCA Yang Wang (12): drm/amdgpu: implement RAS ACA driver framework drm/amdgpu: add ACA kernel hardware error log support drm/amdgpu: add ACA bank dump deb

RE: [PATCH 05/14] drm/amdgpu: add amdgpu ras aca query interface

2024-01-04 Thread Wang, Yang(Kevin)
[AMD Official Use Only - General] thanks, will update it in next version. Best Regards, Kevin -Original Message- From: Zhang, Hawking Sent: Wednesday, January 3, 2024 8:00 PM To: Wang, Yang(Kevin) ; amd-gfx@lists.freedesktop.org Cc: Zhou1, Tao ; Chai, Thomas Subject: RE: [PATCH 05/14]

Re: [PATCH] drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'

2024-01-04 Thread Christian König
Am 04.01.24 um 11:04 schrieb Srinivasan Shanmugam: The amdgpu_gmc_vram_checking() function in emulation checks whether all of the memory range of shared system memory could be accessed by GPU, from this aspect, -EIO is returned for error scenarios. Fixes the below: drivers/gpu/drm/amd/amdgpu/gmc

[PATCH] drm/amdgpu: Fix with right return code '-EIO' in 'amdgpu_gmc_vram_checking()'

2024-01-04 Thread Srinivasan Shanmugam
The amdgpu_gmc_vram_checking() function in emulation checks whether all of the memory range of shared system memory could be accessed by GPU, from this aspect, -EIO is returned for error scenarios. Fixes the below: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:919 gmc_v6_0_hw_init() warn: missing error c

Re: [PATCH v2 07/14] LoongArch: Implement ARCH_HAS_KERNEL_FPU_SUPPORT

2024-01-04 Thread Huacai Chen
Hi, Samuel, On Thu, Dec 28, 2023 at 9:42 AM Samuel Holland wrote: > > LoongArch already provides kernel_fpu_begin() and kernel_fpu_end() in > asm/fpu.h, so it only needs to add kernel_fpu_available() and export > the CFLAGS adjustments. > > Acked-by: WANG Xuerui > Reviewed-by: Christoph Hellwig

Re: [PATCH v2] drm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_request()'

2024-01-04 Thread Christian König
Am 04.01.24 um 10:26 schrieb Srinivasan Shanmugam: Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:1404 amdgpu_ucode_request() warn: '*fw' from request_firmware() not released on lines: 1404. Cc: Mario Limonciello Cc: Lijo Lazar Cc: Christian König Cc: Alex Deucher Signed-off-

Re: [PATCH v5 1/2] drm/amdgpu: Auto-validate DMABuf imports in compute VMs

2024-01-04 Thread Christian König
Am 04.01.24 um 00:15 schrieb Felix Kuehling: DMABuf imports in compute VMs are not wrapped in a kgd_mem object on the process_info->kfd_bo_list. There is no explicit KFD API call to validate them or add eviction fences to them. This patch automatically validates and fences dymanic DMABuf imports

[PATCH v2] drm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_request()'

2024-01-04 Thread Srinivasan Shanmugam
Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:1404 amdgpu_ucode_request() warn: '*fw' from request_firmware() not released on lines: 1404. Cc: Mario Limonciello Cc: Lijo Lazar Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- v2: - Fix some indendat

Re: [PATCH] drm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_request()'

2024-01-04 Thread Christian König
Am 04.01.24 um 04:23 schrieb Srinivasan Shanmugam: Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:1404 amdgpu_ucode_request() warn: '*fw' from request_firmware() not released on lines: 1404. Cc: Mario Limonciello Cc: Lijo Lazar Cc: Christian König Cc: Alex Deucher Signed-off-