22 Aug, 2017

1 commit

  • Final pile of features for 4.14

    - New ioctl to change NOA configurations, plus prep (Lionel)
    - CCS (color compression) scanout support, based on the fancy new
    modifier additions (Ville&Ben)
    - Document i915 register macro style (Jani)
    - Many more gen10/cnl patches (Rodrigo, Pualo, ...)
    - More gpu reset vs. modeset duct-tape to restore the old way.
    - prep work for cnl: hpd_pin reorg (Rodrigo), support for more power
    wells (Imre), i2c pin reorg (Anusha)
    - drm_syncobj support (Jason Ekstrand)
    - forcewake vs gpu reset fix (Chris)
    - execbuf speedup for the no-relocs fastpath, anv/vk low-overhead ftw (Chris)
    - switch to idr/radixtree instead of the resizing ht for execbuf id->vma
    lookups (Chris)

    gvt:
    - MMIO save/restore optimization (Changbin)
    - Split workload scan vs. dispatch for more parallel exec (Ping)
    - vGPU full 48bit ppgtt support (Joonas, Tina)
    - vGPU hw id expose for perf (Zhenyu)

    Bunch of work all over to make the igt CI runs more complete/stable.
    Watch https://intel-gfx-ci.01.org/tree/drm-tip/shards-all.html for
    progress in getting this ready. Next week we're going into production
    mode (i.e. will send results to intel-gfx) on hsw, more platforms to
    come.

    Also, a new maintainer tram, I'm stepping out. Huge thanks to Jani for
    being an awesome co-maintainer the past few years, and all the best
    for Jani, Joonas&Rodrigo as the new maintainers!

    * tag 'drm-intel-next-2017-08-18' of git://anongit.freedesktop.org/git/drm-intel: (179 commits)
    drm/i915: Update DRIVER_DATE to 20170818
    drm/i915/bxt: use NULL for GPIO connection ID
    drm/i915: Mark the GT as busy before idling the previous request
    drm/i915: Trivial grammar fix s/opt of/opt out of/ in comment
    drm/i915: Replace execbuf vma ht with an idr
    drm/i915: Simplify eb_lookup_vmas()
    drm/i915: Convert execbuf to use struct-of-array packing for critical fields
    drm/i915: Check context status before looking up our obj/vma
    drm/i915: Don't use MI_STORE_DWORD_IMM on Sandybridge/vcs
    drm/i915: Stop touching forcewake following a gen6+ engine reset
    MAINTAINERS: drm/i915 has a new maintainer team
    drm/i915: Split pin mapping into per platform functions
    drm/i915/opregion: let user specify override VBT via firmware load
    drm/i915/cnl: Reuse skl_wm_get_hw_state on Cannonlake.
    drm/i915/gen10: implement gen 10 watermarks calculations
    drm/i915/cnl: Fix LSPCON support.
    drm/i915/vbt: ignore extraneous child devices for a port
    drm/i915/cnl: Setup PAT Index.
    drm/i915/edp: Allow alternate fixed mode for eDP if available.
    drm/i915: Add support for drm syncobjs
    ...

    Dave Airlie
     

17 Aug, 2017

1 commit

  • This library provides helpers for drivers that don't subclass
    drm_framebuffer and are backed by drm_gem_object. The code is
    taken from drm_fb_cma_helper.

    Signed-off-by: Noralf Trønnes
    Reviewed-by: Daniel Vetter
    Reviewed-by: Eric Anholt
    Link: https://patchwork.freedesktop.org/patch/msgid/1502631125-13557-2-git-send-email-noralf@tronnes.org

    Noralf Trønnes
     

11 Aug, 2017

3 commits

  • This is not to try to force a new style; this is my interpretation of
    what the most common existing style is.

    With hopes I don't need to answer so many questions about style going
    forward.

    Start a new style section in the i915 document to bolt the register
    style guide into.

    v2: vertical alignment, incorporate to kernel-doc, and more

    Cc: Daniel Vetter
    Reviewed-by: Rodrigo Vivi
    Reviewed-by: Daniel Vetter
    Reviewed-by: Dhinakaran Pandiyan
    Signed-off-by: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/9de4a5b1bea4e76461c70a1dd66751581de0124f.1502368010.git.jani.nikula@intel.com

    Jani Nikula
     
  • Remove old warning about docproc directive that's not supported in the
    Sphinx toolchain.

    Signed-off-by: Jani Nikula
    Reviewed-by: Rodrigo Vivi
    Link: https://patchwork.freedesktop.org/patch/msgid/7fc8a110b78a9dc9a585dce643b68b4200b7e793.1502368010.git.jani.nikula@intel.com

    Jani Nikula
     
  • Ben Widawsky/Daniel Stone need the extended modifier support from
    drm-misc to be able to merge CCS support for i915.ko

    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

04 Aug, 2017

1 commit

  • The motivation behind this new interface is expose at runtime the
    creation of new OA configs which can be used as part of the i915 perf
    open interface. This will enable the kernel to learn new configs which
    may be experimental, or otherwise not part of the core set currently
    available through the i915 perf interface.

    v2: Drop DRM_ERROR for userspace errors (Matthew)
    Add padding to userspace structure (Matthew)
    s/guid/uuid/ (Matthew)

    v3: Use u32 instead of int to iterate through registers (Matthew)

    v4: Lock access to dynamic config list (Lionel)

    v5: by Matthew:
    Fix uninitialized error values
    Fix incorrect unwiding when opening perf stream
    Use kmalloc_array() to store register
    Use uuid_is_valid() to valid config uuids
    Declare ioctls as write only
    Check padding members are set to 0
    by Lionel:
    Return ENOENT rather than EINVAL when trying to remove non
    existing config

    v6: by Chris:
    Use ref counts for OA configs
    Store UUID in drm_i915_perf_oa_config rather then using pointer
    Shuffle fields of drm_i915_perf_oa_config to avoid padding

    v7: by Chris
    Rename uapi pointers fields to end with '_ptr'

    v8: by Andrzej, Marek, Sebastian
    Update register whitelisting
    by Lionel
    Add more register names for documentation
    Allow configuration programming in non-paranoid mode
    Add support for value filter for a couple of registers already
    programmed in other part of the kernel

    v9: Documentation fix (Lionel)
    Allow writing WAIT_FOR_RC6_EXIT only on Gen8+ (Andrzej)

    v10: Perform read access_ok() on register pointers (Lionel)

    Signed-off-by: Matthew Auld
    Signed-off-by: Lionel Landwerlin
    Signed-off-by: Andrzej Datczuk
    Reviewed-by: Andrzej Datczuk
    Link: https://patchwork.freedesktop.org/patch/msgid/20170803165812.2373-2-lionel.g.landwerlin@intel.com

    Lionel Landwerlin
     

31 Jul, 2017

1 commit

  • RST uses underscores at the end of words to create crossreferences and
    it will accidentally try to link to tinydrm_ and drm_fb_ targets from
    the TODO, which is clearly not the intention in this context.

    Use backslashes to escape the special meaning of the underscore.

    Reviewed-by: Daniel Vetter
    Signed-off-by: Thierry Reding
    Link: https://patchwork.freedesktop.org/patch/msgid/20170731124259.7495-1-thierry.reding@gmail.com

    Thierry Reding
     

26 Jul, 2017

3 commits

  • I need this to be able to apply the deferred fbdev setup patches, I
    need the relevant prep work that landed through the drm-intel tree.

    Also squash in conflict fixup from Laurent Pinchart.

    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • make htmldocs helps with catching these.

    Cc: Dave Airlie
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20170718074113.5554-1-daniel.vetter@ffwll.ch
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • Not all places correctly stated that gem_free_object_unlocked is the
    one to use.

    Reported-by: Eric Anholt
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20170718063337.31942-1-daniel.vetter@ffwll.ch
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

10 Jul, 2017

1 commit

  • Pull drm updates from Dave Airlie:
    "This is the main pull request for the drm, I think I've got one later
    driver pull for mediatek SoC driver, I'm undecided on if it needs to
    go to you yet.

    Otherwise summary below:

    Core drm:
    - Atomic add driver private objects
    - Deprecate preclose hook in modern drivers
    - MST bandwidth tracking
    - Use kvmalloc in more places
    - Add mode_valid hook for crtc/encoder/bridge
    - Reduce sync_file construction time
    - Documentation updates
    - New DRM synchronisation object support

    New drivers:
    - pl111 - pl111 CLCD display controller

    Panel:
    - Innolux P079ZCA panel driver
    - Add NL12880B20-05, NL192108AC18-02D, P320HVN03 panels
    - panel-samsung-s6e3ha2: Add s6e3hf2 panel support

    i915:
    - SKL+ watermark fixes
    - G4x/G33 reset improvements
    - DP AUX backlight improvements
    - Buffer based GuC/host communication
    - New getparam for (sub)slice infomation
    - Cannonlake and Coffeelake initial patches
    - Execbuf optimisations

    radeon/amdgpu:
    - Lots of Vega10 bug fixes
    - Preliminary raven support
    - KIQ support for compute rings
    - MEC queue management rework
    - DCE6 Audio support
    - SR-IOV improvements
    - Better radeon/amdgpu selection support

    nouveau:
    - HDMI stereoscopic support
    - Display code rework for >= GM20x GPUs

    msm:
    - GEM rework for fine-grained locking
    - Per-process pagetable work
    - HDMI fixes for Snapdragon 820.

    vc4:
    - Remove 256MB CMA limit from vc4
    - Add out-fence support
    - Add support for cygnus
    - Get/set tiling ioctls support
    - Add T-format tiling support for scanout

    zte:
    - add VGA support.

    etnaviv:
    - Thermal throttle support for newer GPUs
    - Restore userspace buffer cache performance
    - dma-buf sync fix

    stm:
    - add stm32f429 display support

    exynos:
    - Rework vblank handling
    - Fixup sw-trigger code

    sun4i:
    - V3s display engine support
    - HDMI support for older SoCs
    - Preliminary work on dual-pipeline SoCs.

    rcar-du:
    - VSP work

    imx-drm:
    - Remove counter load enable from PRE
    - Double read/write reduction flag support

    tegra:
    - Documentation for the host1x and drm driver.
    - Lots of staging ioctl fixes due to grate project work.

    omapdrm:
    - dma-buf fence support
    - TILER rotation fixes"

    * tag 'drm-for-v4.13' of git://people.freedesktop.org/~airlied/linux: (1270 commits)
    drm: Remove unused drm_file parameter to drm_syncobj_replace_fence()
    drm/amd/powerplay: fix bug fail to remove sysfs when rmmod amdgpu.
    amdgpu: Set cik/si_support to 1 by default if radeon isn't built
    drm/amdgpu/gfx9: fix driver reload with KIQ
    drm/amdgpu/gfx8: fix driver reload with KIQ
    drm/amdgpu: Don't call amd_powerplay_destroy() if we don't have powerplay
    drm/ttm: Fix use-after-free in ttm_bo_clean_mm
    drm/amd/amdgpu: move get memory type function from early init to sw init
    drm/amdgpu/cgs: always set reference clock in mode_info
    drm/amdgpu: fix vblank_time when displays are off
    drm/amd/powerplay: power value format change for Vega10
    drm/amdgpu/gfx9: support the amdgpu.disable_cu option
    drm/amd/powerplay: change PPSMC_MSG_GetCurrPkgPwr for Vega10
    drm/amdgpu: Make amdgpu_cs_parser_init static (v2)
    drm/amdgpu/cs: fix a typo in a comment
    drm/amdgpu: Fix the exported always on CU bitmap
    drm/amdgpu/gfx9: gfx_v9_0_enable_gfx_static_mg_power_gating() can be static
    drm/amdgpu/psp: upper_32_bits/lower_32_bits for address setup
    drm/amd/powerplay/cz: print message if smc message fails
    drm/amdgpu: fix typo in amdgpu_debugfs_test_ib_init
    ...

    Linus Torvalds
     

27 Jun, 2017

1 commit


20 Jun, 2017

4 commits

  • I spotted a markup issue, plus adding the descriptions in drm_driver.
    Plus a few more links while at it.

    I'm still mildly unhappy with the split between fops and ioctls, but I
    still think having the ioctls in the uapi chapter makes more sense. Oh
    well ...

    v2: Rebase.

    v3: Move misplace hunk to the right patch.

    Cc: Stefan Agner
    Acked-by: Thierry Reding
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170531092045.3950-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Unify and review everything, plus make sure it's all correct markup.
    Drop the kernel-doc for internal functions. Also rework the overview
    section, it's become rather outdated.

    Unfortuantely the kernel-doc in drm_driver isn't rendered yet, but
    that will change as soon as drm_driver is kernel-docified properly.

    Also document properly that drm_vblank_cleanup is optional, the core
    calls this already.

    v2: Make it clear that cleanup happens in drm_dev_fini for drivers
    with their own ->release callback (Thierry).

    Acked-by: Thierry Reding
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170524145212.27837-11-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • I'm fed up staring at the error message from kernel-doc that
    it can't find anything.

    Acked-by: Thierry Reding
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170524145212.27837-10-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • drm/tegra: Changes for v4.13-rc1

    This starts off with the addition of more documentation for the host1x
    and DRM drivers and finishes with a slew of fixes and enhancements for
    the staging IOCTLs as a result of the awesome work done by Dmitry and
    Erik on the grate reverse-engineering effort.

    * tag 'drm/tegra/for-4.13-rc1' of git://anongit.freedesktop.org/tegra/linux:
    gpu: host1x: At first try a non-blocking allocation for the gather copy
    gpu: host1x: Refactor channel allocation code
    gpu: host1x: Remove unused host1x_cdma_stop() definition
    gpu: host1x: Remove unused 'struct host1x_cmdbuf'
    gpu: host1x: Check waits in the firewall
    gpu: host1x: Correct swapped arguments in the is_addr_reg() definition
    gpu: host1x: Forbid unrelated SETCLASS opcode in the firewall
    gpu: host1x: Forbid RESTART opcode in the firewall
    gpu: host1x: Forbid relocation address shifting in the firewall
    gpu: host1x: Do not leak BO's phys address to userspace
    gpu: host1x: Correct host1x_job_pin() error handling
    gpu: host1x: Initialize firewall class to the job's one
    drm/tegra: dc: Disable plane if it is invisible
    drm/tegra: dc: Apply clipping to the plane
    drm/tegra: dc: Avoid reset asserts on Tegra20
    drm/tegra: Check syncpoint ID in the 'submit' IOCTL
    drm/tegra: Correct copying of waitchecks and disable them in the 'submit' IOCTL
    drm/tegra: Check for malformed offsets and sizes in the 'submit' IOCTL
    drm/tegra: Add driver documentation
    gpu: host1x: Flesh out kerneldoc

    Dave Airlie
     

16 Jun, 2017

1 commit

  • Cross-subsystem Changes:
    - dt-bindings: add vendor prefix for NLT Technologies, Ltd. (Lucas)
    - dt-bindings: Add support for samsung s6e3hf2 panel (Hoegeun)

    Core Changes:
    - Add drm_panel_bridge to avoid connector boilerplate in drivers (Eric)
    - Trival fixes for dupe forward decl and reduce scope of variable (Dawid)

    Driver Changes:
    - dw-hdmi: Use mode_valid hook on bridge instead of connector (Jose)
    - vc4,atmel-hlcdc: Use drm_panel_bridge where appropriate (Eric)
    - panel: Add Innolux P079ZCA panel driver (Chris)
    - panel-simple: Add NL12880B20-05, NL192108AC18-02D, P320HVN03 panels (Lucas)
    - panel-samsung-s6e3ha2: Add s6e3hf2 panel support (Hoegeun)
    - zte,vc4,pl111,panel,mxsfb: Miscellaneous fixes

    Cc: Jose Abreu
    Cc: Eric Anholt
    Cc: Chris Zhong
    Cc: Lucas Stach
    Cc: Hoegeun Kwon
    Cc: Dawid Kurek

    * tag 'drm-misc-next-2017-06-15' of git://anongit.freedesktop.org/git/drm-misc: (26 commits)
    drm: Reduce scope of 'state' variable
    drm: mxsfb_crtc: Reset the eLCDIF controller
    drm: Remove duplicate forward declaration
    drm/panel: s6e3ha2: Add support for s6e3hf2 panel on TM2e board
    dt-bindings: Add support for samsung s6e3hf2 panel
    drm/panel: add backlight dependency for sitronix-st7789v
    drm/panel: S6E3HA2 needs backlight code
    drm/panel: simple: add support for AUO P320HVN03
    drm/panel: simple: add support for NLT NL192108AC18-02D
    dt-bindings: add vendor prefix for NLT Technologies, Ltd.
    drm/panel: simple: add support for NEC NL12880B20-05
    drm/panel: add Innolux P079ZCA panel driver
    dt-bindings: Add INNOLUX P079ZCA panel bindings
    drm/vc4: Fix resource leak in 'vc4_get_hang_state_ioctl()' in error handling path
    drm/vc4/vc4_bo.c: always set bo->resv
    drm: Add const to name field declaration in struct drm_prop_enum_list
    drm/pl111: Fix offset calculation for the primary plane.
    drm/atmel-hlcdc: Fix panel registration
    drm/bridge: Build the panel wrapper in drm_kms_helper
    drm/atmel-hlcdc: Replace the panel usage with drm_panel_bridge.
    ...

    Dave Airlie
     

15 Jun, 2017

1 commit


14 Jun, 2017

1 commit

  • Sync objects are new toplevel drm object, that contain a
    pointer to a fence. This fence can be updated via command
    submission ioctls via drivers.

    There is also a generic wait obj API modelled on the vulkan
    wait API (with code modelled on some amdgpu code).

    These objects can be converted to an opaque fd that can be
    passes between processes.

    v2: rename reference/unreference to put/get (Chris)
    fix leaked reference (David Zhou)
    drop mutex in favour of cmpxchg (Chris)
    v3: cleanups from danvet, rebase on drm_fops rename
    check fd_flags is 0 in ioctls.
    v4: export find/free, change replace fence to take a
    syncobj. In order to support lookup first, replace
    later semantics which seem in the end to be cleaner.

    Reviewed-by: Sean Paul
    Reviewed-by: Chris Wilson
    Signed-off-by: Dave Airlie

    Dave Airlie
     

05 Jun, 2017

1 commit

  • Many DRM drivers have common code to make a stub connector
    implementation that wraps a drm_panel. By wrapping the panel in a DRM
    bridge, all of the connector code (including calls during encoder
    enable/disable) goes away.

    v2: Fix build with CONFIG_DRM=m, drop "dev" argument that should just
    be the panel's dev, move kerneldoc up a level and document
    _remove().
    v3: Fix another breakage with CONFIG_DRM=m, fix breakage with
    CONFIG_OF=n, move protos under CONFIG_DRM_PANEL_BRIDGE, wrap a
    line.

    Signed-off-by: Eric Anholt
    Acked-by: Daniel Vetter (v1)
    Reviewed-by: Boris Brezillon (v2)
    Acked-by: Archit Taneja (v2)
    Signed-off-by: Archit Taneja
    Link: http://patchwork.freedesktop.org/patch/msgid/20170602202514.11900-1-eric@anholt.net

    Eric Anholt
     

01 Jun, 2017

2 commits

  • Pull a (much shorter) overview into drm_irq.c, and instead put the
    callback documentation into in-line comments in drm_drv.h.

    v2: Move the include stanzas back to the split-up patch (Stefan).

    Cc: Stefan Agner
    Reviewed-by: Stefan Agner
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170531092253.12833-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • drm_irq.c contains both the irq helper library (optional) and the
    vblank support (optional, but part of the modeset uapi, and doesn't
    require the use of the irq helpers at all.

    Split this up for more clarity of the scope of the individual bits.

    v2: Move misplaced hunks to this patch (Stefan).

    Cc: Stefan Agner
    Reviewed-by: Stefan Agner
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170531092146.12528-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     

26 May, 2017

1 commit


18 May, 2017

1 commit

  • UAPI Changes:
    - Return -ENODEV instead of -ENXIO when creating cma fb w/o valid gem (Daniel)
    - Add aspect ratio and custom scaling propertis to connector state (Maarten)

    Cross-subsystem Changes:
    - None

    Core Changes:
    - Add Laurent as bridge reviewer and Andrzej as bridge maintainer (Archit)
    - Maintain new STM driver through -misc (Yannick)
    - Misc doc improvements (as is tradition) (Daniel)
    - Add driver-private objects to atomic state (Dhinakaran)
    - Deprecate preclose hook in modern drivers (use postclose) (Daniel)
    - Add hwmode to vblank struct. This fixes mode access in irq context and reduced
    a bunch of boilerplate (Daniel)

    Driver Changes:
    - vc4: Add out-fence support to vc4 V3D rendering (Eric)
    - stm: Add stm32f429 display hw and am-480272h3tmqw-t01h panel support (Yannick)
    - vc4: Remove 256MB cma limit from vc4 (Eric)
    - dw-hdmi: Disable audio when inactive, instead of always enabled (Romain)
    - zte: Add support for VGA to the ZTE driver (Shawn)
    - i915: Track DP MST bandwidth and check it in atomic_check (Dhinakaran)
    - vgem: Enable gem dmabuf import iface to facilitate ion testing (Laura)
    - vc4: Add support for Cygnus (new dt compat string + couple bug fixes) (Eric)
    - pl111: Add driver for pl111 CLCD display controller (Eric/Tom)
    - vgem: Subclass drm_device instead of standalone platform device (Chris)

    Cc: Archit Taneja
    Cc: Eric Anholt
    Cc: Yannick Fertre
    Cc: Romain Perier
    Cc: Navare, Manasi D
    Cc: Shawn Guo
    Cc: Dhinakaran Pandiyan
    Cc: Laura Abbott
    Cc: Maarten Lankhorst
    Cc: Tom Cooksey
    Cc: Daniel Vetter
    Cc: Chris Wilson

    * tag 'drm-misc-next-2017-05-16' of git://anongit.freedesktop.org/git/drm-misc: (72 commits)
    drm: add missing declaration to drm_blend.h
    drm/dp: Wait up all outstanding tx waiters
    drm/dp: Read the tx msg state once after checking for an event
    drm/prime: Forward declare struct device
    drm/vblank: Lock down vblank->hwmode more
    drm/vblank: drop the mode argument from drm_calc_vbltimestamp_from_scanoutpos
    drm/vblank: Add FIXME comments about moving the vblank ts hooks
    drm/vblank: Switch to bool in_vblank_irq in get_vblank_timestamp
    drm/vblank: Switch drm_driver->get_vblank_timestamp to return a bool
    drm/vgem: Convert to a struct drm_device subclass
    gpu: drm: gma500: remove dead code
    drm/sti: Adjust two checks for null pointers in sti_hqvdp_probe()
    drm/sti: Fix typos in a comment line
    drm/sti: Fix a typo in a comment line
    drm/sti: Replace 17 seq_puts() calls by seq_putc()
    drm/sti: Reduce function calls for sequence output at five places
    drm/sti: use seq_puts to display a string
    drm: Nerf the preclose callback for modern drivers
    drm/exynos: Merge pre/postclose hooks
    drm/tegra: switch to postclose
    ...

    Dave Airlie
     

16 May, 2017

1 commit


09 May, 2017

1 commit

  • This is a modesetting driver for the pl111 CLCD display controller
    found on various ARM platforms such as the Versatile Express. The
    driver has only been tested on the bcm911360_entphn platform so far,
    with PRIME-based buffer sharing between vc4 and clcd.

    It reuses the existing devicetree binding, while not using quite as
    many of its properties as the fbdev driver does (those are left for
    future work).

    v2: Nearly complete rewrite by anholt, cutting 2/3 of the code thanks
    to DRM core's excellent new helpers.
    v3: Don't match pl110 any more, don't attach if we don't have a DRM
    panel, use DRM_GEM_CMA_FOPS, update MAINTAINERS, use the simple
    display helper, use drm_gem_cma_dumb_create (same as our wrapper).
    v4: Change the driver's .name to not clash with fbdev in sysfs, drop
    platform alias, drop redundant "drm" in DRM driver name, hook up
    .prepare_fb to the CMA helper so that DMA fences should work.
    v5: Move register definitions inside the driver directory, fix build
    in COMPILE_TEST and !AMBA mode.
    v6: Drop TIM2_CLKSEL for now to be consistent with existing DT
    bindings, switch back to external register definitions.

    Signed-off-by: Tom Cooksey
    Signed-off-by: Eric Anholt
    Reviewed-by: Linus Walleij (v5)
    Acked-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170413031746.12921-2-eric@anholt.net

    Tom Cooksey
     

05 May, 2017

1 commit

  • freedesktop.org has adopted a formal&enforced code of conduct:

    https://www.fooishbar.org/blog/fdo-contributor-covenant/
    https://www.freedesktop.org/wiki/CodeOfConduct/

    Besides formalizing things a bit more I don't think this changes
    anything for us, we've already peer-enforced respectful and
    constructive interactions since a long time. But it's good to document
    things properly.

    v2: Drop confusing note from commit message and clarify the grammer
    (Chris, Alex and others).

    Cc: Daniel Stone
    Cc: Keith Packard
    Cc: tfheen@err.no
    Signed-off-by: Daniel Vetter
    Reviewed-by: Daniel Stone
    Reviewed-by: Sumit Semwal
    Acked-by: Archit Taneja
    Reviewed-by: Martin Peres
    Acked-by: Thierry Reding
    Acked-by: Jani Nikula
    Acked-by: Vincent Abriou
    Acked-by: Neil Armstrong
    Reviewed-by: Maarten Lankhorst
    Acked-by: Brian Starkey
    Acked-by: Rob Clark
    Reviewed-by: David Herrmann
    Acked-by: Sean Paul
    Reviewed-by: Harry Wentland
    Reviewed-by: Eric Anholt
    Acked-by: Alex Deucher
    Acked-by: Gustavo Padovan
    Acked-by: Michel Dänzer
    Acked-by: Laurent Pinchart
    Acked-by: Sumit Semwal
    Acked-by: Keith Packard
    Acked-by: Gabriel Krisman Bertazi
    Acked-by: Adam Jackson
    Signed-off-by: Dave Airlie

    Daniel Vetter
     

05 Apr, 2017

3 commits

  • Also unify/merge with the existing stuff.

    I was a bit torn where to put this, but in the end I decided to put
    all the ioctl/sysfs/debugfs stuff into drm-uapi.rst. That means we
    have a bit a split with the other uapi related stuff used internally,
    like drm_file.[hc], but I think overall this makes more sense.

    If it's too confusing we can always add more cross-links to make it
    more discoverable. But the auto-sprinkling of links kernel-doc already
    does seems sufficient.

    Also for prettier docs and more cross-links, switch the internal
    defines over to an enum, as usual.

    v2: Update kerneldoc fro drm_compat_ioctl too (caught by 0day), plus a
    bit more drive-by polish.

    v3: Fix typo, spotted by xerpi on irc (Sergi).

    v4: Add missing space in comment (Neil).

    Cc: Sergi Granell
    Reviewed-by: Neil Armstrong
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170404095304.17599-4-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • - remove docs for internal func, doesn't add value
    - add short overview snippet instead explaining that drivers don't
    have to bother themselves with reg/unreg concerns
    - drop the ttm comment about drmP.h, drmP.h is disappearing ...

    Reviewed-by: Neil Armstrong
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170404095304.17599-2-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Just drive-by, but we have gsoc running so better to update it now.

    Great news is that two entries can be removed because essentially all
    done.

    v2: Keep a bunch of the todos, Gabriel is working on them.

    Cc: Gabriel Krisman Bertazi
    Reviewed-by: Neil Armstrong
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170404095304.17599-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     

04 Apr, 2017

2 commits


29 Mar, 2017

1 commit


26 Mar, 2017

1 commit

  • Discussed with Noralf on the list a bit.

    An open question is tinydrm vs. drm_panel, but until we have a clear
    idea what's really needed in that space, I think it's best to just
    move forward with what we have.

    Cc: Noralf Trønnes
    Acked-by: Noralf Trønnes
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170322083617.13361-10-daniel.vetter@ffwll.ch

    Daniel Vetter
     

24 Mar, 2017

2 commits

  • I've decided to not document drm_debugfs_remove_files, it's on the way
    out.

    The biggest part is a huge todo.rst entry with what all should be
    improved.

    v2: Nits from Gabriel.

    Cc: Gabriel Krisman Bertazi
    Reviewed-by: Gabriel Krisman Bertazi
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170322205401.24897-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • This was missed in Tomeu's patch. Also remove the kerneldoc for the
    internal function, we don't document that in general.

    While at it word-smith the docs slightly for more clarity.

    Cc: Tomeu Vizoso
    Reviewed-by: Tomeu Vizoso
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170322083617.13361-4-daniel.vetter@ffwll.ch

    Daniel Vetter
     

23 Mar, 2017

3 commits

  • Resync with drm-next, I have a patch which currently can't be applied
    because drm-misc-next lacked the latest drm/i915 code.

    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • drm-misc for 4.12, 2nd attempt this week:

    - topic branch from Jon Corbet for the new graph kerneldoc support
    - lots of graphs for kms/atomic things using the above
    - some vblank query tuning from Chris
    - gem/cma_fops macros
    - moar docs

    Driver stuff:
    - vc4 hdmi audio, yay (Eric)
    - dw-hdmi polish from a bunch of people
    - some rockchip dp updates that didn't make last week (Chris Zhong)
    - misc bridge&driver updates

    * tag 'drm-misc-next-2017-03-21' of git://anongit.freedesktop.org/git/drm-misc: (37 commits)
    drm/edid: detect SCDC support in HF-VSDB
    drm/edid: detect SCDC support in HF-VSDB
    drm/edid: check for HF-VSDB block
    drm: Add SCDC helpers
    drm: bridge: dw-hdmi: add HDMI vendor specific infoframe config
    drm/bridge: dw_hdmi: support i2c extended read mode
    drm/msm: add stubs for msm_{perf,rd}_debugfs_cleanup
    drm: bochs: Don't remove uninitialized fbdev framebuffer
    drm: vc4: remove redundant check of plane being non-null
    drm/vc4: use platform_register_drivers
    dma-fence: add dma_fence_match_context helper
    drm/vc4: Add HDMI audio support
    dt-bindings: Document the dmas and dma-names properties for VC4 HDMI
    drm/atmel-hlcdc: Fix suspend/resume implementation
    drm: Skip the waitqueue setup for vblank queries
    drm: Defer disabling the vblank IRQ until the next interrupt (for instant-off)
    drm/doc: atomic overview, with graph
    drm/doc: diagram for mode objects and properties
    drm/doc: Consistent kerneldoc include order
    drm/doc: Add KMS overview graphs
    ...

    Dave Airlie
     
  • The discussion pretty much concluded without objections, let's
    document what we agreed on.

    Cc'ing linux-doc for the new tag in Documentation/process/index.rst.

    Acked-by: Dave Airlie
    Reviewed-by: Sean Paul
    Cc: Jonathan Corbet
    Cc: linux-doc@vger.kernel.org
    Cc: Dave Airlie
    Cc: Sean Paul
    Cc: Jani Nikula
    Cc: Alex Deucher
    Cc: Lukas Wunner
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/20170321155228.30287-1-daniel.vetter@ffwll.ch

    Daniel Vetter
     

21 Mar, 2017

1 commit

  • SCDC is a mechanism defined in the HDMI 2.0 specification that allows
    the source and sink devices to communicate.

    This commit introduces helpers to access the SCDC and provides the
    symbolic names for the various registers defined in the specification.

    V2: Rebase.
    V3: Added R-B from Jose.
    V4: Rebase
    V5: Addressed review comments from Ville
    - Handle the I2c return values in a better way (dp_dual_mode)
    - Make the macros for SCDC Major/Minor more readable, by adding
    a 'GET' in the macro names
    V6: Rebase
    V7: Rebase
    V8: Rebase
    V9: Rebase
    V10: Rebase

    Signed-off-by: Thierry Reding
    Signed-off-by: Shashank Sharma
    Reviewed-by: Jose Abreu
    Signed-off-by: Jani Nikula
    Link: http://patchwork.freedesktop.org/patch/msgid/1489404244-16608-2-git-send-email-shashank.sharma@intel.com

    Thierry Reding