1. 24 8月, 2019 2 次提交
  2. 23 8月, 2019 1 次提交
  3. 22 8月, 2019 5 次提交
  4. 15 8月, 2019 1 次提交
  5. 07 8月, 2019 2 次提交
  6. 06 8月, 2019 1 次提交
  7. 02 8月, 2019 6 次提交
  8. 31 7月, 2019 4 次提交
  9. 26 7月, 2019 2 次提交
  10. 19 7月, 2019 7 次提交
  11. 12 7月, 2019 2 次提交
  12. 03 7月, 2019 1 次提交
  13. 26 6月, 2019 1 次提交
  14. 22 6月, 2019 5 次提交
    • N
      drm/amd/display: Rework CRTC color management · cf020d49
      Nicholas Kazlauskas 提交于
      [Why]
      To prepare for the upcoming DRM plane color management properties
      we need to correct a lot of wrong behavior and assumptions made for
      CRTC color management.
      
      The documentation added by this commit in amdgpu_dm_color explains
      how the HW color pipeline works and its limitations with the DRM
      interface.
      
      The current implementation does the following wrong:
      - Implicit sRGB DGM when no CRTC DGM is set
      - Implicit sRGB RGM when no CRTC RGM is set
      - No way to specify a non-linear DGM matrix that produces correct output
      - No way to specify a correct RGM when a linear DGM is used
      
      We had workarounds for passing kms_color tests but not all of the
      behavior we had wrong was covered by these tests (especially when
      it comes to non-linear DGM). Testing both DGM and RGM at the same time
      isn't something kms_color tests well either.
      
      [How]
      The specifics for how color management works in AMDGPU and the new
      behavior can be found by reading the documentation added to
      amdgpu_dm_color.c from this patch.
      
      All of the incorrect cases from the old implementation have been
      addressed for the atomic interface, but there still a few TODOs for
      the legacy one.
      
      Note: this does cause regressions for kms_color@pipe-a-ctm-* over HDMI.
      
      The result looks correct from visual inspection but the CRC no longer
      matches. For reference, the test was previously doing the following:
      
      linear degamma -> CTM -> sRGB regamma -> RGB to YUV (709) -> ...
      
      Now the test is doing:
      
      linear degamma -> CTM -> linear regamma -> RGB to YUV (709) -> ...
      Signed-off-by: NNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
      Reviewed-by: NSun peng Li <Sunpeng.Li@amd.com>
      Acked-by: NBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      cf020d49
    • W
      drm/amd/display: update DSC MST DP virtual DPCD peer device enumeration policy · 39a4eb85
      Wenjing Liu 提交于
      [why]
      Current policy assumes virtual DPCD peer device as
      an individual MST branch device with 1 input and 1 output.
      However this is only true for virtual DP-to-DP peer device.
      In general there are three types of virtual DP peer devices.
      1. Sink peer device with virtual DPCD.
      2. Virtual DP-to-DP Peer device with virtual DPCD.
      3. Virtual DP-to-HDMI Protocol Converter Peer Device with
      Virtual DPCD.
      So we should break the assumption and handle all three types.
      
      [how]
      DP-to-DP peer device will have virtual DPCD cap upstream.
      Sink peer device will have virtual DPCD on the logical port.
      Dp to HDMI protocol converter peer device will have virtual DPCD
      on its converter port.
      For DSC capable Synaptics non VGA port we workaround by enumerating
      a virutal DPCD peer device on its upstream
      even if it doesn't have one.
      Signed-off-by: NWenjing Liu <Wenjing.Liu@amd.com>
      Reviewed-by: NJun Lei <Jun.Lei@amd.com>
      Acked-by: NBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      39a4eb85
    • T
      drm/amd/display: Add power down display on boot flag · 78ad75f8
      Thomas Lim 提交于
      [Why]
      Due to the generic introduction of seamless boot, the display is no
      longer blanked upon boot. However, this causes corruption on some
      systems that does not lock the memory in the non-secure boot case,
      resulting in brief corruption on boot due to garbage being written into
      the frame buffer.
      
      [How]
      Add a flag, read during DC init, to determine whether display should be
      blanked on boot. Default to true.
      Signed-off-by: NThomas Lim <Thomas.Lim@amd.com>
      Reviewed-by: NAric Cyr <Aric.Cyr@amd.com>
      Acked-by: NAnthony Koo <Anthony.Koo@amd.com>
      Acked-by: NLeo Li <sunpeng.li@amd.com>
      Acked-by: NHawking Zhang <Hawking.Zhang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      78ad75f8
    • H
      drm/amd/display: disable dcn20 abm feature for bring up · 96cb7cf1
      hersen wu 提交于
      [WHY] dcn20 enable usb-c dp ALT mode in dmcu. There is bug
      when enable abm feature which cause system crash. dal team
      will debug this bug later.
      
      [HOW] disable dcn abm feature for dcn20.
      Signed-off-by: Nhersen wu <hersenxs.wu@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      96cb7cf1
    • H
      drm/amd/display: Add DSC support for Navi (v2) · 97bda032
      Harry Wentland 提交于
      Add support for DCN2 DSC (Display Stream Compression)
      
      HW Blocks:
      
       +--------++------+       +----------+
       | HUBBUB || HUBP |  <--  | MMHUBBUB |
       +--------++------+       +----------+
              |                     ^
              v                     |
          +--------+            +--------+
          |  DPP   |            |  DWB   |
          +--------+            +--------+
              |
              v                      ^
          +--------+                 |
          |  MPC   |                 |
          +--------+                 |
              |                      |
              v                      |
          +-------+      +-------+   |
          |  OPP  | <--> |  DSC  |   |
          +-------+      +-------+   |
              |                      |
              v                      |
          +--------+                /
          |  OPTC  |  --------------
          +--------+
              |
              v
          +--------+       +--------+
          |  DIO   |       |  DCCG  |
          +--------+       +--------+
      
      v2: rebase (Alex)
      Signed-off-by: NHarry Wentland <harry.wentland@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      97bda032