1. 24 Jan, 2023 2 commits
    • Arnd Bergmann's avatar
      Merge tag 'scmi-updates-6.3' of... · f938b29d
      Arnd Bergmann authored
      Merge tag 'scmi-updates-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into soc/drivers
      
      Arm SCMI updates for v6.3
      
      The main addition is a unified userspace interface for SCMI irrespective
      of the underlying transport and along with some changed to refactor the
      SCMI stack probing sequence.
      
      1. SCMI unified userspace interface
      
         This is to have a unified way of testing an SCMI platform firmware
         implementation for compliance, fuzzing etc., from the perspective of
         the non-secure OSPM irrespective of the underlying transport supporting
         SCMI. It is just for testing/development and not a feature intended fo
         use in production.
      
         Currently an SCMI Compliance Suite[1] can only work by injecting SCMI
         messages using the mailbox test driver only which makes it transport
         specific and can't be used with any other transport like virtio,
         smc/hvc, optee, etc. Also the shared memory can be transport specific
         and it is better to even abstract/hide those details while providing
         the userspace access. So in order to scale with any transport, we need
         a unified interface for the same.
      
         In order to achieve that, SCMI "raw mode support" is being added through
         debugfs which is more configurable as well. A userspace application
         can inject bare SCMI binary messages into the SCMI core stack; such
         messages will be routed by the SCMI regular kernel stack to the backend
         platform firmware using the configured transport transparently. This
         eliminates the to know about the specific underlying transport
         internals that will be taken care of by the SCMI core stack itself.
         Further no additional changes needed in the device tree like in the
         mailbox-test driver.
      
      [1] https://gitlab.arm.com/tests/scmi-tests
      
      2. Refactoring of the SCMI stack probing sequence
      
         On some platforms, SCMI transport can be provide by OPTEE/TEE which
         introduces certain dependency in the probe ordering. In order to address
         the same, the SCMI bus is split into its own module which continues to
         be initialized at subsys_initcall, while the SCMI core stack, including
         its various transport backends (like optee, mailbox, virtio, smc), is
         now moved into a separate module at module_init level.
      
         This allows the other possibly dependent subsystems to register and/or
         access SCMI bus well before the core SCMI stack and its dependent
         transport backends.
      
      * tag 'scmi-updates-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: (31 commits)
        firmware: arm_scmi: Clarify raw per-channel ABI documentation
        firmware: arm_scmi: Add per-channel raw injection support
        firmware: arm_scmi: Add the raw mode co-existence support
        firmware: arm_scmi: Call raw mode hooks from the core stack
        firmware: arm_scmi: Reject SCMI drivers when configured in raw mode
        firmware: arm_scmi: Add debugfs ABI documentation for raw mode
        firmware: arm_scmi: Add core raw transmission support
        firmware: arm_scmi: Add debugfs ABI documentation for common entries
        firmware: arm_scmi: Populate a common SCMI debugfs root
        debugfs: Export debugfs_create_str symbol
        include: trace: Add platform and channel instance references
        firmware: arm_scmi: Add internal platform/channel identifiers
        firmware: arm_scmi: Move errors defs and code to common.h
        firmware: arm_scmi: Add xfer helpers to provide raw access
        firmware: arm_scmi: Add flags field to xfer
        firmware: arm_scmi: Refactor scmi_wait_for_message_response
        firmware: arm_scmi: Refactor polling helpers
        firmware: arm_scmi: Refactor xfer in-flight registration routines
        firmware: arm_scmi: Split bus and driver into distinct modules
        firmware: arm_scmi: Introduce a new lifecycle for protocol devices
        ...
      
      Link: https://lore.kernel.org/r/20230120162152.1438456-1-sudeep.holla@arm.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      f938b29d
    • Arnd Bergmann's avatar
      Merge tag 'renesas-drivers-for-v6.3-tag1' of... · faa4cd06
      Arnd Bergmann authored
      Merge tag 'renesas-drivers-for-v6.3-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into soc/drivers
      
      Renesas driver updates for v6.3
      
        - Add missing A3DUL power domain on R-Car V4H.
      
      * tag 'renesas-drivers-for-v6.3-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
        soc: renesas: r8a779g0-sysc: Add missing A3DUL power domain
        dt-bindings: power: r8a779g0: Add missing A3DUL power domain
      
      Link: https://lore.kernel.org/r/cover.1673702291.git.geert+renesas@glider.beSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      faa4cd06
  2. 20 Jan, 2023 18 commits
  3. 19 Jan, 2023 9 commits
  4. 08 Jan, 2023 3 commits
  5. 07 Jan, 2023 6 commits
  6. 06 Jan, 2023 2 commits
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-01-06' of git://anongit.freedesktop.org/drm/drm · 0a715535
      Linus Torvalds authored
      Pull drm fixes from Daniel Vetter:
       "Still not much, but more than last week. Dave should be back next week
        from the beaching.
      
        drivers:
         - i915-gvt fixes
         - amdgpu/kfd fixes
         - panfrost bo refcounting fix
         - meson afbc corruption fix
         - imx plane width fix
      
        core:
         - drm/sched fixes
         - drm/mm kunit test fix
         - dma-buf export error handling fixes"
      
      * tag 'drm-fixes-2023-01-06' of git://anongit.freedesktop.org/drm/drm:
        Revert "drm/amd/display: Enable Freesync Video Mode by default"
        drm/i915/gvt: fix double free bug in split_2MB_gtt_entry
        drm/i915/gvt: use atomic operations to change the vGPU status
        drm/i915/gvt: fix vgpu debugfs clean in remove
        drm/i915/gvt: fix gvt debugfs destroy
        drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()
        drm/amd/display: Uninitialized variables causing 4k60 UCLK to stay at DPM1 and not DPM0
        drm/amdkfd: Fix kernel warning during topology setup
        drm/scheduler: Fix lockup in drm_sched_entity_kill()
        drm/imx: ipuv3-plane: Fix overlay plane width
        drm/scheduler: Fix lockup in drm_sched_entity_kill()
        drm/virtio: Fix memory leak in virtio_gpu_object_create()
        drm/meson: Reduce the FIFO lines held when AFBC is not used
        drm/tests: reduce drm_mm_test stack usage
        drm/panfrost: Fix GEM handle creation ref-counting
        drm/plane-helper: Add the missing declaration of drm_atomic_state
        dma-buf: fix dma_buf_export init order v2
      0a715535
    • Jason A. Donenfeld's avatar
      tpm: Allow system suspend to continue when TPM suspend fails · 1382999a
      Jason A. Donenfeld authored
      TPM 1 is sometimes broken across system suspends, due to races or
      locking issues or something else that haven't been diagnosed or fixed
      yet, most likely having to do with concurrent reads from the TPM's
      hardware random number generator driver. These issues prevent the system
      from actually suspending, with errors like:
      
        tpm tpm0: A TPM error (28) occurred continue selftest
        ...
        tpm tpm0: A TPM error (28) occurred attempting get random
        ...
        tpm tpm0: Error (28) sending savestate before suspend
        tpm_tis 00:08: PM: __pnp_bus_suspend(): tpm_pm_suspend+0x0/0x80 returns 28
        tpm_tis 00:08: PM: dpm_run_callback(): pnp_bus_suspend+0x0/0x10 returns 28
        tpm_tis 00:08: PM: failed to suspend: error 28
        PM: Some devices failed to suspend, or early wake event detected
      
      This issue was partially fixed by 23393c64 ("char: tpm: Protect
      tpm_pm_suspend with locks"), in a last minute 6.1 commit that Linus took
      directly because the TPM maintainers weren't available. However, it
      seems like this just addresses the most common cases of the bug, rather
      than addressing it entirely. So there are more things to fix still,
      apparently.
      
      In lieu of actually fixing the underlying bug, just allow system suspend
      to continue, so that laptops still go to sleep fine. Later, this can be
      reverted when the real bug is fixed.
      
      Link: https://lore.kernel.org/lkml/7cbe96cf-e0b5-ba63-d1b4-f63d2e826efa@suse.cz/
      Cc: stable@vger.kernel.org # 6.1+
      Reported-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Acked-by: default avatarLuigi Semenzato <semenzato@chromium.org>
      Cc: Peter Huewe <peterhuewe@gmx.de>
      Cc: Jarkko Sakkinen <jarkko@kernel.org>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Johannes Altmanninger <aclopte@gmail.com>
      Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1382999a