[git pull] drm fixes for 4.15-rc2

From: Dave Airlie
Date: Fri Dec 01 2017 - 00:48:07 EST


Hi Linus,

This is a collection of fixes and some cleanups that seemed fine for rc2.

core:
Atomic helper regression fix.
Deferred fbdev fallout regression fix.

amdgpu:
New display code (dc) dpms, suspend/resume and smatch fixes, along
with some others
Some regression fixes for amdkfd/radeon.
Fix a ttm regression for swiotlb disabled

bridge:
A bunch of fixes for the tc358767 bridge

mali-dp + hdlcd:
some fixes and internal API catchups.

imx-drm:
regression fix in atomic code.

omapdrm:
platform detection regression fixes

Dave.

The main thing are a bunch of fixes for the new amd display code, a
bunch of smatch

The following changes since commit 43f462f1c2e111d2882b48baeeff774ae42e7c56:

Merge tag 'drm-for-v4.15-part2-fixes' of
git://people.freedesktop.org/~airlied/linux (2017-11-28 10:01:15
-0800)

are available in the git repository at:

git://people.freedesktop.org/~airlied/linux tags/drm-fixes-for-v4.15-rc2

for you to fetch changes up to 503505bfea19b7d69e2572297e6defa0f9c2404e:

Merge branch 'drm-fixes-4.15' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes (2017-12-01
09:15:57 +1000)

----------------------------------------------------------------
amdgpu (+dc), i915, omapdrm, hdlcd, mali and bridge fixes

----------------------------------------------------------------
Alex Deucher (4):
drm/amdgpu/gfx7: cache raster_config values
drm/amdgpu: used cached gca values for cik_read_register
Revert "drm/amdgpu: fix rmmod KCQ disable failed error"
drm/amdgpu: drop experimental flag for raven

Andrew Jiang (1):
drm/amd/display: Don't reject 3D timings

Andrey Grodzovsky (1):
drm/amd/display: Switch to drm_atomic_helper_wait_for_flip_done

Andrey Gusakov (6):
drm/bridge: tc358767: do no fail on hi-res displays
drm/bridge: tc358767: filter out too high modes
drm/bridge: tc358767: fix DP0_MISC register set
drm/bridge: tc358767: fix timing calculations
drm/bridge: tc358767: fix AUXDATAn registers access
drm/bridge: tc358767: fix 1-lane behavior

Arnd Bergmann (2):
drm/i915: fix intel_backlight_device_register declaration
drm/omap: displays: panel-dpi: add backlight dependency

Bhawanpreet Lakha (1):
drm/amd/display: Add null check for 24BPP (xfm and dpp)

Changbin Du (1):
drm/i915/gvt: Fix unsafe locking caused by spin_unlock_bh

Charlene Liu (2):
drm/amd/display: fix seq issue: turn on clock before programming afmt.
drm/amd/display: try to find matching audio inst for enc inst first

Chris Wilson (1):
drm/i915/fbdev: Serialise early hotplug events with async fbdev config

Christian KÃnig (2):
drm/amdgpu: don't try to move pinned BOs
drm/ttm: fix populate_and_map() functions once more

Christophe JAILLET (1):
drm/omap: Fix error handling path in 'omap_dmm_probe()'

Cihangir Akturk (1):
drm: mali-dp: switch to drm_*_get(), drm_*_put() helpers

Colin Ian King (1):
drm/amd/display: fix memory leaks on error exit return

Dan Carpenter (1):
omapdrm: hdmi4_cec: signedness bug in hdmi4_cec_init()

Daniel Vetter (1):
Merge tag 'v4.15-rc1' into drm-misc-fixes

Dave Airlie (8):
Merge tag 'drm-misc-fixes-2017-11-30' of
git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
Merge tag 'omapdrm-4.15-fixes' of
git://git.kernel.org/.../tomba/linux into drm-fixes
Merge tag 'drm-intel-fixes-2017-11-30' of
git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
Merge tag 'imx-drm-fixes-2017-11-30' of
git://git.pengutronix.de/git/pza/linux into drm-fixes
Merge branch 'for-upstream/hdlcd' of
git://linux-arm.org/linux-ld into drm-fixes
Merge tag 'drm-amdkfd-fixes-2017-11-26' of
git://people.freedesktop.org/~gabbayo/linux into drm-fixes
Merge branch 'for-upstream/mali-dp' of
git://linux-arm.org/linux-ld into drm-fixes
Merge branch 'drm-fixes-4.15' of
git://people.freedesktop.org/~agd5f/linux into drm-fixes

Dmitry V. Levin (1):
uapi: fix linux/kfd_ioctl.h userspace compilation errors

Dmytro Laktyushkin (3):
drm/amd/display: fix split recout calculation
drm/amd/display: fix split recout offset
drm/amd/display: fix split viewport rounding error

Eric Anholt (1):
drm/bridge: Fix lvds-encoder since the panel_bridge rework.

Eric Yang (1):
drm/amd/display: Add timing validation against dongle cap

Felix Kuehling (2):
drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode
drm/amdkfd: Fix SDMA oversubsription handling

Hans Verkuil (1):
drm/bridge: adv7511/33: Fix adv7511_cec_init() failure handling

Harry Wentland (6):
drm/amd/display: Fix amdgpu_dm bugs found by smatch
drm/amd/display: Bunch of smatch error and warning fixes in DC
drm/amd/display: Fix use before NULL check in validate_timing
drm/amd/display: Fix hubp check in set_cursor_position
drm/amd/display: Fix potential NULL and mem leak in create_links
drm/amd/display: Fix couple more inconsistent NULL checks in dc_resource

Hersen Wu (2):
drm/amd/display: Handle as MST first and then DP dongle if sink
support both
drm/amd/display: USB-C / thunderbolt dock specific workaround

Jerry (Fangzhi) Zuo (1):
drm/amd/display: Check aux channel before MST resume

Joonas Lahtinen (2):
Merge tag 'gvt-fixes-2017-11-28' of
https://github.com/intel/gvt-linux into drm-intel-fixes
drm/i915: Disable THP until we have a GPU read BW W/A

Jordan Lazare (1):
drm/amd/display: Revert noisy assert messages

Laurent Pinchart (1):
drm: omapdrm: Fix DPI on platforms using the DSI VDDS

Leo (Sunpeng) Li (3):
drm/amd/display: Should disable when new stream is null
drm/amd/display: Do DC mode-change check when adding CRTCs
drm/amd/display: Do not put drm_atomic_state on resume

Leo Liu (1):
drm/amdgpu: move UVD/VCE and VCN structure out from union

Liviu Dudau (3):
drm: hdlcd: Update PM code to save/restore console.
drm: mali-dp: Separate static internal data into a read-only structure.
drm: mali-dp: Disable planes when their CRTC gets disabled.

Lucas Stach (2):
drm/atomic: make drm_atomic_helper_wait_for_vblanks more agressive
drm/imx: always call wait_for_flip_done in commit_tail

Maarten Lankhorst (1):
drm/fb_helper: Disable all crtc's when initial setup fails.

Michel DÃnzer (2):
drm/amdgpu: Set adev->vcn.irq.num_types for VCN
drm/amdgpu: Use unsigned ring indices in amdgpu_queue_mgr_map

Mirza Krak (1):
drm/rockchip: dw-mipi-dsi: fix possible un-balanced runtime PM enable

Oded Gabbay (1):
drm/radeon: remove init of CIK VMIDs 8-16 for amdkfd

Peter Ujfalusi (1):
omapdrm: hdmi4: Correct the SoC revision matching

Pierre-Hugues Husson (1):
drm/bridge: synopsys/dw-hdmi: Enable cec clock

Randy Dunlap (1):
drm/amdkfd: fix amdkfd use-after-free GP fault

Roman Li (2):
drm/amd/display: Fix S3 topology change
drm/amd/display: fix gamma setting

Shirish S (1):
drm/amd/display: check plane state before validating fbc

Srishti Sharma (2):
drm/arm: Replace instances of drm_dev_unref with drm_dev_put.
drm/arm: Replace instances of drm_dev_unref with drm_dev_put.

Ville SyrjÃlà (2):
drm/i915: Don't try indexed reads to alternate slave addresses
drm/i915: Prevent zero length "index" write

Vitor Massaru Iha (1):
drm: Fix checkpatch issue: "WARNING: braces {} are not necessary
for single statement blocks."

Weinan Li (1):
drm/i915/gvt: remove skl_misc_ctl_write handler

Xiaolin Zhang (1):
drm/i915/gvt: enabled pipe A default on creating vgpu

Xiong Zhang (1):
drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition

fred gao (1):
drm/i915/gvt: Move request alloc to dispatch_workload path only

shaoyunl (1):
drm/amdkfd: Fix SDMA ring buffer size calculation

drivers/gpu/drm/amd/amdgpu/amdgpu.h | 18 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 47 ++++++---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 -
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 +
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +
drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c | 6 +-
drivers/gpu/drm/amd/amdgpu/cik.c | 111 ++++++++++++++++++---
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 16 +++
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 2 +-
drivers/gpu/drm/amd/amdkfd/kfd_module.c | 3 +-
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | 4 +-
.../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 18 ++++
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 31 ++++--
.../gpu/drm/amd/display/dc/basics/log_helpers.c | 5 +
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 +-
drivers/gpu/drm/amd/display/dc/core/dc.c | 15 ++-
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 102 +++++++++++++++----
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 106 +++++++++++---------
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 54 ++++++----
drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 9 +-
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c | 10 +-
.../drm/amd/display/dc/dce/dce_stream_encoder.c | 3 +
.../amd/display/dc/dce110/dce110_hw_sequencer.c | 32 +++---
.../drm/amd/display/dc/dce110/dce110_resource.c | 12 ++-
.../display/dc/dce110/dce110_timing_generator.c | 8 +-
.../gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 6 +-
.../amd/display/dc/dcn10/dcn10_timing_generator.c | 3 -
drivers/gpu/drm/amd/display/dc/inc/core_status.h | 2 +-
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h | 7 --
drivers/gpu/drm/arm/hdlcd_crtc.c | 3 +-
drivers/gpu/drm/arm/hdlcd_drv.c | 9 +-
drivers/gpu/drm/arm/malidp_crtc.c | 16 +--
drivers/gpu/drm/arm/malidp_drv.c | 34 +++----
drivers/gpu/drm/arm/malidp_hw.c | 46 +++++----
drivers/gpu/drm/arm/malidp_hw.h | 65 +++++++-----
drivers/gpu/drm/arm/malidp_planes.c | 21 ++--
drivers/gpu/drm/bridge/adv7511/adv7511.h | 13 ++-
drivers/gpu/drm/bridge/adv7511/adv7511_cec.c | 32 ++++--
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 17 +---
drivers/gpu/drm/bridge/lvds-encoder.c | 48 +++++++--
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 25 +++++
drivers/gpu/drm/bridge/tc358767.c | 73 ++++++++------
drivers/gpu/drm/drm_atomic_helper.c | 2 +-
drivers/gpu/drm/drm_fb_helper.c | 4 +
drivers/gpu/drm/i915/gvt/display.c | 2 +
drivers/gpu/drm/i915/gvt/execlist.c | 6 ++
drivers/gpu/drm/i915/gvt/gtt.c | 6 +-
drivers/gpu/drm/i915/gvt/handlers.c | 45 +--------
drivers/gpu/drm/i915/gvt/scheduler.c | 33 ++++--
drivers/gpu/drm/i915/gvt/scheduler.h | 3 +
drivers/gpu/drm/i915/i915_gemfs.c | 3 +-
drivers/gpu/drm/i915/intel_drv.h | 2 +-
drivers/gpu/drm/i915/intel_fbdev.c | 10 +-
drivers/gpu/drm/i915/intel_i2c.c | 4 +-
drivers/gpu/drm/imx/imx-drm-core.c | 11 +-
drivers/gpu/drm/omapdrm/displays/Kconfig | 1 +
drivers/gpu/drm/omapdrm/dss/dpi.c | 4 +-
drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 2 +-
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c | 23 +++--
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 3 +-
drivers/gpu/drm/radeon/cik.c | 24 -----
drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 +-
drivers/gpu/drm/ttm/ttm_page_alloc.c | 2 -
include/drm/ttm/ttm_page_alloc.h | 32 ++----
include/uapi/linux/kfd_ioctl.h | 22 ++--
67 files changed, 814 insertions(+), 483 deletions(-)