1. 20 May, 2021 3 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2021-05-19-1' of... · 2ba04785
      Dave Airlie authored
      Merge tag 'drm-intel-next-2021-05-19-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      Core Changes:
      
      - drm: Rename DP_PSR_SELECTIVE_UPDATE to better mach eDP spec (Jose).
      
      Driver Changes:
      
      - Display plane clock rates fixes and improvements (Ville).
      - Uninint DMC FW loader state during shutdown (Imre).
      - Convert snprintf to sysfs_emit (Xuezhi).
      - Fix invalid access to ACPI _DSM objects (Takashi).
      - A big refactor around how i915 addresses the graphics
        and display IP versions. (Matt, Lucas).
      - Backlight fix (Lyude).
      - Display watermark and DBUF fixes (Ville).
      - HDCP fix (Anshuman).
      - Improve cases where display is not available (Jose).
      - Defeature PSR2 for RKL and ALD-S (Jose).
      - VLV DSI panel power fixes and improvements (Hans).
      - display-12 workaround (Jose).
      - Fix modesetting (Imre).
      - Drop redundant address-of op before lttpr_common_caps array (Imre).
      - Fix compiler checks (Jose, Jason).
      - GLK display fixes (Ville).
      - Fix error code returns (Dan).
      - eDP novel: back again to slow and wide link training everywhere (Kai-Heng).
      - Abstract DMC FW path (Rodrigo).
      - Preparation and changes for upcoming
        XeLPD display IP (Jose, Matt, Ville, Juha-Pekka, Animesh).
      - Fix comment typo in DSI code (zuoqilin).
      - Simplify CCS and UV plane alignment handling (Imre).
      - PSR Fixes on TGL (Gwan-gyeong, Jose).
      - Add intel_dp_hdcp.h and rename init (Jani).
      - Move crtc and dpll declarations around (Jani).
      - Fix pre-skl DP AUX precharge length (Ville).
      - Remove stray newlines from random files (Ville).
      - crtc->index and intel_crtc+drm_crtc pointer clean-up (Ville).
      - Add frontbuffer tracking tracepoints (Ville).
      - ADL-S PCI ID updates (Anand).
      - Use unique backlight device names (Jani).
      - A few clean-ups on i915/audio (Jani).
      - Use intel_framebuffer instead of drm one on intel_fb functions (Imre).
      - Add the missing MC CCS/XYUV8888 format support on display >= 12 (Imre).
      - Nuke display error state (Ville).
      - ADL-P initial enablement patches
        starting to land (Clint, Imre, Jose, Umesh, Vandita, Mika).
      - Display clean-up around VBT and the strap bits (Lucas).
      - Try YCbCr420 color when RGB fails (Werner).
      - More PSR fixes and improvements (Jose).
      - Other generic display code clean-up (Jose, Ville).
      - Use correct downstream caps for check Src-Ctl mode for PCON (Ankit).
      - Disable HiZ Raw Stall Optimization on broken gen7 (Simon).
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YKVioeu0JkUAlR7y@intel.com
      2ba04785
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2021-05-17' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · ae25ec2f
      Dave Airlie authored
      drm-misc-next for 5.14:
      
      UAPI Changes:
      
      Cross-subsystem Changes:
      
      Core Changes:
      
       * aperture: Fix unlocking on errors
      
       * legacy: Fix some doc comments
      
      Driver Changes:
      
       * drm/amdgpu: Free resource on fence usage query; Fix fence calculation;
      
       * drm/bridge: Lt9611: Add missing MODULE_DEVICE_TABLE
      
       * drm/i915: Print formats with %p4cc
      
       * drm/ingenic: IPU planes are now always of type OVERLAY
      
       * drm/nouveau: Remove left-over reference to struct drm_device.pdev
      
       * drm/panfrost: Disable devfreq if num_supplies > 1; Add Mediatek MT8183 +
         DT bindings; Cleanups
      
       * drm/simpledrm: Print resources with %pr; Fix use-after-free errors;
         Fix NULL deref; Fix MAINTAINERS entry
      
       * drm/vmwgfx: Fix memory allocation and leak in FIFO allocation; Fix
         return value in PCI resource setup
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YKJs2IfwSYvuGPU7@linux-uq9g.fritz.box
      ae25ec2f
    • Dave Airlie's avatar
      Merge tag 'imx-drm-next-2021-05-12' of git://git.pengutronix.de/git/pza/linux into drm-next · 41ab70e0
      Dave Airlie authored
      drm/imx: fixes, dma-fence annotation, and color encoding/range plane properties
      
      - Annotate dma-fence critical section in atomic_commit_tail
      - Fix PRG modifiers after drmm resource conversion to regain tiled
        scanout capability
      - Add 8 pixel alignment fix to support 1366x768 resolution
      - Stop advertising YUV formats on planes that don't support them
      - Add COLOR_ENCODING and COLOR_RANGE plane properties on planes
        that support them
      - Remove unnecessarily exported symbols
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Philipp Zabel <p.zabel@pengutronix.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/858310d193e10fc17221418dee6172af367eb046.camel@pengutronix.de
      41ab70e0
  2. 18 May, 2021 3 commits
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2021-05-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 3a3ca726
      Dave Airlie authored
      drm-misc-next for 5.14:
      
      UAPI Changes:
      
       * drm: Disable connector force-probing for non-master clients
       * drm: Enforce consistency between IN_FORMATS property and cap + related
         driver cleanups
       * drm/amdgpu: Track devices, process info and fence info via
         /proc/<pid>/fdinfo
       * drm/ioctl: Mark AGP-related ioctls as legacy
       * drm/ttm: Provide tt_shrink file to trigger shrinker via debugfs;
      
      Cross-subsystem Changes:
      
       * fbdev/efifb: Special handling of non-PCI devices
       * fbdev/imxfb: Fix error message
      
      Core Changes:
      
       * drm: Add connector helper to attach HDR-metadata property and convert
         drivers
       * drm: Add connector helper to compare HDR-metadata and convert drivers
       * drm: Add conenctor helper to attach colorspace property
       * drm: Signal colorimetry in HDMI infoframe
       * drm: Support pitch for destination buffers; Add blitter function
         with generic format conversion
       * drm: Remove struct drm_device.pdev and update legacy drivers
       * drm: Remove obsolete DRM_KMS_FB_HELPER config option in core and drivers
       * drm: Remove obsolete drm_pci_alloc/drm_pci_free
      
       * drm/aperture: Add helpers for aperture ownership and convert drivers, replaces rsp fbdev helpers
      
       * drm/agp: Mark DRM AGP code as legacy and convert legacy drivers
      
       * drm/atomic-helpers: Cleanups
      
       * drm/dp: Handle downstream port counts of 0 correctly; AUX channel fixes; Use
         drm_err_*/drm_dbg_*(); Cleanups
      
       * drm/dp_dual_mode: Use drm_err_*/drm_dbg_*()
      
       * drm/dp_mst: Use drm_err_*/drm_dbg_*(); Use Extended Base Receiver Capability DPCD space
      
       * drm/gem-ttm-helper: Provide helper for dumb_map_offset and convert drivers
      
       * drm/panel: Use sysfs_emit; panel-simple: Use runtime PM, Power up panel
                    when reading EDID, Cache EDID, Cleanups;
                    Lms397KF04: DT bindings
      
       * drm/pci: Mark AGP helpers as legacy
      
       * drm/print: Handle NULL for DRM devices gracefully
      
       * drm/scheduler: Change scheduled fence track
      
       * drm/ttm: Don't count SG BOs against pages_limit; Warn about freeing pinned
                  BOs; Fix error handling if no BO can be swapped out; Move special
                  handling of non-GEM drivers into vmwgfx; Move page_alignment into
                  the BO; Set drm-misc as TTM tree in MAINTAINERS; Cleanup
      	    ttm_agp_backend; Add ttm_sys_manager for system domain; Cleanups
      
      Driver Changes:
      
       * drm: Don't set allow_fb_modifiers explictly in drivers
      
       * drm/amdgpu: Pin/unpin fixes wrt to TTM; Use bo->base.size instead of
         mem->num_pages
      
       * drm/ast: Use managed pcim_iomap(); Fix EDID retrieval with DP501
      
       * drm/bridge: MHDP8546: HDCP support + DT bindings, Register DP AUX channel
         with userspace; Sil8620: Fix module dependencies; dw-hdmi: Add option to
         not load CEC driver; Fix stopping in drm_bridge_chain_pre_enable();
         Ti-sn65dsi86: Fix refclk handling, Break GPIO and MIPI-to-eDP into
         subdrivers, Use pm_runtime autosuspend, cleanups; It66121: Add
         driver + DT bindings; Adv7511: Support I2S IEC958 encoding; Anx7625: fix
         power-on delay; Nwi-dsi: Modesetting fixes; Cleanups
      
       * drm/bochs: Support screen blanking
      
       * drm/gma500: Cleanups
      
       * drm/gud: Cleanups
      
       * drm/i915: Use correct max source link rate for MST
      
       * drm/kmb: Cleanups
      
       * drm/meson: Disable dw-hdmi CEC driver
      
       * drm/nouveau: Pin/unpin fixes wrt to TTM; Use bo->base.size instead of
         mem->num_pages; Register AUX adapters after their connectors
      
       * drm/qxl: Fix shadow BO unpin
      
       * drm/radeon: Duplicate some DRM AGP code to uncouple from legacy drivers
      
       * drm/simpledrm: Add a generic DRM driver for simple-framebuffer devices
      
       * drm/tiny: Fix log spam if probe function gets deferred
      
       * drm/vc4: Add support for HDR-metadata property; Cleanups
      
       * drm/virtio: Create dumb BOs as guest blobs;
      
       * drm/vkms: Use managed drmm_universal_plane_alloc(); Add XRGB plane
         composition; Add overlay support
      
       * drm/vmwgfx: Enable console with DRM_FBDEV_EMULATION; Fix CPU updates
         of coherent multisample surfaces; Remove reservation semaphore; Add
         initial SVGA3 support; Support amd64; Use 1-based IDR; Use min_t();
         Cleanups
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YJvkD523evviED01@linux-uq9g.fritz.box
      3a3ca726
    • José Roberto de Souza's avatar
      drm/i915: Initialize err in remap_io_sg() · ec279384
      José Roberto de Souza authored
      If the do while loop breaks in 'if (!sg_dma_len(sgl))' in the first
      iteration, err is uninitialized causing a wrong call to zap_vma_ptes().
      
      But that is impossible to happen as a scatterlist must have at least
      one valid segment.
      Anyways to avoid more reports from static checkers initializing ret
      here.
      
      Fixes: b12d691e ("i915: fix remap_io_sg to verify the pgprot")
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJames Ausmus <james.ausmus@intel.com>
      Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210517202117.179303-1-jose.souza@intel.com
      ec279384
    • Simon Rettberg's avatar
      drm/i915/gt: Disable HiZ Raw Stall Optimization on broken gen7 · 929b734a
      Simon Rettberg authored
      When resetting CACHE_MODE registers, don't enable HiZ Raw Stall
      Optimization on Ivybridge GT1 and Baytrail, as it causes severe glitches
      when rendering any kind of 3D accelerated content.
      This optimization is disabled on these platforms by default according to
      official documentation from 01.org.
      
      Fixes: ef99a60f ("drm/i915/gt: Clear CACHE_MODE prior to clearing residuals")
      BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/3081
      BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/3404
      BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/3071Reviewed-By: default avatarManuel Bentele <development@manuel-bentele.de>
      Signed-off-by: default avatarSimon Rettberg <simon.rettberg@rz.uni-freiburg.de>
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      [Rodrigo removed invalid Fixes line]
      Link: https://patchwork.freedesktop.org/patch/msgid/20210426161124.2b7fd708@dellnichtsogutkiste
      929b734a
  3. 17 May, 2021 3 commits
  4. 16 May, 2021 8 commits
    • Linus Torvalds's avatar
      Linux 5.13-rc2 · d07f6ca9
      Linus Torvalds authored
      d07f6ca9
    • Yang Yingliang's avatar
      drm: correct function name drm_legacy_ctxbitmap_flush() · 76fb3511
      Yang Yingliang authored
      Fix the following make W=1 kernel build warning:
      
        drivers/gpu/drm/drm_context.c:136: warning: expecting prototype for drm_ctxbitmap_flush(). Prototype was for drm_legacy_ctxbitmap_flush() instead
      Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210513071918.1728535-1-yangyingliang@huawei.com
      76fb3511
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.13-rc2' of... · 28183dbf
      Linus Torvalds authored
      Merge tag 'driver-core-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fixes from Greg KH:
       "Here are two driver fixes for driver core changes that happened in
        5.13-rc1.
      
        The clk driver fix resolves a many-reported issue with booting some
        devices, and the USB typec fix resolves the reported problem of USB
        systems on some embedded boards.
      
        Both of these have been in linux-next this week with no reported
        issues"
      
      * tag 'driver-core-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        clk: Skip clk provider registration when np is NULL
        usb: typec: tcpm: Don't block probing of consumers of "connector" nodes
      28183dbf
    • Linus Torvalds's avatar
      Merge tag 'staging-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 6942d81a
      Linus Torvalds authored
      Pull staging and IIO driver fixes from Greg KH:
       "Here are some small IIO driver fixes and one Staging driver fix for
        5.13-rc2.
      
        Nothing major, just some resolutions for reported problems:
      
         - gcc-11 bogus warning fix for rtl8723bs
      
         - iio driver tiny fixes
      
        All of these have been in linux-next for many days with no reported
        issues"
      
      * tag 'staging-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        iio: tsl2583: Fix division by a zero lux_val
        iio: core: return ENODEV if ioctl is unknown
        iio: core: fix ioctl handlers removal
        iio: gyro: mpu3050: Fix reported temperature value
        iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER
        iio: proximity: pulsedlight: Fix rumtime PM imbalance on error
        iio: light: gp2ap002: Fix rumtime PM imbalance on error
        staging: rtl8723bs: avoid bogus gcc warning
      6942d81a
    • Linus Torvalds's avatar
      Merge tag 'usb-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 4a668429
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB fixes for 5.13-rc2. They consist of a number
        of resolutions for reported issues:
      
         - typec fixes for found problems
      
         - xhci fixes and quirk additions
      
         - dwc3 driver fixes
      
         - minor fixes found by Coverity
      
         - cdc-wdm fixes for reported problems
      
        All of these have been in linux-next for a few days with no reported
        issues"
      
      * tag 'usb-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (28 commits)
        usb: core: hub: fix race condition about TRSMRCY of resume
        usb: typec: tcpm: Fix SINK_DISCOVERY current limit for Rp-default
        xhci: Add reset resume quirk for AMD xhci controller.
        usb: xhci: Increase timeout for HC halt
        xhci: Do not use GFP_KERNEL in (potentially) atomic context
        xhci: Fix giving back cancelled URBs even if halted endpoint can't reset
        xhci-pci: Allow host runtime PM as default for Intel Alder Lake xHCI
        usb: musb: Fix an error message
        usb: typec: tcpm: Fix wrong handling for Not_Supported in VDM AMS
        usb: typec: tcpm: Send DISCOVER_IDENTITY from dedicated work
        usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4
        usb: fotg210-hcd: Fix an error message
        docs: usb: function: Modify path name
        usb: dwc3: omap: improve extcon initialization
        usb: typec: ucsi: Put fwnode in any case during ->probe()
        usb: typec: tcpm: Fix wrong handling in GET_SINK_CAP
        usb: dwc2: Remove obsolete MODULE_ constants from platform.c
        usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()
        usb: dwc3: imx8mp: detect dwc3 core node via compatible string
        usb: dwc3: gadget: Return success always for kick transfer in ep queue
        ...
      4a668429
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2021-05-16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8ce36481
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "Two fixes for timers:
      
         - Use the ALARM feature check in the alarmtimer core code insted of
           the old method of checking for the set_alarm() callback.
      
           Drivers can have that callback set but the feature bit cleared. If
           such a RTC device is selected then alarms wont work.
      
         - Use a proper define to let the preprocessor check whether Hyper-V
           VDSO clocksource should be active.
      
           The code used a constant in an enum with #ifdef, which evaluates to
           always false and disabled the clocksource for VDSO"
      
      * tag 'timers-urgent-2021-05-16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource/drivers/hyper-v: Re-enable VDSO_CLOCKMODE_HVCLOCK on X86
        alarmtimer: Check RTC features instead of ops
      8ce36481
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · f44e58bb
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - two patches for error path fixes
      
       - a small series for fixing a regression with swiotlb with Xen on Arm
      
      * tag 'for-linus-5.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/swiotlb: check if the swiotlb has already been initialized
        arm64: do not set SWIOTLB_NO_FORCE when swiotlb is required
        xen/arm: move xen_swiotlb_detect to arm/swiotlb-xen.h
        xen/unpopulated-alloc: fix error return code in fill_list()
        xen/gntdev: fix gntdev_mmap() error exit path
      f44e58bb
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ccb013c2
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
       "The three SEV commits are not really urgent material. But we figured
        since getting them in now will avoid a huge amount of conflicts
        between future SEV changes touching tip, the kvm and probably other
        trees, sending them to you now would be best.
      
        The idea is that the tip, kvm etc branches for 5.14 will all base
        ontop of -rc2 and thus everything will be peachy. What is more, those
        changes are purely mechanical and defines movement so they should be
        fine to go now (famous last words).
      
        Summary:
      
         - Enable -Wundef for the compressed kernel build stage
      
         - Reorganize SEV code to streamline and simplify future development"
      
      * tag 'x86_urgent_for_v5.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/boot/compressed: Enable -Wundef
        x86/msr: Rename MSR_K8_SYSCFG to MSR_AMD64_SYSCFG
        x86/sev: Move GHCB MSR protocol and NAE definitions in a common header
        x86/sev-es: Rename sev-es.{ch} to sev.{ch}
      ccb013c2
  5. 15 May, 2021 23 commits