1. 14 9月, 2018 11 次提交
  2. 13 9月, 2018 2 次提交
  3. 12 9月, 2018 18 次提交
  4. 11 9月, 2018 7 次提交
    • D
      drm/fb: Stop leaking physical address · 6be8f3bd
      Daniel Vetter 提交于
      For buffer sharing, use dma-buf instead. We can't set smem_start to 0
      unconditionally since that's used by the fbdev mmap default
      implementation. And we have plenty of userspace which would like to
      keep that working.
      
      This might break legit userspace - if it does we need to look at a
      case-by-cases basis how to handle that. Worst case I expect overrides
      for only specific drivers, since anything remotely modern should be
      using dma-buf/prime now (which is about 7 years old now for DRM
      drivers).
      
      This issue was uncovered because Noralf's rework to implement a
      generic fb_probe also implements it's own fb_mmap callback. Which
      means smem_start didn't have to be set anymore, which blew up some
      blob in userspace rather badly.
      Acked-by: NSean Paul <seanpaul@chromium.org>
      Cc: Gustavo Padovan <gustavo@padovan.org>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: David Airlie <airlied@linux.ie>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Noralf Trønnes <noralf@tronnes.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180822085405.10787-4-daniel.vetter@ffwll.ch
      6be8f3bd
    • D
      fbdev: Add FBINFO_HIDE_SMEM_START flag · da6c7707
      Daniel Vetter 提交于
      DRM drivers really, really, really don't want random userspace to
      share buffer behind it's back, bypassing the dma-buf buffer sharing
      machanism. For that reason we've ruthlessly rejected any IOCTL
      exposing the physical address of any graphics buffer.
      
      Unfortunately fbdev comes with that built-in. We could just set
      smem_start to 0, but that means we'd have to hand-roll our own fb_mmap
      implementation. For good reasons many drivers do that, but
      smem_start/length is still super convenient.
      
      Hence instead just stop the leak in the ioctl, to keep fb mmap working
      as-is. A second patch will set this flag for all drm drivers.
      Acked-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: linux-fbdev@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180822085405.10787-3-daniel.vetter@ffwll.ch
      da6c7707
    • D
      vt: Remove vc_panic_force_write · 8d7fc299
      Daniel Vetter 提交于
      It was only used by the panic support in fbcon, which is now gone.
      Remove this now dead code too.
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Joe Perches <joe@perches.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Meng Xu <mengxu.gatech@gmail.com>
      Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
      Cc: Thomas Meyer <thomas@m3y3r.de>
      Cc: Mike Frysinger <vapier@chromium.org>
      Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Thierry Reding <treding@nvidia.com>
      Cc: David Lechner <david@lechnology.com>
      Cc: Philippe Ombredanne <pombredanne@nexb.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Kate Stewart <kstewart@linuxfoundation.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180822085405.10787-2-daniel.vetter@ffwll.ch
      8d7fc299
    • D
      fbdev: Drop FBINFO_CAN_FORCE_OUTPUT flag · 04cfcc7a
      Daniel Vetter 提交于
      This was only added for the drm's fbdev emulation support, so that it
      would try harder to show the Oops.
      
      Unfortunately this never really worked reliably, and in practice ended
      up pushing the real Oops off the screen due to plentyfull locking,
      sleep-while-atomic and other issues. So we removed all that support
      from the fbdev emulation a while back. Aside: We've also removed the
      kgdb support, for similar reasons.
      
      Since it's such a small patch I figured I don't split this up into the
      usual 3-phase removal.
      Acked-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Alexander Kapshuk <alexander.kapshuk@gmail.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Thierry Reding <treding@nvidia.com>
      Cc: David Lechner <david@lechnology.com>
      Cc: nouveau@lists.freedesktop.org
      Cc: linux-fbdev@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180822085405.10787-1-daniel.vetter@ffwll.ch
      04cfcc7a
    • A
      drm: Clarify DRM_MODE_REFLECT_X/Y documentation · 1f86fa15
      Alexandru Gheorghe 提交于
      DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit unclear
      to me, so try to clarify that with a bit of ascii graphics.
      
      Changes since v1:
        - Move the ascii graphics in the kerneldoc where all plane
          properties are already documented and make sure it's properly
          rendered, suggestested by Daniel Vetter.
      Signed-off-by: NAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180910172946.18539-1-alexandru-cosmin.gheorghe@arm.com
      1f86fa15
    • Y
      drm: Remove set but not used variable 'config' · 5248092e
      YueHaibing 提交于
      Fixes gcc '-Wunused-but-set-variable' warning:
      
      drivers/gpu/drm/drm_plane.c: In function 'drm_mode_getplane_res':
      drivers/gpu/drm/drm_plane.c:475:26: warning:
       variable 'config' set but not used [-Wunused-but-set-variable]
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/1536646814-186429-1-git-send-email-yuehaibing@huawei.com
      5248092e
    • D
      Merge tag 'drm-intel-next-2018-09-06-2' of... · b1c15668
      Dave Airlie 提交于
      Merge tag 'drm-intel-next-2018-09-06-2' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      Merge tag 'gvt-next-2018-09-04'
      drm-intel-next-2018-09-06-1:
      UAPI Changes:
      - GGTT coherency GETPARAM: GGTT has turned out to be non-coherent for some
        platforms, which we've failed to communicate to userspace so far. SNA was
        modified to do extra flushing on non-coherent GGTT access, while Mesa will
        mitigate by always requiring WC mapping (which is non-coherent anyway).
      - Neuter Resource Streamer uAPI: There never really were users for the feature,
        so neuter it while keeping the interface bits for compatibility. This is a
        long due item from past.
      
      Cross-subsystem Changes:
      - Backmerge of branch drm-next-4.19 for DP_DPCD_REV_14 changes
      
      Core Changes:
      - None
      
      Driver Changes:
      
      - A load of Icelake (ICL) enabling patches (Paulo, Manasi)
      - Enabled full PPGTT for IVB,VLV and HSW (Chris)
      - Bugzilla #107113: Distribute DDB based on display resolutions (Mahesh)
      - Bugzillas #100023,#107476,#94921: Support limited range DP displays (Jani)
      - Bugzilla #107503: Increase LSPCON timeout (Fredrik)
      - Avoid boosting GPU due to an occasional stall in interactive workloads (Chris)
      - Apply GGTT coherency W/A only for affected systems instead of all (Chris)
      - Fix for infinite link training loop for faulty USB-C MST hubs (Nathan)
      - Keep KMS functional on Gen4 and earlier when GPU is wedged (Chris)
      - Stop holding ppGTT reference from closed VMAs (Chris)
      - Clear error registers after error capture (Lionel)
      - Various Icelake fixes (Anusha, Jyoti, Ville, Tvrtko)
      - Add missing Coffeelake (CFL) PCI IDs (Rodrigo)
      - Flush execlists tasklet directly from reset-finish (Chris)
      - Fix LPE audio runtime PM (Chris)
      - Fix detection of out of range surface positions (GLK/CNL) (Ville)
      - Remove wait-for-idle for PSR2 (Dhinakaran)
      - Power down existing display hardware resources when display is disabled (Chris)
      - Don't allow runtime power management if RC6 doesn't exist (Chris)
      - Add debugging checks for runtime power management paths (Imre)
      - Increase symmetry in display power init/fini paths (Imre)
      - Isolate GVT specific macros from i915_reg.h (Lucas)
      - Increase symmetry in power management enable/disable paths (Chris)
      - Increase IP disable timeout to 100 ms to avoid DRM_ERROR (Imre)
      - Fix memory leak from HDMI HDCP write function (Brian, Rodrigo)
      - Reject Y/Yf tiling on interlaced modes (Ville)
      - Use a cached mapping for the physical HWS on older gens (Chris)
      - Force slow path of writing relocations to buffer if unable to write to userspace (Chris)
      - Do a full device reset after being wedged (Chris)
      - Keep forcewake counts over reset (in case of debugfs user) (Imre, Chris)
      - Avoid false-positive errors from power wells during init (Imre)
      - Reset engines forcibly in exchange of declaring whole device wedged (Mika)
      - Reduce context HW ID lifetime in preparation for Icelake (Chris)
      - Attempt to recover from module load failures (Chris)
      - Keep select interrupts over a reset to avoid missing/losing them (Chris)
      - GuC submission backend improvements (Jakub)
      - Terminate context images with BB_END (Chris, Lionel)
      - Make GCC evaluate GGTT view struct size assertions again (Ville)
      - Add selftest to exercise suspend/hibernate code-paths for GEM (Chris)
      - Use a full emulation of a user ppgtt context in selftests (Chris)
      - Exercise resetting in the middle of a wait-on-fence in selftests (Chris)
      - Fix coherency issues on selftests for Baytrail (Chris)
      - Various other GEM fixes / self-test updates (Chris, Matt)
      - GuC doorbell self-tests (Daniele)
      - PSR mode control through debugfs for IGTs (Maarten)
      - Degrade expected WM latency errors to DRM_DEBUG_KMS (Chris)
      - Cope with errors better in MST link training (Dhinakaran)
      - Fix WARN on KBL external displays (Azhar)
      - Power well code cleanups (Imre)
      - Fixes to PSR debugging (Dhinakaran)
      - Make forcewake errors louder for easier catching in CI (WARNs) (Chris)
      - Fortify tiling code against programmer errors (Chris)
      - Bunch of fixes for CI exposed corner cases (multiple authors, mostly Chris)
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180907105446.GA22860@jlahtine-desk.ger.corp.intel.com
      b1c15668
  5. 10 9月, 2018 2 次提交