Re: [PATCH 1/2] drm/amd/display: Hook up 'content type' property for HDMI

2023-02-17 Thread Joshua Ashton
On 1/24/23 00:24, Harry Wentland wrote: On 1/19/23 17:20, Joshua Ashton wrote: On 1/19/23 18:14, Melissa Wen wrote: On 01/17, Joshua Ashton wrote: Implements the 'content type' property for HDMI connectors. Verified by checking the avi infoframe on a connected TV. This also simplifies

[pull] amdgpu drm-next-6.3

2023-02-17 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 6.3. The big change here is the splitting of dc_link.c into multiple smaller files. The following changes since commit 69ed0c5d44d72051b13e65384e9d9354c45d5e14: Revert "drm/amd/display: disable S/G display on DCN 3.1.4" (2023-02-03 15:42:42 -0500) are available

Re: [bug][vaapi][h264] The commit 7cbe08a930a132d84b4cf79953b00b074ec7a2a7 on certain video files leads to problems with VAAPI hardware decoding.

2023-02-17 Thread Mikhail Gavrilov
On Fri, Feb 17, 2023 at 8:30 PM Alex Deucher wrote: > > On Fri, Feb 17, 2023 at 1:10 AM Mikhail Gavrilov > wrote: > > > > On Fri, Dec 9, 2022 at 7:37 PM Leo Liu wrote: > > > > > > Please try the latest AMDGPU driver: > > > > > >

Re: [PATCH] drm/amdkfd: Make kobj_type structures constant

2023-02-17 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Feb 15, 2023 at 8:09 PM Thomas Weißschuh wrote: > > Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") > the driver core allows the usage of const struct kobj_type. > > Take advantage of this to constify the structure definitions to prevent >

Re: [PATCH] drm/amdgpu: make kobj_type structures constant

2023-02-17 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Feb 16, 2023 at 1:59 AM Christian König wrote: > > Am 16.02.23 um 02:07 schrieb Thomas Weißschuh: > > Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") > > the driver core allows the usage of const struct kobj_type. > > > > Take advantage of this

Re: [PATCH] drm/amd/display: Modify mismatched function name

2023-02-17 Thread Alex Deucher
Applied. Thanks! Alex On Fri, Feb 17, 2023 at 2:46 AM Jiapeng Chong wrote: > > No functional modification involved. > > drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_detection.c:1199: warning: > expecting prototype for dc_link_detect_connection_type(). Prototype was for >

Re: [PATCH] drm/fb-helper: Remove drm_fb_helper_unprepare() from drm_fb_helper_fini()

2023-02-17 Thread Daniel Vetter
On Fri, Feb 17, 2023 at 09:18:54AM +0100, Thomas Zimmermann wrote: > Hi > > Am 16.02.23 um 21:11 schrieb Daniel Vetter: > > On Thu, Feb 16, 2023 at 03:06:20PM +0100, Thomas Zimmermann wrote: > > > Move drm_fb_helper_unprepare() from drm_fb_helper_fini() into the > > > calling fbdev

[PATCH v2 0/3] Resolve warnings from AMDGPU

2023-02-17 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 v2 3/3] drm/amd/display: Remove unused local variables and function

2023-02-17 Thread Arthur Grillo
Remove a couple of local variables that are only set but never used, also remove an static utility function that is never used in consequence of the variable removal. This decrease the number of -Wunused-but-set-variable warnings. Signed-off-by: Arthur Grillo ---

[PATCH v2 2/3] drm/amd/display: Remove unused local variables

2023-02-17 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

[PATCH v2 1/3] drm/amd/display: Fix implicit enum conversion

2023-02-17 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 |

[linux-next:master] BUILD REGRESSION c068f40300a0eaa34f7105d137a5560b86951aa9

2023-02-17 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: c068f40300a0eaa34f7105d137a5560b86951aa9 Add linux-next specific files for 20230217 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202302062224.byzetxh1-...@intel.com https

Re: [bug][vaapi][h264] The commit 7cbe08a930a132d84b4cf79953b00b074ec7a2a7 on certain video files leads to problems with VAAPI hardware decoding.

2023-02-17 Thread Alex Deucher
On Fri, Feb 17, 2023 at 1:10 AM Mikhail Gavrilov wrote: > > On Fri, Dec 9, 2022 at 7:37 PM Leo Liu wrote: > > > > Please try the latest AMDGPU driver: > > > > https://gitlab.freedesktop.org/agd5f/linux/-/commits/amd-staging-drm-next/ > > > > Sorry Leo, I miss your message. > This issue is still

RE: [PATCH]: add tmz support for GC 10.3.6

2023-02-17 Thread Deucher, Alexander
[Public] Jesse, Your mail client seems to be mangling your patches. I'd suggest seeing up git-send-email for sending patches if you haven't already. Patch is: Reviewed-by: Alex Deucher From: Zhang, Jesse(Jie) Sent: Thursday, February 16, 2023 8:28 PM To: Deucher, Alexander ; Zhang, Yifan

[PATCH 7/7] drm/ttm: cleanup ttm_range_mgr_node

2023-02-17 Thread Christian König
We don't need multiple drm_mm nodes any more. Clean that up and remove the extra complexity. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c| 18 +- drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | 2 +- drivers/gpu/drm/i915/intel_region_ttm.c

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

2023-02-17 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 6/7] drm/amdgpu: Cleanup the GDS, GWS and OA allocations

2023-02-17 Thread Christian König
From: Somalapuram Amaranath Change the size of GDS, GWS and OA from pages to bytes. The initialized gds_size, gws_size and oa_size in bytes, remove PAGE_SHIFT in amdgpu_ttm_init_on_chip(). Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c| 12 ++--

[PATCH 5/7] drm/gem: Remove BUG_ON in drm_gem_private_object_init

2023-02-17 Thread Christian König
From: Somalapuram Amaranath ttm_resource can allocate size in bytes to support less than page size. Signed-off-by: Somalapuram Amaranath Reviewed-by: Christian König Signed-off-by: Christian König Link:

[PATCH 4/7] drm/ttm: Change the meaning of resource->start from pfn to bytes v2

2023-02-17 Thread Christian König
From: Somalapuram Amaranath Change resource->start from pfn to bytes to allow allocating objects smaller than a page and adjust all DRM drivers still using this. v2 (chk): inline drm_gem_vram_pg_offset(), move amdgpu cursor changes to separate patch, make resource->start 64bit on all

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

2023-02-17 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 1/7] drm/amdgpu: use amdgpu_res_cursor in more places v2

2023-02-17 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 ---

Re: [PATCH 1/2] drm/amdgpu: optimize VRAM allocation when using drm buddy

2023-02-17 Thread Christian König
Am 17.02.23 um 04:11 schrieb Xiao, Shane: -Original Message- From: Paneer Selvam, Arunpravin Sent: Thursday, February 16, 2023 3:24 PM To: Koenig, Christian ; Xiao, Shane ; Kuehling, Felix ; Christian König Cc: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 1/2] drm/amdgpu:

[PATCH] drm/amd/display: Modify mismatched function name

2023-02-17 Thread Jiapeng Chong
No functional modification involved. drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_detection.c:1199: warning: expecting prototype for dc_link_detect_connection_type(). Prototype was for link_detect_connection_type() instead. Reported-by: Abaci Robot Link:

Re: [PATCHv2] drm/amdgpu: register a vga_switcheroo client for MacBooks with apple-gmux

2023-02-17 Thread Orlando Chamberlain
On Thu, 16 Feb 2023 09:52:57 -0500 Alex Deucher wrote: > On Thu, Feb 16, 2023 at 8:45 AM Orlando Chamberlain > wrote: > > > > Commit 3840c5bcc245 ("drm/amdgpu: disentangle runtime pm and > > vga_switcheroo") made amdgpu only register a vga_switcheroo client > > for GPU's with PX, however AMD

RE: [PATCH 2/2] drm/amdgpu: exclude duplicate pages from UMC RAS UE count

2023-02-17 Thread Lazar, Lijo
[AMD Official Use Only - General] Instead of adding another function, why not make pages param as in/out. In = number of pages to be added Out = number of pages actually added. int amdgpu_ras_add_bad_pages(struct amdgpu_device *adev, struct eeprom_table_record *bps, int

Re: [PATCH] drm/fb-helper: Remove drm_fb_helper_unprepare() from drm_fb_helper_fini()

2023-02-17 Thread Thomas Zimmermann
Hi Am 16.02.23 um 21:11 schrieb Daniel Vetter: On Thu, Feb 16, 2023 at 03:06:20PM +0100, Thomas Zimmermann wrote: Move drm_fb_helper_unprepare() from drm_fb_helper_fini() into the calling fbdev implementation. Avoids a possible stale mutex with generic fbdev code. As indicated by its name,