1. 18 Apr, 2023 3 commits
    • Chong Li's avatar
      drm/amdgpu: release gpu full access after "amdgpu_device_ip_late_init" · 38eecbe0
      Chong Li authored
      [WHY]
       Function "amdgpu_irq_update()" called by "amdgpu_device_ip_late_init()" is an atomic context.
       We shouldn't access registers through KIQ since "msleep()" may be called in "amdgpu_kiq_rreg()".
      
      [HOW]
       Move function "amdgpu_virt_release_full_gpu()" after function "amdgpu_device_ip_late_init()",
       to ensure that registers be accessed through RLCG instead of KIQ.
      
      Call Trace:
        <TASK>
        show_stack+0x52/0x69
        dump_stack_lvl+0x49/0x6d
        dump_stack+0x10/0x18
        __schedule_bug.cold+0x4f/0x6b
        __schedule+0x473/0x5d0
        ? __wake_up_klogd.part.0+0x40/0x70
        ? vprintk_emit+0xbe/0x1f0
        schedule+0x68/0x110
        schedule_timeout+0x87/0x160
        ? timer_migration_handler+0xa0/0xa0
        msleep+0x2d/0x50
        amdgpu_kiq_rreg+0x18d/0x1f0 [amdgpu]
        amdgpu_device_rreg.part.0+0x59/0xd0 [amdgpu]
        amdgpu_device_rreg+0x3a/0x50 [amdgpu]
        amdgpu_sriov_rreg+0x3c/0xb0 [amdgpu]
        gfx_v10_0_set_gfx_eop_interrupt_state.constprop.0+0x16c/0x190 [amdgpu]
        gfx_v10_0_set_eop_interrupt_state+0xa5/0xb0 [amdgpu]
        amdgpu_irq_update+0x53/0x80 [amdgpu]
        amdgpu_irq_get+0x7c/0xb0 [amdgpu]
        amdgpu_fence_driver_hw_init+0x58/0x90 [amdgpu]
        amdgpu_device_init.cold+0x16b7/0x2022 [amdgpu]
      Signed-off-by: default avatarChong Li <chongli2@amd.com>
      Reviewed-by: JingWen.Chen2@amd.com
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      38eecbe0
    • Tom Rix's avatar
      drm/amd/pm: change pmfw_decoded_link_width, speed variables to globals · 8d9cdb46
      Tom Rix authored
      gcc with W=1 reports
      In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0.c:36:
      ./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v13_0.h:66:18: error:
        ‘pmfw_decoded_link_width’ defined but not used [-Werror=unused-const-variable=]
         66 | static const int pmfw_decoded_link_width[7] = {0, 1, 2, 4, 8, 12, 16};
            |                  ^~~~~~~~~~~~~~~~~~~~~~~
      ./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v13_0.h:65:18: error:
        ‘pmfw_decoded_link_speed’ defined but not used [-Werror=unused-const-variable=]
         65 | static const int pmfw_decoded_link_speed[5] = {1, 2, 3, 4, 5};
            |                  ^~~~~~~~~~~~~~~~~~~~~~~
      
      These variables are defined and used in smu_v13_0_7_ppt.c and smu_v13_0_0_ppt.c.
      There should be only one definition.  So define the variables as globals
      in smu_v13_0.c
      Signed-off-by: default avatarTom Rix <trix@redhat.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      8d9cdb46
    • Jane Jian's avatar
      drm/amdgpu/vcn: fix mmsch ctx table size · 4de867fc
      Jane Jian authored
      add jpeg table size to ctx table size rather than override it
      Signed-off-by: default avatarJane Jian <Jane.Jian@amd.com>
      Reviewed-by: default avatarJingWen Chen <JingWen.Chen2@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      4de867fc
  2. 17 Apr, 2023 1 commit
  3. 14 Apr, 2023 14 commits
  4. 13 Apr, 2023 11 commits
  5. 12 Apr, 2023 2 commits
  6. 11 Apr, 2023 9 commits