1. 29 Sep, 2022 4 commits
  2. 27 Sep, 2022 2 commits
  3. 21 Sep, 2022 12 commits
  4. 20 Sep, 2022 14 commits
  5. 19 Sep, 2022 8 commits
    • Christian König's avatar
      drm/amdgpu: revert "fix limiting AV1 to the first instance on VCN3" v3 · d4423fee
      Christian König authored
      This reverts commit 250195ff.
      
      The job should now be initialized when we reach the parser functions.
      
      v2: merge improved application check into this patch
      v3: back to the original test, but use the right ring
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      d4423fee
    • Christian König's avatar
      drm/amdgpu: move entity selection and job init earlier during CS · c2b08e7a
      Christian König authored
      Initialize the entity for the CS and scheduler job much earlier.
      
      v2: fix job initialisation order and use correct scheduler instance
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      c2b08e7a
    • Christian König's avatar
      drm/amdgpu: cleanup error handling in amdgpu_cs_parser_bos · 4953b6b2
      Christian König authored
      Return early on success and so remove all those "if (r)" in the error
      path.
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      4953b6b2
    • Christian König's avatar
      drm/amdgpu: cleanup CS pass2 v6 · f4b92fcd
      Christian König authored
      Cleanup the coding style and function names to represent the data
      they process for pass2 as well.
      
      Go over the chunks only twice now instead of multiple times.
      
      v2: fix job initialisation order and use correct scheduler instance
      v3: try to move all functional changes into a separate patch.
      v4: separate reordering, pass1 and pass2 change
      v5: fix va_start calculation
      v6: fix user fence check
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      f4b92fcd
    • YiPeng Chai's avatar
      drm/amd/pm: Remove redundant check condition · a6ad27ce
      YiPeng Chai authored
      V3:
      [Why]:
        Since ASICs using smu v13_0_2 have called smu
      .suspend before calling amdgpu_pm_sysfs_fini,
      pm.dpm_enabled was already set to 0 when smu
      .suspend was called. This makes it impossible
      to delete all pm sys nodes.
      
      [How]:
        Since all functions in amdgpu_pm_sysfs_fini
      have their own condition checks, so the first
      conditional check in amdgpu_pm_sysfs_fini can
      be removed.
      Signed-off-by: default avatarYiPeng Chai <YiPeng.Chai@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      a6ad27ce
    • YiPeng Chai's avatar
      drm/amdgpu: Fixed psp fence and memory issues when removing amdgpu device · 83d29a5f
      YiPeng Chai authored
      V3:
      Fixed psp fence and memory issues for the asic
      using smu v13_0_2 when removing amdgpu device.
      
      [Why]:
      1. psp_suspend->psp_free_shared_bufs->
             psp_ta_free_shared_buf->
                 amdgpu_bo_free_kernel->
                   ...->amdgpu_bo_release_notify->
                          amdgpu_fill_buffer
         psp will free vram memory used by psp when psp_suspend
         is called. But for the asic using smu v13_0_2, because
         psp_suspend is called before adev->shutdown is set to
         true when removing the first hive device, amdgpu fill_buffer
         will be called, which will cause fence issues when evicting
         all vram resources in amdgpu vram mgr_fini.
      2. Since psp_hw_fini is not called after calling psp_suspend
         and psp_suspend only calls psp_ring_stop, the psp ring memory
         will not be released when amdgpu device is removed.
      
      [How]:
      1. Set shutdown to true before calling amdgpu_device_gpu_recover,
         then amdgpu_fill_buffer will not be called when psp_suspend is
         called.
      2. Free psp ring memory in psp_sw_fini.
      Signed-off-by: default avatarYiPeng Chai <YiPeng.Chai@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      83d29a5f
    • YiPeng Chai's avatar
      drm/amdgpu: Adjust removal control flow for smu v13_0_2 · f5c7e779
      YiPeng Chai authored
      Adjust removal control flow for smu v13_0_2:
         During amdgpu uninstallation, when removing the first
      device, the kernel needs to first send a mode1reset message
      to all gpu devices. Otherwise, smu initialization will fail
      the next time amdgpu is installed.
      
      V2:
      1. Update commit comments.
      2. Remove the global variable amdgpu_device_remove_cnt
         and add a variable to the structure amdgpu_hive_info.
      3. Use hive to detect the first removed device instead of
         a global variable.
      
      V3:
       1. Update commit comments.
       2. Split a patch into multiple patches.
       3. The current patch does:
          a. Add a work mode of AMDGPU_RESET_FOR_DEVICE_REMOVE into
             the existing gpu recover path, which make all devices
             in hive list only have HW reset but no resume (except
             the base IP).
          b. Call AMDGPU_RESET_FOR_DEVICE_REMOVE and
             AMDGPU_NEED_FULL_RESET mode of amdgpu_device_gpu_recover
             in amdgpu_pci_remove when removing the first device in
             hive list.
          c. When removing the first device, the IP blocks keyword
             function call sequence is as follows:
      .suspend->mode1reset->.resume(basic ip)->.hw_fini->.early_fini->.sw_fini.
         ^                           |
         |-<----------<---------<----|
      	The first three sequences are because of a call to
              amdgpu_device_gpu_recover. The three sequences will be
              executed in a loop until all devices in the hive list
              are iterated.
              The sequences starting from .hw_fini only apply to the
              first device. Since .suspend has been called before,
              except the resumed phase1 basic ip blocks, all other ip
              blocks .hw_fini of current device will do nothing.
           d. When removing other devices, the calling sequences is the
              same as legacy:
      	   .hw_fini -> .early_fini -> .sw_fini.
      	Since .suspend has been called when removing the first device,
              except the resumed phase1 basic ip blocks, all of other ip
              blocks .hw_fini of current device will do nothing.
      Signed-off-by: default avatarYiPeng Chai <YiPeng.Chai@amd.com>
      Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      f5c7e779
    • Aric Cyr's avatar
      drm/amd/display: 3.2.204 · e4cf73fd
      Aric Cyr authored
      This version brings along following fixes:
      - Fix urgent latency override for DCN32/DCN321
      - Correct hostvm flag in DCN31
      - Added new Asic Id for DCN301
      - Adjust to 2 phys in DCN301
      - Update dummy P-state search to use DCN32 DML
      - Increase dcn315 pstate change latency
      - Disable OTG WA for the plane_state NULL case on DCN314
      - Update dccg based on HW delta
      - Correct num_dsc for DCN314
      - Fix DP DSC compliance failure with DCN314
      - Refactor edp power sequencer codes
      - update gamut remap if plane has changed
      - Skip audio setup when audio stream is enabled
      - Display distortion after hotplug LG Ultrafine 5K tiled display
      - Fix DP MST timeslot issue when fallback happened
      - Uncomment SubVP pipe split assignment in driver
      - Enable committing subvp config
      - Do second pass through DML for DET calculation
      - Don't allocate DET for phantom pipes
      - Modify DML to adjust Vstartup Position
      - Ignore k1/k2 values for virtual signal to avoid assert
      - Fix failures of disabling primary planes
      - Do not compare integers of different widths
      - Fix empty slot problem of EDID management
      - Revise Sink device string ID width in dmub psr
      - Log vertical interrupt 1 for debug
      Acked-by: default avatarWayne Lin <wayne.lin@amd.com>
      Signed-off-by: default avatarAric Cyr <aric.cyr@amd.com>
      Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      e4cf73fd