Skip to content
  1. Sep 25, 2020
  2. Sep 24, 2020
  3. Sep 23, 2020
    • Daniel Vetter's avatar
      drm/doc: Document that modifiers are always required for fb · 9e9f605f
      Daniel Vetter authored
      
      
      Even for legacy userspace, since otherwise GETFB2 is broken and if you
      switch between modifier-less and modifier-aware compositors, smooth
      transitions break.
      
      Also it's just best practice to make sure modifiers are invariant for
      a given drm_fb, and that a modifier-aware kms drivers only has one
      place to store them, ignoring any old implicit bo flags or whatever
      else might float around.
      
      Motivated by some irc discussion with Bas about amdgpu modifier
      support.
      
      Acked-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
      Acked-by: default avatarSimon Ser <contact@emersion.fr>
      Acked-by: default avatarDaniel Stone <daniels@collabora.com>
      Acked-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      Fixes: 455e00f1
      
       ("drm: Add getfb2 ioctl")
      Cc: Daniel Stone <daniels@collabora.com>
      Cc: Juston Li <juston.li@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
      Cc: Marek Olšák <maraeo@gmail.com>
      Cc: "Wentland, Harry" <harry.wentland@amd.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200917164721.2038541-1-daniel.vetter@ffwll.ch
      9e9f605f
    • Christian König's avatar
      drm/ttm: stop dangerous caching attribute change · db9c1734
      Christian König authored
      
      
      When we swapout/in a BO we try to change the caching
      attributes of the pages before/after doing the copy.
      
      On x86 this is done by calling set_pages_uc(),
      set_memory_wc() or set_pages_wb() for not highmem pages
      to update the linear mapping of the page.
      
      On all other platforms we do exactly nothing.
      
      Now on x86 this is unnecessary because copy_highpage() will
      either create a temporary mapping of the page which is wb
      anyway and destroyed immediately again or use the linear
      mapping with the correct caching attributes.
      
      So stop this nonsense and just keep the caching as it is and
      return an error when a driver tries to change the caching of
      an already populated TT object.
      
      This is much more defensive since changing caching
      attributes is platform and driver specific and usually
      doesn't work after the page was initially allocated.
      
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/391293/
      db9c1734
    • Christian König's avatar
      drm/ttm: remove nonsense AGP handling · 4127a620
      Christian König authored
      
      
      map_page_into_agp() and unmap_page_from_agp() are only defined on x86.
      
      On all other platforms they are defined as noops. So this code doesn't has any effect at all.
      
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/391292/
      4127a620
    • Koba Ko's avatar
      drm/dp_mst: Retrieve extended DPCD caps for topology manager · ad44c032
      Koba Ko authored
      
      
      As per DP-1.3, First check DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT.
      If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 1,read the DP_DP13_DPCD_REV to
      get the faster capability.
      If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 0,read DP_DPCD_REV.
      
      Signed-off-by: default avatarKoba Ko <koba.ko@canonical.com>
      Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
      [added aux name to drm_dbg_kms() call]
      Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200922065313.4794-1-koba.ko@canonical.com
      ad44c032
  4. Sep 22, 2020