[PULL] topic/drm-misc

2016-11-10 Thread Daniel Vetter
Hi Dave,

- better atomic state debugging from Rob
- fence prep from gustavo
- sumits flushed out his backlog of pending dma-buf/fence patches from
  various people
- drm_mm leak debugging plus trying to appease Kconfig (Chris)
- a few misc things all over 

Cheers, Daniel


The following changes since commit fb422950c6cd726fd36eb72a7cf84583440a18a2:

  Merge branch 'linux-4.9' of git://github.com/skeggsb/linux into drm-next 
(2016-10-28 14:24:56 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-11-10

for you to fetch changes up to 4b514e10157a8e34a5e909487ef6fb8342e2e3ad:

  drm: Make DRM_DEBUG_MM depend on STACKTRACE_SUPPORT (2016-11-09 17:27:54 
+0100)


Alex Deucher (2):
  dma-buf/fence: make timeout handling in fence_default_wait consistent (v2)
  dma-buf/fence: revert "don't wait when specified timeout is zero" (v2)

Baoyou Xie (1):
  dma-buf/sw_sync: mark sync_timeline_create() static

Chris Wilson (6):
  drm: Track drm_mm allocators and show leaks on shutdown
  drm/i915: Enable drm_mm debug when enabling DRM_I915_DEBUG
  drm: Add stackdepot include for DRM_DEBUG_MM
  drm: Restrict stackdepot usage to builtin drm.ko
  drm/i915: Restrict DRM_DEBUG_MM automatic selection
  drm: Make DRM_DEBUG_MM depend on STACKTRACE_SUPPORT

Christian König (2):
  drm/ttm: fix ttm_bo_wait
  reservation: revert "wait only with non-zero timeout specified (v3)" v2

Gustavo Padovan (6):
  drm/atomic: add drm_atomic_set_fence_for_plane()
  drm/imx: use drm_atomic_set_fence_for_plane() to set the fence
  drm/msm: use drm_atomic_set_fence_for_plane() to set the fence
  drm/plane: add inline doc for struct drm_plane
  dma-buf/sw_sync: put fence reference from the fence creation
  MAINTAINERS: update Sync File Framework files

Jani Nikula (1):
  drm: define drm_compat_ioctl NULL on CONFIG_COMPAT=n and reduce #ifdefs

Jiang Biao (2):
  drm/gma500: make function static to eliminate compiling warning
  drm/gma500: remove unused ioctl declarations

Junwei Zhang (1):
  drm/amdgpu: add the interface of waiting multiple fences (v4)

Patrik Jakobsson (1):
  drm/gma500: Add compat ioctl

Rob Clark (8):
  drm: don't override possible_crtcs for primary/cursor planes
  drm: helper macros to print composite types
  drm: add helper for printing to log or seq_file
  drm: add helpers to go from plane state to drm_rect
  drm/atomic: add new drm_debug bit to dump atomic state
  drm/atomic: add debugfs file to dump out atomic state
  drm/msm/mdp5: add atomic_print_state support
  drm/msm: module param to dump state on error irq

Rongrong Zou (1):
  drm: update the documentation of drm_framebuffer_unregister_private

Stefan Agner (1):
  drm/atomic-helper: fix reference to drm_atomic_helper_commit_planes

Ville Syrjälä (2):
  drm/edid: Add the missing "Hz" to VIC 58,59 comment
  drm/uapi: Add a warning that mode flags must match the xrandr definitions

monk.liu (1):
  dma-buf: return index of the first signaled fence (v2)

 Documentation/gpu/drm-internals.rst |  17 +++
 MAINTAINERS |   4 +-
 drivers/dma-buf/dma-fence.c |  32 ++--
 drivers/dma-buf/reservation.c   |   5 +-
 drivers/dma-buf/sw_sync.c   |   4 +-
 drivers/gpu/drm/Kconfig |  14 ++
 drivers/gpu/drm/Makefile|   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu.h |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c  | 174 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c  |   3 +-
 drivers/gpu/drm/arc/arcpgu_drv.c|   2 -
 drivers/gpu/drm/arm/hdlcd_drv.c |   2 -
 drivers/gpu/drm/arm/malidp_drv.c|   2 -
 drivers/gpu/drm/ast/ast_drv.c   |   2 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c|   2 -
 drivers/gpu/drm/bochs/bochs_drv.c   |   2 -
 drivers/gpu/drm/cirrus/cirrus_drv.c |   2 -
 drivers/gpu/drm/drm_atomic.c| 186 
 drivers/gpu/drm/drm_crtc.c  |   4 +-
 drivers/gpu/drm/drm_debugfs.c   |   9 ++
 drivers/gpu/drm/drm_edid.c  |   4 +-
 drivers/gpu/drm/drm_fops.c  |  13 +-
 drivers/gpu/drm/drm_framebuffer.c   |   5 +
 drivers/gpu/drm/drm_mm.c|  76 +-
 drivers/gpu/drm/drm_modes.c |   8 +-
 drivers/gpu/drm/drm_plane_helper.c  |  11 +-
 drivers/gpu/drm/drm_print.c |  54 +++
 drivers/gpu/drm/drm_rect.c  |  11 +-
 drivers/gpu/drm/etnaviv/etnaviv_drv.c   |   2 -
 

[PULL] topic/drm-misc

2016-10-27 Thread Daniel Vetter
Hi Dave,

So the scripting work is taking a bit longer, and I didn't want to rush
the migration of drm-misc right before ks and leave a mess behind, so this
is still from the old repo.

Pull request already again to get the s/fence/dma_fence/ stuff in and
allow everyone to resync. Otherwise really just misc stuff all over, and a
new bridge driver.

Cheers, Daniel


The following changes since commit 5481e27f6fd06b7cb902072e81d6b083db8155eb:

  Merge tag 'drm-intel-next-2016-10-24' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-10-25 16:39:43 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/git/drm-intel tags/topic/drm-misc-2016-10-27

for you to fetch changes up to 56df51d003203f1c3a8eab05605973515aa15feb:

  drm/bridge: fix platform_no_drv_owner.cocci warnings (2016-10-27 11:35:23 
+0530)


Andrzej Hajda (3):
  video: add header file for Mobile High-Definition Link (MHL) interface
  dt-bindings: add Silicon Image SiI8620 bridge bindings
  drm/bridge: add Silicon Image SiI8620 driver

Arnd Bergmann (1):
  drm: mark drm_of_component_match_add dummy inline

Baoyou Xie (3):
  drm/i2c/tda998x: mark symbol static where possible
  drm/msm/adreno: move function declarations to header file
  drm/msm: add missing header dependencies

Chris Wilson (2):
  drm/edid: Only print the bad edid when aborting
  dma-buf: Rename struct fence to dma_fence

Daniel Vetter (1):
  Merge remote-tracking branch 'airlied/drm-next' into topic/drm-misc

Imre Deak (2):
  drm/dp: Factor out helper to distinguish between branch and sink devices
  drm: Print some debug/error info during DP dual mode detect

Rob Clark (1):
  dma-buf/fence: add an lockdep_assert_held()

Russell King (1):
  drm: convert DT component matching to component_match_add_release()

Stephen Hemminger (1):
  doc: add missing docbook parameter for fence-array

Ville Syrjälä (3):
  drm/msm/mdp5: Use per-plane rotation property
  drm/msm/mdp5: Advertize 180 degree rotation
  drm: RIP mode_config->rotation_property

kbuild test robot (2):
  drm/bridge: fix semicolon.cocci warnings
  drm/bridge: fix platform_no_drv_owner.cocci warnings

 .../bindings/video/bridge/sil-sii8620.txt  |   33 +
 Documentation/sync_file.txt|   14 +-
 drivers/base/Kconfig   |6 +-
 drivers/dma-buf/Kconfig|2 +-
 drivers/dma-buf/Makefile   |2 +-
 drivers/dma-buf/dma-buf.c  |   28 +-
 .../dma-buf/{fence-array.c => dma-fence-array.c}   |   91 +-
 drivers/dma-buf/{fence.c => dma-fence.c}   |  201 +--
 drivers/dma-buf/reservation.c  |   94 +-
 drivers/dma-buf/seqno-fence.c  |   18 +-
 drivers/dma-buf/sw_sync.c  |   48 +-
 drivers/dma-buf/sync_debug.c   |   13 +-
 drivers/dma-buf/sync_debug.h   |9 +-
 drivers/dma-buf/sync_file.c|   63 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu.h|   54 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c  |8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |   16 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c|   22 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |   14 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c|   16 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c  |   58 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c |6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c|   22 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c |   14 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c |   24 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c   |   48 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c   |   12 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h  |4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c|   10 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h|4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c|   26 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h|4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c|   26 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h|4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |   79 +-
 drivers/gpu/drm/amd/amdgpu/cik_sdma.c  |6 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c  |6 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c  |6 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c  |   12 +-
 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c |6 +-
 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c |6 +-
 drivers/gpu/drm/amd/amdgpu/si_dma.c|6 +-
 

[PULL] topic/drm-misc

2016-10-24 Thread Daniel Vetter
Hi Dave,

First -misc pull for 4.10:
- drm_format rework from Laurent
- reservation patches from Chris that missed 4.9. 
- aspect ratio support in infoframe helpers and drm mode/edid code
  (Shashank Sharma)
- rotation rework from Ville (first parts at least)
- another attempt at the CRC debugfs interface from Tomeu
- piles and piles of misc patches all over

I'll send you another drm-intel pull too, and I'd like to backmerge the
lot right afterwards. And if you base drm-next on -rc2 I get that for
free, too (which would be great to make sure git doesn't again screw
things up when the cherry-pick conflicts get out of hand).

Also I've been hacking on my scripts, and assuming nothing goes sideways
the next pull request for -misc will be from the new, separate repo.

Cheers, Daniel


The following changes since commit a5bd451b6e6ece69be07a425381c4f3438eadba0:

  drm/crtc: constify drm_crtc_index parameter (2016-10-10 17:28:58 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-10-24

for you to fetch changes up to 8a5bbf327aa16025c78491266a6425807c7fbee0:

  drm: Use u64 for intermediate dotclock calculations (2016-10-21 20:23:16 
+0200)


Arnd Bergmann (2):
  drm: avoid uninitialized timestamp use in wait_vblank
  i915: don't call drm_atomic_state_put on invalid pointer

Brian Starkey (1):
  drm: atomic: Clarify documentation around drm_atomic_crtc_needs_modeset

Chris Wilson (13):
  drm/amdgpu: Remove call to reservation_object_test_signaled_rcu before 
wait
  drm/etnaviv: Remove manual call to reservation_object_test_signaled_rcu 
before wait
  drm/nouveau: Remove call to reservation_object_test_signaled_rcu before 
wait
  drm/vmwgfx: Remove call to reservation_object_test_signaled_rcu before 
wait
  dma-buf: Introduce fence_get_rcu_safe()
  dma-buf: Restart reservation_object_get_fences_rcu() after writes
  dma-buf: Restart reservation_object_wait_timeout_rcu() after writes
  dma-buf: Restart reservation_object_test_signaled_rcu() after writes
  drm: Add reference counting to drm_atomic_state
  drm/edid: Rename local variable block to edid
  drm/edid: Use block local to refer to the block
  drm/i915: Handle early failure during intel_get_load_detect_pipe
  drm: Use u64 for intermediate dotclock calculations

Dan Carpenter (1):
  drm/savage: dereferencing an error pointer

Dmitry Vyukov (1):
  drivers/gpu/vga: allocate vga_arb_write() buffer on stack

Gustavo Padovan (2):
  drm/fence: release fence reference when canceling event
  dma-buf/sync_file: hold reference to fence when creating sync_file

Jani Nikula (1):
  drm: fix sparse warnings on undeclared symbols in crc debugfs

Jiang Biao (2):
  drm/gma500: remove useless comment
  drm/gma500: add comments for new parameters

Laurent Pinchart (13):
  drm: Centralize format information
  drm: Implement the drm_format_*() helpers as drm_format_info() wrappers
  drm: Use drm_format_info() in DRM core code
  drm: WARN when calling drm_format_info() for an unsupported format
  drm: hdlcd: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()
  drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()
  drm: cirrus: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()
  drm: gma500: Replace drm_fb_get_bpp_depth() with drm_format_info()
  drm: amdgpu: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()
  drm: radeon: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp()
  drm: vmwgfx: Replace drm_fb_get_bpp_depth() with drm_format_info()
  drm/arm: mali-dp: Replace drm_fb_get_bpp_depth() with 
drm_format_plane_cpp()
  drm: Don't export the drm_fb_get_bpp_depth() function

Maarten Lankhorst (1):
  drm/crtc: constify drm_crtc_mask parameter

Peter Griffin (1):
  drm/virtio: kconfig: Fixup white space.

Shashank Sharma (4):
  drm: add picture aspect ratio flags
  drm: Add aspect ratio parsing in DRM layer
  video: Add new aspect ratios for HDMI 2.0
  drm: Add and handle new aspect ratios in DRM layer

Shyam Saini (1):
  gpu: drm: gma500: Use vma_pages()

Stefan Agner (2):
  drm/fb-helper: reject any changes to the fbdev
  drm/fb_cma_helper: do not free fbdev if there is none

Stephen Boyd (1):
  gpu: Remove depends on RESET_CONTROLLER when not a provider

Tomeu Vizoso (1):
  drm: Add API for capturing frame CRCs

Ville Syrjälä (8):
  drm: Add drm_rotation_90_or_270()
  drm/atomic: Reject attempts to use multiple rotation angles at once
  drm: Add support for optional per-plane rotation property
  drm/arm: Use per-plane rotation property
  drm/atmel-hlcdc: Use per-plane rotation property
  drm/omap: Set rotation property initial value to BIT(DRM_ROTATE_0) insted 
of 0
  drm/omap: Use 

[PULL] topic/drm-misc

2016-10-13 Thread Daniel Vetter
Hi Dave,

Sumits undug himself from conference traveling, so here's one more pull
request for 4.9, essentially just containing the reservation rcu fixes and
polish from Chris.

Btw plan is that between -rc1 and -rc2 we do a tree-wide
s/fence/dma_fence/ since the current name is a bit too generic for what it
does. And dma_fence also aligns much better with dma_buf. That rename is
probably best if it lands through your drm-fixes tree (which we can do,
now that sync_file is destaged since drm is defactor owning all that
inter-device dma stuff anyway).

Cheers, Daniel


The following changes since commit a5bd451b6e6ece69be07a425381c4f3438eadba0:

  drm/crtc: constify drm_crtc_index parameter (2016-10-10 17:28:58 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-10-13

for you to fetch changes up to f7741aa75e76440f4e9ecfe512feebe9bce33ca8:

  drm/savage: dereferencing an error pointer (2016-10-13 07:56:14 +0200)


Chris Wilson (8):
  drm/amdgpu: Remove call to reservation_object_test_signaled_rcu before 
wait
  drm/etnaviv: Remove manual call to reservation_object_test_signaled_rcu 
before wait
  drm/nouveau: Remove call to reservation_object_test_signaled_rcu before 
wait
  drm/vmwgfx: Remove call to reservation_object_test_signaled_rcu before 
wait
  dma-buf: Introduce fence_get_rcu_safe()
  dma-buf: Restart reservation_object_get_fences_rcu() after writes
  dma-buf: Restart reservation_object_wait_timeout_rcu() after writes
  dma-buf: Restart reservation_object_test_signaled_rcu() after writes

Dan Carpenter (1):
  drm/savage: dereferencing an error pointer

Jiang Biao (2):
  drm/gma500: remove useless comment
  drm/gma500: add comments for new parameters

Shyam Saini (1):
  gpu: drm: gma500: Use vma_pages()

 drivers/dma-buf/reservation.c| 112 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c  |   6 +-
 drivers/gpu/drm/etnaviv/etnaviv_gem.c|  24 +++
 drivers/gpu/drm/gma500/framebuffer.c |   3 +-
 drivers/gpu/drm/gma500/gtt.c |   2 +
 drivers/gpu/drm/nouveau/nouveau_gem.c|  21 +++---
 drivers/gpu/drm/savage/savage_state.c|   1 +
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c |   6 +-
 include/linux/fence.h|  56 ++--
 9 files changed, 124 insertions(+), 107 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-10-11 Thread Daniel Vetter
Hi Dave,

Just flushing out my -misc queue. Slightly important are the prime
refcount/unload fixes from Chris.

There's also the reservation stuff from Chris still pending, and Sumits
hasn't landed that yet. Might get another pull for that, but pls don't
hold up the main pull for it ;-)

Cheers, Daniel


The following changes since commit 0546d685f07cc4fc5748fd36e57d167877c2842d:

  drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support it 
(2016-10-04 08:23:17 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-10-11

for you to fetch changes up to a5bd451b6e6ece69be07a425381c4f3438eadba0:

  drm/crtc: constify drm_crtc_index parameter (2016-10-10 17:28:58 +0200)


Chris Wilson (3):
  drm/prime: Pass the right module owner through to dma_buf_export()
  drm/prime: Take a ref on the drm_dev when exporting a dma_buf
  drm: Fix up kerneldoc for new drm_gem_dmabuf_export()

Christophe JAILLET (2):
  drm: Release resources with a safer function
  drm: Release resources with a safer function

Grazvydas Ignotas (1):
  drm: use the right function name in documentation

Jani Nikula (1):
  drm/crtc: constify drm_crtc_index parameter

Marek Vasut (3):
  drm: simple_kms_helper: Add prepare_fb and cleanup_fb hooks
  drm/bridge: Call drm_connector_cleanup directly
  drm/bridge: Drop drm_connector_unregister and call drm_connector_cleanup 
directly

Maxime Ripard (1):
  drm/bridge: Add RGB to VGA bridge support

Stefan Christ (1):
  drm/fb-helper: fix sphinx markup for DRM_FB_HELPER_DEFAULT_OPS

 .../bindings/display/bridge/dumb-vga-dac.txt   |  48 +
 drivers/gpu/drm/armada/armada_gem.c|   2 +-
 drivers/gpu/drm/bridge/Kconfig |   7 +
 drivers/gpu/drm/bridge/Makefile|   1 +
 drivers/gpu/drm/bridge/analogix-anx78xx.c  |   7 +-
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |   9 +-
 drivers/gpu/drm/bridge/dumb-vga-dac.c  | 223 +
 drivers/gpu/drm/bridge/dw-hdmi.c   |   8 +-
 drivers/gpu/drm/bridge/nxp-ptn3460.c   |   7 +-
 drivers/gpu/drm/bridge/parade-ps8622.c |   7 +-
 drivers/gpu/drm/bridge/tc358767.c  |   8 +-
 drivers/gpu/drm/drm_connector.c|  12 +-
 drivers/gpu/drm/drm_prime.c|  48 -
 drivers/gpu/drm/drm_simple_kms_helper.c|  26 +++
 drivers/gpu/drm/i915/i915_gem_dmabuf.c |   2 +-
 drivers/gpu/drm/tegra/gem.c|   2 +-
 drivers/gpu/drm/udl/udl_dmabuf.c   |   2 +-
 include/drm/drmP.h |   7 +-
 include/drm/drm_connector.h|   4 +-
 include/drm/drm_crtc.h |   2 +-
 include/drm/drm_fb_helper.h|   2 +-
 include/drm/drm_simple_kms_helper.h|  20 ++
 22 files changed, 391 insertions(+), 63 deletions(-)
 create mode 100644 
Documentation/devicetree/bindings/display/bridge/dumb-vga-dac.txt
 create mode 100644 drivers/gpu/drm/bridge/dumb-vga-dac.c

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-10-05 Thread Daniel Vetter
Hi Dave,

Another attempt, this time rebased and without the pipe crc patches:
- display_info cleanups from Ville
- make prime/gem lookups faster with rbtrees (Chris)
- misc stuff all over

Cheers, Daniel


The following changes since commit c2cbc38b9715bd8318062e600668fc30e5a3fbfa:

  drm: virtio: reinstate drm_virtio_set_busid() (2016-10-04 13:10:30 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-10-05

for you to fetch changes up to 0546d685f07cc4fc5748fd36e57d167877c2842d:

  drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support it 
(2016-10-04 08:23:17 +0200)


Baoyou Xie (3):
  drm/rockchip: add missing header dependencies
  drm/rockchip: mark symbols static where possible
  drm/mediatek: mark symbols static where possible

Chris Wilson (1):
  drm: Convert prime dma-buf <-> handle to rbtree

Daniel Vetter (1):
  drm: Document caveats around atomic event handling

Emilio López (1):
  uapi: add missing install of sync_file.h

Joe Perches (1):
  drm: Simplify drm_printk to reduce object size quite a bit

Stefan Christ (1):
  drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops

Tomeu Vizoso (2):
  drm/bridge: analogix_dp: Add analogix_dp_psr_supported
  drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support 
it

Ville Syrjälä (10):
  drm/edid: Clear old audio latency values before parsing the new EDID
  drm/edid: Clear old dvi_dual/max_tmds_clock before parsing the new EDID
  drm/edid: Make max_tmds_clock kHz instead of MHz
  drm/edid: Move dvi_dual/max_tmds_clock to drm_display_info
  drm/edid: Don't pass around drm_display_info needlessly
  drm/edid: Reduce the number of times we parse the CEA extension block
  drm/edid: Clear the old cea_rev when there's no CEA extension in the new 
EDID
  drm/edid: Move dvi_dual/max_tmds_clock parsing out from drm_edid_to_eld()
  drm/i915: Replace a bunch of connector->base.display_info with a local 
variable
  drm/i915: Account for sink max TMDS clock when checking the port clock

 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c |   4 +-
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |   8 +
 drivers/gpu/drm/drm_drv.c  |   5 +-
 drivers/gpu/drm/drm_edid.c | 248 +++--
 drivers/gpu/drm/drm_irq.c  |  32 ++-
 drivers/gpu/drm/drm_prime.c|  85 ++-
 drivers/gpu/drm/i915/intel_display.c   |  14 +-
 drivers/gpu/drm/i915/intel_hdmi.c  |   9 +-
 drivers/gpu/drm/mediatek/mtk_hdmi.c|  11 +-
 drivers/gpu/drm/radeon/radeon_connectors.c |   4 +-
 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c|   3 +
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c|   4 +-
 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c  |   1 +
 include/drm/bridge/analogix_dp.h   |   1 +
 include/drm/drmP.h |  35 ++-
 include/drm/drm_connector.h|  15 +-
 include/drm/drm_crtc.h |  56 +++--
 include/drm/drm_fb_helper.h|  13 ++
 include/uapi/linux/Kbuild  |   1 +
 19 files changed, 361 insertions(+), 188 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-10-04 Thread Dave Airlie
On 3 October 2016 at 23:39, Daniel Vetter  wrote:
> Hi Dave,
>
> As promised another pull request. A bit late because flu.
> - generic pipe crc from Tomeu, required a backmerge to apply
> - fixes for my fumbled drm_plane.c extraction
> - display_info cleanup/fixes from Ville
> - misc stuff all over

I pulled this, it fell over I force pushed drm-next back to what it
was, I'm sad panda.

Hopefully nobody had pulled drm-next too much in that time period.

The pipe crc stuff is pretty broken wrt driver that still have ->load,
since we register
the minors before we call load, and on ->load driver the mode resources haven't
been configured at that point.

I'd really like the rest of drm-misc, but I might at least cherry-pick
out the major patch
I want which is the drm_plane.c fixup.

Dave.


[PULL] topic/drm-misc

2016-10-03 Thread Daniel Vetter
Hi Dave,

As promised another pull request. A bit late because flu.
- generic pipe crc from Tomeu, required a backmerge to apply
- fixes for my fumbled drm_plane.c extraction
- display_info cleanup/fixes from Ville
- misc stuff all over

Cheers, Daniel


The following changes since commit c0d5fb4d0d9224ccaad0475c9b58740873970e7e:

  Merge tag 'drm-qemu-20160921' of git://git.kraxel.org/linux into drm-next 
(2016-09-28 13:23:07 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-10-03

for you to fetch changes up to 262f75a6288346db44038c63b7a95ee68f8b7bea:

  drm: Undo damage to page_flip_ioctl (2016-10-03 15:13:38 +0200)


Baoyou Xie (4):
  drm/rockchip: add missing header dependencies
  drm/rockchip: mark symbols static where possible
  drm/mediatek: mark symbols static where possible
  drm/sti: mark symbols static where possible

Chris Wilson (2):
  drm: Restore lost drm_framebuffer_unreference in drm_mode_page_flip_ioctl
  drm: Convert prime dma-buf <-> handle to rbtree

Daniel Vetter (3):
  Merge remote-tracking branch 'airlied/drm-next' into topic/drm-misc
  drm: Document caveats around atomic event handling
  drm: Undo damage to page_flip_ioctl

Dhinakaran Pandiyan (1):
  drm: Add frame CRC debugfs files only for drivers that have CRTC

Emilio López (1):
  uapi: add missing install of sync_file.h

Joe Perches (1):
  drm: Simplify drm_printk to reduce object size quite a bit

Stefan Christ (1):
  drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops

Tomeu Vizoso (7):
  drm/i915/debugfs: Move out pipe CRC code
  drm: Add API for capturing frame CRCs
  drm/i915: Use new CRC debugfs API
  drm/i915: Put "cooked" vlank counters in frame CRC lines
  drm/i915: Fix build when !CONFIG_DEBUG_FS
  drm/bridge: analogix_dp: Add analogix_dp_psr_supported
  drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support 
it

Ville Syrjälä (10):
  drm/edid: Clear old audio latency values before parsing the new EDID
  drm/edid: Clear old dvi_dual/max_tmds_clock before parsing the new EDID
  drm/edid: Make max_tmds_clock kHz instead of MHz
  drm/edid: Move dvi_dual/max_tmds_clock to drm_display_info
  drm/edid: Don't pass around drm_display_info needlessly
  drm/edid: Reduce the number of times we parse the CEA extension block
  drm/edid: Clear the old cea_rev when there's no CEA extension in the new 
EDID
  drm/edid: Move dvi_dual/max_tmds_clock parsing out from drm_edid_to_eld()
  drm/i915: Replace a bunch of connector->base.display_info with a local 
variable
  drm/i915: Account for sink max TMDS clock when checking the port clock

 Documentation/gpu/drm-uapi.rst |6 +
 drivers/gpu/drm/Makefile   |3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c |4 +-
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |8 +
 drivers/gpu/drm/drm_crtc.c |   29 +-
 drivers/gpu/drm/drm_debugfs.c  |   34 +-
 drivers/gpu/drm/drm_debugfs_crc.c  |  351 +++
 drivers/gpu/drm/drm_drv.c  |   28 +-
 drivers/gpu/drm/drm_edid.c |  248 ++---
 drivers/gpu/drm/drm_internal.h |   16 +
 drivers/gpu/drm/drm_irq.c  |   32 +-
 drivers/gpu/drm/drm_plane.c|   83 +-
 drivers/gpu/drm/drm_prime.c|   85 +-
 drivers/gpu/drm/i915/Makefile  |2 +-
 drivers/gpu/drm/i915/i915_debugfs.c|  886 +
 drivers/gpu/drm/i915/i915_drv.c|2 +-
 drivers/gpu/drm/i915/i915_drv.h|5 +-
 drivers/gpu/drm/i915/i915_irq.c|   83 +-
 drivers/gpu/drm/i915/intel_display.c   |   15 +-
 drivers/gpu/drm/i915/intel_drv.h   |   13 +
 drivers/gpu/drm/i915/intel_hdmi.c  |9 +-
 drivers/gpu/drm/i915/intel_pipe_crc.c  | 1014 
 drivers/gpu/drm/mediatek/mtk_hdmi.c|   11 +-
 drivers/gpu/drm/radeon/radeon_connectors.c |4 +-
 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c|3 +
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c|4 +-
 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c  |1 +
 include/drm/bridge/analogix_dp.h   |1 +
 include/drm/drmP.h |   35 +-
 include/drm/drm_connector.h|   15 +-
 include/drm/drm_crtc.h |   97 +-
 include/drm/drm_debugfs_crc.h  |   73 ++
 include/drm/drm_fb_helper.h|   13 +
 include/uapi/linux/Kbuild  |1 +
 34 files changed, 2069 

[PULL] topic/drm-misc

2016-09-26 Thread Daniel Vetter
Hi Dave,

- more core cleanup patches to prep drm_file to be used for
  kernel-internal contexts (David Herrmann)
- more split-up+docs for drm_crtc.c
- lots of small fixes and polish all over

This pull contains 4 patches from Markus to switch to
kcalloc/kmalloc_array in legacy bufs ioctl code. Because ioctls seems
justified, but given the poor s/n and that Markus doesn't seem interested
at all in coordinating his patch piles first I won't bother trying to dig
out the good ones any more.

Also reminder to pick up one of the udl fixes (don't forget the cc:
stable) for drm-fixes.

Cheers, Daniel


The following changes since commit 9f8cf165c62913244479832f04c44cd77ffc9293:

  Merge tag 'topic/drm-misc-2016-09-19' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-09-19 17:16:02 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-09-25

for you to fetch changes up to 089cfdd9b0ec1b21d3356d2e057f69b89d46ae66:

  drm: bridge: analogix/dp: mark symbols static where possible (2016-09-25 
22:59:02 +0200)


Baoyou Xie (2):
  drm/bochs: mark bochs_connector_get_modes() static
  drm: bridge: analogix/dp: mark symbols static where possible

Brian Starkey (1):
  drm/i2c: tda998x: don't register the connector

Daniel Vetter (11):
  drm: Move a few macros away from drm_crtc.h
  drm: Extract drm_bridge.h
  drm: Move all decl for drm_edid.c to drm_edid.h
  drm: Extract drm_plane.[hc]
  drm/doc: Polish for drm_plane.[hc]
  drm: Conslidate blending properties in drm_blend.[hc]
  drm/doc: Polish plane composition property docs
  drm: Extract drm_color_mgmt.[hc]
  drm/doc: Document color space handling
  drm: Remove dirty property from docs
  drm: Fix plane type uabi breakage

David Herrmann (4):
  drm: remove redundant drm_file->uid
  drm: use drm_file to tag vm-bos
  drm: drop obsolete drm_core.h
  drm: cleanup drm_core_{init,exit}()

Dhinakaran Pandiyan (1):
  drm: Fix typo in encoder docs

Emilio López (1):
  dma-buf/sync_file: fix documentation error

Gustavo Padovan (1):
  dma-buf/sync_file: free fences array in num_fences is 1

Jani Nikula (1):
  drm: fix implicit declaration build error on ia64

Markus Elfring (4):
  GPU-DRM: Use kmalloc_array() in drm_legacy_addbufs_pci()
  GPU-DRM: Replace two kzalloc() calls by kcalloc() in 
drm_legacy_addbufs_pci()
  GPU-DRM: Replace a kzalloc() call by kcalloc() in drm_legacy_addbufs_agp()
  GPU-DRM: Replace a kzalloc() call by kcalloc() in drm_legacy_addbufs_sg()

Rafael Antognolli (1):
  dma-buf/sync_file: Increment refcount of fence when all are signaled.

Sean Paul (4):
  drm/tilcdc: Add atomic and crtc headers to crtc.c
  Revert "drm/i2c: tda998x: don't register the connector"
  drm/bridge: analogix_dp: Don't read EDID if panel present
  drm/bridge: analogix_dp: Improve panel on time

Tom Gundersen (2):
  drm: Distinguish no name from ENOMEM in set_unique()
  drm: Don't swallow error codes in drm_dev_alloc()

Tomeu Vizoso (1):
  drm/bridge: analogix_dp: Remove duplicated code

Ville Syrjälä (3):
  drm/atomic-helper: Fix sparse warnings
  drm/blend: Fix sparse warnings
  drm/fb-helper: Fix sparse warnings

 Documentation/gpu/drm-kms-helpers.rst  |   10 +
 Documentation/gpu/drm-kms.rst  |   78 +-
 Documentation/gpu/kms-properties.csv   |   21 -
 drivers/dma-buf/sync_file.c|7 +-
 drivers/gpu/drm/Makefile   |3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c|3 +-
 drivers/gpu/drm/arc/arcpgu_drv.c   |4 +-
 drivers/gpu/drm/arm/hdlcd_drv.c|4 +-
 drivers/gpu/drm/arm/malidp_drv.c   |4 +-
 drivers/gpu/drm/ast/ast_ttm.c  |3 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c   |4 +-
 drivers/gpu/drm/bochs/bochs_kms.c  |2 +-
 drivers/gpu/drm/bochs/bochs_mm.c   |3 +-
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |  311 ++--
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.h |   40 +-
 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c  |  451 ++
 drivers/gpu/drm/cirrus/cirrus_ttm.c|3 +-
 drivers/gpu/drm/drm_atomic_helper.c|2 +-
 drivers/gpu/drm/drm_blend.c|  199 ++-
 drivers/gpu/drm/drm_bridge.c   |5 +-
 drivers/gpu/drm/drm_bufs.c |   14 +-
 drivers/gpu/drm/drm_color_mgmt.c   |  296 
 drivers/gpu/drm/drm_crtc.c | 1683 +++-
 drivers/gpu/drm/drm_crtc_helper_internal.h |7 +
 drivers/gpu/drm/drm_crtc_internal.h|   45 +-
 drivers/gpu/drm/drm_dp_helper.c

[PULL] topic/drm-misc

2016-09-19 Thread Daniel Vetter
Hi Dave,

Just random misc stuff that Sean/Sumit picked up while I relaxed.
Well except for one commit:

commit a988588b1806b40ae115fe1c9ab38706fd1a7c2b
Author: Kristian H. Kristensen 
Date:   Tue Sep 13 14:20:45 2016 -0700

drm: Only use compat ioctl for addfb2 on X86/IA64

Pls also cherry-pick that over to drm-fixes and add a cc:stable tag.

Cheers, Daniel


The following changes since commit dec90ea1456b5a5d990d94ade2e45a2457cfd149:

  drm: Fix error path in drm_mode_page_flip_ioctl() (2016-09-08 11:57:13 +0300)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-09-19

for you to fetch changes up to a988588b1806b40ae115fe1c9ab38706fd1a7c2b:

  drm: Only use compat ioctl for addfb2 on X86/IA64 (2016-09-15 10:42:11 -0400)


Chris Wilson (1):
  dma-buf/sync-file: Avoid enable fence signaling if poll(.timeout=0)

Gustavo Padovan (1):
  drm/fence: allow fence waiting to be interrupted by userspace

Kristian H. Kristensen (1):
  drm: Only use compat ioctl for addfb2 on X86/IA64

Maarten Lankhorst (1):
  drm: Move property validation to a helper, v2.

Masahiro Yamada (4):
  drm/amdgpu: squash lines for simple wrapper functions
  drm/radeon: squash lines for simple wrapper functions
  drm/bridge: analogix_dp: squash lines for simple wrapper functions
  drm/qxl: squash lines for simple wrapper functions

Sergei Shtylyov (1):
  drm/bridge: adv7511: add support for the 2nd chip

 drivers/dma-buf/sync_file.c   |  3 +-
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c  |  6 +---
 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c|  6 +---
 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c|  6 +---
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c  | 12 +++
 drivers/gpu/drm/bridge/adv7511/adv7533.c  |  5 ++-
 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 20 +++
 drivers/gpu/drm/drm_atomic.c  | 13 ++-
 drivers/gpu/drm/drm_atomic_helper.c   | 41 ++-
 drivers/gpu/drm/drm_crtc_internal.h   |  2 ++
 drivers/gpu/drm/drm_ioc32.c   |  4 +++
 drivers/gpu/drm/drm_mode_object.c | 31 -
 drivers/gpu/drm/msm/msm_atomic.c  |  2 +-
 drivers/gpu/drm/qxl/qxl_draw.c|  7 ++--
 drivers/gpu/drm/qxl/qxl_release.c |  7 ++--
 drivers/gpu/drm/radeon/cik.c  |  6 +---
 drivers/gpu/drm/radeon/r100.c |  6 +---
 drivers/gpu/drm/radeon/r600.c |  6 +---
 include/drm/drm_atomic_helper.h   |  5 +--
 19 files changed, 84 insertions(+), 104 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-09-08 Thread Jani Nikula

Hi Dave -

Here's a drm-misc pull request mainly to get some fixes moving forward.

BR,
Jani.

The following changes since commit 2b2fd56d7e92f134ecaae5c89e20f64dd0f95aa2:

  Revert "drm: make DRI1 drivers depend on BROKEN" (2016-09-01 06:16:12 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-09-08

for you to fetch changes up to dec90ea1456b5a5d990d94ade2e45a2457cfd149:

  drm: Fix error path in drm_mode_page_flip_ioctl() (2016-09-08 11:57:13 +0300)


Haixia Shi (1):
  drm/udl: implement usb_driver suspend/resume.

Imre Deak (1):
  drm: Fix error path in drm_mode_page_flip_ioctl()

Maarten Lankhorst (2):
  drm/atomic: Reject properties not part of the object.
  Revert "drm: Unify handling of blob and object properties"

Tomeu Vizoso (1):
  drm/doc: Add a few words on validation with IGT

Xie XiuQi (1):
  drm: fix signed integer overflow

 Documentation/gpu/drm-uapi.rst| 37 +
 drivers/gpu/drm/drm_atomic.c  | 11 ++-
 drivers/gpu/drm/drm_crtc.c|  2 +-
 drivers/gpu/drm/drm_hashtab.c |  2 +-
 drivers/gpu/drm/drm_property.c| 23 ++-
 drivers/gpu/drm/udl/udl_drv.c | 16 
 drivers/gpu/drm/udl/udl_drv.h |  2 ++
 drivers/gpu/drm/udl/udl_modeset.c | 14 ++
 8 files changed, 99 insertions(+), 8 deletions(-)

-- 
Jani Nikula, Intel Open Source Technology Center


[PULL] topic/drm-misc

2016-08-31 Thread Daniel Vetter
Hi Dave,

More -misc stuff
- moar drm_crtc.c split up
- some fixes for the simple kms helpers (Andrea)
- I included all the dri1 patches from David - we're not removing any code
  or drivers, and it seems to have worked as a wake-up call to motivate a
  few more people to upstream kms conversions for these. Feel free to
  revert if you disagree strongly.
- a few other single patches

I'll be on vacation next 2 weeks, but there's nothing big outstanding in
drm core afaikj, and Sean/Archit/Sumit and Thierry can take care of the
small bits. I'll wrap it all up in a pull request when I'm back (well,
probably when I'm at XDC already ...). Same for drm-intel, you'll get pull
request for the final 4.9 feature piles when I'm back again. A bit later
than usual, but still comfortably before the merge window opens I think.
Otherwise I don't think anything needs to be done, but Jani's around in
case of a real fire.

Cheers, Daniel


The following changes since commit 0d42204f374380b6334de7dd2fe7e7d795250290:

  drm/doc: Document uapi requirements in DRM (2016-08-24 07:13:08 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-08-31

for you to fetch changes up to 339fd36238dd3494bc4617d181e7a37922c29ee9:

  drm: drm_probe_helper: Fix output_poll_work scheduling (2016-08-31 13:23:30 
+0200)


Andrea Merello (3):
  drm/bridge: introduce bridge detaching mechanism
  drm: simple_kms_helper: make connector optional at init time
  drm: simple_kms_helper: add support for bridges

Arnd Bergmann (1):
  drm/fb-helper: don't call remove_conflicting_framebuffers for FB=m && 
DRM=y

Daniel Vetter (11):
  drm/doc: Fix vga_switcheroo xref
  drm/simple-helpers: Always add planes to the state update
  drm: Extract drm_encoder.[hc]
  drm/doc: Polish kerneldoc for encoders
  drm: Extract drm_mode_object.[hc]
  drm: Remove drm_mode_object->atomic_count
  drm/doc: Polish docs for drm_mode_object
  drm: move drm_mode_legacy_fb_format to drm_fourcc.c
  drm: Extract drm_property.[hc]
  drm: Unify handling of blob and object properties
  drm/doc: Polish docs for drm_property_property_blob

David Herrmann (3):
  drm: hide legacy drivers with CONFIG_DRM_LEGACY
  drm: make DRI1 drivers depend on BROKEN
  drm: reduce GETCLIENT to a minimum

Jose Abreu (1):
  drm: bridge/dw-hdmi: Fix colorspace and scan information registers values

Liu Ying (3):
  drm/atomic-helper: Add atomic_disable CRTC helper callback
  drm/atomic-helper: Disable appropriate planes in disable_planes_on_crtc()
  drm/atomic-helper: Add NO_DISABLE_AFTER_MODESET flag support for plane 
commit

Masahiro Yamada (1):
  drm/gma500: remove unnecessary config_enabled() guard

Peter Ujfalusi (1):
  drm: drm_probe_helper: Fix output_poll_work scheduling

 Documentation/gpu/drm-kms.rst|  159 +--
 Documentation/gpu/vga-switcheroo.rst |2 +
 drivers/gpu/drm/Kconfig  |  136 ++-
 drivers/gpu/drm/Makefile |3 +-
 drivers/gpu/drm/arm/malidp_drv.c |3 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c |2 +-
 drivers/gpu/drm/bridge/dw-hdmi.c |7 +-
 drivers/gpu/drm/drm_atomic_helper.c  |   61 +-
 drivers/gpu/drm/drm_bridge.c |   29 +-
 drivers/gpu/drm/drm_crtc.c   | 1625 +-
 drivers/gpu/drm/drm_crtc_internal.h  |   90 +-
 drivers/gpu/drm/drm_encoder.c|  232 
 drivers/gpu/drm/drm_fourcc.c |   43 +
 drivers/gpu/drm/drm_ioctl.c  |5 +-
 drivers/gpu/drm/drm_mode_object.c|  437 +++
 drivers/gpu/drm/drm_probe_helper.c   |8 +-
 drivers/gpu/drm/drm_property.c   |  899 ++
 drivers/gpu/drm/drm_simple_kms_helper.c  |   58 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.c  |2 +-
 drivers/gpu/drm/gma500/opregion.c|5 +-
 drivers/gpu/drm/imx/imx-drm-core.c   |3 +-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c   |6 +-
 drivers/gpu/drm/msm/msm_atomic.c |2 +-
 drivers/gpu/drm/omapdrm/omap_drv.c   |2 +-
 drivers/gpu/drm/rcar-du/rcar_du_kms.c|3 +-
 drivers/gpu/drm/rockchip/rockchip_drm_fb.c   |3 +-
 drivers/gpu/drm/sti/sti_drv.c|2 +-
 drivers/gpu/drm/tegra/drm.c  |3 +-
 drivers/gpu/drm/tilcdc/tilcdc_drv.c  |2 +-
 drivers/gpu/drm/vc4/vc4_kms.c|2 +-
 drivers/gpu/drm/virtio/virtgpu_display.c |3 +-
 include/drm/drm_atomic_helper.h  |   11 +-
 include/drm/drm_connector.h  |2 +-
 include/drm/drm_crtc.h   |  262 +
 include/drm/drm_encoder.h|  227 
 include/drm/drm_fb_helper.h  

[PULL] topic/drm-misc

2016-08-23 Thread Daniel Vetter
Hi Dave,

A few bigger things:
- start of splitting drm_crtc.c into more manageable and better documneted
  chunks
- DRM_DEV_* logging (Sean)

But besides those it's really all one-off misc patches all over this time
around, trying to summarize them further would just end up in copying the
shortlog ;-)

Once you pulled this in can you pls apply

https://patchwork.freedesktop.org/patch/106979/

on top? I think this patch would benefit from your direct sob, and it has
some trivial conflicts with the doc polish in this pull.

I also have a pile in drm-intel-next, but the io-mapping.h change in there
blew up on some really interesting places because some folks thought this
is the generic iomapping header, without realizing that it's _only_ for
per-page io_mapping (only used by i915, nouveau and some random network
driver, which looks a bit fishy). We need to undo that silliness first
before I can send you that pull (gpiolib and some infiniband files include
linux/io-mapping.h), so probably will take a few days.

Cheers, Daniel


The following changes since commit fc93ff608b15ae32cde3006b7af860b59cac20ec:

  Merge tag 'drm-intel-next-2016-08-08' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-08-15 16:53:57 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-08-23

for you to fetch changes up to 28579f37467cd1a9130a6287cf8322986e0b56f9:

  drm/fb-helper: Make docs for fb_set_suspend wrappers consistent (2016-08-23 
21:12:56 +0200)


Chris Wilson (4):
  dma-buf: Wait on the reservation object when sync'ing before CPU access
  drm: Allow drivers to modify plane_state in prepare_fb/cleanup_fb
  drm: Avoid calling dev_printk(.dev = NULL)
  drm/fb-helper: Fix the dummy remove_conflicting_framebuffers

Clint Taylor (1):
  drm/edid: CEA mode 64 1080p100 vsync pulse width incorrect

Daniel Vetter (23):
  drm/doc: Fix more kerneldoc/sphinx warnings
  drm/doc: Light drm-kms-helper.rst cleanup
  drm/kms-helpers: Extract drm_modeset_helper.[hc]
  drm/doc: Reorg drm-mm.rst
  drm/doc: Reorg for drm-kms.rst
  drm/etnaviv: Don't set drm_device->platformdev
  drm/hisilicon: Don't set drm_device->platformdev
  drm/doc: Remove outdated FIXME for the page_flip callback
  drm/kms: Nuke dirty_info property
  drm/doc: Include drm_atomic.h
  drm: Extract drm_framebuffer.[hc]
  drm/doc: Update drm_framebuffer docs
  drm: Export drm_property_replace_global_blob
  drm: Extract drm_connector.[hc]
  drm/doc: Include new drm_blend.c
  drm: Don't export dp-aux devnode functions
  drm: Update connector documentation
  drm: Remove display_info->min/max_(h|v)max
  drm: document drm_display_info
  vgaarbiter: rst-ifiy and polish kerneldoc
  drm: Fix kerneldoc in drm_plane_helper.c
  Revert "drm/hisilicon: Don't set drm_device->platformdev"
  drm/fb-helper: Make docs for fb_set_suspend wrappers consistent

Eric Engestrom (2):
  drm: make drm_get_format_name thread-safe
  drm: remove `const` attribute to hint at caller that they now own the 
memory

Heinrich Schuchardt (1):
  drm: avoid exposing kernel stack in compat_drm_getstats

Jamie Lentin (1):
  drm/udl: Ensure channel is selected before using the device.

Laurent Pinchart (1):
  drm: Don't implement empty prepare_fb()/cleanup_fb()

Lothar Waßmann (1):
  drm: update kerneldoc for changes introduced by commits "16fadc2568e9" 
and "9671e228fb78"

Markus Elfring (4):
  GPU-DRM-Savage: Use memdup_user() rather than duplicating
  virtio-gpu: Use memdup_user() rather than duplicating its implementation
  drm/bridge: dw-hdmi: Delete unnecessary assignment for the field "owner"
  drm/rockchip: Delete unnecessary assignment for the field "owner"

Noralf Trønnes (1):
  drm/fb-helper: Add drm_fb_helper_set_suspend_unlocked()

Randy Dunlap (1):
  dma-buf: fix kernel-doc warning and typos

Rob Clark (1):
  reservation: fix small comment typo

Sean Paul (3):
  drm: Introduce DRM_DEV_* log messages
  drm/rockchip: Use DRM_DEV_ERROR in vop
  drm/rockchip: Don't continue trying to enable crtc on failure

Shawn Guo (1):
  drm: drop DRIVER_HAVE_IRQ flag for some drivers

Wei Yongjun (1):
  drm/mgag200: fix error return code in mgag200fb_create()

 Documentation/gpu/drm-kms-helpers.rst  |  211 +-
 Documentation/gpu/drm-kms.rst  |  270 +--
 Documentation/gpu/drm-mm.rst   |   58 +-
 Documentation/gpu/drm-uapi.rst |3 +
 Documentation/gpu/index.rst|1 +
 Documentation/gpu/vga-switcheroo.rst   |2 -
 .../{vgaarbiter.txt => gpu/vgaarbiter.rst} |  161 +-
 drivers/dma-buf/dma-buf.c  |   23 +
 drivers/dma-buf/fence-array.c  |   

[PULL] topic/drm-misc

2016-08-12 Thread Daniel Vetter
Hi Dave,

- more fence destaging and cleanup (Gustavo)
- DRIVER_LEGACY to untangle from DRIVER_MODESET
- drm_mm refactor (Chris)
- fbdev-less compile fies
- clipped plane src/dst rects (Ville)
- + a few mediatek patches that build on top of that (Bibby+Daniel)
- small stuff all over really

Cheers, Daniel


The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc:

  Linux 4.8-rc1 (2016-08-07 18:18:00 -0700)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-08-12

for you to fetch changes up to 3590d50e2313644cd192ff55e83df76dea232319:

  dma-buf/fence: kerneldoc: remove spurious section header (2016-08-12 20:32:14 
+0530)


Bibby Hsieh (2):
  drm/mediatek: Use drm_atomic destroy_state helpers
  drm/mediatek: Fix mtk_atomic_complete for runtime_pm

Chris Wilson (4):
  drm: Track drm_mm nodes with an interval tree
  drm: Convert drm_vma_manager to embedded interval-tree in drm_mm
  drm: Skip initialising the drm_mm_node->hole_stack
  drm: Declare that create drm_mm nodes with size 0 is illegal

Daniel Kurtz (5):
  drm/mediatek: Remove mtk_drm_crtc_check_flush
  drm/mediatek: plane: Remove plane zpos/index
  drm/mediatek: Remove mtk_drm_plane
  drm/mediatek: plane: Merge mtk_plane_enable into mtk_plane_atomic_update
  drm/mediatek: plane: Use FB's format's cpp to compute x offset

Daniel Vetter (8):
  drm: Mark up legacy/dri1 drivers with DRM_LEGACY
  drm: Used DRM_LEGACY for all legacy functions
  drm: Make sure drm_vblank_no_hw_counter isn't abused
  drm/fb-helper: Add a dummy remove_conflicting_framebuffers
  drm: Remove superflous linux/fb.h includes
  drm/vmwgfx: select CONFIG_FB
  drm/radeon|amgpu: Make fbdev emulation optional
  drm: Protect fb_defio in drivers with CONFIG_KMS_FBDEV_EMULATION

David Herrmann (1):
  drm: rename DRM_MINOR_LEGACY to DRM_MINOR_PRIMARY

Gustavo Padovan (5):
  dma-buf/fence-array: add fence_is_array()
  dma-buf/sync_file: refactor fence storage in struct sync_file
  dma-buf/sync_file: add sync_file_get_fence()
  Documentation: add doc for sync_file_get_fence()
  dma-buf/sync_file: only enable fence signalling on poll()

Joonas Lahtinen (1):
  drm: BIT(DRM_ROTATE_?) -> DRM_ROTATE_?

Keith Packard (1):
  drm: Don't prepare or cleanup unchanging frame buffers [v3]

Lyude (3):
  drm: Add ratelimited versions of the DRM_DEBUG* macros
  drm/dp_helper: Print first error received on failure in 
drm_dp_dpcd_access()
  drm/dp_helper: Rate limit timeout errors from drm_dp_i2c_do_msg()

Peter Chen (1):
  Revert "gpu: drm: omapdrm: dss-of: add missing of_node_put after calling 
of_parse_phandle"

Rodrigo Vivi (1):
  drm: Avoid printing negative values for unsigned variables.

Sumit Semwal (2):
  dma-buf/fence: kerneldoc: remove unused struct members
  dma-buf/fence: kerneldoc: remove spurious section header

Ville Syrjälä (9):
  drm: Warn about negative sizes when calculating scale factor
  drm: Store clipped src/dst coordinatee in drm_plane_state
  drm/plane-helper: Add drm_plane_helper_check_state()
  drm/i915: Use drm_plane_state.{src,dst,visible}
  drm/i915: Use drm_plane_helper_check_state()
  drm/rockchip: Use drm_plane_state.{src, dst}
  drm/rockchip: Use drm_plane_helper_check_state()
  drm/mediatek: Use drm_plane_helper_check_state()
  drm/simple_kms_helper: Use drm_plane_helper_check_state()

 Documentation/gpu/drm-internals.rst|   9 +-
 Documentation/sync_file.txt|  14 ++
 drivers/dma-buf/fence-array.c  |   1 +
 drivers/dma-buf/sync_file.c| 204 ++---
 drivers/gpu/drm/Kconfig|   8 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c|   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c |   1 -
 drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c   |   1 -
 .../gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c  |   1 -
 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c   |   1 -
 drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c  |   1 -
 .../amd/powerplay/hwmgr/tonga_processpptables.c|   1 -
 drivers/gpu/drm/arm/malidp_drv.h   |   2 +-
 drivers/gpu/drm/arm/malidp_planes.c|  20 +-
 drivers/gpu/drm/armada/armada_fbdev.c  |   1 -
 drivers/gpu/drm/armada/armada_overlay.c|   2 +-
 drivers/gpu/drm/ast/ast_fb.c   |   1 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c|  22 +--
 drivers/gpu/drm/bochs/bochs.h  |   1 -
 drivers/gpu/drm/bochs/bochs_drv.c  |   3 +-
 drivers/gpu/drm/bridge/parade-ps8622.c |   1 -
 drivers/gpu/drm/cirrus/cirrus_drv.c|   2 +-
 drivers/gpu/drm/cirrus/cirrus_fbdev.c 

[PULL] topic/drm-misc

2016-07-28 Thread Daniel Vetter
Hi Dave,

A few more simple fixes that Sean collected. There's a bunch of bigger
things on dri-devel, but I think those are all too late for 4.8 really.
I'll try and go collect them after -rc1 for 4.9.

Cheers, Daniel


The following changes since commit e8d3ef02787fc72996cfb423180dc79764c239fa:

  GPU-DRM-Exynos: Delete an unnecessary check before the function call "vunmap" 
(2016-07-21 14:06:33 -0400)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-07-28

for you to fetch changes up to 12ae57aab43880eac500c43590e26d9d4411961b:

  drm/arm: mali-dp: Fix error return code in malidp_bind() (2016-07-28 12:59:56 
+0200)


Brian Starkey (1):
  drm/arm: mali-dp: Set crtc.port to the port instead of the endpoint

Lee Jones (1):
  drm/sti: use new Reset API

Lukas Wunner (1):
  apple-gmux: Sphinxify docs

Markus Elfring (8):
  GPU-DRM-OMAP: Delete unnecessary checks before two function calls
  GPU-DRM-GMA500: Delete unnecessary checks before two function calls
  drm/bridge: ps8622: Delete an unnecessary check before 
backlight_device_unregister()
  drm/mgag200: Delete an unnecessary check before 
drm_gem_object_unreference_unlocked()
  drm/qxl: Delete an unnecessary check before 
drm_gem_object_unreference_unlocked()
  drm/vmwgfx: Delete an unnecessary check before the function call "vfree"
  drm/etnaviv: Delete unnecessary checks before two function calls
  drm/etnaviv: Optimize error handling in etnaviv_gem_new_userptr()

Stefan Christ (1):
  drm/gma500: remove unnecessary stub for fb_ioctl()

Wei Yongjun (2):
  drm/arm: mali-dp: Remove redundant dev_err call in malidp_bind()
  drm/arm: mali-dp: Fix error return code in malidp_bind()

 drivers/gpu/drm/arm/malidp_drv.c| 19 ++---
 drivers/gpu/drm/bridge/parade-ps8622.c  |  4 +-
 drivers/gpu/drm/etnaviv/etnaviv_gem.c   | 16 +++
 drivers/gpu/drm/gma500/cdv_intel_hdmi.c |  3 +-
 drivers/gpu/drm/gma500/cdv_intel_lvds.c |  9 ++--
 drivers/gpu/drm/gma500/framebuffer.c|  9 
 drivers/gpu/drm/gma500/psb_drv.c|  6 +--
 drivers/gpu/drm/gma500/psb_intel_lvds.c |  9 ++--
 drivers/gpu/drm/mgag200/mgag200_main.c  |  4 +-
 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c |  3 +-
 drivers/gpu/drm/omapdrm/omap_fb.c   |  4 +-
 drivers/gpu/drm/qxl/qxl_display.c   |  3 +-
 drivers/gpu/drm/sti/sti_compositor.c|  4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |  4 +-
 drivers/platform/x86/apple-gmux.c   | 55 +
 15 files changed, 66 insertions(+), 86 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-07-22 Thread Daniel Vetter
Hi Dave,

Suddenly everyone shows up with their trivial patch series!
- piles of if (!ptr) check removals from Markus Elfring
- more of_node_put fixes from Peter Chen
- make fbdev support really optional in all drivers (except vmwgfx),
  somehow this fell through the cracks when we did all the hard prep work
  a while ago. Patches from Tobias Jakobi.
- leftover patches for the connector reg/unreg cleanup (required that I
  backmerged drm-next) from Chris
- last vgem fence patch from Chris
- fix up warnings in the new sphinx gpu docs build
- misc other small bits

Cheers, Daniel


The following changes since commit 2d635fded22b71381b01e194a59544f2e8d71ef0:

  Merge tag 'drm-vc4-next-2016-07-15' of https://github.com/anholt/linux into 
drm-next (2016-07-16 11:25:11 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-07-22

for you to fetch changes up to e8d3ef02787fc72996cfb423180dc79764c239fa:

  GPU-DRM-Exynos: Delete an unnecessary check before the function call "vunmap" 
(2016-07-21 14:06:33 -0400)


Chris Wilson (5):
  drm/vgem: Attach sw fences to exported vGEM dma-buf (ioctl)
  dma-buf: Release module reference on creation failure
  drm/vgem: Remember to offset relative timeouts to mod_timer() by jiffies
  drm/sun4i: Remove redundant call to drm_connector_unregister_all()
  drm: Unexport drm_connector_unregister_all()

Daniel Vetter (11):
  Revert "drm: Resurrect atomic rmfb code"
  Merge remote-tracking branch 'airlied/drm-next' into topic/drm-misc
  drm/doc: Add kerneldoc for @index
  drm/drm-kms.rst: Remove unused drm_fourcc.h include directive
  drm/doc: document all the properties in drm_mode_config
  drm: Extract drm_irq.h
  drm/doc: Fix missing kerneldoc for drm_dp_helper.c
  drm/dp-mst: Remove tx_down_in_progress
  drm/dp-mst: Missing kernel doc
  drm/doc: Spinx leftovers
  drm: drm_connector->s/connector_id/index/ for consistency

Markus Elfring (13):
  drm/bochs: Delete an unnecessary check before 
drm_gem_object_unreference_unlocked()
  drm/rockchip: Delete an unnecessary check before 
drm_gem_object_unreference_unlocked()
  drm/vc4: Delete unnecessary checks before two function calls
  drm/arcpgu: Delete an unnecessary check before 
drm_fbdev_cma_hotplug_event()
  drm/virtgpu: Delete unnecessary checks before 
drm_gem_object_unreference_unlocked()
  drm/tegra: Delete an unnecessary check before the function call "vunmap"
  drm/cirrus: Delete an unnecessary check before 
drm_gem_object_unreference_unlocked()
  drm/hdlcd: Delete an unnecessary check before 
drm_fbdev_cma_hotplug_event()
  drm/ast: Delete an unnecessary check before 
drm_gem_object_unreference_unlocked()
  drm/ttm: Delete an unnecessary check before the function call 
"ttm_tt_destroy"
  drm/atomic: Delete an unnecessary check before 
drm_property_unreference_blob()
  GPU-DRM-sun4i: Delete an unnecessary check before 
drm_fbdev_cma_hotplug_event()
  GPU-DRM-Exynos: Delete an unnecessary check before the function call 
"vunmap"

Peter Chen (4):
  gpu: drm: omapdrm: connector-dvi: add missing of_node_put after calling 
of_parse_phandle
  gpu: drm: omapdrm: dss-of: add missing of_node_put after calling 
of_parse_phandle
  gpu: drm: exynos_hdmi: add missing of_node_put after calling 
of_parse_phandle
  gpu: drm: arcpgu_drv: add missing of_node_put after calling 
of_parse_phandle

Tobias Jakobi (20):
  drm/rockchip: make fbdev support really optional
  drm/rcar-du: make fbdev support really optional
  drm/atmel-hlcdc: make fbdev support really optional
  drm/nouveau: make fbdev support really optional
  drm/arc: make fbdev support really optional
  drm/armada: make fbdev support really optional
  drm/omap: make fbdev support really optional
  drm/mgag200: make fbdev support really optional
  drm/cirrus: make fbdev support really optional
  drm/qxl: make fbdev support really optional
  drm/imx: make fbdev support really optional
  drm/shmobile: make fbdev support really optional
  drm/gma500: make fbdev support really optional
  drm/tilcdc: make fbdev support really optional
  drm/fsl-dcu: make fbdev support really optional
  drm/bochs: make fbdev support really optional
  drm/udl: make fbdev support really optional
  drm/virtio: make fbdev support really optional
  drm/ast: make fbdev support really optional
  drm/arm: make fbdev support really optional

Wei Yongjun (5):
  drm/vgem: Fix non static symbol warning
  drm/arc: Fix some sparse warnings
  drm/arc: Remove redundant dev_err call in arcpgu_load()
  drm/virtio: Fix non static symbol warning
  drm/rockchip: analogix_dp: add missing clk_disable_unprepare() on error

 Documentation/gpu/drm-internals.rst  |  15 

[PULL] topic/drm-misc

2016-07-14 Thread Daniel Vetter
Hi Dave,

I recovered dri-devel backlog from my vacation, more misc stuff:
- of_put_node fixes from Peter Chen (not all yet)
- more patches from Gustavo to use kms-native drm_crtc_vblank_* funcs
- docs sphinxification from Lukas Wunner
- bunch of fixes all over from Dan Carpenter
- more follow up work from Chris register/unregister rework in various
  places
- vgem dma-buf export (for writing testcases)
- small things all over from tons of different people

This is just the delta against the previous pull request, pls take them
both.

Cheers, Daniel


The following changes since commit 2a3467063ae3b17264578626dec2377dd48cd1c3:

  Merge tag 'mediatek-drm-2016-06-20' of git://git.pengutronix.de/git/pza/linux 
into drm-next (2016-06-24 13:16:07 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-07-14

for you to fetch changes up to 01d3434a565ada5ca084c68ec1e087ada5a7b157:

  drm: Don't overwrite user ioctl arg unless requested (2016-07-14 10:12:50 
+0200)


Alexey Khoroshilov (1):
  drm_aux-dev: fix error handling in drm_dp_aux_dev_init()

Benjamin Herrenschmidt (1):
  drm: Fix broken use of _PAGE_NO_CACHE on powerpc

Bhaktipriya Shridhar (1):
  drm/qxl: Remove deprecated create_singlethread_workqueue

Chris Wilson (8):
  drm/vgem: Fix mmaping
  drm/vgem: Enable dmabuf interface for export
  drm: Unexport drm_connector_register_all()
  drm: Do a full device unregister when unplugging
  drm/udl: Unplugging a device now unregisters it
  drm: Restore double clflush on the last partial cacheline
  drm/vgem: Use PAGE_KERNEL in place of x86-specific PAGE_KERNEL_IO
  drm: Don't overwrite user ioctl arg unless requested

Dan Carpenter (3):
  drm/mediatek/mtk_mipi_tx: checking the wrong variable
  qxl: check for kmap failures
  qxl: silence uninitialized variable warning

Daniel Vetter (1):
  drm: Resurrect atomic rmfb code

Frank Binns (2):
  drm: fix some spelling mistakes
  drm/vmwgfx: Stop checking minor type directly

Gustavo Padovan (8):
  drm: make drm_vblank_count_and_time() static
  drm/armada: use drm_crtc_handle_vblank()
  drm/atmel: use drm_crtc_handle_vblank()
  drm/nouveau: use drm_crtc_handle_vblank()
  drm/rcar-du: use drm_crtc_handle_vblank()
  drm/tilcdc: use drm_crtc_handle_vblank()
  MAINTAINERS: add entry for the Sync File Framework
  dma-buf/sync_file: improve Kconfig description for Sync Files

Lukas Wunner (16):
  drm/nouveau: Don't leak runtime pm ref on driver unload
  drm/nouveau: Forbid runtime pm on driver unload
  drm/radeon: Don't leak runtime pm ref on driver unload
  drm/radeon: Don't leak runtime pm ref on driver load
  drm/radeon: Forbid runtime pm on driver unload
  drm/amdgpu: Don't leak runtime pm ref on driver unload
  drm/amdgpu: Don't leak runtime pm ref on driver load
  drm/amdgpu: Forbid runtime pm on driver unload
  drm: Add helpers to turn off CRTCs
  drm/nouveau: Turn off CRTCs on driver unload
  drm/radeon: Turn off CRTCs on driver unload
  drm/amdgpu: Turn off CRTCs on driver unload
  drm: Use helper to turn off CRTC
  drm/i2c/ch7006: Use helper to turn off CRTC
  drm/nouveau/dispnv04: Use helper to turn off CRTC
  vga_switcheroo: Sphinxify docs

Masanari Iida (1):
  drm: Fix a typo in drm_ioctl.c

Michel Dänzer (1):
  drm: Only handle _DRM_VBLANK_NEXTONMISS once

Peter Chen (5):
  gpu: drm: sti_compositor: add missing of_node_put after calling 
of_parse_phandle
  gpu: drm: sti_vdo: add missing of_node_put after calling of_parse_phandle
  gpu: drm: sti_hqvdp: add missing of_node_put after calling 
of_parse_phandle
  gpu: drm: sti_vtg: add missing of_node_put after calling of_parse_phandle
  gpu: drm: rockchip_drm_drv: add missing of_node_put after calling 
of_parse_phandle

Thierry Reding (2):
  drm/qxl: Remove dead code
  drm/dsi: Make set_tear_scanline command consistent

Tobias Jakobi (1):
  drm/exynos: make fbdev support really optional

Xinliang Liu (1):
  drm/hisilicon: Fix ADE vblank on/off handling

 Documentation/gpu/drm-internals.rst |   4 +-
 Documentation/gpu/vga-switcheroo.rst|   8 +-
 MAINTAINERS |  11 ++
 drivers/dma-buf/Kconfig |  15 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c  |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c |  12 +-
 drivers/gpu/drm/armada/armada_crtc.c|   2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c  |   2 +-
 drivers/gpu/drm/drm_atomic.c|  66 +++
 drivers/gpu/drm/drm_cache.c |   1 +
 drivers/gpu/drm/drm_crtc.c  |  78 +---
 drivers/gpu/drm/drm_crtc_internal.h |   1 +
 drivers/gpu/drm/drm_dp_aux_dev.c

[PULL] topic/drm-misc

2016-07-11 Thread Daniel Vetter
Hi Dave,

Just flushing out drm-misc for the merge window:
- rpm fixes from Lukas that I promised to merge and dropped the ball until
  he pinged me.
- misc trivial patches Jani picked up.

I haven't recovered mail backlog yet, so no idea what's hiding still ;-)

Cheers, Daniel


The following changes since commit 2a3467063ae3b17264578626dec2377dd48cd1c3:

  Merge tag 'mediatek-drm-2016-06-20' of git://git.pengutronix.de/git/pza/linux 
into drm-next (2016-06-24 13:16:07 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-07-11

for you to fetch changes up to 2ae995887830b335f9bdab3040018071da54bcdb:

  drm: Fix a typo in drm_ioctl.c (2016-06-30 12:04:44 +0300)


Frank Binns (1):
  drm: fix some spelling mistakes

Lukas Wunner (15):
  drm/nouveau: Don't leak runtime pm ref on driver unload
  drm/nouveau: Forbid runtime pm on driver unload
  drm/radeon: Don't leak runtime pm ref on driver unload
  drm/radeon: Don't leak runtime pm ref on driver load
  drm/radeon: Forbid runtime pm on driver unload
  drm/amdgpu: Don't leak runtime pm ref on driver unload
  drm/amdgpu: Don't leak runtime pm ref on driver load
  drm/amdgpu: Forbid runtime pm on driver unload
  drm: Add helpers to turn off CRTCs
  drm/nouveau: Turn off CRTCs on driver unload
  drm/radeon: Turn off CRTCs on driver unload
  drm/amdgpu: Turn off CRTCs on driver unload
  drm: Use helper to turn off CRTC
  drm/i2c/ch7006: Use helper to turn off CRTC
  drm/nouveau/dispnv04: Use helper to turn off CRTC

Masanari Iida (1):
  drm: Fix a typo in drm_ioctl.c

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c| 12 +--
 drivers/gpu/drm/drm_crtc.c | 53 ++
 drivers/gpu/drm/drm_ioctl.c|  2 +-
 drivers/gpu/drm/drm_irq.c  |  4 +--
 drivers/gpu/drm/i2c/ch7006_drv.c   |  9 ++---
 drivers/gpu/drm/nouveau/dispnv04/disp.c| 10 --
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c  |  9 ++---
 drivers/gpu/drm/nouveau/nouveau_display.c  |  1 +
 drivers/gpu/drm/nouveau/nouveau_drm.c  |  6 +++-
 drivers/gpu/drm/radeon/radeon_device.c |  4 +++
 drivers/gpu/drm/radeon/radeon_display.c|  1 +
 drivers/gpu/drm/radeon/radeon_kms.c|  5 ++-
 include/drm/drm_crtc.h |  2 ++
 14 files changed, 80 insertions(+), 39 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-06-22 Thread Daniel Vetter
On Wed, Jun 22, 2016 at 11:21:57AM +0200, Daniel Vetter wrote:
> Hi Dave,
> 
> Again a pile of things all over
> - Conversion to rst from docbook from Jani. Looks real pretty, and the
>   source is now actually readable (compared to horrible, horrible docbook
>   xml)! https://01.org/linuxgraphics/gfx-docs/drm/
> - device register/unregister rework from Chris, with follow-up work from
>   Benjamin. Allows more drivers to demidlayer load/unload and others to
>   remove a bit of boilerplate.
> - master/auth related cleanup, with docs
> - some dma-buf polish, merged by Sumit
> - small stuff all over (like build fixes from Arnd)
> 
> Group maintainership seems to slowly take off, with both Thierry and Sumit
> pushing a few things. No hiccups thus far.
> 
> I'll be on vacation starting this Fri for two weeks, so pls take a look
> right away in case I need to fix up something. Thierry agreed to merge the
> oddball patches and if needed also try to send a pull request. So all
> covered. Pending stuff:
> - delayed fbdev init from Thierry
> - pixel format rework from Laurent
> - zpos from Benjamin
> 
> There's a small conflict with the arm tree and Benjamin's sti init rework.
> 
> I'd also like to backmerge this to drm-intel before I head off, so that
> Chris can move the i915 demidlayering forward.

Updated pull request.
-Daniel

The following changes since commit a0877f52035280370707bdefeddc6faa6478b892:

  Merge tag 'topic/drm-misc-2016-06-15' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-06-16 05:49:32 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-22-updated

for you to fetch changes up to f510f34c12f65105146ace5561969e5003f6c007:

  drm/vc4: Remove unused connector (2016-06-22 12:41:47 +0200)


Arnd Bergmann (2):
  drm: rockchip: select DRM_GEM_CMA_HELPER
  drm/mediatek: Remove IOMMU_DMA select

Benjamin Gaignard (3):
  drm: Add callbacks for late registering
  drm: sti: use late_register and early_unregister callbacks
  drm: sti: rework init sequence

Chris Wilson (22):
  drm: Export drm_dev_init() for subclassing
  drm: Add a callback from connector registering
  drm: Make drm_connector_register() safe against multiple calls
  drm: Automatically unregister the connector during cleanup
  drm: Pass the drm_dp_aux->hw_mutex to i2c for its locking
  drm: Minimally initialise drm_dp_aux
  drm: Automatically register/unregister all connectors
  drm: Protect drm_connector_register_all() under DRIVER_MODESET
  drm/i915: Move intel_connector->unregister to connector->early_unregister
  drm/i915: Move backlight unregistration to connector unregistration
  drm/i915: Avoid use-after-free of intel_encoder in 
intel_dp_connector_destrpy
  drm: Prevent NULL deref in drm_name_info()
  drm/arc: Remove redundant calls to drm_connector_register_all()
  drm/atmel-hlcdc: Remove redundant calls to drm_connector_register_all()
  drm/hisilicon: Remove redundant calls to drm_connector_register_all()
  drm/mediatek: Remove redundant calls to drm_connector_register_all()
  drm/msm: Remove redundant calls to drm_connector_register_all()
  drm/rcar-du: Remove redundant calls to drm_connector_register_all()
  drm/atmel-hlcdc: Remove redundant call to drm_connector_unregister_all()
  drm/vc4: Remove open-coded drm_connector_register_all()
  drm/sun4i: Remove open-coded drm_connector_register_all()
  drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference

Daniel Vetter (27):
  drm: Nuke legacy maps debugfs files
  drm: Hide hw.lock cleanup in filp->release better
  drm: Link directly from drm_master to drm_device
  drm: Move master functions into drm_auth.c
  drm: Extract drm_master_open
  drm: Extract drm_master_relase
  drm/sti: Don't call drm_helper_disable_unused_functions
  drm: Only do the hw.lock cleanup in master_relase for !MODESET
  drm: Move authmagic cleanup into drm_master_release
  drm: Protect authmagic with master_mutex
  drm: Mark authmagic ioctls as unlocked
  drm: Mark set/drop master ioctl as unlocked.
  drm/omapdrm: don't call drm_helper_disable_unused_functions
  drm/crtc-helper: disable_unused_functions really isn't for atomic
  drm/amdkfd: Clean up inline handling
  drm: Move master pointer from drm_minor to drm_device
  drm: Clean up drm_crtc.h
  drm: Use dev->name as fallback for dev->unique
  drm/vgem: Stop calling drm_drv_set_unique
  drm: Don't call drm_dev_set_unique from platform drivers
  drm: Nuke SET_UNIQUE ioctl
  drm: Lobotomize set_busid nonsense for !pci drivers
  drm: Refactor drop/set master code a bit
  drm: Extract drm_is_current_master
  drm: Clear up master tracking booleans
  drm: document drm_auth.c
  drm/vc4: Remove 

[PULL] topic/drm-misc

2016-06-22 Thread Daniel Vetter
On Wed, Jun 22, 2016 at 11:21:57AM +0200, Daniel Vetter wrote:
> Hi Dave,
> 
> Again a pile of things all over
> - Conversion to rst from docbook from Jani. Looks real pretty, and the
>   source is now actually readable (compared to horrible, horrible docbook
>   xml)! https://01.org/linuxgraphics/gfx-docs/drm/
> - device register/unregister rework from Chris, with follow-up work from
>   Benjamin. Allows more drivers to demidlayer load/unload and others to
>   remove a bit of boilerplate.
> - master/auth related cleanup, with docs
> - some dma-buf polish, merged by Sumit
> - small stuff all over (like build fixes from Arnd)
> 
> Group maintainership seems to slowly take off, with both Thierry and Sumit
> pushing a few things. No hiccups thus far.
> 
> I'll be on vacation starting this Fri for two weeks, so pls take a look
> right away in case I need to fix up something. Thierry agreed to merge the
> oddball patches and if needed also try to send a pull request. So all
> covered. Pending stuff:
> - delayed fbdev init from Thierry
> - pixel format rework from Laurent
> - zpos from Benjamin
> 
> There's a small conflict with the arm tree and Benjamin's sti init rework.
> 
> I'd also like to backmerge this to drm-intel before I head off, so that
> Chris can move the i915 demidlayering forward.

ofc right when I hit send 0day reports the gcc warning I failed to spot.
Will respin with a fixup patch on top.
-Daniel

> 
> Cheers, Daniel
> 
> 
> The following changes since commit a0877f52035280370707bdefeddc6faa6478b892:
> 
>   Merge tag 'topic/drm-misc-2016-06-15' of 
> git://anongit.freedesktop.org/drm-intel into drm-next (2016-06-16 05:49:32 
> +1000)
> 
> are available in the git repository at:
> 
>   git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-22
> 
> for you to fetch changes up to fa7d81bb3c269a2ee38b6e4d569d9eb8be1a78ad:
> 
>   drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference (2016-06-22 
> 10:07:28 +0200)
> 
> 
> Arnd Bergmann (2):
>   drm: rockchip: select DRM_GEM_CMA_HELPER
>   drm/mediatek: Remove IOMMU_DMA select
> 
> Benjamin Gaignard (3):
>   drm: Add callbacks for late registering
>   drm: sti: use late_register and early_unregister callbacks
>   drm: sti: rework init sequence
> 
> Chris Wilson (22):
>   drm: Export drm_dev_init() for subclassing
>   drm: Add a callback from connector registering
>   drm: Make drm_connector_register() safe against multiple calls
>   drm: Automatically unregister the connector during cleanup
>   drm: Pass the drm_dp_aux->hw_mutex to i2c for its locking
>   drm: Minimally initialise drm_dp_aux
>   drm: Automatically register/unregister all connectors
>   drm: Protect drm_connector_register_all() under DRIVER_MODESET
>   drm/i915: Move intel_connector->unregister to 
> connector->early_unregister
>   drm/i915: Move backlight unregistration to connector unregistration
>   drm/i915: Avoid use-after-free of intel_encoder in 
> intel_dp_connector_destrpy
>   drm: Prevent NULL deref in drm_name_info()
>   drm/arc: Remove redundant calls to drm_connector_register_all()
>   drm/atmel-hlcdc: Remove redundant calls to drm_connector_register_all()
>   drm/hisilicon: Remove redundant calls to drm_connector_register_all()
>   drm/mediatek: Remove redundant calls to drm_connector_register_all()
>   drm/msm: Remove redundant calls to drm_connector_register_all()
>   drm/rcar-du: Remove redundant calls to drm_connector_register_all()
>   drm/atmel-hlcdc: Remove redundant call to drm_connector_unregister_all()
>   drm/vc4: Remove open-coded drm_connector_register_all()
>   drm/sun4i: Remove open-coded drm_connector_register_all()
>   drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference
> 
> Daniel Vetter (26):
>   drm: Nuke legacy maps debugfs files
>   drm: Hide hw.lock cleanup in filp->release better
>   drm: Link directly from drm_master to drm_device
>   drm: Move master functions into drm_auth.c
>   drm: Extract drm_master_open
>   drm: Extract drm_master_relase
>   drm/sti: Don't call drm_helper_disable_unused_functions
>   drm: Only do the hw.lock cleanup in master_relase for !MODESET
>   drm: Move authmagic cleanup into drm_master_release
>   drm: Protect authmagic with master_mutex
>   drm: Mark authmagic ioctls as unlocked
>   drm: Mark set/drop master ioctl as unlocked.
>   drm/omapdrm: don't call drm_helper_disable_unused_functions
>   drm/crtc-helper: disable_unused_functions really isn't for atomic
>   drm/amdkfd: Clean up inline handling
>   drm: Move master pointer from drm_minor to drm_device
>   drm: Clean up drm_crtc.h
>   drm: Use dev->name as fallback for dev->unique
>   drm/vgem: Stop calling drm_drv_set_unique
>   drm: Don't call drm_dev_set_unique from platform 

[PULL] topic/drm-misc

2016-06-22 Thread Daniel Vetter
Hi Dave,

Again a pile of things all over
- Conversion to rst from docbook from Jani. Looks real pretty, and the
  source is now actually readable (compared to horrible, horrible docbook
  xml)! https://01.org/linuxgraphics/gfx-docs/drm/
- device register/unregister rework from Chris, with follow-up work from
  Benjamin. Allows more drivers to demidlayer load/unload and others to
  remove a bit of boilerplate.
- master/auth related cleanup, with docs
- some dma-buf polish, merged by Sumit
- small stuff all over (like build fixes from Arnd)

Group maintainership seems to slowly take off, with both Thierry and Sumit
pushing a few things. No hiccups thus far.

I'll be on vacation starting this Fri for two weeks, so pls take a look
right away in case I need to fix up something. Thierry agreed to merge the
oddball patches and if needed also try to send a pull request. So all
covered. Pending stuff:
- delayed fbdev init from Thierry
- pixel format rework from Laurent
- zpos from Benjamin

There's a small conflict with the arm tree and Benjamin's sti init rework.

I'd also like to backmerge this to drm-intel before I head off, so that
Chris can move the i915 demidlayering forward.

Cheers, Daniel


The following changes since commit a0877f52035280370707bdefeddc6faa6478b892:

  Merge tag 'topic/drm-misc-2016-06-15' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-06-16 05:49:32 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-22

for you to fetch changes up to fa7d81bb3c269a2ee38b6e4d569d9eb8be1a78ad:

  drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference (2016-06-22 
10:07:28 +0200)


Arnd Bergmann (2):
  drm: rockchip: select DRM_GEM_CMA_HELPER
  drm/mediatek: Remove IOMMU_DMA select

Benjamin Gaignard (3):
  drm: Add callbacks for late registering
  drm: sti: use late_register and early_unregister callbacks
  drm: sti: rework init sequence

Chris Wilson (22):
  drm: Export drm_dev_init() for subclassing
  drm: Add a callback from connector registering
  drm: Make drm_connector_register() safe against multiple calls
  drm: Automatically unregister the connector during cleanup
  drm: Pass the drm_dp_aux->hw_mutex to i2c for its locking
  drm: Minimally initialise drm_dp_aux
  drm: Automatically register/unregister all connectors
  drm: Protect drm_connector_register_all() under DRIVER_MODESET
  drm/i915: Move intel_connector->unregister to connector->early_unregister
  drm/i915: Move backlight unregistration to connector unregistration
  drm/i915: Avoid use-after-free of intel_encoder in 
intel_dp_connector_destrpy
  drm: Prevent NULL deref in drm_name_info()
  drm/arc: Remove redundant calls to drm_connector_register_all()
  drm/atmel-hlcdc: Remove redundant calls to drm_connector_register_all()
  drm/hisilicon: Remove redundant calls to drm_connector_register_all()
  drm/mediatek: Remove redundant calls to drm_connector_register_all()
  drm/msm: Remove redundant calls to drm_connector_register_all()
  drm/rcar-du: Remove redundant calls to drm_connector_register_all()
  drm/atmel-hlcdc: Remove redundant call to drm_connector_unregister_all()
  drm/vc4: Remove open-coded drm_connector_register_all()
  drm/sun4i: Remove open-coded drm_connector_register_all()
  drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference

Daniel Vetter (26):
  drm: Nuke legacy maps debugfs files
  drm: Hide hw.lock cleanup in filp->release better
  drm: Link directly from drm_master to drm_device
  drm: Move master functions into drm_auth.c
  drm: Extract drm_master_open
  drm: Extract drm_master_relase
  drm/sti: Don't call drm_helper_disable_unused_functions
  drm: Only do the hw.lock cleanup in master_relase for !MODESET
  drm: Move authmagic cleanup into drm_master_release
  drm: Protect authmagic with master_mutex
  drm: Mark authmagic ioctls as unlocked
  drm: Mark set/drop master ioctl as unlocked.
  drm/omapdrm: don't call drm_helper_disable_unused_functions
  drm/crtc-helper: disable_unused_functions really isn't for atomic
  drm/amdkfd: Clean up inline handling
  drm: Move master pointer from drm_minor to drm_device
  drm: Clean up drm_crtc.h
  drm: Use dev->name as fallback for dev->unique
  drm/vgem: Stop calling drm_drv_set_unique
  drm: Don't call drm_dev_set_unique from platform drivers
  drm: Nuke SET_UNIQUE ioctl
  drm: Lobotomize set_busid nonsense for !pci drivers
  drm: Refactor drop/set master code a bit
  drm: Extract drm_is_current_master
  drm: Clear up master tracking booleans
  drm: document drm_auth.c

Jani Nikula (7):
  Documentation/gpu: add new gpu.rst converted from DocBook gpu.tmpl
  Documentation/gpu: split up the gpu 

[PULL] topic/drm-misc

2016-06-15 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 11:48:31PM +0200, Daniel Vetter wrote:
> Hi Dave,
> 
> More misc stuff all over:
> - best_encoder cleanup from Boris.
> - drm_simple_display_pipe helpers from Noralf. Looks really neat imo, and
>   there's 2-3 in-flight drivers which look like they could/should use it.
>   Anyway, with this we have now helpers and everything in place to write
>   drivers for simple hw with fewer complexity in the driver than what
>   fbdev would need. That was the last complaint I've heard from embedded
>   folks after we made atomic happen. Mission accomplished!
> - nonblocking commit helpers for atomic, plus a bunch of driver patches
>   for that.
> - Prep patch from Laurent for cleaned up pixel format functions. 
> - More of Gustavo's cleanup for drm vblank functions.
> - and a few oddball things in between
> 
> Plus the merge of docs-next to prep the docbook->sphinx conversion as
> discussed. Jon cc'ed as fyi.
> 
> A bit much for -misc, but I also thinks that's it with bigger core stuff
> for 4.8, it should all be much calmer. Only things outstanding:
> - Thierry is working on a small series to make delayed fbdev setup (to
>   handle armsoc init ordering fun with componentized drivers better)
>   generic, and nuke the driver copypasta.
> - Laurent has some pixel format cleanup, not sure when that'll be ready,
>   but also small.
> - fences for atomic, but looks like the userspace (hwc) is a hold-up
>   because google doesn't want to release it early. oh well. Maybe a bit
>   more prep work from Gustavo in that area ...
> 
> Oh and this pull contains one patch committed by Thierry, we're starting
> to play around with group maintainership and what makes sense and what
> not. If it does make sense, then longer-term I think we'll create a new
> drm-misc.git for it.

Updated pull request below, actually looks correct this time around.

Cheers, Daniel

The following changes since commit 3c85f20a289d044f303f473ee6ab7502303fc3b0:

  Merge tag 'omapdrm-4.8' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
(2016-06-09 12:20:11 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-15

for you to fetch changes up to 7deef7f1ae5d0bf98c1ec9eb4bc87b29478c2adb:

  drm/atomic-helpers: Clear up cleanup_done a bit (2016-06-15 17:25:36 +0200)


Andy Deng (1):
  Documentation/zh_CN: update Chinese version CodingStyle

Boris Brezillon (19):
  drm: mediatek: Rely on the default ->best_encoder() behavior
  drm: msm: Rely on the default ->best_encoder() behavior where appropriate
  drm: sti: Rely on the default ->best_encoder() behavior
  drm: arc: Rely on the default ->best_encoder() behavior
  drm: atmel-hlcdc: Rely on the default ->best_encoder() behavior
  drm: exynos: Rely on the default ->best_encoder() behavior
  drm: fsl-dcu: Rely on the default ->best_encoder() behavior
  drm: rcar-du: Rely on the default ->best_encoder() behavior
  drm: rockchip: Rely on the default ->best_encoder() behavior
  drm: sun4i: Rely on the default ->best_encoder() behavior
  drm: tegra: Rely on the default ->best_encoder() behavior
  drm: vc4: Rely on the default ->best_encoder() behavior
  drm: virtgpu: Rely on the default ->best_encoder() behavior
  drm: omap: Rely on the default ->best_encoder() behavior
  drm/bridge: anx78xx: Rely on the default ->best_encoder() behavior
  drm/bridge: ptn3460: Rely on the default ->best_encoder() behavior
  drm/bridge: ps8622: Rely on the default ->best_encoder() behavior
  drm/bridge: dw-hdmi: Use drm_atomic_helper_best_encoder()
  drm: i915: Rely on the default ->best_encoder() behavior where appropriate

Brian Norris (2):
  doc: clarify that trace_events= takes a comma-separated list
  drm/rockchip: fix compile warnings for 64-bit

Daniel Vetter (28):
  doc/sphinx: Pass right filename as source
  scripts/kernel-doc: Remove duplicated DOC: start handling
  doc/sphinx: Stop touching state_machine internals
  scripts/kernel-doc: Also give functions symbolic names
  scripts/kernel-doc: Add option to inject line numbers
  doc/sphinx: Track line-number of starting blocks
  drm/atomic-helper: Annotate a bunch more RETURNS: sections
  drm: Replace fb_helper->atomic with mode_config->atomic_commit
  drm/arc: Nuke event_list
  drm/fsl-du: Implement some semblance of vblank event handling
  drm/hisilicon: Implement some semblance of vblank event handling
  drm/atomic: kerneldoc for drm_atomic_crtc_needs_modeset
  drm/atomic-helper: Massage swap_state signature somewhat
  drm/arc: Actually bother with handling atomic events.
  drm/sun4i: Implement some semblance of vblank event handling
  drm/atomic: Add struct drm_crtc_commit to track async updates
  drm/atomic-helper: roll out commit 

[PULL] topic/drm-misc

2016-06-15 Thread Daniel Vetter
On Tue, Jun 14, 2016 at 11:48:31PM +0200, Daniel Vetter wrote:
> Hi Dave,
> 
> More misc stuff all over:
> - best_encoder cleanup from Boris.
> - drm_simple_display_pipe helpers from Noralf. Looks really neat imo, and
>   there's 2-3 in-flight drivers which look like they could/should use it.
>   Anyway, with this we have now helpers and everything in place to write
>   drivers for simple hw with fewer complexity in the driver than what
>   fbdev would need. That was the last complaint I've heard from embedded
>   folks after we made atomic happen. Mission accomplished!
> - nonblocking commit helpers for atomic, plus a bunch of driver patches
>   for that.
> - Prep patch from Laurent for cleaned up pixel format functions. 
> - More of Gustavo's cleanup for drm vblank functions.
> - and a few oddball things in between
> 
> Plus the merge of docs-next to prep the docbook->sphinx conversion as
> discussed. Jon cc'ed as fyi.
> 
> A bit much for -misc, but I also thinks that's it with bigger core stuff
> for 4.8, it should all be much calmer. Only things outstanding:
> - Thierry is working on a small series to make delayed fbdev setup (to
>   handle armsoc init ordering fun with componentized drivers better)
>   generic, and nuke the driver copypasta.
> - Laurent has some pixel format cleanup, not sure when that'll be ready,
>   but also small.
> - fences for atomic, but looks like the userspace (hwc) is a hold-up
>   because google doesn't want to release it early. oh well. Maybe a bit
>   more prep work from Gustavo in that area ...
> 
> Oh and this pull contains one patch committed by Thierry, we're starting
> to play around with group maintainership and what makes sense and what
> not. If it does make sense, then longer-term I think we'll create a new
> drm-misc.git for it.

Argh, just realized that I tagged this before the docs-next merge. Will
regenrate the pull request since I'd like that included.
-Daniel

> 
> Cheers, Daniel
> 
> 
> The following changes since commit 3c85f20a289d044f303f473ee6ab7502303fc3b0:
> 
>   Merge tag 'omapdrm-4.8' of 
> git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
> (2016-06-09 12:20:11 +1000)
> 
> are available in the git repository at:
> 
>   git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-14
> 
> for you to fetch changes up to 0d841ac0ec213f70ab59d65129e80f229846fadf:
> 
>   drm/virtio: Don't reinvent a flipping wheel (2016-06-14 16:32:47 +0200)
> 
> 
> Boris Brezillon (19):
>   drm: mediatek: Rely on the default ->best_encoder() behavior
>   drm: msm: Rely on the default ->best_encoder() behavior where 
> appropriate
>   drm: sti: Rely on the default ->best_encoder() behavior
>   drm: arc: Rely on the default ->best_encoder() behavior
>   drm: atmel-hlcdc: Rely on the default ->best_encoder() behavior
>   drm: exynos: Rely on the default ->best_encoder() behavior
>   drm: fsl-dcu: Rely on the default ->best_encoder() behavior
>   drm: rcar-du: Rely on the default ->best_encoder() behavior
>   drm: rockchip: Rely on the default ->best_encoder() behavior
>   drm: sun4i: Rely on the default ->best_encoder() behavior
>   drm: tegra: Rely on the default ->best_encoder() behavior
>   drm: vc4: Rely on the default ->best_encoder() behavior
>   drm: virtgpu: Rely on the default ->best_encoder() behavior
>   drm: omap: Rely on the default ->best_encoder() behavior
>   drm/bridge: anx78xx: Rely on the default ->best_encoder() behavior
>   drm/bridge: ptn3460: Rely on the default ->best_encoder() behavior
>   drm/bridge: ps8622: Rely on the default ->best_encoder() behavior
>   drm/bridge: dw-hdmi: Use drm_atomic_helper_best_encoder()
>   drm: i915: Rely on the default ->best_encoder() behavior where 
> appropriate
> 
> Brian Norris (1):
>   drm/rockchip: fix compile warnings for 64-bit
> 
> Daniel Vetter (19):
>   drm/atomic-helper: Annotate a bunch more RETURNS: sections
>   drm: Replace fb_helper->atomic with mode_config->atomic_commit
>   drm/arc: Nuke event_list
>   drm/fsl-du: Implement some semblance of vblank event handling
>   drm/hisilicon: Implement some semblance of vblank event handling
>   drm/atomic: kerneldoc for drm_atomic_crtc_needs_modeset
>   drm/atomic-helper: Massage swap_state signature somewhat
>   drm/arc: Actually bother with handling atomic events.
>   drm/sun4i: Implement some semblance of vblank event handling
>   drm/atomic: Add struct drm_crtc_commit to track async updates
>   drm/atomic-helper: roll out commit synchronization
>   drm/atomic-helper: nonblocking commit support
>   drm/arc: Implement nonblocking commit correctly
>   drm/hdlcd: Use helper support for nonblocking commits
>   drm/rockchip: Disarm vop->is_enabled
>   drm/rockchip: Fix crtc_state->event signalling
>   drm/rockchip: 

[PULL] topic/drm-misc

2016-06-15 Thread Daniel Vetter
Hi Dave,

More misc stuff all over:
- best_encoder cleanup from Boris.
- drm_simple_display_pipe helpers from Noralf. Looks really neat imo, and
  there's 2-3 in-flight drivers which look like they could/should use it.
  Anyway, with this we have now helpers and everything in place to write
  drivers for simple hw with fewer complexity in the driver than what
  fbdev would need. That was the last complaint I've heard from embedded
  folks after we made atomic happen. Mission accomplished!
- nonblocking commit helpers for atomic, plus a bunch of driver patches
  for that.
- Prep patch from Laurent for cleaned up pixel format functions. 
- More of Gustavo's cleanup for drm vblank functions.
- and a few oddball things in between

Plus the merge of docs-next to prep the docbook->sphinx conversion as
discussed. Jon cc'ed as fyi.

A bit much for -misc, but I also thinks that's it with bigger core stuff
for 4.8, it should all be much calmer. Only things outstanding:
- Thierry is working on a small series to make delayed fbdev setup (to
  handle armsoc init ordering fun with componentized drivers better)
  generic, and nuke the driver copypasta.
- Laurent has some pixel format cleanup, not sure when that'll be ready,
  but also small.
- fences for atomic, but looks like the userspace (hwc) is a hold-up
  because google doesn't want to release it early. oh well. Maybe a bit
  more prep work from Gustavo in that area ...

Oh and this pull contains one patch committed by Thierry, we're starting
to play around with group maintainership and what makes sense and what
not. If it does make sense, then longer-term I think we'll create a new
drm-misc.git for it.

Cheers, Daniel


The following changes since commit 3c85f20a289d044f303f473ee6ab7502303fc3b0:

  Merge tag 'omapdrm-4.8' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
(2016-06-09 12:20:11 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-14

for you to fetch changes up to 0d841ac0ec213f70ab59d65129e80f229846fadf:

  drm/virtio: Don't reinvent a flipping wheel (2016-06-14 16:32:47 +0200)


Boris Brezillon (19):
  drm: mediatek: Rely on the default ->best_encoder() behavior
  drm: msm: Rely on the default ->best_encoder() behavior where appropriate
  drm: sti: Rely on the default ->best_encoder() behavior
  drm: arc: Rely on the default ->best_encoder() behavior
  drm: atmel-hlcdc: Rely on the default ->best_encoder() behavior
  drm: exynos: Rely on the default ->best_encoder() behavior
  drm: fsl-dcu: Rely on the default ->best_encoder() behavior
  drm: rcar-du: Rely on the default ->best_encoder() behavior
  drm: rockchip: Rely on the default ->best_encoder() behavior
  drm: sun4i: Rely on the default ->best_encoder() behavior
  drm: tegra: Rely on the default ->best_encoder() behavior
  drm: vc4: Rely on the default ->best_encoder() behavior
  drm: virtgpu: Rely on the default ->best_encoder() behavior
  drm: omap: Rely on the default ->best_encoder() behavior
  drm/bridge: anx78xx: Rely on the default ->best_encoder() behavior
  drm/bridge: ptn3460: Rely on the default ->best_encoder() behavior
  drm/bridge: ps8622: Rely on the default ->best_encoder() behavior
  drm/bridge: dw-hdmi: Use drm_atomic_helper_best_encoder()
  drm: i915: Rely on the default ->best_encoder() behavior where appropriate

Brian Norris (1):
  drm/rockchip: fix compile warnings for 64-bit

Daniel Vetter (19):
  drm/atomic-helper: Annotate a bunch more RETURNS: sections
  drm: Replace fb_helper->atomic with mode_config->atomic_commit
  drm/arc: Nuke event_list
  drm/fsl-du: Implement some semblance of vblank event handling
  drm/hisilicon: Implement some semblance of vblank event handling
  drm/atomic: kerneldoc for drm_atomic_crtc_needs_modeset
  drm/atomic-helper: Massage swap_state signature somewhat
  drm/arc: Actually bother with handling atomic events.
  drm/sun4i: Implement some semblance of vblank event handling
  drm/atomic: Add struct drm_crtc_commit to track async updates
  drm/atomic-helper: roll out commit synchronization
  drm/atomic-helper: nonblocking commit support
  drm/arc: Implement nonblocking commit correctly
  drm/hdlcd: Use helper support for nonblocking commits
  drm/rockchip: Disarm vop->is_enabled
  drm/rockchip: Fix crtc_state->event signalling
  drm/rockchip: convert to helper nonblocking atomic commit
  drm/rockchip: Nuke pending event handling in preclose
  drm/virtio: Don't reinvent a flipping wheel

Gustavo Padovan (9):
  drm/nouveau: replace legacy vblank helpers
  drm: remove legacy drm_send_vblank_event()
  drm: remove legacy drm_arm_vblank_event()
  drm: make drm_vblank_{get,put}() static
  drm/amdgpu: use 

[PULL] topic/drm-misc

2016-06-07 Thread Daniel Vetter
Hi Dave,

As promised, piles of prep work all around:
- drm_atomic_state rework, prep for nonblocking commit helpers
- fence patches from Gustavo and Christian to prep for atomic fences and
  some cool work in ttm/amdgpu from Christian
- drm event prep for both nonblocking commit and atomic fences
- Gustavo seems on a crusade against the non-kms-native version of the
  vblank functions.
- prep work from Boris to nuke all the silly ->best_encoder
  implementations we have (we really only need that for truly dynamic
  cases like dvi-i vs dvi-d or dp mst selecting the right transcoder on
  intel)
- prep work from Laurent to rework the format handling functions
- and few small things all over

btw since -rc2 has drm-fixes now you can also pull in the earlier pull req
from last week from me that you delayed.

Cheers, Daniel


The following changes since commit 66fd7a66e8b9e11e49f46ea77910f935c4dee5c3:

  Merge branch 'drm-intel-next' of git://anongit.freedesktop.org/drm-intel into 
drm-next (2016-06-02 07:58:36 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-07

for you to fetch changes up to e8395081636734da19778b0446d65588a06bc40d:

  drm/dsi: Implement set tear scanline (2016-06-07 21:44:29 +0200)


Boris Brezillon (2):
  drm/atomic: Handle funcs->best_encoder == NULL case
  drm/atomic: Fix remaining places where !funcs->best_encoder is valid

Chris Wilson (2):
  drm: Only create a cmdline mode if no probed modes match
  drm: Store the plane's index

Christian König (2):
  dma-buf/fence: make fence context 64 bit v2
  dma-buf/fence: add signal_on_any to the fence array v2

Daniel Vetter (20):
  drm/atomic-helper: use for_each_*_in_state more
  drm/hdlcd: Clean up crtc hooks
  drm/i915: Use drm_atomic_get_existing_plane_state
  drm/msm: Use for_each_*_in_state
  drm/rcar-du: Use for_each_*_in_state
  drm/vc4: Use for_each_plane_in_state
  drm/omap: Use for_each_plane_in_state
  drm/exynos: Use for_each_crtc_in_state
  drm/doc: Appease sphinx
  drm/atomic: Add drm_atomic_crtc_state_for_each_plane_state
  drm: Consolidate connector arrays in drm_atomic_state
  drm: Consolidate plane arrays in drm_atomic_state
  drm: Consolidate crtc arrays in drm_atomic_state
  drm/atomic-docs: Spelling fixups
  drm/doc: Update kerneldoc for drm_crtc.h
  drm/atomic-helper: Fixup kerneldoc for drm_atomic_helper_legacy_gamma_set
  drm/doc: Improve kernel-doc for drm_fb_cma_helper.c
  drm/gpu.tmpl: Don't forget to rename the include directives, too
  drm/doc: Drop kerneldoc for static functions in drm_irq.c
  drm/doc: Switch to sphinx/rst fixed-width quoting

Gustavo Padovan (15):
  dma-buf/fence: add fence_array fences v6
  drm/fence: add fence to drm_pending_event
  dma-buf/sync_file: fix build warning with context format type
  drm/armada: use drm_crtc_send_vblank_event()
  drm/atmel: use drm_crtc_send_vblank_event()
  drm/qxl: use drm_crtc_send_vblank_event()
  drm/udl: use drm_crtc_send_vblank_event()
  drm/virtio: use drm_crtc_send_vblank_event()
  drm/amdgpu: use drm_crtc_vblank_{get,put}()
  drm/armada: use drm_crtc_vblank_{get,put}()
  drm/atmel: use drm_crtc_vblank_{get,put}()
  drm/qxl: use drm_crtc_vblank_{get,put}()
  drm/radeon: use drm_crtc_vblank_{get,put}()
  drm/shmobile: use drm_crtc_vblank_{get,put}()
  Documentation: add fence-array to kernel DocBook

Laurent Pinchart (2):
  drm/ast: Remove useless drm_fb_get_bpp_depth() call
  drm/qxl: Remove useless drm_fb_get_bpp_depth() call

Liviu Dudau (1):
  drm: Update obsolete information from {enable/disable}_vblank hooks.

Maarten Lankhorst (1):
  drm/core: Change declaration for gamma_set.

Robin Murphy (1):
  drm/fb_cma_helper: Implement fb_mmap callback

Vinay Simha BN (1):
  drm/dsi: Implement set tear scanline

 Documentation/DocBook/device-drivers.tmpl  |   2 +
 Documentation/DocBook/gpu.tmpl |   2 +-
 drivers/dma-buf/Makefile   |   2 +-
 drivers/dma-buf/fence-array.c  | 144 ++
 drivers/dma-buf/fence.c|   8 +-
 drivers/dma-buf/sync_file.c|   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu.h|   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c|   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c |   2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c |  12 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c |  12 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c  |  12 +-
 drivers/gpu/drm/arc/arcpgu_drv.c   |   2 +-
 drivers/gpu/drm/arm/hdlcd_crtc.c   |  19 ---
 drivers/gpu/drm/armada/armada_crtc.c   |  14 +--
 drivers/gpu/drm/ast/ast_fb.c   |   3 -
 

[PULL] topic/drm-misc

2016-06-01 Thread Daniel Vetter
Hi Dave,

Frist -misc pull for 4.8, with pretty much just random all over plus a few
more lockless gem BO patches acked/reviewed by driver maintainers.

I'm starting a bit earlier this time around because there's a few invasive
patch series to land (nonblocking atomic prep work, fence prep work,
rst/sphinx kerneldoc finally happening) and I need a baseline with all the
branches merged.

Cheers, Daniel


The following changes since commit a39ed680bddb1ead592e22ed812c7e47286bfc03:

  drm/edid: add displayid detailed 1 timings to the modelist. (v1.1) 
(2016-05-23 11:35:31 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-06-01

for you to fetch changes up to b82caafcf230362e2233ccf912a37face07f6d76:

  drm/vc4: Use lockless gem BO free callback (2016-05-31 21:14:02 +0200)


Daniel Vetter (13):
  drm/doc: Drop vblank_disable_allow wording
  drm/doc: Unify KMS Locking docs
  drm/hlcd: Use lockless gem BO free callback
  drm/hisilicon: Use lockless gem BO free callback
  drm/mediatek: Use lockless gem BO free callback
  drm/fb-helper: Remove dead code in setcolreg
  drm/cirrus: Drop redundnant gamma size check
  drm/msm: Nuke dummy gamma_set/get functions
  drm/qxl: Don't set a gamma table size
  drm/vgem: Use lockless gem BO free callback
  drm: Initialize a linear gamma table by default
  drm/vc4: Use drm_gem_object_unreference_unlocked
  drm/vc4: Use lockless gem BO free callback

Geert Uytterhoeven (1):
  MAINTAINERS: Add file patterns for drm device tree bindings

Gerd Hoffmann (1):
  virtio-gpu: fix output lookup

Heinrich Schuchardt (1):
  drm/mm: avoid possible null pointer dereference

Liu Ying (1):
  drm/atomic-helper: Do not call ->mode_fixup for CRTC which will be 
disabled

Lukas Wunner (2):
  vga_switcheroo: Add helper for deferred probing
  vga_switcheroo: Support deferred probing of audio clients

Matthew Auld (1):
  drm: use seqlock for vblank time/count

Valdis Kletnieks (1):
  Fix annoyingly awkward typo in drm_edid_load.c

 Documentation/DocBook/gpu.tmpl  | 25 +--
 MAINTAINERS |  3 +
 drivers/gpu/drm/arm/hdlcd_drv.c |  2 +-
 drivers/gpu/drm/cirrus/cirrus_mode.c|  3 -
 drivers/gpu/drm/drm_atomic_helper.c |  3 +
 drivers/gpu/drm/drm_crtc.c  | 13 
 drivers/gpu/drm/drm_edid_load.c |  2 +-
 drivers/gpu/drm/drm_fb_helper.c | 33 +
 drivers/gpu/drm/drm_irq.c   | 90 -
 drivers/gpu/drm/drm_mm.c|  4 +-
 drivers/gpu/drm/drm_modeset_lock.c  | 11 ++-
 drivers/gpu/drm/gma500/psb_intel_display.c  |  7 --
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c |  2 +-
 drivers/gpu/drm/i915/i915_drv.c | 10 +--
 drivers/gpu/drm/mediatek/mtk_drm_drv.c  |  2 +-
 drivers/gpu/drm/msm/msm_fbdev.c | 14 
 drivers/gpu/drm/nouveau/nouveau_drm.c   | 10 +--
 drivers/gpu/drm/qxl/qxl_display.c   |  1 -
 drivers/gpu/drm/radeon/radeon_drv.c | 10 +--
 drivers/gpu/drm/vc4/vc4_bo.c|  2 -
 drivers/gpu/drm/vc4/vc4_drv.c   |  2 +-
 drivers/gpu/drm/vc4/vc4_gem.c   | 11 +--
 drivers/gpu/drm/vgem/vgem_drv.c |  2 +-
 drivers/gpu/drm/virtio/virtgpu_plane.c  |  8 ++-
 drivers/gpu/vga/vga_switcheroo.c| 34 +-
 include/drm/drmP.h  | 14 ++--
 include/linux/vga_switcheroo.h  |  2 +
 27 files changed, 104 insertions(+), 216 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-05-18 Thread Daniel Vetter
Hi Dave,

Update drm-misc pull with a few more fixes included, plus the two from
Arnd for the fallout from the drm_gem_object_lookup() refactor that I
failed to spot :(

Cheers, Daniel


The following changes since commit 99ee87295017e36abb6925e6139ca303cb55aee7:

  Merge tag 'topic/drm-misc-2016-05-13' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-05-17 07:06:14 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-05-18

for you to fetch changes up to c6740c9c9e914742fd2ec159142c40701f7df966:

  drm: remove unused dev variables (2016-05-18 19:16:24 +0200)


Arnd Bergmann (2):
  drm: mediatek: fixup drm_gem_object_lookup API change
  drm: remove unused dev variables

Chris Wilson (2):
  drm: Remove unused drm_device from drm_gem_object_lookup()
  drm: Avoid connector reference imbalance on error path

Dan Carpenter (1):
  drm/exynos/hdmi: add a missing tab

Daniel Vetter (4):
  drm: Drop crtc argument from __drm_atomic_helper_crtc_destroy_state
  drm: Drop plane argument from __drm_atomic_helper_plane_destroy_state
  drm: Drop connector argument from 
__drm_atomic_helper_connector_destroy_state
  drm: Fix error handling in drm_connector_register

Gerd Hoffmann (1):
  qxl: catch qxlfb_create_pinned_object failures

Jon Hunter (1):
  drm/tegra: Fix crash caused by reference count imbalance

Lyude (2):
  drm/i915/fbdev: Fix num_connector references in intel_fb_initial_config()
  drm/fb_helper: Fix references to dev->mode_config.num_connector

Noralf Trønnes (2):
  drm/fb-cma-helper: Use const for drm_framebuffer_funcs argument
  drm/fb-cma-helper: Add function drm_fb_cma_create_with_funcs()

 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |  3 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 10 +++
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c  |  2 +-
 drivers/gpu/drm/armada/armada_crtc.c   |  3 +--
 drivers/gpu/drm/armada/armada_fb.c |  2 +-
 drivers/gpu/drm/armada/armada_gem.c|  6 ++---
 drivers/gpu/drm/armada/armada_gem.h|  4 +--
 drivers/gpu/drm/ast/ast_main.c |  4 +--
 drivers/gpu/drm/ast/ast_mode.c |  2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |  2 +-
 drivers/gpu/drm/bochs/bochs_mm.c   |  4 +--
 drivers/gpu/drm/cirrus/cirrus_main.c   |  4 +--
 drivers/gpu/drm/drm_atomic.c   | 20 +++---
 drivers/gpu/drm/drm_atomic_helper.c| 25 +++--
 drivers/gpu/drm/drm_crtc.c |  4 +--
 drivers/gpu/drm/drm_fb_cma_helper.c| 37 +++---
 drivers/gpu/drm/drm_fb_helper.c|  5 ++--
 drivers/gpu/drm/drm_gem.c  | 14 +++---
 drivers/gpu/drm/drm_gem_cma_helper.c   |  2 +-
 drivers/gpu/drm/drm_prime.c|  2 +-
 drivers/gpu/drm/etnaviv/etnaviv_drv.c  |  8 +++---
 drivers/gpu/drm/exynos/exynos_drm_fb.c |  3 +--
 drivers/gpu/drm/exynos/exynos_drm_gem.c| 10 +++
 drivers/gpu/drm/exynos/exynos_drm_plane.c  |  2 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c   |  2 +-
 drivers/gpu/drm/gma500/framebuffer.c   |  2 +-
 drivers/gpu/drm/gma500/gem.c   |  2 +-
 drivers/gpu/drm/gma500/gma_display.c   |  2 +-
 drivers/gpu/drm/i915/i915_gem.c| 22 +++
 drivers/gpu/drm/i915/i915_gem_tiling.c |  4 +--
 drivers/gpu/drm/i915/intel_display.c   |  7 +++--
 drivers/gpu/drm/i915/intel_fbdev.c |  6 ++---
 drivers/gpu/drm/i915/intel_overlay.c   |  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c|  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_fb.c  |  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_gem.c |  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_plane.c   |  2 +-
 drivers/gpu/drm/mgag200/mgag200_cursor.c   |  2 +-
 drivers/gpu/drm/mgag200/mgag200_main.c |  4 +--
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c   |  2 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c   |  2 +-
 drivers/gpu/drm/msm/msm_drv.c  |  6 ++---
 drivers/gpu/drm/msm/msm_fb.c   |  3 +--
 drivers/gpu/drm/msm/msm_gem.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv04/crtc.c|  2 +-
 drivers/gpu/drm/nouveau/nouveau_display.c  |  4 +--
 drivers/gpu/drm/nouveau/nouveau_gem.c  |  9 +++
 drivers/gpu/drm/nouveau/nv50_display.c |  3 +--
 drivers/gpu/drm/omapdrm/omap_drv.c |  6 ++---
 drivers/gpu/drm/omapdrm/omap_drv.h |  4 +--
 

[PULL] topic/drm-misc

2016-05-17 Thread Daniel Vetter
Hi Dave,

Ok as promised heres the patches to do some function interface refactoring
across the tree. I've double check and run gcc on x86 and arm, but please
also check that nothing crept in meanwhile before pushing out the merge.

Otherwise a few more misc patches, plus the 2 duct-tape patches for dp mst
backporting from Lyude.

Note that I spotted one tegra patch in-flight which will conflict, I asked
for that to be rebased already.

Cheers, Daniel


The following changes since commit 99ee87295017e36abb6925e6139ca303cb55aee7:

  Merge tag 'topic/drm-misc-2016-05-13' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-05-17 07:06:14 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-05-17

for you to fetch changes up to 255f0e7c418ad95a4baeda017ae6182ba9b3c423:

  drm/fb_helper: Fix references to dev->mode_config.num_connector (2016-05-17 
15:44:41 +0200)


Chris Wilson (1):
  drm: Remove unused drm_device from drm_gem_object_lookup()

Dan Carpenter (1):
  drm/exynos/hdmi: add a missing tab

Daniel Vetter (3):
  drm: Drop crtc argument from __drm_atomic_helper_crtc_destroy_state
  drm: Drop plane argument from __drm_atomic_helper_plane_destroy_state
  drm: Drop connector argument from 
__drm_atomic_helper_connector_destroy_state

Gerd Hoffmann (1):
  qxl: catch qxlfb_create_pinned_object failures

Lyude (2):
  drm/i915/fbdev: Fix num_connector references in intel_fb_initial_config()
  drm/fb_helper: Fix references to dev->mode_config.num_connector

Noralf Trønnes (2):
  drm/fb-cma-helper: Use const for drm_framebuffer_funcs argument
  drm/fb-cma-helper: Add function drm_fb_cma_create_with_funcs()

 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |  3 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c|  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 10 +++
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c  |  2 +-
 drivers/gpu/drm/armada/armada_crtc.c   |  2 +-
 drivers/gpu/drm/armada/armada_fb.c |  2 +-
 drivers/gpu/drm/armada/armada_gem.c|  6 ++---
 drivers/gpu/drm/armada/armada_gem.h|  4 +--
 drivers/gpu/drm/ast/ast_main.c |  4 +--
 drivers/gpu/drm/ast/ast_mode.c |  2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |  2 +-
 drivers/gpu/drm/bochs/bochs_mm.c   |  4 +--
 drivers/gpu/drm/cirrus/cirrus_main.c   |  4 +--
 drivers/gpu/drm/drm_atomic_helper.c| 25 +++--
 drivers/gpu/drm/drm_fb_cma_helper.c| 37 +++---
 drivers/gpu/drm/drm_fb_helper.c|  5 ++--
 drivers/gpu/drm/drm_gem.c  | 14 +++---
 drivers/gpu/drm/drm_gem_cma_helper.c   |  2 +-
 drivers/gpu/drm/drm_prime.c|  2 +-
 drivers/gpu/drm/etnaviv/etnaviv_drv.c  |  8 +++---
 drivers/gpu/drm/exynos/exynos_drm_fb.c |  3 +--
 drivers/gpu/drm/exynos/exynos_drm_gem.c| 10 +++
 drivers/gpu/drm/exynos/exynos_drm_plane.c  |  2 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c   |  2 +-
 drivers/gpu/drm/gma500/framebuffer.c   |  2 +-
 drivers/gpu/drm/gma500/gem.c   |  2 +-
 drivers/gpu/drm/gma500/gma_display.c   |  2 +-
 drivers/gpu/drm/i915/i915_gem.c| 22 +++
 drivers/gpu/drm/i915/i915_gem_tiling.c |  4 +--
 drivers/gpu/drm/i915/intel_display.c   |  7 +++--
 drivers/gpu/drm/i915/intel_fbdev.c |  6 ++---
 drivers/gpu/drm/i915/intel_overlay.c   |  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c|  2 +-
 drivers/gpu/drm/mediatek/mtk_drm_plane.c   |  2 +-
 drivers/gpu/drm/mgag200/mgag200_cursor.c   |  2 +-
 drivers/gpu/drm/mgag200/mgag200_main.c |  4 +--
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c   |  2 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c   |  2 +-
 drivers/gpu/drm/msm/msm_drv.c  |  6 ++---
 drivers/gpu/drm/msm/msm_fb.c   |  3 +--
 drivers/gpu/drm/msm/msm_gem.c  |  2 +-
 drivers/gpu/drm/nouveau/dispnv04/crtc.c|  2 +-
 drivers/gpu/drm/nouveau/nouveau_display.c  |  4 +--
 drivers/gpu/drm/nouveau/nouveau_gem.c  |  8 +++---
 drivers/gpu/drm/nouveau/nv50_display.c |  2 +-
 drivers/gpu/drm/omapdrm/omap_drv.c |  6 ++---
 drivers/gpu/drm/omapdrm/omap_drv.h |  4 +--
 drivers/gpu/drm/omapdrm/omap_fb.c  |  2 +-
 drivers/gpu/drm/omapdrm/omap_gem.c |  2 +-
 drivers/gpu/drm/omapdrm/omap_plane.c   |  2 +-
 drivers/gpu/drm/qxl/qxl_display.c  |  6 +++--
 drivers/gpu/drm/qxl/qxl_dumb.c |  2 +-

[PULL] topic/drm-misc

2016-05-13 Thread Daniel Vetter
Hi Dave,

I kinda hoped that I could still sneak in Noralf's
drm_simple_display_pipe, since there's intereset by others now (for tilcdc
at least). But it wasn't ready by a hair. Oh well.

Otherwise random stuff plus prep patches from Noralf.

Cheers, Daniel


The following changes since commit 8863dc7f5642737e49ff681cbb842d2c614bdcf4:

  drm/i915: Correctly refcount connectors in hw state readou (2016-05-06 
16:09:12 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-05-13

for you to fetch changes up to 9ecb549867d7f642f0379f574f0e52870009a8bf:

  drm/atomic: Add drm_atomic_helper_best_encoder() (2016-05-11 18:55:16 +0200)


Arnd Bergmann (1):
  drm/sti: include linux/seq_file.h where needed

Daniel Vetter (2):
  drm/exynos: Use lockless gem BO free callback
  drm/tegra: Use lockless gem BO free callback

Noralf Trønnes (5):
  drm: Make drm_encoder_helper_funcs optional
  drm/fb-helper: Remove mention of CONFIG_FB_DEFERRED_IO in docs
  drm/fb-cma-helper: Hook up to DocBook and fix some docs
  drm/atomic: Don't skip drm_bridge_*() calls if !drm_encoder_helper_funcs
  drm/atomic: Add drm_atomic_helper_best_encoder()

 Documentation/DocBook/gpu.tmpl  |  5 
 drivers/gpu/drm/drm_atomic_helper.c | 49 +++--
 drivers/gpu/drm/drm_crtc_helper.c   | 41 +--
 drivers/gpu/drm/drm_fb_cma_helper.c |  8 ++
 drivers/gpu/drm/drm_fb_helper.c | 16 +--
 drivers/gpu/drm/exynos/exynos_drm_drv.c |  2 +-
 drivers/gpu/drm/sti/sti_cursor.c|  2 ++
 drivers/gpu/drm/sti/sti_gdp.c   |  1 +
 drivers/gpu/drm/sti/sti_hda.c   |  1 +
 drivers/gpu/drm/sti/sti_hqvdp.c |  1 +
 drivers/gpu/drm/sti/sti_mixer.c |  1 +
 drivers/gpu/drm/sti/sti_tvout.c |  1 +
 drivers/gpu/drm/sti/sti_vid.c   |  1 +
 drivers/gpu/drm/tegra/drm.c |  2 +-
 include/drm/drm_atomic_helper.h |  2 ++
 15 files changed, 95 insertions(+), 38 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-05-08 Thread Daniel Vetter
Hi Dave,

Refcounting is hard, so here's a quick pull request with the one-liner to
fix up i915. Otherwise just a few other small things I picked up. Plus the
regression fix from Marten for rmfb behaviour that lingered around forever
since no testers. Feel free to cherry-pick that over to drm-fixes, but
given that there's not many who seemed to have cared, meh.

Cheers, Daniel


The following changes since commit 0552f7651bc233e5407ab06ba97a9d7c25e19580:

  drm/i915/mst: use reference counted connectors. (v3) (2016-05-05 12:52:07 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-05-08

for you to fetch changes up to 8863dc7f5642737e49ff681cbb842d2c614bdcf4:

  drm/i915: Correctly refcount connectors in hw state readou (2016-05-06 
16:09:12 +0200)


Daniel Vetter (3):
  drm: Fix up markup fumble
  drm: Add gpu.tmpl docbook to MAINTAINERS entry
  drm/i915: Correctly refcount connectors in hw state readou

Lyude (1):
  drm/fb_helper: Fix a few typos

Maarten Lankhorst (1):
  drm/core: Do not preserve framebuffer on rmfb, v4.

Thierry Reding (1):
  drm/panel: Flesh out kerneldoc

 Documentation/DocBook/gpu.tmpl   | 12 --
 MAINTAINERS  |  1 +
 drivers/gpu/drm/drm_crtc.c   | 63 
 drivers/gpu/drm/drm_fb_helper.c  |  6 +--
 drivers/gpu/drm/drm_panel.c  | 61 +++
 drivers/gpu/drm/i915/intel_display.c |  5 +++
 include/drm/drm_modeset_helper_vtables.h |  2 +-
 include/drm/drm_panel.h  | 59 ++
 8 files changed, 195 insertions(+), 14 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-05-05 Thread Daniel Vetter
Hi Dave,

Ofc I promise just a few leftovers for drm-misc and somehow it's the
biggest pull. But really mostly trivial stuff:
- MAINTAINERS updates from Emil
- rename async to nonblock in atomic_commit to avoid the confusion between
  nonblocking ioctl and async flip (= not vblank synced), from Maarten.
  Needs to be regened with newer drivers, but probably only after -rc1 to
  catch them all.
- actually lockless gem_object_free, plus acked driver conversion patches.
  All the trickier prep stuff already is in drm-next.
- Noralf's nice work for generic defio support in our fbdev emulation.
  Keeps the udl hack, and qxl is tested by Gerd.

The other bit pending from Noralf is the drm_simple_output helper, that
still needs a tiny bit of polish. Guess 4.8 for that probably.

Cheers, Daniel


The following changes since commit be35f94f5c83bfed9ded918162c9b622743ef520:

  drm/atomic: Add missing drm_crtc_internal.h include (2016-04-28 16:36:30 
+0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-05-04

for you to fetch changes up to 6d3e7fddb39a4f0a47c8042df11554bb61d7a4aa:

  drm: Fixup locking WARN_ON mistake around gem_object_free_unlocked 
(2016-05-04 15:24:32 +0200)


Arnd Bergmann (1):
  drm/fsl-dcu: add COMMON_CLK dependency

Daniel Vetter (6):
  drm/gem: support BO freeing without dev->struct_mutex
  drm/amdgpu: Use lockless gem BO free callback
  drm/radeon: Use lockless gem BO free callback
  drm/imx: Use lockless gem BO free callback
  drm/etnaviv: Use lockless gem BO free callback
  drm: Fixup locking WARN_ON mistake around gem_object_free_unlocked

Emil Velikov (12):
  MAINTAINERS: Remove unneded wildcard for the i915 DRM driver
  MAINTAINERS: Update the files list for the Etnaviv DRM driver
  MAINTAINERS: Add maintainer entry for the Nouveau DRM driver
  MAINTAINERS: Add maintainer entry for the MSM DRM driver
  MAINTAINERS: Add maintainer entry for the VMWGFX DRM driver
  MAINTAINERS: Update the files list for the Exynos DRM driver
  MAINTAINERS: Update the files list for the Rockchip DRM driver
  MAINTAINERS: Update the files list for the Armada DRM driver
  MAINTAINERS: Update the files list for the Renesas DRM drivers
  MAINTAINERS: List the correct git repo for the Renesas DRM drivers
  MAINTAINERS: Add a few DRM drivers by Dave Airlie
  MAINTAINERS: Add a bunch of legacy (UMS) DRM drivers

Eric Anholt (1):
  MAINTAINERS: Add myself for the new VC4 (RPi GPU) graphics driver.

Gustavo Padovan (6):
  drm/amdgpu: use drm_crtc_send_vblank_event()
  drm/radeon: use drm_crtc_send_vblank_event()
  drm/msm: use drm_crtc_send_vblank_event()
  drm/rcar-du: use drm_crtc_send_vblank_event()
  drm/shmobile: use drm_crtc_send_vblank_event()
  drm/tilcdc: use drm_crtc_send_vblank_event()

Maarten Lankhorst (13):
  drm/atomic: Rename async parameter to nonblocking.
  drm/atomic: Rename drm_atomic_async_commit to nonblocking.
  drm/arm/hdlcd: Rename async to nonblock.
  drm/exynos: Rename async to nonblock.
  drm/msm: Rename async to nonblock.
  drm/omapdrm: Rename async to nonblock.
  drm/rcar-du: Rename async to nonblock.
  drm/sti: Rename async to nonblock.
  drm/tegra: Rename async to nonblock.
  drm/rockchip: Rename async to nonblock.
  drm/vc4: Rename async to nonblock.
  drm/i915: Rename async to nonblock.
  drm/atomic: Add WARN_ON when state->acquire_ctx is not set.

Noralf Trønnes (7):
  drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()
  drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()
  drm/fb-helper: Add fb_deferred_io support
  fbdev: fb_defio: Export fb_deferred_io_mmap
  drm/fb-cma-helper: Add fb_deferred_io support
  drm/qxl: Use drm_fb_helper deferred_io support
  drm/udl: Use drm_fb_helper deferred_io support

Robert Foss (1):
  drm/docs: Move "scaling mode" property.

 Documentation/DocBook/gpu.tmpl |  22 ++-
 MAINTAINERS| 117 ++-
 drivers/gpu/drm/Kconfig|   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c|   2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c |   2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c |   2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c  |   2 +-
 drivers/gpu/drm/arm/hdlcd_drv.c|   2 +-
 drivers/gpu/drm/drm_atomic.c   |  18 ++-
 drivers/gpu/drm/drm_atomic_helper.c|  34 ++---
 drivers/gpu/drm/drm_fb_cma_helper.c| 178 +--
 drivers/gpu/drm/drm_fb_helper.c| 103 -
 drivers/gpu/drm/drm_gem.c  |  57 +++-
 drivers/gpu/drm/etnaviv/etnaviv_drv.c  |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.c|   4 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.h|   2 +-
 

[PULL] topic/drm-misc

2016-04-29 Thread Daniel Vetter
Hi Dave,

- prep work for struct_mutex-less gem_free_object
- more invasive/tricky mst fixes from Lyude for broken hw. I discussed
  this with Ville/Jani and we all agreed more soaking in -next would be
  real good this late in the -rc cycle. They're cc: stable too to make
  sure they're not getting lost. Feel free to cherry-pick those four if
  you disagree.
- few small things all over

I'd like to get Noralf's defio work in still for 4.7, but probably with a
separate pull or topic branch.

Cheers, Daniel


The following changes since commit 027b3f8ba9277410c3191d72d1ed2c6146d8a668:

  drm/modes: stop handling framebuffer special (2016-04-22 10:47:16 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-04-29

for you to fetch changes up to be35f94f5c83bfed9ded918162c9b622743ef520:

  drm/atomic: Add missing drm_crtc_internal.h include (2016-04-28 16:36:30 
+0200)


Daniel Vetter (9):
  drm/sysfs: Annote lockless show functions with READ_ONCE
  drm: Give drm_agp_clear drm_legacy_ prefix
  drm: Put legacy lastclose work into drm_legacy_dev_reinit
  drm: Move drm_getmap into drm_bufs.c and give it a legacy prefix
  drm: Push struct_mutex into ->master_destroy
  drm: Forbid legacy MAP functions for DRIVER_MODESET
  drm: Hide master MAP cleanup in drm_bufs.c
  drm: Make drm_vm_open/close_locked private to drm_vm.c
  drm: Protect dev->filelist with its own mutex

Emil Velikov (1):
  MAINTAINERS: Update the files list for the GMA500 DRM driver

Laurent Pinchart (1):
  drm: rcar-du: Fix compilation warning

Lyude (4):
  drm/dp_helper: Always wait before retrying native aux transactions
  drm/dp_helper: Retry aux transactions on all errors
  drm/dp_helper: Perform throw-away read before actual read in 
drm_dp_dpcd_read()
  drm/i915: Get rid of intel_dp_dpcd_read_wake()

Thierry Reding (1):
  drm/atomic: Add missing drm_crtc_internal.h include

Tvrtko Ursulin (2):
  drm: Quiet down drm_mode_getconnector
  drm: Quiet down drm_mode_getresources

Ville Syrjälä (1):
  drm/dp: Allow signals to interrupt drm_aux-dev reads/writes

 MAINTAINERS |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 10 ++--
 drivers/gpu/drm/drm_agpsupport.c|  4 +-
 drivers/gpu/drm/drm_atomic.c|  2 +
 drivers/gpu/drm/drm_bufs.c  | 91 +++--
 drivers/gpu/drm/drm_crtc.c  | 12 -
 drivers/gpu/drm/drm_dp_aux_dev.c| 12 +
 drivers/gpu/drm/drm_dp_helper.c | 66 +++-
 drivers/gpu/drm/drm_drv.c   | 11 +---
 drivers/gpu/drm/drm_fops.c  | 51 +-
 drivers/gpu/drm/drm_info.c  |  4 +-
 drivers/gpu/drm/drm_internal.h  |  4 +-
 drivers/gpu/drm/drm_ioctl.c | 54 +--
 drivers/gpu/drm/drm_legacy.h|  2 +
 drivers/gpu/drm/drm_pci.c   |  2 +-
 drivers/gpu/drm/drm_sysfs.c | 11 ++--
 drivers/gpu/drm/drm_vm.c| 16 ++
 drivers/gpu/drm/i915/i915_debugfs.c | 12 -
 drivers/gpu/drm/i915/intel_dp.c | 81 +
 drivers/gpu/drm/rcar-du/rcar_du_drv.c   |  1 -
 include/drm/drmP.h  |  1 +
 include/drm/drm_agpsupport.h|  4 +-
 include/drm/drm_legacy.h|  4 +-
 23 files changed, 236 insertions(+), 222 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-04-21 Thread Daniel Vetter
Hi Dave,

misc pull req all over. Biggest thing is the
drm_connector_(un)register_all cleanup from Alexey for drivers without the
load/unload midlayer hooks. I.e. all the new ones, and a bunch of the
pending new atomic drivers depend upon this. Or at least I asked them to
rebase ;-)

For 4.7 I'd like to get the defio stuff in still (getting into shape),
plus there's a bunch of dp aux hacks that Lyude ported from i915 to drm
helpers to fix up mst issues. I discussed those with Jani and we agreed
that given how long they took to get into shape, the size and trickiness,
and that 4.6 is fairly late already, a good soaking in -next is called
for.

Cheers, Daniel


The following changes since commit d00b39c17573ece6f5fb1385314877d29f540db8:

  Merge branch 'drm-next-analogix-dp-v2' of github.com:yakir-Yang/linux into 
drm-next (2016-04-06 09:57:33 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-04-21

for you to fetch changes up to 6dc3e22ee197095eb6a6b3119f04f9dc6c2bbf91:

  drm: Make drm.debug parameter description more helpful (2016-04-21 09:45:12 
+0200)


Alexey Brodkin (3):
  drm: Introduce drm_connector_register_all() helper
  drm: atmel_hldc: Use generic drm_connector_register_all() helper
  drm: rcar-du: Use generic drm_connector_register_all() helper

Chris Wilson (1):
  drm: Release driver references to handle before making it available again

Daniel Vetter (2):
  drm/bochs: Drop fake gamma support
  drm/virtio: Drop dummy gamma table support

Ezequiel Garcia (2):
  drm: probe_helper: Hide ugly ifdef
  drm: Make drm.debug parameter description more helpful

Jim Bride (3):
  drm/edid: Add drm_edid_get_monitor_name()
  drm/dp/mst: Enhance DP MST debugfs output
  drm/i915/dp/mst: Add source port info to debugfs output

Laurent Pinchart (1):
  drm: Remove warning from drm_connector_unregister_all()

Lionel Landwerlin (1):
  drm: fix lut value extraction function

Liu Ying (1):
  drm/crtc_helper: Reset empty plane state in 
drm_helper_crtc_mode_set_base()

Lyude (1):
  drm/dp/mst: Restore primary hub guid on resume

Maarten Lankhorst (1):
  drm/core: Fix ordering in drm_mode_config_cleanup.

Robert Foss (1):
  include/drm: Reword debug categories comment.

Ville Syrjälä (1):
  drm/atomic-helper: Print an error if vblank wait times out

 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 30 +-
 drivers/gpu/drm/bochs/bochs_fbdev.c  | 15 ---
 drivers/gpu/drm/bochs/bochs_kms.c|  7 
 drivers/gpu/drm/drm_atomic_helper.c  |  2 +
 drivers/gpu/drm/drm_crtc.c   | 60 +++-
 drivers/gpu/drm/drm_crtc_helper.c|  8 ++--
 drivers/gpu/drm/drm_dp_mst_topology.c| 41 ---
 drivers/gpu/drm/drm_drv.c| 20 --
 drivers/gpu/drm/drm_edid.c   | 51 ++-
 drivers/gpu/drm/drm_gem.c| 16 
 drivers/gpu/drm/drm_probe_helper.c   |  2 -
 drivers/gpu/drm/i915/i915_debugfs.c  |  3 +-
 drivers/gpu/drm/rcar-du/rcar_du_drv.c|  9 +
 drivers/gpu/drm/virtio/virtgpu_display.c |  9 -
 include/drm/drmP.h   |  2 +-
 include/drm/drm_crtc.h   | 13 --
 include/drm/drm_edid.h   |  8 
 17 files changed, 183 insertions(+), 113 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-04-01 Thread Daniel Vetter
Hi Dave,

I figured it's time to open 4.7, also because we need the DCS patches from
this pull in i915:
- First patch of uapi header alignment with libdrm.
- random small stuff all over.

There's a small trivial conflict in amdgpu with the dummy
vgacon_text_force patch.

Cheers, Daniel


The following changes since commit b47bcb93bbf201e9c5af698945755efeb60c0bc8:

  dma-buf/fence: fix fence_is_later v2 (2016-03-21 09:26:50 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-04-01

for you to fetch changes up to 249c4f538b1aae55d41699f8bafc6cb762a7f48f:

  drm: Add new DCS commands in the enum list (2016-03-31 08:00:06 +0200)


Alexey Brodkin (1):
  drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()

Archit Taneja (1):
  drm: bridge/dw-hdmi: Remove pre_enable/post_disable dummy funcs

Daniel Vetter (10):
  drm/atmel: Fixup drm_connector_/unplug/unregister/_all
  Revert "drm: Don't pass negative delta to ktime_sub_ns()"
  drm/ttm: Remove TTM_HAS_AGP
  drm/sysfs: Nuke TV/DVI property files
  vgacon: dummy implementation for vgacon_text_force
  drm: Make drm.h uapi header safe for C++
  drm: align #include directives with libdrm in uapi headers
  drm: Move DRM_MODE_OBJECT_* to uapi headers
  drm: Untangle __KERNEL__ guards
  drm: Make uapi headers C89 pendantic compliant

Deepak M (1):
  drm: Add new DCS commands in the enum list

Laurent Pinchart (1):
  drm: bridge: Make (pre/post) enable/disable callbacks optional

Rob Clark (1):
  drm/atomic: export drm_atomic_helper_wait_for_fences()

 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c  |   2 -
 drivers/gpu/drm/ast/ast_drv.c|   2 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c |   2 +-
 drivers/gpu/drm/bridge/dw-hdmi.c |   7 --
 drivers/gpu/drm/cirrus/cirrus_drv.c  |   2 -
 drivers/gpu/drm/drm_atomic_helper.c  |  15 ++-
 drivers/gpu/drm/drm_bridge.c |  12 ++-
 drivers/gpu/drm/drm_crtc.c   |  18 ++--
 drivers/gpu/drm/drm_irq.c|   5 +-
 drivers/gpu/drm/drm_sysfs.c  | 156 ---
 drivers/gpu/drm/i915/i915_drv.c  |   2 -
 drivers/gpu/drm/mgag200/mgag200_drv.c|   2 -
 drivers/gpu/drm/nouveau/nouveau_drm.c|   2 -
 drivers/gpu/drm/qxl/qxl_drv.c|   2 -
 drivers/gpu/drm/radeon/radeon_drv.c  |   2 -
 drivers/gpu/drm/rcar-du/rcar_du_drv.c|   5 +-
 drivers/gpu/drm/ttm/Makefile |   3 +-
 drivers/gpu/drm/ttm/ttm_agp_backend.c|   3 -
 drivers/gpu/drm/ttm/ttm_page_alloc.c |   8 +-
 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c |   8 +-
 drivers/gpu/drm/udl/udl_drv.c|   2 +-
 drivers/gpu/drm/virtio/virtgpu_drv.c |   2 -
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  |   2 -
 include/drm/drm_atomic_helper.h  |   2 +
 include/drm/drm_crtc.h   |  22 ++--
 include/drm/ttm/ttm_bo_driver.h  |   3 +-
 include/linux/console.h  |   2 +
 include/uapi/drm/drm.h   |  18 +++-
 include/uapi/drm/drm_mode.h  |  10 ++
 include/video/mipi_display.h |   8 ++
 30 files changed, 91 insertions(+), 238 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-03-22 Thread Daniel Vetter
Hi Dave,

Bunch of small fixupes all over. Plus a dma-buf patch that Sumit asked me
to cherry-pick since that's the only one he had in his tree.

There's a sparse issue outstanding in the color mgr stuff, but Lionel is
still working on something that actually appeases sparse.

Cheers, Daniel


The following changes since commit c1f415c9acb5877c408d9311eb837d7d50636a68:

  drm: atomic helper: do not unreference error pointer (2016-03-13 19:39:54 
+0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-03-22

for you to fetch changes up to b47bcb93bbf201e9c5af698945755efeb60c0bc8:

  dma-buf/fence: fix fence_is_later v2 (2016-03-21 09:26:50 +0100)


Andrzej Hajda (2):
  drm/atomic: use helper to get crtc state
  drm/atmel-hlcdc: use helper to get crtc state

Chris Wilson (1):
  dma-buf, drm, ion: Propagate error code from dma_buf_start_cpu_access()

Christian König (1):
  dma-buf/fence: fix fence_is_later v2

Daniel Vetter (1):
  dma-buf: Update docs for SYNC ioctl

Luis de Bethencourt (1):
  drm: remove excess description

 Documentation/dma-buf-sharing.txt   | 11 ++-
 drivers/dma-buf/dma-buf.c   | 19 ---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |  2 +-
 drivers/gpu/drm/drm_atomic.c|  1 -
 drivers/gpu/drm/drm_atomic_helper.c | 14 --
 drivers/gpu/drm/i915/i915_gem_dmabuf.c  | 15 +--
 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c   |  5 +++--
 drivers/gpu/drm/udl/udl_fb.c|  4 ++--
 drivers/staging/android/ion/ion.c   |  6 --
 include/linux/dma-buf.h |  6 +++---
 include/linux/fence.h   |  2 +-
 11 files changed, 45 insertions(+), 40 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-03-14 Thread Daniel Vetter
On Wed, Mar 09, 2016 at 10:56:46AM +0100, Daniel Vetter wrote:
> Hi Dave,
> 
> I expect this to be the final drm-misc pull for 4.6:
> - color manager core patch from Lionel - i915 side is ready too, but will
>   only land in 4.7, but I figured it's better to land this earlier for
>   better coordination with other plane stuff (like alpha/blending) going
>   on.
> - more mode_fixup dummy func removal from Carlos (I think that's all now).
> - atomic connector stealing fixes Maarten (maybe this time around, Maarten
>   added testcases for it to igt too).

Color manager patch from Lionel needed some fixup. And somehow the 2nd
pull request got lost, so third time's the charm ;-) I've thrown the SAD
extraction patch from Ville on top for this one.
-Daniel

The following changes since commit 44ab4042178bd596275927ea050980aa4257581b:

  Merge branch 'for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu into 
drm-next (2016-02-26 13:02:57 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-03-14

for you to fetch changes up to c1f415c9acb5877c408d9311eb837d7d50636a68:

  drm: atomic helper: do not unreference error pointer (2016-03-13 19:39:54 
+0100)


Carlos Palminha (15):
  drm/cirrus: removed optional dummy crtc mode_fixup function.
  drm/mgag200: removed optional dummy crtc mode_fixup function.
  drm/udl: removed optional dummy crtc mode_fixup function.
  drm/gma: removed optional dummy crtc mode_fixup function.
  drm/rcar-du: removed optional dummy crtc mode_fixup function.
  drm/omapdrm: removed optional dummy crtc mode_fixup function.
  drm/msm/mdp: removed optional dummy crtc mode_fixup function.
  drm/shmobile: removed optional dummy crtc mode_fixup function.
  drm/sti: removed optional dummy crtc mode_fixup function.
  drm/atmel-hlcdc: remove optional dummy crtc mode_fixup function.
  drm/nouveau/dispnv04: removed optional dummy crtc mode_fixup function.
  drm/virtio: removed optional dummy crtc mode_fixup function.
  drm/fsl-dcu: removed optional dummy crtc mode_fixup function.
  drm/bochs: removed optional dummy crtc mode_fixup function.
  drm/ast: removed optional dummy crtc mode_fixup function.

Lionel Landwerlin (3):
  drm: introduce pipe color correction properties
  drm: fix blob pointer check
  drm: atomic helper: do not unreference error pointer

Liu Ying (1):
  drm/crtc: Use drm_mode_object_put() in __drm_framebuffer_unregister()

Maarten Lankhorst (7):
  drm/atomic: Clean up update_output_state.
  drm/atomic: Pass connector and state to update_connector_routing.
  drm/atomic: Always call steal_encoder, v2.
  drm/atomic: Handle encoder stealing from set_config better.
  drm/atomic: Handle encoder assignment conflicts in a separate check, v3.
  drm/atomic: Clean up steal_encoder, v2.
  drm/atomic: Clean up update_connector_routing.

Ville Syrjälä (1):
  drm/edid: Extract SADs properly from multiple audio data blocks

 Documentation/DocBook/gpu.tmpl |  59 +++-
 drivers/gpu/drm/ast/ast_mode.c |   8 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |   9 -
 drivers/gpu/drm/bochs/bochs_kms.c  |   8 -
 drivers/gpu/drm/cirrus/cirrus_mode.c   |  13 -
 drivers/gpu/drm/drm_atomic.c   |  88 +-
 drivers/gpu/drm/drm_atomic_helper.c| 362 -
 drivers/gpu/drm/drm_crtc.c |  39 ++-
 drivers/gpu/drm/drm_crtc_helper.c  |  33 +++
 drivers/gpu/drm/drm_edid.c |  17 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c |   8 -
 drivers/gpu/drm/gma500/cdv_intel_display.c |  13 +-
 drivers/gpu/drm/gma500/gma_display.c   |   7 -
 drivers/gpu/drm/gma500/gma_display.h   |   3 -
 drivers/gpu/drm/gma500/mdfld_intel_display.c   |   2 -
 drivers/gpu/drm/gma500/oaktrail_crtc.c |   1 -
 drivers/gpu/drm/gma500/psb_intel_display.c |   1 -
 drivers/gpu/drm/mgag200/mgag200_mode.c |  13 -
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c   |   8 -
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c   |   8 -
 drivers/gpu/drm/nouveau/dispnv04/crtc.c|   8 -
 drivers/gpu/drm/omapdrm/omap_crtc.c|   8 -
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c |   9 -
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c  |   8 -
 drivers/gpu/drm/sti/sti_crtc.c |   9 -
 drivers/gpu/drm/udl/udl_modeset.c  |   9 -
 drivers/gpu/drm/virtio/virtgpu_display.c   |   8 -
 include/drm/drm_atomic_helper.h|   3 +
 include/drm/drm_crtc.h |  48 +++-
 include/drm/drm_crtc_helper.h  |   3 +
 include/uapi/drm/drm_mode.h|  15 +
 31 files changed, 536 insertions(+), 292 deletions(-)
-- 
Daniel Vetter
Software Engineer, Intel 

[PULL] topic/drm-misc

2016-03-09 Thread Daniel Vetter
Hi Dave,

I expect this to be the final drm-misc pull for 4.6:
- color manager core patch from Lionel - i915 side is ready too, but will
  only land in 4.7, but I figured it's better to land this earlier for
  better coordination with other plane stuff (like alpha/blending) going
  on.
- more mode_fixup dummy func removal from Carlos (I think that's all now).
- atomic connector stealing fixes Maarten (maybe this time around, Maarten
  added testcases for it to igt too).

Cheers, Daniel


The following changes since commit 44ab4042178bd596275927ea050980aa4257581b:

  Merge branch 'for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu into 
drm-next (2016-02-26 13:02:57 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-03-09

for you to fetch changes up to 5488dc16fde74595a40c5d20ae52d978313f0b4e:

  drm: introduce pipe color correction properties (2016-03-08 13:57:32 +0100)


Carlos Palminha (15):
  drm/cirrus: removed optional dummy crtc mode_fixup function.
  drm/mgag200: removed optional dummy crtc mode_fixup function.
  drm/udl: removed optional dummy crtc mode_fixup function.
  drm/gma: removed optional dummy crtc mode_fixup function.
  drm/rcar-du: removed optional dummy crtc mode_fixup function.
  drm/omapdrm: removed optional dummy crtc mode_fixup function.
  drm/msm/mdp: removed optional dummy crtc mode_fixup function.
  drm/shmobile: removed optional dummy crtc mode_fixup function.
  drm/sti: removed optional dummy crtc mode_fixup function.
  drm/atmel-hlcdc: remove optional dummy crtc mode_fixup function.
  drm/nouveau/dispnv04: removed optional dummy crtc mode_fixup function.
  drm/virtio: removed optional dummy crtc mode_fixup function.
  drm/fsl-dcu: removed optional dummy crtc mode_fixup function.
  drm/bochs: removed optional dummy crtc mode_fixup function.
  drm/ast: removed optional dummy crtc mode_fixup function.

Lionel Landwerlin (1):
  drm: introduce pipe color correction properties

Liu Ying (1):
  drm/crtc: Use drm_mode_object_put() in __drm_framebuffer_unregister()

Maarten Lankhorst (7):
  drm/atomic: Clean up update_output_state.
  drm/atomic: Pass connector and state to update_connector_routing.
  drm/atomic: Always call steal_encoder, v2.
  drm/atomic: Handle encoder stealing from set_config better.
  drm/atomic: Handle encoder assignment conflicts in a separate check, v3.
  drm/atomic: Clean up steal_encoder, v2.
  drm/atomic: Clean up update_connector_routing.

 Documentation/DocBook/gpu.tmpl |  59 +++-
 drivers/gpu/drm/ast/ast_mode.c |   8 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |   9 -
 drivers/gpu/drm/bochs/bochs_kms.c  |   8 -
 drivers/gpu/drm/cirrus/cirrus_mode.c   |  13 -
 drivers/gpu/drm/drm_atomic.c   |  88 +-
 drivers/gpu/drm/drm_atomic_helper.c| 361 -
 drivers/gpu/drm/drm_crtc.c |  39 ++-
 drivers/gpu/drm/drm_crtc_helper.c  |  33 +++
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c |   8 -
 drivers/gpu/drm/gma500/cdv_intel_display.c |  13 +-
 drivers/gpu/drm/gma500/gma_display.c   |   7 -
 drivers/gpu/drm/gma500/gma_display.h   |   3 -
 drivers/gpu/drm/gma500/mdfld_intel_display.c   |   2 -
 drivers/gpu/drm/gma500/oaktrail_crtc.c |   1 -
 drivers/gpu/drm/gma500/psb_intel_display.c |   1 -
 drivers/gpu/drm/mgag200/mgag200_mode.c |  13 -
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c   |   8 -
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c   |   8 -
 drivers/gpu/drm/nouveau/dispnv04/crtc.c|   8 -
 drivers/gpu/drm/omapdrm/omap_crtc.c|   8 -
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c |   9 -
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c  |   8 -
 drivers/gpu/drm/sti/sti_crtc.c |   9 -
 drivers/gpu/drm/udl/udl_modeset.c  |   9 -
 drivers/gpu/drm/virtio/virtgpu_display.c   |   8 -
 include/drm/drm_atomic_helper.h|   3 +
 include/drm/drm_crtc.h |  48 +++-
 include/drm/drm_crtc_helper.h  |   3 +
 include/uapi/drm/drm_mode.h|  15 +
 30 files changed, 524 insertions(+), 286 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2016-02-18 Thread Daniel Vetter
Hi Dave,

Misc stuff all over:
- more mode_fixup removal from Carlos, there's another final pile still
  left.
- final bits of vgaswitcheroo from Lukas for apple gmux, we're still
  discussing an api cleanup patch to make it a bit more abuse-safe as a
  follow-up
- dp aux interface for userspace for tools from Rafael Antognolli 
- actual interface parts for dma-buf flushing for userspace mmap
- few small bits all over

... plus all the bits from last pull req. Why do I split them up ;-)

I'll be on vacation for 1 week now, will send final intel pull for 4.6 and
probably more drm-misc when I'm back.

Cheers, Daniel


The following changes since commit 10c1b6183a163aca59ba92b88f2b4c4cecd20d4c:

  drm/tegra: drop unused variable. (2016-02-09 11:17:37 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-02-18

for you to fetch changes up to a6ddd2f1b99f1c00b4e00289b13c3e451c7130b0:

  drm/udl: Use module_usb_driver (2016-02-17 14:19:30 +0100)


Amitoj Kaur Chawla (1):
  drm/udl: Use module_usb_driver

Arnd Bergmann (1):
  drm/msm: remove unused variable

Carlos Palminha (22):
  drm: fixes when i2c encoder slave mode_fixup is null.
  drm: fixes crct set_mode when encoder mode_fixup is null.
  drm/i2c/sil164: removed unnecessary code, mode_fixup is now optional.
  drm/i2c/tda998x: removed unnecessary code, mode_fixup is now optional.
  drm/bridge: removed dummy mode_fixup function from dw-hdmi.
  drm/virtio: removed optional dummy encoder mode_fixup function.
  drm/udl: removed optional dummy encoder mode_fixup function.
  drm/exynos: removed optional dummy encoder mode_fixup function.
  drm/amdgpu: removed optional dummy encoder mode_fixup function.
  drm/ast: removed optional dummy encoder mode_fixup function.
  drm/bochs: removed optional dummy encoder mode_fixup function.
  drm/cirrus: removed optional dummy encoder mode_fixup function.
  drm/radeon: removed optional dummy encoder mode_fixup function.
  drm/gma500: removed optional dummy encoder mode_fixup function.
  drm/imx: removed optional dummy encoder mode_fixup function.
  drm/msm/mdp: removed optional dummy encoder mode_fixup function.
  drm/mgag200: removed optional dummy encoder mode_fixup function.
  drm/qxl: removed optional dummy encoder mode_fixup function.
  drm/rockchip: removed optional dummy encoder mode_fixup function.
  drm/sti: removed optional dummy encoder mode_fixup function.
  drm/tilcdc: removed optional dummy encoder mode_fixup function.
  drm: fixes crct set_mode when crtc mode_fixup is null.

Daniel Thompson (1):
  drm: prime: Honour O_RDWR during prime-handle-to-fd

Daniel Vetter (2):
  dma-buf: Add ioctls to allow userspace to flush
  Merge branch 'topic/mode_fixup-optional' into topic/drm-misc

Haixia Shi (1):
  drm/msm: remove the drm_device_is_unplugged check

Insu Yun (1):
  ch7006: correctly handling failed allocation

LABBE Corentin (1):
  drm: modes: add missing [drm] to message printing

Lukas Wunner (13):
  vga_switcheroo: Add handler flags infrastructure
  vga_switcheroo: Add support for switching only the DDC
  apple-gmux: Track switch state
  apple-gmux: Add switch_ddc support
  drm/edid: Switch DDC when reading the EDID
  drm/i915: Switch DDC when reading the EDID
  drm/nouveau: Switch DDC when reading the EDID
  drm/radeon: Switch DDC when reading the EDID
  apple-gmux: Add helper for presence detect
  drm/i915: Defer probe if gmux is present but its driver isn't
  drm/nouveau: Defer probe if gmux is present but its driver isn't
  drm/radeon: Defer probe if gmux is present but its driver isn't
  apple-gmux: Fix build breakage if !CONFIG_ACPI

Maarten Lankhorst (7):
  drm/core: Add drm_encoder_index.
  drm/core: Add drm_for_each_encoder_mask, v2.
  drm/i915: Do not touch best_encoder for load detect.
  drm/atomic: Do not unset crtc when an encoder is stolen
  drm/atomic: Add encoder_mask to crtc_state, v3.
  drm/fb_helper: Use correct allocation count for arrays.
  drm/fb_helper: Use add_one_connector in add_all_connectors.

Rafael Antognolli (3):
  drm/kms_helper: Add a common place to call init and exit functions.
  drm/dp: Add a drm_aux-dev module for reading/writing dpcd registers.
  drm/i915: Set aux.dev to the drm_connector device, instead of drm_device.

Rasmus Villemoes (1):
  drm/gma500: fix error path in gma_intel_setup_gmbus()

Tiago Vignatti (3):
  dma-buf: Remove range-based flush
  drm/i915: Implement end_cpu_access
  drm/i915: Use CPU mapping for userspace dma-buf mmap()

Ville Syrjälä (1):
  drm: Add drm_format_plane_width() and drm_format_plane_height()

 Documentation/DocBook/gpu.tmpl   |   5 +
 

[PULL] topic/drm-misc

2016-02-12 Thread Daniel Vetter
Hi Dave,

More drm-misc stuff:
- vgaswitcheroo support for apple gmux from Lukas Wunner
- checks for ->mode_fixup in non-atomic helpers from Carlos Palminha, plus
  removing dummy funcs from drivers. Carlos promised to follow up with
  more, since there's lots more silly dummy functions around.
- dma-buf patches from Tiago, except the ioctl itself (that needed a
  respin to address review from David Herrmann)
- encoder mask for atomic from Maarten
- bunch of random things all over.

Aside: the connector_mask stuff from Maarten that landed in 4.5 is blowing
up in certain mst unplug cases. Maarten is looking into it.

Cheers, Daniel


The following changes since commit 10c1b6183a163aca59ba92b88f2b4c4cecd20d4c:

  drm/tegra: drop unused variable. (2016-02-09 11:17:37 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-02-12

for you to fetch changes up to 382ab95d1af85381d8a5dff09b16a80c7e492534:

  drm/msm: remove unused variable (2016-02-11 11:48:39 +0100)


Arnd Bergmann (1):
  drm/msm: remove unused variable

Carlos Palminha (5):
  drm: fixes when i2c encoder slave mode_fixup is null.
  drm: fixes crct set_mode when encoder mode_fixup is null.
  drm/i2c/sil164: removed unnecessary code, mode_fixup is now optional.
  drm/i2c/tda998x: removed unnecessary code, mode_fixup is now optional.
  drm/bridge: removed dummy mode_fixup function from dw-hdmi.

Daniel Thompson (1):
  drm: prime: Honour O_RDWR during prime-handle-to-fd

Haixia Shi (1):
  drm/msm: remove the drm_device_is_unplugged check

Insu Yun (1):
  ch7006: correctly handling failed allocation

LABBE Corentin (1):
  drm: modes: add missing [drm] to message printing

Lukas Wunner (13):
  vga_switcheroo: Add handler flags infrastructure
  vga_switcheroo: Add support for switching only the DDC
  apple-gmux: Track switch state
  apple-gmux: Add switch_ddc support
  drm/edid: Switch DDC when reading the EDID
  drm/i915: Switch DDC when reading the EDID
  drm/nouveau: Switch DDC when reading the EDID
  drm/radeon: Switch DDC when reading the EDID
  apple-gmux: Add helper for presence detect
  drm/i915: Defer probe if gmux is present but its driver isn't
  drm/nouveau: Defer probe if gmux is present but its driver isn't
  drm/radeon: Defer probe if gmux is present but its driver isn't
  apple-gmux: Fix build breakage if !CONFIG_ACPI

Maarten Lankhorst (5):
  drm/core: Add drm_encoder_index.
  drm/core: Add drm_for_each_encoder_mask, v2.
  drm/i915: Do not touch best_encoder for load detect.
  drm/atomic: Do not unset crtc when an encoder is stolen
  drm/atomic: Add encoder_mask to crtc_state, v3.

Rasmus Villemoes (1):
  drm/gma500: fix error path in gma_intel_setup_gmbus()

Tiago Vignatti (3):
  dma-buf: Remove range-based flush
  drm/i915: Implement end_cpu_access
  drm/i915: Use CPU mapping for userspace dma-buf mmap()

Ville Syrjälä (1):
  drm: Add drm_format_plane_width() and drm_format_plane_height()

 Documentation/DocBook/gpu.tmpl   |   5 +
 Documentation/dma-buf-sharing.txt|  19 ++--
 drivers/dma-buf/dma-buf.c|  13 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c |   3 +-
 drivers/gpu/drm/bridge/dw-hdmi.c |   8 --
 drivers/gpu/drm/drm_atomic_helper.c  |  57 +--
 drivers/gpu/drm/drm_crtc.c   |  65 +
 drivers/gpu/drm/drm_crtc_helper.c|  10 +-
 drivers/gpu/drm/drm_edid.c   |  26 +
 drivers/gpu/drm/drm_encoder_slave.c  |   3 +
 drivers/gpu/drm/drm_modes.c  |   3 +-
 drivers/gpu/drm/drm_prime.c  |  10 +-
 drivers/gpu/drm/gma500/intel_gmbus.c |   2 +-
 drivers/gpu/drm/i2c/ch7006_drv.c |   2 +
 drivers/gpu/drm/i2c/sil164_drv.c |   9 --
 drivers/gpu/drm/i2c/tda998x_drv.c|   9 --
 drivers/gpu/drm/i915/i915_drv.c  |  12 +++
 drivers/gpu/drm/i915/i915_gem_dmabuf.c   |  42 +++-
 drivers/gpu/drm/i915/intel_display.c |   5 +-
 drivers/gpu/drm/i915/intel_lvds.c|   8 +-
 drivers/gpu/drm/msm/msm_fbdev.c  |   4 -
 drivers/gpu/drm/nouveau/nouveau_acpi.c   |   2 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c  |  21 +++-
 drivers/gpu/drm/nouveau/nouveau_drm.c|  11 +++
 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c|   4 +-
 drivers/gpu/drm/radeon/radeon_atpx_handler.c |   3 +-
 drivers/gpu/drm/radeon/radeon_connectors.c   |   6 ++
 drivers/gpu/drm/radeon/radeon_drv.c  |  11 +++
 drivers/gpu/drm/udl/udl_fb.c |   2 -
 drivers/gpu/vga/vga_switcheroo.c | 119 ++-
 

[PULL] topic/drm-misc

2016-02-08 Thread Daniel Vetter
Hi Dave,

First drm-misc pull req for 4.6. Big one is the drm_event cleanup, which
is also prep work for adding android fence support to kms (Gustavo is
planning to do that). Otherwise random small bits all over.

Cheers, Daniel


The following changes since commit 1df59b8497f47495e873c23abd6d3d290c730505:

  Merge tag 'drm-intel-next-fixes-2016-01-14' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2016-01-18 07:02:19 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-02-08

for you to fetch changes up to 13619ce570ee57bb509394b896b21eba41fa4392:

  gma500: clean up an excessive and confusing helper (2016-02-08 10:07:09 +0100)


Alan Cox (1):
  gma500: clean up an excessive and confusing helper

Colin Ian King (1):
  drm/fb_cma_helper: remove duplicate const from drm_fb_cma_alloc

Dan Carpenter (1):
  drm/vmwgfx: fix a NULL dereference

Daniel Vetter (25):
  drm/fbdev-helper: Explain how to debug console_lock fun
  drm: kerneldoc for drm_fops.c
  drm: Add functions to setup/tear down drm_events.
  drm/exynos: Use the new event init/free functions
  drm/vmwgfx: Use the new event init/free functions
  drm: Create drm_send_event helpers
  drm/fsl: Remove preclose hook
  drm/armada: Remove NULL open/pre/postclose hooks
  drm/gma500: Remove empty preclose hook
  drm/crtc-helper: Add caveat to disable_unused_functions doc
  drm/vblank: Use drm_event_reserve_init
  drm: Clean up pending events in the core
  drm: Nuke vblank event file cleanup code
  drm/i915: Nuke intel_modeset_preclose
  drm/atmel: Nuke preclose
  drm/exynos: Remove event cancelling from postclose
  drm/imx: Unconfuse preclose logic
  drm/msm: Nuke preclose hooks
  drm/omap: Nuke close hooks
  drm/rcar: Nuke preclose hook
  drm/shmob: Nuke preclose hook
  drm/tegra: Stop cancelling page flip events
  drm/tilcdc: Nuke preclose hook
  drm/vc4: Nuke preclose hook
  drm/vmwgfx: Nuke preclose hook

Liu Ying (3):
  drm/crtc_helper/set_config: Remove redundant handling when set->fb is NULL
  drm/crtc_helper/set_config: Remove redundant NULL pointer check on 
set->mode
  drm/atomic-helper: Remove redundant local var old_crtc_state in 
disable_outputs

Marek Szyprowski (1):
  drm: initialize default rotation value to DRM_ROTATE_0

Sudip Mukherjee (1):
  drm/gma500: remove helper function

 Documentation/DocBook/gpu.tmpl |  48 +---
 drivers/gpu/drm/armada/armada_drv.c|   3 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |  18 --
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c   |  10 -
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h   |   3 -
 drivers/gpu/drm/drm_atomic.c   |  44 +---
 drivers/gpu/drm/drm_atomic_helper.c|   5 +-
 drivers/gpu/drm/drm_crtc.c |  36 +--
 drivers/gpu/drm/drm_crtc_helper.c  |  13 +-
 drivers/gpu/drm/drm_fb_cma_helper.c|   3 +-
 drivers/gpu/drm/drm_fb_helper.c|  21 ++
 drivers/gpu/drm/drm_fops.c | 305 ++---
 drivers/gpu/drm/drm_irq.c  |  18 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.c|  14 --
 drivers/gpu/drm/exynos/exynos_drm_g2d.c|  37 +--
 drivers/gpu/drm/exynos/exynos_drm_ipp.c|  29 +--
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c  |   5 -
 drivers/gpu/drm/gma500/framebuffer.c   |  20 +-
 drivers/gpu/drm/gma500/mdfld_dsi_output.c  |  12 +-
 drivers/gpu/drm/gma500/psb_drv.c   |   9 -
 drivers/gpu/drm/i915/i915_dma.c|   2 -
 drivers/gpu/drm/i915/intel_display.c   |  21 --
 drivers/gpu/drm/i915/intel_drv.h   |   1 -
 drivers/gpu/drm/imx/imx-drm-core.c |  13 --
 drivers/gpu/drm/imx/ipuv3-crtc.c   |   4 -
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c   |   7 -
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c|  11 -
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h|   1 -
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c   |   6 -
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c|  11 -
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h|   1 -
 drivers/gpu/drm/omapdrm/omap_crtc.c|  13 +-
 drivers/gpu/drm/omapdrm/omap_drv.c |  42 
 drivers/gpu/drm/omapdrm/omap_drv.h |   1 -
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c |  20 --
 drivers/gpu/drm/rcar-du/rcar_du_crtc.h |   2 -
 drivers/gpu/drm/rcar-du/rcar_du_drv.c  |  10 -
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c  |  20 --
 drivers/gpu/drm/shmobile/shmob_drm_crtc.h  |   2 -
 drivers/gpu/drm/shmobile/shmob_drm_drv.c   |   8 -
 drivers/gpu/drm/tegra/dc.c |  17 --
 drivers/gpu/drm/tegra/drm.c|   3 -
 drivers/gpu/drm/tegra/drm.h  

[PULL] topic/drm-misc

2016-01-17 Thread Daniel Vetter
Hi Dave,

Since your main drm-next pull isn't out of the door yet I figured I might
as well flush out drm-misc instead of delaying for 4.6. It's really just
random stuff all over, biggest thing probably connector_mask tracking from
Maarten.

Cheers, Daniel


The following changes since commit e112e593b215c394c0303dbf0534db0928e87967:

  drm: use dev_name as default unique name in drm_dev_alloc() (2015-12-15 
13:56:06 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2016-01-17

for you to fetch changes up to 4314e19ef4ae0ba8872bd8610f6fef5e8743e236:

  drm/fb_cma_helper: Remove implicit call to disable_unused_functions 
(2016-01-15 11:16:15 +0100)


Chris Wilson (5):
  drm: Balance error path for GEM handle allocation
  drm: Only bump object-reference count when adding first handle
  drm: Use a normal idr allocation for the obj->name
  drm: Do not set outparam on error during GEM handle allocation
  drm: Remove opencoded drm_gem_object_release_handle()

Dan Carpenter (1):
  drm: move MODULE_PARM_DESC to other file

Daniel Vetter (3):
  drm/atomic-helper: Reject legacy flips on a disabled pipe
  drm/docs: more leftovers from the big vtable documentation pile
  drm/i915: Init power domains early in driver load

Geliang Tang (2):
  drm/gma500: use to_pci_dev()
  drm/sysfs: use kobj_to_dev()

Jani Nikula (1):
  drm/edid: index CEA/HDMI mode tables using the VIC

Julia Lawall (1):
  drm/dp/mst: constify drm_dp_mst_topology_cbs structures

Lukas Wunner (2):
  vga_switcheroo: Prettify documentation
  apple-gmux: Add initial documentation

Maarten Lankhorst (6):
  drm/i915: Set connector_state->connector using the helper.
  drm/atomic: Add __drm_atomic_helper_connector_reset, v2.
  drm/tegra: Use __drm_atomic_helper_reset_connector for subclassing 
connector state, v2.
  drm/atomic: add connector mask to drm_crtc_state.
  drm/i915: Update connector_mask during readout, v2.
  drm/atomic: Remove drm_atomic_connectors_for_crtc.

Matt Roper (1):
  drm/fb-helper: Use proper plane mask for fb cleanup

Maxime Ripard (1):
  drm/fb_cma_helper: Remove implicit call to disable_unused_functions

Thierry Reding (1):
  drm: Do not set connector->encoder in drivers

 Documentation/DocBook/gpu.tmpl| 250 +-
 drivers/gpu/drm/bridge/dw_hdmi.c  |   2 -
 drivers/gpu/drm/drm_atomic.c  |  57 ---
 drivers/gpu/drm/drm_atomic_helper.c   |  49 --
 drivers/gpu/drm/drm_crtc.c|  14 ++
 drivers/gpu/drm/drm_drv.c |   4 -
 drivers/gpu/drm/drm_edid.c|  94 ++-
 drivers/gpu/drm/drm_fb_cma_helper.c   |   3 -
 drivers/gpu/drm/drm_fb_helper.c   |   2 +-
 drivers/gpu/drm/drm_gem.c | 109 ++---
 drivers/gpu/drm/drm_irq.c |   3 +
 drivers/gpu/drm/drm_sysfs.c   |   2 +-
 drivers/gpu/drm/gma500/power.c|   4 +-
 drivers/gpu/drm/i2c/tda998x_drv.c |   1 -
 drivers/gpu/drm/i915/i915_dma.c   |   6 +-
 drivers/gpu/drm/i915/intel_display.c  |  25 ++-
 drivers/gpu/drm/i915/intel_dp_mst.c   |   2 +-
 drivers/gpu/drm/imx/imx-drm-core.c|   1 +
 drivers/gpu/drm/imx/parallel-display.c|   2 -
 drivers/gpu/drm/radeon/radeon_dp_mst.c|   2 +-
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c |   2 -
 drivers/gpu/drm/sti/sti_drv.c |   1 +
 drivers/gpu/drm/tegra/dsi.c   |  13 +-
 drivers/gpu/drm/tilcdc/tilcdc_drv.c   |   1 +
 drivers/gpu/drm/vc4/vc4_crtc.c|   2 +-
 drivers/gpu/vga/vga_switcheroo.c  |   2 +-
 drivers/platform/x86/apple-gmux.c | 113 ++
 include/drm/drm_atomic.h  |   4 -
 include/drm/drm_atomic_helper.h   |   2 +
 include/drm/drm_crtc.h|   6 +-
 include/drm/drm_dp_mst_helper.h   |   2 +-
 include/drm/drm_modeset_helper_vtables.h  |  44 +-
 32 files changed, 437 insertions(+), 387 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-12-23 Thread Daniel Vetter
Hi Dave,

Just one more patch in drm-misc before I disappear into the swiss alps. I
was a bit on the fence whether this should go into -fixes, but then
figured meh. If it blows up in reality (the linked bug is just our QA) we
can always cherry-pick afterwards.

Cheers, Daniel


The following changes since commit e112e593b215c394c0303dbf0534db0928e87967:

  drm: use dev_name as default unique name in drm_dev_alloc() (2015-12-15 
13:56:06 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-12-23

for you to fetch changes up to e112e593b215c394c0303dbf0534db0928e87967:

  drm: use dev_name as default unique name in drm_dev_alloc() (2015-12-15 
13:56:06 +0100)



-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-12-18 Thread Daniel Vetter
Hi Dave,

Seems I lied in my last drm-misc pull request and suddenly there's a big
pile of random stuff. Boris dug out Thierry's drm-trivial branch and
resubmitted everything since that branch didn't really work out.

On top of that Nicolas' changes to drm_dev_set_unique - this might
conflict with new driver pulls (I double checked and current drm-next
should be fine), so please beware. The -next/-fixes conflict in vmwgfx
will change slightly with this here too.

For 4.5 there's one final drm-intel pull early next week and them I'm off
on vacation for a few days.

Cheers, Daniel


The following changes since commit 51bce5bc38bdb79c0f7ab33f1fe91a68ef1afa77:

  Merge tag 'drm-intel-next-2015-12-04-1' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-12-15 11:01:04 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-12-18

for you to fetch changes up to e112e593b215c394c0303dbf0534db0928e87967:

  drm: use dev_name as default unique name in drm_dev_alloc() (2015-12-15 
13:56:06 +0100)


Daniel Vetter (2):
  drm/atomic-helper: Drop unneeded argument from check_pending_encoder
  drm: Move more framebuffer doc from docbook to kerneldoc

Danilo Cesar Lemes de Paula (1):
  drm/doc: Convert to markdown

Eric Anholt (1):
  drm: Use the driver's gem_object_free function from CMA helpers.

Frediano Ziglio (1):
  drm/qxl: use to_qxl_bo macro

Harry Wentland (1):
  drm/dp/mst: save vcpi with payloads

Luis de Bethencourt (1):
  drm: atmel-hlcdc: Fix module autoload for OF platform driver

Mykola Lysenko (1):
  drm/dp/mst: reply with ACK for UP reqs

Nicolas Ferre (1):
  drm: atmel-hlcdc: add support for sama5d2 SoCs

Nicolas Iooss (2):
  drm: make drm_dev_set_unique() not use a format string
  drm: use dev_name as default unique name in drm_dev_alloc()

Rasmus Villemoes (3):
  drm/omap: use kzalloc in sita_init()
  drm/vmwgfx: use kzalloc in vmw_surface_define_ioctl()
  drm/vmwgfx: check kmalloc return value

Thierry Reding (4):
  drm/gma500: Sanity-check pipe index
  drm/bochs: Store correct CRTC index in events
  drm/imx: Make pipe number unsigned
  drm/imx: Drop pipe field from struct imx_drm_crtc

Ville Syrjälä (18):
  drm: Constify drm_encoder_slave_funcs
  drm/armada: Constify function pointer structs
  drm/atmel-hlcdc: Constify function pointer structs
  drm/bochs: Constify function pointer structs
  drm/bridge/dw_hdmi: Constify function pointer structs
  drm/bridge/nxp-ptn3460: Constify function pointer structs
  drm/i2c/ch7006: Constify function pointer structs
  drm/cirrus: Constify function pointer structs
  drm/exynos: Constify function pointer structs
  drm/i2c/adv7511: Constify function pointer structs
  drm/i2c/sil164: Constify function pointer structs
  drm/imx: Constify function pointer structs
  drm/mgag200: Constify function pointer structs
  drm/nouveau: Constify function pointer structs
  drm/rockchip: Constify function pointer structs
  drm/tegra: Constify function pointer structs
  drm/udl: Constify function pointer structs
  drm/vmwgfx: Constify function pointer structs

 Documentation/DocBook/gpu.tmpl   | 158 +--
 drivers/gpu/drm/armada/armada_crtc.c |   2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c |   9 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c |   4 +-
 drivers/gpu/drm/bochs/bochs_kms.c|   8 +-
 drivers/gpu/drm/bridge/dw_hdmi.c |   6 +-
 drivers/gpu/drm/bridge/nxp-ptn3460.c |   6 +-
 drivers/gpu/drm/cirrus/cirrus_mode.c |   4 +-
 drivers/gpu/drm/drm_atomic_helper.c  |   5 +-
 drivers/gpu/drm/drm_dp_mst_topology.c|   4 +-
 drivers/gpu/drm/drm_drv.c|  26 ++--
 drivers/gpu/drm/drm_encoder_slave.c  |   2 +-
 drivers/gpu/drm/drm_fb_cma_helper.c  |   6 +-
 drivers/gpu/drm/drm_gem_cma_helper.c |   4 +-
 drivers/gpu/drm/drm_modes.c  |  12 +-
 drivers/gpu/drm/drm_modeset_lock.c   |  14 +-
 drivers/gpu/drm/drm_prime.c  |  16 +--
 drivers/gpu/drm/exynos/exynos_dp_core.c  |   8 +-
 drivers/gpu/drm/exynos/exynos_drm_crtc.c |   4 +-
 drivers/gpu/drm/exynos/exynos_drm_dpi.c  |   8 +-
 drivers/gpu/drm/exynos/exynos_drm_dsi.c  |   8 +-
 drivers/gpu/drm/exynos/exynos_drm_fb.c   |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_mic.c  |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_vidi.c |   8 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c |   8 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c|   1 -
 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c   |  10 +-
 drivers/gpu/drm/i2c/adv7511.c|   2 

[PULL] topic/drm-misc

2015-12-14 Thread Daniel Vetter
Hi Dave,

Last (very likely at least) drm-misc pull for 4.5. 3 big things:
- piles of docs for kms vtables.
- drm.debug dmesg output prettification from Ville (i915 parts are for 4.6
  I think)
- connector mode probing/validating/merging cleanup from Ville.

>From that last pile please cherry-pick

commit be8719a610003297c28b140f1ebd4445aef1d613
Author: Ville Syrjälä 
Date:   Thu Dec 3 23:14:09 2015 +0200

drm: Don't overwrite UNVERFIED mode status to OK

for drm-fixes like we discussed on irc - it's a regression fix I merged to
avoid conflict hilarity.

Oh, conflicts: One in i915 with drm-intel-next (new argument vs. error
path added to same function call), and a few in vmwgfx (hook removal here
vs. set_cursor2 addedin in -fixes). Stephen has the right resolutions
posted to dri-devel too.

There's one more small series from Nicolas to clean up the interface of
drm_dev_set_unique, but that might conflict with new drivers. So wanted to
double-check that and wait a bit until I send you that one. Worst case
it'll go in right around 4.5-rc1.

Wrt 4.5 I'll only send you one more drm-intel pull early next week,
because misaligned agina a bit. Is that still ok?

Cheers, Daniel


The following changes since commit e876b41ab074561d65f213bf5e0fc68cf5bc7380:

  Back merge tag 'v4.4-rc4' into drm-next (2015-12-08 11:04:26 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-12-14

for you to fetch changes up to d6e6e14fa61dcabbc05092ea124540280573720c:

  drm: modes: Revert cc344980c767 "replace simple_strtoul by kstrtouint" 
(2015-12-11 17:13:06 +0100)


Daniel Vetter (27):
  drm: Polish fbdev helper struct docs
  drm: Move LEAVE/ENTER_ATOMIC_MODESET to fbdev helpers
  drm: Reorganize helper vtables and their docs
  drm: Make helper vtable pointers type-safe
  drm: Merge helper docbook into kerneldoc comments
  drm/bridge: Improve kerneldoc
  drm: Update drm_plane_funcs kerneldoc
  drm/nouveau: Ditch NULL save/restore hook assignments
  drm/qxl: Drop dummy save/restore hooks
  drm/virtio: Drop dummy save/restore functions
  drm/vmwgfx: Drop dummy save/restore hooks
  drm/gma500: Move to private save/restore hooks
  drm/nouveau: Use private save/restore hooks for CRTCs
  drm: Remove crtc/connector->save/restore hooks
  drm: Move encoder->save/restore into nouveau
  drm: Document drm_atomic_*_get_property
  drm: Document drm_connector_funcs
  drm: connector->dpms is not optional
  drm: document drm_crtc_funcs
  drm: Add kerneldoc for drm_framebuffer_funcs
  drm: Kerneldoc for drm_mode_config_funcs
  drm: Document drm_plane_helper_funcs
  drm: Document drm_connector_helper_funcs
  drm/atomic-helper: Mention the new system/resume helpers the docs
  drm: Move drm_display_mode an related docs into kerneldoc
  drm: Document drm_encoder/crtc_helper_funcs
  drm: Documentation style guide

LABBE Corentin (1):
  drm: modes: Revert cc344980c767 "replace simple_strtoul by kstrtouint"

Rodrigo Vivi (1):
  drm/i2c/tda998x: Remove unused save/restore drm encoder helpers.

Ville Syrjälä (14):
  drm: Pass 'name' to drm_crtc_init_with_planes()
  drm: Pass 'name' to drm_universal_plane_init()
  drm: Pass 'name' to drm_encoder_init()
  drm: Use driver specified encoder name
  drm: Add crtc->name and use it in debug messages
  drm: Add plane->name and use it in debug prints
  drm: Don't overwrite UNVERFIED mode status to OK
  drm: Rename MODE_UNVERIFIED to MODE_STALE
  drm: Flatten drm_mode_connector_list_update() a bit
  drm: Only merge mode type bits between new probed modes
  drm: Drop drm_helper_probe_single_connector_modes_nomerge()
  drm/sti: Drop bogus drm_mode_sort() call
  drm: Allow override_edid to override the firmware EDID
  drm: Expand the drm_helper_probe_single_connector_modes() docs

 Documentation/DocBook/gpu.tmpl   |  537 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h |1 +
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c   |   14 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c   |   14 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c|   14 +-
 drivers/gpu/drm/armada/armada_crtc.c |4 +-
 drivers/gpu/drm/armada/armada_overlay.c  |2 +-
 drivers/gpu/drm/ast/ast_mode.c   |2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c   |2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c |2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c  |2 +-
 drivers/gpu/drm/bochs/bochs_kms.c|2 +-
 drivers/gpu/drm/cirrus/cirrus_mode.c |2 +-
 drivers/gpu/drm/drm_atomic.c |   86 +-
 drivers/gpu/drm/drm_atomic_helper.c  |   72 +-
 drivers/gpu/drm/drm_bridge.c   

[PULL] topic/drm-misc

2015-12-04 Thread Daniel Vetter
Hi Dave,

New -misc pull. Big thing is Thierry's atomic helpers for system suspend
resume, which I'd like to use in i915 too. Hence the pull.

Aside: There's a conflict between your -next and -fixes in imx, pinged you
about it on irc. Would be good if you can backmerge the next -rc after
pulling this in, then I can pull that into i915 trees again too in one go.

Cheers, Daniel


The following changes since commit 87069f4493b2101a71a92b7b9565f488a605a88f:

  drm/mm: use list_next_entry (2015-11-25 16:22:58 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-12-04

for you to fetch changes up to 4e15f2a1a056ff2695611c3e8d0b162526e84355:

  drm: keep connector status change logging human readable (2015-12-04 08:59:41 
+0100)


Chris Wilson (2):
  drm: Drop dev->event_lock spinlock around faulting copy_to_user()
  drm: Serialise multiple event readers

Daniel Vetter (6):
  drm/gma500: Use correct unref in the gem bo create function
  drm/gma500: Drop dev->struct_mutex from modeset code
  drm/gma500: Drop dev->struct_mutex from fbdev init/teardown code
  drm/gma500: Drop dev->struct_mutex from mmap offset function
  drm/gma500: Add driver private mutex for the fault handler
  drm/atomic-helper: Reject attempts at re-stealing encoders

Jani Nikula (1):
  drm: keep connector status change logging human readable

Jyri Sarha (1):
  drm/atomic_helper: Add drm_atomic_helper_disable_planes_on_crtc()

Thierry Reding (2):
  drm: Implement drm_modeset_lock_all_ctx()
  drm/atomic-helper: Implement subsystem-level suspend/resume

Ville Syrjälä (1):
  drm/edid: Make the detailed timing CEA/HDMI mode fixup accept up to 5kHz 
clock difference

 drivers/gpu/drm/drm_atomic.c |   7 +-
 drivers/gpu/drm/drm_atomic_helper.c  | 233 ++-
 drivers/gpu/drm/drm_crtc_helper.c|   6 +
 drivers/gpu/drm/drm_edid.c   |  62 +-
 drivers/gpu/drm/drm_fops.c   |  58 +
 drivers/gpu/drm/drm_modes.c  |  19 ++-
 drivers/gpu/drm/drm_modeset_lock.c   |  89 -
 drivers/gpu/drm/drm_probe_helper.c   |   5 +-
 drivers/gpu/drm/gma500/framebuffer.c |  12 +-
 drivers/gpu/drm/gma500/gem.c |  19 +--
 drivers/gpu/drm/gma500/gma_display.c |  13 +-
 drivers/gpu/drm/gma500/gtt.c |   1 +
 drivers/gpu/drm/gma500/psb_drv.h |   2 +
 include/drm/drmP.h   |   2 +
 include/drm/drm_atomic_helper.h  |   8 ++
 include/drm/drm_modes.h  |   2 +
 include/drm/drm_modeset_lock.h   |   4 +-
 17 files changed, 445 insertions(+), 97 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-11-26 Thread Daniel Vetter
Hi Dave,

I figured it's more than time to open up drm-next for 4.5 ;-)

Here's the first drm-misc pull, with really mostly misc stuff all over.
Somewhat invasive is only Ville's change to mark the arg struct for
fb_create const - that might conflict with a new driver pull. So better to
get in fast.

Cheers, Daniel


The following changes since commit 1ec218373b8ebda821aec00bb156a9c94fad9cd4:

  Linux 4.4-rc2 (2015-11-22 16:45:59 -0800)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-11-26

for you to fetch changes up to 87069f4493b2101a71a92b7b9565f488a605a88f:

  drm/mm: use list_next_entry (2015-11-25 16:22:58 +0100)


Archit Taneja (2):
  drm/imx: Remove local fbdev emulation Kconfig option
  drm/tegra: Remove local fbdev emulation Kconfig option

Daniel Vetter (4):
  drm: Update GEM refcounting docs
  drm/gem: Update/Polish docs
  drm/sysfs: Grab lock for edid/modes_show
  drm/sysfs: Send out uevent when connector->force changes

Geliang Tang (2):
  drm/mm: rewrite drm_mm_for_each_hole
  drm/mm: use list_next_entry

Jani Nikula (3):
  drm/dp: add eDP DPCD backlight control bit definitions
  drm: fix potential dangling else problems in for_each_ macros
  drm/i915: fix potential dangling else problems in for_each_ macros

LABBE Corentin (1):
  drm: modes: replace simple_strtoul by kstrtouint

Lukas Wunner (1):
  drm: Remove unused fbdev_list members

Maarten Lankhorst (1):
  drm/atomic: Small documentation fix.

Markus Elfring (1):
  GPU-DRM: Delete unnecessary checks before drm_property_unreference_blob()

Robert Fekete (1):
  drm: Describe the Rotation property bits.

Ville Syrjälä (4):
  drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
  drm: Keep coordinates in the typical x, y, w, h order instead of x, y, h, 
w
  drm: Add "prefix" parameter to drm_rect_debug_print()
  drm: Print the src/dst/clip rectangles in error in drm_plane_helper

 Documentation/DocBook/gpu.tmpl   |  48 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c  |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c   |   1 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h |   2 +-
 drivers/gpu/drm/armada/armada_fb.c   |   4 +-
 drivers/gpu/drm/armada/armada_fb.h   |   2 +-
 drivers/gpu/drm/ast/ast_drv.h|   3 +-
 drivers/gpu/drm/ast/ast_fb.c |   2 +-
 drivers/gpu/drm/ast/ast_main.c   |   4 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c |   2 +-
 drivers/gpu/drm/bochs/bochs.h|   2 +-
 drivers/gpu/drm/bochs/bochs_fbdev.c  |   2 +-
 drivers/gpu/drm/bochs/bochs_mm.c |   4 +-
 drivers/gpu/drm/cirrus/cirrus_drv.h  |   3 +-
 drivers/gpu/drm/cirrus/cirrus_fbdev.c|   2 +-
 drivers/gpu/drm/cirrus/cirrus_main.c |   4 +-
 drivers/gpu/drm/drm_atomic.c |  11 +--
 drivers/gpu/drm/drm_atomic_helper.c  |  19 +++--
 drivers/gpu/drm/drm_crtc.c   |   4 +-
 drivers/gpu/drm/drm_crtc_helper.c|   2 +-
 drivers/gpu/drm/drm_fb_cma_helper.c  |   4 +-
 drivers/gpu/drm/drm_gem.c|  35 -
 drivers/gpu/drm/drm_modes.c  |  16 ++--
 drivers/gpu/drm/drm_plane_helper.c   |   4 +
 drivers/gpu/drm/drm_probe_helper.c   |  46 ++--
 drivers/gpu/drm/drm_rect.c   |   7 +-
 drivers/gpu/drm/drm_sysfs.c  |  54 +++---
 drivers/gpu/drm/exynos/exynos_drm_fb.c   |   4 +-
 drivers/gpu/drm/exynos/exynos_drm_fb.h   |   2 +-
 drivers/gpu/drm/gma500/framebuffer.c |   6 +-
 drivers/gpu/drm/i915/i915_drv.h  |  12 +--
 drivers/gpu/drm/i915/intel_display.c |   4 +-
 drivers/gpu/drm/i915/intel_drv.h |   2 -
 drivers/gpu/drm/i915/intel_dsi.h |   2 +-
 drivers/gpu/drm/i915/intel_runtime_pm.c  |   4 +-
 drivers/gpu/drm/i915/intel_sprite.c  |   8 +-
 drivers/gpu/drm/imx/Kconfig  |   9 ---
 drivers/gpu/drm/imx/imx-drm-core.c   |  12 +--
 drivers/gpu/drm/mgag200/mgag200_drv.h|   2 +-
 drivers/gpu/drm/mgag200/mgag200_fb.c |   2 +-
 drivers/gpu/drm/mgag200/mgag200_main.c   |   4 +-
 drivers/gpu/drm/msm/msm_drv.h|   4 +-
 drivers/gpu/drm/msm/msm_fb.c |   4 +-
 drivers/gpu/drm/nouveau/nouveau_display.c|   4 +-
 drivers/gpu/drm/nouveau/nouveau_display.h|   2 +-
 drivers/gpu/drm/nouveau/nouveau_fbcon.h  |   1 -
 drivers/gpu/drm/omapdrm/omap_drv.h   |   6 +-
 drivers/gpu/drm/omapdrm/omap_fb.c|   4 +-
 drivers/gpu/drm/qxl/qxl_display.c|   4 +-
 drivers/gpu/drm/qxl/qxl_drv.h|   2 +-
 drivers/gpu/drm/qxl/qxl_fb.c |   3 +-
 drivers/gpu/drm/radeon/radeon_display.c  |   4 +-

[PULL] topic/drm-misc

2015-10-22 Thread Daniel Vetter
Hi Dave,

Few more drm-misc stragglers for 4.4. Big thing is the generic probe for
imx/rockchip/armada (but the variant for msm/rpi/exynos is still missing).

Also the hdmi clocking fixes from Ville which was a lot of confusion about
which tree it should be applied to ;-)

Cheers, Daniel


The following changes since commit affa0e033b04996700434312c76df3c78f683870:

  Merge tag 'topic/drm-misc-2015-10-19' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-10-20 09:01:49 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-10-22

for you to fetch changes up to 48aa1e748f29373fdcc2bc341eac08ef16bff269:

  drm: correctly check failed allocation (2015-10-21 09:27:30 +0200)


Insu Yun (1):
  drm: correctly check failed allocation

Liviu Dudau (4):
  drm: Introduce generic probe function for component based masters.
  drm/imx: Convert the probe function to the generic 
drm_of_component_probe()
  drm/rockchip: Convert the probe function to the generic 
drm_of_component_probe()
  drm/armada: Convert the probe function to the generic 
drm_of_component_probe()

Lukas Wunner (1):
  vga_switcheroo: Constify vga_switcheroo_handler

Ville Syrjälä (2):
  drm/edid: Fix up clock for CEA/HDMI modes specified via detailed timings
  drm/edid: Round to closest when computing the CEA/HDMI alternate clock

 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c |  2 +-
 drivers/gpu/drm/armada/armada_drv.c  | 68 +-
 drivers/gpu/drm/drm_crtc.c   | 30 
 drivers/gpu/drm/drm_edid.c   | 52 +-
 drivers/gpu/drm/drm_of.c | 88 
 drivers/gpu/drm/imx/imx-drm-core.c   | 55 ++-
 drivers/gpu/drm/nouveau/nouveau_acpi.c   |  2 +-
 drivers/gpu/drm/radeon/radeon_atpx_handler.c |  2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c  | 81 ++
 drivers/gpu/vga/vga_switcheroo.c |  4 +-
 drivers/platform/x86/apple-gmux.c|  2 +-
 include/drm/drm_of.h | 13 
 include/linux/vga_switcheroo.h   |  4 +-
 13 files changed, 218 insertions(+), 185 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-10-19 Thread Daniel Vetter
Hi Dave,

More drm-misc for 4.4.
- fb refcount fix in atomic fbdev
- various locking reworks to reduce drm_global_mutex and dev->struct_mutex
- rename docbook to gpu.tmpl and include vga_switcheroo stuff, plus more
  vga_switcheroo (Lukas Wunner)
- viewport check fixes for atomic drivers from Ville
- DRM_DEBUG_VBL from Ville
- non-contentious header fixes from Mikko Rapeli
- small things all over

Cheers, Daniel


The following changes since commit b44f84081b8db1b5830cbd30280ba1109cc1a084:

  drm: Stop using drm_vblank_count() as the hw frame counter (2015-10-07 
16:13:52 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-10-19

for you to fetch changes up to a0fb6ad7ae28a4dce34c010028dc070eeacae1d9:

  drm/fb-helper: Fix fb refcounting in pan_display_atomic (2015-10-19 11:00:48 
+0200)


Adam Richter (1):
  drm: fix mutex leak in drm_dp_get_mst_branch_device

Daniel Vetter (11):
  drm/i915: Mark getparam ioctl as DRM_UNLOCKED
  drm: Enforce unlocked ioctl operation for kms driver ioctls
  drm/: Drop DRM_UNLOCKED from modeset drivers
  drm/doc: Rename docbook to gpu.tmpl
  drm/gem: Drop struct_mutex requirement from drm_gem_mmap_obj
  drm/gem: Check locking in drm_gem_object_unreference
  drm/gem: Use container_of in drm_gem_object_free
  drm/vgem: Drop vgem_drm_gem_mmap
  drm/gem: Use kref_get_unless_zero for the weak mmap references
  drm/fb-helper: Set plane rotation directly
  drm/fb-helper: Fix fb refcounting in pan_display_atomic

Lukas Wunner (8):
  vga_switcheroo: Use enum vga_switcheroo_state instead of int
  vga_switcheroo: Use VGA_SWITCHEROO_UNKNOWN_ID instead of -1
  vga_switcheroo: Use enum vga_switcheroo_client_id instead of int
  gpu/doc: Fix up remaining occurrences of old document title
  gpu/doc: Add vga_switcheroo documentation
  gpu/doc: Convert to markdown harder
  drm: Fix return value of drm_framebuffer_init()
  ALSA: hda - Spell vga_switcheroo consistently

Mikko Rapeli (3):
  savage_drm.h: include 
  r128_drm.h: include drm/drm.h
  drm/i810_drm.h: include drm/drm.h

Rob Clark (1):
  drm: misc cleanup

Ville Syrjälä (7):
  drm: Don't use '\' for string literal concatenation
  drm: Add DRM_DEBUG_VBL()
  drm: Don't leak fb when plane crtc coodinates are bad
  drm: Swap w/h when converting the mode to src coordidates for a rotated 
primary plane
  drm: Refactor plane src coordinate checks
  drm: Check crtc viewport correctly with rotated primary plane on atomic 
drivers
  drm: Check plane src coordinates correctly during page flip for atomic 
drivers

 Documentation/DocBook/Makefile   |  2 +-
 Documentation/DocBook/{drm.tmpl => gpu.tmpl} | 94 
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c  | 24 +++
 drivers/gpu/drm/armada/armada_drv.c  |  9 +--
 drivers/gpu/drm/drm_atomic_helper.c  |  9 ++-
 drivers/gpu/drm/drm_crtc.c   | 81 +---
 drivers/gpu/drm/drm_dp_mst_topology.c|  7 ++-
 drivers/gpu/drm/drm_drv.c|  4 +-
 drivers/gpu/drm/drm_fb_helper.c  | 35 ---
 drivers/gpu/drm/drm_gem.c| 47 +-
 drivers/gpu/drm/drm_gem_cma_helper.c |  2 -
 drivers/gpu/drm/drm_ioctl.c  | 10 ++-
 drivers/gpu/drm/drm_irq.c| 26 
 drivers/gpu/drm/drm_vma_manager.c| 40 
 drivers/gpu/drm/exynos/exynos_drm_drv.c  | 20 +++---
 drivers/gpu/drm/i915/i915_dma.c  | 70 ++---
 drivers/gpu/drm/msm/msm_drv.c| 14 ++---
 drivers/gpu/drm/msm/msm_fbdev.c  |  5 --
 drivers/gpu/drm/msm/msm_gem_prime.c  |  2 -
 drivers/gpu/drm/nouveau/nouveau_drm.c| 24 +++
 drivers/gpu/drm/omapdrm/omap_crtc.c  |  3 -
 drivers/gpu/drm/omapdrm/omap_drv.c   | 12 ++--
 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c|  3 -
 drivers/gpu/drm/qxl/qxl_ioctl.c  | 14 ++---
 drivers/gpu/drm/radeon/radeon_kms.c  | 30 -
 drivers/gpu/drm/rockchip/rockchip_drm_gem.c  |  3 -
 drivers/gpu/drm/tegra/drm.c  | 28 -
 drivers/gpu/drm/vgem/vgem_drv.c  | 55 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  | 54 
 drivers/gpu/vga/vga_switcheroo.c | 36 ++-
 include/drm/drmP.h   | 11 +++-
 include/drm/drm_crtc.h   |  5 --
 include/drm/drm_gem.h|  5 +-
 include/drm/drm_vma_manager.h| 24 +++
 include/linux/vga_switcheroo.h   | 14 +++--
 include/uapi/drm/i810_drm.h  |  2 +
 include/uapi/drm/r128_drm.h  |  2 +
 include/uapi/drm/savage_drm.h   

[PULL] topic/drm-misc

2015-10-08 Thread Daniel Vetter
Hi Dave,

Another round of drm-misc. Unfortunately the DRM_UNLOCKED removal for
DRIVER_MODESET isn't complete yet for lack of review on 1-2 patches.
Otherwise just various stuff all over.

Cheers, Daniel


The following changes since commit 2d4df13c0f9ef56452b1d9a9016cb3946e17bfe5:

  Merge tag 'topic/drm-misc-2015-09-25' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-09-30 08:35:45 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-10-08

for you to fetch changes up to b44f84081b8db1b5830cbd30280ba1109cc1a084:

  drm: Stop using drm_vblank_count() as the hw frame counter (2015-10-07 
16:13:52 +0200)


Daniel Vetter (8):
  drm/doc: Update docs about device instance setup
  drm: Remove __OS_HAS_AGP
  drm: Define a drm_invalid_op ioctl implementation
  drm/drm_ioctl.c: kerneldoc
  drm/vmwgfx: Stop checking for DRM_UNLOCKED
  drm: Remove dummy agp ioctl wrappers
  drm/i915: Remove setparam ioctl
  drm: Hack around CONFIG_AGP=m build failures

Joonas Lahtinen (2):
  drm: Add DRM_ROTATE_MASK and DRM_REFLECT_MASK
  drm: Use DRM_ROTATE_MASK and DRM_REFLECT_MASK

Lukas Wunner (1):
  vga_switcheroo: Add missing locking

Rasmus Villemoes (1):
  vgaarb: use kzalloc in vga_arbiter_add_pci_device()

Thierry Reding (1):
  drm/irq: Use unsigned int pipe in public API

Ville Syrjälä (2):
  drm: Don't zero vblank timestamps from the irq handler
  drm: Stop using drm_vblank_count() as the hw frame counter

 Documentation/DocBook/drm.tmpl  | 100 +---
 drivers/gpu/drm/Makefile|   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu.h |   8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c |   9 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c |  36 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h|   9 +--
 drivers/gpu/drm/armada/armada_drv.c |  10 +--
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c|   8 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |   2 +-
 drivers/gpu/drm/drm_agpsupport.c|   4 -
 drivers/gpu/drm/drm_bufs.c  |   6 +-
 drivers/gpu/drm/drm_crtc.c  |   3 +-
 drivers/gpu/drm/drm_drv.c   |  55 -
 drivers/gpu/drm/drm_ioc32.c |   6 +-
 drivers/gpu/drm/drm_ioctl.c |  83 ++--
 drivers/gpu/drm/drm_irq.c   |  26 +-
 drivers/gpu/drm/drm_memory.c|   6 +-
 drivers/gpu/drm/drm_pci.c   |  11 +++
 drivers/gpu/drm/drm_platform.c  |   3 +
 drivers/gpu/drm/drm_rect.c  |   4 +-
 drivers/gpu/drm/drm_vm.c|   8 +-
 drivers/gpu/drm/exynos/exynos_drm_crtc.c|   4 +-
 drivers/gpu/drm/exynos/exynos_drm_crtc.h|   4 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.c |   2 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c   |   7 +-
 drivers/gpu/drm/gma500/psb_drv.h|   6 +-
 drivers/gpu/drm/gma500/psb_irq.c|   8 +-
 drivers/gpu/drm/gma500/psb_irq.h|   6 +-
 drivers/gpu/drm/i915/i915_debugfs.c |   1 -
 drivers/gpu/drm/i915/i915_dma.c |  33 +---
 drivers/gpu/drm/i915/i915_drv.h |   1 -
 drivers/gpu/drm/i915/i915_gem_fence.c   |   2 +-
 drivers/gpu/drm/i915/i915_irq.c |  34 
 drivers/gpu/drm/imx/imx-drm-core.c  |  10 +--
 drivers/gpu/drm/mga/mga_dma.c   |   4 +-
 drivers/gpu/drm/mga/mga_drv.h   |   6 +-
 drivers/gpu/drm/mga/mga_irq.c   |  20 ++---
 drivers/gpu/drm/msm/msm_drv.c   |  14 ++--
 drivers/gpu/drm/nouveau/nouveau_bo.c|   8 +-
 drivers/gpu/drm/nouveau/nouveau_display.c   |  23 +++---
 drivers/gpu/drm/nouveau/nouveau_display.h   |  12 +--
 drivers/gpu/drm/nouveau/nouveau_drm.c   |   2 +-
 drivers/gpu/drm/omapdrm/omap_drv.c  |   2 +-
 drivers/gpu/drm/omapdrm/omap_drv.h  |   4 +-
 drivers/gpu/drm/omapdrm/omap_fb.c   |   4 +-
 drivers/gpu/drm/omapdrm/omap_irq.c  |  16 ++--
 drivers/gpu/drm/omapdrm/omap_plane.c|   2 +-
 drivers/gpu/drm/qxl/qxl_drv.c   |   7 +-
 drivers/gpu/drm/r128/r128_cce.c |  12 +--
 drivers/gpu/drm/r128/r128_drv.h |   6 +-
 drivers/gpu/drm/r128/r128_irq.c |  16 ++--
 drivers/gpu/drm/radeon/r600_cp.c|  14 ++--
 drivers/gpu/drm/radeon/radeon_agp.c |   8 +-
 drivers/gpu/drm/radeon/radeon_cp.c  |  16 ++--
 drivers/gpu/drm/radeon/radeon_display.c |  25 +++---
 drivers/gpu/drm/radeon/radeon_drv.c |  13 ++-
 

[PULL] topic/drm-misc

2015-09-25 Thread Daniel Vetter
Hi Dave,

Another attempt at drm-misc for 4.4 ...
- better atomic helpers for runtime pm drivers
- atomic fbdev
- dp aux i2c STATUS_UPDATE handling (for short i2c replies from the sink)
- bunch of constify patches
- inital kerneldoc for vga switcheroo
- some vblank code cleanups from Ville and Thierry
- various polish all over

Cheers, Daniel


The following changes since commit 1f93e4a96c9109378204c147b3eec0d0e8100fde:

  Linux 4.3-rc2 (2015-09-20 14:32:34 -0700)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-09-25

for you to fetch changes up to cf6483050e9bf13979415d9fd388554d8c8f3477:

  drm/irq: Add drm_crtc_vblank_count_and_time() (2015-09-24 20:27:17 +0200)


Bob Paauwe (1):
  dtrm/edid: Allow comma separated edid binaries. (v3)

Daniel Vetter (9):
  drm/atomic-helper: properly annotate functions in kerneldoc
  drm/fb-helper: Use -errno return in restore_mode_unlocked
  drm: Make drm_fb_unregister/remove accept NULL fb
  drm/fb-helper: Add module option to disable fbdev emulation
  drm/atomic: refuse changing CRTC for planes directly
  drm/atomic-helper: Add option to update planes only on active crtc
  drm/atomic-helper: Pimp docs with recommendations for rpm drivers
  drm: Nuke drm_framebuffer->helper_private
  Merge tag 'v4.3-rc2' into topic/drm-misc

Danilo Cesar Lemes de Paula (1):
  drm/doc: Fixing xml documentation warning

David Herrmann (2):
  drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()
  drm: move drm_class into drm_sysfs.c

Geliang Tang (2):
  drm: fix kernel-doc warnings in drm_crtc.h
  drm: drm_atomic_crtc_get_property should be static

Gustavo Padovan (1):
  drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers

Laurent Pinchart (1):
  drm/atomic-helper: Don't skip plane disabling on active CRTC

Lukas Wunner (4):
  vga_switcheroo: Document _ALL_ the things!
  drm: Spell vga_switcheroo consistently
  vga_switcheroo: Sort headers alphabetically
  vga_switcheroo: Set active attribute to false for audio clients

Maarten Lankhorst (5):
  drm/atomic: Make sure lock is held in trylock contexts.
  drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.
  drm/core: Do not call drm_framebuffer_remove internally during teardown.
  drm/core: Preserve the framebuffer after removing it.
  drm/core: Preserve the fb id on close.

Matt Roper (1):
  drm/fbdev: Update legacy plane->fb refcounting for atomic restore

Michel Thierry (1):
  drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust

Rob Clark (5):
  drm: cleanup modesetting ioctls, one param per line
  drm/fb-helper: add headerdoc for drm_fb_helper
  drm/fb-helper: atomic restore_fbdev_mode()..
  drm/fb-helper: atomic pan_display()..
  drm/i915: enable atomic fb-helper

Thierry Reding (4):
  drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()
  drm/gma500: Remove DP_LINK_STATUS_SIZE redefinition
  drm/irq: Rename drm_crtc -> crtc
  drm/irq: Add drm_crtc_vblank_count_and_time()

Ville Syrjälä (21):
  drm: Constify generic_edid_names[]
  drm: Constify TV mode names
  drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[]
  drm/dp: s/I2C_STATUS/I2C_WRITE_STATUS_UPDATE/
  drm/i915: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/radeon: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/tegra: Handle I2C_WRITE_STATUS_UPDATE for address only writes
  drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests
  drm: Make some modes const when iterating through them
  drm: Remove the 'mode' argument from drm_select_eld()
  drm: Make drm_av_sync_delay() 'mode' argument const
  drm: s/int crtc/unsigned int pipe/ straggles
  drm: Move timestamping constants into drm_vblank_crtc
  drm: Stop using linedur_ns and pixeldur_ns for vblank timestamps
  drm: Kill pixeldur_ns
  drm/i915: Fix vblank count variable types
  drm: Pass flags to drm_update_vblank_count()
  drm: Limit the number of .get_vblank_counter() retries
  drm: Clean up drm_calc_vbltimestamp_from_scanoutpos() vbl_status
  drm: store_vblank() is never called with NULL timestamp
  drm: Use vblank timestamps to guesstimate how many vblanks were missed

 Documentation/DocBook/drm.tmpl  |   2 +-
 Documentation/kernel-parameters.txt |  15 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c |  11 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h|   3 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |   4 +-
 drivers/gpu/drm/drm_atomic.c|  28 +-
 drivers/gpu/drm/drm_atomic_helper.c | 316 --
 drivers/gpu/drm/drm_crtc.c  |  

[PULL] topic/drm-misc

2015-09-22 Thread Daniel Vetter
On Tue, Sep 22, 2015 at 11:05:00AM +0200, Daniel Vetter wrote:
> Hi Dave,
> 
> Updated drm-misc pull, now with backmerge and atomic fbdev:
> - better atomic helpers for runtime pm drivers
> - atomic fbdev
> - dp aux i2c STATUS_UPDATE handling (for short i2c replies from the sink)
> - bunch of constify patches
> - various polish all over
> - inital kerneldoc for vga switcheroo

Meh, generated pull before I update the remote with the merge and my
script didn't noticed ... updated pull below.
-Daniel

The following changes since commit 1f93e4a96c9109378204c147b3eec0d0e8100fde:

  Linux 4.3-rc2 (2015-09-20 14:32:34 -0700)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-09-22-fixed

for you to fetch changes up to 20ede1adf4d9bef298ceec137a23d6faa0f323d8:

  Merge tag 'v4.3-rc2' into topic/drm-misc (2015-09-22 11:02:18 +0200)


Bob Paauwe (1):
  dtrm/edid: Allow comma separated edid binaries. (v3)

Daniel Vetter (9):
  drm/atomic-helper: properly annotate functions in kerneldoc
  drm/fb-helper: Use -errno return in restore_mode_unlocked
  drm: Make drm_fb_unregister/remove accept NULL fb
  drm/fb-helper: Add module option to disable fbdev emulation
  drm/atomic: refuse changing CRTC for planes directly
  drm/atomic-helper: Add option to update planes only on active crtc
  drm/atomic-helper: Pimp docs with recommendations for rpm drivers
  drm: Nuke drm_framebuffer->helper_private
  Merge tag 'v4.3-rc2' into topic/drm-misc

Danilo Cesar Lemes de Paula (1):
  drm/doc: Fixing xml documentation warning

David Herrmann (2):
  drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()
  drm: move drm_class into drm_sysfs.c

Gustavo Padovan (1):
  drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers

Laurent Pinchart (1):
  drm/atomic-helper: Don't skip plane disabling on active CRTC

Lukas Wunner (1):
  vga_switcheroo: Document _ALL_ the things!

Maarten Lankhorst (3):
  drm/atomic: Make sure lock is held in trylock contexts.
  drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.
  drm/core: Do not call drm_framebuffer_remove internally during teardown.

Michel Thierry (1):
  drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust

Rob Clark (5):
  drm: cleanup modesetting ioctls, one param per line
  drm/fb-helper: add headerdoc for drm_fb_helper
  drm/fb-helper: atomic restore_fbdev_mode()..
  drm/fb-helper: atomic pan_display()..
  drm/i915: enable atomic fb-helper

Thierry Reding (1):
  drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()

Ville Syrjälä (11):
  drm: Constify generic_edid_names[]
  drm: Constify TV mode names
  drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[]
  drm/dp: s/I2C_STATUS/I2C_WRITE_STATUS_UPDATE/
  drm/i915: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/radeon: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/tegra: Handle I2C_WRITE_STATUS_UPDATE for address only writes
  drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests
  drm: Make some modes const when iterating through them
  drm: Remove the 'mode' argument from drm_select_eld()
  drm: Make drm_av_sync_delay() 'mode' argument const

 Documentation/kernel-parameters.txt |  15 ++--
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |   4 +-
 drivers/gpu/drm/drm_atomic.c|  25 +++
 drivers/gpu/drm/drm_atomic_helper.c | 316 
+++-
 drivers/gpu/drm/drm_crtc.c  |  18 +++--
 drivers/gpu/drm/drm_dp_helper.c |  44 ++--
 drivers/gpu/drm/drm_drv.c   |   8 +--
 drivers/gpu/drm/drm_edid.c  |   8 +--
 drivers/gpu/drm/drm_edid_load.c |  43 ---
 drivers/gpu/drm/drm_fb_helper.c | 178 
++---
 drivers/gpu/drm/drm_internal.h  |   2 +-
 drivers/gpu/drm/drm_mm.c|   6 +-
 drivers/gpu/drm/drm_modeset_lock.c  |   2 +
 drivers/gpu/drm/drm_plane_helper.c  |   6 +-
 drivers/gpu/drm/drm_sysfs.c |  49 ++---
 drivers/gpu/drm/exynos/exynos_drm_drv.c |   2 +-
 drivers/gpu/drm/i2c/ch7006_drv.c|   6 +-
 drivers/gpu/drm/i2c/ch7006_mode.c   |  26 +++
 drivers/gpu/drm/i2c/ch7006_priv.h   |  12 ++--
 drivers/gpu/drm/i915/intel_audio.c  |   2 +-
 drivers/gpu/drm/i915/intel_display.c|   9 ++-
 drivers/gpu/drm/i915/intel_dp.c |   1 +
 drivers/gpu/drm/i915/intel_drv.h|   2 -
 drivers/gpu/drm/i915/intel_fbdev.c  |   2 +
 

[PULL] topic/drm-misc

2015-09-22 Thread Daniel Vetter
Hi Dave,

Updated drm-misc pull, now with backmerge and atomic fbdev:
- better atomic helpers for runtime pm drivers
- atomic fbdev
- dp aux i2c STATUS_UPDATE handling (for short i2c replies from the sink)
- bunch of constify patches
- various polish all over
- inital kerneldoc for vga switcheroo

Cheers, Daniel


The following changes since commit 73bf1b7be7aab60d7c651402441dd0b0b4991098:

  Merge branch 'drm-next-4.3' of git://people.freedesktop.org/~agd5f/linux into 
drm-next (2015-09-05 07:46:09 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-09-22

for you to fetch changes up to 28cc504e8d52248962f5b485bdc65f539e3fe21d:

  drm/i915: enable atomic fb-helper (2015-09-16 11:40:03 -0700)


Bob Paauwe (1):
  dtrm/edid: Allow comma separated edid binaries. (v3)

Daniel Vetter (8):
  drm/atomic-helper: properly annotate functions in kerneldoc
  drm/fb-helper: Use -errno return in restore_mode_unlocked
  drm: Make drm_fb_unregister/remove accept NULL fb
  drm/fb-helper: Add module option to disable fbdev emulation
  drm/atomic: refuse changing CRTC for planes directly
  drm/atomic-helper: Add option to update planes only on active crtc
  drm/atomic-helper: Pimp docs with recommendations for rpm drivers
  drm: Nuke drm_framebuffer->helper_private

Danilo Cesar Lemes de Paula (1):
  drm/doc: Fixing xml documentation warning

David Herrmann (2):
  drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()
  drm: move drm_class into drm_sysfs.c

Gustavo Padovan (1):
  drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers

Laurent Pinchart (1):
  drm/atomic-helper: Don't skip plane disabling on active CRTC

Maarten Lankhorst (3):
  drm/atomic: Make sure lock is held in trylock contexts.
  drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.
  drm/core: Do not call drm_framebuffer_remove internally during teardown.

Michel Thierry (1):
  drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust

Rob Clark (5):
  drm: cleanup modesetting ioctls, one param per line
  drm/fb-helper: add headerdoc for drm_fb_helper
  drm/fb-helper: atomic restore_fbdev_mode()..
  drm/fb-helper: atomic pan_display()..
  drm/i915: enable atomic fb-helper

Thierry Reding (1):
  drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()

Ville Syrjälä (11):
  drm: Constify generic_edid_names[]
  drm: Constify TV mode names
  drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[]
  drm/dp: s/I2C_STATUS/I2C_WRITE_STATUS_UPDATE/
  drm/i915: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/radeon: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/tegra: Handle I2C_WRITE_STATUS_UPDATE for address only writes
  drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests
  drm: Make some modes const when iterating through them
  drm: Remove the 'mode' argument from drm_select_eld()
  drm: Make drm_av_sync_delay() 'mode' argument const

 Documentation/kernel-parameters.txt |  15 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |   4 +-
 drivers/gpu/drm/drm_atomic.c|  25 ++
 drivers/gpu/drm/drm_atomic_helper.c | 316 ++--
 drivers/gpu/drm/drm_crtc.c  |  18 +-
 drivers/gpu/drm/drm_dp_helper.c |  43 +++-
 drivers/gpu/drm/drm_drv.c   |   8 +-
 drivers/gpu/drm/drm_edid.c  |   8 +-
 drivers/gpu/drm/drm_edid_load.c |  43 +++-
 drivers/gpu/drm/drm_fb_helper.c | 178 -
 drivers/gpu/drm/drm_internal.h  |   2 +-
 drivers/gpu/drm/drm_mm.c|   6 +-
 drivers/gpu/drm/drm_modeset_lock.c  |   2 +
 drivers/gpu/drm/drm_plane_helper.c  |   6 +-
 drivers/gpu/drm/drm_sysfs.c |  49 ++--
 drivers/gpu/drm/exynos/exynos_drm_drv.c |   2 +-
 drivers/gpu/drm/i2c/ch7006_drv.c|   6 +-
 drivers/gpu/drm/i2c/ch7006_mode.c   |  26 +-
 drivers/gpu/drm/i2c/ch7006_priv.h   |  12 +-
 drivers/gpu/drm/i915/intel_audio.c  |   2 +-
 drivers/gpu/drm/i915/intel_display.c|   9 +-
 drivers/gpu/drm/i915/intel_dp.c |   1 +
 drivers/gpu/drm/i915/intel_drv.h|   2 -
 drivers/gpu/drm/i915/intel_fbdev.c  |   2 +
 drivers/gpu/drm/i915/intel_tv.c |   4 +-
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c   |  10 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c   |  10 +-
 drivers/gpu/drm/msm/msm_atomic.c|   2 +-
 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c  |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.h   |   2 +-
 drivers/gpu/drm/omapdrm/omap_drv.c  |   2 +-
 

[PULL] topic/drm-misc

2015-09-22 Thread Dave Airlie
On 17 September 2015 at 00:45, Daniel Vetter  wrote:
> On Mon, Sep 14, 2015 at 8:22 AM, Daniel Vetter  
> wrote:
>> Hi Dave,
>>
>> -rc1 is out the door and here's my first pull request for drm-next. It's
>> all over:
>> - better atomic helpers for runtime pm drivers
>> - atomic fbdev
>
> David Herrmann just pointed out to me that atomic fbdev isn't actually
> in this pull. Just checked my mails and it looks like there's some
> small things pending for the kerneldoc. I'll do a separate pull for
> atomic fbdev when I'm back from xdc.
> -Daniel

This also conflicts with -rc2, which I'm not really sure I like as the
first thing I pull in.

Dave.


[PULL] topic/drm-misc

2015-09-16 Thread Daniel Vetter
On Mon, Sep 14, 2015 at 8:22 AM, Daniel Vetter  
wrote:
> Hi Dave,
>
> -rc1 is out the door and here's my first pull request for drm-next. It's
> all over:
> - better atomic helpers for runtime pm drivers
> - atomic fbdev

David Herrmann just pointed out to me that atomic fbdev isn't actually
in this pull. Just checked my mails and it looks like there's some
small things pending for the kerneldoc. I'll do a separate pull for
atomic fbdev when I'm back from xdc.
-Daniel

> - dp aux i2c STATUS_UPDATE handling (for short i2c replies from the sink)
> - bunch of constify patches
> - various polish all over
>
> There's a few atomic drivers who want the goodies in here (at least rcar
> and i915).
>
> Cheers, Daniel
>
>
> The following changes since commit 73bf1b7be7aab60d7c651402441dd0b0b4991098:
>
>   Merge branch 'drm-next-4.3' of git://people.freedesktop.org/~agd5f/linux 
> into drm-next (2015-09-05 07:46:09 +1000)
>
> are available in the git repository at:
>
>   git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-09-14
>
> for you to fetch changes up to 216c59d65f99aa1ef1a92e1ae64f1f1c2590dddc:
>
>   drm/atomic-helper: Don't skip plane disabling on active CRTC (2015-09-13 
> 23:20:54 +0200)
>
> 
> Bob Paauwe (1):
>   dtrm/edid: Allow comma separated edid binaries. (v3)
>
> Daniel Vetter (8):
>   drm/atomic-helper: properly annotate functions in kerneldoc
>   drm/fb-helper: Use -errno return in restore_mode_unlocked
>   drm: Make drm_fb_unregister/remove accept NULL fb
>   drm/fb-helper: Add module option to disable fbdev emulation
>   drm/atomic: refuse changing CRTC for planes directly
>   drm/atomic-helper: Add option to update planes only on active crtc
>   drm/atomic-helper: Pimp docs with recommendations for rpm drivers
>   drm: Nuke drm_framebuffer->helper_private
>
> Danilo Cesar Lemes de Paula (1):
>   drm/doc: Fixing xml documentation warning
>
> David Herrmann (2):
>   drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()
>   drm: move drm_class into drm_sysfs.c
>
> Gustavo Padovan (1):
>   drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers
>
> Laurent Pinchart (1):
>   drm/atomic-helper: Don't skip plane disabling on active CRTC
>
> Maarten Lankhorst (3):
>   drm/atomic: Make sure lock is held in trylock contexts.
>   drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.
>   drm/core: Do not call drm_framebuffer_remove internally during teardown.
>
> Michel Thierry (1):
>   drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust
>
> Rob Clark (1):
>   drm: cleanup modesetting ioctls, one param per line
>
> Thierry Reding (1):
>   drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()
>
> Ville Syrjälä (11):
>   drm: Constify generic_edid_names[]
>   drm: Constify TV mode names
>   drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[]
>   drm/dp: s/I2C_STATUS/I2C_WRITE_STATUS_UPDATE/
>   drm/i915: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
>   drm/radeon: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
>   drm/tegra: Handle I2C_WRITE_STATUS_UPDATE for address only writes
>   drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests
>   drm: Make some modes const when iterating through them
>   drm: Remove the 'mode' argument from drm_select_eld()
>   drm: Make drm_av_sync_delay() 'mode' argument const
>
>  Documentation/kernel-parameters.txt |  15 +-
>  drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |   4 +-
>  drivers/gpu/drm/drm_atomic.c|  25 
>  drivers/gpu/drm/drm_atomic_helper.c | 185 
> 
>  drivers/gpu/drm/drm_crtc.c  |  18 ++-
>  drivers/gpu/drm/drm_dp_helper.c |  43 +-
>  drivers/gpu/drm/drm_drv.c   |   8 +-
>  drivers/gpu/drm/drm_edid.c  |   8 +-
>  drivers/gpu/drm/drm_edid_load.c |  43 --
>  drivers/gpu/drm/drm_fb_helper.c |  48 +-
>  drivers/gpu/drm/drm_internal.h  |   2 +-
>  drivers/gpu/drm/drm_mm.c|   6 +-
>  drivers/gpu/drm/drm_modeset_lock.c  |   2 +
>  drivers/gpu/drm/drm_plane_helper.c  |   6 +-
>  drivers/gpu/drm/drm_sysfs.c |  49 +++
>  drivers/gpu/drm/exynos/exynos_drm_drv.c |   2 +-
>  drivers/gpu/drm/i2c/ch7006_drv.c|   6 +-
>  drivers/gpu/drm/i2c/ch7006_mode.c   |  26 ++--
>  drivers/gpu/drm/i2c/ch7006_priv.h   |  12 +-
>  drivers/gpu/drm/i915/intel_audio.c  |   2 +-
>  drivers/gpu/drm/i915/intel_display.c|   9 +-
>  drivers/gpu/drm/i915/intel_dp.c |   1 +
>  drivers/gpu/drm/i915/intel_drv.h|   2 -
>  drivers/gpu/drm/i915/intel_tv.c

[PULL] topic/drm-misc

2015-09-14 Thread Daniel Vetter
Hi Dave,

-rc1 is out the door and here's my first pull request for drm-next. It's
all over:
- better atomic helpers for runtime pm drivers
- atomic fbdev
- dp aux i2c STATUS_UPDATE handling (for short i2c replies from the sink)
- bunch of constify patches
- various polish all over

There's a few atomic drivers who want the goodies in here (at least rcar
and i915).

Cheers, Daniel


The following changes since commit 73bf1b7be7aab60d7c651402441dd0b0b4991098:

  Merge branch 'drm-next-4.3' of git://people.freedesktop.org/~agd5f/linux into 
drm-next (2015-09-05 07:46:09 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-09-14

for you to fetch changes up to 216c59d65f99aa1ef1a92e1ae64f1f1c2590dddc:

  drm/atomic-helper: Don't skip plane disabling on active CRTC (2015-09-13 
23:20:54 +0200)


Bob Paauwe (1):
  dtrm/edid: Allow comma separated edid binaries. (v3)

Daniel Vetter (8):
  drm/atomic-helper: properly annotate functions in kerneldoc
  drm/fb-helper: Use -errno return in restore_mode_unlocked
  drm: Make drm_fb_unregister/remove accept NULL fb
  drm/fb-helper: Add module option to disable fbdev emulation
  drm/atomic: refuse changing CRTC for planes directly
  drm/atomic-helper: Add option to update planes only on active crtc
  drm/atomic-helper: Pimp docs with recommendations for rpm drivers
  drm: Nuke drm_framebuffer->helper_private

Danilo Cesar Lemes de Paula (1):
  drm/doc: Fixing xml documentation warning

David Herrmann (2):
  drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()
  drm: move drm_class into drm_sysfs.c

Gustavo Padovan (1):
  drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers

Laurent Pinchart (1):
  drm/atomic-helper: Don't skip plane disabling on active CRTC

Maarten Lankhorst (3):
  drm/atomic: Make sure lock is held in trylock contexts.
  drm/atomic: Make prepare_fb/cleanup_fb only take state, v3.
  drm/core: Do not call drm_framebuffer_remove internally during teardown.

Michel Thierry (1):
  drm/mm: Do DRM_MM_CREATE_TOP adj_start calculation after color_adjust

Rob Clark (1):
  drm: cleanup modesetting ioctls, one param per line

Thierry Reding (1):
  drm/atomic-helper: Implement drm_atomic_helper_duplicate_state()

Ville Syrjälä (11):
  drm: Constify generic_edid_names[]
  drm: Constify TV mode names
  drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[]
  drm/dp: s/I2C_STATUS/I2C_WRITE_STATUS_UPDATE/
  drm/i915: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/radeon: Handle DP_AUX_I2C_WRITE_STATUS_UPDATE
  drm/tegra: Handle I2C_WRITE_STATUS_UPDATE for address only writes
  drm/dp: Use I2C_WRITE_STATUS_UPDATE to drain partial I2C_WRITE requests
  drm: Make some modes const when iterating through them
  drm: Remove the 'mode' argument from drm_select_eld()
  drm: Make drm_av_sync_delay() 'mode' argument const

 Documentation/kernel-parameters.txt |  15 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c |   4 +-
 drivers/gpu/drm/drm_atomic.c|  25 
 drivers/gpu/drm/drm_atomic_helper.c | 185 
 drivers/gpu/drm/drm_crtc.c  |  18 ++-
 drivers/gpu/drm/drm_dp_helper.c |  43 +-
 drivers/gpu/drm/drm_drv.c   |   8 +-
 drivers/gpu/drm/drm_edid.c  |   8 +-
 drivers/gpu/drm/drm_edid_load.c |  43 --
 drivers/gpu/drm/drm_fb_helper.c |  48 +-
 drivers/gpu/drm/drm_internal.h  |   2 +-
 drivers/gpu/drm/drm_mm.c|   6 +-
 drivers/gpu/drm/drm_modeset_lock.c  |   2 +
 drivers/gpu/drm/drm_plane_helper.c  |   6 +-
 drivers/gpu/drm/drm_sysfs.c |  49 +++
 drivers/gpu/drm/exynos/exynos_drm_drv.c |   2 +-
 drivers/gpu/drm/i2c/ch7006_drv.c|   6 +-
 drivers/gpu/drm/i2c/ch7006_mode.c   |  26 ++--
 drivers/gpu/drm/i2c/ch7006_priv.h   |  12 +-
 drivers/gpu/drm/i915/intel_audio.c  |   2 +-
 drivers/gpu/drm/i915/intel_display.c|   9 +-
 drivers/gpu/drm/i915/intel_dp.c |   1 +
 drivers/gpu/drm/i915/intel_drv.h|   2 -
 drivers/gpu/drm/i915/intel_tv.c |   4 +-
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c   |  10 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c   |  10 +-
 drivers/gpu/drm/msm/msm_atomic.c|   2 +-
 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c  |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.h   |   2 +-
 drivers/gpu/drm/omapdrm/omap_drv.c  |   2 +-
 drivers/gpu/drm/omapdrm/omap_plane.c|  10 +-
 drivers/gpu/drm/radeon/atombios_dp.c|   1 +
 

[PULL] topic/drm-misc

2015-08-13 Thread Daniel Vetter
Hi Dave,

Final drm-misc pull for 4.3:
- fbdev emulation Kconfig option for everyone thanks to Archit. It's not
  everything yet bit this is fairly tricky since it spawns all drivers.
- vgaarb & vgaswitcheroo polish from Thierry
- some drm_irq.c cleanups (Thierry)
- struct_mutex crusade from me
- more fbdev panic handling removal
- various things all over in drm core

Note that this pull is relative to my earlier drm-misc pull that's still
outstanding, so please take them both.

Eric, this contains the patch to make encoder->mode_fixup optional I
talked about in my vc4 review. You can base vc4 on this tag here, it'll
stay stable.

Cheers, Daniel


The following changes since commit 8c10342cb48f3140d9abeadcfd2fa6625d447282:

  drm/atomic: Update legacy DPMS state during modesets, v3. (2015-07-27 
16:23:29 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-08-13

for you to fetch changes up to d4853630b334017cab9a4602f5e9677e3b792c8a:

  drm/atomic: Use KMS VBLANK API (2015-08-12 17:41:30 +0200)


Archit Taneja (25):
  drm/fb_helper: Add drm_fb_helper functions to manage fb_info creation
  drm/fb_helper: Create a wrapper for unlink_framebuffer
  drm/fb_helper: Create wrappers for fb_sys_read/write funcs
  drm/fb_helper: Create wrappers for blit, copyarea and fillrect funcs
  drm/fb_helper: Create a wrapper for fb_set_suspend
  drm/rockchip: Use new drm_fb_helper functions
  drm/armada: Use new drm_fb_helper functions
  drm/ast: Use new drm_fb_helper functions
  drm/tegra: Use new drm_fb_helper functions
  drm/msm: Use new drm_fb_helper functions
  drm/exynos: Use new drm_fb_helper functions
  drm/gma500: Use new drm_fb_helper functions
  drm/qxl: Use new drm_fb_helper functions
  drm/udl: Use new drm_fb_helper functions
  drm/fb_cma_helper: Use new drm_fb_helper functions
  drm/cirrus: Use new drm_fb_helper functions
  drm/omap: Use new drm_fb_helper functions
  drm/mgag200: Use new drm_fb_helper functions
  drm/radeon: Use new drm_fb_helper functions
  drm/i915: Use new drm_fb_helper functions
  drm/nouveau: Use new drm_fb_helper functions
  drm/bochs: Use new drm_fb_helper functions
  drm/amdgpu: Use new drm_fb_helper functions
  drm/virtio: Use new drm_fb_helper functions
  drm: Add top level Kconfig option for DRM fbdev emulation

Daniel Vetter (19):
  drm/omap: Fixup compile fail
  drm/fbdev: Return -EBUSY when oopsing
  drm/fb-helper: Stop using trylocks in force_restore
  drm: Remove __drm_modeset_lock_all
  drm: Fixup locking WARNINGs in drm_mode_config_reset
  drm/gem: Be more friendly with locking checks
  drm/ast: Don't grab dev->struct_mutex for in mmap offset ioctl
  drm/bochs: Don't grab dev->struct_mutex for in mmap offset ioctl
  drm/mga200g: Don't grab dev->struct_mutex for in mmap offset ioctl
  drm/mga200g: Hold a proper reference for cursor_set
  drm/cirrus: Don't grab dev->struct_mutex for in mmap offset ioctl
  drm/cma-helper: Don't grab dev->struct_mutex for in mmap offset ioctl
  drm/rockchip: Don't grab dev->struct_mutex for in mmap offset ioctl
  drm/nouveau: Don't take dev->struct_mutex in ttm_fini
  drm/qxl: Don't take dev->struct_mutex in bo_force_delete
  drm/edid: Use ARRAY_SIZE in drm_add_modes_noedid
  drm/atomic: Paper over locking WARN in default_state_clear
  drm/atomic: Call ww_acquire_done after check phase is complete
  drm/i915: Use CONFIG_DRM_FBDEV_EMULATION

Geert Uytterhoeven (2):
  drm/fb-helper: Clarify drm_fb_helper_restore_fbdev_mode*()
  drm/fb-helper: Move drm_fb_helper_force_kernel_mode() inside #ifdef

Inki Dae (1):
  drm/atomic: fix null pointer access to mode_fixup callback

Maarten Lankhorst (1):
  drm/core: Set mode to NULL when connectors in a set drops to 0.

Thierry Reding (16):
  drm: Remove two-level menu in Kconfig
  vgaarb: Stop complaining about absent devices
  vgaarb: Use vgaarb: prefix consistently in messages
  vgaarb: Fix a few checkpatch errors and warnings
  vga_switcheroo: Use pr_*() instead of printk()
  vga_switcheroo: Cleanup header comment
  vga_switcheroo: Use pr_fmt()
  vga_switcheroo: Wrap overly long lines
  vga_switcheroo: Remove unnecessary checks
  drm/plane: Use consistent data types for format count
  drm/plane: Remove redundant extern
  drm/irq: Remove negative CRTC index special-case
  drm/irq: Check for valid VBLANK before dereference
  drm/irq: Make pipe unsigned and name consistent
  drm/irq: Document return values more consistently
  drm/atomic: Use KMS VBLANK API

Viresh Kumar (1):
  drivers: gpu: Drop unlikely before IS_ERR(_OR_NULL)

 drivers/gpu/drm/Kconfig   |  20 ++
 drivers/gpu/drm/Makefile  

[PULL] topic/drm-misc

2015-07-28 Thread Daniel Vetter
Hi Dave,

More drm-misc, mostly fine-tuning of atomic helpers. They're mostly
driver-wide interface changes of the helpers and I need them for i915
work, so I plan to pull this tag into drm-intel-next too.

Cheers, Daniel


The following changes since commit dcd14dd957f02ef679c61325a2221a0574bdcab3:

  Merge tag 'topic/connector-locking-2015-07-23' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-07-24 14:30:29 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-07-28

for you to fetch changes up to 8c10342cb48f3140d9abeadcfd2fa6625d447282:

  drm/atomic: Update legacy DPMS state during modesets, v3. (2015-07-27 
16:23:29 +0200)


Maarten Lankhorst (4):
  drm/atomic: add connectors_changed to separate it from mode_changed, v2
  drm/atomic: pass old crtc state to atomic_begin/flush.
  drm: Make the connector dpms callback return a value, v2.
  drm/atomic: Update legacy DPMS state during modesets, v3.

Rodrigo Vivi (1):
  drm: Fix DP_TEST_COUNT_MASK

 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |   6 +-
 drivers/gpu/drm/drm_atomic_helper.c| 101 +
 drivers/gpu/drm/drm_crtc.c |   4 +-
 drivers/gpu/drm/drm_crtc_helper.c  |   9 ++-
 drivers/gpu/drm/drm_plane_helper.c |   4 +-
 drivers/gpu/drm/exynos/exynos_drm_crtc.c   |   6 +-
 drivers/gpu/drm/i915/intel_crt.c   |   8 +-
 drivers/gpu/drm/i915/intel_display.c   |  27 +++
 drivers/gpu/drm/i915/intel_drv.h   |   2 +-
 drivers/gpu/drm/i915/intel_dvo.c   |   8 +-
 drivers/gpu/drm/i915/intel_sdvo.c  |   8 +-
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c   |   6 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c   |   6 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c|   4 +-
 drivers/gpu/drm/radeon/radeon_dp_mst.c |   3 +-
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c |   6 +-
 drivers/gpu/drm/sti/sti_drm_crtc.c |   6 +-
 drivers/gpu/drm/tegra/dc.c |   6 +-
 drivers/gpu/drm/tegra/dsi.c|   3 +-
 drivers/gpu/drm/tegra/hdmi.c   |   5 +-
 drivers/gpu/drm/tegra/rgb.c|   5 +-
 drivers/gpu/drm/tegra/sor.c|   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h|   2 +-
 include/drm/drm_atomic.h   |   3 +-
 include/drm/drm_atomic_helper.h|   4 +-
 include/drm/drm_crtc.h |  10 ++-
 include/drm/drm_crtc_helper.h  |   8 +-
 include/drm/drm_dp_helper.h|   2 +-
 29 files changed, 169 insertions(+), 99 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-07-23 Thread Daniel Vetter
Hi Dave,

Update drm-misc pull request since the first one didn't go in yet. Few
atomic helper patches, rejecting some old dri1 crap for modern drivers and
a few trivial things on top.

Cheers, Daniel


The following changes since commit 8b72ce158cf0dba443e36fc66e0bb29c2580e0b6:

  drm: Always enable atomic API (2015-06-24 11:21:35 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-07-23

for you to fetch changes up to f9fe4b9b2ad4f2b801fdff3d634b07c9f9fc4327:

  drm/mgag200: remove unneeded variable (2015-07-17 08:50:45 +0200)


Chad Versace (1):
  drm/fourcc: Add formats R8, RG88, GR88

Daniel Vetter (6):
  drm: Convert drm_legacy_ctxbitmap_init to void return type
  drm: Reject DRI1 hw lock ioctl functions for kms drivers
  drm/crtc-helper: Fixup error handling in drm_helper_crtc_mode_set
  drm: reset empty state in transitional helpers
  drm: Update plane->fb also for page_flip
  drm/gem: rip out drm vma accounting for gem mmaps

Dave Airlie (1):
  drm/fb: drop panic handling

Jarkko Sakkinen (1):
  drm: remove redundant code form drm_ioc32.c

Maarten Lankhorst (3):
  drm/atomic: Update old_fb after setting a property.
  drm/atomic: Cleanup on error properly in the atomic ioctl.
  drm/atomic: Only update crtc->x/y if it's part of the state, v2.

Masanari Iida (1):
  drm: Fix warning with make xmldocs caused by drm_irq.c

Peter Antoine (1):
  drm: Turn off Legacy Context Functions

Sudip Mukherjee (2):
  drm/mgag200: remove unused variables
  drm/mgag200: remove unneeded variable

Thierry Reding (1):
  drm: Remove useless blank line

 drivers/gpu/drm/drm_atomic.c   | 76 --
 drivers/gpu/drm/drm_atomic_helper.c| 14 ---
 drivers/gpu/drm/drm_context.c  | 51 ++-
 drivers/gpu/drm/drm_crtc.c |  9 +---
 drivers/gpu/drm/drm_crtc_helper.c  | 24 +--
 drivers/gpu/drm/drm_drv.c  |  7 +---
 drivers/gpu/drm/drm_fb_helper.c| 26 
 drivers/gpu/drm/drm_gem.c  | 11 +
 drivers/gpu/drm/drm_ioc32.c| 55 
 drivers/gpu/drm/drm_irq.c  |  2 +-
 drivers/gpu/drm/drm_legacy.h   |  2 +-
 drivers/gpu/drm/drm_lock.c |  6 +++
 drivers/gpu/drm/drm_plane_helper.c | 16 ---
 drivers/gpu/drm/mgag200/mgag200_fb.c   |  2 -
 drivers/gpu/drm/mgag200/mgag200_mode.c |  9 ++--
 drivers/gpu/drm/mgag200/mgag200_ttm.c  |  8 +---
 drivers/gpu/drm/nouveau/nouveau_drm.c  |  3 +-
 include/drm/drmP.h | 23 +-
 include/uapi/drm/drm_fourcc.h  |  7 
 19 files changed, 178 insertions(+), 173 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-07-13 Thread Daniel Vetter
Hi Dave,

First pull request for 4.3! Random things all over, most of it more atomic
polish. Plus trying to reject more dri1 crap (the final bits afaik!), but
this time around with nouveau whitelisted to avoid breaking old userspace.

Aside: 4.2 vs 4.3 is a terrible conflict mess so I need you to roll
drm-next forward first before I can send you a pull with a proposed
solution.

Cheers, Daniel


The following changes since commit 8b72ce158cf0dba443e36fc66e0bb29c2580e0b6:

  drm: Always enable atomic API (2015-06-24 11:21:35 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-07-13

for you to fetch changes up to 1055e0687f581cf988bb2239a00d1396e18ef114:

  drm/fourcc: Add formats R8, RG88, GR88 (2015-07-09 15:12:41 +0200)


Chad Versace (1):
  drm/fourcc: Add formats R8, RG88, GR88

Daniel Vetter (5):
  drm: Convert drm_legacy_ctxbitmap_init to void return type
  drm: Reject DRI1 hw lock ioctl functions for kms drivers
  drm/crtc-helper: Fixup error handling in drm_helper_crtc_mode_set
  drm: reset empty state in transitional helpers
  drm: Update plane->fb also for page_flip

Jarkko Sakkinen (1):
  drm: remove redundant code form drm_ioc32.c

Maarten Lankhorst (2):
  drm/atomic: Update old_fb after setting a property.
  drm/atomic: Cleanup on error properly in the atomic ioctl.

Peter Antoine (1):
  drm: Turn off Legacy Context Functions

Thierry Reding (1):
  drm: Remove useless blank line

 drivers/gpu/drm/drm_atomic.c  | 76 +--
 drivers/gpu/drm/drm_atomic_helper.c   |  4 --
 drivers/gpu/drm/drm_context.c | 51 ++-
 drivers/gpu/drm/drm_crtc.c|  9 +
 drivers/gpu/drm/drm_crtc_helper.c | 24 +--
 drivers/gpu/drm/drm_drv.c |  7 +---
 drivers/gpu/drm/drm_ioc32.c   | 55 -
 drivers/gpu/drm/drm_legacy.h  |  2 +-
 drivers/gpu/drm/drm_lock.c|  6 +++
 drivers/gpu/drm/drm_plane_helper.c| 16 +---
 drivers/gpu/drm/nouveau/nouveau_drm.c |  3 +-
 include/drm/drmP.h| 23 ++-
 include/uapi/drm/drm_fourcc.h |  7 
 13 files changed, 163 insertions(+), 120 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-06-22 Thread Daniel Vetter
Hi Dave,

One more drm-misc pull for 4.2. The important one is the fix from Laurent
for Daniel Stone's mode_blob work.

Cheers, Daniel


The following changes since commit b9a1077a4e8f6961df8fd393fad2265249f015c5:

  Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into 
drm-next (2015-06-12 10:17:55 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-06-22

for you to fetch changes up to c30f55a7b1336cdfeac74c7931ebff40a32e72b7:

  drm/atomic: Don't set crtc_state->enable manually (2015-06-22 13:45:33 +0200)


Chris Wilson (1):
  drm: Avoid the double clflush on the last cache line in 
drm_clflush_virt_range()

Daniel Thompson (1):
  drm: prime: Document gem_prime_mmap

Daniel Vetter (1):
  drm/atomic: Extract needs_modeset function

Laurent Pinchart (1):
  drm/atomic: Don't set crtc_state->enable manually

Magnus Damm (1):
  drm/cma: Fix 64-bit size_t build warnings

Sonika Jindal (1):
  Documentation/drm: Update rotation property

 Documentation/DocBook/drm.tmpl   | 41 
 drivers/gpu/drm/drm_atomic.c |  3 +--
 drivers/gpu/drm/drm_atomic_helper.c  | 26 +++
 drivers/gpu/drm/drm_cache.c  |  5 +++--
 drivers/gpu/drm/drm_gem_cma_helper.c |  4 ++--
 drivers/gpu/drm/drm_prime.c  |  4 +++-
 include/drm/drm_atomic.h |  6 ++
 7 files changed, 45 insertions(+), 44 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-05-28 Thread Daniel Vetter
Hi Dave,

One more round of drm-misc, again mostly atomic. Big thing is the
userspace blob code from Daniel Stone, with support for the mode_id blob
now added to the atomic ioctl. Finally we can do atomic modesets!

Note that the atomic ioctl is still behind the module knob since the
weston patches aren't quite ready yet imo - they lack TEST_ONLY support,
which is a fairly crucial bit of the atomic api. But besides that I think
it's all good to go. That's also why we didn't bother to hide the new blob
ioctls behind the knob, that part won't need to change. And if weston
patches get in shape in time we could throw the "atomic by default patch"
on top for 4.2.

Cheers, Daniel


The following changes since commit bdcddf95e82b1c4e370fc1196b1f4f50f775dab4:

  Backmerge v4.1-rc4 into into drm-next (2015-05-20 16:23:53 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-05-27

for you to fetch changes up to 5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f:

  drm: Fix off-by-one in vblank hardware counter wraparound handling 
(2015-05-27 13:00:08 +0200)


Andrey Ryabinin (1):
  drm/atomic: fix out of bounds read in for_each_*_in_state helpers

Archit Taneja (2):
  drm: bridge: Allow daisy chaining of bridges
  drm/DocBook: Add more drm_bridge documentation

Daniel Stone (11):
  drm: kerneldoc fixes for blob properties
  drm/crtc_helper: Replace open-coded CRTC state helpers
  drm/mode: Validate modes inside drm_crtc_convert_umode
  drm/mode: Unstatic kernel-userspace mode conversion
  drm: Allow creating blob properties without copy
  drm: Return error value from blob creation
  drm/mode: Add user blob-creation ioctl
  drm: Retain reference to blob properties in lookup
  drm: Add drm_atomic_set_mode_for_crtc
  drm/atomic: Add current-mode blob to CRTC state
  drm/atomic: Add MODE_ID property

Daniel Vetter (1):
  drm: check for garbage in unused addfb2 fields

Maarten Lankhorst (3):
  drm/atomic: add commit_planes_on_crtc helper
  drm/atomic: add drm_atomic_add_affected_planes
  drm/atomic: add all affected planes in drm_atomic_helper_check_modeset

Michel Dänzer (1):
  drm: Fix off-by-one in vblank hardware counter wraparound handling

 Documentation/DocBook/drm.tmpl  |  12 ++
 drivers/gpu/drm/drm_atomic.c| 162 ++-
 drivers/gpu/drm/drm_atomic_helper.c | 117 ++
 drivers/gpu/drm/drm_bridge.c| 242 
 drivers/gpu/drm/drm_crtc.c  | 304 
 drivers/gpu/drm/drm_crtc_helper.c   | 101 +---
 drivers/gpu/drm/drm_fops.c  |   5 +-
 drivers/gpu/drm/drm_ioctl.c |   2 +
 drivers/gpu/drm/drm_irq.c   |   4 +-
 drivers/gpu/drm/drm_modes.c |  87 +++
 include/drm/drmP.h  |   4 +
 include/drm/drm_atomic.h|  34 ++--
 include/drm/drm_atomic_helper.h |   1 +
 include/drm/drm_crtc.h  |  27 +++-
 include/drm/drm_modes.h |   4 +
 include/uapi/drm/drm.h  |   2 +
 include/uapi/drm/drm_mode.h |  20 +++
 17 files changed, 923 insertions(+), 205 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-05-19 Thread Daniel Vetter
Hi Dave,

Scattering of random drm core patches. Bunch of atomic prep work too, but
the final bits for blob properties, atomic modesets and lifting the
experimental tag on the atomic ioctl are still blocked on Daniel Stone
finalizing and testing the weston support for it. I hope that we can get
it all ready for 4.2 though.

Cheers, Daniel


The following changes since commit c0fe07aa50befe2e6e6525181e2080377a1c1494:

  drm/qxl: rewrite framebuffer support (2015-05-07 13:09:25 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-05-19

for you to fetch changes up to 036ef5733ba433760a3512bb5f7a155946e2df05:

  drm/atomic: Allow drivers to subclass drm_atomic_state, v3 (2015-05-18 
16:39:41 +0200)


Daniel Stone (5):
  drm/atomic: Don't open-code CRTC state destroy
  drm: Don't leak path blob property when updating
  drm: Introduce helper for replacing blob properties
  drm: Introduce blob_lock
  drm: Add reference counting to blob properties

Daniel Vetter (2):
  drm/atomic-helpers: Update vblank timestamping constants
  drm/atomic-helpers: Export drm_atomic_helper_update_legacy_modeset_state

Gustavo Padovan (1):
  drm/atomic: remove duplicated assignment of old_plane_state

Jani Nikula (4):
  drm/sysfs: add a helper for extracting connector type from kobject
  drm/sysfs: make optional attribute groups per connector type
  drm/sysfs: split DVI-I and TV-out attributes
  drm/sysfs: remove unnecessary connector type checks

Jon Hunter (1):
  drm/dp: Fix comment in DP helper

Maarten Lankhorst (4):
  drm/i915: get rid of -Iinclude/drm
  drm/core: get rid of -Iinclude/drm
  drm/atomic: add drm_atomic_get_existing_*_state helpers
  drm/atomic: Allow drivers to subclass drm_atomic_state, v3

Tomasz Figa (1):
  drm/prime: Allow internal imports without import_sg_table

Ville Syrjälä (4):
  drm/edid: Fix up DMT modes
  drm/edid: Add the DMT ID in the comments
  drm/edid: Add DMT modes with ID > 0x50
  drm/edid: Add CEA modes before inferred modes

 drivers/gpu/drm/Makefile|   2 -
 drivers/gpu/drm/drm_atomic.c| 134 +
 drivers/gpu/drm/drm_atomic_helper.c |  29 ++-
 drivers/gpu/drm/drm_crtc.c  | 325 ++--
 drivers/gpu/drm/drm_crtc_helper.c   |   7 +-
 drivers/gpu/drm/drm_edid.c  | 206 +++-
 drivers/gpu/drm/drm_flip_work.c |   4 +-
 drivers/gpu/drm/drm_prime.c |   6 +-
 drivers/gpu/drm/drm_sysfs.c | 160 ++--
 drivers/gpu/drm/i915/Makefile   |   2 -
 drivers/gpu/drm/i915/i915_gem_userptr.c |   4 +-
 include/drm/drm_atomic.h|  55 ++
 include/drm/drm_atomic_helper.h |   4 +
 include/drm/drm_crtc.h  |  26 ++-
 include/drm/drm_dp_helper.h |   6 +-
 15 files changed, 696 insertions(+), 274 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-05-06 Thread Daniel Vetter
Hi Dave,

rc2 is out, time to open drm-next. Bunch of drm_irq.c patches from
Mario, magic/auth removal from David and a few other oddball things.

Cheers, Daniel


The following changes since commit 2b1193d5287004edfbf89407149a3159656f47f1:

  drm: fix trivial typo mistake (2015-04-14 12:41:03 +0200)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-05-06

for you to fetch changes up to 4a324d33bfe95a279d4c7370d84087d3e773e799:

  drm: simplify master cleanup (2015-05-05 09:46:38 +0200)


Daniel Vetter (3):
  drm/atomic-helper: Don't call atomic_update_plane when it stays off
  drm/vblank: Fixup and document timestamp update/read barriers
  drm/atomic-helper: Really recover pre-atomic plane/cursor behavior

David Herrmann (3):
  drm: drop unused 'magicfree' list
  drm: simplify authentication management
  drm: simplify master cleanup

Josef Holzmayr (1):
  DRM: Don't re-poll connector for disconnect

Mario Kleiner (3):
  drm: Prevent invalid use of vblank_disable_immediate. (v2)
  drm: Zero out invalid vblank timestamp in drm_update_vblank_count. (v2)
  drm/qxl: Fix qxl_noop_get_vblank_counter()

Oleg Drokin (1):
  drm: fix a memleak on mutex failure path

Todd Previte (2):
  drm: Fix the 'native defer' message in drm_dp_i2c_do_msg()
  drm: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling

 drivers/gpu/drm/drm_atomic_helper.c   |   9 +-
 drivers/gpu/drm/drm_auth.c| 178 ++
 drivers/gpu/drm/drm_dp_helper.c   |  12 +-
 drivers/gpu/drm/drm_drv.c |  20 +---
 drivers/gpu/drm/drm_fops.c|   7 +-
 drivers/gpu/drm/drm_internal.h|   1 -
 drivers/gpu/drm/drm_irq.c | 103 +
 drivers/gpu/drm/drm_modeset_lock.c|   8 +-
 drivers/gpu/drm/drm_probe_helper.c|   4 +-
 drivers/gpu/drm/i915/intel_atomic_plane.c |   4 -
 drivers/gpu/drm/qxl/qxl_drv.c |   2 +-
 include/drm/drmP.h|  14 ++-
 12 files changed, 132 insertions(+), 230 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-04-15 Thread Daniel Vetter
Hi Dave,

One more drm-misch pull for 4.1 with mostly simple stuff and boring
refactoring. Even the cursor fix from Matt is just to make a really anal
igt happy.

Cheers, Daniel


The following changes since commit 502e95c6678505474f1056480310cd9382bacbac:

  drm/vgem: implement virtual GEM (2015-04-02 09:21:48 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-04-15

for you to fetch changes up to 2b1193d5287004edfbf89407149a3159656f47f1:

  drm: fix trivial typo mistake (2015-04-14 12:41:03 +0200)


Ander Conselvan de Oliveira (1):
  drm/atomic: Add for_each_{connector,crtc,plane}_in_state helper macros

Jani Nikula (11):
  drm/exynos: constify all struct drm_*_helper funcs pointers
  drm/mgag200: constify all struct drm_*_helper funcs pointers
  drm/gma500: constify all struct drm_*_helper funcs pointers
  drm/radeon: constify all struct drm_*_helper funcs pointers
  drm/nouveau: constify all struct drm_*_helper funcs pointers
  drm/qxl: constify all struct drm_*_helper funcs pointers
  drm/drm: constify all struct drm_*_helper funcs pointers
  drm/edid: add #defines for ELD versions
  drm/radeon: constify more struct drm_*_helper funcs pointers
  drm/armada: constify struct drm_encoder_helper_funcs pointer
  drm: make crtc/encoder/connector/plane helper_private a const pointer

John Hunter (2):
  drm: Fix some typos
  drm: fix trivial typo mistake

Maarten Lankhorst (1):
  drm: Use kref_put_mutex in drm_gem_object_unreference_unlocked

Matt Roper (1):
  drm: Make integer overflow checking cover universal cursor updates (v2)

 drivers/gpu/drm/armada/armada_output.h  |   2 +-
 drivers/gpu/drm/drm_atomic.c|  66 ++-
 drivers/gpu/drm/drm_atomic_helper.c | 253 +++-
 drivers/gpu/drm/drm_crtc.c  |  22 +--
 drivers/gpu/drm/drm_crtc_helper.c   |  24 +--
 drivers/gpu/drm/drm_fb_helper.c |   8 +-
 drivers/gpu/drm/drm_plane_helper.c  |   4 +-
 drivers/gpu/drm/drm_probe_helper.c  |   2 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c|   2 +-
 drivers/gpu/drm/gma500/cdv_intel_display.c  |   2 +-
 drivers/gpu/drm/gma500/cdv_intel_hdmi.c |   2 +-
 drivers/gpu/drm/gma500/cdv_intel_lvds.c |   2 +-
 drivers/gpu/drm/gma500/gma_display.c|  10 +-
 drivers/gpu/drm/gma500/mdfld_dsi_output.c   |   2 +-
 drivers/gpu/drm/gma500/mdfld_intel_display.c|   2 +-
 drivers/gpu/drm/gma500/oaktrail_crtc.c  |   2 +-
 drivers/gpu/drm/gma500/oaktrail_hdmi.c  |   2 +-
 drivers/gpu/drm/gma500/psb_intel_display.c  |   2 +-
 drivers/gpu/drm/gma500/psb_intel_lvds.c |   2 +-
 drivers/gpu/drm/mgag200/mgag200_mode.c  |   2 +-
 drivers/gpu/drm/nouveau/dispnv04/crtc.c |   4 +-
 drivers/gpu/drm/nouveau/dispnv04/dac.c  |   4 +-
 drivers/gpu/drm/nouveau/dispnv04/dfp.c  |   4 +-
 drivers/gpu/drm/nouveau/dispnv04/disp.c |   6 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c   |   4 +-
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c   |   4 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c |   4 +-
 drivers/gpu/drm/qxl/qxl_drv.c   |   2 +-
 drivers/gpu/drm/radeon/radeon_connectors.c  |  20 +-
 drivers/gpu/drm/radeon/radeon_dp_mst.c  |   2 +-
 drivers/gpu/drm/radeon/radeon_legacy_encoders.c |   2 +-
 include/drm/drm_atomic.h|  24 +++
 include/drm/drm_crtc.h  |  10 +-
 include/drm/drm_crtc_helper.h   |   6 +-
 include/drm/drm_edid.h  |   2 +
 include/drm/drm_gem.h   |  14 +-
 include/drm/drm_plane_helper.h  |   2 +-
 37 files changed, 213 insertions(+), 314 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2015 at 04:29:56PM +0200, Daniel Vetter wrote:
> Hi Dave,
> 
> Final drm-misc pull for 4.0, just various things all over, including a few

s/4.0/4.1 ofc ;-)
-Daniel

> more important atomic fixes. btw I didn't pick up the vmwgfx patch from
> Ville's series, but one patch has one hunk touching vmwgfx and
> Thomas/Jakob didn't get around to ack it. I figured it's simple enough to
> be ok though.
> 
> Cheers, Daniel
> 
> 
> The following changes since commit ae10c2248593fb84c6951d67c98c9c934997e56a:
> 
>   Merge branch 'drm/next/rcar-du' of git://linuxtv.org/pinchartl/fbdev into 
> drm-next (2015-03-23 09:34:32 +1000)
> 
> are available in the git repository at:
> 
>   git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-03-31
> 
> for you to fetch changes up to 066626d5d5548d7ff63772a840b8d40a0d278825:
> 
>   drm: line wrap DRM_IOCTL_DEF* macros (2015-03-31 09:18:40 +0200)
> 
> 
> Ander Conselvan de Oliveira (2):
>   drm/atomic: Clear crtcs, connectors and planes when clearing state
>   drm/atomic: Don't try to free a NULL state
> 
> Daniel Stone (6):
>   drm: mode: Fix typo in kerneldoc
>   drm: fb_helper: Simplify exit condition
>   drm: mode: Allow NULL modes for equality check
>   drm: crtc_helper: Update hwmode before mode_set call
>   drm: atomic: Expose CRTC active property
>   drm: atomic: Allow setting CRTC active property
> 
> Daniel Vetter (1):
>   drm/atomic-helpers: Properly avoid full modeset dance
> 
> Emil Velikov (1):
>   drm: line wrap DRM_IOCTL_DEF* macros
> 
> Ville Syrjälä (6):
>   drm/dp: Print the number of bytes processed for aux nacks
>   drm: Fix DRM_IOCTL_DEF_DRV()
>   drm: Drop ioctl->cmd_drv
>   drm: Simplify core vs. drv ioctl handling
>   drm: Use max() to make the ioctl alloc size code cleaner
>   drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code
> 
>  drivers/gpu/drm/drm_atomic.c| 27 +
>  drivers/gpu/drm/drm_atomic_helper.c |  6 ++--
>  drivers/gpu/drm/drm_crtc_helper.c   |  9 +++---
>  drivers/gpu/drm/drm_dp_helper.c |  4 +--
>  drivers/gpu/drm/drm_fb_helper.c |  6 ++--
>  drivers/gpu/drm/drm_ioctl.c | 60 
> +
>  drivers/gpu/drm/drm_modes.c |  8 -
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |  4 +--
>  include/drm/drmP.h  | 10 +--
>  9 files changed, 80 insertions(+), 54 deletions(-)
> 
> -- 
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-03-31 Thread Daniel Vetter
Hi Dave,

Final drm-misc pull for 4.0, just various things all over, including a few
more important atomic fixes. btw I didn't pick up the vmwgfx patch from
Ville's series, but one patch has one hunk touching vmwgfx and
Thomas/Jakob didn't get around to ack it. I figured it's simple enough to
be ok though.

Cheers, Daniel


The following changes since commit ae10c2248593fb84c6951d67c98c9c934997e56a:

  Merge branch 'drm/next/rcar-du' of git://linuxtv.org/pinchartl/fbdev into 
drm-next (2015-03-23 09:34:32 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-03-31

for you to fetch changes up to 066626d5d5548d7ff63772a840b8d40a0d278825:

  drm: line wrap DRM_IOCTL_DEF* macros (2015-03-31 09:18:40 +0200)


Ander Conselvan de Oliveira (2):
  drm/atomic: Clear crtcs, connectors and planes when clearing state
  drm/atomic: Don't try to free a NULL state

Daniel Stone (6):
  drm: mode: Fix typo in kerneldoc
  drm: fb_helper: Simplify exit condition
  drm: mode: Allow NULL modes for equality check
  drm: crtc_helper: Update hwmode before mode_set call
  drm: atomic: Expose CRTC active property
  drm: atomic: Allow setting CRTC active property

Daniel Vetter (1):
  drm/atomic-helpers: Properly avoid full modeset dance

Emil Velikov (1):
  drm: line wrap DRM_IOCTL_DEF* macros

Ville Syrjälä (6):
  drm/dp: Print the number of bytes processed for aux nacks
  drm: Fix DRM_IOCTL_DEF_DRV()
  drm: Drop ioctl->cmd_drv
  drm: Simplify core vs. drv ioctl handling
  drm: Use max() to make the ioctl alloc size code cleaner
  drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code

 drivers/gpu/drm/drm_atomic.c| 27 +
 drivers/gpu/drm/drm_atomic_helper.c |  6 ++--
 drivers/gpu/drm/drm_crtc_helper.c   |  9 +++---
 drivers/gpu/drm/drm_dp_helper.c |  4 +--
 drivers/gpu/drm/drm_fb_helper.c |  6 ++--
 drivers/gpu/drm/drm_ioctl.c | 60 +
 drivers/gpu/drm/drm_modes.c |  8 -
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |  4 +--
 include/drm/drmP.h  | 10 +--
 9 files changed, 80 insertions(+), 54 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-03-18 Thread Daniel Vetter
Hi Dave,

Another drm-misch pull request. Mostly the fbdev sizes deconfusion series
from Rob, everything else is small stuff all over. And the large i2c over
aux transfers patch, too.

Cheers, Daniel


The following changes since commit 7eb5f302bbe78b88da8b2008c502c1975e75db05:

  drm: Check in setcrtc if the primary plane supports the fb pixel format 
(2015-03-10 09:59:36 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-03-18

for you to fetch changes up to 522cf91f30cb0102fd5cb6e8979d45b6151cdcfc:

  drm: check that planes types are correct while initializing CRTC (2015-03-17 
14:03:04 +0100)


Benjamin Gaignard (1):
  drm: check that planes types are correct while initializing CRTC

Daniel Vetter (1):
  drm/plane-helper: Fixup mismerge

John Hunter (2):
  drm: Fix some typo mistake of the annotations
  drm: change connector to tmp_connector

Rob Clark (7):
  drm/fb: document drm_fb_helper_surface_size
  drm/atomic: minor kerneldoc typo fix
  drm/cma: use correct fb width/height
  drm/exynos: use correct fb width/height
  drm/rockchip: use correct fb width/height
  drm/fb: small cleanup
  drm/fb: handle tiled connectors better

Scott Wood (1):
  drm: %pF is only for function pointers

Simon Farnsworth (1):
  drm/dp: Use large transactions for I2C over AUX

Ville Syrjälä (2):
  drm/atomic: Constify a bunch of functions pointer structs
  drm: Silence sparse warnings

 drivers/gpu/drm/drm_atomic_helper.c   | 50 +-
 drivers/gpu/drm/drm_bridge.c  |  2 +-
 drivers/gpu/drm/drm_crtc.c|  3 ++
 drivers/gpu/drm/drm_dp_helper.c   | 76 ---
 drivers/gpu/drm/drm_drv.c |  2 +-
 drivers/gpu/drm/drm_fb_cma_helper.c   |  2 +-
 drivers/gpu/drm/drm_fb_helper.c   | 48 -
 drivers/gpu/drm/drm_info.c|  1 +
 drivers/gpu/drm/drm_ioc32.c   |  2 +-
 drivers/gpu/drm/drm_pci.c |  1 +
 drivers/gpu/drm/drm_plane_helper.c| 11 ++--
 drivers/gpu/drm/drm_vm.c  |  1 +
 drivers/gpu/drm/exynos/exynos_drm_fbdev.c |  5 +-
 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c |  2 +-
 include/drm/drm_crtc.h|  2 +-
 include/drm/drm_dp_helper.h   |  5 ++
 include/drm/drm_fb_helper.h   | 19 +++
 17 files changed, 163 insertions(+), 69 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-03-10 Thread Daniel Vetter
Hi Dave,

Another pile of misc drm patches all over, mostly polish for atomic. Last
minute rebase was to avoid the broken merge.

Cheers, Daniel


The following changes since commit 3a656b54c8433ada6dd7ee6227854c48682d5e4d:

  drm/i915: Fix struct_mutex deadlock due to merge fumble (2015-03-10 08:39:05 
+1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-03-10

for you to fetch changes up to 7eb5f302bbe78b88da8b2008c502c1975e75db05:

  drm: Check in setcrtc if the primary plane supports the fb pixel format 
(2015-03-10 09:59:36 +0100)


Chris Wilson (1):
  drm: Lighten sysfs connector 'status'

Daniel Vetter (4):
  drm: Remove redundant code in the getencoder ioctl
  drm/atomic-helper: Fix kerneldoc for prepare_planes
  drm: Fixup racy refcounting in plane_force_disable
  drm/plane-helper: unexport drm_primary_helper_create_plane

Jani Nikula (4):
  drm/dp: indentation and ordering cleanups
  drm/dp: add DPCD definitions from eDP 1.2
  drm/dp: add DPCD definitions from DP 1.1 and 1.2a
  drm/dp: add DPCD definitions from eDP 1.4

Laurent Pinchart (2):
  drm: Share plane pixel format check code between legacy and atomic
  drm: Check in setcrtc if the primary plane supports the fb pixel format

Tvrtko Ursulin (2):
  drm: Complete moving rotation property to core
  drm/i915: Rotation property is now handled in DRM core

Yannick Guerrini (1):
  drm: Fix trivial typos in comments

 drivers/gpu/drm/drm_atomic.c  |  12 +--
 drivers/gpu/drm/drm_atomic_helper.c   |   4 +-
 drivers/gpu/drm/drm_crtc.c|  61 +++
 drivers/gpu/drm/drm_modes.c   |   4 +-
 drivers/gpu/drm/drm_plane_helper.c|  31 ++
 drivers/gpu/drm/drm_sysfs.c   |  61 +--
 drivers/gpu/drm/i2c/adv7511.c |   2 +-
 drivers/gpu/drm/i915/intel_atomic_plane.c |  24 +
 include/drm/drm_crtc.h|   4 +
 include/drm/drm_dp_helper.h   | 171 --
 include/drm/drm_plane_helper.h|   4 -
 11 files changed, 284 insertions(+), 94 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


[PULL] topic/drm-misc for 4.1

2015-02-25 Thread Daniel Vetter
Hi Dave,

A few random things and a few small patches for atomic. Pull request for
4.1 so that Laurent can rebase his rcar atomic conversion, which needs a
few things from here. Also better to get the renames in before there's
conflicts.

Cheers, Daniel


The following changes since commit 96abd10ecc2e9ab5c8060697ce721683f387c64e:

  Merge branch 'drm-next-3.20' of git://people.freedesktop.org/~agd5f/linux 
into drm-next (2015-02-12 10:01:51 +1000)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-02-25

for you to fetch changes up to e045d20bef41707dbba676e58624b54f9f39e172:

  drm: Adding edp1.4 specific dpcd macros (2015-02-24 01:58:16 +0100)


Damien Lespiau (2):
  drm: Fix drm_crtc_vblank_get() documentation
  drm: Fix the CRTC_STEREO_DOUBLE_ONLY define to include stero modes

Daniel Vetter (4):
  drm: Add DRM_DEBUG_ATOMIC
  drm: If available use atomic state in getcrtc ioctl
  drm/atomic-helper: Rename commmit_post/pre_planes
  drm/atomic-helpers: make mode_set hooks optional

Laurent Pinchart (2):
  drm/atomic-helpers: Fix documentation typos and wrong copy
  drm/atomic: Rename drm_atomic_helper_commit_pre_planes() state argument

Sonika Jindal (1):
  drm: Adding edp1.4 specific dpcd macros

 drivers/gpu/drm/drm_atomic.c| 100 ++-
 drivers/gpu/drm/drm_atomic_helper.c | 192 +++-
 drivers/gpu/drm/drm_crtc.c  |  25 +++--
 drivers/gpu/drm/drm_irq.c   |   2 +-
 drivers/gpu/drm/i915/intel_atomic.c |   4 +-
 drivers/gpu/drm/msm/msm_atomic.c|   4 +-
 drivers/gpu/drm/tegra/drm.c |   4 +-
 include/drm/drmP.h  |   9 ++
 include/drm/drm_atomic_helper.h |   6 +-
 include/drm/drm_crtc_helper.h   |   3 +-
 include/drm/drm_dp_helper.h |   8 ++
 include/drm/drm_modes.h |   2 +-
 12 files changed, 202 insertions(+), 157 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


[PULL] topic/drm-misc

2015-02-06 Thread Daniel Vetter
Hi Dave,

Flushing out my drm-misc queue with a few oddball things all over.

Cheers, Daniel


The following changes since commit b7703726251191cd9f3ef3a80b2d9667901eec95:

  drm/probe-helper: clamp unknown connector status in the poll work (2015-01-22 
06:11:39 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/drm-intel tags/topic/drm-misc-2015-02-06

for you to fetch changes up to 335f1a62c5a6334c4fc92c3c448d7648408d9b83:

  drm: Use static attribute groups for managing connector sysfs entries 
(2015-02-04 15:02:00 +0100)


Daniel Vetter (1):
  drm: remove DRM_FORMAT_NV12MT

Laurent Pinchart (1):
  drm/irq: Don't disable vblank interrupts when already disabled

Takashi Iwai (1):
  drm: Use static attribute groups for managing connector sysfs entries

Ville Syrjälä (1):
  drm/modes: Print the mode status in human readable form

 drivers/gpu/drm/drm_irq.c |  11 ++-
 drivers/gpu/drm/drm_modes.c   |  61 +-
 drivers/gpu/drm/drm_sysfs.c   | 132 +++---
 drivers/gpu/drm/exynos/exynos_drm_fimc.c  |  14 +---
 drivers/gpu/drm/exynos/exynos_drm_gsc.c   |   6 --
 drivers/gpu/drm/exynos/exynos_drm_plane.c |   1 -
 drivers/gpu/drm/exynos/exynos_mixer.c |   2 -
 include/uapi/drm/drm_fourcc.h |   3 -
 8 files changed, 137 insertions(+), 93 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch