Skip to content
Snippets Groups Projects
  1. Jun 15, 2023
  2. Jun 14, 2023
  3. Jun 13, 2023
    • Tim Huang's avatar
      drm/amd/pm: enable more Pstates profile levels for SMU v13.0.5 · 0007eba6
      Tim Huang authored
      
      This patch enables following UMD stable Pstates profile
      levels for power_dpm_force_performance_level interface.
      
      - profile_peak
      - profile_min_sclk
      - profile_standard
      
      Signed-off-by: default avatarTim Huang <Tim.Huang@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: default avatar Yifan Zhang <yifan1.zhang@amd.com>
      0007eba6
    • SRINIVASAN SHANMUGAM's avatar
      drm/radeon: Fix missing prototypes in radeon_atpx_handler.c · 679dbd9a
      SRINIVASAN SHANMUGAM authored
      
      Fixes the following gcc with W=1:
      
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:64:6: warning: no previous prototype for ‘radeon_has_atpx’ [-Wmissing-prototypes]
         64 | bool 4(void) {
            |      ^~~~~~~~~~~~~~~
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:68:6: warning: no previous prototype for ‘radeon_has_atpx_dgpu_power_cntl’ [-Wmissing-prototypes]
         68 | bool radeon_has_atpx_dgpu_power_cntl(void) {
            |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:72:6: warning: no previous prototype for ‘radeon_is_atpx_hybrid’ [-Wmissing-prototypes]
         72 | bool radeon_is_atpx_hybrid(void) {
            |      ^~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:77:6: warning: no previous prototype for ‘radeon_atpx_dgpu_req_power_for_displays’ [-Wmissing-prototypes]
         77 | bool radeon_atpx_dgpu_req_power_for_displays(void) {
            |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:596:6: warning: no previous prototype for ‘radeon_register_atpx_handler’ [-Wmissing-prototypes]
        596 | void radeon_register_atpx_handler(void)
            |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:614:6: warning: no previous prototype for ‘radeon_unregister_atpx_handler’ [-Wmissing-prototypes]
        614 | void radeon_unregister_atpx_handler(void)
            |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/radeon/radeon_atpx_handler.c:159: warning: expecting prototype for radeon_atpx_validate_functions(). Prototype was for radeon_atpx_validate() instead
      
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      679dbd9a
    • Luben Tuikov's avatar
      drm/amdgpu: Fix usage of UMC fill record in RAS · a4427e51
      Luben Tuikov authored
      
      The fixed commit listed in the Fixes tag below, introduced a bug in
      amdgpu_ras.c::amdgpu_reserve_page_direct(), in that when introducing the new
      amdgpu_umc_fill_error_record() and internally in that new function the physical
      address (argument "uint64_t retired_page"--wrong name) is right-shifted by
      AMDGPU_GPU_PAGE_SHIFT. Thus, in amdgpu_reserve_page_direct() when we pass
      "address" to that new function, we should NOT right-shift it, since this
      results, erroneously, in the page address to be 0 for first
      2^(2*AMDGPU_GPU_PAGE_SHIFT) memory addresses.
      
      This commit fixes this bug.
      
      Cc: Tao Zhou <tao.zhou1@amd.com>
      Cc: Hawking Zhang <Hawking.Zhang@amd.com>
      Cc: Alex Deucher <Alexander.Deucher@amd.com>
      Fixes: 400013b2 ("drm/amdgpu: add umc_fill_error_record to make code more simple")
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      Link: https://lore.kernel.org/r/20230610113536.10621-1-luben.tuikov@amd.com
      
      
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      a4427e51
    • Alex Deucher's avatar
      drm/amdgpu/sdma4: set align mask to 255 · 45e91aae
      Alex Deucher authored
      
      The wptr needs to be incremented at at least 64 dword intervals,
      use 256 to align with windows.  This should fix potential hangs
      with unaligned updates.
      
      Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Reviewed-by: default avatarAaron Liu <aaron.liu@amd.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      45e91aae
    • Luben Tuikov's avatar
      drm/amdgpu: Report ras_num_recs in debugfs · bcbf9aae
      Luben Tuikov authored
      
      Report the number of records stored in the RAS EEPROM table in debugfs.
      
      This can be used by user-space to calculate the capacity of the RAS EEPROM
      table since "bad_page_cnt_threshold" is also reported in the same place in
      debugfs.
      
      See commit reference 7fb64071 (drm/amdgpu: Add bad_page_cnt_threshold to
      debugfs, 2021-04-13).
      
      ras_num_recs can already be inferred by dumping the RAS EEPROM table, also in
      the same debugfs location, see commit reference c65b0805 (drm/amdgpu:
      RAS EEPROM table is now in debugfs, 2021-04-08). This commit makes it an
      integer value easily shown in a single file.
      
      Cc: Alex Deucher <Alexander.Deucher@amd.com>
      Cc: Hawking Zhang <Hawking.Zhang@amd.com>
      Cc: Tao Zhou <tao.zhou1@amd.com>
      Cc: Stanley Yang <Stanley.Yang@amd.com>
      Cc: John Clements <john.clements@amd.com>
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      Link: https://lore.kernel.org/r/20230603051043.211548-1-luben.tuikov@amd.com
      
      
      Acked-by: default avatarAlex Deucher <Alexander.Deucher@amd.com>
      bcbf9aae
    • Mukul Joshi's avatar
      drm/amdkfd: Remove DUMMY_VRAM_SIZE · 8c316591
      Mukul Joshi authored
      
      Remove DUMMY_VRAM_SIZE as it is not needed and can result
      in reporting incorrect memory size.
      
      Signed-off-by: default avatarMukul Joshi <mukul.joshi@amd.com>
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      8c316591
    • lijo lazar's avatar
      drm/amdgpu: Release SDMAv4.4.2 ecc irq properly · ea2b218e
      lijo lazar authored
      
      Release ECC irq only if irq is enabled - only when RAS feature is enabled
      ECC irq gets enabled.
      
      Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      ea2b218e
    • Likun Gao's avatar
      drm/amdgpu: add wait_for helper for spirom update · b721c326
      Likun Gao authored
      
      Spirom update typically requires extremely long
      duration for command execution, and special helper
      function to wait for it completion.
      
      Signed-off-by: default avatarLikun Gao <Likun.Gao@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      b721c326
    • SRINIVASAN SHANMUGAM's avatar
      drm/amd/display: Clean up dcn10_optc.c kdoc · 0620049f
      SRINIVASAN SHANMUGAM authored
      
      Fixes the following W=1 kernel build warning:
      
      display/dc/dcn10/dcn10_optc.c:45: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
      * apply_front_porch_workaround  TODO FPGA still need?
      display/dc/dcn10/dcn10_optc.c:136: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * program_timing_generator   used by mode timing set
      display/dc/dcn10/dcn10_optc.c:391: warning: Function parameter or member 'optc' not described in 'optc1_set_timing_double_buffer'
      display/dc/dcn10/dcn10_optc.c:391: warning: Function parameter or member 'enable' not described in 'optc1_set_timing_double_buffer'
      display/dc/dcn10/dcn10_optc.c:404: warning: Function parameter or member 'optc' not described in 'optc1_unblank_crtc'
      display/dc/dcn10/dcn10_optc.c:404: warning: expecting prototype for unblank_crtc(). Prototype was for optc1_unblank_crtc() instead
      display/dc/dcn10/dcn10_optc.c:427: warning: Function parameter or member 'optc' not described in 'optc1_blank_crtc'
      display/dc/dcn10/dcn10_optc.c:427: warning: expecting prototype for blank_crtc(). Prototype was for optc1_blank_crtc() instead
      display/dc/dcn10/dcn10_optc.c:496: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Enable CRTC
      display/dc/dcn10/dcn10_optc.c:895: warning: Cannot understand  *****************************************************************************
       on line 895 - I thought it was a doc line
      
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      0620049f
    • SRINIVASAN SHANMUGAM's avatar
      drm/amd/display: Correct kdoc formats in dcn32_resource_helpers.c · cf53dd47
      SRINIVASAN SHANMUGAM authored
      
      Fixes the following gcc with W=1:
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:285: warning: Function parameter or member 'dc' not described in 'dcn32_determine_det_override'
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:285: warning: Function parameter or member 'context' not described in 'dcn32_determine_det_override'
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:285: warning: Function parameter or member 'pipes' not described in 'dcn32_determine_det_override'
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:624: warning: Cannot understand  * *****************************************************************
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:676: warning: Cannot understand  * *****************************************************************
      
      Cc: Alvin Lee <alvin.lee2@amd.com>
      Cc: Stylon Wang <stylon.wang@amd.com>
      Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Reviewed-by: default avatarAlvin Lee <alvin.lee2@amd.com>
      cf53dd47
    • SRINIVASAN SHANMUGAM's avatar
      drm/amd/display: Provide function name for 'optc32_enable_crtc()' · c6ea8526
      SRINIVASAN SHANMUGAM authored
      
      Fixes the following W=1 kernel build warning(s):
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_optc.c:109: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Enable CRTC
      
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      c6ea8526
    • SRINIVASAN SHANMUGAM's avatar
      drm/amd/display: Correct and remove excess function parameter names in kdoc · ab171b0e
      SRINIVASAN SHANMUGAM authored
      
      Fixes the following gcc with W=1:
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/dcn32_fpu.c:872: warning: Excess function parameter 'drr_pipe' description in 'subvp_drr_schedulable'
      drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/dcn32_fpu.c:1030: warning: Cannot understand  * ****************************************************
      
      Cc: Stylon Wang <stylon.wang@amd.com>
      Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      ab171b0e
    • SRINIVASAN SHANMUGAM's avatar
      drm/amd/display: Correct kdoc formats in dcn10_opp.c · d4ce5d54
      SRINIVASAN SHANMUGAM authored
      
      Fixes the following W=1 kernel build warning:
      
      display/dc/dcn10/dcn10_opp.c:52: warning: Function parameter or member 'oppn10' not described in 'opp1_set_truncation'
      display/dc/dcn10/dcn10_opp.c:52: warning: Function parameter or member 'params' not described in 'opp1_set_truncation'
      display/dc/dcn10/dcn10_opp.c:52: warning: expecting prototype for set_truncation(). Prototype was for opp1_set_truncation() instead
      display/dc/dcn10/dcn10_opp.c:161: warning: Function parameter or member 'oppn10' not described in 'opp1_set_pixel_encoding'
      display/dc/dcn10/dcn10_opp.c:161: warning: Function parameter or member 'params' not described in 'opp1_set_pixel_encoding'
      display/dc/dcn10/dcn10_opp.c:161: warning: expecting prototype for set_pixel_encoding(). Prototype was for opp1_set_pixel_encoding() instead
      display/dc/dcn10/dcn10_opp.c:183: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       *      Set Clamping
      
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      d4ce5d54
    • SRINIVASAN SHANMUGAM's avatar
      drm/amdgpu: Add missing function parameter 'optc' & 'enable' to kdoc in... · 51ac9e46
      SRINIVASAN SHANMUGAM authored
      drm/amdgpu: Add missing function parameter 'optc' & 'enable' to kdoc in optc3_set_timing_double_buffer()
      
      Fixes the following gcc with W=1:
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:285: warning: Function parameter or member 'optc' not described in 'optc3_set_timing_double_buffer'
      drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:285: warning: Function parameter or member 'enable' not described in 'optc3_set_timing_double_buffer'
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      51ac9e46
    • majun258's avatar
      drm/amdgpu: Print client id for the unregistered interrupt resource · 14136847
      majun258 authored
      
      Modify the debug information and print the clien id for these
      interrupts as well.
      
      Signed-off-by: default avatarMa Jun <Jun.Ma2@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      14136847
    • Ruili Ji's avatar
      drm/amdkfd: To enable traps for GC_11_0_4 and up · 52223c7e
      Ruili Ji authored
      
      Flag trap_en should be enabled for trap handler.
      
      Signed-off-by: default avatarRuili Ji <ruiliji2@amd.com>
      Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      52223c7e
  4. Jun 12, 2023
Loading