Skip to content
Snippets Groups Projects
  1. Feb 04, 2025
  2. Jan 31, 2025
    • Hans Verkuil's avatar
      gpu: drm_dp_cec: fix broken CEC adapter properties check · 6daaae5f
      Hans Verkuil authored and Dmitry Baryshkov's avatar Dmitry Baryshkov committed
      
      If the hotplug detect of a display is low for longer than one second
      (configurable through drm_dp_cec_unregister_delay), then the CEC adapter
      is unregistered since we assume the display was disconnected. If the
      HPD went low for less than one second, then we check if the properties
      of the CEC adapter have changed, since that indicates that we actually
      switch to new hardware and we have to unregister the old CEC device and
      register a new one.
      
      Unfortunately, the test for changed properties was written poorly, and
      after a new CEC capability was added to the CEC core code the test always
      returned true (i.e. the properties had changed).
      
      As a result the CEC device was unregistered and re-registered for every
      HPD toggle. If the CEC remote controller integration was also enabled
      (CONFIG_MEDIA_CEC_RC was set), then the corresponding input device was
      also unregistered and re-registered. As a result the input device in
      /sys would keep incrementing its number, e.g.:
      
      /sys/devices/pci0000:00/0000:00:08.1/0000:e7:00.0/rc/rc0/input20
      
      Since short HPD toggles are common, the number could over time get into
      the thousands.
      
      While not a serious issue (i.e. nothing crashes), it is not intended
      to work that way.
      
      This patch changes the test so that it only checks for the single CEC
      capability that can actually change, and it ignores any other
      capabilities, so this is now safe as well if new caps are added in
      the future.
      
      With the changed test the bit under #ifndef CONFIG_MEDIA_CEC_RC can be
      dropped as well, so that's a nice cleanup.
      
      Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
      Reported-by: default avatarFarblos <farblos@vodafonemail.de>
      Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      Fixes: 2c6d1fff ("drm: add support for DisplayPort CEC-Tunneling-over-AUX")
      Tested-by: default avatarFarblos <farblos@vodafonemail.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/361bb03d-1691-4e23-84da-0861ead5dbdc@xs4all.nl
      
      
      Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
      6daaae5f
  3. Jan 23, 2025
    • Maíra Canal's avatar
      drm/v3d: Assign job pointer to NULL before signaling the fence · 6e64d6b3
      Maíra Canal authored
      
      In commit e4b5ccd3 ("drm/v3d: Ensure job pointer is set to NULL
      after job completion"), we introduced a change to assign the job pointer
      to NULL after completing a job, indicating job completion.
      
      However, this approach created a race condition between the DRM
      scheduler workqueue and the IRQ execution thread. As soon as the fence is
      signaled in the IRQ execution thread, a new job starts to be executed.
      This results in a race condition where the IRQ execution thread sets the
      job pointer to NULL simultaneously as the `run_job()` function assigns
      a new job to the pointer.
      
      This race condition can lead to a NULL pointer dereference if the IRQ
      execution thread sets the job pointer to NULL after `run_job()` assigns
      it to the new job. When the new job completes and the GPU emits an
      interrupt, `v3d_irq()` is triggered, potentially causing a crash.
      
      [  466.310099] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000c0
      [  466.318928] Mem abort info:
      [  466.321723]   ESR = 0x0000000096000005
      [  466.325479]   EC = 0x25: DABT (current EL), IL = 32 bits
      [  466.330807]   SET = 0, FnV = 0
      [  466.333864]   EA = 0, S1PTW = 0
      [  466.337010]   FSC = 0x05: level 1 translation fault
      [  466.341900] Data abort info:
      [  466.344783]   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
      [  466.350285]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
      [  466.355350]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
      [  466.360677] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000089772000
      [  466.367140] [00000000000000c0] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
      [  466.375875] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
      [  466.382163] Modules linked in: rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device algif_hash algif_skcipher af_alg bnep binfmt_misc vc4 snd_soc_hdmi_codec drm_display_helper cec brcmfmac_wcc spidev rpivid_hevc(C) drm_client_lib brcmfmac hci_uart drm_dma_helper pisp_be btbcm brcmutil snd_soc_core aes_ce_blk v4l2_mem2mem bluetooth aes_ce_cipher snd_compress videobuf2_dma_contig ghash_ce cfg80211 gf128mul snd_pcm_dmaengine videobuf2_memops ecdh_generic sha2_ce ecc videobuf2_v4l2 snd_pcm v3d sha256_arm64 rfkill videodev snd_timer sha1_ce libaes gpu_sched snd videobuf2_common sha1_generic drm_shmem_helper mc rp1_pio drm_kms_helper raspberrypi_hwmon spi_bcm2835 gpio_keys i2c_brcmstb rp1 raspberrypi_gpiomem rp1_mailbox rp1_adc nvmem_rmem uio_pdrv_genirq uio i2c_dev drm ledtrig_pattern drm_panel_orientation_quirks backlight fuse dm_mod ip_tables x_tables ipv6
      [  466.458429] CPU: 0 UID: 1000 PID: 2008 Comm: chromium Tainted: G         C         6.13.0-v8+ #18
      [  466.467336] Tainted: [C]=CRAP
      [  466.470306] Hardware name: Raspberry Pi 5 Model B Rev 1.0 (DT)
      [  466.476157] pstate: 404000c9 (nZcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      [  466.483143] pc : v3d_irq+0x118/0x2e0 [v3d]
      [  466.487258] lr : __handle_irq_event_percpu+0x60/0x228
      [  466.492327] sp : ffffffc080003ea0
      [  466.495646] x29: ffffffc080003ea0 x28: ffffff80c0c94200 x27: 0000000000000000
      [  466.502807] x26: ffffffd08dd81d7b x25: ffffff80c0c94200 x24: ffffff8003bdc200
      [  466.509969] x23: 0000000000000001 x22: 00000000000000a7 x21: 0000000000000000
      [  466.517130] x20: ffffff8041bb0000 x19: 0000000000000001 x18: 0000000000000000
      [  466.524291] x17: ffffffafadfb0000 x16: ffffffc080000000 x15: 0000000000000000
      [  466.531452] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
      [  466.538613] x11: 0000000000000000 x10: 0000000000000000 x9 : ffffffd08c527eb0
      [  466.545777] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
      [  466.552941] x5 : ffffffd08c4100d0 x4 : ffffffafadfb0000 x3 : ffffffc080003f70
      [  466.560102] x2 : ffffffc0829e8058 x1 : 0000000000000001 x0 : 0000000000000000
      [  466.567263] Call trace:
      [  466.569711]  v3d_irq+0x118/0x2e0 [v3d] (P)
      [  466.573826]  __handle_irq_event_percpu+0x60/0x228
      [  466.578546]  handle_irq_event+0x54/0xb8
      [  466.582391]  handle_fasteoi_irq+0xac/0x240
      [  466.586498]  generic_handle_domain_irq+0x34/0x58
      [  466.591128]  gic_handle_irq+0x48/0xd8
      [  466.594798]  call_on_irq_stack+0x24/0x58
      [  466.598730]  do_interrupt_handler+0x88/0x98
      [  466.602923]  el0_interrupt+0x44/0xc0
      [  466.606508]  __el0_irq_handler_common+0x18/0x28
      [  466.611050]  el0t_64_irq_handler+0x10/0x20
      [  466.615156]  el0t_64_irq+0x198/0x1a0
      [  466.618740] Code: 52800035 3607faf3 f9442e80 52800021 (f9406018)
      [  466.624853] ---[ end trace 0000000000000000 ]---
      [  466.629483] Kernel panic - not syncing: Oops: Fatal exception in interrupt
      [  466.636384] SMP: stopping secondary CPUs
      [  466.640320] Kernel Offset: 0x100c400000 from 0xffffffc080000000
      [  466.646259] PHYS_OFFSET: 0x0
      [  466.649141] CPU features: 0x100,00000170,00901250,0200720b
      [  466.654644] Memory Limit: none
      [  466.657706] ---[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt ]---
      
      Fix the crash by assigning the job pointer to NULL before signaling the
      fence. This ensures that the job pointer is cleared before any new job
      starts execution, preventing the race condition and the NULL pointer
      dereference crash.
      
      Cc: stable@vger.kernel.org
      Fixes: e4b5ccd3 ("drm/v3d: Ensure job pointer is set to NULL after job completion")
      Signed-off-by: default avatarMaíra Canal <mcanal@igalia.com>
      Reviewed-by: default avatarJose Maria Casanova Crespo <jmcasanova@igalia.com>
      Reviewed-by: default avatarIago Toral Quiroga <itoral@igalia.com>
      Tested-by: default avatarPhil Elwell <phil@raspberrypi.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20250123012403.20447-1-mcanal@igalia.com
    • Maarten Lankhorst's avatar
      Merge remote-tracking branch 'drm/drm-next' into drm-misc-next-fixes · 37ba6c7f
      Maarten Lankhorst authored
      
      A regression was caused by commit e4b5ccd3 ("drm/v3d: Ensure job pointer is set to NULL
      after job completion"), but this commit is not yet in next-fixes,
      fast-forward it.
      
      Try #2, first one didn't have v6.13 in it.
      
      Signed-off-by: default avatarMaarten Lankhorst <dev@lankhorst.se>
      37ba6c7f
    • Simona Vetter's avatar
      Merge v6.13 into drm-next · 07c5b277
      Simona Vetter authored
      A regression was caused by commit e4b5ccd3 ("drm/v3d: Ensure job
      pointer is set to NULL after job completion"), but this commit is not
      yet in next-fixes, fast-forward it.
      
      Note that this recreates Linus merge in 96c84703 ("Merge tag
      'drm-next-2025-01-17' of https://gitlab.freedesktop.org/drm/kernel"
      
      )
      because I didn't want to backmerge a random point in the merge window.
      
      Signed-off-by: default avatarSimona Vetter <simona.vetter@ffwll.ch>
      07c5b277
  4. Jan 19, 2025
  5. Jan 18, 2025
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.13-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · fda5e3f2
      Linus Torvalds authored
      Pull tracing fix from Steven Rostedt:
       "Fix regression in GFP output in trace events
      
        It was reported that the GFP flags in trace events went from human
        readable to just their hex values:
      
            gfp_flags=GFP_HIGHUSER_MOVABLE|__GFP_COMP to gfp_flags=0x140cca
      
        This was caused by a change that added the use of enums in calculating
        the GFP flags.
      
        As defines get translated into their values in the trace event format
        files, the user space tooling could easily convert the GFP flags into
        their symbols via the __print_flags() helper macro.
      
        The problem is that enums do not get converted, and the names of the
        enums show up in the format files and user space tooling cannot
        translate them.
      
        Add TRACE_DEFINE_ENUM() around the enums used for GFP flags which is
        the tracing infrastructure macro that informs the tracing subsystem
        what the values for enums and it can then expose that to user space"
      
      * tag 'trace-v6.13-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        tracing: gfp: Fix the GFP enum values shown for user space tracing tools
      fda5e3f2
  6. Jan 17, 2025
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-6.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 59552394
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
       "Another fix and testcase to avoid the newly added WARN in the case of
        non-translatable addresses"
      
      * tag 'devicetree-fixes-for-6.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        of/address: Fix WARN when attempting translating non-translatable addresses
        of/unittest: Add test that of_address_to_resource() fails on non-translatable address
      59552394
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-6.13-4' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · ed9add2b
      Linus Torvalds authored
      Pull SoC fixes from Arnd Bergmann:
       "Two last minute fixes: one build issue on TI soc drivers, and a
        regression in the renesas reset controller driver"
      
      * tag 'soc-fixes-6.13-4' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        soc: ti: pruss: Fix pruss APIs
        reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device
      ed9add2b
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.13-6' of... · 775a15ea
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.13-6' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Ilpo Järvinen:
      
       - dell-uart-backlight: Fix serdev race
      
       - lenovo-yoga-tab2-pro-1380-fastcharger: Fix serdev race
      
      * tag 'platform-drivers-x86-v6.13-6' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race
        platform/x86: dell-uart-backlight: fix serdev race
      775a15ea
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 42f38ccb
      Linus Torvalds authored
      Pull mtd revert from Miquel Raynal:
       "Very late this cycle we identified a breakage that could potentially
        hit several spi controller drivers because of a change in the way the
        dummy cycles validity is checked.
      
        We do not know at the moment how to handle the situation properly, so
        we prefer to revert the faulty patch for the next release"
      
      * tag 'mtd/fixes-for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        Revert "mtd: spi-nor: core: replace dummy buswidth from addr to data"
      42f38ccb
    • Steven Rostedt's avatar
      tracing: gfp: Fix the GFP enum values shown for user space tracing tools · 60295b94
      Steven Rostedt authored
      Tracing tools like perf and trace-cmd read the /sys/kernel/tracing/events/*/*/format
      files to know how to parse the data and also how to print it. For the
      "print fmt" portion of that file, if anything uses an enum that is not
      exported to the tracing system, user space will not be able to parse it.
      
      The GFP flags use to be defines, and defines get translated in the print
      fmt sections. But now they are converted to use enums, which is not.
      
      The mm_page_alloc trace event format use to have:
      
        print fmt: "page=%p pfn=0x%lx order=%d migratetype=%d gfp_flags=%s",
          REC->pfn != -1UL ? (((struct page *)vmemmap_base) + (REC->pfn)) : ((void
          *)0), REC->pfn != -1UL ? REC->pfn : 0, REC->order, REC->migratetype,
          (REC->gfp_flags) ? __print_flags(REC->gfp_flags, "|", {( unsigned
          long)(((((((( gfp_t)(0x400u|0x800u)) | (( gfp_t)0x40u) | (( gfp_t)0x80u) |
          (( gfp_t)0x100000u)) | (( gfp_t)0x02u)) | (( gfp_t)0x08u) | (( gfp_t)0)) |
          (( gfp_t)0x40000u) | (( gfp_t)0x80000u) | (( gfp_t)0x2000u)) & ~((
          gfp_t)(0x400u|0x800u))) | (( gfp_t)0x400u)), "GFP_TRANSHUGE"}, {( unsigned
          long)((((((( gfp_t)(0x400u|0x800u)) | (( gfp_t)0x40u) | (( gfp_t)0x80u) |
          (( gfp_t)0x100000u)) | (( gfp_t)0x02u)) | (( gfp_t)0x08u) | (( gfp_t)0)) ...
      
      Where the GFP values are shown and not their names. But after the GFP
      flags were converted to use enums, it has:
      
        print fmt: "page=%p pfn=0x%lx order=%d migratetype=%d gfp_flags=%s",
          REC->pfn != -1UL ? (vmemmap + (REC->pfn)) : ((void *)0), REC->pfn != -1UL
          ? REC->pfn : 0, REC->order, REC->migratetype, (REC->gfp_flags) ?
          __print_flags(REC->gfp_flags, "|", {( unsigned long)((((((((
          gfp_t)(((((1UL))) << (___GFP_DIRECT_RECLAIM_BIT))|((((1UL))) <<
          (___GFP_KSWAPD_RECLAIM_BIT)))) | (( gfp_t)((((1UL))) << (___GFP_IO_BIT)))
          | (( gfp_t)((((1UL))) << (___GFP_FS_BIT))) | (( gfp_t)((((1UL))) <<
          (___GFP_HARDWALL_BIT)))) | (( gfp_t)((((1UL))) << (___GFP_HIGHMEM_BIT))))
          | (( gfp_t)((((1UL))) << (___GFP_MOVABLE_BIT))) | (( gfp_t)0)) | ((
          gfp_t)((((1UL))) << (___GFP_COMP_BIT))) ...
      
      Where the enums names like ___GFP_KSWAPD_RECLAIM_BIT are shown and not their
      values. User space has no way to convert these names to their values and
      the output will fail to parse. What is shown is now:
      
        mm_page_alloc:  page=0xffffffff981685f3 pfn=0x1d1ac1 order=0 migratetype=1 gfp_flags=0x140cca
      
      The TRACE_DEFINE_ENUM() macro was created to handle enums in the print fmt
      files. This causes them to be replaced at boot up with the numbers, so
      that user space tooling can parse it. By using this macro, the output is
      back to the human readable:
      
        mm_page_alloc: page=0xffffffff981685f3 pfn=0x122233 order=0 migratetype=1 gfp_flags=GFP_HIGHUSER_MOVABLE|__GFP_COMP
      
      Cc: stable@vger.kernel.org
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Veronika  Molnarova <vmolnaro@redhat.com>
      Cc: Suren Baghdasaryan <surenb@google.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Link: https://lore.kernel.org/20250116214438.749504792@goodmis.org
      
      
      Reported-by: default avatarMichael Petlan <mpetlan@redhat.com>
      Closes: https://lore.kernel.org/all/87be5f7c-1a0-dad-daa0-54e342efaea7@redhat.com/
      
      
      Fixes: 772dd034 ("mm: enumerate all gfp flags")
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      60295b94
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.13-rc8' of... · 07757eeb
      Linus Torvalds authored
      Merge tag 'hwmon-for-v6.13-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - ltc2991, tmp513: Fix problems seen when dividing negative numbers
      
       - drivetemp: Handle large timeouts observed on some drives
      
       - acpi_power_meter: Fix loading the driver on platforms without _PMD
         method
      
      * tag 'hwmon-for-v6.13-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (ltc2991) Fix mixed signed/unsigned in DIV_ROUND_CLOSEST
        hwmon: (drivetemp) Set scsi command timeout to 10s
        hwmon: (acpi_power_meter) Fix a check for the return value of read_domain_devices().
        hwmon: (tmp513) Fix division of negative numbers
      07757eeb
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 7fed891d
      Linus Torvalds authored
      Pull gpio fix from Bartosz Golaszewski:
      
       - convert regular spinlock to raw spinlock in gpio-xilinx to avoid a
         lockdep splat
      
      * tag 'gpio-fixes-for-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: xilinx: Convert gpio_lock to raw spinlock
      7fed891d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.13-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 5e74b9bf
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
      
       - fix ref leak in the I2C core
      
       - fix remove notification in the address translator
      
       - missing error check in the pinctrl demuxer (plus a typo fix)
      
       - fix NAK handling when Linux is testunit target
      
       - fix NAK handling for the Renesas R-Car controller when it is a target
      
      * tag 'i2c-for-6.13-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: testunit: on errors, repeat NACK until STOP
        i2c: rcar: fix NACK handling when being a target
        i2c: mux: demux-pinctrl: correct comment
        i2c: mux: demux-pinctrl: check initial mux selection, too
        i2c: atr: Fix client detach
        i2c: core: fix reference leak in i2c_register_adapter()
      5e74b9bf
    • Linus Torvalds's avatar
      Merge tag 'pmdomain-v6.13-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm · 4b040f0a
      Linus Torvalds authored
      Pull pmdomain fix from Ulf Hansson:
      
       - imx8mp-blk-ctrl: Add missing loop break condition
      
      * tag 'pmdomain-v6.13-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm:
        pmdomain: imx8mp-blk-ctrl: add missing loop break condition
      4b040f0a
    • Geert Uytterhoeven's avatar
      cgroup/rdma: Drop bogus PAGE_COUNTER select · bea6afc1
      Geert Uytterhoeven authored and Maxime Ripard's avatar Maxime Ripard committed
      When adding the Device memory controller (DMEM), "select PAGE_COUNTER"
      was added to CGROUP_RDMA, presumably instead of CGROUP_DMEM.
      While commit e33b5149 ("cgroup/dmem: Select PAGE_COUNTER") added
      the missing select to CGROUP_DMEM, the bogus select is still there.
      Remove it.
      
      Fixes: b168ed45 ("kernel/cgroup: Add "dmem" memory accounting cgroup")
      Closes: https://lore.kernel.org/CAMuHMdUmPfahsnZwx2iB5yfh8rjjW25LNcnYujNBgcKotUXBNg@mail.gmail.com
      
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: default avatarTejun Heo <tj@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/b4d462f038a2f895f30ae759928397c8183f6f7e.1737020925.git.geert+renesas@glider.be
      
      
      Signed-off-by: Maxime Ripard's avatarMaxime Ripard <mripard@kernel.org>
      bea6afc1
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2025-01-16-21-11' of... · ad26fc09
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2025-01-16-21-11' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "7 singleton hotfixes.  6 are MM.
      
        Two are cc:stable and the remainder address post-6.12 issues"
      
      * tag 'mm-hotfixes-stable-2025-01-16-21-11' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        ocfs2: check dir i_size in ocfs2_find_entry
        mailmap: update entry for Ethan Carter Edwards
        mm: zswap: move allocations during CPU init outside the lock
        mm: khugepaged: fix call hpage_collapse_scan_file() for anonymous vma
        mm: shmem: use signed int for version handling in casefold option
        alloc_tag: skip pgalloc_tag_swap if profiling is disabled
        mm: page_alloc: fix missed updates of lowmem_reserve in adjust_managed_page_count
      ad26fc09
    • Linus Torvalds's avatar
      Merge tag '6.13-rc7-SMB3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 9ca27296
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
      
       - fix double free when reconnect racing with closing session
      
       - fix SMB1 reconnect with password rotation
      
      * tag '6.13-rc7-SMB3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        smb: client: fix double free of TCP_Server_Info::hostname
        cifs: support reconnect with alternate password for SMB1
      9ca27296
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2025-01-17' of https://gitlab.freedesktop.org/drm/kernel · 9bffa1ad
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Final(?) set of fixes for 6.13, I think the holidays finally caught up
        with everyone, the misc changes are 2 weeks worth, otherwise amdgpu
        and xe are most of it. The largest pieces is a new test so I'm not too
        worried about that.
      
        kunit:
         - Fix W=1 build for kunit tests
      
        bridge:
         - Handle YCbCr420 better in bridge code, with tests
         - itee-it6263 error handling fix
      
        amdgpu:
         - SMU 13 fix
         - DP MST fixes
         - DCN 3.5 fix
         - PSR fixes
         - eDP fix
         - VRR fix
         - Enforce isolation fixes
         - GFX 12 fix
         - PSP 14.x fix
      
        xe:
         - Add steering info support for GuC register lists
         - Add means to wait for reset and synchronous reset
         - Make changing ccs_mode a synchronous action
         - Add missing mux registers
         - Mark ComputeCS read mode as UC on iGPU, unblocking ULLS on iGPU
      
        i915:
         - Relax clear color alignment to 64 bytes [fb]
      
        v3d:
         - Fix warn when unloading v3d
      
        nouveau:
         - Fix cross-device fence handling in nouveau
         - Fix backlight regression for macbooks 5,1
      
        vmwgfx:
         - Fix BO reservation handling in vmwgfx"
      
      * tag 'drm-fixes-2025-01-17' of https://gitlab.freedesktop.org/drm/kernel: (33 commits)
        drm/xe: Mark ComputeCS read mode as UC on iGPU
        drm/xe/oa: Add missing VISACTL mux registers
        drm/xe: make change ccs_mode a synchronous action
        drm/xe: introduce xe_gt_reset and xe_gt_wait_for_reset
        drm/xe/guc: Adding steering info support for GuC register lists
        drm/bridge: ite-it6263: Prevent error pointer dereference in probe()
        drm/v3d: Ensure job pointer is set to NULL after job completion
        drm/vmwgfx: Add new keep_resv BO param
        drm/vmwgfx: Remove busy_places
        drm/vmwgfx: Unreserve BO on error
        drm/amdgpu: fix fw attestation for MP0_14_0_{2/3}
        drm/amdgpu: always sync the GFX pipe on ctx switch
        drm/amdgpu: disable gfxoff with the compute workload on gfx12
        drm/amdgpu: Fix Circular Locking Dependency in AMDGPU GFX Isolation
        drm/i915/fb: Relax clear color alignment to 64 bytes
        drm/amd/display: Disable replay and psr while VRR is enabled
        drm/amd/display: Fix PSR-SU not support but still call the amdgpu_dm_psr_enable
        nouveau/fence: handle cross device fences properly
        drm/tests: connector: Add ycbcr_420_allowed tests
        drm/connector: hdmi: Validate supported_formats matches ycbcr_420_allowed
        ...
      9bffa1ad
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.13-20250116' of git://git.kernel.dk/linux · a634dda2
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "One fix for the error handling in buffer cloning, and one fix for the
        ring resizing.
      
        Two minor followups for the latter as well.
      
        Both of these issues only affect 6.13, so not marked for stable"
      
      * tag 'io_uring-6.13-20250116' of git://git.kernel.dk/linux:
        io_uring/register: cache old SQ/CQ head reading for copies
        io_uring/register: document io_register_resize_rings() shared mem usage
        io_uring/register: use stable SQ/CQ ring data during resize
        io_uring/rsrc: fixup io_clone_buffers() error handling
      a634dda2
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2025-01-16' of... · 951a6bf3
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2025-01-16' of https://gitlab.freedesktop.org/drm/misc/kernel
      
       into drm-next
      
      Several fixes for the new dmem cgroup controller and the HDMI framework
      audio support
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <mripard@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20250116-bold-furry-perch-b1ca0e@houat
      951a6bf3
    • Dave Airlie's avatar
      Merge tag 'drm-xe-fixes-2025-01-16' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes · 9b1c673a
      Dave Airlie authored
      
      Driver Changes:
      - Add steering info support for GuC register lists (Jesus Narvaez)
      - Add means to wait for reset and synchronous reset (Maciej)
      - Make changing ccs_mode a synchronous action (Maciej)
      - Add missing mux registers (Ashutosh)
      - Mark ComputeCS read mode as UC on iGPU, unblocking ULLS on iGPU (Matt Brost)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/Z4ll3F1anLEwCvrf@fedora
      9b1c673a
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · f692a6c6
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix a regression in the irqsoff and wakeup latency tracing
      
         The function graph tracer infrastructure has become generic so that
         fprobes and BPF can be based on it. As it use to only handle function
         graph tracing, it would always calculate the time the function
         entered so that it could then calculate the time it exits and give
         the length of time the function executed for. But this is not needed
         for the other users (fprobes and BPF) and reading the clock adds a
         non-negligible overhead, so the calculation was moved into the
         function graph tracer logic.
      
         But the irqsoff and wakeup latency tracers, when the "display-graph"
         option was set, would use the function graph tracer to calculate the
         times of functions during the latency. The movement of the calltime
         calculation made the value zero for these tracers, and the output no
         longer showed the length of time of each tracer, but instead the
         absolute timestamp of when the function returned (rettime - calltime
         where calltime is now zero).
      
         Have the irqsoff and wakeup latency tracers also do the calltime
         calculation as the function graph tracer does and report the proper
         length of the function timings.
      
       - Update the tracing display to reflect the new preempt lazy model
      
         When the system is configured with preempt lazy, the output of the
         trace data would state "unknown" for the current preemption model.
         Because the lazy preemption model was just added, make it known to
         the tracing subsystem too. This is just a one line change.
      
       - Document multiple function graph having slightly different timings
      
         Now that function graph tracer infrastructure is separate, this also
         allows the function graph tracer to run in multiple instances (it
         wasn't able to do so before). If two instances ran the function graph
         tracer and traced the same functions, the timings for them will be
         slightly different because each does their own timings and collects
         the timestamps differently. Document this to not have people be
         confused by it.
      
      * tag 'trace-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        ftrace: Document that multiple function_graph tracing may have different times
        tracing: Print lazy preemption model
        tracing: Fix irqsoff and wakeup latency tracers when using function graph
      f692a6c6
  7. Jan 16, 2025
Loading