1. 19 11月, 2020 1 次提交
  2. 18 11月, 2020 1 次提交
  3. 17 11月, 2020 2 次提交
  4. 16 11月, 2020 3 次提交
  5. 14 11月, 2020 1 次提交
  6. 13 11月, 2020 3 次提交
    • D
      Merge tag 'drm-intel-gt-next-2020-11-12-1' of... · 334a1683
      Dave Airlie 提交于
      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: NDave 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
    • D
      drm/Kconfig: rename keembay config · 24bdae69
      Dave Airlie 提交于
      This all caps looked ugly.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      24bdae69
    • D
      Merge tag 'drm-misc-next-2020-11-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 14346c08
      Dave Airlie 提交于
      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: NDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201112080115.GA7954@linux-uq9g
      14346c08
  7. 12 11月, 2020 4 次提交
  8. 11 11月, 2020 11 次提交
  9. 10 11月, 2020 14 次提交
    • D
      drm: mxsfb: Implement .format_mod_supported · 55c8bcae
      Daniel Abrecht 提交于
      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: NDaniel Abrecht <public@danielabrecht.ch>
      Fixes: ae1ed009 ("drm: mxsfb: Stop using DRM simple display pipeline helper")
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/2a99ffffc2378209307e0992a6e97e70@nodmarc.danielabrecht.ch
      55c8bcae
    • D
      drm/vgem: replace idr_init() by idr_init_base() · 05854d48
      Deepak R Varma 提交于
      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: NDeepak R Varma <mh12gx2825@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105173646.GA41732@localhost
      05854d48
    • D
      Merge v5.10-rc3 into drm-next · 512bce50
      Daniel Vetter 提交于
      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: NDaniel Vetter <daniel.vetter@ffwll.ch>
      512bce50
    • D
      drm/omap: Fix runtime PM imbalance on error · a5d704d3
      Dinghao Liu 提交于
      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: NDinghao Liu <dinghao.liu@zju.edu.cn>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200822065743.13671-1-dinghao.liu@zju.edu.cn
      a5d704d3
    • A
      drm: omapdrm: Replace HTTP links with HTTPS ones · 1b409fda
      Alexander A. Klimov 提交于
      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: NAlexander A. Klimov <grandmaster@al2klimov.de>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200713122859.34135-1-grandmaster@al2klimov.de
      1b409fda
    • W
      drm/tidss: use devm_platform_ioremap_resource_byname · 3945ac0e
      Wang Xiaojun 提交于
      Use the devm_platform_ioremap_resource_byname() helper instead of
      calling platform_get_resource_byname() and devm_ioremap_resource()
      separately.
      Signed-off-by: NWang Xiaojun <wangxiaojun11@huawei.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200917062958.2183496-1-wangxiaojun11@huawei.com
      3945ac0e
    • L
      drm/omap: dsi: Rework and remove a few unused variables · ae36fccc
      Lee Jones 提交于
      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: NLee Jones <lee.jones@linaro.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105144517.1826692-9-lee.jones@linaro.org
      ae36fccc
    • L
      drm/omap: omap_irq: Fix a couple of doc-rot issues · 67daa52d
      Lee Jones 提交于
      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: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105144517.1826692-5-lee.jones@linaro.org
      67daa52d
    • L
      drm/omap: dmm_tiler: Demote abusive use of kernel-doc format · fc4ef6b1
      Lee Jones 提交于
      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: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201106214949.2042120-10-lee.jones@linaro.org
      fc4ef6b1
    • L
      drm/omap: gem: Fix misnamed and missing parameter descriptions · 567cd704
      Lee Jones 提交于
      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: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201106214949.2042120-9-lee.jones@linaro.org
      567cd704
    • M
      drm: Use state helper instead of CRTC state pointer · 253f28b6
      Maxime Ripard 提交于
      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: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NMaxime Ripard <maxime@cerno.tech>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Acked-by: NThomas 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
    • T
      drm/mediatek: Use struct dma_buf_map in GEM vmap ops · 7e542ff8
      Thomas Zimmermann 提交于
      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: NThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: NDaniel 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
    • T
      drm/msm: Use struct dma_buf_map in GEM vmap ops · b47f9f92
      Thomas Zimmermann 提交于
      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: NThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: NDaniel 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
    • G
      drm/fb_helper: Use min_t() to handle size_t and unsigned long · a3230bd7
      Geert Uytterhoeven 提交于
      On arm32:
      
          drivers/gpu/drm/drm_fb_helper.c: In function ‘fb_read_screen_base’:
          include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
          ...
          drivers/gpu/drm/drm_fb_helper.c:2041:22: note: in expansion of macro ‘min’
           2041 |  size_t alloc_size = min(count, PAGE_SIZE);
      	  |                      ^~~
          drivers/gpu/drm/drm_fb_helper.c: In function ‘fb_write_screen_base’:
          include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
          ...
          drivers/gpu/drm/drm_fb_helper.c:2115:22: note: in expansion of macro ‘min’
           2115 |  size_t alloc_size = min(count, PAGE_SIZE);
      	  |                      ^~~
      
      Indeed, on 32-bit size_t is "unsigned int", not "unsigned long".
      
      Fixes: 222ec45f ("drm/fb_helper: Support framebuffers in I/O memory")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NThomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201110090119.2667326-1-geert+renesas@glider.be
      a3230bd7