Skip to content
Snippets Groups Projects
  1. Feb 01, 2023
  2. Jan 31, 2023
  3. Jan 30, 2023
  4. Jan 27, 2023
  5. Jan 26, 2023
    • Arnd Bergmann's avatar
      drm/amdgpu/display/mst: fix an unused-variable warning · 58f9a76b
      Arnd Bergmann authored and Hamza Mahfooz's avatar Hamza Mahfooz committed
      
      The newly added code is in an #ifdef, so the variables that
      are only used in there cause a warning if CONFIG_DRM_AMD_DC_DCN
      is disabled:
      
      drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_atomic_check':
      drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9698:43: error: unused variable 'mst_state' [-Werror=unused-variable]
       9698 |         struct drm_dp_mst_topology_state *mst_state;
            |                                           ^~~~~~~~~
      drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9697:41: error: unused variable 'mgr' [-Werror=unused-variable]
       9697 |         struct drm_dp_mst_topology_mgr *mgr;
            |                                         ^~~
      
      Fixes: c689e1e3 ("drm/amdgpu/display/mst: Fix mst_state->pbn_div and slot count assignments")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
      58f9a76b
  6. Jan 25, 2023
    • Graham Sider's avatar
      drm/amdgpu: update wave data type to 3 for gfx11 · 1ab7ccb7
      Graham Sider authored
      
      SQ_WAVE_INST_DW0 isn't present on gfx11 compared to gfx10, so update
      wave data type to signify a difference.
      
      Signed-off-by: default avatarGraham Sider <Graham.Sider@amd.com>
      Reviewed-by: default avatarMukul Joshi <Mukul.Joshi@amd.com>
      1ab7ccb7
    • Mario Limonciello's avatar
      drm/amd: Allow s0ix without BIOS support · 9cdb6992
      Mario Limonciello authored
      
      We guard the suspend entry code from running unless we have proper
      BIOS support for either S3 mode or s0ix mode.
      
      If a user's system doesn't support either of these modes the kernel
      still does offer s2idle in `/sys/power/mem_sleep` so there is an
      expectation from users that it works even if the power consumption
      remains very high.
      
      Rafael Ávila de Espíndola reports that a system of his has a
      non-functional graphics stack after resuming.  That system doesn't
      support S3 and the FADT doesn't indicate support for low power idle.
      
      Through some experimentation it was concluded that even without the
      hardware s0i3 support provided by the amd_pmc driver the power
      consumption over suspend is decreased by running amdgpu's s0ix
      suspend routine.
      
      The numbers over suspend showed:
      * No patch: 9.2W
      * Skip amdgpu suspend entirely: 10.5W
      * Run amdgpu s0ix routine: 7.7W
      
      As this does improve the power, remove some of the guard rails in
      `amdgpu_acpi.c` for only running s0ix suspend routines in the right
      circumstances.
      
      However if this turns out to cause regressions for anyone, we should
      revert this change and instead opt for skipping suspend/resume routines
      entirely or try to fix the underlying behavior that makes graphics fail
      after resume without underlying platform support.
      
      Reported-by: default avatarRafael Ávila de Espíndola <rafael@espindo.la>
      Link: drm/amd#2364
      
      
      Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      9cdb6992
    • Vitaly Prosyak's avatar
      Revert "drm/amdgpu: TA unload messages are not actually sent to psp when amdgpu is uninstalled" · 83a91751
      Vitaly Prosyak authored and Vitaly Prosyak's avatar Vitaly Prosyak committed
      
      This reverts commit fac53471.
      The following change: move the drm_dev_unplug call after
      amdgpu_driver_unload_kms in amdgpu_pci_remove. The reason is
      the following: amdgpu_pci_remove calls drm_dev_unregister
      and it should be called first to ensure userspace can't access the
      device instance anymore. If we call drm_dev_unplug after
      amdgpu_driver_unload_kms then we observe IGT PCI software unplug
      test failure (kernel hung) for all ASICs. This is how this
      regression was found.
      
      After this revert, the following commands do work not, but it would
      be fixed in the next commit:
       - sudo modprobe -r amdgpu
       - sudo modprobe amdgpu
      
      Signed-off-by: default avatarVitaly Prosyak <vitaly.prosyak@amd.com>
      Reviewed-by Alex Deucher <alexander.deucher@amd.com>
      Change-Id: Ia5c6c174dddb89a33dd93b641fd05466ffb3500c
      83a91751
  7. Jan 24, 2023
  8. Jan 23, 2023
Loading