18 Jan, 2016

3 commits

  • Pull drm updates from Dave Airlie:
    "This is the main drm pull request for 4.5. I don't think I've missed
    anything too major, I'm mostly back at work now but I'll probably get
    some sleep in 5 years time.

    Summary:

    New drivers:
    - etnaviv:

    GPU driver for the 3D core on the Vivante core used in numerous
    ARM boards.

    Highlights:

    Core:
    - Atomic suspend/resume helpers
    - Move the headers to using userspace friendlier types.
    - Documentation updates
    - Lots of struct_mutex removal.
    - Bunch of DP MST fixes from AMD.

    Panel:
    - More DSI helpers
    - Support for some new basic panels

    i915:
    - Basic Kabylake support
    - DP link training and detect code refactoring
    - fbc/psr fixes
    - FIFO underrun fixes
    - SDE interrupt handling fixes
    - dma-buf/fence support in pageflip path.
    - GPU side for MST audio support

    radeon/amdgpu:
    - Drop UMS support
    - GPUVM/Scheduler optimisations
    - Initial Powerplay support for Tonga/Fiji/CZ/ST
    - ACP audio prerequisites

    nouveau:
    - GK20a instmem improvements
    - PCIE link speed change support

    msm:
    - DSI support for msm8960/apq8064

    tegra:
    - Host1X support for Tegra210 SoC

    vc4:
    - 3D acceleration support

    armada:
    - Get rid of struct mutex

    tda998x:
    - Atomic modesetting support
    - TMDS clock limitations

    omapdrm:
    - Atomic modesetting support
    - improved TILER performance

    rockchip:
    - RK3036 VOP support
    - Atomic modesetting support
    - Synopsys DW MIPI DSI support

    exynos:
    - Runtime PM support
    - of_graph binding for DP panels
    - Cleanup of IPP code
    - Configurable plane support
    - Kernel panic fixes at release time"

    * 'drm-next' of git://people.freedesktop.org/~airlied/linux: (711 commits)
    drm/fb_cma_helper: Remove implicit call to disable_unused_functions
    drm/amdgpu: add missing irq.h include
    drm/vmwgfx: Fix a width / pitch mismatch on framebuffer updates
    drm/vmwgfx: Fix an incorrect lock check
    drm: nouveau: fix nouveau_debugfs_init prototype
    drm/nouveau/pci: fix check in nvkm_pcie_set_link
    drm/amdgpu: validate duplicates first
    drm/amdgpu: move VM page tables to the LRU end on CS v2
    drm/ttm: add ttm_bo_move_to_lru_tail function v2
    drm/ttm: fix adding foreign BOs to the swap LRU
    drm/ttm: fix adding foreign BOs to the LRU during init v2
    drm/radeon: use kobj_to_dev()
    drm/amdgpu: use kobj_to_dev()
    drm/amdgpu/cz: force vce clocks when sclks are forced
    drm/amdgpu/cz: force uvd clocks when sclks are forced
    drm/amdgpu/cz: add code to enable forcing VCE clocks
    drm/amdgpu/cz: add code to enable forcing UVD clocks
    drm/amdgpu: fix lost sync_to if scheduler is enabled.
    drm/amd/powerplay: fix static checker warning for return meaningless value.
    drm/sysfs: use kobj_to_dev()
    ...

    Linus Torvalds
     
  • Pull sound updates from Takashi Iwai:
    "We've had quite busy weeks in this cycle. Looking at ALSA core, the
    significant changes are a few fixes wrt timer and sequencer ioctls
    that have been revealed by fuzzer recently. Other than that, ASoC
    core got a few updates about DAI link handling, but these are rather
    straightforward refactoring.

    In drivers scene, ASoC received quite lots of new drivers in addition
    to bunch of updates for still ongoing Intel Skylake support and
    topology API. HD-audio gained a new HDMI/DP hotplug notification via
    component. FireWire got a pile of code refactoring/updates with
    SCS.1x driver integration.

    More highlights are shown below.

    [ NOTE: this contains also many commits for DRM. This is due to the
    pull of drm stable branch into sound tree, as the base of i915 audio
    component work for HD-audio. The highlights below don't contain
    these DRM changes, as these are supposed to be pulled via drm tree
    in anyway sooner or later. ]

    Core:
    - Handful fixes to harden ALSA timer and sequencer ioctls against
    races reported by syzkaller fuzzer
    - Irq description string can be unique to each card; only for
    HD-audio for now

    ASoC:
    - Conversion of the array of DAI links to a list for supporting
    dynamically adding and removing DAI links
    - Topology API enhancements to make everything more component based
    and being able to specify PCM links via topology
    - Some more fixes for the topology code, though it is still not final
    and ready for enabling in production; we really need to get to the
    point where that can be done
    - A pile of changes for Intel SkyLake drivers which hopefully deliver
    some useful initial functionality for systems with this chipset,
    though there is more work still to come
    - Lots of new features and cleanups for the Renesas drivers
    - ANC support for WM5110
    - New drivers: Imagination Technologies IPs, Atmel class D speaker,
    Cirrus CS47L24 and WM1831, Dialog DA7128, Realtek RT5659 and
    RT56156, Rockchip RK3036, TI PC3168A, and AMD ACP
    - Rename PCM1792a driver to be generic pcm179x

    HD-Audio:
    - Use audio component for i915 HDMI/DP hotplug handling
    - On-demand binding with i915 driver
    - bdl_pos_adj parameter adjustment for Baytrail controllers
    - Enable power_save_node for CX20722; this shouldn't lead to
    regression, hopefully
    - Kabylake HDMI/DP codec support
    - Quirks for Lenovo E50-80, Dell Latitude E-series, and other Dell
    machines
    - A few code refactoring

    FireWire:
    - Lots of code cleanup and refactoring
    - Integrate the support of SCS.1x devices into snd-oxfw driver;
    snd-scs1x driver is obsoleted

    USB-audio:
    - Fix possible NULL dereference at disconnection
    - A regression fix for Native Instruments devices

    Misc:
    - A few code cleanups of fm801 driver"

    * tag 'sound-4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (722 commits)
    ALSA: timer: Code cleanup
    ALSA: timer: Harden slave timer list handling
    ALSA: hda - Add fixup for Dell Latitidue E6540
    ALSA: timer: Fix race among timer ioctls
    ALSA: hda - add codec support for Kabylake display audio codec
    ALSA: timer: Fix double unlink of active_list
    ALSA: usb-audio: Fix mixer ctl regression of Native Instrument devices
    ALSA: hda - fix the headset mic detection problem for a Dell laptop
    ALSA: hda - Fix white noise on Dell Latitude E5550
    ALSA: hda_intel: add card number to irq description
    ALSA: seq: Fix race at timer setup and close
    ALSA: seq: Fix missing NULL check at remove_events ioctl
    ALSA: usb-audio: Avoid calling usb_autopm_put_interface() at disconnect
    ASoC: hdac_hdmi: remove unused hdac_hdmi_query_pin_connlist
    ASoC: AMD: Add missing include file
    ALSA: hda - Fixup inverted internal mic for Lenovo E50-80
    ALSA: usb: Add native DSD support for Oppo HA-1
    ASoC: Make aux_dev more like a generic component
    ASoC: bcm2835: cleanup includes by ordering them alphabetically
    ASoC: AMD: Manage ACP 2.x SRAM banks power
    ...

    Linus Torvalds
     
  • Pull documentation updates from Jon Corbet:
    "A relatively boring cycle in the docs tree. There's a few kernel-doc
    fixes and various document tweaks.

    One patch reaches out of the documentation subtree to fix a comment in
    init/do_mounts_rd.c. There didn't seem to be anybody more appropriate
    to take that one, so I accepted it"

    * tag 'docs-4.5' of git://git.lwn.net/linux: (29 commits)
    thermal: add description for integral_cutoff unit
    Documentation: update libhugetlbfs site url
    Documentation: Explain pci=conf1,conf2 more verbosely
    DMA-API: fix confusing sentence in Documentation/DMA-API.txt
    Documentation: translations: update linux cross reference link
    Documentation: fix typo in CodingStyle
    init, Documentation: Remove ramdisk_blocksize mentions
    Documentation-getdelays: Apply a recommendation from "checkpatch.pl" in main()
    Documentation: HOWTO: update versions from 3.x to 4.x
    Documentation: remove outdated references from translations
    Doc: treewide: Fix grammar "a" to "an"
    Documentation: cpu-hotplug: Fix sysfs mount instructions
    can-doc: Add hint about getting timestamps
    Fix CFQ I/O scheduler parameter name in documentation
    Documentation: arm: remove dead links from Marvell Berlin docs
    Documentation: HOWTO: update code cross reference link
    Doc: Docbook/iio: Fix typo in iio.tmpl
    DocBook: make index.html generation less verbose by default
    DocBook: Cleanup: remove an unused $(call) line
    DocBook: Add a help message for DOCBOOKS env var
    ...

    Linus Torvalds
     

14 Jan, 2016

2 commits

  • Pull second batch of media updates from Mauro Carvalho Chehab:
    "This is the second part of the media patches. It contains the media
    controller next generation patches, with is the result of one year of
    discussions and development. It also contains patches to enable media
    controller support at the DVB subsystem.

    The goal is to improve the media controller to allow proper support
    for other types of Video4Linux devices (radio and TV ones) and to
    extend the media controller functionality to allow it to be used by
    other subsystems like DVB, ALSA and IIO.

    In order to use the new functionality, a new ioctl is needed
    (MEDIA_IOC_G_TOPOLOGY). As we're still discussing how to pack the
    struct fields of this ioctl in order to avoid compat32 issues, I
    decided to add a patch at the end of this series commenting out the
    new ioctl, in order to postpone the addition of the new ioctl to the
    next Kernel version (4.6).

    With that, no userspace visible changes should happen at the media
    controller API, as the existing ioctls are untouched. Yet, it helps
    DVB, ALSA and IIO developers to develop and test the patches adding
    media controller support there, as the core will contain all required
    internal changes to allow adding support for devices that belong to
    those subsystems"

    * tag 'media/v4.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (177 commits)
    [media] Postpone the addition of MEDIA_IOC_G_TOPOLOGY
    [media] mxl111sf: Add a tuner entity
    [media] dvbdev: create links on devices with multiple frontends
    [media] media-entitiy: add a function to create multiple links
    [media] dvb-usb-v2: postpone removal of media_device
    [media] dvbdev: Add RF connector if needed
    [media] dvbdev: remove two dead functions if !CONFIG_MEDIA_CONTROLLER_DVB
    [media] call media_device_init() before registering the V4L2 device
    [media] uapi/media.h: Use u32 for the number of graph objects
    [media] media-entity: don't sleep at media_device_register_entity()
    [media] media-entity: increase max number of PADs
    [media] media-entity.h: document the remaining functions
    [media] media-device.h: use just one u32 counter for object ID
    [media] media-entity.h fix documentation for several parameters
    [media] DocBook: document media_entity_graph_walk_cleanup()
    [media] move documentation to the header files
    [media] media: Move MEDIA_ENTITY_MAX_PADS from media-entity.h to media-entity.c
    [media] media: Remove pre-allocated entity enumeration bitmap
    [media] staging: v4l: davinci_vpbe: Use the new media graph walk interface
    [media] staging: v4l: omap4iss: Use the new media graph walk interface
    ...

    Linus Torvalds
     
  • Pull MTD updates from Brian Norris:
    "Generic MTD:

    - populate the MTD device 'of_node' field (and get a proper 'of_node'
    symlink in sysfs)

    This yielded some new helper functions, and changes across a
    variety of drivers

    - partitioning cleanups, to prepare for better device-tree based
    partitioning in the future

    Eliminate a lot of boilerplate for drivers that want to use
    OF-based partition parsing

    The DT bindings for this didn't settle yet, so most non-cleanup
    portions are deferred for a future release

    NAND:

    - embed a struct mtd_info inside struct nand_chip

    This is really long overdue; too many drivers have to do the same
    silly boilerplate to allocate and link up two "independent"
    structs, when in fact, everyone is assuming there is an exact 1:1
    relationship between a NAND chips struct and its underlying MTD.
    This aids improved helpers and should make certain abstractions
    easier in the future.

    Also causes a lot of churn, helped along by some automated code
    transformations

    - add more core support for detecting (and "correcting") bitflips in
    erased pages; requires opt-in by drivers, but at least we kill a
    few bad implementations and hopefully stave off future ones

    - pxa3xx_nand: cleanups, a few fixes, and PM improvements

    - new JZ4780 NAND driver

    SPI NOR:

    - provide default erase function, for controllers that just want to
    send the SECTOR_ERASE command directly

    - fix some module auto-loading issues with device tree
    ("jedec,spi-nor")

    - error handling fixes

    - new Mediatek QSPI flash driver

    Other:

    - cfi: force valid geometry Kconfig (finally!)

    This one used to trip up randconfigs occasionally, since bots
    aren't deterred by big scary "advanced configuration" menus

    More? Probably. See the commit logs"

    * tag 'for-linus-20160112' of git://git.infradead.org/linux-mtd: (168 commits)
    mtd: jz4780_nand: replace if/else blocks with switch/case
    mtd: nand: jz4780: Update ecc correction error codes
    mtd: nandsim: use nand_get_controller_data()
    mtd: jz4780_nand: remove useless mtd->priv = chip assignment
    staging: mt29f_spinand: make use of nand_set/get_controller_data() helpers
    mtd: nand: make use of nand_set/get_controller_data() helpers
    ARM: make use of nand_set/get_controller_data() helpers
    mtd: nand: add helpers to access ->priv
    mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs
    mtd: nand: jz4740: remove custom 'erased check' implementation
    mtd: nand: diskonchip: remove custom 'erased check' implementation
    mtd: nand: davinci: remove custom 'erased check' implementation
    mtd: nand: use nand_check_erased_ecc_chunk in default ECC read functions
    mtd: nand: return consistent error codes in ecc.correct() implementations
    doc: dt: mtd: new binding for jz4780-{nand,bch}
    mtd: cfi_cmdset_0001: fixing memory leak and handling failed kmalloc
    mtd: spi-nor: wait until lock/unlock operations are ready
    mtd: tests: consolidate kmalloc/memset 0 call to kzalloc
    jffs2: use to_delayed_work
    mtd: nand: assign reasonable default name for NAND drivers
    ...

    Linus Torvalds
     

11 Jan, 2016

13 commits

  • Document what I've learned so far about the gmux so that we can
    collaboratively reverse-engineer its remaining unknown bits
    without everyone having to start from scratch.

    The DOC sections are bound together in the gpu.tmpl DocBook
    under a new vga_switcheroo "Handlers" chapter. Eventually
    this should be amended with documentation about the four other
    handlers that exist so far (nouveau v1 DSM, nouveau Optimus DSM,
    radeon ATPX, amdgpu ATPX).

    Requires kernel-doc with asciidoc support.

    The EFI variable was reverse-engineered by Bruno Bierbaumer
    and Andreas Heider .

    Some of the remaining open questions:

    * How are vblank intervals synchronized on retinas to achieve seamless
    switching? Is the DP mux capable of this? It's not mentioned in the
    data sheets. Or is it done at the OS level, i.e. do we have to
    synchronize vblank intervals between DRM drivers? There's a signal
    coming from the panel connector and going into gmux, could this be
    the vblank signal as received by the panel to properly time the
    switch?

    * On retinas there's an I2C bus between gmux and the connector of the
    right I/O board, apparently leading to the Parade PS8401A HDMI
    repeater. What is this for, is it controlled via gmux registers?
    Data sheet:
    http://www.paradetech.com/products/jitter-cleaning-repeaters/ps8401/

    * On retinas there's an I2C bus between gmux and the LED driver.
    Pre-retinas connected the LED driver to SMBUS. Are there additional
    gmux registers on retinas to control it?

    * The MacPro6,1 2013 also has a gmux, the same Renesas R4F2113 as the
    retina MacBook Pro. The Mac Pro doesn't have a built-in display,
    so what is its purpose? Power control of the dual FirePro GPUs?
    Switching of the external DP/Thunderbolt ports? The iFixit teardown
    clearly shows one TI HD3SS212 DisplayPort mux on the logic board next
    to one of the three Thunderbolt controllers. However six muxes would
    be necessary to switch all six ports between GPUs. The mux is probably
    necessary for one of the display configurations allowed by Apple,
    but which one?
    https://www.ifixit.com/Teardown/Mac+Pro+Late+2013+Teardown/20778
    https://d3nevzfk7ii3be.cloudfront.net/igi/fELBTnt31QhnDsqq.huge
    https://support.apple.com/en-us/HT202801

    * Registers we haven't decoded yet:
    0x700 32 Bit configmap?
    0x708 32 Bit power sequence?
    0x712 8 Bit status of clock from panel on retinas?
    0x713 8 Bit dito?
    0x724 16 Bit backlight, raw value?
    0x760 32 Bit backlight
    0x764 32 Bit backlight
    0x768 8 Bit backlight
    0x76a 16 Bit backlight
    0x76c 16 Bit backlight
    0x76e 16 Bit backlight
    0x77f edp/dp/hdmi probe? retina only.

    * Addition by Bruno Prémont :
    "Missing is also precise knowledge as to what the gmux depends on.
    From behavioral reports, it is somehow sensitive to VGA IO/MEM
    routing (it apparently needs the routing to go to integrated GPU,
    not discrete GPU).
    When the routing is inappropriate backlight control IO just reads back
    as 0xFF (and eventually gmux IO in general does so)."

    Signed-off-by: Lukas Wunner
    Acked-by: Darren Hart
    Link: http://patchwork.freedesktop.org/patch/msgid/da309e436fbeac886477d80376457b7d83ea4b2d.1452431795.git.lukas@wunner.de
    Signed-off-by: Daniel Vetter

    Lukas Wunner
     
  • There are a few discussions left with regards to this ioctl:

    1) the name of the new structs will contain _v2_ on it?
    2) what's the best alternative to avoid compat32 issues?

    Due to that, let's postpone the addition of this new ioctl to
    the next Kernel version, to give people more time to discuss it.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Add description for this new media controller ioctl.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Document the media controller interfaces at the media
    uAPI docbook.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • There were some changes on the media types that were not reflected
    on the types tables. Update them to reflect the upstream changes.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • As MEDIA_IOC_G_TOPOLOGY shares the data types already declared
    for entities, pads and links, we should move those to a separate
    part of the document, and use cross-references where needed.

    So, move the following tables to a separate section at the
    DocBook:
    media-entity-type
    media-entity-flag
    media-pad-flag
    media-link-flag

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • The Media Controller next generation patches added a new graph
    element type: interfaces. It also allows links between interfaces
    and entities. Update the docbook to reflect that.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Instead of using a text file, let's put it together with the
    struct documentation for the Media Controller.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Both revision and group_id fields were never used and were always
    initialized to zero. Remove them.

    Suggested-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Due to the rename, the documentation became outdated.

    Update it to reflect what's there at media.h.

    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Cleanup the media controller entities description:
    - remove MEDIA_ENT_T_DEVNODE and MEDIA_ENT_T_V4L2_SUBDEV entity
    types, as they don't mean anything;
    - add MEDIA_ENT_T_UNKNOWN with a proper description;
    - remove ALSA and FB entity types. Those should not be used, as
    the types are deprecated. We'll soon be adidng ALSA, but with
    a different entity namespace;
    - improve the description of some entities.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Now that interfaces and entities are distinct, it makes no sense
    of keeping something named as MEDIA_ENT_T_DEVNODE_DVB_foo.

    Made via this script:
    for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DEVNODE_DVB_,MEDIA_ENT_T_DVB_, a && mv a $i; done
    for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DVB_DVR,MEDIA_ENT_T_DVB_TSOUT, a && mv a $i; done
    for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DVB_FE,MEDIA_ENT_T_DVB_DEMOD, a && mv a $i; done
    for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DVB_NET,MEDIA_ENT_T_DVB_DEMOD_NET_DECAP, a && mv a $i; done

    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Now that interfaces and entities are distinct, it makes no sense
    of keeping something named as MEDIA_ENT_T_DEVNODE.

    This change was done with this script:

    for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DEVNODE_V4L,MEDIA_ENT_T_V4L2_VIDEO, a && mv a $i; done

    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

05 Jan, 2016

1 commit

  • Another pile of vfuncs from the old gpu.tmpl xml documentation that
    I've forgotten to delete. I spotted a few more things to
    clarify/extend in the new kerneldoc while going through this once
    more.

    v2: Spelling fixes (Thierry).

    v3: More spelling fixes and use Thierry's proposal to clarify why
    drivers need to validate modes both in ->mode_fixup and ->mode_valid.

    Cc: Laurent Pinchart
    Cc: Thierry Reding
    Acked-by: Thierry Reding
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

04 Jan, 2016

1 commit

  • Fix indentation of vga_switcheroo sections in gpu.tmpl.

    Change section type of API documentation from "chapter" to "sect1"
    so that the individual functions no longer clutter up the ToC.
    Group together under a new "API" chapter.

    Fix wording "heretoforth" -> "henceforth".

    Signed-off-by: Lukas Wunner
    Signed-off-by: Daniel Vetter

    Lukas Wunner
     

19 Dec, 2015

1 commit


18 Dec, 2015

1 commit

  • During the Seoul media workshop we decided to relax the VIDIOC_CREATE_BUFS
    specification so it would no longer require drivers to validate the format
    field since almost no driver did that anyway.

    Instead drivers use the buffer size(s) based on the format type and the
    corresponding format fields and will ignore any other fields. If the size
    cannot be used an error is returned, otherwise the size is used as-is.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

15 Dec, 2015

2 commits

  • I missed a few paragraphs in the docbook that need to be pulled into
    the fbdev vfunc docs.

    v2: Spelling fixes from Thierry.

    Cc: Thierry Reding
    Link: http://patchwork.freedesktop.org/patch/msgid/1449564561-3896-3-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Thierry Reding
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • DRM Docbook is now Markdown ready. This means its doc is able to
    use markdown text on it.

    * Documentation/DocBook/drm.tmpl: Contains a table duplicated from
    drivers/gpu/drm/i915/i915_reg.h. This is not needed anymore

    * drivers/gpu/drm/drm_modeset_lock.c: had a code example that used
    to look pretty bad on html. Fixed by using proper code markup.

    * drivers/gpu/drm/drm_prime.c: Remove spaces between lines to make
    a proper markup list.

    * drivers/gpu/drm/i915/i915_reg.h: Altought pandoc supports tables,
    it doesn't support table cell spanning. But we can use fixed-width
    for those special cases.

    * include/drm/drm_vma_manager.h: Another code example that should be
    proper indented with four spaces.

    v2 (Daniel): Adjust name to gpu.xml due to rename.

    v3 (Daniel):
    Split out the actual enabling in the Makefile - this way we can merge
    the conversion, while just keeping the enabling in a drm-private tree.

    Signed-off-by: Danilo Cesar Lemes de Paula (v1)
    Cc: Randy Dunlap
    Cc: Daniel Vetter
    Cc: Laurent Pinchart
    Cc: Jonathan Corbet
    Cc: Herbert Xu
    Cc: Stephan Mueller
    Cc: Michal Marek
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-doc@vger.kernel.org
    Cc: intel-gfx
    Cc: dri-devel
    Acked-by: Dave Airlie
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1448471279-19748-2-git-send-email-daniel.vetter@ffwll.ch

    Danilo Cesar Lemes de Paula
     

10 Dec, 2015

1 commit

  • Every time I type or review docs this seems a bit different. Try to
    document the common style so we can try to unify at least new docs.

    v2: Spelling fixes from Pierre, Laurent and Jani.

    v3: More spelling fixes from Lukas.

    Cc: Pierre Moreau
    Cc: Jani Nikula
    Cc: Laurent Pinchart
    Cc: Lukas Wunner
    Acked-by: Laurent Pinchart
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1449564561-3896-1-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     

09 Dec, 2015

1 commit

  • This was in the documentation for modeset helper hooks, where it is a
    bit misplaced.

    v2: Reindent the drm_mode_status enum, inspired by Ville.

    v3: Suggestions from Ville and Thierry.

    v4: Small fixup that 0day spotted.

    v5: Slight change to avoid accidental headings in kerneldoc output.

    Cc: ville.syrjala@linux.intel.com
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-27-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Ville Syrjälä (v3)
    Reviewed-by: Thierry Reding (v3)

    Daniel Vetter
     

08 Dec, 2015

5 commits

  • And merge any docbook we have into the kerneldoc comments.

    Since it's a legacy entry point with only two implementation (one each
    in atomic and legacy crtc helpers) I've made the documentation for
    set_config fairly sparse - no one should ever need to look at this
    again, all the ABI we have is baked into code.

    For ->page_flip otoh I kept all the extensive docs from the docbook
    and even extended it where it was lacking: Currently we have a pile of
    legacy page_flip implemantations, and even for atomic drivers there's
    not yet a standard implementation in the helpers. Which means every
    driver needs to implement this itself, and precise specs are really
    valuable.

    Otherwise there's just cursor, which really just boils down to "use at
    least universal planes". And gamma tables (where we have a bit a mess
    with the fbdev helper gamma hooks).

    v2: Spelling fixes (Eric).

    v3: Suggestions from Thierry.

    Cc: Eric Anholt
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-20-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • Yes these are internal functions and not exported and we generally
    don't document them. But for symmetry with the _set_property functions
    (which are exported for the atomic helpers) I'd like to document them.
    Upcoming vtable kerneldoc will reference both the set and get_property
    functions.

    v2: Suggestions from Thierry.

    Signed-off-by: Daniel Vetter
    Reviewed-by: Thierry Reding
    Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-17-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     
  • - Merge the docbook into the kerneldoc comments.

    - Spec in detail the precise semantics of the callbacks.

    - For consistency in wording and easier review roll out kerneldoc also
    for crtc, encoder and connector for the standard hooks they share
    with planes.

    v2: Suggestions from Thierry.

    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-8-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Thierry Reding

    Daniel Vetter
     
  • Duplication is bad, luckily both help texts highlighted different
    issues so the kerneldoc gained quite a bit!

    While at it also sprinkle more references to the vtable structs around
    and make it clear that legacy CRTC helpers are deprecated and which
    functions to use instead.

    v2: Spelling fixes and polish (Thierry).

    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-6-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Thierry Reding

    Daniel Vetter
     
  • Currently we have 4 helper libraries (probe, crtc, plane & atomic)
    that all use the same helper vtables. And that's by necessity since we
    don't want to litter the core structs with one ops pointer per helper
    library. Also often the reuse the same hooks (like atomic does, to
    facilite conversion from existing drivers using crtc and plane
    helpers).

    Given all that it doesn't make sense to put the docs for these next to
    specific helpers. Instead extract them into a new header file and
    section in the docbook, and add references to them everywhere.

    Unfortunately kernel-doc complains when an include directive doesn't
    find anything (and it does by dumping crap into the output file). We
    have to remove the now empty includes to avoid that, instead of leaving
    them in for future proofing.

    v2: More OCD in ordering functions.

    v3: Spelling plus collate copyright headers properly.

    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1449218769-16577-4-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Thierry Reding

    Daniel Vetter
     

04 Dec, 2015

1 commit


01 Dec, 2015

1 commit

  • …m-intel into drm-next

    drm-intel-next-2015-11-20-rebased:
    4 weeks because of my vacation, so a bit more:
    - final bits of the typesafe register mmio functions (Ville)
    - power domain fix for hdmi detection (Imre)
    - tons of fixes and improvements to the psr code (Rodrigo)
    - refactoring of the dp detection code (Ander)
    - complete rework of the dmc loader and dc5/dc6 handling (Imre, Patrik and
    others)
    - dp compliance improvements from Shubhangi Shrivastava
    - stop_machine hack from Chris to fix corruptions when updating GTT ptes on bsw
    - lots of fifo underrun fixes from Ville
    - big pile of fbc fixes and improvements from Paulo
    - fix fbdev failures paths (Tvrtko and Lukas Wunner)
    - dp link training refactoring (Ander)
    - interruptible prepare_plane for atomic (Maarten)
    - basic kabylake support (Deepak&Rodrigo)
    - don't leak ringspace on resets (Chris)
    drm-intel-next-2015-10-23:
    - 2nd attempt at atomic watermarks from Matt, but just prep for now
    - fixes all over

    * tag 'drm-intel-next-2015-11-20-merged' of git://anongit.freedesktop.org/drm-intel: (209 commits)
    drm/i915: Update DRIVER_DATE to 20151120
    drm/i915: take a power domain reference while checking the HDMI live status
    drm/i915: take a power domain ref only when needed during HDMI detect
    drm/i915: Tear down fbdev if initialization fails
    async: export current_is_async()
    Revert "drm/i915: Initialize HWS page address after GPU reset"
    drm/i915: Fix oops caused by fbdev initialization failure
    drm/i915: Fix i915_ggtt_view_equal to handle rotation correctly
    drm/i915: Stuff rotation params into view union
    drm/i915: Drop return value from intel_fill_fb_ggtt_view
    drm/i915 : Fix to remove unnecsessary checks in postclose function.
    drm/i915: add MISSING_CASE to a few port/aux power domain helpers
    drm/i915/ddi: fix intel_display_port_aux_power_domain() after HDMI detect
    drm/i915: Remove platform specific *_dp_detect() functions
    drm/i915: Don't do edp panel detection in g4x_dp_detect()
    drm/i915: Send TP1 TP2/3 even when panel claims no NO_TRAIN_ON_EXIT.
    drm/i915: PSR: Don't Skip aux handshake on DP_PSR_NO_TRAIN_ON_EXIT.
    drm/i915: Reduce PSR re-activation time for VLV/CHV.
    drm/i915: Delay first PSR activation.
    drm/i915: Type safe register read/write
    ...

    Dave Airlie
     

24 Nov, 2015

2 commits

  • A bunch of things have been removed meanwhile and docs not fully
    brought up to speed. And a few gaps closed where I noticed missing
    kerneldoc while reading through the overview sections.

    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1445533889-7661-3-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Alex Deucher
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • I just realized that I've forgotten to update all the gem refcounting
    docs. For pennance also add pretty docs for the overall drm_gem_object
    structure, with a few links thrown in fore good.

    As usually we need to make sure the kerneldoc reference is at most a
    sect2 for otherwise it won't be listed.

    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1445533889-7661-1-git-send-email-daniel.vetter@ffwll.ch
    Reviewed-by: Alex Deucher
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

23 Nov, 2015

1 commit

  • Linux 4.4-rc2

    Backmerge to get at

    commit 1b0e3a049efe471c399674fd954500ce97438d30
    Author: Imre Deak
    Date: Thu Nov 5 23:04:11 2015 +0200

    drm/i915/skl: disable display side power well support for now

    so that we can proplery re-eanble skl power wells in -next.

    Conflicts are just adjacent lines changed, except for intel_fbdev.c
    where we need to interleave the changs. Nothing nefarious.

    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

21 Nov, 2015

4 commits