RE: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Zhou1, Tao
[AMD Official Use Only - General] > -Original Message- > From: Zhang, Hawking > Sent: Friday, February 10, 2023 11:02 PM > To: Zhou1, Tao ; amd-gfx@lists.freedesktop.org; Yang, > Stanley ; Chai, Thomas ; Li, > Candice > Subject: RE: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if

Re: [RFC PATCH 1/9] apple-gmux: use cpu_to_be32 instead of manual reorder

2023-02-13 Thread Hans de Goede
Hi, On 2/11/23 00:30, Orlando Chamberlain wrote: > On Fri, 10 Feb 2023 20:19:27 +0100 > Hans de Goede wrote: > >> Hi, >> >> On 2/10/23 20:09, Hans de Goede wrote: >>> Hi, >>> >>> On 2/10/23 05:48, Orlando Chamberlain wrote: Currently it manually flips the byte order, but we can instead

Re: [RFC PATCH v2 00/18] Add DRM CRTC 3D LUT interface

2023-02-13 Thread Pekka Paalanen
On Fri, 10 Feb 2023 14:47:50 -0500 Harry Wentland wrote: > On 2/10/23 04:28, Pekka Paalanen wrote: > > On Thu, 9 Feb 2023 13:27:02 -0100 > > Melissa Wen wrote: > > > >> On 01/31, Pekka Paalanen wrote: > >>> On Mon, 9 Jan 2023 14:38:09 -0100 > >>> Melissa Wen wrote: > >>> > On

[PATCH] drm/amd/amdgpu: fix warining during suspend

2023-02-13 Thread Jack Xiao
Freeing memory was warned during suspend. Move the self test out of suspend. Link: https://bugzilla.redhat.com/show_bug.cgi?id=2151825 Cc: jfale...@redhat.com Signed-off-by: Jack Xiao --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 +- 2

Re: [regression][6.0] After commit b261509952bc19d1012cf732f853659be6ebc61e I see WARNING message at drivers/gpu/drm/drm_modeset_lock.c:276 drm_modeset_drop_locks+0x63/0x70

2023-02-13 Thread Mikhail Gavrilov
On Thu, Feb 9, 2023 at 10:17 PM Leo Li wrote: > > Hi Mikhail, seems like your report flew past me, thanks for the ping. > > This might be a simple issue of not backing off when deadlock was hit. > drm_atomic_normalize_zpos() can return an error code, and I ignored it > (oops!) > > Can you give

Re: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Lazar, Lijo
On 2/10/2023 2:15 PM, Tao Zhou wrote: If a UMC bad page is reserved but not freed by an application, the application may trigger uncorrectable error repeatly by accessing the page. There is amdgpu_ras_check_bad_page which checks if address is already part of an existing bad page. Can't

Re: [RFC PATCH v2 00/18] Add DRM CRTC 3D LUT interface

2023-02-13 Thread Ville Syrjälä
On Mon, Feb 13, 2023 at 11:01:31AM +0200, Pekka Paalanen wrote: > On Fri, 10 Feb 2023 14:47:50 -0500 > Harry Wentland wrote: > > > On 2/10/23 04:28, Pekka Paalanen wrote: > > > On Thu, 9 Feb 2023 13:27:02 -0100 > > > Melissa Wen wrote: > > > > > >> On 01/31, Pekka Paalanen wrote: > > >>>

RE: [PATCH 00/22] DC Patches Feb 13, 2023

2023-02-13 Thread Wheeler, Daniel
[Public] Hi all, This week this patchset was tested on the following systems: Lenovo Thinkpad T14s Gen2, with AMD Ryzen 5 5650U Lenovo Thinkpad T13s Gen4 with AMD Ryzen 5 6600U Reference AMD RX6800 These systems were tested on the following display types: eDP, (1080p 60hz [5650U])

[PATCH] drm/amd/display: Fail atomic_check early on normalize_zpos error

2023-02-13 Thread sunpeng.li
From: Leo Li [Why] drm_atomic_normalize_zpos() can return an error code when there's modeset lock contention. This was being ignored. [How] Bail out of atomic check if normalize_zpos() returns an error. Fixes: b261509952bc ("drm/amd/display: Fix double cursor on non-video RGB MPO")

Re: [PATCH] drm/amd/amdgpu: fix warining during suspend

2023-02-13 Thread Christian König
Am 13.02.23 um 11:52 schrieb Jack Xiao: Freeing memory was warned during suspend. Move the self test out of suspend. Link: https://bugzilla.redhat.com/show_bug.cgi?id=2151825 Cc: jfale...@redhat.com Signed-off-by: Jack Xiao Reviewed-by: Christian König ---

Re: [PATCH] drm/amd/display: Fail atomic_check early on normalize_zpos error

2023-02-13 Thread Hamza Mahfooz
On 2/13/23 10:51, sunpeng...@amd.com wrote: From: Leo Li [Why] drm_atomic_normalize_zpos() can return an error code when there's modeset lock contention. This was being ignored. [How] Bail out of atomic check if normalize_zpos() returns an error. Fixes: b261509952bc ("drm/amd/display: Fix

Re: [PATCH -next] drm/amd/display: Simplify bool conversion

2023-02-13 Thread Alex Deucher
Applied. Thanks. On Thu, Feb 9, 2023 at 7:59 PM Yang Li wrote: > > ./drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c:1610:68-73: > WARNING: conversion to bool not needed here > > Reported-by: Abaci Robot > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4025 >

Re: [PATCH -next] drm/amd/display: clean up some inconsistent indentings

2023-02-13 Thread Alex Deucher
Applied. Thanks! On Thu, Feb 9, 2023 at 8:06 PM Yang Li wrote: > > drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:145 > get_ddc_line() warn: inconsistent indenting > drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:201 > dc_link_construct_phy() warn: inconsistent

Re: [PATCH] drm/amd/display: Remove the unused variable ds_port

2023-02-13 Thread Alex Deucher
Applied. Thanks! On Thu, Feb 9, 2023 at 9:28 PM Jiapeng Chong wrote: > > Variable ds_port is not effectively used, so delete it. > > drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c:280:35: > warning: variable ‘ds_port’ set but not used. > > Reported-by: Abaci Robot

Re: [PATCH] drm/amd/display: Remove the unused variable pre_connection_type

2023-02-13 Thread Alex Deucher
Applied. Thanks! On Thu, Feb 9, 2023 at 9:44 PM Jiapeng Chong wrote: > > Variable pre_connection_type is not effectively used, so delete it. > > Reported-by: Abaci Robot > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4031 > Signed-off-by: Jiapeng Chong > --- >

[linux-next:master] BUILD REGRESSION 09e41676e35ab06e4bce8870ea3bf1f191c3cb90

2023-02-13 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 09e41676e35ab06e4bce8870ea3bf1f191c3cb90 Add linux-next specific files for 20230213 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202301300743.bp7dpazv-...@intel.com https

Re: [RFC PATCH v2 00/18] Add DRM CRTC 3D LUT interface

2023-02-13 Thread Melissa Wen
On 02/10, Pekka Paalanen wrote: > On Thu, 9 Feb 2023 13:27:02 -0100 > Melissa Wen wrote: > > > On 01/31, Pekka Paalanen wrote: > > > On Mon, 9 Jan 2023 14:38:09 -0100 > > > Melissa Wen wrote: > > > > > > > On 01/09, Melissa Wen wrote: > > > > > Hi, > > > > > > > > > > After collecting

Re: [RFC PATCH v2 00/18] Add DRM CRTC 3D LUT interface

2023-02-13 Thread Melissa Wen
On 02/13, Ville Syrjälä wrote: > On Mon, Feb 13, 2023 at 11:01:31AM +0200, Pekka Paalanen wrote: > > On Fri, 10 Feb 2023 14:47:50 -0500 > > Harry Wentland wrote: > > > > > On 2/10/23 04:28, Pekka Paalanen wrote: > > > > On Thu, 9 Feb 2023 13:27:02 -0100 > > > > Melissa Wen wrote: > > > > > >

[PATCH 00/10] Resolve warnings from AMDGPU

2023-02-13 Thread Arthur Grillo
Hi, This series resolve some of the warnings that appear when compiling AMDGPU with W=1. Each patch is focused in a specific warning. This is my First Patch for the GSoC Project Idea about increasing code coverage of the DRM code[1]. Thanks for reviewing! Best regards, Arthur Grillo [1]:

[PATCH 01/10] drm/amd/display: Turn global functions into static

2023-02-13 Thread Arthur Grillo
Turn global functions that are only used locally into static ones. This reduces the number of -Wmissing-prototypes warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c | 2 +- drivers/gpu/drm/amd/display/dc/irq/dcn201/irq_service_dcn201.c | 2

[PATCH 02/10] drm/amd/display: Add function prototypes to headers

2023-02-13 Thread Arthur Grillo
Add function prototypes to headers to reduce the number of -Wmissing-prototypes warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.h | 2 ++ drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hubbub.h | 2 ++ drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hubp.h

[PATCH 03/10] drm/amd/amdgpu: Add function prototypes to headers

2023-02-13 Thread Arthur Grillo
Add function prototypes to headers to reduce the number of -Wmissing-prototypes warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h

[PATCH 04/10] drm/amd/display: Add previously missing includes

2023-02-13 Thread Arthur Grillo
Add includes that were previously missing to reduce the number of -Wmissing-prototypes warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_init.c | 1 + drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_trace.c | 1 + 2 files changed, 2

[PATCH 05/10] drm/amd/display: Fix excess arguments on kernel-doc

2023-02-13 Thread Arthur Grillo
Remove arguments present on kernel-doc that are not present on the function declaration and add the new ones if present. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c| 15 +++ drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 2 +-

[PATCH 06/10] drm/amd/display: Fix implicit enum conversion

2023-02-13 Thread Arthur Grillo
Make implicit enum conversion to avoid -Wenum-conversion warning, such as: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn21/display_mode_vba_21.c:4109:88: warning: implicit conversion from ‘enum ’ to ‘enum odm_combine_mode’ [-Wenum-conversion] 4109 |

[PATCH 07/10] drm/amd/amdgpu: Deal with possible fail allocation

2023-02-13 Thread Arthur Grillo
Deal with return value of an allocation. This reduces the number of -Wunused-but-set-variable warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

[PATCH 08/10] drm/amd/display: Remove unused local variables

2023-02-13 Thread Arthur Grillo
Remove local variables that were just set but were never used. This decrease the number of -Wunused-but-set-variable warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 3 --- drivers/gpu/drm/amd/display/dc/dcn201/dcn201_dpp.c | 7

Re: [PATCH 07/10] drm/amd/amdgpu: Deal with possible fail allocation

2023-02-13 Thread Christian König
Am 13.02.23 um 21:49 schrieb Arthur Grillo: Deal with return value of an allocation. This reduces the number of -Wunused-but-set-variable warnings. Signed-off-by: Arthur Grillo --- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 08/10] drm/amd/display: Remove unused local variables

2023-02-13 Thread Alex Deucher
On Mon, Feb 13, 2023 at 3:50 PM Arthur Grillo wrote: > > Remove local variables that were just set but were never used. This > decrease the number of -Wunused-but-set-variable warnings. > > Signed-off-by: Arthur Grillo > --- > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 3 --- >

[PATCH v2] drm/amd: Don't allow s0ix on APUs older than Raven

2023-02-13 Thread Mario Limonciello
APUs before Raven didn't support s0ix. As we just relieved some of the safety checks for s0ix to improve power consumption on APUs that support it but that are missing BIOS support a new blind spot was introduced that a user could "try" to run s0ix. Plug this hole so that if users try to run

RE: [PATCH] drm/amd/amdgpu: fix warining during suspend

2023-02-13 Thread Xu, Feifei
Reviewed-by: Feifei Xu -Original Message- From: amd-gfx On Behalf Of Jack Xiao Sent: Monday, February 13, 2023 6:52 PM To: amd-gfx@lists.freedesktop.org Cc: Xiao, Jack ; jfale...@redhat.com Subject: [PATCH] drm/amd/amdgpu: fix warining during suspend Freeing memory was warned during

RE: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Zhou1, Tao
> -Original Message- > From: Lazar, Lijo > Sent: Monday, February 13, 2023 8:38 PM > To: Zhou1, Tao ; amd-gfx@lists.freedesktop.org; Zhang, > Hawking ; Yang, Stanley > ; Chai, Thomas ; Li, Candice > > Subject: Re: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new > bad page

RE: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Yang, Stanley
[AMD Official Use Only - General] > -Original Message- > From: Zhou1, Tao > Sent: Monday, February 13, 2023 4:25 PM > To: Zhang, Hawking ; amd- > g...@lists.freedesktop.org; Yang, Stanley ; Chai, > Thomas ; Li, Candice > Subject: RE: [PATCH] drm/amdgpu: don't increase UMC RAS UE count

RE: [PATCH] drm/amd/amdgpu: fix warining during suspend

2023-02-13 Thread Quan, Evan
[AMD Official Use Only - General] Reviewed-and-tested-by: Evan Quan > -Original Message- > From: amd-gfx On Behalf Of Jack > Xiao > Sent: Monday, February 13, 2023 6:52 PM > To: amd-gfx@lists.freedesktop.org > Cc: Xiao, Jack ; jfale...@redhat.com > Subject: [PATCH] drm/amd/amdgpu: fix

Re: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Lazar, Lijo
On 2/14/2023 7:56 AM, Zhou1, Tao wrote: -Original Message- From: Lazar, Lijo Sent: Monday, February 13, 2023 8:38 PM To: Zhou1, Tao ; amd-gfx@lists.freedesktop.org; Zhang, Hawking ; Yang, Stanley ; Chai, Thomas ; Li, Candice Subject: Re: [PATCH] drm/amdgpu: don't increase UMC RAS

RE: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Zhou1, Tao
> -Original Message- > From: Lazar, Lijo > Sent: Tuesday, February 14, 2023 12:55 PM > To: Zhou1, Tao ; amd-gfx@lists.freedesktop.org; Zhang, > Hawking ; Yang, Stanley > ; Chai, Thomas ; Li, Candice > > Subject: Re: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new > bad

Re: [PATCH] drm/amdgpu: don't increase UMC RAS UE count if no new bad page

2023-02-13 Thread Lazar, Lijo
On 2/14/2023 11:42 AM, Zhou1, Tao wrote: -Original Message- From: Lazar, Lijo Sent: Tuesday, February 14, 2023 12:55 PM To: Zhou1, Tao ; amd-gfx@lists.freedesktop.org; Zhang, Hawking ; Yang, Stanley ; Chai, Thomas ; Li, Candice Subject: Re: [PATCH] drm/amdgpu: don't increase UMC

[PATCH] drm/amd/display: avoid unaligned access warnings

2023-02-13 Thread Jonathan Gray
When building on OpenBSD/arm64 with clang 15, unaligned access warnings are seen when a union is embedded inside a packed struct. drm/amd/display/dmub/inc/dmub_cmd.h:941:18: error: field cursor_copy_src within 'struct dmub_rb_cmd_mall' is less aligned than 'union dmub_addr' and is usually due

[PATCH] drm/amd/pm: avoid unaligned access warnings

2023-02-13 Thread Jonathan Gray
When building on OpenBSD/arm64 with clang 15, unaligned access warnings are seen when a union is embedded inside a packed struct. drm/amd/pm/powerplay/hwmgr/vega20_pptable.h:136:17: error: field smcPPTable within 'struct _ATOM_VEGA20_POWERPLAYTABLE' is less aligned than 'PPTable_t' and is

Change TTM from using pfn to bytes

2023-02-13 Thread Christian König
Hi guys, this is an extract from Amar's earlier patch set with quite some re-ordering, bug fixes and separating changes into smaller patches. Background is that we want to use GEM/TTM to manage all kind of resources which most are not accounted in pages but rather bytes or even arbitary units

[PATCH 1/3] drm/amdgpu: use amdgpu_res_cursor in more places v2

2023-02-13 Thread Christian König
Instead of resource->start use the cursor to get this. v2 (chk): remove changes to amdgpu_bo_gpu_offset_no_check(), that won't work with the AGP aperture otherwise. Signed-off-by: Somalapuram Amaranath Reviewed-by: Christian König Signed-off-by: Christian König ---

[PATCH 2/3] drm/ttm: Change the parameters of ttm_range_man_init() from pages to bytes

2023-02-13 Thread Christian König
From: Somalapuram Amaranath Change the parameters of ttm_range_man_init_nocheck() size from page size to byte size. Cleanup the PAGE_SHIFT operation on the depended caller functions. Signed-off-by: Somalapuram Amaranath Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

[PATCH 3/3] drm/ttm: Change the meaning of the fields in the drm_mm_nodes structure from pfn to bytes v2

2023-02-13 Thread Christian König
From: Somalapuram Amaranath Change the ttm_range_man_alloc() allocation from pages to size in bytes. Fix the dependent drm_mm_nodes start and size from pages to bytes. v2 (chk): Change the drm_mm_node usage in amdgpu as well. re-order the patch to be independent of the resource->start

[PATCH 1/2] drm/amdgpu: added a sysfs interface for thermal throttling

2023-02-13 Thread kunliu13
added a sysfs interface for thermal throttling, then userspace can get/update thermal limit Jira ID: SWDEV-354511 Signed-off-by: Kun Liu Change-Id: I9948cb8966b731d2d74d7aad87cbcdc840dd34c8 --- .../gpu/drm/amd/include/kgd_pp_interface.h| 2 + drivers/gpu/drm/amd/pm/amdgpu_dpm.c