1. 12 11月, 2020 3 次提交
    • A
      drm/kmb: Fix build warnings · 7cb397e7
      Anitha Chrisanthus 提交于
      Fixed the following W=1 kernel build warnings
       drivers/gpu/drm/kmb/kmb_plane.h:74:18: warning: ‘kmb_formats_v’
       defined but not used [-Wunused-const-variable=]
       drivers/gpu/drm/kmb/kmb_plane.h:61:18: warning: ‘kmb_formats_g’
       defined but not used [-Wunused-const-variable=]
      Signed-off-by: NAnitha Chrisanthus <anitha.chrisanthus@intel.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/1605045169-2696-1-git-send-email-anitha.chrisanthus@intel.com
      7cb397e7
    • T
      drm/nouveau: Fix out-of-bounds access when deferencing MMU type · f644e303
      Thomas Zimmermann 提交于
      The value of struct drm_device.ttm.type_vram can become -1 for unknown
      types of memory (see nouveau_ttm_init()). This leads to an out-of-bounds
      error when accessing struct nvif_mmu.type[]:
      
        [   18.304116] ==================================================================
        [   18.311649] BUG: KASAN: slab-out-of-bounds in nouveau_ttm_io_mem_reserve+0x17a/0x7e0 [nouveau]
        [   18.320415] Read of size 1 at addr ffff88810ffac1fe by task systemd-udevd/342
        [   18.327681]
        [   18.329208] CPU: 1 PID: 342 Comm: systemd-udevd Tainted: G            E     5.10.0-rc2-1-default+ #581
        [   18.338681] Hardware name: Dell Inc. OptiPlex 9020/0N4YC8, BIOS A24 10/24/2018
        [   18.346032] Call Trace:
        [   18.348536]  dump_stack+0xae/0xe5
        [   18.351919]  print_address_description.constprop.0+0x17/0xf0
        [   18.357787]  ? nouveau_ttm_io_mem_reserve+0x17a/0x7e0 [nouveau]
        [   18.363818]  __kasan_report.cold+0x20/0x38
        [   18.368099]  ? nouveau_ttm_io_mem_reserve+0x17a/0x7e0 [nouveau]
        [   18.374133]  kasan_report+0x3a/0x50
        [   18.377789]  nouveau_ttm_io_mem_reserve+0x17a/0x7e0 [nouveau]
        <...>
        [   18.767690] Allocated by task 342:
        [   18.773087]  kasan_save_stack+0x1b/0x40
        [   18.778890]  __kasan_kmalloc.constprop.0+0xbf/0xd0
        [   18.785646]  __kmalloc_track_caller+0x1be/0x390
        [   18.792165]  kstrdup_const+0x46/0x70
        [   18.797686]  kobject_set_name_vargs+0x2f/0xb0
        [   18.803992]  kobject_init_and_add+0x9d/0xf0
        [   18.810117]  ttm_mem_global_init+0x12c/0x210 [ttm]
        [   18.816853]  ttm_bo_global_init+0x4a/0x160 [ttm]
        [   18.823420]  ttm_bo_device_init+0x39/0x220 [ttm]
        [   18.830046]  nouveau_ttm_init+0x2c3/0x830 [nouveau]
        [   18.836929]  nouveau_drm_device_init+0x1b4/0x3f0 [nouveau]
        <...>
        [   19.105336] ==================================================================
      
      Fix this error, by not using type_vram as an index if it's negative.
      Assume default values instead.
      
      The error was seen on Nvidia G72 hardware.
      Signed-off-by: NThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: NMichael J. Ruhl <michael.j.ruhl@intel.com>
      Acked-by: NChristian König <christian.koenig@amd.com>
      Fixes: 1cf65c45 ("drm/ttm: add caching state to ttm_bus_placement")
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Michael J. Ruhl <michael.j.ruhl@intel.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: Ben Skeggs <bskeggs@redhat.com>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
      Cc: Roland Scheidegger <sroland@vmware.com>
      Cc: Huang Rui <ray.huang@amd.com>
      Cc: Felix Kuehling <Felix.Kuehling@amd.com>
      Cc: Hawking Zhang <Hawking.Zhang@amd.com>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Likun Gao <Likun.Gao@amd.com>
      Cc: dri-devel@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
      Link: https://patchwork.freedesktop.org/patch/msgid/20201110133655.13174-1-tzimmermann@suse.de
      f644e303
    • J
      dma-buf: Document that dma-buf size is fixed · 476b485b
      Jianxin Xiong 提交于
      The fact that the size of dma-buf is invariant over the lifetime of the
      buffer is mentioned in the comment of 'dma_buf_ops.mmap', but is not
      documented at where the info is defined. Add the missing documentation.
      Signed-off-by: NJianxin Xiong <jianxin.xiong@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/1605044477-51833-7-git-send-email-jianxin.xiong@intel.com
      476b485b
  2. 11 11月, 2020 10 次提交
  3. 10 11月, 2020 16 次提交
    • 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
    • K
    • D
      Merge tag 'amd-drm-next-5.11-2020-11-05' of git://people.freedesktop.org/~agd5f/linux into drm-next · 5b8c5969
      Dave Airlie 提交于
      amd-drm-next-5.11-2020-11-05:
      
      amdgpu:
      - Add initial support for Vangogh
      - Add support for Green Sardine
      - Add initial support for Dimgrey Cavefish
      - Scatter/Gather display support for Renoir
      - Updates for Sienna Cichlid
      - Updates for Navy Flounder
      - SMU7 power improvements
      - Modifier support for gfx9+
      - CI BACO fixes
      - Arcturus SMU fixes
      - Lots of code cleanups
      - DC fixes
      - Kernel doc fixes
      - Add more GPU HW client information to page fault error logging
      - MPO clock tuning for RV
      - FP fixes for DCN3 on ARM and PPC
      
      radeon:
      - Expose voltage via hwmon on Sumo APUs
      
      amdkfd:
      - Fix unique id handling
      - Misc fixes
      
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105222749.201798-1-alexander.deucher@amd.com
      5b8c5969
  4. 09 11月, 2020 11 次提交