22 Aug, 2019

1 commit

  • We need the rename of reservation_object to dma_resv.

    The solution on this merge came from linux-next:
    From: Stephen Rothwell
    Date: Wed, 14 Aug 2019 12:48:39 +1000
    Subject: [PATCH] drm: fix up fallout from "dma-buf: rename reservation_object to dma_resv"

    Signed-off-by: Stephen Rothwell
    ---
    drivers/gpu/drm/i915/gt/intel_engine_pool.c | 8 ++++----
    3 files changed, 7 insertions(+), 7 deletions(-)

    diff --git a/drivers/gpu/drm/i915/gt/intel_engine_pool.c b/drivers/gpu/drm/i915/gt/intel_engine_pool.c
    index 03d90b49584a..4cd54c569911 100644
    --- a/drivers/gpu/drm/i915/gt/intel_engine_pool.c
    +++ b/drivers/gpu/drm/i915/gt/intel_engine_pool.c
    @@ -43,12 +43,12 @@ static int pool_active(struct i915_active *ref)
    {
    struct intel_engine_pool_node *node =
    container_of(ref, typeof(*node), active);
    - struct reservation_object *resv = node->obj->base.resv;
    + struct dma_resv *resv = node->obj->base.resv;
    int err;

    - if (reservation_object_trylock(resv)) {
    - reservation_object_add_excl_fence(resv, NULL);
    - reservation_object_unlock(resv);
    + if (dma_resv_trylock(resv)) {
    + dma_resv_add_excl_fence(resv, NULL);
    + dma_resv_unlock(resv);
    }

    err = i915_gem_object_pin_pages(node->obj);

    which is a simplified version from a previous one which had:
    Reviewed-by: Christian König

    Signed-off-by: Rodrigo Vivi

    Rodrigo Vivi
     

16 Aug, 2019

1 commit

  • Move the active tracking for the frontbuffer operations out of the
    i915_gem_object and into its own first class (refcounted) object. In the
    process of detangling, we switch from low level request tracking to the
    easier i915_active -- with the plan that this avoids any potential
    atomic callbacks as the frontbuffer tracking wishes to sleep as it
    flushes.

    Signed-off-by: Chris Wilson
    Reviewed-by: Matthew Auld
    Link: https://patchwork.freedesktop.org/patch/msgid/20190816074635.26062-1-chris@chris-wilson.co.uk

    Chris Wilson
     

09 Aug, 2019

1 commit

  • drm-misc-next for 5.4:

    UAPI Changes:
    - HDCP: Add a Content protection type property

    Cross-subsystem Changes:

    Core Changes:
    - Continue to rework the include dependencies
    - fb: Remove the unused drm_gem_fbdev_fb_create function
    - drm-dp-helper: Make the link rate calculation more tolerant to
    non-explicitly defined, yet supported, rates
    - fb-helper: Map DRM client buffer only when required, and instanciate a
    shadow buffer when the device has a dirty function or says so
    - connector: Add a helper to link the DDC adapter used by that connector to
    the userspace
    - vblank: Switch from DRM_WAIT_ON to wait_event_interruptible_timeout
    - dma-buf: Fix a stack corruption
    - ttm: Embed a drm_gem_object struct to make ttm_buffer_object a
    superclass of GEM, and convert drivers to use it.
    - hdcp: Improvements to report the content protection type to the
    userspace

    Driver Changes:
    - Remove drm_gem_prime_import/export from being defined in the drivers
    - Drop DRM_AUTH usage from drivers
    - Continue to drop drmP.h
    - Convert drivers to the connector ddc helper

    - ingenic: Add support for more panel-related cases
    - komeda: Support for dual-link
    - lima: Reduce logging
    - mpag200: Fix the cursor support
    - panfrost: Export GPU features register to userspace through an ioctl
    - pl111: Remove the CLD pads wiring support from the DT
    - rockchip: Rework to use DRM PSR helpers, fix a bug in the VOP_WIN_GET
    macro
    - sun4i: Improve support for color encoding and range
    - tinydrm: Rework SPI support, improve MIPI-DBI support, move to drm/tiny
    - vkms: Rework of the CRC tracking

    - bridges:
    - sii902x: Add support for audio graph card
    - tc358767: Rework AUX data handling code
    - ti-sn65dsi86: Add Debugfs and proper DSI mode flags support

    - panels
    - Support for GiantPlus GPM940B0, Sharp LQ070Y3DG3B, Ortustech
    COM37H3M, Novatek NT39016, Sharp LS020B1DD01D, Raydium RM67191,
    Boe Himax8279d, Sharp LD-D5116Z01B
    - Conversion of the device tree bindings to the YAML description
    - jh057n00900: Rework the enable / disable path

    - fbdev:
    - ssd1307fb: Support more devices based on that controller

    Signed-off-by: Dave Airlie

    From: Maxime Ripard
    Link: https://patchwork.freedesktop.org/patch/msgid/20190808121423.xzpedzkpyecvsiy4@flea

    Dave Airlie
     

06 Aug, 2019

1 commit

  • - More changes on simplifying locking mechanisms (Chris)
    - Selftests fixes and improvements (Chris)
    - More work around engine tracking for better handling (Chris, Tvrtko)
    - HDCP debug and info improvements (Ram, Ashuman)
    - Add DSI properties (Vandita)
    - Rework on sdvo support for better debuggability before fixing bugs (Ville)
    - Display PLLs fixes and improvements, specially targeting Ice Lake (Imre, Matt, Ville)
    - Perf fixes and improvements (Lionel)
    - Enumerate scratch buffers (Lionel)
    - Add infra to hold off preemption on a request (Lionel)
    - Ice Lake color space fixes (Uma)
    - Type-C fixes and improvements (Lucas)
    - Fix and improvements around workarounds (Chris, John, Tvrtko)
    - GuC related fixes and improvements (Chris, Daniele, Michal, Tvrtko)
    - Fix on VLV/CHV display power domain (Ville)
    - Improvements around Watermark (Ville)
    - Favor intel_ types on intel_atomic functions (Ville)
    - Don’t pass stack garbage to pcode (Ville)
    - Improve display tracepoints (Steven)
    - Don’t overestimate 4:2:0 link symbol clock (Ville)
    - Add support for 4th pipe and transcoder (Lucas)
    - Introduce initial support for Tiger Lake platform (Daniele, Lucas, Mahesh, Jose, Imre, Mika, Vandita, Rodrigo, Michel)
    - PPGTT allocation simplification (Chris)
    - Standardize function names and suffixes to make clean, symmetric and let checkpatch happy (Janusz)
    - Skip SINK_COUNT read on CH7511 (Ville)
    - Fix on kernel documentation (Chris, Michal)
    - Add modular FIA (Anusha, Lucas)
    - Fix EHL display (Matt, Vivek)
    - Enable hotplug retry (Imre, Jose)
    - Disable preemption under GVT (Chris)
    - OA; Reconfigure context on the fly (Chris)
    - Fixes and improvements around engine reset. (Chris)
    - Small clean up on display pipe fault mask (Ville)
    - Make sure cdclk is high enough for DP audio on VLV/CHV (Ville)
    - Drop some wmb() and improve pwrite flush (Chris)
    - Fix critical PSR regression (DK)
    - Remove unused variables (YueHaibing)
    - Use dev_get_drvdata for simplification (Chunhong)
    - Use upstream version of header tests (Jani)

    drm-intel-next-2019-07-08:
    - Signal fence completion from i915_request_wait (Chris)
    - Fixes and improvements around rings pin/unpin (Chris)
    - Display uncore prep patches (Daniele)
    - Execlists preemption improvements (Chris)
    - Selftests fixes and improvements (Chris)
    - More Elkhartlake enabling work (Vandita, Jose, Matt, Vivek)
    - Defer address space cleanup to an RCU worker (Chris)
    - Implicit dev_priv removal and GT compartmentalization and other related follow-ups (Tvrtko, Chris)
    - Prevent dereference of engine before NULL check in error capture (Chris)
    - GuC related fixes (Daniele, Robert)
    - Many changes on active tracking, timelines and locking mechanisms (Chris)
    - Disable SAMPLER_STATE prefetching on Gen11 (HW W/a) (Kenneth)
    - I915_perf fixes (Lionel)
    - Add Ice Lake PCI ID (Mika)
    - eDP backlight fix (Lee)
    - Fix various gen2 tracepoints (Ville)
    - Some irq vfunc clean-up and improvements (Ville)
    - Move OA files to separated folder (Michal)
    - Display self contained headers clean-up (Jani)
    - Preparation for 4th pile (Lucas)
    - Move atomic commit, watermark and other places to use more intel_crtc_state (Maarten)
    - Many Ice Lake Type C and Thunderbolt fixes (Imre)
    - Fix some Ice Lake hw w/a whitelist regs (Lionel)
    - Fix memleak in runtime wakeref tracking (Mika)
    - Remove unused Private PPAT manager (Michal)
    - Don't check PPGTT presence on PPGTT-only platforms (Michal)
    - Fix ICL DSI suspend/resume (Chris)
    - Fix ICL Bandwidth issues (Ville)
    - Add N & CTS values for 10/12 bit deep color (Aditya)
    - Moving more GT related stuff under gt folder (Chris)
    - Forcewake related fixes (Chris)
    - Show support for accurate sw PMU busyness tracking (Chris)
    - Handle gtt double alloc failures (Chris)
    - Upgrade to new GuC version (Michal)
    - Improve w/a debug dumps and pull engine w/a initialization into a common (Chris)
    - Look for instdone on all engines at hangcheck (Tvrtko)
    - Engine lookup simplification (Chris)
    - Many plane color formats fixes and improvements (Ville)
    - Fix some compilation issues (YueHaibing)
    - GTT page directory clean up and improvements (Mika)

    Signed-off-by: Dave Airlie

    From: Rodrigo Vivi
    Link: https://patchwork.freedesktop.org/patch/msgid/20190801201314.GA23635@intel.com

    Dave Airlie
     

31 Jul, 2019

1 commit

  • Everyone is just using gem_object->resv now.

    Acked-by: Gerd Hoffmann
    Cc: Gerd Hoffmann
    Reviewed-by: Emil Velikov
    Signed-off-by: Daniel Vetter
    Cc: David Airlie
    Cc: Daniel Vetter
    Cc: Maarten Lankhorst
    Cc: Maxime Ripard
    Cc: Sean Paul
    Link: https://patchwork.freedesktop.org/patch/msgid/20190725132655.11951-5-daniel.vetter@ffwll.ch

    Daniel Vetter
     

29 Jul, 2019

1 commit


26 Jul, 2019

3 commits

  • Generic uc firmware layout definitions are unlikely to change and
    are separate to other GuC specific definitions.

    v2: reordered

    Signed-off-by: Michal Wajdeczko
    Cc: Daniele Ceraolo Spurio
    Reviewed-by: Daniele Ceraolo Spurio
    Signed-off-by: Chris Wilson
    Link: https://patchwork.freedesktop.org/patch/msgid/20190725141308.24660-3-michal.wajdeczko@intel.com

    Michal Wajdeczko
     
  • Sphinx was rendering firmware layout as html table, but since
    we want to add sizes relations switch to plain text graphics.

    v2: also update text and do it before move (Daniele)

    Signed-off-by: Michal Wajdeczko
    Cc: Daniele Ceraolo Spurio
    Reviewed-by: Daniele Ceraolo Spurio
    Signed-off-by: Chris Wilson
    Link: https://patchwork.freedesktop.org/patch/msgid/20190725141308.24660-2-michal.wajdeczko@intel.com

    Michal Wajdeczko
     
  • We moved GuC related files to new location but we missed to update
    .rst file with links.

    References: commit 0f261b241d9c ("drm/i915/uc: move GuC and HuC files under gt/uc/")
    Signed-off-by: Michal Wajdeczko
    Cc: Daniele Ceraolo Spurio
    Cc: Chris Wilson
    Reviewed-by: Daniele Ceraolo Spurio
    Signed-off-by: Chris Wilson
    Link: https://patchwork.freedesktop.org/patch/msgid/20190725141308.24660-1-michal.wajdeczko@intel.com

    Michal Wajdeczko
     

25 Jul, 2019

1 commit

  • This moves mipi-dbi to be a core helper with the name drm_mipi_dbi.

    Fixup include's in drivers.
    Move the docs entry and delete tinydrm.rst.
    Delete the last tinydrm todo entry.

    v2: Make DRM_MIPI_DBI tristate to enable it being built as a module.

    Cc: Eric Anholt
    Cc: David Lechner
    Reviewed-by: Sam Ravnborg
    Signed-off-by: Noralf Trønnes
    Acked-by: David Lechner
    Acked-by: Eric Anholt
    Link: https://patchwork.freedesktop.org/patch/msgid/20190722104312.16184-9-noralf@tronnes.org

    Noralf Trønnes
     

23 Jul, 2019

3 commits

  • tinydrm_display_pipe_init() has only one user now, so move it to mipi-dbi.

    Changes:
    - Remove drm_connector_helper_funcs.detect, it's always connected.
    - Store the connector and mode in mipi_dbi instead of it's own struct.

    Otherwise remove some leftover tinydrm-helpers.h inclusions.

    Cc: Eric Anholt
    Cc: David Lechner
    Reviewed-by: Sam Ravnborg
    Signed-off-by: Noralf Trønnes
    Link: https://patchwork.freedesktop.org/patch/msgid/20190719155916.62465-12-noralf@tronnes.org

    Noralf Trønnes
     
  • This is only used by mipi-dbi drivers so move it there.

    The reason this isn't moved to the SPI subsystem is that it will in a
    later patch pass a dummy rx buffer for SPI controllers that need this.
    Low memory boards (64MB) can run into a problem allocating such a "large"
    contiguous buffer on every transfer after a long up time.
    This leaves a very specific use case, so we'll keep the function here.
    mipi-dbi will first go through a refactoring though, before this will
    be done.

    Remove SPI todo entry now that we're done with the tinydrm.ko SPI code.

    v2: Drop moving the mipi_dbi_spi_init() declaration (Sam)

    Cc: David Lechner
    Reviewed-by: Sam Ravnborg
    Acked-by: : David Lechner
    Signed-off-by: Noralf Trønnes
    Link: https://patchwork.freedesktop.org/patch/msgid/20190719155916.62465-8-noralf@tronnes.org

    Noralf Trønnes
     
  • Noralf needs some SPI patches in 5.3 to merge some work on tinydrm.

    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

19 Jul, 2019

1 commit

  • We've had this already for anything new. With my drm_prime.c cleanup I
    also think documentation for everything already existing is complete,
    and we can bake this in as a requirements subsystem wide.

    v2: Improve wording a bit (Laurent), fix typo in commit message (Sam).

    Acked-by: Emil Velikov
    Acked-by: Sean Paul
    Acked-by: Laurent Pinchart
    Acked-by: Maxime Ripard
    Acked-by: Sam Ravnborg
    Acked-by: Jani Nikula
    Acked-by: Alex Deucher
    Signed-off-by: Daniel Vetter
    Cc: Laurent Pinchart
    Cc: Jani Nikula
    Cc: David Airlie
    Cc: Daniel Vetter
    Cc: Maarten Lankhorst
    Cc: Maxime Ripard
    Cc: Sean Paul
    Link: https://patchwork.freedesktop.org/patch/msgid/20190704145054.5701-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     

17 Jul, 2019

1 commit


16 Jul, 2019

1 commit

  • Pull drm updates from Dave Airlie:
    "The biggest thing in this is the AMD Navi GPU support, this again
    contains a bunch of header files that are large. These are the new AMD
    RX5700 GPUs that just recently became available.

    New drivers:
    - ST-Ericsson MCDE driver
    - Ingenic JZ47xx SoC

    UAPI change:
    - HDR source metadata property

    Core:
    - HDR inforframes and EDID parsing
    - drm hdmi infoframe unpacking
    - remove prime sg_table caching into dma-buf
    - New gem vram helpers to reduce driver code
    - Lots of drmP.h removal
    - reservation fencing fix
    - documentation updates
    - drm_fb_helper_connector removed
    - mode name command handler rewrite

    fbcon:
    - Remove the fbcon notifiers

    ttm:
    - forward progress fixes

    dma-buf:
    - make mmap call optional
    - debugfs refcount fixes
    - dma-fence free with pending signals fix
    - each dma-buf gets an inode

    Panels:
    - Lots of additional panel bindings

    amdgpu:
    - initial navi10 support
    - avoid hw reset
    - HDR metadata support
    - new thermal sensors for vega asics
    - RAS fixes
    - use HMM rather than MMU notifier
    - xgmi topology via kfd
    - SR-IOV fixes
    - driver reload fixes
    - DC use a core bpc attribute
    - Aux fixes for DC
    - Bandwidth calc updates for DC
    - Clock handling refactor
    - kfd VEGAM support

    vmwgfx:
    - Coherent memory support changes

    i915:
    - HDR Support
    - HDMI i2c link
    - Icelake multi-segmented gamma support
    - GuC firmware update
    - Mule Creek Canyon PCH support for EHL
    - EHL platform updtes
    - move i915.alpha_support to i915.force_probe
    - runtime PM refactoring
    - VBT parsing refactoring
    - DSI fixes
    - struct mutex dependency reduction
    - GEM code reorg

    mali-dp:
    - Komeda driver features

    msm:
    - dsi vs EPROBE_DEFER fixes
    - msm8998 snapdragon 835 support
    - a540 gpu support
    - mdp5 and dpu interconnect support

    exynos:
    - drmP.h removal

    tegra:
    - misc fixes

    tda998x:
    - audio support improvements
    - pixel repeated mode support
    - quantisation range handling corrections
    - HDMI vendor info fix

    armada:
    - interlace support fix
    - overlay/video plane register handling refactor
    - add gamma support

    rockchip:
    - RX3328 support

    panfrost:
    - expose perf counters via hidden ioctls

    vkms:
    - enumerate CRC sources list

    ast:
    - rework BO handling

    mgag200:
    - rework BO handling

    dw-hdmi:
    - suspend/resume support

    rcar-du:
    - R8A774A1 Soc Support
    - LVDS dual-link mode support
    - Additional formats
    - Misc fixes

    omapdrm:
    - DSI command mode display support

    stm
    - fb modifier support
    - runtime PM support

    sun4i:
    - use vmap ops

    vc4:
    - binner bo binding rework

    v3d:
    - compute shader support
    - resync/sync fixes
    - job management refactoring

    lima:
    - NULL pointer in irq handler fix
    - scheduler default timeout

    virtio:
    - fence seqno support
    - trace events

    bochs:
    - misc fixes

    tc458767:
    - IRQ/HDP handling

    sii902x:
    - HDMI audio support

    atmel-hlcdc:
    - misc fixes

    meson:
    - zpos support"

    * tag 'drm-next-2019-07-16' of git://anongit.freedesktop.org/drm/drm: (1815 commits)
    Revert "Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux into drm-next"
    Revert "mm: adjust apply_to_pfn_range interface for dropped token."
    mm: adjust apply_to_pfn_range interface for dropped token.
    drm/amdgpu/navi10: add uclk activity sensor
    drm/amdgpu: properly guard the generic discovery code
    drm/amdgpu: add missing documentation on new module parameters
    drm/amdgpu: don't invalidate caches in RELEASE_MEM, only do the writeback
    drm/amd/display: avoid 64-bit division
    drm/amdgpu/psp11: simplify the ucode register logic
    drm/amdgpu: properly guard DC support in navi code
    drm/amd/powerplay: vega20: fix uninitialized variable use
    drm/amd/display: dcn20: include linux/delay.h
    amdgpu: make pmu support optional
    drm/amd/powerplay: Zero initialize current_rpm in vega20_get_fan_speed_percent
    drm/amd/powerplay: Zero initialize freq in smu_v11_0_get_current_clk_freq
    drm/amd/powerplay: Use memset to initialize metrics structs
    drm/amdgpu/mes10.1: Fix header guard
    drm/amd/powerplay: add temperature sensor support for navi10
    drm/amdgpu: fix scheduler timeout calc
    drm/amdgpu: Prepare for hmm_range_register API change (v2)
    ...

    Linus Torvalds
     

03 Jul, 2019

1 commit

  • PRIME functionality is now provided by GEM object functions. The driver
    callback functions are obsolete. So this patch renames them and turns
    them into static internal functions of the VRAM helper library. The
    implementation of gem_prime_mmap is now unused and the patch removes it.

    v3:
    * kept each renamed function at its original location within file
    * kept documentation

    Signed-off-by: Thomas Zimmermann
    Reviewed-by: Emil Velikov
    Reviewed-by: Gerd Hoffmann
    Link: https://patchwork.freedesktop.org/patch/msgid/20190702115012.4418-6-tzimmermann@suse.de

    Thomas Zimmermann
     

26 Jun, 2019

4 commits

  • Greg is busy already, but maybe he won't do everything ...

    Cc: Greg Kroah-Hartman
    Reviewed-by: Emil Velikov
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190614203615.12639-59-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Thanks to Noralf some good progress already.

    Reviewed-by: Emil Velikov
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190614203615.12639-58-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Basic helpers have been extracted, now there's a pile more todo still
    across the entire tree.

    Reviewed-by: Daniel Thompson
    Acked-by: Sam Ravnborg
    Reviewed-by: Emil Velikov
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190614203615.12639-57-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • I've done that.

    Reviewed-by: Emil Velikov
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190614203615.12639-56-daniel.vetter@ffwll.ch

    Daniel Vetter
     

21 Jun, 2019

2 commits

  • Yes this is a bit a big patch, but since it's essentially a complete
    rewrite of all the prime docs I didn't see how to better split it up.

    Changes:
    - Consistently point to drm_gem_object_funcs as the preferred hooks,
    where applicable.

    - Document all the hooks in &drm_driver that lacked kerneldoc.

    - Completely new overview section, which now also includes the cleaned
    up lifetime/reference counting subchapter. I also mentioned the weak
    references in there due to the lookup caches.

    - Completely rewritten helper intro section, highlight the
    import/export related functionality.

    - Polish for all the functions and more cross references.

    I also sprinkled a bunch of todos all over.

    Most important: 0 code changes in here. The cleanup motivated by
    reading and improving all this will follow later on.

    v2: Actually update the prime helper docs. Plus add a few FIXMEs that
    I won't address right away in subsequent cleanup patches.

    v3:
    - Split out the function moving. This patch is now exclusively
    documentation changes.
    - Typos and nits (Sam).

    v4: Polish suggestions from Noralf.

    Acked-by: Gerd Hoffmann
    Acked-by: Emil Velikov
    Acked-by: Noralf Trønnes
    Cc: Thomas Zimmermann
    Cc: Gerd Hoffmann
    Cc: Noralf Trønnes
    Cc: Sam Ravnborg
    Cc: Eric Anholt
    Cc: Emil Velikov
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190620124615.24434-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Features:
    - HDR support (Uma, Ville)
    - Add I2C symlink under HDMI connector similar to DP (Oleg)
    - Add ICL multi-segmented gamma support (Shashank, Uma)
    - Update register whitelist support for new hardware (Robert, John)
    - GuC firmware update with updated ABI interface (Michal, Oscar)
    - Add support for new DMC header versions (Lucas)
    - In-kernel blitter client for selftest use (Matthew)
    - Add Mule Creec Canyon (MCC) PCH support to go with EHL (Matt)
    - EHL platform feature updates (Matt)
    - Use Command Transport Buffers with GuC on all gens (Daniele)
    - New i915.force_probe module parameter to replace i915.alpha_support (Jani)

    Refactoring:
    - Better runtime PM code abstraction/encapsulation (Daniele)
    - VBT parsing cleanup and improvements (Jani)
    - Move display code to its own subdirectory (Jani)
    - Header cleanup (Jani, Daniele)
    - Prep work for subsclice mask expansion (Stuart)
    - Use uncore mmio register accessors more, remove unused macro wrappers (Tvrtko)
    - Remove unused atomic property get/set stubs (Maarten)
    - GTT cleanups and improvements (Mika)
    - Pass intel_ types instead of drm_ types in plenty of display code (Ville)
    - Engine reset, hangcheck, fault code cleanups and improvements (Tvrtko)
    - Consider AML variants simply as either KBL or CFL ULX (Ville)
    - State checker cleanups and improvements (Ville)
    - GEM code reorganization to more files under gem subdirectory (Chris)
    - Reducing dependency on a coarse struct_mutex (Chris)

    Fixes:
    - Fix use of uninitialized/incorrect error pointers (Colin, Dan)
    - Fix DSI fastboot on some VLV/CHV platforms (Hans)
    - Fix DSI error path (Hans)
    - Add ICL port A combo PHY HW state check (Imre)
    - Fix ICL AUX-B HW not done issue (Imre)
    - Fix perf whitelist on gen10+ (Lionel)
    - Fix PSR exit by forcing manual exit on older gens (José)
    - Match voltage ranges instead of exact values (Lucas)
    - Fix SDVO HDMI audio, with cleanups (Ville)
    - Fix plane state dumps (Ville)
    - Fix driver cleanup code to support driver hot unbind (Janusz)
    - Add checks for ICL memory bandwidth requirements (Ville)
    - Fix toggling between no C8 planes vs. at least one C8 plane (Ville)
    - Improved checks on PLL usage conditions, refactoring (Ville)
    - Avoid clobbering M/N values in fastset fuzzy checks (Ville)
    - Take a runtime pm wakeref for atomic commits (Chris)
    - Do not allow runtime pm autosuspend to remove userspace GGTT mmaps too quickly (Chris)
    - Avoid refcount_inc on known zero count to avoid debug flagging (Chris)

    Signed-off-by: Dave Airlie

    From: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/87v9x1lpdh.fsf@intel.com

    Dave Airlie
     

20 Jun, 2019

1 commit

  • I rushed merging this a bit too much, and Noralf pointed out that
    we're a lot better already and have made great progress.

    Let's try again.

    v2: Fix typo spotted by Eric Engestrom.

    Fixes: 8db420ac6cf2 ("drm/todo: Improve drm_gem_object funcs todo")
    Reviewed-by: Noralf Trønnes
    Cc: Greg Kroah-Hartman
    Cc: Daniel Vetter
    Cc: David Airlie
    Cc: Daniel Vetter
    Cc: Maarten Lankhorst
    Cc: Maxime Ripard
    Cc: Sean Paul
    Cc: Thomas Zimmermann
    Cc: Gerd Hoffmann
    Cc: Rob Herring
    Cc: Noralf Trønnes
    Cc: Eric Anholt
    Cc: Gerd Hoffmann
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190618140241.19856-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     

18 Jun, 2019

1 commit

  • Fix the plethora of Sphinx build errors after moving the display files
    under a subdirectory.

    Fixes: 379bc100232a ("drm/i915: move modesetting output/encoder code under display/")
    Fixes: df0566a641f9 ("drm/i915: move modesetting core code under display/")
    Cc: Chris Wilson
    Cc: Rodrigo Vivi
    Cc: Ville Syrjälä
    Cc: Maarten Lankhorst
    Reviewed-by: Rodrigo Vivi
    Signed-off-by: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/20190617102944.25129-1-jani.nikula@intel.com

    Jani Nikula
     

17 Jun, 2019

1 commit

  • We're kinda going in the wrong direction. Spotted while typing better
    gem/prime docs.

    Cc: Thomas Zimmermann
    Cc: Gerd Hoffmann
    Cc: Rob Herring
    Cc: Noralf Trønnes
    Reviewed-by: Eric Anholt
    Acked-by: Gerd Hoffmann
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190614203615.12639-2-daniel.vetter@ffwll.ch

    Daniel Vetter
     

14 Jun, 2019

2 commits

  • drm-misc-next for v5.3:

    UAPI Changes:

    Cross-subsystem Changes:
    - Add code to signal all dma-fences when freed with pending signals.
    - Annotate reservation object access in CONFIG_DEBUG_MUTEXES

    Core Changes:
    - Assorted documentation fixes.
    - Use irqsave/restore spinlock to add crc entry.
    - Move code around to drm_client, for internal modeset clients.
    - Make drm_crtc.h and drm_debugfs.h self-contained.
    - Remove drm_fb_helper_connector.
    - Add bootsplash to todo.
    - Fix lock ordering in pan_display_legacy.
    - Support pinning buffers to current location in gem-vram.
    - Remove the now unused locking functions from gem-vram.
    - Remove the now unused kmap-object argument from vram helpers.
    - Stop checking return value of debugfs_create.
    - Add atomic encoder enable/disable helpers.
    - pass drm_atomic_state to atomic connector check.
    - Add atomic support for bridge enable/disable.
    - Add self refresh helpers to core.

    Driver Changes:
    - Add extra delay to make MTP SDM845 work.
    - Small fixes to virtio, vkms, sii902x, sii9234, ast, mcde, analogix, rockchip.
    - Add zpos and ?BGR8888 support to meson.
    - More removals of drm_os_linux and drmP headers for amd, radeon, sti, r128, r128, savage, sis.
    - Allow synopsis to unwedge the i2c hdmi bus.
    - Add orientation quirks for GPD panels.
    - Edid cleanups and fixing handling for edid < 1.2.
    - Add runtime pm to stm.
    - Handle s/r in dw-hdmi.
    - Add hooks for power on/off to dsi for stm.
    - Remove virtio dirty tracking code, done in drm core.
    - Rework BO handling in ast and mgag200.

    Tiny conflict in drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c,
    needed #include to make it compile.

    Signed-off-by: Daniel Vetter
    From: Maarten Lankhorst
    Link: https://patchwork.freedesktop.org/patch/msgid/0e01de30-9797-853c-732f-4a5bd6e61445@linux.intel.com

    Daniel Vetter
     
  • This patch adds a new drm helper library to help drivers implement
    self refresh. Drivers choosing to use it will register crtcs and
    will receive callbacks when it's time to enter or exit self refresh
    mode.

    In its current form, it has a timer which will trigger after a
    driver-specified amount of inactivity. When the timer triggers, the
    helpers will submit a new atomic commit to shut the refreshing pipe
    off. On the next atomic commit, the drm core will revert the self
    refresh state and bring everything back up to be actively driven.

    From the driver's perspective, this works like a regular disable/enable
    cycle. The driver need only check the 'self_refresh_active' state in
    crtc_state. It should initiate self refresh mode on the panel and enter
    an off or low-power state.

    Changes in v2:
    - s/psr/self_refresh/ (Daniel)
    - integrated the psr exit into the commit that wakes it up (Jose/Daniel)
    - made the psr state per-crtc (Jose/Daniel)
    Changes in v3:
    - Remove the self_refresh_(active|changed) from connector state (Daniel)
    - Simplify loop in drm_self_refresh_helper_alter_state (Daniel)
    - Improve self_refresh_aware comment (Daniel)
    - s/self_refresh_state/self_refresh_data/ (Daniel)
    Changes in v4:
    - Move docbook location below panel (Daniel)
    - Improve docbook with references and more detailed explanation (Daniel)
    - Instead of register/unregister, use init/cleanup (Daniel)
    Changes in v5:
    - Resolved conflict in drm_atomic_helper.c #include block
    - Resolved conflict in rst with HDCP helper docs
    Changes in v6:
    - Fix include ordering, clean up forward declarations (Sam)

    Link to v1: https://patchwork.freedesktop.org/patch/msgid/20190228210939.83386-2-sean@poorly.run
    Link to v2: https://patchwork.freedesktop.org/patch/msgid/20190326204509.96515-1-sean@poorly.run
    Link to v3: https://patchwork.freedesktop.org/patch/msgid/20190502194956.218441-6-sean@poorly.run
    Link to v4: https://patchwork.freedesktop.org/patch/msgid/20190508160920.144739-6-sean@poorly.run
    Link to v5: https://patchwork.freedesktop.org/patch/msgid/20190611160844.257498-6-sean@poorly.run

    Cc: Daniel Vetter
    Cc: Jose Souza
    Cc: Zain Wang
    Cc: Tomasz Figa
    Cc: Ville Syrjälä
    Cc: Sam Ravnborg
    Tested-by: Heiko Stuebner
    Reviewed-by: Daniel Vetter
    Signed-off-by: Sean Paul
    Link: https://patchwork.freedesktop.org/patch/msgid/20190612145026.191846-1-sean@poorly.run

    Sean Paul
     

11 Jun, 2019

2 commits

  • Ease entry for anyone wanting to pick up the bootsplash work by providing
    a couple of pointers.

    v2: Add Sam as contact (Sam)

    Signed-off-by: Noralf Trønnes
    Reviewed-by: Paul Kocialkowski
    Reviewed-by: Sam Ravnborg
    Link: https://patchwork.freedesktop.org/patch/msgid/20190608152657.36613-6-noralf@tronnes.org

    Noralf Trønnes
     
  • All drivers add all their connectors so there's no need to keep around an
    array of available connectors. Instead we just put the useable (not
    writeback) connectors in a temporary array using
    drm_client_for_each_connector_iter() everytime we probe the outputs.
    Other places where it's necessary to look at the connectors, we just
    iterate over them using the same iterator function.

    Rename functions which signature is changed since they will be moved to
    drm_client in a later patch.

    v6: Improve commit message (Sam Ravnborg)

    Signed-off-by: Noralf Trønnes
    Reviewed-by: Sam Ravnborg
    Link: https://patchwork.freedesktop.org/patch/msgid/20190608152657.36613-2-noralf@tronnes.org

    Noralf Trønnes
     

09 Jun, 2019

1 commit

  • Sphinx doesn't like orphan documents:

    Documentation/accelerators/ocxl.rst: WARNING: document isn't included in any toctree
    Documentation/arm/stm32/overview.rst: WARNING: document isn't included in any toctree
    Documentation/arm/stm32/stm32f429-overview.rst: WARNING: document isn't included in any toctree
    Documentation/arm/stm32/stm32f746-overview.rst: WARNING: document isn't included in any toctree
    Documentation/arm/stm32/stm32f769-overview.rst: WARNING: document isn't included in any toctree
    Documentation/arm/stm32/stm32h743-overview.rst: WARNING: document isn't included in any toctree
    Documentation/arm/stm32/stm32mp157-overview.rst: WARNING: document isn't included in any toctree
    Documentation/gpu/msm-crash-dump.rst: WARNING: document isn't included in any toctree
    Documentation/interconnect/interconnect.rst: WARNING: document isn't included in any toctree
    Documentation/laptops/lg-laptop.rst: WARNING: document isn't included in any toctree
    Documentation/powerpc/isa-versions.rst: WARNING: document isn't included in any toctree
    Documentation/virtual/kvm/amd-memory-encryption.rst: WARNING: document isn't included in any toctree
    Documentation/virtual/kvm/vcpu-requests.rst: WARNING: document isn't included in any toctree

    So, while they aren't on any toctree, add :orphan: to them, in order
    to silent this warning.

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Andrew Donnellan
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

06 Jun, 2019

5 commits

  • Just a straightforward bag of fixes for a clean htmldocs build.

    Reviewed-by: Mika Kuoppala
    Signed-off-by: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/20190605095657.23601-2-jani.nikula@intel.com

    Jani Nikula
     
  • The error messages could be more descriptive, but fix these caused by
    file moves:

    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -internal
    ./drivers/gpu/drm/i915/i915_gem_shrinker.c' failed with return code 2
    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function
    User command execution ./drivers/gpu/drm/i915/i915_gem_execbuffer.c'
    failed with return code 1
    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -internal
    ./drivers/gpu/drm/i915/i915_gem_tiling.c' failed with return code 2
    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function
    buffer object tiling ./drivers/gpu/drm/i915/i915_gem_tiling.c'
    failed with return code 1

    Fixes: 10be98a77c55 ("drm/i915: Move more GEM objects under gem/")
    Cc: Chris Wilson
    Cc: Mika Kuoppala
    Reviewed-by: Mika Kuoppala
    Signed-off-by: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/20190605095657.23601-1-jani.nikula@intel.com

    Jani Nikula
     
  • amdgpu:
    - Revert timeline support until KHR is ready
    - Various driver reload fixes
    - Refactor clock handling in DC
    - Aux fixes for DC
    - Bandwidth calculation updates for DC
    - Fix documentation due to file rename
    - RAS fix
    - Fix race in late_init

    ttm:
    - Allow for better forward progress when there is heavy memory contention

    Signed-off-by: Dave Airlie
    From: Alex Deucher
    Link: https://patchwork.freedesktop.org/patch/msgid/20190606032537.6939-1-alexander.deucher@amd.com

    Dave Airlie
     
  • This file was renamed, but docs weren't updated accordingly.

    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function PRIME Buffer Sharing ./drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c' failed with return code 1
    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -internal ./drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c' failed with return code 2

    Fixes: 2fbd6f94accdbb223a ("drm/amdgpu: rename amdgpu_prime.[ch] into amdgpu_dma_buf.[ch]")
    Reviewed-by: Christian König
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Alex Deucher

    Mauro Carvalho Chehab
     
  • drm-misc-next for v5.3:

    UAPI Changes:

    Cross-subsystem Changes:
    - Add devicetree bindings for new panels.
    - Convert allwinner's DT bindings to a schema.
    - Drop video/hdmi static functions from kernel docs.
    - Discard old fence when reserving space in reservation_object_get_fences_rcu.

    Core Changes:
    - Add missing -ENOMEM handling in edid loading.
    - Fix null pointer deref in scheduler.
    - Header cleanups, making them self-contained.
    - Remove drmP.h inclusion from core.
    - Fix make htmldocs warning in scheduler and HDR metadata.
    - Fix a few warnings in the uapi header and add a doc section for it.
    - Small MST sideband error handling fix.
    - Clarify userspace review requirements.
    - Clarify implicit/explicit fencing in docs.
    - Flush output polling on shutdown.

    Driver Changes:
    - Small cleanups to stm.
    - Add new driver for ST-Ericsson MCDE
    - Kconfig fix for meson HDMI.
    - Add support for Armadeus ST0700 Adapt panel.
    - Add KOE tx14d24vm1bpa panel.
    - Update timings for st7701.
    - Fix compile error in mcde.
    - Big series of tc358767 fixes, and enabling support for IRQ and HPD handling.
    - Assorted fixes to sii902x, and implementing HDMI audio support.
    - Enable HDR metadata support on amdgpu.
    - Assorted fixes to atmel-hlcdc, and add sam9x60 LCD controller support.

    Signed-off-by: Dave Airlie

    From: Maarten Lankhorst
    Link: https://patchwork.freedesktop.org/patch/msgid/6c43ffa9-11ff-5354-d772-c20fd4d1e3d9@linux.intel.com

    Dave Airlie
     

05 Jun, 2019

1 commit

  • WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function Hardware workarounds ./drivers/gpu/drm/i915/intel_workarounds.c' failed with return code 1
    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function Logical Rings, Logical Ring Contexts and Execlists ./drivers/gpu/drm/i915/intel_lrc.c' failed with return code 1
    WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -internal ./drivers/gpu/drm/i915/intel_lrc.c' failed with return code 2

    Fixes: 112ed2d31a46 ("drm/i915: Move GraphicsTechnology files under gt/")
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/bd7dd29b9fb2101c954c8cfb2c3b4efc7d277045.1559656538.git.mchehab+samsung@kernel.org

    Mauro Carvalho Chehab
     

04 Jun, 2019

2 commits

  • Add a new section for UAPI structure and helper definitions
    in kernel docbook.

    Suggested-by: Daniel Vetter
    Signed-off-by: Uma Shankar
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/1559567330-25182-2-git-send-email-uma.shankar@intel.com

    Uma Shankar
     
  • struct drm_fb_helper_crtc is now just a wrapper around drm_mode_set so
    use that directly instead and attach it as a modeset array onto
    drm_client_dev. drm_fb_helper will use this array to store its modesets
    which means it will always initialize a drm_client, but it will not
    register the client (callbacks) unless it's the generic fbdev emulation.

    Code will later be moved to drm_client, so add code there in a new file
    drm_client_modeset.c with MIT license to match drm_fb_helper.c.

    The modeset connector array size is hardcoded for the cloned case to avoid
    having to pass in a value from the driver. A value of 8 is chosen to err
    on the safe side. This means that the max connector argument for
    drm_fb_helper_init() and drm_fb_helper_fbdev_setup() isn't used anymore,
    a todo entry for this is added.

    In pan_display_atomic() restore_fbdev_mode_force() is used instead of
    restore_fbdev_mode_atomic() because that one will later become internal
    to drm_client_modeset.

    Locking order:
    1. drm_fb_helper->lock
    2. drm_master_internal_acquire
    3. drm_client_dev->modeset_mutex

    v6: Improve commit message (Sam Ravnborg)

    v3:
    - Use full drm_client_init/release for the modesets (Daniel Vetter)
    - drm_client_for_each_modeset: use lockdep_assert_held (Daniel Vetter)
    - Hook up to Documentation/gpu/drm-client.rst (Daniel Vetter)

    v2:
    - Add modesets array to drm_client (Daniel Vetter)
    - Use a new file for the modeset code (Daniel Vetter)
    - File has to be MIT licensed (Emmanuel Vadot)
    - Add copyrights from drm_fb_helper.c

    Signed-off-by: Noralf Trønnes
    Reviewed-by: Sam Ravnborg
    Link: https://patchwork.freedesktop.org/patch/msgid/20190531140117.37751-3-noralf@tronnes.org

    Noralf Trønnes
     

03 Jun, 2019

1 commit

  • With Eric's patch

    commit ba6e798ecf320716780bb6a6088a8d17dcba1d49
    Author: Eric Anholt
    Date: Wed Apr 24 11:56:17 2019 -0700

    drm/doc: Document expectation that userspace review looks at kernel uAPI.

    there's been concerns raised that we expect userspace people to do
    in-depth kernel patch review. That's not reasonable, same way kernel
    people can't review all the userspace we have. Try to clarify
    expectations a bit more.

    Cc: Eric Anholt
    Cc: Pekka Paalanen
    Cc: contact@emersion.fr
    Cc: wayland-devel@lists.freedesktop.org
    Acked-by: Eric Anholt
    Reviewed-by: Simon Ser
    Reviewed-by: Pekka Paalanen
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20190521084849.27452-1-daniel.vetter@ffwll.ch

    Daniel Vetter