Skip to content
  1. Nov 10, 2023
  2. Nov 09, 2023
    • Sam James's avatar
      drm: i915: Adapt to -Walloc-size · bae9fca9
      Sam James authored
      
      
      GCC 14 introduces a new -Walloc-size included in -Wextra which errors out
      like:
      ```
      drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c: In function ‘eb_copy_relocations’:
      drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1681:24: error: allocation of insufficient size ‘1’ for type ‘struct drm_i915_gem_relocation_entry’ with size ‘32’ [-Werror=alloc-size]
       1681 |                 relocs = kvmalloc_array(size, 1, GFP_KERNEL);
            |                        ^
      
      ```
      
      So, just swap the number of members and size arguments to match the prototype, as
      we're initialising 1 element of size `size`. GCC then sees we're not
      doing anything wrong.
      
      Signed-off-by: default avatarSam James <sam@gentoo.org>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231107215538.1891359-1-sam@gentoo.org
      bae9fca9
  3. Nov 08, 2023
  4. Nov 07, 2023
  5. Nov 06, 2023
  6. Nov 03, 2023
  7. Nov 02, 2023
  8. Oct 31, 2023
  9. Oct 30, 2023
  10. Oct 29, 2023
  11. Oct 27, 2023
  12. Oct 26, 2023
    • Nirmoy Das's avatar
      drm/i915/gt: Use proper priority enum instead of 0 · ffc02c67
      Nirmoy Das authored
      
      
      I915_PRIORITY_NORMAL is 0 so use that instead for better
      readability.
      
      Cc: John Harrison <John.C.Harrison@Intel.com>
      Signed-off-by: default avatarNirmoy Das <nirmoy.das@intel.com>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231023121305.12560-1-nirmoy.das@intel.com
      ffc02c67
    • Arnd Bergmann's avatar
      drm/i915/mtl: avoid stringop-overflow warning · 0520b30b
      Arnd Bergmann authored
      The newly added memset() causes a warning for some reason I could not
      figure out:
      
      In file included from arch/x86/include/asm/string.h:3,
                       from drivers/gpu/drm/i915/gt/intel_rc6.c:6:
      In function 'rc6_res_reg_init',
          inlined from 'intel_rc6_init' at drivers/gpu/drm/i915/gt/intel_rc6.c:610:2:
      arch/x86/include/asm/string_32.h:195:29: error: '__builtin_memset' writing 16 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
        195 | #define memset(s, c, count) __builtin_memset(s, c, count)
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/i915/gt/intel_rc6.c:584:9: note: in expansion of macro 'memset'
        584 |         memset(rc6->res_reg, INVALID_MMIO_REG.reg, sizeof(rc6->res_reg));
            |         ^~~~~~
      In function 'intel_rc6_init':
      
      Change it to an normal initializer and an added memcpy() that does not have
      this problem.
      
      Fixes: 4bb9ca7e
      
       ("drm/i915/mtl: C6 residency and C state type for MTL SAMedia")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231016201012.1022812-1-arnd@kernel.org
      0520b30b
  13. Oct 25, 2023
    • Umesh Nerlige Ramappa's avatar
      drm/i915/pmu: Check if pmu is closed before stopping event · 31f6a06f
      Umesh Nerlige Ramappa authored
      When the driver unbinds, pmu is unregistered and i915->uabi_engines is
      set to RB_ROOT. Due to this, when i915 PMU tries to stop the engine
      events, it issues a warn_on because engine lookup fails.
      
      All perf hooks are taking care of this using a pmu->closed flag that is
      set when PMU unregisters. The stop event seems to have been left out.
      
      Check for pmu->closed in pmu_event_stop as well.
      
      Based on discussion here -
      https://patchwork.freedesktop.org/patch/492079/?series=105790&rev=2
      
      v2: s/is/if/ in commit title
      v3: Add fixes tag and cc stable
      
      Cc: <stable@vger.kernel.org> # v5.11+
      Fixes: b00bccb3
      
       ("drm/i915/pmu: Handle PCI unbind")
      Signed-off-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
      Signed-off-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231020152441.3764850-1-umesh.nerlige.ramappa@intel.com
      31f6a06f
    • Matt Roper's avatar
      drm/i915/mcr: Hold GT forcewake during steering operations · 8fa1c7cd
      Matt Roper authored
      The steering control and semaphore registers are inside an "always on"
      power domain with respect to RC6.  However there are some issues if
      higher-level platform sleep states are entering/exiting at the same time
      these registers are accessed.  Grabbing GT forcewake and holding it over
      the entire lock/steer/unlock cycle ensures that those sleep states have
      been fully exited before we access these registers.
      
      This is expected to become a formally documented/numbered workaround
      soon.
      
      Note that this patch alone isn't expected to have an immediately
      noticeable impact on MCR (mis)behavior; an upcoming pcode firmware
      update will also be necessary to provide the other half of this
      workaround.
      
      v2:
       - Move the forcewake inside the Xe_LPG-specific IP version check.  This
         should only be necessary on platforms that have a steering semaphore.
      
      Fixes: 3100240b
      
       ("drm/i915/mtl: Add hardware-level lock for steering")
      Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
      Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
      Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: default avatarRadhakrishna Sripada <radhakrishna.sripada@intel.com>
      Reviewed-by: default avatarJonathan Cavitt <jonathan.cavitt@intel.com>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231019170241.2102037-2-matthew.d.roper@intel.com
      8fa1c7cd
  14. Oct 24, 2023
  15. Oct 23, 2023
    • Dave Airlie's avatar
      Merge tag 'drm-msm-next-2023-10-17' of https://gitlab.freedesktop.org/drm/msm into drm-next · 3f5ba636
      Dave Airlie authored
      
      
      Updates for v6.7
      
      DP:
      - use existing helpers for DPCD handling instead of open-coded functions
      - set the subconnector type according to the plugged cable / dongle
        skip validity check for DP CTS EDID checksum
      
      DPU:
      - continued migration of feature flags to use core revision checks
      - reworked interrupts code to use '0' as NO_IRQ, removed raw IRQ indices
        from log / trace output
      
      gpu:
      - a7xx support (a730, a740)
      - fixes and additional speedbins for a635, a643
      
      core:
      - decouple msm_drv from kms to more cleanly support headless devices (like
        imx5+a2xx)
      
      From: Rob Clark <robdclark@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGvzkBL2_OgyOeP_b6rVEjrNdfm8jcKzaB04HqHyT5jYwA@mail.gmail.com
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      3f5ba636
    • Dave Airlie's avatar
      BackMerge tag 'v6.6-rc7' into drm-next · 7cd62eab
      Dave Airlie authored
      
      
      This is needed to add the msm pr which is based on a higher base.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      7cd62eab
    • Linus Torvalds's avatar
      Linux 6.6-rc7 · 05d3ef8b
      Linus Torvalds authored
      05d3ef8b
    • Linus Torvalds's avatar
      Merge tag 'phy-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · fe3cfe86
      Linus Torvalds authored
      Pull phy fixes from Vinod Koul:
      
       - mapphone-mdm6600 runtime pm & pinctrl handling fixes
      
       - Qualcomm qmp usb pcs register fixes, qmp pcie register size warning
         fix, m31 fixes for wrong pointer in PTR_ERR and dropping wrong vreg
         check, qmp combo fix for 8550 power config register
      
       - realtek usb fix for debugfs_create_dir() and kconfig dependency
      
      * tag 'phy-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
        phy: realtek: Realtek PHYs should depend on ARCH_REALTEK
        phy: qualcomm: Fix typos in comments
        phy: qcom-qmp-combo: initialize PCS_USB registers
        phy: qcom-qmp-combo: Square out 8550 POWER_STATE_CONFIG1
        phy: qcom: m31: Remove unwanted qphy->vreg is NULL check
        phy: realtek: usb: Drop unnecessary error check for debugfs_create_dir()
        phy: qcom: phy-qcom-m31: change m31_ipq5332_regs to static
        phy: qcom: phy-qcom-m31: fix wrong pointer pass to PTR_ERR()
        dt-bindings: phy: qcom,ipq8074-qmp-pcie: fix warning regarding reg size
        phy: qcom-qmp-usb: split PCS_USB init table for sc8280xp and sa8775p
        phy: qcom-qmp-usb: initialize PCS_USB registers
        phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
        phy: mapphone-mdm6600: Fix runtime PM for remove
        phy: mapphone-mdm6600: Fix runtime disable on probe
      fe3cfe86
    • Linus Torvalds's avatar
      Merge tag 'efi-fixes-for-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 70e65afc
      Linus Torvalds authored
      Pull EFI fixes from Ard Biesheuvel:
       "The boot_params pointer fix uses a somewhat ugly extern struct
        declaration but this will be cleaned up the next cycle.
      
         - don't try to print warnings to the console when it is no longer
           available
      
         - fix theoretical memory leak in SSDT override handling
      
         - make sure that the boot_params global variable is set before the
           KASLR code attempts to hash it for 'randomness'
      
         - avoid soft lockups in the memory acceptance code"
      
      * tag 'efi-fixes-for-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi/unaccepted: Fix soft lockups caused by parallel memory acceptance
        x86/boot: efistub: Assign global boot_params variable
        efi: fix memory leak in krealloc failure handling
        x86/efistub: Don't try to print after ExitBootService()
      70e65afc
  16. Oct 22, 2023
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 1acfd2bd
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix stale propagated yield_cpu in qspinlocks leading to lockups
      
       - Fix broken hugepages on some configs due to ARCH_FORCE_MAX_ORDER
      
       - Fix a spurious warning when copros are in use at exit time
      
      Thanks to Nicholas Piggin, Christophe Leroy, Nysal Jan K.A Sachin Sant,
      and Shrikanth Hegde.
      
      * tag 'powerpc-6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/qspinlock: Fix stale propagated yield_cpu
        powerpc/64s/radix: Don't warn on copros in radix__tlb_flush()
        powerpc/mm: Allow ARCH_FORCE_MAX_ORDER up to 12
      1acfd2bd
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · d537ae43
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - fix interrupt handling in suspend and wakeup in gpio-vf610
      
       - fix a bug on setting direction to output in gpio-vf610
      
       - add a missing memset() in gpio ACPI code
      
      * tag 'gpio-fixes-for-v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpiolib: acpi: Add missing memset(0) to acpi_get_gpiod_from_data()
        gpio: vf610: set value before the direction to avoid a glitch
        gpio: vf610: mask the gpio irq in system suspend and support wakeup
      d537ae43
    • Linus Torvalds's avatar
      Merge tag 'rust-fixes-6.6' of https://github.com/Rust-for-Linux/linux · 03027aa3
      Linus Torvalds authored
      Pull rust fixes from Miguel Ojeda:
      
       - GCC build: fix bindgen build error with '-fstrict-flex-arrays'
      
       - Error module: fix the description for 'ECHILD' and fix Markdown
         style nit
      
       - Code docs: fix logo replacement
      
       - Docs: update docs output path
      
       - Kbuild: remove old docs output path in 'cleandocs' target
      
      * tag 'rust-fixes-6.6' of https://github.com/Rust-for-Linux/linux:
        rust: docs: fix logo replacement
        kbuild: remove old Rust docs output path
        docs: rust: update Rust docs output path
        rust: fix bindgen build error with fstrict-flex-arrays
        rust: error: Markdown style nit
        rust: error: fix the description for `ECHILD`
      03027aa3
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 45d3291c
      Linus Torvalds authored
      Pull scheduler fix from Ingo Molnar:
       "Fix a recently introduced use-after-free bug"
      
      * tag 'sched-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/eevdf: Fix heap corruption more
      45d3291c
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 94be133f
      Linus Torvalds authored
      Pull perf events fix from Ingo Molnar:
       "Fix group event semantics"
      
      * tag 'perf-urgent-2023-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf: Disallow mis-matched inherited group reads
      94be133f
    • Linus Torvalds's avatar
      Merge tag 'probes-fixes-v6.6-rc6.2' of... · 023cc836
      Linus Torvalds authored
      Merge tag 'probes-fixes-v6.6-rc6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
      
      Pull probes fixes from Masami Hiramatsu:
      
       - kprobe-events: Fix kprobe events to reject if the attached symbol is
         not unique name because it may not the function which the user want
         to attach to. (User can attach a probe to such symbol using the
         nearest unique symbol + offset.)
      
       - selftest: Add a testcase to ensure the kprobe event rejects non
         unique symbol correctly.
      
      * tag 'probes-fixes-v6.6-rc6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        selftests/ftrace: Add new test case which checks non unique symbol
        tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbols
      023cc836
    • Linus Torvalds's avatar
      Merge tag 's390-6.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 4d7b04c0
      Linus Torvalds authored
      Pull s390 fixes from Vasily Gorbik:
      
       - Fix IOMMU bitmap allocation in s390 PCI to avoid out of bounds access
         when IOMMU pages aren't a multiple of 64
      
       - Fix kasan crashes when accessing DCSS mapping in memory holes by
         adding corresponding kasan zero shadow mappings
      
       - Fix a memory leak in css_alloc_subchannel in case
         dma_set_coherent_mask fails
      
      * tag 's390-6.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/pci: fix iommu bitmap allocation
        s390/kasan: handle DCSS mapping in memory holes
        s390/cio: fix a memleak in css_alloc_subchannel
      4d7b04c0