1. 24 Feb, 2024 2 commits
  2. 23 Feb, 2024 26 commits
    • Corey Minyard's avatar
      i2c: imx: when being a target, mark the last read as processed · 87aec499
      Corey Minyard authored
      When being a target, NAK from the controller means that all bytes have
      been transferred. So, the last byte needs also to be marked as
      'processed'. Otherwise index registers of backends may not increase.
      
      Fixes: f7414cd6 ("i2c: imx: support slave mode for imx I2C driver")
      Signed-off-by: default avatarCorey Minyard <minyard@acm.org>
      Tested-by: default avatarAndrew Manley <andrew.manley@sealingtech.com>
      Reviewed-by: default avatarAndrew Manley <andrew.manley@sealingtech.com>
      Reviewed-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
      [wsa: fixed comment and commit message to properly describe the case]
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
      87aec499
    • Linus Torvalds's avatar
      Merge tag 'parisc-for-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 603c04e2
      Linus Torvalds authored
      Pull parisc architecture fixes from Helge Deller:
       "Fixes CPU hotplug, the parisc stack unwinder and two possible build
        errors in kprobes and ftrace area:
      
         - Fix CPU hotplug
      
         - Fix unaligned accesses and faults in stack unwinder
      
         - Fix potential build errors by always including asm-generic/kprobes.h
      
         - Fix build bug by add missing CONFIG_DYNAMIC_FTRACE check"
      
      * tag 'parisc-for-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Fix stack unwinder
        parisc/kprobes: always include asm-generic/kprobes.h
        parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check
        Revert "parisc: Only list existing CPUs in cpu_possible_mask"
      603c04e2
    • Linus Torvalds's avatar
      Merge tag 'arm-fixes-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · e44baca7
      Linus Torvalds authored
      Pull arm and RISC-V SoC fixes from Arnd Bergmann:
       "The Rockchip and IMX8 platforms get a number of fixes for dts files in
        order to address some misconfigurations, including a regression for
        USB-C support on some boards.
      
        The other dts fixes are part of a series by Rob Herring to clean up
        another class of dtc compiler warnings across all platforms, with a
        few others helping out as well. With this, we can enable the warning
        for the coming merge window without introducing regressions.
      
        Conor Dooley has collected fixes for RISC-V platforms, both for the
        dts files and for platofrm specific drivers.
      
        The ep93xx platform gets a regression for for its gpio descriptors"
      
      * tag 'arm-fixes-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (28 commits)
        ARM: dts: renesas: rcar-gen2: Add missing #interrupt-cells to DA9063 nodes
        cache: ax45mp_cache: Align end size to cache boundary in ax45mp_dma_cache_wback()
        arm64: dts: qcom: Fix interrupt-map cell sizes
        arm: dts: Fix dtc interrupt_map warnings
        arm64: dts: Fix dtc interrupt_provider warnings
        arm: dts: Fix dtc interrupt_provider warnings
        arm64: dts: freescale: Disable interrupt_map check
        ARM: ep93xx: Add terminator to gpiod_lookup_table
        riscv: dts: sifive: add missing #interrupt-cells to pmic
        arm64: dts: rockchip: Correct Indiedroid Nova GPIO Names
        arm64: dts: rockchip: Drop interrupts property from rk3328 pwm-rockchip node
        arm64: dts: rockchip: set num-cs property for spi on px30
        arm64: dts: rockchip: minor rk3588 whitespace cleanup
        riscv: dts: starfive: replace underscores in node names
        bus: imx-weim: fix valid range check
        Revert "arm64: dts: imx8mn-var-som-symphony: Describe the USB-C connector"
        Revert "arm64: dts: imx8mp-dhcom-pdk3: Describe the USB-C connector"
        arm64: dts: tqma8mpql: fix audio codec iov-supply
        arm64: dts: rockchip: drop unneeded status from rk3588-jaguar gpio-leds
        ARM: dts: rockchip: Drop interrupts property from pwm-rockchip nodes
        ...
      e44baca7
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 86f01602
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "A simple fix to a definition in the CXL PMU driver, a couple of
        patches to restore SME control registers on the resume path (since
        Arm's fast model now clears them) and a revert for our jump label asm
        constraints after Geert noticed they broke the build with GCC 5.5.
      
        There was then the ensuing discussion about raising the minimum GCC
        (and corresponding binutils) versions at [1], but for now we'll keep
        things working as they were until that goes ahead.
      
         - Revert fix to jump label asm constraints, as it regresses the build
           with some GCC 5.5 toolchains.
      
         - Restore SME control registers when resuming from suspend
      
         - Fix incorrect filter definition in CXL PMU driver"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspend
        arm64/sme: Restore SME registers on exit from suspend
        Revert "arm64: jump_label: use constraints "Si" instead of "i""
        perf: CXL: fix CPMU filter value mask length
      86f01602
    • Linus Torvalds's avatar
      Merge tag 's390-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 5efa18e8
      Linus Torvalds authored
      Pull s390 fixes from Heiko Carstens:
      
       - Fix invalid -EBUSY on ccw_device_start() which can lead to failing
         device initialization
      
       - Add missing multiplication by 8 in __iowrite64_copy() to get the
         correct byte length before calling zpci_memcpy_toio()
      
       - Various config updates
      
      * tag 's390-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/cio: fix invalid -EBUSY on ccw_device_start
        s390: use the correct count for __iowrite64_copy()
        s390/configs: update default configurations
        s390/configs: enable INIT_STACK_ALL_ZERO in all configurations
        s390/configs: provide compat topic configuration target
      5efa18e8
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-02-22-15-02' of... · 95e73fb1
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-02-22-15-02' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "A batch of MM (and one non-MM) hotfixes.
      
        Ten are cc:stable and the remainder address post-6.7 issues or aren't
        considered appropriate for backporting"
      
      * tag 'mm-hotfixes-stable-2024-02-22-15-02' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        kasan: guard release_free_meta() shadow access with kasan_arch_is_ready()
        mm/damon/lru_sort: fix quota status loss due to online tunings
        mm/damon/reclaim: fix quota stauts loss due to online tunings
        MAINTAINERS: mailmap: update Shakeel's email address
        mm/damon/sysfs-schemes: handle schemes sysfs dir removal before commit_schemes_quota_goals
        mm: memcontrol: clarify swapaccount=0 deprecation warning
        mm/memblock: add MEMBLOCK_RSRV_NOINIT into flagname[] array
        mm/zswap: invalidate duplicate entry when !zswap_enabled
        lib/Kconfig.debug: TEST_IOV_ITER depends on MMU
        mm/swap: fix race when skipping swapcache
        mm/swap_state: update zswap LRU's protection range with the folio locked
        selftests/mm: uffd-unit-test check if huge page size is 0
        mm/damon/core: check apply interval in damon_do_apply_schemes()
        mm: zswap: fix missing folio cleanup in writeback race path
      95e73fb1
    • Linus Torvalds's avatar
      Merge tag 'for-6.8/dm-fixes-2' of... · e7768e65
      Linus Torvalds authored
      Merge tag 'for-6.8/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Stable fixes for 3 DM targets (integrity, verity and crypt) to
         address systemic failure that can occur if user provided pages map to
         the same block.
      
       - Fix DM crypt to not allow modifying data that being encrypted for
         authenticated encryption.
      
       - Fix DM crypt and verity targets to align their respective bvec_iter
         struct members to avoid the need for byte level access (due to
         __packed attribute) that is costly on some arches (like RISC).
      
      * tag 'for-6.8/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm-crypt, dm-integrity, dm-verity: bump target version
        dm-verity, dm-crypt: align "struct bvec_iter" correctly
        dm-crypt: recheck the integrity tag after a failure
        dm-crypt: don't modify the data when using authenticated encryption
        dm-verity: recheck the hash after a failure
        dm-integrity: recheck the integrity tag after a failure
      e7768e65
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2024-02-23' of git://anongit.freedesktop.org/drm/drm · 06b7ef70
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This is the weekly drm fixes. Non-drivers there is a fbdev/sparc fix,
        syncobj, ttm and buddy fixes.
      
        On the driver side, ivpu, meson, i915 have a small fix each. Then
        amdgpu and xe have a bunch. Nouveau has some minor uapi additions to
        give userspace some useful info along with a Kconfig change to allow
        the new GSP firmware paths to be used by default on the GPUs it
        supports.
      
        Seems about the usual amount for this time of release cycle.
      
        fbdev:
         - fix sparc undefined reference
      
        syncobj:
         - fix sync obj fence waiting
         - handle NULL fence in syncobj eventfd code
      
        ttm:
         - fix invalid free
      
        buddy:
         - fix list handling
         - fix 32-bit build
      
        meson:
         - don't remove bridges from other drivers
      
        nouveau:
         - fix build warnings
         - add two minor info parameters
         - add a Kconfig to allow GSP by default on some GPUs
      
        ivpu:
         - allow fw to do initial tile config
      
        i915:
         - fix TV mode
      
        amdgpu:
         - Suspend/resume fixes
         - Backlight error fix
         - DCN 3.5 fixes
         - Misc fixes
      
        xe:
         - Remove support for persistent exec_queues
         - Drop a reduntant sysfs newline printout
         - A three-patch fix for a VM_BIND rebind optimization path
         - Fix a modpost warning on an xe KUNIT module"
      
      * tag 'drm-fixes-2024-02-23' of git://anongit.freedesktop.org/drm/drm: (27 commits)
        nouveau: add an ioctl to report vram usage
        nouveau: add an ioctl to return vram bar size.
        nouveau/gsp: add kconfig option to enable GSP paths by default
        drm/amdgpu: Fix the runtime resume failure issue
        drm/amd/display: fix null-pointer dereference on edid reading
        drm/amd/display: Fix memory leak in dm_sw_fini()
        drm/amd/display: fix input states translation error for dcn35 & dcn351
        drm/amd/display: Fix potential null pointer dereference in dc_dmub_srv
        drm/amd/display: Only allow dig mapping to pwrseq in new asic
        drm/amd/display: adjust few initialization order in dm
        drm/syncobj: handle NULL fence in syncobj_eventfd_entry_func
        drm/syncobj: call drm_syncobj_fence_add_wait when WAIT_AVAILABLE flag is set
        drm/ttm: Fix an invalid freeing on already freed page in error path
        sparc: Fix undefined reference to fb_is_primary_device
        drm/xe: Fix modpost warning on xe_mocs kunit module
        drm/xe/xe_gt_idle: Drop redundant newline in name
        drm/xe: Return 2MB page size for compact 64k PTEs
        drm/xe: Add XE_VMA_PTE_64K VMA flag
        drm/xe: Fix xe_vma_set_pte_size
        drm/xe/uapi: Remove support for persistent exec_queues
        ...
      06b7ef70
    • Linus Torvalds's avatar
      Merge tag 'ata-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · b6d69282
      Linus Torvalds authored
      Pull ata fixes from Niklas Cassel:
      
       - Do not try to set a sleeping device to standby. Sleep is a deeper
         sleep state than standby, and needs a reset to wake up the drive. A
         system resume will reset the port. Sending a command other than reset
         to a sleeping device is not wise, as the command will timeout (Damien
         Le Moal)
      
       - Do not try to put a device to standby twice during system shutdown.
         ata_dev_power_set_standby() is currently called twice during
         shutdown, once after the scsi device is removed, and another when
         ata_pci_shutdown_one() executes. Modify ata_dev_power_set_standby()
         to do nothing if the device is already in standby (Damien Le Moal)
      
       - Add a quirk for ASM1064 to fixup the number of implemented ports. We
         probe all ports that the hardware reports to be implemented. Probing
         ports that are not implemented causes significantly increased boot
         time (Andrey Jr. Melnikov)
      
       - Fix error handling for the ahci_ceva driver. Ensure that the
         ahci_ceva driver does a proper cleanup of its resources in the error
         path (Radhey Shyam Pandey)
      
      * tag 'ata-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ata: libata-core: Do not call ata_dev_power_set_standby() twice
        ata: ahci_ceva: fix error handling for Xilinx GT PHY support
        ahci: asm1064: correct count of reported ports
        ata: libata-core: Do not try to set sleeping devices to standby
      b6d69282
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 9cd42be8
      Linus Torvalds authored
      Pull gpio fix from Bartosz Golaszewski:
      
       - fix a use-case where no pins are mapped to GPIOs in
         gpiochip_generic_config()
      
      * tag 'gpio-fixes-for-v6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpiolib: Handle no pin_ranges in gpiochip_generic_config()
      9cd42be8
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.8-rc6' of... · 76d885a1
      Linus Torvalds authored
      Merge tag 'hwmon-for-v6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fix from Guenter Roeck:
       "Fix a global-out-of-bounds bug in nct6775 driver"
      
      * tag 'hwmon-for-v6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (nct6775) Fix access to temperature configuration registers
      76d885a1
    • Arnd Bergmann's avatar
      Merge tag 'renesas-fixes-for-v6.8-tag1' of... · dcb8e53e
      Arnd Bergmann authored
      Merge tag 'renesas-fixes-for-v6.8-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into arm/fixes
      
      Renesas fixes for v6.8
      
        - Add missing #interrupt-cells to DA9063 nodes.
      
      * tag 'renesas-fixes-for-v6.8-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
        ARM: dts: renesas: rcar-gen2: Add missing #interrupt-cells to DA9063 nodes
      
      Link: https://lore.kernel.org/r/cover.1708597150.git.geert+renesas@glider.beSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      dcb8e53e
    • Arnd Bergmann's avatar
      Merge tag 'riscv-dt-fixes-for-v6.8-rc6' of... · 4bd5b4c2
      Arnd Bergmann authored
      Merge tag 'riscv-dt-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into arm/fixes
      
      RISC-V Devicetree fixes for v6.8-rc6
      
      Two fixes for W=2 issues in devicetrees, which should constitute fixes
      for all reasonable-to-fix W=2 problems on RISC-V. The others are caused
      by standard USB and MMC property names containing underscores that are
      not likely to ever change.
      Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
      
      * tag 'riscv-dt-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux:
        riscv: dts: sifive: add missing #interrupt-cells to pmic
        riscv: dts: starfive: replace underscores in node names
      
      Link: https://lore.kernel.org/r/20240221-foil-glade-09dbf1aa3fe2@spudSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      4bd5b4c2
    • Arnd Bergmann's avatar
      Merge tag 'riscv-soc-drivers-fixes-for-v6.8-rc6' of... · fe514e17
      Arnd Bergmann authored
      Merge tag 'riscv-soc-drivers-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into arm/fixes
      
      RISC-V SoC driver fixes for v6.8-rc6
      
      A fix for a kconfig symbol whose help text has been unhelpful since its
      introduction.
      Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
      
      * tag 'riscv-soc-drivers-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux:
        soc: microchip: Fix POLARFIRE_SOC_SYS_CTRL input prompt
      
      Link: https://lore.kernel.org/r/20240221-irate-outrage-cf7f96f83074@spudSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      fe514e17
    • Arnd Bergmann's avatar
      Merge tag 'riscv-firmware-fixes-for-v6.8-rc6' of... · 4d934f94
      Arnd Bergmann authored
      Merge tag 'riscv-firmware-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into arm/fixes
      
      Microchip firmware driver fixes for v6.8-rc6
      
      A single fix for me incorrectly using sizeof().
      Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
      
      * tag 'riscv-firmware-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux:
        firmware: microchip: fix wrong sizeof argument
      
      Link: https://lore.kernel.org/r/20240221-recognize-dust-4bb575f4e67b@spudSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      4d934f94
    • Arnd Bergmann's avatar
      Merge tag 'riscv-cache-fixes-for-v6.8-rc6' of... · bcb323bd
      Arnd Bergmann authored
      Merge tag 'riscv-cache-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into arm/fixes
      
      RISC-V Cache driver fixes for v6.8-rc6
      
      A single fix for an inconsistency reported during CIP review by Pavel in
      the newly added ax45mp cache driver.
      Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
      
      * tag 'riscv-cache-fixes-for-v6.8-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux:
        cache: ax45mp_cache: Align end size to cache boundary in ax45mp_dma_cache_wback()
      
      Link: https://lore.kernel.org/r/20240221-keenness-handheld-b930aaa77708@spudSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      bcb323bd
    • WANG Xuerui's avatar
      LoongArch: KVM: Streamline kvm_check_cpucfg() and improve comments · f0f5c489
      WANG Xuerui authored
      All the checks currently done in kvm_check_cpucfg can be realized with
      early returns, so just do that to avoid extra cognitive burden related
      to the return value handling.
      
      While at it, clean up comments of _kvm_get_cpucfg_mask() and
      kvm_check_cpucfg(), by removing comments that are merely restatement of
      the code nearby, and paraphrasing the rest so they read more natural for
      English speakers (that likely are not familiar with the actual Chinese-
      influenced grammar).
      
      No functional changes intended.
      Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      f0f5c489
    • WANG Xuerui's avatar
      LoongArch: KVM: Rename _kvm_get_cpucfg() to _kvm_get_cpucfg_mask() · ec83f39d
      WANG Xuerui authored
      The function is not actually a getter of guest CPUCFG, but rather
      validation of the input CPUCFG ID plus information about the supported
      bit flags of that CPUCFG leaf. So rename it to avoid confusion.
      Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      ec83f39d
    • WANG Xuerui's avatar
      LoongArch: KVM: Fix input validation of _kvm_get_cpucfg() & kvm_check_cpucfg() · 179af575
      WANG Xuerui authored
      The range check for the CPUCFG ID is wrong (should have been a ||
      instead of &&) and useless in effect, so fix the obvious mistake.
      
      Furthermore, the juggling of the temp return value is unnecessary,
      because it is semantically equivalent and more readable to just
      return at every switch case's end. This is done too to avoid potential
      bugs in the future related to the unwanted complexity.
      
      Also, the return value of _kvm_get_cpucfg is meant to be checked, but
      this was not done, so bad CPUCFG IDs wrongly fall back to the default
      case and 0 is incorrectly returned; check the return value to fix the
      UAPI behavior.
      
      While at it, also remove the redundant range check in kvm_check_cpucfg,
      because out-of-range CPUCFG IDs are already rejected by the -EINVAL
      as returned by _kvm_get_cpucfg().
      
      Fixes: db1ecca2 ("LoongArch: KVM: Add LSX (128bit SIMD) support")
      Fixes: 118e10cd ("LoongArch: KVM: Add LASX (256bit SIMD) support")
      Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      179af575
    • Krzysztof Kozlowski's avatar
      LoongArch: dts: Minor whitespace cleanup · f661ca40
      Krzysztof Kozlowski authored
      The DTS code coding style expects exactly one space before '{'
      character.
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      f661ca40
    • Huacai Chen's avatar
      LoongArch: Call early_init_fdt_scan_reserved_mem() earlier · 9fa304b9
      Huacai Chen authored
      The unflatten_and_copy_device_tree() function contains a call to
      memblock_alloc(). This means that memblock is allocating memory before
      any of the reserved memory regions are set aside in the arch_mem_init()
      function which calls early_init_fdt_scan_reserved_mem(). Therefore,
      there is a possibility for memblock to allocate from any of the
      reserved memory regions.
      
      Hence, move the call to early_init_fdt_scan_reserved_mem() to be earlier
      in the init sequence, so that the reserved memory regions are set aside
      before any allocations are done using memblock.
      
      Cc: stable@vger.kernel.org
      Fixes: 88d4d957 ("LoongArch: Add FDT booting support from efi system table")
      Signed-off-by: default avatarOreoluwa Babatunde <quic_obabatun@quicinc.com>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      9fa304b9
    • Huacai Chen's avatar
      LoongArch: Update cpu_sibling_map when disabling nonboot CPUs · 752cd08d
      Huacai Chen authored
      Update cpu_sibling_map when disabling nonboot CPUs by defining & calling
      clear_cpu_sibling_map(), otherwise we get such errors on SMT systems:
      
      jump label: negative count!
      WARNING: CPU: 6 PID: 45 at kernel/jump_label.c:263 __static_key_slow_dec_cpuslocked+0xec/0x100
      CPU: 6 PID: 45 Comm: cpuhp/6 Not tainted 6.8.0-rc5+ #1340
      pc 90000000004c302c ra 90000000004c302c tp 90000001005bc000 sp 90000001005bfd20
      a0 000000000000001b a1 900000000224c278 a2 90000001005bfb58 a3 900000000224c280
      a4 900000000224c278 a5 90000001005bfb50 a6 0000000000000001 a7 0000000000000001
      t0 ce87a4763eb5234a t1 ce87a4763eb5234a t2 0000000000000000 t3 0000000000000000
      t4 0000000000000006 t5 0000000000000000 t6 0000000000000064 t7 0000000000001964
      t8 000000000009ebf6 u0 9000000001f2a068 s9 0000000000000000 s0 900000000246a2d8
      s1 ffffffffffffffff s2 ffffffffffffffff s3 90000000021518c0 s4 0000000000000040
      s5 9000000002151058 s6 9000000009828e40 s7 00000000000000b4 s8 0000000000000006
         ra: 90000000004c302c __static_key_slow_dec_cpuslocked+0xec/0x100
        ERA: 90000000004c302c __static_key_slow_dec_cpuslocked+0xec/0x100
       CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)
       PRMD: 00000004 (PPLV0 +PIE -PWE)
       EUEN: 00000000 (-FPE -SXE -ASXE -BTE)
       ECFG: 00071c1c (LIE=2-4,10-12 VS=7)
      ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0)
       PRID: 0014d000 (Loongson-64bit, Loongson-3A6000-HV)
      CPU: 6 PID: 45 Comm: cpuhp/6 Not tainted 6.8.0-rc5+ #1340
      Stack : 0000000000000000 900000000203f258 900000000179afc8 90000001005bc000
              90000001005bf980 0000000000000000 90000001005bf988 9000000001fe0be0
              900000000224c280 900000000224c278 90000001005bf8c0 0000000000000001
              0000000000000001 ce87a4763eb5234a 0000000007f38000 90000001003f8cc0
              0000000000000000 0000000000000006 0000000000000000 4c206e6f73676e6f
              6f4c203a656d616e 000000000009ec99 0000000007f38000 0000000000000000
              900000000214b000 9000000001fe0be0 0000000000000004 0000000000000000
              0000000000000107 0000000000000009 ffffffffffafdabe 00000000000000b4
              0000000000000006 90000000004c302c 9000000000224528 00005555939a0c7c
              00000000000000b0 0000000000000004 0000000000000000 0000000000071c1c
              ...
      Call Trace:
      [<9000000000224528>] show_stack+0x48/0x1a0
      [<900000000179afc8>] dump_stack_lvl+0x78/0xa0
      [<9000000000263ed0>] __warn+0x90/0x1a0
      [<90000000017419b8>] report_bug+0x1b8/0x280
      [<900000000179c564>] do_bp+0x264/0x420
      [<90000000004c302c>] __static_key_slow_dec_cpuslocked+0xec/0x100
      [<90000000002b4d7c>] sched_cpu_deactivate+0x2fc/0x300
      [<9000000000266498>] cpuhp_invoke_callback+0x178/0x8a0
      [<9000000000267f70>] cpuhp_thread_fun+0xf0/0x240
      [<90000000002a117c>] smpboot_thread_fn+0x1dc/0x2e0
      [<900000000029a720>] kthread+0x140/0x160
      [<9000000000222288>] ret_from_kernel_thread+0xc/0xa4
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      752cd08d
    • Huacai Chen's avatar
      LoongArch: Disable IRQ before init_fn() for nonboot CPUs · 1001db6c
      Huacai Chen authored
      Disable IRQ before init_fn() for nonboot CPUs when hotplug, in order to
      silence such warnings (and also avoid potential errors due to unexpected
      interrupts):
      
      WARNING: CPU: 1 PID: 0 at kernel/rcu/tree.c:4503 rcu_cpu_starting+0x214/0x280
      CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.17+ #1198
      pc 90000000048e3334 ra 90000000047bd56c tp 900000010039c000 sp 900000010039fdd0
      a0 0000000000000001 a1 0000000000000006 a2 900000000802c040 a3 0000000000000000
      a4 0000000000000001 a5 0000000000000004 a6 0000000000000000 a7 90000000048e3f4c
      t0 0000000000000001 t1 9000000005c70968 t2 0000000004000000 t3 000000000005e56e
      t4 00000000000002e4 t5 0000000000001000 t6 ffffffff80000000 t7 0000000000040000
      t8 9000000007931638 u0 0000000000000006 s9 0000000000000004 s0 0000000000000001
      s1 9000000006356ac0 s2 9000000007244000 s3 0000000000000001 s4 0000000000000001
      s5 900000000636f000 s6 7fffffffffffffff s7 9000000002123940 s8 9000000001ca55f8
         ra: 90000000047bd56c tlb_init+0x24c/0x528
        ERA: 90000000048e3334 rcu_cpu_starting+0x214/0x280
       CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)
       PRMD: 00000000 (PPLV0 -PIE -PWE)
       EUEN: 00000000 (-FPE -SXE -ASXE -BTE)
       ECFG: 00071000 (LIE=12 VS=7)
      ESTAT: 000c0000 [BRK] (IS= ECode=12 EsubCode=0)
       PRID: 0014c010 (Loongson-64bit, Loongson-3A5000)
      CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.17+ #1198
      Stack : 0000000000000000 9000000006375000 9000000005b61878 900000010039c000
              900000010039fa30 0000000000000000 900000010039fa38 900000000619a140
              9000000006456888 9000000006456880 900000010039f950 0000000000000001
              0000000000000001 cb0cb028ec7e52e1 0000000002b90000 9000000100348700
              0000000000000000 0000000000000001 ffffffff916d12f1 0000000000000003
              0000000000040000 9000000007930370 0000000002b90000 0000000000000004
              9000000006366000 900000000619a140 0000000000000000 0000000000000004
              0000000000000000 0000000000000009 ffffffffffc681f2 9000000002123940
              9000000001ca55f8 9000000006366000 90000000047a4828 00007ffff057ded8
              00000000000000b0 0000000000000000 0000000000000000 0000000000071000
              ...
      Call Trace:
      [<90000000047a4828>] show_stack+0x48/0x1a0
      [<9000000005b61874>] dump_stack_lvl+0x84/0xcc
      [<90000000047f60ac>] __warn+0x8c/0x1e0
      [<9000000005b0ab34>] report_bug+0x1b4/0x280
      [<9000000005b63110>] do_bp+0x2d0/0x480
      [<90000000047a2e20>] handle_bp+0x120/0x1c0
      [<90000000048e3334>] rcu_cpu_starting+0x214/0x280
      [<90000000047bd568>] tlb_init+0x248/0x528
      [<90000000047a4c44>] per_cpu_trap_init+0x124/0x160
      [<90000000047a19f4>] cpu_probe+0x494/0xa00
      [<90000000047b551c>] start_secondary+0x3c/0xc0
      [<9000000005b66134>] smpboot_entry+0x50/0x58
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      1001db6c
    • Dave Airlie's avatar
      nouveau: add an ioctl to report vram usage · 72fa02fd
      Dave Airlie authored
      This reports the currently used vram allocations.
      
      userspace using this has been proposed for nvk, but
      it's a rather trivial uapi addition.
      Reviewed-by: default avatarFaith Ekstrand <faith.ekstrand@collabora.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      72fa02fd
    • Dave Airlie's avatar
      nouveau: add an ioctl to return vram bar size. · 3f4d8aac
      Dave Airlie authored
      This returns the BAR resources size so userspace can make
      decisions based on rebar support.
      
      userspace using this has been proposed for nvk, but
      it's a rather trivial uapi addition.
      Reviewed-by: default avatarFaith Ekstrand <faith.ekstrand@collabora.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      3f4d8aac
    • Dave Airlie's avatar
      nouveau/gsp: add kconfig option to enable GSP paths by default · 1d492944
      Dave Airlie authored
      Turing and Ampere will continue to use the old paths by default,
      but we should allow distros to decide what the policy is.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20240214040632.661069-1-airlied@gmail.com
      1d492944
  3. 22 Feb, 2024 12 commits
    • Dave Airlie's avatar
      Merge tag 'drm-xe-fixes-2024-02-22' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes · 7c548869
      Dave Airlie authored
      UAPI Changes:
      - Remove support for persistent exec_queues
      - Drop a reduntant sysfs newline printout
      
      Cross-subsystem Changes:
      
      Core Changes:
      
      Driver Changes:
      - A three-patch fix for a VM_BIND rebind optimization path
      - Fix a modpost warning on an xe KUNIT module
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZdcsNrxdWMMM417v@fedora
      7c548869
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.8-2024-02-22' of... · bfc7746a
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.8-2024-02-22' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-6.8-2024-02-22:
      
      amdgpu:
      - Suspend/resume fixes
      - Backlight error fix
      - DCN 3.5 fixes
      - Misc fixes
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20240222195338.5809-1-alexander.deucher@amd.com
      bfc7746a
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2024-02-22' of... · 741922e7
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2024-02-22' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fixup for TV mode
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZdcwT9kltvEgJZZE@jlahtine-mobl.ger.corp.intel.com
      741922e7
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2024-02-22' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · f581dbb3
      Dave Airlie authored
      A list handling fix and 64bit division on 32bit platform fix for the
      drm/buddy allocator, a cast warning and an initialization fix for
      nouveau, a bridge handling fix for meson, an initialisation fix for
      ivpu, a SPARC build fix for fbdev, a double-free fix for ttm, and two
      fence handling fixes for syncobj.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <mripard@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/gl2antuifidtzn3dfm426p7xwh5fxj23behagwh26owfnosh2w@gqoa7vj5prnh
      f581dbb3
    • Linus Torvalds's avatar
      Merge tag 'block-6.8-2024-02-22' of git://git.kernel.dk/linux · ffd2cb6b
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Mostly just fixlets for md, but also a sed-opal parsing fix"
      
      * tag 'block-6.8-2024-02-22' of git://git.kernel.dk/linux:
        block: sed-opal: handle empty atoms when parsing response
        md: Don't suspend the array for interrupted reshape
        md: Don't register sync_thread for reshape directly
        md: Make sure md_do_sync() will set MD_RECOVERY_DONE
        md: Don't ignore read-only array in md_check_recovery()
        md: Don't ignore suspended array in md_check_recovery()
        md: Fix missing release of 'active_io' for flush
      ffd2cb6b
    • Linus Torvalds's avatar
      Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd · 4c36fbb4
      Linus Torvalds authored
      Pull iommufd fixes from Jason Gunthorpe:
      
       - Fix dirty tracking bitmap collection when using reporting bitmaps
         that are not neatly aligned to u64's or match the IO page table radix
         tree layout.
      
       - Add self tests to cover the cases that were found to be broken.
      
       - Add missing enforcement of invalidation type in the uapi.
      
       - Fix selftest config generation
      
      * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd:
        selftests/iommu: fix the config fragment
        iommufd: Reject non-zero data_type if no data_len is provided
        iommufd/iova_bitmap: Consider page offset for the pages to be pinned
        iommufd/selftest: Add mock IO hugepages tests
        iommufd/selftest: Hugepage mock domain support
        iommufd/selftest: Refactor mock_domain_read_and_clear_dirty()
        iommufd/selftest: Refactor dirty bitmap tests
        iommufd/iova_bitmap: Handle recording beyond the mapped pages
        iommufd/selftest: Test u64 unaligned bitmaps
        iommufd/iova_bitmap: Switch iova_bitmap::bitmap to an u8 array
        iommufd/iova_bitmap: Bounds check mapped::pages access
      4c36fbb4
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.8-3' of... · c7138f7a
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
       "Regression fixes:
      
         - Fix INT0002 vGPIO events no longer working after 6.8 ACPI SCI
           changes
      
         - AMD-PMF: Fix laptops (e.g. Framework 13 AMD) hanging on suspend
      
         - x86-android-tablets: Fix touchscreen no longer working on Lenovo
           Yogabook
      
         - x86-android-tablets: Fix serdev instantiation regression
      
         - intel-vbtn: Fix ThinkPad X1 Tablet Gen2 no longer suspending
      
        Bug fixes:
      
         - think-lmi: Fix changing BIOS settings on Lenovo workstations
      
         - touchscreen_dmi: Fix Hi8 Air touchscreen data sometimes missing
      
         - AMD-PMF: Fix Smart PC support not working after suspend/resume
      
        Other misc small fixes"
      
      * tag 'platform-drivers-x86-v6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: thinkpad_acpi: Only update profile if successfully converted
        platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler
        platform/x86: x86-android-tablets: Fix acer_b1_750_goodix_gpios name
        platform/x86: x86-android-tablets: Fix serdev instantiation no longer working
        platform/x86: Add new get_serdev_controller() helper
        platform/x86: x86-android-tablets: Fix keyboard touchscreen on Lenovo Yogabook1 X90
        platform/x86/amd/pmf: Fix a potential race with policy binary sideload
        platform/x86/amd/pmf: Fixup error handling for amd_pmf_init_smart_pc()
        platform/x86/amd/pmf: Add debugging message for missing policy data
        platform/x86/amd/pmf: Fix a suspend hang on Framework 13
        platform/x86/amd/pmf: Fix TEE enact command failure after suspend and resume
        platform/x86/amd/pmf: Remove smart_pc_status enum
        platform/x86: touchscreen_dmi: Consolidate Goodix upside-down touchscreen data
        platform/x86: touchscreen_dmi: Allow partial (prefix) matches for ACPI names
        platform/x86: intel: int0002_vgpio: Pass IRQF_ONESHOT to request_irq()
        platform/x86: think-lmi: Fix password opcode ordering for workstations
      c7138f7a
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 88953761
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "Here are some Samsung clk driver fixes I've been sitting on for far
        too long.
      
        They fix the bindings and clk driver for the Google GS101 SoC"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: samsung: clk-gs101: comply with the new dt cmu_misc clock names
        dt-bindings: clock: gs101: rename cmu_misc clock-names
      88953761
    • Linus Torvalds's avatar
      Merge tag 'vfs-6.8-rc6.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 1c892cdd
      Linus Torvalds authored
      Pull vfs fixes from Christian Brauner:
      
       - Fix a memory leak in cachefiles
      
       - Restrict aio cancellations to I/O submitted through the aio
         interfaces as this is otherwise causing issues for I/O submitted
         via io_uring
      
       - Increase buffer for afs volume status to avoid overflow
      
       - Fix a missing zero-length check in unbuffered writes in the
         netfs library. If generic_write_checks() returns zero make
         netfs_unbuffered_write_iter() return right away
      
       - Prevent a leak in i_dio_count caused by netfs_begin_read() operating
         past i_size. It will return early and leave i_dio_count incremented
      
       - Account for ipv4 addresses as well as ipv6 addresses when processing
         incoming callbacks in afs
      
      * tag 'vfs-6.8-rc6.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
        fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio
        afs: Increase buffer size in afs_update_volume_status()
        afs: Fix ignored callbacks over ipv4
        cachefiles: fix memory leak in cachefiles_add_cache()
        netfs: Fix missing zero-length check in unbuffered write
        netfs: Fix i_dio_count leak on DIO read past i_size
      1c892cdd
    • Linus Torvalds's avatar
      Merge tag 'net-6.8.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 6714ebb9
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from bpf and netfilter.
      
        Current release - regressions:
      
         - af_unix: fix another unix GC hangup
      
        Previous releases - regressions:
      
         - core: fix a possible AF_UNIX deadlock
      
         - bpf: fix NULL pointer dereference in sk_psock_verdict_data_ready()
      
         - netfilter: nft_flow_offload: release dst in case direct xmit path
           is used
      
         - bridge: switchdev: ensure MDB events are delivered exactly once
      
         - l2tp: pass correct message length to ip6_append_data
      
         - dccp/tcp: unhash sk from ehash for tb2 alloc failure after
           check_estalblished()
      
         - tls: fixes for record type handling with PEEK
      
         - devlink: fix possible use-after-free and memory leaks in
           devlink_init()
      
        Previous releases - always broken:
      
         - bpf: fix an oops when attempting to read the vsyscall page through
           bpf_probe_read_kernel
      
         - sched: act_mirred: use the backlog for mirred ingress
      
         - netfilter: nft_flow_offload: fix dst refcount underflow
      
         - ipv6: sr: fix possible use-after-free and null-ptr-deref
      
         - mptcp: fix several data races
      
         - phonet: take correct lock to peek at the RX queue
      
        Misc:
      
         - handful of fixes and reliability improvements for selftests"
      
      * tag 'net-6.8.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (72 commits)
        l2tp: pass correct message length to ip6_append_data
        net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHY
        selftests: ioam: refactoring to align with the fix
        Fix write to cloned skb in ipv6_hop_ioam()
        phonet/pep: fix racy skb_queue_empty() use
        phonet: take correct lock to peek at the RX queue
        net: sparx5: Add spinlock for frame transmission from CPU
        net/sched: flower: Add lock protection when remove filter handle
        devlink: fix port dump cmd type
        net: stmmac: Fix EST offset for dwmac 5.10
        tools: ynl: don't leak mcast_groups on init error
        tools: ynl: make sure we always pass yarg to mnl_cb_run
        net: mctp: put sock on tag allocation failure
        netfilter: nf_tables: use kzalloc for hook allocation
        netfilter: nf_tables: register hooks last when adding new chain/flowtable
        netfilter: nft_flow_offload: release dst in case direct xmit path is used
        netfilter: nft_flow_offload: reset dst in route object after setting up flow
        netfilter: nf_tables: set dormant flag on hook register failure
        selftests: tls: add test for peeking past a record of a different type
        selftests: tls: add test for merging of same-type control messages
        ...
      6714ebb9
    • Ma Jun's avatar
      drm/amdgpu: Fix the runtime resume failure issue · bbfaf2ae
      Ma Jun authored
      Don't set power state flag when system enter runtime suspend,
      or it may cause runtime resume failure issue.
      
      Fixes: 3a9626c8 ("drm/amd: Stop evicting resources on APUs in suspend")
      Signed-off-by: default avatarMa Jun <Jun.Ma2@amd.com>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      bbfaf2ae
    • Melissa Wen's avatar
      drm/amd/display: fix null-pointer dereference on edid reading · 96717617
      Melissa Wen authored
      Use i2c adapter when there isn't aux_mode in dc_link to fix a
      null-pointer derefence that happens when running
      igt@kms_force_connector_basic in a system with DCN2.1 and HDMI connector
      detected as below:
      
      [  +0.178146] BUG: kernel NULL pointer dereference, address: 00000000000004c0
      [  +0.000010] #PF: supervisor read access in kernel mode
      [  +0.000005] #PF: error_code(0x0000) - not-present page
      [  +0.000004] PGD 0 P4D 0
      [  +0.000006] Oops: 0000 [#1] PREEMPT SMP NOPTI
      [  +0.000006] CPU: 15 PID: 2368 Comm: kms_force_conne Not tainted 6.5.0-asdn+ #152
      [  +0.000005] Hardware name: HP HP ENVY x360 Convertible 13-ay1xxx/8929, BIOS F.01 07/14/2021
      [  +0.000004] RIP: 0010:i2c_transfer+0xd/0x100
      [  +0.000011] Code: ea fc ff ff 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 41 54 55 53 <48> 8b 47 10 48 89 fb 48 83 38 00 0f 84 b3 00 00 00 83 3d 2f 80 16
      [  +0.000004] RSP: 0018:ffff9c4f89c0fad0 EFLAGS: 00010246
      [  +0.000005] RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000080
      [  +0.000003] RDX: 0000000000000002 RSI: ffff9c4f89c0fb20 RDI: 00000000000004b0
      [  +0.000003] RBP: ffff9c4f89c0fb80 R08: 0000000000000080 R09: ffff8d8e0b15b980
      [  +0.000003] R10: 00000000000380e0 R11: 0000000000000000 R12: 0000000000000080
      [  +0.000002] R13: 0000000000000002 R14: ffff9c4f89c0fb0e R15: ffff9c4f89c0fb0f
      [  +0.000004] FS:  00007f9ad2176c40(0000) GS:ffff8d90fe9c0000(0000) knlGS:0000000000000000
      [  +0.000003] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  +0.000004] CR2: 00000000000004c0 CR3: 0000000121bc4000 CR4: 0000000000750ee0
      [  +0.000003] PKRU: 55555554
      [  +0.000003] Call Trace:
      [  +0.000006]  <TASK>
      [  +0.000006]  ? __die+0x23/0x70
      [  +0.000011]  ? page_fault_oops+0x17d/0x4c0
      [  +0.000008]  ? preempt_count_add+0x6e/0xa0
      [  +0.000008]  ? srso_alias_return_thunk+0x5/0x7f
      [  +0.000011]  ? exc_page_fault+0x7f/0x180
      [  +0.000009]  ? asm_exc_page_fault+0x26/0x30
      [  +0.000013]  ? i2c_transfer+0xd/0x100
      [  +0.000010]  drm_do_probe_ddc_edid+0xc2/0x140 [drm]
      [  +0.000067]  ? srso_alias_return_thunk+0x5/0x7f
      [  +0.000006]  ? _drm_do_get_edid+0x97/0x3c0 [drm]
      [  +0.000043]  ? __pfx_drm_do_probe_ddc_edid+0x10/0x10 [drm]
      [  +0.000042]  edid_block_read+0x3b/0xd0 [drm]
      [  +0.000043]  _drm_do_get_edid+0xb6/0x3c0 [drm]
      [  +0.000041]  ? __pfx_drm_do_probe_ddc_edid+0x10/0x10 [drm]
      [  +0.000043]  drm_edid_read_custom+0x37/0xd0 [drm]
      [  +0.000044]  amdgpu_dm_connector_mode_valid+0x129/0x1d0 [amdgpu]
      [  +0.000153]  drm_connector_mode_valid+0x3b/0x60 [drm_kms_helper]
      [  +0.000000]  __drm_helper_update_and_validate+0xfe/0x3c0 [drm_kms_helper]
      [  +0.000000]  ? amdgpu_dm_connector_get_modes+0xb6/0x520 [amdgpu]
      [  +0.000000]  ? srso_alias_return_thunk+0x5/0x7f
      [  +0.000000]  drm_helper_probe_single_connector_modes+0x2ab/0x540 [drm_kms_helper]
      [  +0.000000]  status_store+0xb2/0x1f0 [drm]
      [  +0.000000]  kernfs_fop_write_iter+0x136/0x1d0
      [  +0.000000]  vfs_write+0x24d/0x440
      [  +0.000000]  ksys_write+0x6f/0xf0
      [  +0.000000]  do_syscall_64+0x60/0xc0
      [  +0.000000]  ? srso_alias_return_thunk+0x5/0x7f
      [  +0.000000]  ? syscall_exit_to_user_mode+0x2b/0x40
      [  +0.000000]  ? srso_alias_return_thunk+0x5/0x7f
      [  +0.000000]  ? do_syscall_64+0x6c/0xc0
      [  +0.000000]  ? do_syscall_64+0x6c/0xc0
      [  +0.000000]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
      [  +0.000000] RIP: 0033:0x7f9ad46b4b00
      [  +0.000000] Code: 40 00 48 8b 15 19 b3 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d e1 3a 0e 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
      [  +0.000000] RSP: 002b:00007ffcbd3bd6d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
      [  +0.000000] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9ad46b4b00
      [  +0.000000] RDX: 0000000000000002 RSI: 00007f9ad48a7417 RDI: 0000000000000009
      [  +0.000000] RBP: 0000000000000002 R08: 0000000000000064 R09: 0000000000000000
      [  +0.000000] R10: 0000000000000000 R11: 0000000000000202 R12: 00007f9ad48a7417
      [  +0.000000] R13: 0000000000000009 R14: 00007ffcbd3bd760 R15: 0000000000000001
      [  +0.000000]  </TASK>
      [  +0.000000] Modules linked in: ctr ccm rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device cmac algif_hash algif_skcipher af_alg bnep btusb btrtl btbcm btintel btmtk bluetooth uvcvideo videobuf2_vmalloc sha3_generic videobuf2_memops uvc jitterentropy_rng videobuf2_v4l2 videodev drbg videobuf2_common ansi_cprng mc ecdh_generic ecc qrtr binfmt_misc hid_sensor_accel_3d hid_sensor_magn_3d hid_sensor_gyro_3d hid_sensor_trigger industrialio_triggered_buffer kfifo_buf industrialio snd_ctl_led joydev hid_sensor_iio_common rtw89_8852ae rtw89_8852a rtw89_pci snd_hda_codec_realtek rtw89_core snd_hda_codec_generic intel_rapl_msr ledtrig_audio intel_rapl_common snd_hda_codec_hdmi mac80211 snd_hda_intel snd_intel_dspcfg kvm_amd snd_hda_codec snd_soc_dmic snd_acp3x_rn snd_acp3x_pdm_dma libarc4 snd_hwdep snd_soc_core kvm snd_hda_core cfg80211 snd_pci_acp6x snd_pcm nls_ascii snd_timer hp_wmi snd_pci_acp5x nls_cp437 snd_rn_pci_acp3x ucsi_acpi sparse_keymap ccp snd platform_profile snd_acp_config typec_ucsi irqbypass vfat sp5100_tco
      [  +0.000000]  snd_soc_acpi fat rapl pcspkr wmi_bmof roles rfkill rng_core snd_pci_acp3x soundcore k10temp watchdog typec battery ac amd_pmc acpi_tad button hid_sensor_hub hid_multitouch evdev serio_raw msr parport_pc ppdev lp parport fuse loop efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 btrfs blake2b_generic dm_crypt dm_mod efivarfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx libcrc32c crc32c_generic xor raid6_pq raid1 raid0 multipath linear md_mod amdgpu amdxcp i2c_algo_bit drm_ttm_helper ttm crc32_pclmul crc32c_intel drm_exec gpu_sched drm_suballoc_helper nvme ghash_clmulni_intel drm_buddy drm_display_helper sha512_ssse3 nvme_core ahci xhci_pci sha512_generic hid_generic xhci_hcd libahci rtsx_pci_sdmmc t10_pi i2c_hid_acpi drm_kms_helper i2c_hid mmc_core libata aesni_intel crc64_rocksoft_generic crypto_simd amd_sfh crc64_rocksoft scsi_mod usbcore cryptd crc_t10dif cec drm crct10dif_generic hid rtsx_pci crct10dif_pclmul scsi_common rc_core crc64 i2c_piix4
      [  +0.000000]  usb_common crct10dif_common video wmi
      [  +0.000000] CR2: 00000000000004c0
      [  +0.000000] ---[ end trace 0000000000000000 ]---
      
      Fixes: 0e859faf ("drm/amd/display: Remove unwanted drm edid references")
      Signed-off-by: default avatarMelissa Wen <mwen@igalia.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      96717617