02 Mar, 2021

1 commit

  • android display hal has refined the logic to use block commit when
    there is overlay but without android out fence. This android out
    fence patch can be reverted now.

    Revert "MA-14133 Enable android out fence and normal out fence simultaneously"

    This reverts commit d5d94e0e13b5bdf8b3ab4f60341e00898bbaf3c2.

    Change-Id: I8ef48ba46350324965e055e5314c837472aead6d
    Signed-off-by: Richard Liu

    Richard Liu
     

01 Feb, 2021

1 commit


27 Jan, 2021

1 commit


19 Jan, 2021

1 commit

  • Add android out-fence support for DRM, enable android out fence and
    normal out fence simultaneously. Android present fence depends on
    normal out fence which represents current frame on screen. Layer
    release fence depends on android out fence which should be signaled
    when it is off screen.

    Key changes:
    Add DRIVER_ATOMIC_ANDROID_FENCE feature to declare android out-fence support.
    Add ANDROID_OUT_FENCE_PTR property to transfer fence fd.
    Android fence is created when drm_atomic_commit called.
    Add drm_crtc_arm_fence_event to insert fence to queue.
    Add drm_crtc_handle_fence to signal buffer fence off screen.
    Add drm android out-fence to dcss crtc.

    This patch cherry-pick below four patches from L4.19 kernel and do
    some update based on L5.4 kernel changes.
    commit d939f92ae2ffde6b78d5f4befd409f448f0e78c9
    Author: Ivan.liu
    MA-11972 Add android out-fence support for DRM.
    Android requires buffer fence signaled when it is off screen.
    But default out-fence can't meet that.
    Add DRIVER_ATOMIC_ANDROID_FENCE feature to declare android out-fence support.
    Add ANDROID_OUT_FENCE_PTR property to transfer fence fd.
    Android fence is created when drm_atomic_commit called.
    Add drm_crtc_arm_fence_event to insert fence to queue.
    Add drm_crtc_handle_fence to signal buffer fence off screen.
    commit a0391e0dc88450e624e8f57fa568ed043e0cee99
    Author: Ivan.liu
    MA-11972-2 Add android out-fence support for DRM.
    Add drm android out-fence to dcss crtc.
    commit c3f41907367dcad63ae5a23391331dc2193d3918
    Author: Ivan.liu
    MA-14133 Enable android out fence and normal out fence simultaneously.
    Refine fence generation codes to support android out fence and normal out fence.
    Android present fence depends on normal out fence which represents current frame on screen.
    Layer release fence depends on android out fence which should be signaled when it is off screen.
    commit 26262450de93647c809ad4970bce5ccce94fec62
    Author: Ivan.liu
    MA-13203 Fix kernel panic when do video plaback with dual display on 8mq.
    Unable to handle kernel NULL pointer dereference at virtual address 00000000
    Internal error: Oops: 96000004 [#1] PREEMPT SMP
    Hardware name: Freescale i.MX8MQ EVK (DT)
    PC is at dma_fence_signal_locked+0x50/0x178
    LR is at dma_fence_signal_locked+0xbc/0x178
    Call trace:
    [] dma_fence_signal_locked+0x50/0x178
    [] drm_crtc_handle_fence+0x7c/0xfc
    [] dcss_crtc_irq_handler+0x54/0x6c
    [] __handle_irq_event_percpu+0x60/0x24c
    [] handle_irq_event+0x58/0xc0
    The root cause is fence is copied to CRTC state and reused again.
    Set state fence to null when duplicate CRTC state to fix this issue.

    Change-Id: Id98b2a49be49574b836a508c182c3e3a99230ac4
    Signed-off-by: Richard Liu

    Richard Liu
     

18 Jan, 2021

1 commit


08 Jan, 2021

1 commit


18 Dec, 2020

3 commits


17 Dec, 2020

2 commits


14 Dec, 2020

15 commits


02 Nov, 2020

1 commit


27 Oct, 2020

3 commits

  • A kernel-doc markup should start with the identifier on its
    first line.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/5b76c5625709aaaa3abee98faa620b9f3d27ff85.1603791716.git.mchehab+huawei@kernel.org

    Mauro Carvalho Chehab
     
  • Right now, kernel-doc generates a warning:
    ./include/drm/drm_dp_helper.h:1786: warning: Function parameter or member 'hbr2_reset' not described in 'drm_dp_phy_test_params'

    This is due to a typo:

    @hb2_reset -> @hbr2_reset

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/2a615cb38e951215bb1bddc2481ad323c9cf3fc9.1603791716.git.mchehab+huawei@kernel.org

    Mauro Carvalho Chehab
     
  • It is not possible to create cross-references for duplicated
    symbols. While Sphinx always detected it, on Sphinx 3 it
    generates warnings like this:

    .../Documentation/gpu/drm-kms-helpers:326: ../drivers/gpu/drm/drm_edid.c:1626: WARNING: Duplicate C declaration, also defined in 'gpu/drm-kms-helpers'.
    Declaration is 'bool drm_edid_are_equal (const struct edid *edid1, const struct edid *edid2)'.

    So, get rid of the duplicated kernel-doc markup.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/9310f4074fa9d29cd3ad60684d86d0ace8dab7ae.1603791716.git.mchehab+huawei@kernel.org

    Mauro Carvalho Chehab
     

26 Oct, 2020

2 commits


25 Oct, 2020

1 commit


16 Oct, 2020

3 commits

  • Necessary changes to support notifier for panel related events
    have been made to vendor specific drivers. No need to retain
    support in DRM framework

    This reverts commit 310dd4fe83503942ac30ffc5c979ace61fe74737.

    Change-Id: I9528c01559e8e84497b238719833e07c736b36bf
    Signed-off-by: Narendra Muppalla

    Narendra Muppalla
     
  • Pull sound updates from Takashi Iwai:
    "The amount of changes is smaller at this round (what a surprise), but
    lots of activity is seen. Most of changes are about ASoC driver
    development, especially Intel platforms. Here are some highlights:

    General:
    - Replace all tasklet usages with other alternatives
    - Cleanup of the ASoC error unwinding code
    - Fixes for trivial issues caught by static checker
    - Spell fixes allover the places

    ALSA Core:
    - Lockdep fix for control devices
    - Fix for potential OSS sequencer mutex stalls

    HD-audio and USB-audio:
    - SoundBlaster AE-7 support
    - Changes in quirk table for the rename handling
    - Quirks for HP and ASUS machines, Pioneer DJ DJM-250MK2.

    ASoC:
    - Lots of updates for Intel SOF and SoundWire enablement
    - Replacement of the DSP driver for some older x86 systems; the new
    code was written from scratch, better maintenance expected
    - Helpers for parsing auxiluary devices from the device tree
    - New support for AllWinner A64, Cirrus Logic CS4234, Mediatek MT6359
    Microchip S/PDIF TX and RX controllers, Realtek RT1015P, and Texas
    Instruments J721E, TAS2110, TAS2564 and TAS2764"

    * tag 'sound-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (498 commits)
    ALSA: hda/hdmi: fix incorrect locking in hdmi_pcm_close
    ALSA: hda: fix jack detection with Realtek codecs when in D3
    ALSA: fireworks: use semicolons rather than commas to separate statements
    ALSA: hda: use semicolons rather than commas to separate statements
    ALSA: hda/i915 - fix list corruption with concurrent probes
    ASoC: dmaengine: Document support for TX only or RX only streams
    ASoC: mchp-spdiftx: remove 'TX' from playback stream name
    ASoC: ti: davinci-mcasp: Use &pdev->dev for early dev_warn
    ASoC: tas2764: Add the driver for the TAS2764
    dt-bindings: tas2764: Add the TAS2764 binding doc
    ASoC: Intel: catpt: Add explicit DMADEVICES kconfig dependency
    ASoC: Intel: catpt: Fix compilation when CONFIG_MODULES is disabled
    ASoC: stm32: dfsdm: add actual resolution trace
    ASoC: stm32: dfsdm: change rate limits
    ASoC: qcom: sc7180: Add support for audio over DP
    Asoc: qcom: lpass-platform : Increase buffer size
    ASoC: qcom: Add support for lpass hdmi driver
    Asoc: qcom: lpass:Update lpaif_dmactl members order
    Asoc:qcom:lpass-cpu:Update dts property read API
    ASoC: dt-bindings: Add dt binding for lpass hdmi
    ...

    Linus Torvalds
     
  • Pull drm updates from Dave Airlie:
    "Not a major amount of change, the i915 trees got split into display
    and gt trees to better facilitate higher level review, and there's a
    major refactoring of i915 GEM locking to use more core kernel concepts
    (like ww-mutexes). msm gets per-process pagetables, older AMD SI cards
    get DC support, nouveau got a bump in displayport support with common
    code extraction from i915.

    Outside of drm this contains a couple of patches for hexint
    moduleparams which you've acked, and a virtio common code tree that
    you should also get via it's regular path.

    New driver:
    - Cadence MHDP8546 DisplayPort bridge driver

    core:
    - cross-driver scatterlist cleanups
    - devm_drm conversions
    - remove drm_dev_init
    - devm_drm_dev_alloc conversion

    ttm:
    - lots of refactoring and cleanups

    bridges:
    - chained bridge support in more drivers

    panel:
    - misc new panels

    scheduler:
    - cleanup priority levels

    displayport:
    - refactor i915 code into helpers for nouveau

    i915:
    - split into display and GT trees
    - WW locking refactoring in GEM
    - execbuf2 extension mechanism
    - syncobj timeline support
    - GEN 12 HOBL display powersaving
    - Rocket Lake display additions
    - Disable FBC on Tigerlake
    - Tigerlake Type-C + DP improvements
    - Hotplug interrupt refactoring

    amdgpu:
    - Sienna Cichlid updates
    - Navy Flounder updates
    - DCE6 (SI) support for DC
    - Plane rotation enabled
    - TMZ state info ioctl
    - PCIe DPC recovery support
    - DC interrupt handling refactor
    - OLED panel fixes

    amdkfd:
    - add SMI events for thermal throttling
    - SMI interface events ioctl update
    - process eviction counters

    radeon:
    - move to dma_ for allocations
    - expose sclk via sysfs

    msm:
    - DSI support for sm8150/sm8250
    - per-process GPU pagetable support
    - Displayport support

    mediatek:
    - move HDMI phy driver to PHY
    - convert mtk-dpi to bridge API
    - disable mt2701 tmds

    tegra:
    - bridge support

    exynos:
    - misc cleanups

    vc4:
    - dual display cleanups

    ast:
    - cleanups

    gma500:
    - conversion to GPIOd API

    hisilicon:
    - misc reworks

    ingenic:
    - clock handling and format improvements

    mcde:
    - DSI support

    mgag200:
    - desktop g200 support

    mxsfb:
    - i.MX7 + i.MX8M
    - alpha plane support

    panfrost:
    - devfreq support
    - amlogic SoC support

    ps8640:
    - EDID from eDP retrieval

    tidss:
    - AM65xx YUV workaround

    virtio:
    - virtio-gpu exported resources

    rcar-du:
    - R8A7742, R8A774E1 and R8A77961 support
    - YUV planar format fixes
    - non-visible plane handling
    - VSP device reference count fix
    - Kconfig fix to avoid displaying disabled options in .config"

    * tag 'drm-next-2020-10-15' of git://anongit.freedesktop.org/drm/drm: (1494 commits)
    drm/ingenic: Fix bad revert
    drm/amdgpu: Fix invalid number of character '{' in amdgpu_acpi_init
    drm/amdgpu: Remove warning for virtual_display
    drm/amdgpu: kfd_initialized can be static
    drm/amd/pm: setup APU dpm clock table in SMU HW initialization
    drm/amdgpu: prevent spurious warning
    drm/amdgpu/swsmu: fix ARC build errors
    drm/amd/display: Fix OPTC_DATA_FORMAT programming
    drm/amd/display: Don't allow pstate if no support in blank
    drm/panfrost: increase readl_relaxed_poll_timeout values
    MAINTAINERS: Update entry for st7703 driver after the rename
    Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"
    drm/amd/display: HDMI remote sink need mode validation for Linux
    drm/amd/display: Change to correct unit on audio rate
    drm/amd/display: Avoid set zero in the requested clk
    drm/amdgpu: align frag_end to covered address space
    drm/amdgpu: fix NULL pointer dereference for Renoir
    drm/vmwgfx: fix regression in thp code due to ttm init refactor.
    drm/amdgpu/swsmu: add interrupt work handler for smu11 parts
    drm/amdgpu/swsmu: add interrupt work function
    ...

    Linus Torvalds
     

15 Oct, 2020

1 commit

  • Pull iommu updates from Joerg Roedel:

    - ARM-SMMU Updates from Will:

    - Continued SVM enablement, where page-table is shared with CPU

    - Groundwork to support integrated SMMU with Adreno GPU

    - Allow disabling of MSI-based polling on the kernel command-line

    - Minor driver fixes and cleanups (octal permissions, error
    messages, ...)

    - Secure Nested Paging Support for AMD IOMMU. The IOMMU will fault when
    a device tries DMA on memory owned by a guest. This needs new
    fault-types as well as a rewrite of the IOMMU memory semaphore for
    command completions.

    - Allow broken Intel IOMMUs (wrong address widths reported) to still be
    used for interrupt remapping.

    - IOMMU UAPI updates for supporting vSVA, where the IOMMU can access
    address spaces of processes running in a VM.

    - Support for the MT8167 IOMMU in the Mediatek IOMMU driver.

    - Device-tree updates for the Renesas driver to support r8a7742.

    - Several smaller fixes and cleanups all over the place.

    * tag 'iommu-updates-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (57 commits)
    iommu/vt-d: Gracefully handle DMAR units with no supported address widths
    iommu/vt-d: Check UAPI data processed by IOMMU core
    iommu/uapi: Handle data and argsz filled by users
    iommu/uapi: Rename uapi functions
    iommu/uapi: Use named union for user data
    iommu/uapi: Add argsz for user filled data
    docs: IOMMU user API
    iommu/qcom: add missing put_device() call in qcom_iommu_of_xlate()
    iommu/arm-smmu-v3: Add SVA device feature
    iommu/arm-smmu-v3: Check for SVA features
    iommu/arm-smmu-v3: Seize private ASID
    iommu/arm-smmu-v3: Share process page tables
    iommu/arm-smmu-v3: Move definitions to a header
    iommu/io-pgtable-arm: Move some definitions to a header
    iommu/arm-smmu-v3: Ensure queue is read after updating prod pointer
    iommu/amd: Re-purpose Exclusion range registers to support SNP CWWB
    iommu/amd: Add support for RMP_PAGE_FAULT and RMP_HW_ERR
    iommu/amd: Use 4K page for completion wait write-back semaphore
    iommu/tegra-smmu: Allow to group clients in same swgroup
    iommu/tegra-smmu: Fix iova->phys translation
    ...

    Linus Torvalds
     

12 Oct, 2020

2 commits

  • …e/sound into for-linus

    ASoC: Updates for v5.10

    Not a huge amount going on in the core for ASoC this time but quite a
    lot of driver activity, especially for the Intel platforms:

    - Replacement of the DSP driver for some older x86 systems with a new
    one which was written with closer reference to the DSP firmware so
    should hopefully be more robust and maintainable.
    - A big batch of static checker and other fixes for the rest of the x86
    DSP drivers.
    - Cleanup of the error unwinding code from Morimoto-san, hopefully
    making it more robust.
    - Helpers for parsing auxiluary devices from the device tree from
    Stephan Gerhold.
    - New support for AllWinner A64, Cirrus Logic CS4234, Mediatek MT6359
    Microchip S/PDIF TX and RX controllers, Realtek RT1015P, and Texas
    Instruments J721E, TAS2110, TAS2564 and TAS2764

    Takashi Iwai
     
  • Linux 5.9

    Change-Id: Ic4308a3e2a4015058efdac52bd51794b604c8435
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

09 Oct, 2020

1 commit

  • Current hdac_i915 uses a static completion instance to wait
    for i915 driver to complete the component bind.

    This design is not safe if multiple HDA controllers are active and
    communicating with different i915 instances, and can lead to list
    corruption and failed audio driver probe.

    Fix the design by moving completion mechanism to common acomp
    code and remove the related code from hdac_i915.

    Fixes: 7b882fe3e3e8 ("ALSA: hda - handle multiple i915 device instances")
    Co-developed-by: Kai Vehmanen
    Signed-off-by: Kai Vehmanen
    Link: https://lore.kernel.org/r/20201006161722.500256-1-kai.vehmanen@linux.intel.com
    Signed-off-by: Takashi Iwai

    Takashi Iwai