1. 15 12月, 2020 2 次提交
  2. 10 11月, 2020 1 次提交
  3. 06 11月, 2020 1 次提交
    • D
      drm/<drivers>: Constify struct drm_driver · 70a59dd8
      Daniel Vetter 提交于
      Only the following drivers aren't converted:
      - amdgpu, because of the driver_feature mangling due to virt support.
        Subsequent patch will address this.
      - nouveau, because DRIVER_ATOMIC uapi is still not the default on the
        platforms where it's supported (i.e. again driver_feature mangling)
      - vc4, again because of driver_feature mangling
      - qxl, because the ioctl table is somewhere else and moving that is
        maybe a bit too much, hence the num_ioctls assignment prevents a
        const driver structure.
      - arcpgu, because that is stuck behind a pending tiny-fication series
        from me.
      - legacy drivers, because legacy requires non-const drm_driver.
      
      Note that for armada I also went ahead and made the ioctl array const.
      
      Only cc'ing the driver people who've not been converted (everyone else
      is way too much).
      
      v2: Fix one misplaced const static, should be static const (0day)
      
      v3:
      - Improve commit message (Sam)
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: kernel test robot <lkp@intel.com>
      Acked-by: NMaxime Ripard <mripard@kernel.org>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: virtualization@lists.linux-foundation.org
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Leo Li <sunpeng.li@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: nouveau@lists.freedesktop.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201104100425.1922351-5-daniel.vetter@ffwll.ch
      70a59dd8
  4. 25 9月, 2020 1 次提交
  5. 08 8月, 2020 1 次提交
    • J
      drm: Remove unnecessary drm_panel_attach and drm_panel_detach · 87154ff8
      Joe Perches 提交于
      These functions are now empty and no longer
      useful so remove the functions and their uses.
      Signed-off-by: NJoe 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. 03 7月, 2020 1 次提交
    • D
      drm/atomic-helper: reset vblank on crtc reset · 51f644b4
      Daniel Vetter 提交于
      Only when vblanks are supported ofc.
      
      Some drivers do this already, but most unfortunately missed it. This
      opens up bugs after driver load, before the crtc is enabled for the
      first time. syzbot spotted this when loading vkms as a secondary
      output. Given how many drivers are buggy it's best to solve this once
      and for all in shared helper code.
      
      Aside from moving the few existing calls to drm_crtc_vblank_reset into
      helpers (i915 doesn't use helpers, so keeps its own) I think the
      regression risk is minimal: atomic helpers already rely on drivers
      calling drm_crtc_vblank_on/off correctly in their hooks when they
      support vblanks. And driver that's failing to handle vblanks after
      this is missing those calls already, and vblanks could only work by
      accident when enabling a CRTC for the first time right after boot.
      
      Big thanks to Tetsuo for helping track down what's going wrong here.
      
      There's only a few drivers which already had the necessary call and
      needed some updating:
      - komeda, atmel and tidss also needed to be changed to call
        __drm_atomic_helper_crtc_reset() intead of open coding it
      - tegra and msm even had it in the same place already, just code
        motion, and malidp already uses __drm_atomic_helper_crtc_reset().
      - Laurent noticed that rcar-du and omap open-code their crtc reset and
        hence would actually be broken by this patch now. So fix them up by
        reusing the helpers, which brings the drm_crtc_vblank_reset() back.
      
      Only call left is in i915, which doesn't use drm_mode_config_reset,
      but has its own fastboot infrastructure. So that's the only case where
      we actually want this in the driver still.
      
      I've also reviewed all other drivers which set up vblank support with
      drm_vblank_init. After the previous patch fixing mxsfb all atomic
      drivers do call drm_crtc_vblank_on/off as they should, the remaining
      drivers are either legacy kms or legacy dri1 drivers, so not affected
      by this change to atomic helpers.
      
      v2: Use the drm_dev_has_vblank() helper.
      
      v3: Laurent pointed out that omap and rcar-du used drm_crtc_vblank_off
      instead of drm_crtc_vblank_reset. Adjust them too.
      
      v4: Laurent noticed that rcar-du and omap open-code their crtc reset
      and hence would actually be broken by this patch now. So fix them up
      by reusing the helpers, which brings the drm_crtc_vblank_reset() back.
      
      v5: also mention rcar-du and ompadrm in the proper commit message
      above (Laurent).
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: NMaxime Ripard <mripard@kernel.org>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: NBoris Brezillon <boris.brezillon@collabora.com>
      Acked-by: NLiviu Dudau <liviu.dudau@arm.com>
      Acked-by: NThierry Reding <treding@nvidia.com>
      Link: https://syzkaller.appspot.com/bug?id=0ba17d70d062b2595e1f061231474800f076c7cbReported-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Reported-by: syzbot+0871b14ca2e2fb64f6e3@syzkaller.appspotmail.com
      Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: "James (Qian) Wang" <james.qian.wang@arm.com>
      Cc: Liviu Dudau <liviu.dudau@arm.com>
      Cc: Mihail Atanassov <mihail.atanassov@arm.com>
      Cc: Brian Starkey <brian.starkey@arm.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Boris Brezillon <bbrezillon@kernel.org>
      Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Brian Masney <masneyb@onstation.org>
      Cc: Emil Velikov <emil.velikov@collabora.com>
      Cc: zhengbin <zhengbin13@huawei.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-tegra@vger.kernel.org
      Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200612160056.2082681-1-daniel.vetter@ffwll.ch
      51f644b4
  7. 20 5月, 2020 1 次提交
  8. 26 2月, 2020 6 次提交
  9. 09 12月, 2019 1 次提交
  10. 29 8月, 2019 1 次提交
  11. 12 8月, 2019 1 次提交
  12. 17 7月, 2019 1 次提交
  13. 26 6月, 2019 1 次提交
  14. 21 6月, 2019 1 次提交
    • D
      drm/prime: Actually remove DRIVER_PRIME everywhere · 0424fdaf
      Daniel Vetter 提交于
      Split out to make the functional changes stick out more.
      
      All places where DRIVER_PRIME was used have been removed in previous
      patches already.
      
      v2: amdgpu gained DRIVER_SYNCOBJ_TIMELINE.
      
      v3: amdgpu lost DRIVER_SYNCOBJ_TIMELINE.
      
      v4: Don't add a space in i915_drv.c (Sam)
      
      v5: Add note that previous patches removed all the DRIVER_PRIME users
      already (Emil).
      
      v6: Fixupe ingenic (new driver) while applying.
      
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NEmil Velikov <emil.velikov@collabora.com>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: etnaviv@lists.freedesktop.org
      Cc: freedreno@lists.freedesktop.org
      Cc: intel-gfx@lists.freedesktop.org
      Cc: lima@lists.freedesktop.org
      Cc: linux-amlogic@lists.infradead.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-arm-msm@vger.kernel.org
      Cc: linux-aspeed@lists.ozlabs.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-stm32@st-md-mailman.stormreply.com
      Cc: linux-tegra@vger.kernel.org
      Cc: nouveau@lists.freedesktop.org
      Cc: NXP Linux Team <linux-imx@nxp.com>
      Cc: spice-devel@lists.freedesktop.org
      Cc: virtualization@lists.linux-foundation.org
      Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
      Cc: xen-devel@lists.xenproject.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20190617153924.414-1-daniel.vetter@ffwll.ch
      0424fdaf
  15. 19 6月, 2019 1 次提交
  16. 10 6月, 2019 1 次提交
  17. 18 3月, 2019 6 次提交
  18. 24 1月, 2019 1 次提交
  19. 02 10月, 2018 2 次提交
  20. 03 9月, 2018 9 次提交