Merge drm/drm-next into drm-misc-next
authorMaxime Ripard <mripard@kernel.org>
Thu, 3 Oct 2019 14:38:50 +0000 (16:38 +0200)
committerMaxime Ripard <mripard@kernel.org>
Thu, 3 Oct 2019 14:38:50 +0000 (16:38 +0200)
We haven't done any backmerge for a while due to the merge window, and it
starts to become an issue for komeda. Let's bring 5.4-rc1 in.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
48 files changed:
1  2 
MAINTAINERS
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/arm/display/komeda/komeda_dev.c
drivers/gpu/drm/arm/display/komeda/komeda_kms.c
drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mode.c
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_atomic_uapi.c
drivers/gpu/drm/drm_client_modeset.c
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/etnaviv/etnaviv_buffer.c
drivers/gpu/drm/hisilicon/hibmc/Kconfig
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
drivers/gpu/drm/i915/display/intel_connector.c
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/mcde/mcde_drv.c
drivers/gpu/drm/mcde/mcde_dsi.c
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h
drivers/gpu/drm/msm/hdmi/hdmi.c
drivers/gpu/drm/msm/hdmi/hdmi.h
drivers/gpu/drm/nouveau/dispnv04/disp.c
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/omapdrm/dss/output.c
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/panfrost/panfrost_devfreq.c
drivers/gpu/drm/qxl/qxl_drv.c
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/video/fbdev/sa1100fb.c
include/drm/drm_crtc.h
include/drm/ttm/ttm_bo_driver.h

diff --cc MAINTAINERS
@@@ -5324,8 -5375,7 +5377,8 @@@ F:      include/uapi/drm/drm
  F:    include/linux/vga*
  
  DRM DRIVERS FOR ALLWINNER A10
- M:    Maxime Ripard  <maxime.ripard@bootlin.com>
+ M:    Maxime Ripard <mripard@kernel.org>
 +M:    Chen-Yu Tsai <wens@csie.org>
  L:    dri-devel@lists.freedesktop.org
  S:    Supported
  F:    drivers/gpu/drm/sun4i/
Simple merge
Simple merge
@@@ -1728,8 -1731,7 +1731,8 @@@ int amdgpu_ttm_init(struct amdgpu_devic
        r = ttm_bo_device_init(&adev->mman.bdev,
                               &amdgpu_bo_driver,
                               adev->ddev->anon_inode->i_mapping,
-                              adev->need_dma32);
 +                             adev->ddev->vma_offset_manager,
+                              dma_addressing_limited(adev->dev));
        if (r) {
                DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
                return r;
Simple merge
Simple merge
@@@ -26,9 -26,7 +26,8 @@@
  
  #include <drm/bridge/dw_hdmi.h>
  #include <drm/drm_atomic_helper.h>
 +#include <drm/drm_bridge.h>
  #include <drm/drm_edid.h>
- #include <drm/drm_encoder_slave.h>
  #include <drm/drm_of.h>
  #include <drm/drm_print.h>
  #include <drm/drm_probe_helper.h>
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -314,10 -326,11 +326,11 @@@ void etnaviv_buffer_queue(struct etnavi
  
        lockdep_assert_held(&gpu->lock);
  
 -      if (drm_debug & DRM_UT_DRIVER)
 +      if (drm_debug_enabled(DRM_UT_DRIVER))
                etnaviv_buffer_dump(gpu, buffer, 0, 0x50);
  
-       link_target = etnaviv_cmdbuf_get_va(cmdbuf);
+       link_target = etnaviv_cmdbuf_get_va(cmdbuf,
+                                           &gpu->mmu_context->cmdbuf_mapping);
        link_dwords = cmdbuf->size / 8;
  
        /*
        CMD_LOAD_STATE(buffer, VIVS_GL_EVENT, VIVS_GL_EVENT_EVENT_ID(event) |
                       VIVS_GL_EVENT_FROM_PE);
        CMD_WAIT(buffer);
-       CMD_LINK(buffer, 2, etnaviv_cmdbuf_get_va(buffer) +
-                           buffer->user_size - 4);
+       CMD_LINK(buffer, 2,
+                etnaviv_cmdbuf_get_va(buffer, &gpu->mmu_context->cmdbuf_mapping)
+                + buffer->user_size - 4);
  
 -      if (drm_debug & DRM_UT_DRIVER)
 +      if (drm_debug_enabled(DRM_UT_DRIVER))
                pr_info("stream link to 0x%08x @ 0x%08x %p\n",
-                       return_target, etnaviv_cmdbuf_get_va(cmdbuf),
+                       return_target,
+                       etnaviv_cmdbuf_get_va(cmdbuf, &gpu->mmu_context->cmdbuf_mapping),
                        cmdbuf->vaddr);
  
 -      if (drm_debug & DRM_UT_DRIVER) {
 +      if (drm_debug_enabled(DRM_UT_DRIVER)) {
                print_hex_dump(KERN_INFO, "cmd ", DUMP_PREFIX_OFFSET, 16, 4,
                               cmdbuf->vaddr, cmdbuf->size, 0);
  
@@@ -1,11 -1,10 +1,11 @@@
  # SPDX-License-Identifier: GPL-2.0-only
  config DRM_HISI_HIBMC
        tristate "DRM Support for Hisilicon Hibmc"
-       depends on DRM && PCI && MMU
+       depends on DRM && PCI && MMU && ARM64
        select DRM_KMS_HELPER
        select DRM_VRAM_HELPER
 -
 +      select DRM_TTM
 +      select DRM_TTM_HELPER
        help
          Choose this option if you have a Hisilicon Hibmc soc chipset.
          If M is selected the module will be called hibmc-drm.
Simple merge
Simple merge
Simple merge
Simple merge
  #include <linux/clk.h>
  #include <linux/platform_device.h>
  #include <linux/regulator/consumer.h>
+ #include <linux/gpio/consumer.h>
  #include <linux/hdmi.h>
  
 +#include <drm/drm_bridge.h>
 +
  #include "msm_drv.h"
  #include "hdmi.xml.h"
  
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -794,8 -794,7 +794,8 @@@ int radeon_ttm_init(struct radeon_devic
        r = ttm_bo_device_init(&rdev->mman.bdev,
                               &radeon_bo_driver,
                               rdev->ddev->anon_inode->i_mapping,
-                              rdev->need_dma32);
 +                             rdev->ddev->vma_offset_manager,
+                              dma_addressing_limited(&rdev->pdev->dev));
        if (r) {
                DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
                return r;
Simple merge
@@@ -672,7 -672,10 +672,10 @@@ static void ttm_bo_release(struct kref 
        struct ttm_bo_device *bdev = bo->bdev;
        struct ttm_mem_type_manager *man = &bdev->man[bo->mem.mem_type];
  
 -      drm_vma_offset_remove(&bdev->vma_manager, &bo->base.vma_node);
+       if (bo->bdev->driver->release_notify)
+               bo->bdev->driver->release_notify(bo);
 +      drm_vma_offset_remove(bdev->vma_manager, &bo->base.vma_node);
        ttm_mem_io_lock(man, false);
        ttm_mem_io_free_vm(bo);
        ttm_mem_io_unlock(man);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge