1. 13 Aug, 2020 1 commit
  2. 12 Aug, 2020 10 commits
  3. 11 Aug, 2020 18 commits
  4. 10 Aug, 2020 9 commits
  5. 08 Aug, 2020 1 commit
    • Joe Perches's avatar
      drm: Remove unnecessary drm_panel_attach and drm_panel_detach · 87154ff8
      Joe Perches authored
      These functions are now empty and no longer
      useful so remove the functions and their uses.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Cc: Bernard Zhao <bernard@vivo.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>,
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Icenowy Zheng <icenowy@aosc.io>,
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Robert Chiras <robert.chiras@nxp.com>
      Cc: dri-devel@lists.freedesktop.org,
      Cc: linux-kernel@vger.kernel.org
      Cc: opensource.kernel@vivo.com
      Signed-off-by: Sam Ravnborg <sam@ravnborg.org> # Fixed build and a few warnings
      Link: https://patchwork.freedesktop.org/patch/msgid/9e13761020750b1ce2f1fabee23ef6e2a2942882.camel@perches.com
      87154ff8
  6. 07 Aug, 2020 1 commit
    • Sandeep Raghuraman's avatar
      drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resume · f8781228
      Sandeep Raghuraman authored
      Reproducing bug report here:
      After hibernating and resuming, DPM is not enabled. This remains the case
      even if you test hibernate using the steps here:
      https://www.kernel.org/doc/html/latest/power/basic-pm-debugging.html
      
      I debugged the problem, and figured out that in the file hardwaremanager.c,
      in the function, phm_enable_dynamic_state_management(), the check
      'if (!hwmgr->pp_one_vf && smum_is_dpm_running(hwmgr) && !amdgpu_passthrough(adev) && adev->in_suspend)'
      returns true for the hibernate case, and false for the suspend case.
      
      This means that for the hibernate case, the AMDGPU driver doesn't enable DPM
      (even though it should) and simply returns from that function.
      In the suspend case, it goes ahead and enables DPM, even though it doesn't need to.
      
      I debugged further, and found out that in the case of suspend, for the
      CIK/Hawaii GPUs, smum_is_dpm_running(hwmgr) returns false, while in the case of
      hibernate, smum_is_dpm_running(hwmgr) returns true.
      
      For CIK, the ci_is_dpm_running() function calls the ci_is_smc_ram_running() function,
      which is ultimately used to determine if DPM is currently enabled or not,
      and this seems to provide the wrong answer.
      
      I've changed the ci_is_dpm_running() function to instead use the same method that
      some other AMD GPU chips do (e.g Fiji), which seems to read the voltage controller.
      I've tested on my R9 390 and it seems to work correctly for both suspend and
      hibernate use cases, and has been stable so far.
      
      Bug: https://bugzilla.kernel.org/show_bug.cgi?id=208839Signed-off-by: default avatarSandeep Raghuraman <sandy.8925@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      f8781228