Hi Dave, Here's the latest from -misc-next. This PR includes last weeks as well, I've added both summaries below for your convenience. This week was quite busy, guess everyone is back to work now! This pull features a nice mix of new hw support and code cleanup, with the headliner being udmabuf. drm-misc-next-2018-09-05: drm-misc-next for 4.20: UAPI Changes: - Add userspace dma-buf device to turn memfd regions into dma-bufs (Gerd) Cross-subsystem Changes: - None Core Changes: - Remove user logspam and useless lock in vma_offset_mgr destroy (Chris) Driver Changes: - various: fbdev: Wrap remove_conflicting_framebuffers with resource_len accessors to remove a bunch of cargo-cult (Michał) - rockchip: Add rgb output iface support + fixes (Sandy/Heiko) - nouveau/amdgpu: Add cec-over-aux support (Hans) - sun4i: Add support for Allwinner A64 (Jagan) Cc: Gerd Hoffmann <kraxel@xxxxxxxxxx> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> Cc: Michał Mirosław <mirq-linux@xxxxxxxxxxxx> Cc: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Sandy Huang <hjc@xxxxxxxxxxxxxx> Cc: Hans Verkuil <hans.verkuil@xxxxxxxxx> Cc: Jagan Teki <jagan@xxxxxxxxxxxxxxxxxxxx> drm-misc-next-2018-08-30: drm-misc-next for 4.20: UAPI Changes: - Add per-plane blend mode property (Lowry) - Change in drm_fourcc.h is documentation only (Brian) Cross-subsystem Changes: - None Core Changes: - Add get/verify_crc_source for improved crc source selection (Mahesh) - Add __drm_atomic_helper_plane_reset to reduce copypasta (Alexandru) Driver Changes: - various: Replance ref/unref calls with drm_dev_get/put (Thomas) - bridge: Add driver for TI SN65DSI86 chip (Sandeep) - rockchip: Add PX30 support (Sandy) - sun4i: Add support for R40 TCON (Jernej) - vkms: Continued building out vkms, added gem support (Haneen) Cc: Thomas Zimmermann <tzimmermann@xxxxxxx> Cc: Sandeep Panda <spanda@xxxxxxxxxxxxxx> Cc: Sean Paul <seanpaul@xxxxxxxxxxxx> Cc: Sandy Huang <hjc@xxxxxxxxxxxxxx> Cc: Lowry Li <lowry.li@xxxxxxx> Cc: Brian Starkey <brian.starkey@xxxxxxx> Cc: Jernej Skrabec <jernej.skrabec@xxxxxxxx> Cc: Haneen Mohammed <hamohammed.sa@xxxxxxxxx> Cc: Alexandru Gheorghe <alexandru-cosmin.gheorghe@xxxxxxx> Cheers, Sean The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the Git repository at: git://anongit.freedesktop.org/drm/drm-misc tags/drm-misc-next-2018-09-05 for you to fetch changes up to 3ee22b769fd761c98eeaceab49153c3eb7612821: drm/rockchip: rgb: add stub functions when rgb encoder is disabled (2018-09-05 15:43:14 -0400) ---------------------------------------------------------------- drm-misc-next for 4.20: UAPI Changes: - Add userspace dma-buf device to turn memfd regions into dma-bufs (Gerd) Cross-subsystem Changes: - None Core Changes: - Remove user logspam and useless lock in vma_offset_mgr destroy (Chris) Driver Changes: - various: fbdev: Wrap remove_conflicting_framebuffers with resource_len accessors to remove a bunch of cargo-cult (Michał) - rockchip: Add rgb output iface support + fixes (Sandy/Heiko) - nouveau/amdgpu: Add cec-over-aux support (Hans) - sun4i: Add support for Allwinner A64 (Jagan) Cc: Gerd Hoffmann <kraxel@xxxxxxxxxx> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> Cc: Michał Mirosław <mirq-linux@xxxxxxxxxxxx> Cc: Heiko Stuebner <heiko@xxxxxxxxx> Cc: Sandy Huang <hjc@xxxxxxxxxxxxxx> Cc: Hans Verkuil <hans.verkuil@xxxxxxxxx> Cc: Jagan Teki <jagan@xxxxxxxxxxxxxxxxxxxx> ---------------------------------------------------------------- Alexandru Gheorghe (8): drm/atomic: Add __drm_atomic_helper_plane_reset drm: mali-dp: Use __drm_atomic_helper_plane_reset instead of copying the logic drm: atmel-hlcdc: Use __drm_atomic_helper_plane_reset instead of copying the logic drm/imx: Use __drm_atomic_helper_plane_reset instead of copying the logic drm/sun4i: Use __drm_atomic_helper_plane_reset instead of copying the logic drm: rcar-du: Use __drm_atomic_helper_plane_reset instead of copying the logic drm/vc4: Use __drm_atomic_helper_plane_reset instead of copying the logic drm/vmwgfx: Use __drm_atomic_helper_plane_reset instead of copying the logic Andrzej Hajda (3): dt-bindings: tc358754: add DT bindings drm/bridge: tc358764: Add DSI to LVDS bridge driver drm/bridge/tc358764: fix drm helper name Anton Vasilyev (2): drm: qxl: Fix error handling at qxl_device_init drm: qxl: Fix NULL pointer dereference at qxl_alloc_client_monitors_config Archit Taneja (2): dt-bindings: mipi-dsi: Add info about peripherals with non-DSI control bus dt-bindings: mipi-dsi: Add dual-channel DSI related info Ayan Kumar Halder (2): drm/sun4i: Use (struct drm_format_info) fields to determine if a format is yuv and multi planar or not. drm: Use horizontal and vertical chroma subsampling factor while calculating offsets in the physical address of framebuffer Brian Starkey (1): drm/fourcc: Add DOC: overview comment Chris Wilson (3): dma-buf: Remove requirement for ops->map() from dma_buf_export drm: Suppress user controlled spam for invalid drm_wait_vblank_ioctl drm: Remove "protection" around drm_vma_offset_manager_destroy() Dan Carpenter (1): drm/virtio: fix bounds check in virtio_gpu_cmd_get_capset() Daniel Vetter (5): drm/i915: Remove unecessary dma_fence_ops drm/msm: Remove unecessary dma_fence_ops drm/nouveau: Remove unecessary dma_fence_ops drm/vgem: Remove unecessary dma_fence_ops drm/syncobj: Drop add/remove_callback from driver interface Gerd Hoffmann (5): drm/cirrus: flip default from 24bpp to 16bpp Add udmabuf misc device drm/virtio: track virtual output state drm/virtio: add virtio_gpu_object_detach() function drm/virtio: add iommu support. Giulio Benetti (1): drm/sun4i: Handle DRM_BUS_FLAG_PIXDATA_*EDGE checking if panel is used. Guenter Roeck (1): drm/bridge: ti-sn65dsi86: Fix 0-day build error Gustavo A. R. Silva (3): drm/sun4i: tcon-top: Use struct_size() in devm_kzalloc() drm/rockchip: Use struct_size() in devm_kzalloc() dma-buf/udmabuf: Fix NULL pointer dereference in udmabuf_create Haneen Mohammed (9): drm/vkms: Add functions to map/unmap GEM backing storage drm/vkms: map/unmap buffers in [prepare/cleanup]_fb hooks drm/vkms: Add atomic_helper_check_plane_state drm/vkms: subclass CRTC state drm/vkms: Subclass plane state drm/vkms: Implement CRC debugfs API drm/vkms: Release pages_lock before return drm/vkms: Fix vmap_count increment position drm/vkms: Fix race condition around accessing frame number Hans Verkuil (5): drm_dp_cec: check that aux has a transfer function drm_dp_cec: add note about good MegaChips 2900 CEC support drm_dp_mst_topology: fix broken drm_dp_sideband_parse_remote_dpcd_read() drm/nouveau: add DisplayPort CEC-Tunneling-over-AUX support drm/amdgpu: add DisplayPort CEC-Tunneling-over-AUX support Heiko Stuebner (3): drm/rockchip: add function to check if endpoint is a subdriver drm/rockchip: vop: add rk3188 vop definitions drm/rockchip: rgb: add stub functions when rgb encoder is disabled Icenowy Zheng (1): dt-bindings: sun4i-drm: add HDMI VCC supply property for sun8i-dw-hdmi Jagan Teki (4): dt-bindings: display: Add compatible for A64 DE2 display pipeline drm/sun4i: Add support for A64 mixers drm/sun4i: Add support for A64 display engine dt-bindings: display: Add compatible for A64 HDMI Jernej Skrabec (3): drm/sun4i: tcon: Add another way for matching mixers with tcon drm/sun4i: tcon: Add support for R40 TCON drm/sun4i: Add support for HDMI voltage regulator Jyri Sarha (1): drm: Add kerneldoc description for "link"-member in struct drm_panel Lowry Li (1): drm: Add per-plane pixel blend mode property Lyude Paul (1): drm/print: Fix DRM_DEBUG_DP macro Mahesh Kumar (11): drm: crc: Introduce verify_crc_source callback drm: crc: Introduce get_crc_sources callback drm/rockchip/crc: Implement verify_crc_source callback drm/amdgpu_dm/crc: Implement verify_crc_source callback drm/rcar-du/crc: Implement verify_crc_source callback drm/i915/crc: implement verify_crc_source callback drm/i915/crc: implement get_crc_sources callback drm/rcar-du/crc: Implement get_crc_sources callback drm/vkms/crc: Implement verify_crc_source callback drm/crc: Cleanup crtc_crc_open function Revert "drm: crc: Wait for a frame before returning from open()" Masahiro Yamada (1): drm/bridge/synopsys: remove commented-out flag in Makefile Matt Atwood (1): drm/dp: add extended receiver capability field present bit Michał Mirosław (13): fbdev: show fbdev number for debugging fbdev: allow apertures == NULL in remove_conflicting_framebuffers() fbdev: add kerneldoc do remove_conflicting_framebuffers() fbdev: add remove_conflicting_pci_framebuffers() drm/amdgpu: use simpler remove_conflicting_pci_framebuffers() drm/cirrus: use simpler remove_conflicting_pci_framebuffers() drm/bochs: use simpler remove_conflicting_pci_framebuffers() drm/radeon: use simpler remove_conflicting_pci_framebuffers() drm/mgag200: use simpler remove_conflicting_pci_framebuffers() drm/virtio: use simpler remove_conflicting_pci_framebuffers() drm/vc4: use simpler remove_conflicting_framebuffers(NULL) drm/sun4i: use simpler remove_conflicting_framebuffers(NULL) drm/tegra: kick out simplefb Oleksandr Andrushchenko (1): drm: Replace NULL with error value in drm_prime_pages_to_sg Paul Kocialkowski (2): drm/sun4i: sun4i: Register quirks with the backend structure drm/sun4i: sun4i: Introduce a quirk for lowest plane alpha support Paulo Zanoni (1): drm/dp: add missing ')' to I2C nack debug message Peter Rosin (7): drm/sti: do not remove the drm_bridge that was never added drm/atmel-hlcdc: prefer a higher rate clock as pixel-clock base drm/atmel-hlcdc: allow selecting a higher pixel-clock than requested dt-bindings: display: bridge: lvds-transmitter: add ti, ds90c185 dt-bindings: display: atmel: optional video-interface of endpoints drm/atmel-hlcdc: always iterate over the first 4 output endpoints drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Peter Wu (1): qxl: fix null-pointer crash during suspend Sandeep Panda (2): dt-bindings: drm/bridge: Document sn65dsi86 bridge bindings drm/bridge: add support for sn65dsi86 bridge driver Sandy Huang (6): dt-bindings: display: rockchip: add document for px30 vop drm/rockchip: vop: add px30 vop support drm/rockchip: fix coding style and incorrect description drm/rockchip: vop: fix some register define error for px30 drm/rockchip: Add support for Rockchip Soc RGB output interface drm/rockchip: vop: Add directly output rgb feature for px30 Sean Paul (10): drm/bridge/ti-sn65dsi86: Fix implicit declaration to drm_mode_connector_attach_encoder drm/bridge: ti-sn65dsi86: Fixup register names drm/bridge: ti-sn65dsi86: Implement AUX channel drm/bridge: ti-sn65dsi86: Move panel_prepare() to pre_enable() drm/bridge: ti-sn65dsi86: Poll for DP PLL Lock drm/bridge: ti-sn65dsi86: Poll for training complete drm/panel: Fix sphinx warning Merge drm/drm-next into drm-misc-next drm/bridge: ti-sn65dsi86: Add mystery delay to enable() drm: Describe pixel_blend_mode in drm_plane_state Souptick Joarder (5): drm/vkms: Use new return type vm_fault_t drm/rockchip: Convert drm_atomic_helper_suspend/resume() drm: Remove drm_fbdev_cma_set_suspend() gpu: drm: virtio: code cleanup Document/gpu: Use new vm_fault_t type Stefan Agner (1): drm/doc: clarify how to acquire required vblank event reference Thomas Zimmermann (12): drm/rockchip: Replace drm_dev_unref with drm_dev_put drm/tinydrm: Replace drm_dev_unref with drm_dev_put drm/vgem: Replace drm_dev_unref with drm_dev_put drm/cirrus: Use drm_framebuffer_put to avoid kernel oops in clean-up drm/qxl: Replace drm_dev_unref with drm_dev_put drm/virtio: Replace drm_dev_unref with drm_dev_put drm/gma500: Do not include <drm/drm_global.h> drm/bochs: Replace ttm_bo_unref with ttm_bo_put drm/cirrus: Replace ttm_bo_unref with ttm_bo_put drm/qxl: Replace ttm_bo_unref with ttm_bo_put drm/virtio: Replace ttm_bo_reference with ttm_bo_get drm/virtio: Replace ttm_bo_unref with ttm_bo_put .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 23 + .../bindings/display/bridge/lvds-transmitter.txt | 8 +- .../bindings/display/bridge/ti,sn65dsi86.txt | 87 +++ .../bindings/display/bridge/toshiba,tc358764.txt | 35 + .../devicetree/bindings/display/mipi-dsi-bus.txt | 153 +++- .../bindings/display/rockchip/rockchip-vop.txt | 3 + .../bindings/display/sunxi/sun4i-drm.txt | 9 + Documentation/gpu/drm-kms.rst | 6 + Documentation/gpu/drm-mm.rst | 2 +- Documentation/ioctl/ioctl-number.txt | 1 + MAINTAINERS | 8 + drivers/dma-buf/Kconfig | 8 + drivers/dma-buf/Makefile | 1 + drivers/dma-buf/dma-buf.c | 1 - drivers/dma-buf/udmabuf.c | 288 ++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 24 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 7 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 20 +- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 + drivers/gpu/drm/arm/malidp_planes.c | 7 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 100 ++- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 1 + drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 92 ++- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 5 +- drivers/gpu/drm/bochs/bochs_drv.c | 18 +- drivers/gpu/drm/bochs/bochs_mm.c | 2 +- drivers/gpu/drm/bridge/Kconfig | 18 + drivers/gpu/drm/bridge/Makefile | 2 + drivers/gpu/drm/bridge/synopsys/Makefile | 2 - drivers/gpu/drm/bridge/tc358764.c | 499 +++++++++++++ drivers/gpu/drm/bridge/ti-sn65dsi86.c | 779 +++++++++++++++++++++ drivers/gpu/drm/cirrus/cirrus_drv.c | 27 +- drivers/gpu/drm/cirrus/cirrus_drv.h | 2 +- drivers/gpu/drm/cirrus/cirrus_fbdev.c | 51 +- drivers/gpu/drm/cirrus/cirrus_main.c | 2 +- drivers/gpu/drm/cirrus/cirrus_mode.c | 4 +- drivers/gpu/drm/drm_atomic.c | 4 + drivers/gpu/drm/drm_atomic_helper.c | 34 +- drivers/gpu/drm/drm_blend.c | 123 ++++ drivers/gpu/drm/drm_debugfs_crc.c | 92 +-- drivers/gpu/drm/drm_dp_cec.c | 18 +- drivers/gpu/drm/drm_dp_helper.c | 3 +- drivers/gpu/drm/drm_dp_mst_topology.c | 1 + drivers/gpu/drm/drm_fb_cma_helper.c | 26 +- drivers/gpu/drm/drm_gem_cma_helper.c | 4 +- drivers/gpu/drm/drm_panel.c | 2 + drivers/gpu/drm/drm_syncobj.c | 15 - drivers/gpu/drm/drm_vblank.c | 6 +- drivers/gpu/drm/drm_vma_manager.c | 3 - drivers/gpu/drm/gma500/psb_drv.h | 1 - drivers/gpu/drm/i915/i915_gem_clflush.c | 7 - drivers/gpu/drm/i915/intel_display.c | 2 + drivers/gpu/drm/i915/intel_drv.h | 9 +- drivers/gpu/drm/i915/intel_pipe_crc.c | 119 +++- drivers/gpu/drm/i915/selftests/i915_sw_fence.c | 8 - drivers/gpu/drm/imx/ipuv3-plane.c | 9 +- drivers/gpu/drm/mgag200/mgag200_drv.c | 21 +- drivers/gpu/drm/mgag200/mgag200_main.c | 9 - drivers/gpu/drm/msm/msm_fence.c | 8 - drivers/gpu/drm/nouveau/nouveau_connector.c | 17 +- drivers/gpu/drm/nouveau/nouveau_fence.c | 1 - drivers/gpu/drm/qxl/qxl_display.c | 16 +- drivers/gpu/drm/qxl/qxl_drv.c | 28 +- drivers/gpu/drm/qxl/qxl_gem.c | 2 +- drivers/gpu/drm/qxl/qxl_kms.c | 80 ++- drivers/gpu/drm/radeon/radeon_drv.c | 23 +- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 149 +++- drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 3 + drivers/gpu/drm/rcar-du/rcar_du_plane.c | 6 +- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 5 +- drivers/gpu/drm/rockchip/Kconfig | 25 +- drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 98 +-- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 48 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 1 + drivers/gpu/drm/rockchip/rockchip_rgb.c | 173 +++++ drivers/gpu/drm/rockchip/rockchip_rgb.h | 33 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 215 ++++++ drivers/gpu/drm/rockchip/rockchip_vop_reg.h | 99 +++ drivers/gpu/drm/sti/sti_hda.c | 1 - drivers/gpu/drm/sti/sti_hdmi.c | 1 - drivers/gpu/drm/sun4i/sun4i_backend.c | 81 +-- drivers/gpu/drm/sun4i/sun4i_backend.h | 3 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 19 +- drivers/gpu/drm/sun4i/sun4i_layer.c | 4 +- drivers/gpu/drm/sun4i/sun4i_tcon.c | 119 +++- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 17 +- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 2 + drivers/gpu/drm/sun4i/sun8i_mixer.c | 24 + drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 3 +- drivers/gpu/drm/tegra/drm.c | 4 + drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 6 +- drivers/gpu/drm/vc4/vc4_drv.c | 20 +- drivers/gpu/drm/vc4/vc4_plane.c | 4 +- drivers/gpu/drm/vgem/vgem_drv.c | 2 +- drivers/gpu/drm/vgem/vgem_fence.c | 13 - drivers/gpu/drm/virtio/virtgpu_display.c | 4 + drivers/gpu/drm/virtio/virtgpu_drm_bus.c | 26 +- drivers/gpu/drm/virtio/virtgpu_drv.h | 13 +- drivers/gpu/drm/virtio/virtgpu_fb.c | 2 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 2 +- drivers/gpu/drm/virtio/virtgpu_ttm.c | 39 +- drivers/gpu/drm/virtio/virtgpu_vq.c | 57 +- drivers/gpu/drm/vkms/Makefile | 2 +- drivers/gpu/drm/vkms/vkms_crc.c | 153 ++++ drivers/gpu/drm/vkms/vkms_crtc.c | 114 ++- drivers/gpu/drm/vkms/vkms_drv.c | 1 + drivers/gpu/drm/vkms/vkms_drv.h | 59 +- drivers/gpu/drm/vkms/vkms_gem.c | 83 ++- drivers/gpu/drm/vkms/vkms_plane.c | 140 +++- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 4 +- drivers/gpu/drm/xen/xen_drm_front_gem.c | 2 +- drivers/video/fbdev/core/fbmem.c | 63 +- include/drm/drm_atomic_helper.h | 2 + include/drm/drm_blend.h | 6 + include/drm/drm_crtc.h | 41 +- include/drm/drm_dp_helper.h | 5 +- include/drm/drm_fb_cma_helper.h | 1 - include/drm/drm_fb_helper.h | 12 + include/drm/drm_panel.h | 1 + include/drm/drm_plane.h | 16 + include/drm/drm_print.h | 2 +- include/drm/drm_syncobj.h | 5 - include/linux/fb.h | 2 + include/uapi/drm/drm_fourcc.h | 36 + include/uapi/linux/udmabuf.h | 33 + tools/testing/selftests/drivers/dma-buf/Makefile | 5 + tools/testing/selftests/drivers/dma-buf/udmabuf.c | 96 +++ 130 files changed, 4522 insertions(+), 684 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.txt create mode 100644 Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt create mode 100644 drivers/dma-buf/udmabuf.c create mode 100644 drivers/gpu/drm/bridge/tc358764.c create mode 100644 drivers/gpu/drm/bridge/ti-sn65dsi86.c create mode 100644 drivers/gpu/drm/rockchip/rockchip_rgb.c create mode 100644 drivers/gpu/drm/rockchip/rockchip_rgb.h create mode 100644 drivers/gpu/drm/vkms/vkms_crc.c create mode 100644 include/uapi/linux/udmabuf.h create mode 100644 tools/testing/selftests/drivers/dma-buf/Makefile create mode 100644 tools/testing/selftests/drivers/dma-buf/udmabuf.c -- Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel