1. 19 Nov, 2020 1 commit
  2. 18 Nov, 2020 1 commit
  3. 17 Nov, 2020 2 commits
  4. 16 Nov, 2020 3 commits
  5. 15 Nov, 2020 1 commit
  6. 14 Nov, 2020 1 commit
  7. 13 Nov, 2020 3 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-gt-next-2020-11-12-1' of... · 334a1683
      Dave Airlie authored
      Merge tag 'drm-intel-gt-next-2020-11-12-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      Cross-subsystem Changes:
      - DMA mapped scatterlist fixes in i915 to unblock merging of
        https://lkml.org/lkml/2020/9/27/70 (Tvrtko, Tom)
      
      Driver Changes:
      
      - Fix for user reported issue #2381 (Graphical output stops with "switching to inteldrmfb from simple"):
        Mark ininitial fb obj as WT on eLLC machines to avoid rcu lockup during fbdev init (Ville, Chris)
      - Fix for Tigerlake (and earlier) to avoid spurious empty CSB events leading to hang (Chris, Bruce)
      - Delay execlist processing for Tigerlake to avoid hang (Chris)
      - Fix for Tigerlake RCS engine health check through heartbeat (Chris)
      - Fix for Tigerlake reserved MOCS entries (Ayaz, Chris)
      - Fix Media power gate sequence on Tigerlake (Rodrigo)
      - Enable eLLC caching of display buffers for SKL+ (Ville)
      - Support parsing of oversize batches on Gen9 (Matt, Chris)
      - Exclude low pages (128KiB) of stolen from use to avoid thrashing during reset (Chris)
      - Flush engines before Tigerlake breadcrumbs (Chris)
      
      - Use the local HWSP offset during submission (Chris)
      - Flush coherency domains on first set-domain-ioctl (Chris, Zbigniew)
      - Use the active reference on the vma while capturing to avoid use-after-free (Chris)
      - Fix MOCS PTE setting for gen9+ (Ville)
      - Avoid NULL dereference on IPS driver callback while unbinding i915 (Chris)
      - Avoid NULL dereference from PT/PD stash allocation error (Matt)
      - Hold request reference for canceling an active context (Chris)
      - Avoid infinite loop on x86-32 when mapping a lot of objects (Chris)
      - Disallow WC mappings when processor doesn't support them (Chris)
      - Return correct error in i915_gem_object_copy_blt() error path (Dan)
      - Return correct error in intel_context_create_request() error path (Maarten)
      - Tune down GuC communication enabled/disabled messages to debug (Jani)
      - Fix rebased commit "Remove i915_request.lock requirement for execution callbacks" (Chris)
      - Cancel outstanding work after disabling heartbeats on an engine (Chris)
      - Signal cancelled requests (Chris)
      - Retire cancelled requests on unload (Chris)
      - Scrub HW state on driver remove (Chris)
      - Undo forced context restores after trivial preemptions (Chris)
      - Handle PCI unbind in PMU code (Tvrtko)
      - Fix CPU hotplug with multiple GPUs in PMU code (Trtkko)
      - Correctly set SFC capability for video engines (Venkata)
      
      - Update GuC code to use firmware v49.0.1 (John, Matthew B., Daniele, Oscar, Michel, Rodrigo, Michal)
      - Improve GuC warnings on loading failure (John)
      - Avoid ownership race in buffer pool by clearing age (Chris)
      - Use MMIO to read CSB in case of failure (Chris, Mika)
      - Show engine properties in engine state dump to indicate changes (Chris, Joonas)
      - Break up error capture compression loops with cond_resched() (Chris)
      - Reduce GPU error capture mutex hold time to avoid khungtaskd (Chris)
      - Serialise debugfs i915_gem_objects with ctx->mutex (Chris)
      - Always test execution status on closing the context and close if not persistent (Chris)
      - Avoid mixing integer types during batch copies (Chris, Jared)
      - Skip over MI_NOOP when parsing to avoid overhead (Chris)
      - Hold onto an explicit ref to i915_vma_work.pinned (Chris)
      - Perform all asynchronous waits prior to marking payload start (Chris)
      - Pull phys pread/pwrite implementations to the backend (Matt)
      
      - Improve record of hung engines in error state (Tvrtko)
      - Allow backends to override pread implementation (Matt)
      - Reinforce LRC poisoning checks to confirm context survives execution (Chris)
      - Fix memory region max size calculation (Matt)
      - Fix order when adding blocks to memory region (Matt)
      - Eliminate unused intel_virtual_engine_get_sibling func (Chris)
      - Cleanup kasan warning for on-stack (unsigned long) casting (Chris)
      - Onion unwind for scratch page allocation failure (Chris)
      - Poison stolen pages before use (Chris)
      - Selftest improvements (Chris)
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201112163407.GA20320@jlahtine-mobl.ger.corp.intel.com
      334a1683
    • Dave Airlie's avatar
      drm/Kconfig: rename keembay config · 24bdae69
      Dave Airlie authored
      This all caps looked ugly.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      24bdae69
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2020-11-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 14346c08
      Dave Airlie authored
      drm-misc-next for 5.11:
      
      UAPI Changes:
      
      Cross-subsystem Changes:
      
      Core Changes:
      
       - Remove pgprot_decrypt() before calling io_remap_pfn_range()
       - Revert "drm/dp_mst: Retrieve extended DPCD caps for topology manager"
       - ttm: Add multihop infrastructure
       - doc: Update dma-buf
      
      Driver Changes:
      
       - amdgpu: Use TTM multihop
       - kmb: select DRM_MIPI_DSI and depend on ARCH_KEEMBAY; Fix build warning;
         Fix typos
       - nouveau: Use TTM multihop; Fix out-of-bounds access
       - radeon: Use TTM multihop
       - ingenic: Search for scaling coefficients to to 102% of screen size
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201112080115.GA7954@linux-uq9g
      14346c08
  8. 11 Nov, 2020 10 commits
  9. 10 Nov, 2020 18 commits
    • Koba Ko's avatar
      Revert "drm/dp_mst: Retrieve extended DPCD caps for topology manager" · 2dcab875
      Koba Ko authored
      This reverts commit ad44c032.
      
      Currently DRM driver assume the source device caps is higher than the MST device
      caps. With this commit, this statement would be broken.
      
      e.g. the source device only support DP1.2 and the mst device support DP1.4.
      Signed-off-by: default avatarKoba Ko <koba.ko@canonical.com>
      Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
      Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201103034907.72129-1-koba.ko@canonical.com
      2dcab875
    • Jason Gunthorpe's avatar
      drm: remove pgprot_decrypted() before calls to io_remap_pfn_range() · 23d6ab1d
      Jason Gunthorpe authored
      commit f8f6ae5d ("mm: always have io_remap_pfn_range() set
      pgprot_decrypted()") moves the pgprot_decrypted() into
      io_remap_pfn_range(). Delete any, now confusing, open coded calls that
      directly precede io_remap_pfn_range():
      
      - drm_io_prot() is only in drm_mmap_locked() to call io_remap_pfn_range()
      
      - fb_mmap() immediately calls vm_iomap_memory() which is a convenience
        wrapper for io_remap_pfn_range()
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/0-v1-2e6a0db57868+166-drm_sme_clean_jgg@nvidia.com
      23d6ab1d
    • Geert Uytterhoeven's avatar
      drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY · ade89646
      Geert Uytterhoeven authored
      The Intel Keem Bay display controller is only present on Intel Keem Bay
      SoCs.  Hence add a dependency on ARCH_KEEMBAY, to prevent asking the
      user about this driver when configuring a kernel without Intel Keem Bay
      platform support.
      
      Note that:
        1. The dependency on ARM is dropped, as Keem Bay SoCs are only
           supported in arm64 kernel builds,
        2. The dependencies on OF and COMMON_CLK can be dropped for
           compile-testing, as the driver builds fine regardless.
      
      Fixes: ed794057 ("drm/kmb: Build files for KeemBay Display driver")
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201110144350.3279147-1-geert+renesas@glider.be
      ade89646
    • Geert Uytterhoeven's avatar
      drm: DRM_KMB_DISPLAY should select DRM_MIPI_DSI · dc0636b8
      Geert Uytterhoeven authored
      If CONFIG_DRM_MIPI_DSI=n:
      
          aarch64-linux-gnu-ld: drivers/gpu/drm/kmb/kmb_dsi.o: in function `kmb_dsi_host_unregister':
          kmb_dsi.c:(.text+0xa48): undefined reference to `mipi_dsi_host_unregister'
          aarch64-linux-gnu-ld: drivers/gpu/drm/kmb/kmb_dsi.o: in function `kmb_dsi_host_bridge_init':
          kmb_dsi.c:(.text+0xb14): undefined reference to `mipi_dsi_host_register'
      
      Fix this be selecting DRM_MIPI_DSI, like other drivers do.
      
      Fixes: ed794057 ("drm/kmb: Build files for KeemBay Display driver")
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201110144219.3278831-1-geert+renesas@glider.be
      dc0636b8
    • Thomas Zimmermann's avatar
      Merge drm/drm-next into drm-misc-next · 112e505a
      Thomas Zimmermann authored
      We need commit f8f6ae5d ("mm: always have io_remap_pfn_range() set
      pgprot_decrypted()") to be able to merge Jason's cleanup patch.
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      112e505a
    • Daniel Abrecht's avatar
      drm: mxsfb: Implement .format_mod_supported · 55c8bcae
      Daniel Abrecht authored
      This will make sure applications which use the IN_FORMATS blob
      to figure out which modifiers they can use will pick up the
      linear modifier which is needed by mxsfb. Such applications
      will not work otherwise if an incompatible implicit modifier
      ends up being selected.
      
      Before commit ae1ed009 ("drm: mxsfb: Stop using DRM simple
      display pipeline helper"), the DRM simple display pipeline
      helper took care of this.
      Signed-off-by: default avatarDaniel Abrecht <public@danielabrecht.ch>
      Fixes: ae1ed009 ("drm: mxsfb: Stop using DRM simple display pipeline helper")
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/2a99ffffc2378209307e0992a6e97e70@nodmarc.danielabrecht.ch
      55c8bcae
    • Deepak R Varma's avatar
      drm/vgem: replace idr_init() by idr_init_base() · 05854d48
      Deepak R Varma authored
      idr_init() uses base 0 which is an invalid identifier. The new function
      idr_init_base allows IDR to set the ID lookup from base 1. This avoids
      all lookups that otherwise starts from 0 since 0 is always unused.
      
      References: commit 6ce711f2 ("idr: Make 1-based IDRs more efficient")
      Signed-off-by: default avatarDeepak R Varma <mh12gx2825@gmail.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105173646.GA41732@localhost
      05854d48
    • Daniel Vetter's avatar
      Merge v5.10-rc3 into drm-next · 512bce50
      Daniel Vetter authored
      We need commit f8f6ae5d ("mm: always have io_remap_pfn_range() set
      pgprot_decrypted()") to be able to merge Jason's cleanup patch.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      512bce50
    • Dinghao Liu's avatar
      drm/omap: Fix runtime PM imbalance on error · a5d704d3
      Dinghao Liu authored
      pm_runtime_get_sync() increments the runtime PM usage counter
      even when it returns an error code. However, users of its
      direct wrappers in omapdrm assume that PM usage counter will
      not change on error. Thus a pairing decrement is needed on
      the error handling path for these wrappers to keep the counter
      balanced.
      Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200822065743.13671-1-dinghao.liu@zju.edu.cn
      a5d704d3
    • Alexander A. Klimov's avatar
      drm: omapdrm: Replace HTTP links with HTTPS ones · 1b409fda
      Alexander A. Klimov authored
      Rationale:
      Reduces attack surface on kernel devs opening the links for MITM
      as HTTPS traffic is much harder to manipulate.
      
      Deterministic algorithm:
      For each file:
        If not .svg:
          For each line:
            If doesn't contain `\bxmlns\b`:
              For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
      	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
                  If both the HTTP and HTTPS versions
                  return 200 OK and serve the same content:
                    Replace HTTP with HTTPS.
      Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200713122859.34135-1-grandmaster@al2klimov.de
      1b409fda
    • Wang Xiaojun's avatar
      drm/tidss: use devm_platform_ioremap_resource_byname · 3945ac0e
      Wang Xiaojun authored
      Use the devm_platform_ioremap_resource_byname() helper instead of
      calling platform_get_resource_byname() and devm_ioremap_resource()
      separately.
      Signed-off-by: default avatarWang Xiaojun <wangxiaojun11@huawei.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200917062958.2183496-1-wangxiaojun11@huawei.com
      3945ac0e
    • Lee Jones's avatar
      drm/omap: dsi: Rework and remove a few unused variables · ae36fccc
      Lee Jones authored
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/omapdrm/dss/dsi.c: In function ‘_dsi_print_reset_status’:
       drivers/gpu/drm/omapdrm/dss/dsi.c:1131:6: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
       drivers/gpu/drm/omapdrm/dss/dsi.c: In function ‘dsi_update’:
       drivers/gpu/drm/omapdrm/dss/dsi.c:3943:10: warning: variable ‘dh’ set but not used [-Wunused-but-set-variable]
       drivers/gpu/drm/omapdrm/dss/dsi.c:3943:6: warning: variable ‘dw’ set but not used [-Wunused-but-set-variable]
      
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105144517.1826692-9-lee.jones@linaro.org
      ae36fccc
    • Lee Jones's avatar
      drm/omap: omap_irq: Fix a couple of doc-rot issues · 67daa52d
      Lee Jones authored
      The API has been updated, but the header was not.
      
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/omapdrm/omap_irq.c:115: warning: Function parameter or member 'crtc' not described in 'omap_irq_enable_vblank'
       drivers/gpu/drm/omapdrm/omap_irq.c:115: warning: Excess function parameter 'dev' description in 'omap_irq_enable_vblank'
       drivers/gpu/drm/omapdrm/omap_irq.c:115: warning: Excess function parameter 'pipe' description in 'omap_irq_enable_vblank'
       drivers/gpu/drm/omapdrm/omap_irq.c:142: warning: Function parameter or member 'crtc' not described in 'omap_irq_disable_vblank'
       drivers/gpu/drm/omapdrm/omap_irq.c:142: warning: Excess function parameter 'dev' description in 'omap_irq_disable_vblank'
       drivers/gpu/drm/omapdrm/omap_irq.c:142: warning: Excess function parameter 'pipe' description in 'omap_irq_disable_vblank'
      
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Rob Clark <rob.clark@linaro.org>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105144517.1826692-5-lee.jones@linaro.org
      67daa52d
    • Lee Jones's avatar
      drm/omap: dmm_tiler: Demote abusive use of kernel-doc format · fc4ef6b1
      Lee Jones authored
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:313: warning: Function parameter or member 'dmm' not described in 'dmm_txn_init'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:313: warning: Function parameter or member 'tcm' not described in 'dmm_txn_init'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:353: warning: Function parameter or member 'txn' not described in 'dmm_txn_append'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:353: warning: Function parameter or member 'area' not described in 'dmm_txn_append'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:353: warning: Function parameter or member 'pages' not described in 'dmm_txn_append'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:353: warning: Function parameter or member 'npages' not described in 'dmm_txn_append'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:353: warning: Function parameter or member 'roll' not described in 'dmm_txn_append'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:399: warning: Function parameter or member 'txn' not described in 'dmm_txn_commit'
       drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:399: warning: Function parameter or member 'wait' not described in 'dmm_txn_commit'
      
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Rob Clark <rob@ti.com>
      Cc: Andy Gross <andy.gross@ti.com>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201106214949.2042120-10-lee.jones@linaro.org
      fc4ef6b1
    • Lee Jones's avatar
      drm/omap: gem: Fix misnamed and missing parameter descriptions · 567cd704
      Lee Jones authored
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/omapdrm/omap_gem.c:593: warning: Function parameter or member 'file' not described in 'omap_gem_dumb_create'
       drivers/gpu/drm/omapdrm/omap_gem.c:593: warning: Excess function parameter 'drm_file' description in 'omap_gem_dumb_create'
       drivers/gpu/drm/omapdrm/omap_gem.c:619: warning: Function parameter or member 'offset' not described in 'omap_gem_dumb_map_offset'
      
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: Rob Clark <rob.clark@linaro.org>
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-media@vger.kernel.org
      Cc: linaro-mm-sig@lists.linaro.org
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201106214949.2042120-9-lee.jones@linaro.org
      567cd704
    • Maxime Ripard's avatar
      drm: Use state helper instead of CRTC state pointer · 253f28b6
      Maxime Ripard authored
      Many drivers reference the crtc->pointer in order to get the current CRTC
      state in their atomic_begin or atomic_flush hooks, which would be the new
      CRTC state in the global atomic state since _swap_state happened when those
      hooks are run.
      
      Use the drm_atomic_get_new_crtc_state helper to get that state to make it
      more obvious.
      
      This was made using the coccinelle script below:
      
      @ crtc_atomic_func @
      identifier helpers;
      identifier func;
      @@
      
      (
      static struct drm_crtc_helper_funcs helpers = {
      	...,
      	.atomic_begin = func,
      	...,
      };
      |
      static struct drm_crtc_helper_funcs helpers = {
      	...,
      	.atomic_flush = func,
      	...,
      };
      )
      
      @@
      identifier crtc_atomic_func.func;
      identifier crtc, state;
      symbol crtc_state;
      expression e;
      @@
      
        func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
        ...
      - struct tegra_dc_state *crtc_state = e;
      + struct tegra_dc_state *dc_state = e;
        <+...
      -       crtc_state
      +	dc_state
        ...+>
        }
      
      @@
      identifier crtc_atomic_func.func;
      identifier crtc, state;
      symbol crtc_state;
      expression e;
      @@
      
        func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
        ...
      - struct mtk_crtc_state *crtc_state = e;
      + struct mtk_crtc_state *mtk_crtc_state = e;
        <+...
      -       crtc_state
      +	mtk_crtc_state
        ...+>
        }
      
      @ replaces_new_state @
      identifier crtc_atomic_func.func;
      identifier crtc, state, crtc_state;
      @@
      
        func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
        ...
      - struct drm_crtc_state *crtc_state = crtc->state;
      + struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
        ...
       }
      
      @@
      identifier crtc_atomic_func.func;
      identifier crtc, state, crtc_state;
      @@
      
        func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
        struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
        ...
      - crtc->state
      + crtc_state
        ...
       }
      
      @ adds_new_state @
      identifier crtc_atomic_func.func;
      identifier crtc, state;
      @@
      
        func(struct drm_crtc *crtc, struct drm_atomic_state *state) {
      + struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
        ...
      - crtc->state
      + crtc_state
        ...
       }
      
      @ include depends on adds_new_state || replaces_new_state @
      @@
      
       #include <drm/drm_atomic.h>
      
      @ no_include depends on !include && (adds_new_state || replaces_new_state) @
      @@
      
      + #include <drm/drm_atomic.h>
        #include <drm/...>
      Suggested-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      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: Russell King <linux@armlinux.org.uk>
      Cc: Paul Cercueil <paul@crapouillou.net>
      Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Sandy Huang <hjc@rock-chips.com>
      Cc: "Heiko Stübner" <heiko@sntech.de>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105164518.392891-1-maxime@cerno.tech
      253f28b6
    • Thomas Zimmermann's avatar
      drm/mediatek: Use struct dma_buf_map in GEM vmap ops · 7e542ff8
      Thomas Zimmermann authored
      Fixes a build failure with mediatek.
      
      This change was supposed to be part of commit 49a3f51d ("drm/gem:
      Use struct dma_buf_map in GEM vmap ops and convert GEM backends"), but
      mediatek was forgotten.
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Fixes: 49a3f51d ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends")
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Lucas Stach <l.stach@pengutronix.de>
      Cc: Russell King <linux+etnaviv@armlinux.org.uk>
      Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
      Cc: Qiang Yu <yuq825@gmail.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
      Cc: Steven Price <steven.price@arm.com>
      Cc: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: Sandy Huang <hjc@rock-chips.com>
      Cc: "Heiko Stübner" <heiko@sntech.de>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
      Cc: Melissa Wen <melissa.srw@gmail.com>
      Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
      Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Emil Velikov <emil.velikov@collabora.com>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Cc: Arunpravin <apaneers@amd.com>
      Cc: Huang Rui <ray.huang@amd.com>
      Cc: Luben Tuikov <luben.tuikov@amd.com>
      Cc: Madhav Chauhan <madhav.chauhan@amd.com>
      Cc: Nirmoy Das <Nirmoy.Das@amd.com>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: dri-devel@lists.freedesktop.org
      Cc: etnaviv@lists.freedesktop.org
      Cc: lima@lists.freedesktop.org
      Cc: nouveau@lists.freedesktop.org
      Cc: virtualization@lists.linux-foundation.org
      Cc: spice-devel@lists.freedesktop.org
      Cc: amd-gfx@lists.freedesktop.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: xen-devel@lists.xenproject.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20201109103242.19544-3-tzimmermann@suse.de
      7e542ff8
    • Thomas Zimmermann's avatar
      drm/msm: Use struct dma_buf_map in GEM vmap ops · b47f9f92
      Thomas Zimmermann authored
      Fixes a build failure with msm.
      
      This change was supposed to be part of commit 49a3f51d ("drm/gem:
      Use struct dma_buf_map in GEM vmap ops and convert GEM backends"), but
      msm was forgotten.
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Fixes: 49a3f51d ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends")
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Lucas Stach <l.stach@pengutronix.de>
      Cc: Russell King <linux+etnaviv@armlinux.org.uk>
      Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
      Cc: Qiang Yu <yuq825@gmail.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
      Cc: Steven Price <steven.price@arm.com>
      Cc: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: Sandy Huang <hjc@rock-chips.com>
      Cc: "Heiko Stübner" <heiko@sntech.de>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
      Cc: Melissa Wen <melissa.srw@gmail.com>
      Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
      Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: Emil Velikov <emil.velikov@collabora.com>
      Cc: Luben Tuikov <luben.tuikov@amd.com>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Cc: Arunpravin <apaneers@amd.com>
      Cc: Huang Rui <ray.huang@amd.com>
      Cc: Madhav Chauhan <madhav.chauhan@amd.com>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Qinglang Miao <miaoqinglang@huawei.com>
      Cc: dri-devel@lists.freedesktop.org
      Cc: etnaviv@lists.freedesktop.org
      Cc: lima@lists.freedesktop.org
      Cc: nouveau@lists.freedesktop.org
      Cc: virtualization@lists.linux-foundation.org
      Cc: spice-devel@lists.freedesktop.org
      Cc: amd-gfx@lists.freedesktop.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: xen-devel@lists.xenproject.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20201109103242.19544-2-tzimmermann@suse.de
      b47f9f92