1. 09 Jan, 2023 25 commits
  2. 05 Jan, 2023 9 commits
  3. 03 Jan, 2023 6 commits
    • Randy Dunlap's avatar
      drm/amd/display: fix dc/core/dc.c kernel-doc · db4107e9
      Randy Dunlap authored
      Fix all kernel-doc warnings in dc/core/dc.c:
      
      dc.c:385: warning: missing initial short description on line:
       *  dc_stream_adjust_vmin_vmax:
      dc.c:392: warning: contents before sections
      dc.c:399: warning: No description found for return value of 'dc_stream_adjust_vmin_vmax'
      dc.c:434: warning: Excess function parameter 'adjust' description in 'dc_stream_get_last_used_drr_vtotal'
      dc.c:434: warning: No description found for return value of 'dc_stream_get_last_used_drr_vtotal'
      dc.c:574: warning: No description found for return value of 'dc_stream_configure_crc'
      dc.c:1746: warning: No description found for return value of 'dc_commit_state_no_check'
      dc.c:4991: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * dc_extended_blank_supported 0 Decide whether extended blank is supported
      dc.c:4991: warning: missing initial short description on line:
       * dc_extended_blank_supported 0 Decide whether extended blank is supported
      dc.c:4723: warning: Function parameter or member 'dc' not described in 'dc_enable_dmub_outbox'
      dc.c:4926: warning: Function parameter or member 'dc' not described in 'dc_process_dmub_dpia_hpd_int_enable'
      dc.c:4926: warning: Function parameter or member 'hpd_int_enable' not described in 'dc_process_dmub_dpia_hpd_int_enable'
      12 warnings
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
      Cc: amd-gfx@lists.freedesktop.org
      Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      db4107e9
    • Michel Dänzer's avatar
      Revert "drm/amd/display: Enable Freesync Video Mode by default" · 4243c84a
      Michel Dänzer authored
      This reverts commit de05abe6.
      
      The bug referenced below was bisected to this commit. There has been no
      activity toward fixing it in 3 months, so let's revert for now.
      
      Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2162Signed-off-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      4243c84a
    • Jiapeng Chong's avatar
      drm/amd/display: Remove the unused function dmub_outbox_irq_info_funcs · 13b9eb15
      Jiapeng Chong authored
      The function dmub_outbox_irq_info_funcs is defined in the
      irq_service_dcn201.c file, but not called elsewhere, so remove this
      unused function.
      
      drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn201/irq_service_dcn201.c:139:43: warning: unused variable 'dmub_outbox_irq_info_funcs'.
      
      Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3520Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
      Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      13b9eb15
    • Bhawanpreet Lakha's avatar
      drm/amd/display: Fix dsc mismatch of acquire and validation of dsc engine · 2e68ad8f
      Bhawanpreet Lakha authored
      [Why]
      We skip dsc_validation on pipes that are underlays, but in the
      acquire_dsc code we don't have this check.
      
      In certain conditions (when underlay pipe index is lower) we will assign
      the dsc resource to the underlay pipe and skip the base pipe.
      
      Now during dsc_validation we will skip the underlay pipe (this has the
      dsc resource) but try to validate the base pipe(this doesn't have a dsc
      resource) due to this mismatch we hit a NULLPTR
      
      [How]
      In the acquire_dsc add a check for underlay pipe so we
      don't acquire a dsc resource for this pipe. This will match the
      acquire/validation conditions.
      Reviewed-by: default avatarWenjing Liu <Wenjing.Liu@amd.com>
      Reviewed-by: default avatarHersen Wu <Hersenxs.Wu@amd.com>
      Acked-by: default avatarPraful Swarnakar <Praful.Swarnakar@amd.com>
      Signed-off-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      2e68ad8f
    • Stanley.Yang's avatar
      drm/amdgpu: remove enable ras cmd call trace · c26cd999
      Stanley.Yang authored
      [Why]
          [   41.285804] RIP: 0010:amdgpu_ras_feature_enable+0x15c/0x310 [amdgpu]
          [   41.285945] Code: 48 89 c1 48 c7 c2 b9 f2 88 c1 48 c7 c0 c0 f2 88 c1 49 8b 3c 24 48 0f 44 d0 48 c7 c6 98 33 80 c1 e8 5f 52 75 d9 e9 fa fe ff ff <0f> 0b e9 66 ff ff ff 48 8b 3d 86 8c 0f da ba 00 04 00 00 be c0 0d
          [   41.285946] RSP: 0018:ffffbccdc72efc90 EFLAGS: 00010246
          [   41.285948] RAX: 0000000000000004 RBX: ffff931897406980 RCX: 0000000000000002
          [   41.285949] RDX: 0000000000000dc0 RSI: 0000000000000002 RDI: ffff931500042b00
          [   41.285950] RBP: ffffbccdc72efcc0 R08: 0000000000000002 R09: ffff931885b87000
          [   41.285951] R10: 0000000000ffff10 R11: 0000000000000001 R12: ffff931893e20000
          [   41.285952] R13: 0000000000000001 R14: ffff931885b87000 R15: 0000000000000000
          [   41.285953] FS:  0000000000000000(0000) GS:ffff931c6f200000(0000) knlGS:0000000000000000
          [   41.285954] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
          [   41.285955] CR2: 000055dd6f532008 CR3: 000000061b010006 CR4: 00000000003706e0
          [   41.285956] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
          [   41.285957] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
          [   41.285958] Call Trace:
          [   41.285959]  <TASK>
          [   41.285963]  ? gfx_v11_0_early_init+0x250/0x250 [amdgpu]
          [   41.286117]  gfx_v11_0_late_init+0x8c/0xb0 [amdgpu]
          [   41.286271]  amdgpu_device_ip_late_init+0x8d/0x3c0 [amdgpu]
          [   41.286401]  amdgpu_device_init.cold+0x1677/0x1fda [amdgpu]
          [   41.286616]  ? pci_bus_read_config_word+0x4a/0x70
          [   41.286621]  ? do_pci_enable_device+0xdb/0x110
          [   41.286625]  amdgpu_driver_load_kms+0x1a/0x160 [amdgpu]
          [   41.286762]  amdgpu_pci_probe+0x18d/0x3a0 [amdgpu]
          [   41.286898]  local_pci_probe+0x4b/0x90
          [   41.286901]  work_for_cpu_fn+0x1a/0x30
          [   41.286903]  process_one_work+0x22b/0x3d0
          [   41.286905]  worker_thread+0x223/0x420
          [   41.286907]  ? process_one_work+0x3d0/0x3d0
          [   41.286908]  kthread+0x12a/0x150
          [   41.286911]  ? set_kthread_struct+0x50/0x50
          [   41.286913]  ret_from_fork+0x22/0x30
      
      [How]
          For specific asic, only mem ecc is enabled, sram ecc is not enabled,
          but it still need to send ras enable cmd to gfx block to support
          poison mode, so add check posion mode.
      Signed-off-by: default avatarStanley.Yang <Stanley.Yang@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      c26cd999
    • Stanley.Yang's avatar
      drm/amdgpu: correct umc poison mode set value · 6ecc01a9
      Stanley.Yang authored
      For GFX 11.0.3, Due to security policy, there is no way to check UcFatalEn
      field of UMCCH0_0_GeccCtrl to identify UMC poison mode. This is workaround
      force set umc poison mode as 1 for GFX 11.0.3
      Signed-off-by: default avatarStanley.Yang <Stanley.Yang@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      6ecc01a9