1. 04 Mar, 2019 8 commits
  2. 01 Mar, 2019 3 commits
  3. 28 Feb, 2019 5 commits
  4. 27 Feb, 2019 3 commits
  5. 26 Feb, 2019 3 commits
  6. 21 Feb, 2019 9 commits
  7. 20 Feb, 2019 2 commits
    • Christian König's avatar
      drm/amdgpu: fix dma mask check in gmc_v6_0.c · 1fdafbd0
      Christian König authored
      This got messed up by "drm: change func to better detect wether swiotlb
      is needed".
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: default avatarMichael D Labriola <michael.d.labriola@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/287070/
      1fdafbd0
    • Michael D Labriola's avatar
      drm: change func to better detect wether swiotlb is needed · 913b2cb7
      Michael D Labriola authored
      This commit fixes DRM failures on Xen PV systems that were introduced in
      v4.17 by the following commits:
      
      82626363 drm: add func to get max iomem address v2
      fd5fd480 drm/amdgpu: only enable swiotlb alloc when need v2
      1bc3d3cc drm/radeon: only enable swiotlb path when need v2
      
      The introduction of ->need_swiotlb to the ttm_dma_populate() conditionals
      in the radeon and amdgpu device drivers causes Gnome to immediately crash
      on Xen PV systems, returning the user to the login screen.  The following
      kernel errors get logged:
      
      [   28.554259] radeon_dp_aux_transfer_native: 200 callbacks suppressed
      [   31.219821] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   31.220030] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   31.226109] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   31.226300] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   31.300734] gnome-shell[1935]: segfault at 88 ip 00007f39151cd904 sp 00007ffc97611ad8 error 4 in libmutter-cogl.so[7f3915178000+aa000]
      [   31.300745] Code: 5f c3 0f 1f 40 00 48 8b 47 78 48 8b 40 40 ff e0 66 0f 1f 44 00 00 48 8b 47 78 48 8b 40 48 ff e0 66 0f 1f 44 00 00 48 8b 47 78 <48> 8b 80 88 00 00 00 ff e0 0f 1f 00 48 8b 47 78 48 8b 40 68 ff e0
      [   38.193302] radeon_dp_aux_transfer_native: 116 callbacks suppressed
      [   40.009317] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   40.009488] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   40.015114] radeon 0000:01:00.0: swiotlb buffer is full (sz: 2097152 bytes)
      [   40.015297] [drm:radeon_gem_object_create [radeon]] *ERROR* Failed to allocate GEM object (16384000, 2, 4096, -14)
      [   40.028302] gnome-shell[2431]: segfault at 2dadf40 ip 0000000002dadf40 sp 00007ffcd24ea5f8 error 15
      [   40.028306] Code: 20 6e 31 00 00 00 00 00 00 00 00 37 e3 3d 2d 7f 00 00 80 f4 e6 3d 2d 7f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 c1 00 00 00 00 00 00 00 80 e1 d2 03 00 00
      
      This commit renames drm_get_max_iomem() to drm_need_swiotlb(), adds a
      xen_pv_domain() check to it, and moves the bit shifting comparison that
      always follows its usage into the function (simplifying the drm driver
      code).
      Signed-off-by: default avatarMichael D Labriola <michael.d.labriola@gmail.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Link: https://patchwork.freedesktop.org/patch/286987/
      913b2cb7
  8. 19 Feb, 2019 7 commits
    • Uma Shankar's avatar
      drm/i915: Attach colorspace property and enable modeset · 2f146b78
      Uma Shankar authored
      This patch attaches the colorspace connector property to the
      hdmi connector. Based on colorspace change, modeset will be
      triggered to switch to new colorspace.
      
      Based on colorspace property value create an infoframe
      with appropriate colorspace. This can be used to send an
      infoframe packet with proper colorspace value set which
      will help to enable wider color gamut like BT2020 on sink.
      
      This patch attaches and enables HDMI colorspace, DP will be
      taken care separately.
      
      v2: Merged the changes of creating infoframe as well to this
      patch as per Maarten's suggestion.
      
      v3: Addressed review comments from Shashank. Separated HDMI
      and DP colorspaces as suggested by Ville and Maarten.
      
      v4: Addressed Chris and Ville's review comments, and created a
      common colorspace property for DP and HDMI, filtered the list
      based on the colorspaces supported by the respective protocol
      standard. Handle the default case properly.
      
      v5: Merged the DP handling along with platform colorspace
      handling as per Shashank's comments.
      
      v6: Reverted to old design of exposing all colorspaces to
      userspace as per Ville's review comment
      
      v7: Fixed a checkpatch complaint, Addressed  Maarten' review
      comment, updated the RB from Maarten and Jani's ack.
      
      v8: Moved colorspace AVI Infoframe programming to drm core and
      removed from driver as per Ville's suggestion.
      
      v9: Added a check to only allow RGB colorpsaces to be set in
      infoframe though the colorspace property. Since there is no output
      csc property to control planar formats and it will be added later.
      Changes for RGB->YUV conversion inside driver without userspace
      knowledge is still supported. This is as per Ville's suggestion.
      
      v10: Fixed an error in if check.
      
      v11: Dropped the check for planar vs RGB and allow all the colorspaces.
      Onus will be on userspace to pick whatever pipe output it is able to
      drive.
      
      v12: Added Ville's RB.
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
      Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1550596381-993-4-git-send-email-uma.shankar@intel.com
      2f146b78
    • Uma Shankar's avatar
      drm: Add colorspace info to AVI Infoframe · 0d68b887
      Uma Shankar authored
      This adds colorspace information to HDMI AVI infoframe.
      A helper function is added to program the same.
      
      v2: Moved this to drm core instead of i915 driver.
      
      v3: Exported the helper function.
      
      v4: Added separate HDMI specific macro as per CTA spec.
      This is separate from user exposed enum values. This is
      as per Ville's suggestion.
      
      v5: Appended BT709 and SMPTE 170M with YCC information as per Ville's
      review comment to be clear and not to be confused with RGB.
      
      v6: Added bit wise macro for various fields of colorimetry for easier
      understanding and review as per Ville's comments. Moved the same out of
      header file to avoid any namespace issues.
      
      v7: Undef some macros to avoid any namespace collision as suggested by
      Ville. Added Ville's RB.
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1550596381-993-3-git-send-email-uma.shankar@intel.com
      0d68b887
    • Uma Shankar's avatar
      drm: Add HDMI colorspace property · d2c6a405
      Uma Shankar authored
      Create a new connector property to program colorspace to sink
      devices. Modern sink devices support more than 1 type of
      colorspace like 601, 709, BT2020 etc. This helps to switch
      based on content type which is to be displayed. The decision
      lies with compositors as to in which scenarios, a particular
      colorspace will be picked.
      
      This will be helpful mostly to switch to higher gamut colorspaces
      like BT2020 when the media content is encoded as BT2020. Thereby
      giving a good visual experience to users.
      
      The expectation from userspace is that it should parse the EDID
      and get supported colorspaces. Use this property and switch to the
      one supported. Sink supported colorspaces should be retrieved by
      userspace from EDID and driver will not explicitly expose them.
      
      Basically the expectation from userspace is:
       - Set up CRTC DEGAMMA/CTM/GAMMA to convert to some sink
         colorspace
       - Set this new property to let the sink know what it
         converted the CRTC output to.
      
      v2: Addressed Maarten and Ville's review comments. Enhanced
      the colorspace enum to incorporate both HDMI and DP supported
      colorspaces. Also, added a default option for colorspace.
      
      v3: Removed Adobe references from enum definitions as per
      Ville, Hans Verkuil and Jonas Karlman suggestions. Changed
      Default to an unset state where driver will assign the colorspace
      is not chosen by user, suggested by Ville and Maarten. Addressed
      other misc review comments from Maarten. Split the changes to
      have separate colorspace property for DP and HDMI.
      
      v4: Addressed Chris and Ville's review comments, and created a
      common colorspace property for DP and HDMI, filtered the list
      based on the colorspaces supported by the respective protocol
      standard.
      
      v5: Made the property creation helper accept enum list based on
      platform capabilties as suggested by Shashank. Consolidated HDMI
      and DP property creation in the common helper.
      
      v6: Addressed Shashank's review comments.
      
      v7: Added defines instead of enum in uapi as per Brian Starkey's
      suggestion in order to go with string matching at userspace. Updated
      the commit message to add more details as well kernel docs.
      
      v8: Addressed Maarten's review comments.
      
      v9: Removed macro defines from uapi as per Brian Starkey and Daniel
      Stone's comments and moved to drm include file. Moved back to older
      design with exposing all HDMI colorspaces to userspace since infoframe
      capability is there even on legacy platforms, as per Ville's review
      comments.
      
      v10: Fixed sparse warnings, updated the RB from Maarten and Jani's ack.
      
      v11: Addressed Ville's review comments. Updated the Macro naming and
      added DCI-P3 colorspace as well, defined in CTA 861.G spec.
      
      v12: Appended BT709 and SMPTE 170M with YCC information as per Ville's
      review comment to be clear and not to be confused with RGB.
      
      v13: Reorder the colorspace macros.
      
      v14: Removed DP as of now, will be added later once full support is
      enabled, as per Ville's suggestion. Added Ville's RB.
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
      Reviewed-by: default avatarShashank Sharma <shashank.sharma@intel.com>
      Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1550596381-993-2-git-send-email-uma.shankar@intel.com
      d2c6a405
    • Daniel Vetter's avatar
      drm/doc: document recommended component helper usage · 86ab67df
      Daniel Vetter authored
      Now that component has docs it's worth spending a few words and
      hyperlinks on recommended best practices in drm.
      
      v2: Add another item that component shouldn't be preferred over
      drm_bridge/panel and similar subsystems already providing specialized
      support for specific components (Laurent). Also convert to bullet
      list.
      
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Russell King - ARM Linux admin <linux@armlinux.org.uk>
      Reviewed-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190212164615.13370-1-daniel.vetter@ffwll.ch
      86ab67df
    • Gustavo A. R. Silva's avatar
      drm/drm_vm: Mark expected switch fall-throughs · 58db7022
      Gustavo A. R. Silva authored
      In preparation to enabling -Wimplicit-fallthrough, mark switch
      cases where we are expecting to fall through.
      
      Warning level 3 was used: -Wimplicit-fallthrough=3
      
      Notice that, in this particular case, the code comment is modified
      in accordance with what GCC is expecting to find.
      
      This patch is part of the ongoing efforts to enable
      -Wimplicit-fallthrough.
      Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190215170546.GA30950@embeddedor
      58db7022
    • Maxime Ripard's avatar
      Merge tag 'topic/component-typed-2019-02-11' of... · e179d8e0
      Maxime Ripard authored
      Merge tag 'topic/component-typed-2019-02-11' of git://anongit.freedesktop.org/drm/drm-intel into drm-misc-next
      
      typed componented support + i915/snd-hda changes
      
      This is needed by the new MEI-HDCP support in i915, so will need to go
      in through drm and drivers-misc trees at least.
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      
      # gpg: Signature made Mon 11 Feb 2019 06:06:26 PM CET
      # gpg:                using RSA key 6F89C6EA32EEF18E5723E3DF4C0F727BF098AA71
      # gpg: Can't check signature: No public key
      From: Daniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/CAKMK7uHU37VLbe4RBZ3GOow+=pupYAHotkVrpqJeiUcpSfjX8Q@mail.gmail.com
      e179d8e0
    • Maxime Ripard's avatar
      Merge drm/drm-next into drm-misc-next · ae6ba10d
      Maxime Ripard authored
      Backmerge drm-next to bring in -rc7
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      ae6ba10d