1. 20 Jan, 2024 3 commits
    • Michael Chan's avatar
      bnxt_en: Wait for FLR to complete during probe · 3c1069fa
      Michael Chan authored
      The first message to firmware may fail if the device is undergoing FLR.
      The driver has some recovery logic for this failure scenario but we must
      wait 100 msec for FLR to complete before proceeding.  Otherwise the
      recovery will always fail.
      
      Fixes: ba02629f ("bnxt_en: log firmware status on firmware init failure")
      Reviewed-by: default avatarDamodharam Ammepalli <damodharam.ammepalli@broadcom.com>
      Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
      Link: https://lore.kernel.org/r/20240117234515.226944-2-michael.chan@broadcom.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      3c1069fa
    • Zhengchao Shao's avatar
      tcp: make sure init the accept_queue's spinlocks once · 198bc90e
      Zhengchao Shao authored
      When I run syz's reproduction C program locally, it causes the following
      issue:
      pvqspinlock: lock 0xffff9d181cd5c660 has corrupted value 0x0!
      WARNING: CPU: 19 PID: 21160 at __pv_queued_spin_unlock_slowpath (kernel/locking/qspinlock_paravirt.h:508)
      Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
      RIP: 0010:__pv_queued_spin_unlock_slowpath (kernel/locking/qspinlock_paravirt.h:508)
      Code: 73 56 3a ff 90 c3 cc cc cc cc 8b 05 bb 1f 48 01 85 c0 74 05 c3 cc cc cc cc 8b 17 48 89 fe 48 c7 c7
      30 20 ce 8f e8 ad 56 42 ff <0f> 0b c3 cc cc cc cc 0f 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90
      RSP: 0018:ffffa8d200604cb8 EFLAGS: 00010282
      RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff9d1ef60e0908
      RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffff9d1ef60e0900
      RBP: ffff9d181cd5c280 R08: 0000000000000000 R09: 00000000ffff7fff
      R10: ffffa8d200604b68 R11: ffffffff907dcdc8 R12: 0000000000000000
      R13: ffff9d181cd5c660 R14: ffff9d1813a3f330 R15: 0000000000001000
      FS:  00007fa110184640(0000) GS:ffff9d1ef60c0000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 0000000020000000 CR3: 000000011f65e000 CR4: 00000000000006f0
      Call Trace:
      <IRQ>
        _raw_spin_unlock (kernel/locking/spinlock.c:186)
        inet_csk_reqsk_queue_add (net/ipv4/inet_connection_sock.c:1321)
        inet_csk_complete_hashdance (net/ipv4/inet_connection_sock.c:1358)
        tcp_check_req (net/ipv4/tcp_minisocks.c:868)
        tcp_v4_rcv (net/ipv4/tcp_ipv4.c:2260)
        ip_protocol_deliver_rcu (net/ipv4/ip_input.c:205)
        ip_local_deliver_finish (net/ipv4/ip_input.c:234)
        __netif_receive_skb_one_core (net/core/dev.c:5529)
        process_backlog (./include/linux/rcupdate.h:779)
        __napi_poll (net/core/dev.c:6533)
        net_rx_action (net/core/dev.c:6604)
        __do_softirq (./arch/x86/include/asm/jump_label.h:27)
        do_softirq (kernel/softirq.c:454 kernel/softirq.c:441)
      </IRQ>
      <TASK>
        __local_bh_enable_ip (kernel/softirq.c:381)
        __dev_queue_xmit (net/core/dev.c:4374)
        ip_finish_output2 (./include/net/neighbour.h:540 net/ipv4/ip_output.c:235)
        __ip_queue_xmit (net/ipv4/ip_output.c:535)
        __tcp_transmit_skb (net/ipv4/tcp_output.c:1462)
        tcp_rcv_synsent_state_process (net/ipv4/tcp_input.c:6469)
        tcp_rcv_state_process (net/ipv4/tcp_input.c:6657)
        tcp_v4_do_rcv (net/ipv4/tcp_ipv4.c:1929)
        __release_sock (./include/net/sock.h:1121 net/core/sock.c:2968)
        release_sock (net/core/sock.c:3536)
        inet_wait_for_connect (net/ipv4/af_inet.c:609)
        __inet_stream_connect (net/ipv4/af_inet.c:702)
        inet_stream_connect (net/ipv4/af_inet.c:748)
        __sys_connect (./include/linux/file.h:45 net/socket.c:2064)
        __x64_sys_connect (net/socket.c:2073 net/socket.c:2070 net/socket.c:2070)
        do_syscall_64 (arch/x86/entry/common.c:51 arch/x86/entry/common.c:82)
        entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129)
        RIP: 0033:0x7fa10ff05a3d
        Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89
        c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ab a3 0e 00 f7 d8 64 89 01 48
        RSP: 002b:00007fa110183de8 EFLAGS: 00000202 ORIG_RAX: 000000000000002a
        RAX: ffffffffffffffda RBX: 0000000020000054 RCX: 00007fa10ff05a3d
        RDX: 000000000000001c RSI: 0000000020000040 RDI: 0000000000000003
        RBP: 00007fa110183e20 R08: 0000000000000000 R09: 0000000000000000
        R10: 0000000000000000 R11: 0000000000000202 R12: 00007fa110184640
        R13: 0000000000000000 R14: 00007fa10fe8b060 R15: 00007fff73e23b20
      </TASK>
      
      The issue triggering process is analyzed as follows:
      Thread A                                       Thread B
      tcp_v4_rcv	//receive ack TCP packet       inet_shutdown
        tcp_check_req                                  tcp_disconnect //disconnect sock
        ...                                              tcp_set_state(sk, TCP_CLOSE)
          inet_csk_complete_hashdance                ...
            inet_csk_reqsk_queue_add                 inet_listen  //start listen
              spin_lock(&queue->rskq_lock)             inet_csk_listen_start
              ...                                        reqsk_queue_alloc
              ...                                          spin_lock_init
              spin_unlock(&queue->rskq_lock)	//warning
      
      When the socket receives the ACK packet during the three-way handshake,
      it will hold spinlock. And then the user actively shutdowns the socket
      and listens to the socket immediately, the spinlock will be initialized.
      When the socket is going to release the spinlock, a warning is generated.
      Also the same issue to fastopenq.lock.
      
      Move init spinlock to inet_create and inet_accept to make sure init the
      accept_queue's spinlocks once.
      
      Fixes: fff1f300 ("tcp: add a spinlock to protect struct request_sock_queue")
      Fixes: 168a8f58 ("tcp: TCP Fast Open Server - main code path")
      Reported-by: default avatarMing Shu <sming56@aliyun.com>
      Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Link: https://lore.kernel.org/r/20240118012019.1751966-1-shaozhengchao@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      198bc90e
    • Benjamin Poirier's avatar
      selftests: bonding: Increase timeout to 1200s · b01f15a7
      Benjamin Poirier authored
      When tests are run by runner.sh, bond_options.sh gets killed before
      it can complete:
      
      make -C tools/testing/selftests run_tests TARGETS="drivers/net/bonding"
      	[...]
      	# timeout set to 120
      	# selftests: drivers/net/bonding: bond_options.sh
      	# TEST: prio (active-backup miimon primary_reselect 0)                [ OK ]
      	# TEST: prio (active-backup miimon primary_reselect 1)                [ OK ]
      	# TEST: prio (active-backup miimon primary_reselect 2)                [ OK ]
      	# TEST: prio (active-backup arp_ip_target primary_reselect 0)         [ OK ]
      	# TEST: prio (active-backup arp_ip_target primary_reselect 1)         [ OK ]
      	# TEST: prio (active-backup arp_ip_target primary_reselect 2)         [ OK ]
      	#
      	not ok 7 selftests: drivers/net/bonding: bond_options.sh # TIMEOUT 120 seconds
      
      This test includes many sleep statements, at least some of which are
      related to timers in the operation of the bonding driver itself. Increase
      the test timeout to allow the test to complete.
      
      I ran the test in slightly different VMs (including one without HW
      virtualization support) and got runtimes of 13m39.760s, 13m31.238s, and
      13m2.956s. Use a ~1.5x "safety factor" and set the timeout to 1200s.
      
      Fixes: 42a8d4aa ("selftests: bonding: add bonding prio option test")
      Reported-by: default avatarJakub Kicinski <kuba@kernel.org>
      Closes: https://lore.kernel.org/netdev/20240116104402.1203850a@kernel.org/#tSuggested-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarBenjamin Poirier <bpoirier@nvidia.com>
      Reviewed-by: default avatarHangbin Liu <liuhangbin@gmail.com>
      Link: https://lore.kernel.org/r/20240118001233.304759-1-bpoirier@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b01f15a7
  2. 19 Jan, 2024 15 commits
    • Wen Gu's avatar
      net/smc: fix illegal rmb_desc access in SMC-D connection dump · dbc153fd
      Wen Gu authored
      A crash was found when dumping SMC-D connections. It can be reproduced
      by following steps:
      
      - run nginx/wrk test:
        smc_run nginx
        smc_run wrk -t 16 -c 1000 -d <duration> -H 'Connection: Close' <URL>
      
      - continuously dump SMC-D connections in parallel:
        watch -n 1 'smcss -D'
      
       BUG: kernel NULL pointer dereference, address: 0000000000000030
       CPU: 2 PID: 7204 Comm: smcss Kdump: loaded Tainted: G	E      6.7.0+ #55
       RIP: 0010:__smc_diag_dump.constprop.0+0x5e5/0x620 [smc_diag]
       Call Trace:
        <TASK>
        ? __die+0x24/0x70
        ? page_fault_oops+0x66/0x150
        ? exc_page_fault+0x69/0x140
        ? asm_exc_page_fault+0x26/0x30
        ? __smc_diag_dump.constprop.0+0x5e5/0x620 [smc_diag]
        ? __kmalloc_node_track_caller+0x35d/0x430
        ? __alloc_skb+0x77/0x170
        smc_diag_dump_proto+0xd0/0xf0 [smc_diag]
        smc_diag_dump+0x26/0x60 [smc_diag]
        netlink_dump+0x19f/0x320
        __netlink_dump_start+0x1dc/0x300
        smc_diag_handler_dump+0x6a/0x80 [smc_diag]
        ? __pfx_smc_diag_dump+0x10/0x10 [smc_diag]
        sock_diag_rcv_msg+0x121/0x140
        ? __pfx_sock_diag_rcv_msg+0x10/0x10
        netlink_rcv_skb+0x5a/0x110
        sock_diag_rcv+0x28/0x40
        netlink_unicast+0x22a/0x330
        netlink_sendmsg+0x1f8/0x420
        __sock_sendmsg+0xb0/0xc0
        ____sys_sendmsg+0x24e/0x300
        ? copy_msghdr_from_user+0x62/0x80
        ___sys_sendmsg+0x7c/0xd0
        ? __do_fault+0x34/0x160
        ? do_read_fault+0x5f/0x100
        ? do_fault+0xb0/0x110
        ? __handle_mm_fault+0x2b0/0x6c0
        __sys_sendmsg+0x4d/0x80
        do_syscall_64+0x69/0x180
        entry_SYSCALL_64_after_hwframe+0x6e/0x76
      
      It is possible that the connection is in process of being established
      when we dump it. Assumed that the connection has been registered in a
      link group by smc_conn_create() but the rmb_desc has not yet been
      initialized by smc_buf_create(), thus causing the illegal access to
      conn->rmb_desc. So fix it by checking before dump.
      
      Fixes: 4b1b7d3b ("net/smc: add SMC-D diag support")
      Signed-off-by: default avatarWen Gu <guwen@linux.alibaba.com>
      Reviewed-by: default avatarDust Li <dust.li@linux.alibaba.com>
      Reviewed-by: default avatarWenjia Zhang <wenjia@linux.ibm.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dbc153fd
    • Linus Torvalds's avatar
      Merge tag 'net-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 736b5545
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from bpf and netfilter.
      
        Previous releases - regressions:
      
         - Revert "net: rtnetlink: Enslave device before bringing it up",
           breaks the case inverse to the one it was trying to fix
      
         - net: dsa: fix oob access in DSA's netdevice event handler
           dereference netdev_priv() before check its a DSA port
      
         - sched: track device in tcf_block_get/put_ext() only for clsact
           binder types
      
         - net: tls, fix WARNING in __sk_msg_free when record becomes full
           during splice and MORE hint set
      
         - sfp-bus: fix SFP mode detect from bitrate
      
         - drv: stmmac: prevent DSA tags from breaking COE
      
        Previous releases - always broken:
      
         - bpf: fix no forward progress in in bpf_iter_udp if output buffer is
           too small
      
         - bpf: reject variable offset alu on registers with a type of
           PTR_TO_FLOW_KEYS to prevent oob access
      
         - netfilter: tighten input validation
      
         - net: add more sanity check in virtio_net_hdr_to_skb()
      
         - rxrpc: fix use of Don't Fragment flag on RESPONSE packets, avoid
           infinite loop
      
         - amt: do not use the portion of skb->cb area which may get clobbered
      
         - mptcp: improve validation of the MPTCPOPT_MP_JOIN MCTCP option
      
        Misc:
      
         - spring cleanup of inactive maintainers"
      
      * tag 'net-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (88 commits)
        i40e: Include types.h to some headers
        ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work
        selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes
        selftests: mlxsw: qos_pfc: Remove wrong description
        mlxsw: spectrum_router: Register netdevice notifier before nexthop
        mlxsw: spectrum_acl_tcam: Fix stack corruption
        mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path
        mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure
        ethtool: netlink: Add missing ethnl_ops_begin/complete
        selftests: bonding: Add more missing config options
        selftests: netdevsim: add a config file
        libbpf: warn on unexpected __arg_ctx type when rewriting BTF
        selftests/bpf: add tests confirming type logic in kernel for __arg_ctx
        bpf: enforce types for __arg_ctx-tagged arguments in global subprogs
        bpf: extract bpf_ctx_convert_map logic and make it more reusable
        libbpf: feature-detect arg:ctx tag support in kernel
        ipvs: avoid stat macros calls from preemptible context
        netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
        netfilter: nf_tables: skip dead set elements in netlink dump
        netfilter: nf_tables: do not allow mismatch field size and set key length
        ...
      736b5545
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.8-rc1-rebased' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · ed8d8453
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "This removes the currently unused CLASS_DDC support (controllers set
        the flag, but there is no client to use it).
      
        Also, CLASS_SPD support gets simplified to prepare removal in the
        future. Class based instantiation is not recommended these days
        anyhow.
      
        Furthermore, I2C core now creates a debugfs directory per I2C adapter.
        Current bus driver users were converted to use it.
      
        Finally, quite some driver updates. Standing out are patches for the
        wmt-driver which is refactored to support more variants.
      
        This is the rebased pull request where a large series for the
        designware driver was dropped"
      
      * tag 'i2c-for-6.8-rc1-rebased' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (38 commits)
        MAINTAINERS: use proper email for my I2C work
        i2c: stm32f7: add support for stm32mp25 soc
        i2c: stm32f7: perform I2C_ISR read once at beginning of event isr
        dt-bindings: i2c: document st,stm32mp25-i2c compatible
        i2c: stm32f7: simplify status messages in case of errors
        i2c: stm32f7: perform most of irq job in threaded handler
        i2c: stm32f7: use dev_err_probe upon calls of devm_request_irq
        i2c: i801: Add lis3lv02d for Dell XPS 15 7590
        i2c: i801: Add lis3lv02d for Dell Precision 3540
        i2c: wmt: Reduce redundant: REG_CR setting
        i2c: wmt: Reduce redundant: function parameter
        i2c: wmt: Reduce redundant: clock mode setting
        i2c: wmt: Reduce redundant: wait event complete
        i2c: wmt: Reduce redundant: bus busy check
        i2c: mux: reg: Remove class-based device auto-detection support
        i2c: make i2c_bus_type const
        dt-bindings: at24: add ROHM BR24G04
        eeprom: at24: use of_match_ptr()
        i2c: cpm: Remove linux,i2c-index conversion from be32
        i2c: imx: Make SDA actually optional for bus recovering
        ...
      ed8d8453
    • Linus Torvalds's avatar
      Merge tag 'rtc-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux · 378de6df
      Linus Torvalds authored
      Pull RTC updates from Alexandre Belloni:
       "There are three new drivers this cycle. Also the cmos driver is
        getting fixes for longstanding wakeup issues on AMD.
      
        New drivers:
         - Analog Devices MAX31335
         - Nuvoton ma35d1
         - Texas Instrument TPS6594 PMIC RTC
      
        Drivers:
         - cmos: use ACPI alarm instead of HPET on recent AMD platforms
         - nuvoton: add NCT3015Y-R and NCT3018Y-R support
         - rv8803: proper suspend/resume and wakeup-source support"
      
      * tag 'rtc-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (26 commits)
        rtc: nuvoton: Compatible with NCT3015Y-R and NCT3018Y-R
        rtc: da9063: Use dev_err_probe()
        rtc: da9063: Use device_get_match_data()
        rtc: da9063: Make IRQ as optional
        rtc: max31335: Fix comparison in max31335_volatile_reg()
        rtc: max31335: use regmap_update_bits_check
        rtc: max31335: remove unecessary locking
        rtc: max31335: add driver support
        dt-bindings: rtc: max31335: add max31335 bindings
        rtc: rv8803: add wakeup-source support
        rtc: ac100: remove misuses of kernel-doc
        rtc: class: Remove usage of the deprecated ida_simple_xx() API
        rtc: MAINTAINERS: drop Alessandro Zummo
        rtc: ma35d1: remove hardcoded UIE support
        dt-bindings: rtc: qcom-pm8xxx: fix inconsistent example
        rtc: rv8803: Add power management support
        rtc: ds3232: avoid unused-const-variable warning
        rtc: lpc24xx: add missing dependency
        rtc: tps6594: Add driver for TPS6594 RTC
        rtc: Add driver for Nuvoton ma35d1 rtc controller
        ...
      378de6df
    • Linus Torvalds's avatar
      Merge tag 'input-for-v6.8-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 0f289bdd
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
      
       - a new driver for Adafruit Seesaw gamepad device
      
       - Zforce touchscreen will handle standard device properties for axis
         swap/inversion
      
       - handling of advanced sensitivity settings in Microchip CAP11xx
         capacitive sensor driver
      
       - more drivers have been converted to use newer gpiod API
      
       - support for dedicated wakeup IRQs in gpio-keys dirver
      
       - support for slider gestures and OTP variants in iqs269a driver
      
       - atkbd will report keyboard version as 0xab83 in cases when GET ID
         command was skipped (to deal with problematic firmware on newer
         laptops), restoring the previous behavior
      
       - other assorted cleanups and changes
      
      * tag 'input-for-v6.8-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (44 commits)
        Input: atkbd - use ab83 as id when skipping the getid command
        Input: driver for Adafruit Seesaw Gamepad
        dt-bindings: input: bindings for Adafruit Seesaw Gamepad
        Input: da9063_onkey - avoid explicitly setting input's parent
        Input: da9063_onkey - avoid using OF-specific APIs
        Input: iqs269a - add support for OTP variants
        dt-bindings: input: iqs269a: Add bindings for OTP variants
        Input: iqs269a - add support for slider gestures
        dt-bindings: input: iqs269a: Add bindings for slider gestures
        Input: gpio-keys - filter gpio_keys -EPROBE_DEFER error messages
        Input: zforce_ts - accept standard touchscreen properties
        dt-bindings: touchscreen: neonode,zforce: Use standard properties
        dt-bindings: touchscreen: convert neonode,zforce to json-schema
        dt-bindings: input: convert drv266x to json-schema
        Input: da9063 - use dev_err_probe()
        Input: da9063 - drop redundant prints in probe()
        Input: da9063 - simplify obtaining OF match data
        Input: as5011 - convert to GPIO descriptor
        Input: omap-keypad - drop optional GPIO support
        Input: tca6416-keypad - drop unused include
        ...
      0f289bdd
    • Linus Torvalds's avatar
      Merge tag 'phy-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · 33a9caa4
      Linus Torvalds authored
      Pull phy updates from Vinod Koul:
       "New Support:
      
         - Qualcomm SM8650 UFS, PCIe and USB/DP Combo PHY, eUSB2 PHY, SDX75
           USB3, X1E80100 USB3 support
      
         - Mediatek MT8195 support
      
         - Rockchip RK3128 usb2 support
      
         - TI SGMII mode for J784S4
      
        Updates:
      
         - Qualcomm v7 register offsets updates
      
         - Mediatek tphy support for force phy mode switch"
      
      * tag 'phy-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy: (34 commits)
        phy: ti: j721e-wiz: Add SGMII support in WIZ driver for J784S4
        phy: ti: gmii-sel: Enable SGMII mode for J784S4
        phy: qcom-qmp-usb: Add Qualcomm X1E80100 USB3 PHY support
        dt-bindings: phy: qcom,sc8280xp-qmp-usb3-uni: Add X1E80100 USB PHY binding
        phy: qcom-qmp-combo: Add x1e80100 USB/DP combo phys
        dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Document X1E80100 compatible
        dt-bindings: phy: qcom: snps-eusb2: Document the X1E80100 compatible
        phy: mediatek: tphy: add support force phy mode switch
        dt-bindings: phy: mediatek: tphy: add a property for force-mode switch
        phy: phy-can-transceiver: insert space after include
        phy: qualcomm: phy-qcom-qmp-ufs: Rectify SM8550 UFS HS-G4 PHY Settings
        dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: fix path to header
        phy: renesas: phy-rcar-gen2: use select for GENERIC_PHY
        phy: qcom-qmp: qserdes-txrx: Add v7 register offsets
        phy: qcom-qmp: qserdes-txrx: Add V6 N4 register offsets
        phy: qcom-qmp: qserdes-com: Add v7 register offsets
        phy: qcom-qmp: pcs-usb: Add v7 register offsets
        phy: qcom-qmp: pcs: Add v7 register offsets
        phy: qcom-qmp: qserdes-txrx: Add some more v6.20 register offsets
        phy: qcom-qmp: qserdes-com: Add some more v6 register offsets
        ...
      33a9caa4
    • Linus Torvalds's avatar
      Merge tag 'soundwire-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire · 4d5d604c
      Linus Torvalds authored
      Pull soundwire updates from Vinod Koul:
      
       - Core: add concept of controller_id to deal with clear Controller /
         Manager hierarchy
      
       - bunch of qcom driver refactoring for qcom_swrm_stream_alloc_ports(),
         qcom_swrm_stream_alloc_ports() and setting controller id to hw master
         id
      
      * tag 'soundwire-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
        soundwire: amd: drop bus freq calculation and set 'max_clk_freq'
        soundwire: generic_bandwidth_allocation use bus->params.max_dr_freq
        soundwire: qcom: set controller id to hw master id
        soundwire: fix initializing sysfs for same devices on different buses
        soundwire: bus: introduce controller_id
        soundwire: stream: constify sdw_port_config when adding devices
        soundwire: qcom: move sconfig in qcom_swrm_stream_alloc_ports() out of critical section
        soundwire: qcom: drop unneeded qcom_swrm_stream_alloc_ports() cleanup
      4d5d604c
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 34551358
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
       "Apart from some regular driver fixes there's a relatively big revert
        of the locking changes that were introduced to GPIOLIB in this merge
        window.
      
        This is because it turned out that some legacy GPIO interfaces - that
        need to translate a number from the global GPIO numberspace to the
        address of the relevant descriptor, thus running a GPIO device lookup
        and taking the GPIO device list lock - are still used in old code from
        atomic context resulting in "scheduling while atomic" errors.
      
        I'll try to make the read-only part of the list access entirely
        lockless using SRCU but this will take some time so let's go back to
        the old global spinlock for now.
      
        Summary:
      
         - revert the changes aiming to use a read-write semaphore to protect
           the list of GPIO devices due to calls to legacy API taking that
           lock from atomic context in old code
      
         - fix inverted logic in DEFINE_FREE() for GPIO device references
      
         - check the return value of bgpio_init() in gpio-mlxbf3
      
         - fix node address in the DT bindings example for gpio-xilinx
      
         - fix signedness bug in gpio-rtd
      
         - fix kernel-doc warnings in gpio-en7523"
      
      * tag 'gpio-fixes-for-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpiolib: revert the attempt to protect the GPIO device list with an rwsem
        gpio: EN7523: fix kernel-doc warnings
        gpiolib: Fix scope-based gpio_device refcounting
        gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe
        dt-bindings: gpio: xilinx: Fix node address in gpio
        gpio: rtd: Fix signedness bug in probe
      34551358
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-6.8-2' of gitolite.kernel.org:pub/scm/linux/kernel/git/ukleinek/linux · 5c935069
      Linus Torvalds authored
      Pull pwm fixes from Uwe Kleine-König:
      
       - fix a duplicate cleanup in an error path introduced in
         this merge window
      
       - fix an out-of-bounds access
      
         In practise it doesn't happen - otherwise someone would have noticed
         since v5.17-rc1 I guess - because the device tree binding for the two
         drivers using of_pwm_single_xlate() only have args->args_count == 1.
      
         A device-tree that doesn't conform to the respective bindings could
         trigger that easily however.
      
       - correct the request callback of the jz4740 pwm driver which used
         dev_err_probe() long after .probe() completed.
      
         This is conceptually wrong because dev_err_probe() might call
         device_set_deferred_probe_reason() which is nonsensical after the
         driver is bound.
      
      * tag 'pwm/for-6.8-2' of gitolite.kernel.org:pub/scm/linux/kernel/git/ukleinek/linux:
        pwm: jz4740: Don't use dev_err_probe() in .request()
        pwm: Fix out-of-bounds access in of_pwm_single_xlate()
        pwm: bcm2835: Remove duplicate call to clk_rate_exclusive_put()
      5c935069
    • Linus Torvalds's avatar
      Merge tag 'backlight-next-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight · 21c91bb9
      Linus Torvalds authored
      Pull backlight updates from Lee Jones:
       "New Drivers:
         - Add support for Monolithic Power Systems MP3309C WLED Step-up Converter
      
        Fix-ups:
         - Use/convert to new/better APIs/helpers/MACROs instead of
           hand-rolling implementations
         - Device Tree Binding updates
         - Demote non-kerneldoc header comments
         - Improve error handling; return proper error values, simplify, avoid
           duplicates, etc
         - Convert over to the new (kinda) GPIOD API
      
        Bug Fixes:
         - Fix uninitialised local variable"
      
      * tag 'backlight-next-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
        backlight: hx8357: Convert to agnostic GPIO API
        backlight: ili922x: Add an error code check in ili922x_write()
        backlight: ili922x: Drop kernel-doc for local macros
        backlight: mp3309c: Fix uninitialized local variable
        backlight: pwm_bl: Use dev_err_probe
        backlight: mp3309c: Add support for MPS MP3309C
        dt-bindings: backlight: mp3309c: Remove two required properties
      21c91bb9
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-6.8-2024-01-18' of git://git.infradead.org/users/hch/dma-mapping · 17e232b6
      Linus Torvalds authored
      Pull dma-mapping fixes from Christoph Hellwig:
      
       - fix kerneldoc warnings (Randy Dunlap)
      
       - better bounds checking in swiotlb (ZhangPeng)
      
      * tag 'dma-mapping-6.8-2024-01-18' of git://git.infradead.org/users/hch/dma-mapping:
        dma-debug: fix kernel-doc warnings
        swiotlb: check alloc_size before the allocation of a new memory pool
      17e232b6
    • Linus Torvalds's avatar
      Merge tag 'memblock-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · 77c9622d
      Linus Torvalds authored
      Pull memblock update from Mike Rapoport:
       "Code readability improvement.
      
        Use NUMA_NO_NODE instead of -1 as return value of
        memblock_search_pfn_nid() to improve code readability
        and consistency with the callers of that function"
      
      * tag 'memblock-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock: Return NUMA_NO_NODE instead of -1 to improve code readability
      77c9622d
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 0b7359cc
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
      
       - vdpa/mlx5: support for resumable vqs
      
       - virtio_scsi: mq_poll support
      
       - 3virtio_pmem: support SHMEM_REGION
      
       - virtio_balloon: stay awake while adjusting balloon
      
       - virtio: support for no-reset virtio PCI PM
      
       - Fixes, cleanups
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vdpa/mlx5: Add mkey leak detection
        vdpa/mlx5: Introduce reference counting to mrs
        vdpa/mlx5: Use vq suspend/resume during .set_map
        vdpa/mlx5: Mark vq state for modification in hw vq
        vdpa/mlx5: Mark vq addrs for modification in hw vq
        vdpa/mlx5: Introduce per vq and device resume
        vdpa/mlx5: Allow modifying multiple vq fields in one modify command
        vdpa/mlx5: Expose resumable vq capability
        vdpa: Block vq property changes in DRIVER_OK
        vdpa: Track device suspended state
        scsi: virtio_scsi: Add mq_poll support
        virtio_pmem: support feature SHMEM_REGION
        virtio_balloon: stay awake while adjusting balloon
        vdpa: Remove usage of the deprecated ida_simple_xx() API
        virtio: Add support for no-reset virtio PCI PM
        virtio_net: fix missing dma unmap for resize
        vhost-vdpa: account iommu allocations
        vdpa: Fix an error handling path in eni_vdpa_probe()
      0b7359cc
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.8-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging · da3c45c7
      Linus Torvalds authored
      Pull hwmonfix from Guenter Roeck:
       "Fix crash seen when instantiating npcm750-pwm-fan"
      
      * tag 'hwmon-for-v6.8-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (npcm750-pwm-fan) Fix crash observed when instantiating nuvoton,npcm750-pwm-fan
      da3c45c7
    • Linus Torvalds's avatar
      Merge tag 'cxl-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · db5ccb9e
      Linus Torvalds authored
      Pull CXL (Compute Express Link) updates from Dan Williams:
       "The bulk of this update is support for enumerating the performance
        capabilities of CXL memory targets and connecting that to a platform
        CXL memory QoS class. Some follow-on work remains to hook up this data
        into core-mm policy, but that is saved for v6.9.
      
        The next significant update is unifying how CXL event records (things
        like background scrub errors) are processed between so called
        "firmware first" and native error record retrieval. The CXL driver
        handler that processes the record retrieved from the device mailbox is
        now the handler for that same record format coming from an EFI/ACPI
        notification source.
      
        This also contains miscellaneous feature updates, like Get Timestamp,
        and other fixups.
      
        Summary:
      
         - Add support for parsing the Coherent Device Attribute Table (CDAT)
      
         - Add support for calculating a platform CXL QoS class from CDAT data
      
         - Unify the tracing of EFI CXL Events with native CXL Events.
      
         - Add Get Timestamp support
      
         - Miscellaneous cleanups and fixups"
      
      * tag 'cxl-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl: (41 commits)
        cxl/core: use sysfs_emit() for attr's _show()
        cxl/pci: Register for and process CPER events
        PCI: Introduce cleanup helpers for device reference counts and locks
        acpi/ghes: Process CXL Component Events
        cxl/events: Create a CXL event union
        cxl/events: Separate UUID from event structures
        cxl/events: Remove passing a UUID to known event traces
        cxl/events: Create common event UUID defines
        cxl/events: Promote CXL event structures to a core header
        cxl: Refactor to use __free() for cxl_root allocation in cxl_endpoint_port_probe()
        cxl: Refactor to use __free() for cxl_root allocation in cxl_find_nvdimm_bridge()
        cxl: Fix device reference leak in cxl_port_perf_data_calculate()
        cxl: Convert find_cxl_root() to return a 'struct cxl_root *'
        cxl: Introduce put_cxl_root() helper
        cxl/port: Fix missing target list lock
        cxl/port: Fix decoder initialization when nr_targets > interleave_ways
        cxl/region: fix x9 interleave typo
        cxl/trace: Pass UUID explicitly to event traces
        cxl/region: use %pap format to print resource_size_t
        cxl/region: Add dev_dbg() detail on failure to allocate HPA space
        ...
      db5ccb9e
  3. 18 Jan, 2024 22 commits
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.8-rc1' of https://github.com/awilliam/linux-vfio · 244aefb1
      Linus Torvalds authored
      Pull VFIO updates from Alex Williamson:
      
       - Add debugfs support, initially used for reporting device migration
         state (Longfang Liu)
      
       - Fixes and support for migration dirty tracking across multiple IOVA
         regions in the pds-vfio-pci driver (Brett Creeley)
      
       - Improved IOMMU allocation accounting visibility (Pasha Tatashin)
      
       - Virtio infrastructure and a new virtio-vfio-pci variant driver, which
         provides emulation of a legacy virtio interfaces on modern virtio
         hardware for virtio-net VF devices where the PF driver exposes
         support for legacy admin queues, ie. an emulated IO BAR on an SR-IOV
         VF to provide driver ABI compatibility to legacy devices (Yishai
         Hadas & Feng Liu)
      
       - Migration fixes for the hisi-acc-vfio-pci variant driver (Shameer
         Kolothum)
      
       - Kconfig dependency fix for new virtio-vfio-pci variant driver (Arnd
         Bergmann)
      
      * tag 'vfio-v6.8-rc1' of https://github.com/awilliam/linux-vfio: (22 commits)
        vfio/virtio: fix virtio-pci dependency
        hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume
        vfio/virtio: Declare virtiovf_pci_aer_reset_done() static
        vfio/virtio: Introduce a vfio driver over virtio devices
        vfio/pci: Expose vfio_pci_core_iowrite/read##size()
        vfio/pci: Expose vfio_pci_core_setup_barmap()
        virtio-pci: Introduce APIs to execute legacy IO admin commands
        virtio-pci: Initialize the supported admin commands
        virtio-pci: Introduce admin commands
        virtio-pci: Introduce admin command sending function
        virtio-pci: Introduce admin virtqueue
        virtio: Define feature bit for administration virtqueue
        vfio/type1: account iommu allocations
        vfio/pds: Add multi-region support
        vfio/pds: Move seq/ack bitmaps into region struct
        vfio/pds: Pass region info to relevant functions
        vfio/pds: Move and rename region specific info
        vfio/pds: Only use a single SGL for both seq and ack
        vfio/pds: Fix calculations in pds_vfio_dirty_sync
        MAINTAINERS: Add vfio debugfs interface doc link
        ...
      244aefb1
    • Linus Torvalds's avatar
      Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd · 86c4d58a
      Linus Torvalds authored
      Pull iommufd updates from Jason Gunthorpe:
       "This brings the first of three planned user IO page table invalidation
        operations:
      
         - IOMMU_HWPT_INVALIDATE allows invalidating the IOTLB integrated into
           the iommu itself. The Intel implementation will also generate an
           ATC invalidation to flush the device IOTLB as it unambiguously
           knows the device, but other HW will not.
      
        It goes along with the prior PR to implement userspace IO page tables
        (aka nested translation for VMs) to allow Intel to have full
        functionality for simple cases. An Intel implementation of the
        operation is provided.
      
        Also fix a small bug in the selftest mock iommu driver probe"
      
      * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd:
        iommufd/selftest: Check the bus type during probe
        iommu/vt-d: Add iotlb flush for nested domain
        iommufd: Add data structure for Intel VT-d stage-1 cache invalidation
        iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl
        iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test op
        iommufd/selftest: Add mock_domain_cache_invalidate_user support
        iommu: Add iommu_copy_struct_from_user_array helper
        iommufd: Add IOMMU_HWPT_INVALIDATE
        iommu: Add cache_invalidate_user op
      86c4d58a
    • Linus Torvalds's avatar
      Merge tag 'iommu-updates-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 0dde2bf6
      Linus Torvalds authored
      Pull iommu updates from Joerg Roedel:
       "Core changes:
         - Fix race conditions in device probe path
         - Retire IOMMU bus_ops
         - Support for passing custom allocators to page table drivers
         - Clean up Kconfig around IOMMU_SVA
         - Support for sharing SVA domains with all devices bound to a mm
         - Firmware data parsing cleanup
         - Tracing improvements for iommu-dma code
         - Some smaller fixes and cleanups
      
        ARM-SMMU drivers:
         - Device-tree binding updates:
            - Add additional compatible strings for Qualcomm SoCs
            - Document Adreno clocks for Qualcomm's SM8350 SoC
         - SMMUv2:
            - Implement support for the ->domain_alloc_paging() callback
            - Ensure Secure context is restored following suspend of Qualcomm
              SMMU implementation
         - SMMUv3:
            - Disable stalling mode for the "quiet" context descriptor
            - Minor refactoring and driver cleanups
      
        Intel VT-d driver:
         - Cleanup and refactoring
      
        AMD IOMMU driver:
         - Improve IO TLB invalidation logic
         - Small cleanups and improvements
      
        Rockchip IOMMU driver:
         - DT binding update to add Rockchip RK3588
      
        Apple DART driver:
         - Apple M1 USB4/Thunderbolt DART support
         - Cleanups
      
        Virtio IOMMU driver:
         - Add support for iotlb_sync_map
         - Enable deferred IO TLB flushes"
      
      * tag 'iommu-updates-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (66 commits)
        iommu: Don't reserve 0-length IOVA region
        iommu/vt-d: Move inline helpers to header files
        iommu/vt-d: Remove unused vcmd interfaces
        iommu/vt-d: Remove unused parameter of intel_pasid_setup_pass_through()
        iommu/vt-d: Refactor device_to_iommu() to retrieve iommu directly
        iommu/sva: Fix memory leak in iommu_sva_bind_device()
        dt-bindings: iommu: rockchip: Add Rockchip RK3588
        iommu/dma: Trace bounce buffer usage when mapping buffers
        iommu/arm-smmu: Convert to domain_alloc_paging()
        iommu/arm-smmu: Pass arm_smmu_domain to internal functions
        iommu/arm-smmu: Implement IOMMU_DOMAIN_BLOCKED
        iommu/arm-smmu: Convert to a global static identity domain
        iommu/arm-smmu: Reorganize arm_smmu_domain_add_master()
        iommu/arm-smmu-v3: Remove ARM_SMMU_DOMAIN_NESTED
        iommu/arm-smmu-v3: Master cannot be NULL in arm_smmu_write_strtab_ent()
        iommu/arm-smmu-v3: Add a type for the STE
        iommu/arm-smmu-v3: disable stall for quiet_cd
        iommu/qcom: restore IOMMU state if needed
        iommu/arm-smmu-qcom: Add QCM2290 MDSS compatible
        iommu/arm-smmu-qcom: Add missing GMU entry to match table
        ...
      0dde2bf6
    • Linus Torvalds's avatar
      Merge tag 'percpu-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu · e7ded275
      Linus Torvalds authored
      Pull percpu updates from Dennis Zhou:
       "Enable percpu page allocator for RISC-V.
      
        There are RISC-V configurations with sparse NUMA configurations and
        small vmalloc space causing dynamic percpu allocations to fail as the
        backing chunk stride is too far apart"
      
      * tag 'percpu-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu:
        riscv: Enable pcpu page first chunk allocator
        mm: Introduce flush_cache_vmap_early()
      e7ded275
    • Linus Torvalds's avatar
      Merge tag 'eventfs-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 24f3a63e
      Linus Torvalds authored
      Pull eventfs updates from Steven Rostedt:
      
       - Remove "lookup" parameter of create_dir_dentry() and
         create_file_dentry(). These functions were called by lookup and the
         readdir logic, where readdir needed it to up the ref count of the
         dentry but the lookup did not. A "lookup" parameter was passed in to
         tell it what to do, but this complicated the code. It is better to
         just always up the ref count and require the caller to decrement it,
         even for lookup.
      
       - Modify the .iterate_shared callback to not use the dcache_readdir()
         logic and just handle what gets displayed by that one function. This
         removes the need for eventfs to hijack the file->private_data from
         the dcache_readdir() "cursor" pointer, and makes the code a bit more
         sane
      
       - Use the root and instance inodes for default ownership. Instead of
         walking the dentry tree and updating each dentry gid, use the
         getattr(), setattr() and permission() callbacks to set the ownership
         and permissions using the root or instance as the default
      
       - Some other optimizations with the eventfs iterate_shared logic
      
       - Hard-code the inodes for eventfs to the same number for files, and
         the same number for directories
      
       - Have getdent() not create dentries/inodes in iterate_shared() as now
         it has hard-coded inode numbers
      
       - Use kcalloc() instead of kzalloc() on a list of elements
      
       - Fix seq_buf warning and make static work properly.
      
      * tag 'eventfs-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        seq_buf: Make DECLARE_SEQ_BUF() usable
        eventfs: Use kcalloc() instead of kzalloc()
        eventfs: Do not create dentries nor inodes in iterate_shared
        eventfs: Have the inodes all for files and directories all be the same
        eventfs: Shortcut eventfs_iterate() by skipping entries already read
        eventfs: Read ei->entries before ei->children in eventfs_iterate()
        eventfs: Do ctx->pos update for all iterations in eventfs_iterate()
        eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set
        tracefs/eventfs: Use root and instance inodes as default ownership
        eventfs: Stop using dcache_readdir() for getdents()
        eventfs: Remove "lookup" parameter from create_dir/file_dentry()
      24f3a63e
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · a2ded784
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
      
       - Allow kernel trace instance creation to specify what events are
         created
      
         Inside the kernel, a subsystem may create a tracing instance that it
         can use to send events to user space. This sub-system may not care
         about the thousands of events that exist in eventfs. Allow the
         sub-system to specify what sub-systems of events it cares about, and
         only those events are exposed to this instance.
      
       - Allow the ring buffer to be broken up into bigger sub-buffers than
         just the architecture page size.
      
         A new tracefs file called "buffer_subbuf_size_kb" is created. The
         user can now specify a minimum size the sub-buffer may be in
         kilobytes. Note, that the implementation currently make the
         sub-buffer size a power of 2 pages (1, 2, 4, 8, 16, ...) but the user
         only writes in kilobyte size, and the sub-buffer will be updated to
         the next size that it will can accommodate it. If the user writes in
         10, it will change the size to be 4 pages on x86 (16K), as that is
         the next available size that can hold 10K pages.
      
       - Update the debug output when a corrupt time is detected in the ring
         buffer. If the ring buffer detects inconsistent timestamps, there's a
         debug config options that will dump the contents of the meta data of
         the sub-buffer that is used for debugging. Add some more information
         to this dump that helps with debugging.
      
       - Add more timestamp debugging checks (only triggers when the config is
         enabled)
      
       - Increase the trace_seq iterator to 2 page sizes.
      
       - Allow strings written into tracefs_marker to be larger. Up to just
         under 2 page sizes (based on what trace_seq can hold).
      
       - Increase the trace_maker_raw write to be as big as a sub-buffer can
         hold.
      
       - Remove 32 bit time stamp logic, now that the rb_time_cmpxchg() has
         been removed.
      
       - More selftests were added.
      
       - Some code clean ups as well.
      
      * tag 'trace-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: (29 commits)
        ring-buffer: Remove stale comment from ring_buffer_size()
        tracing histograms: Simplify parse_actions() function
        tracing/selftests: Remove exec permissions from trace_marker.tc test
        ring-buffer: Use subbuf_order for buffer page masking
        tracing: Update subbuffer with kilobytes not page order
        ringbuffer/selftest: Add basic selftest to test changing subbuf order
        ring-buffer: Add documentation on the buffer_subbuf_order file
        ring-buffer: Just update the subbuffers when changing their allocation order
        ring-buffer: Keep the same size when updating the order
        tracing: Stop the tracing while changing the ring buffer subbuf size
        tracing: Update snapshot order along with main buffer order
        ring-buffer: Make sure the spare sub buffer used for reads has same size
        ring-buffer: Do no swap cpu buffers if order is different
        ring-buffer: Clear pages on error in ring_buffer_subbuf_order_set() failure
        ring-buffer: Read and write to ring buffers with custom sub buffer size
        ring-buffer: Set new size of the ring buffer sub page
        ring-buffer: Add interface for configuring trace sub buffer size
        ring-buffer: Page size per ring buffer
        ring-buffer: Have ring_buffer_print_page_header() be able to access ring_buffer_iter
        ring-buffer: Check if absolute timestamp goes backwards
        ...
      a2ded784
    • Linus Torvalds's avatar
      Merge tag 'probes-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 5b890ad4
      Linus Torvalds authored
      Pull probes update from Masami Hiramatsu:
      
       - Update the Kprobes trace event to show the actual function name in
         notrace-symbol warning.
      
         Instead of using the user specified symbol name, use "%ps" printk
         format to show the actual symbol at the probe address. Since kprobe
         event accepts the offset from symbol which is bigger than the symbol
         size, the user specified symbol may not be the actual probed symbol.
      
      * tag 'probes-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        trace/kprobe: Display the actual notrace function when rejecting a probe
      5b890ad4
    • Linus Torvalds's avatar
      Merge tag 's390-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 302d1858
      Linus Torvalds authored
      Pull more s390 updates from Alexander Gordeev:
      
       - do not enable by default the support of 31-bit Enterprise Systems
         Architecture (ESA) ELF binaries
      
       - drop automatic CONFIG_KEXEC selection, while set CONFIG_KEXEC=y
         explicitly for defconfig and debug_defconfig only
      
       - fix zpci_get_max_io_size() to allow PCI block stores where normal PCI
         stores were used otherwise
      
       - remove unneeded tsk variable in do_exception() fault handler
      
       - __load_fpu_regs() is only called from the core kernel code.
         Therefore, remove not needed EXPORT_SYMBOL.
      
       - remove leftover comment from s390_fpregs_set() callback
      
       - few cleanups to Processor Activity Instrumentation (PAI) code (which
         perf framework is based on)
      
       - replace Wenjia Zhang with Thorsten Winkler as s390 Inter-User
         Communication Vehicle (IUCV) networking maintainer
      
       - Fix all scenarios where queues previously removed from a guest's
         Adjunct-Processor (AP) configuration do not re-appear in a reset
         state when they are subsequently made available to a guest again
      
      * tag 's390-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/vfio-ap: do not reset queue removed from host config
        s390/vfio-ap: reset queues associated with adapter for queue unbound from driver
        s390/vfio-ap: reset queues filtered from the guest's AP config
        s390/vfio-ap: let on_scan_complete() callback filter matrix and update guest's APCB
        s390/vfio-ap: loop over the shadow APCB when filtering guest's AP configuration
        s390/vfio-ap: always filter entire AP matrix
        s390/net: add Thorsten Winkler as maintainer
        s390/pai_ext: split function paiext_push_sample
        s390/pai_ext: rework function paiext_copy argments
        s390/pai: rework paiXXX_start and paiXXX_stop functions
        s390/pai_crypto: split function paicrypt_push_sample
        s390/pai: rework paixxxx_getctr interface
        s390/ptrace: remove leftover comment
        s390/fpu: remove __load_fpu_regs() export
        s390/mm,fault: remove not needed tsk variable
        s390/pci: fix max size calculation in zpci_memcpy_toio()
        s390/kexec: do not automatically select KEXEC option
        s390/compat: change default for CONFIG_COMPAT to "n"
      302d1858
    • Linus Torvalds's avatar
      Merge tag 'x86_tdx_for_6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b4442cad
      Linus Torvalds authored
      Pull x86 TDX updates from Dave Hansen:
       "This contains the initial support for host-side TDX support so that
        KVM can run TDX-protected guests. This does not include the actual
        KVM-side support which will come from the KVM folks. The TDX host
        interactions with kexec also needs to be ironed out before this is
        ready for prime time, so this code is currently Kconfig'd off when
        kexec is on.
      
        The majority of the code here is the kernel telling the TDX module
        which memory to protect and handing some additional memory over to it
        to use to store TDX module metadata. That sounds pretty simple, but
        the TDX architecture is rather flexible and it takes quite a bit of
        back-and-forth to say, "just protect all memory, please."
      
        There is also some code tacked on near the end of the series to handle
        a hardware erratum. The erratum can make software bugs such as a
        kernel write to TDX-protected memory cause a machine check and
        masquerade as a real hardware failure. The erratum handling watches
        out for these and tries to provide nicer user errors"
      
      * tag 'x86_tdx_for_6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (21 commits)
        x86/virt/tdx: Make TDX host depend on X86_MCE
        x86/virt/tdx: Disable TDX host support when kexec is enabled
        Documentation/x86: Add documentation for TDX host support
        x86/mce: Differentiate real hardware #MCs from TDX erratum ones
        x86/cpu: Detect TDX partial write machine check erratum
        x86/virt/tdx: Handle TDX interaction with sleep and hibernation
        x86/virt/tdx: Initialize all TDMRs
        x86/virt/tdx: Configure global KeyID on all packages
        x86/virt/tdx: Configure TDX module with the TDMRs and global KeyID
        x86/virt/tdx: Designate reserved areas for all TDMRs
        x86/virt/tdx: Allocate and set up PAMTs for TDMRs
        x86/virt/tdx: Fill out TDMRs to cover all TDX memory regions
        x86/virt/tdx: Add placeholder to construct TDMRs to cover all TDX memory regions
        x86/virt/tdx: Get module global metadata for module initialization
        x86/virt/tdx: Use all system memory when initializing TDX module as TDX memory
        x86/virt/tdx: Add skeleton to enable TDX on demand
        x86/virt/tdx: Add SEAMCALL error printing for module initialization
        x86/virt/tdx: Handle SEAMCALL no entropy error in common code
        x86/virt/tdx: Make INTEL_TDX_HOST depend on X86_X2APIC
        x86/virt/tdx: Define TDX supported page sizes as macros
        ...
      b4442cad
    • Linus Torvalds's avatar
      Merge tag 'x86_sgx_for_6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ba7dd857
      Linus Torvalds authored
      Pull x86 SGX updates from Dave Hansen:
       "This time, these are entirely confined to SGX selftests fixes.
      
        The mini SGX enclave built by the selftests has garnered some
        attention because it stands alone and does not need the sizable
        infrastructure of the official SGX SDK. I think that's why folks are
        suddently interested in cleaning it up.
      
         - Clean up selftest compilation issues, mostly from non-gcc compilers
      
         - Avoid building selftests when not on x86"
      
      * tag 'x86_sgx_for_6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        selftests/sgx: Skip non X86_64 platform
        selftests/sgx: Remove incomplete ABI sanitization code in test enclave
        selftests/sgx: Discard unsupported ELF sections
        selftests/sgx: Ensure expected location of test enclave buffer
        selftests/sgx: Ensure test enclave buffer is entirely preserved
        selftests/sgx: Fix linker script asserts
        selftests/sgx: Handle relocations in test enclave
        selftests/sgx: Produce static-pie executable for test enclave
        selftests/sgx: Remove redundant enclave base address save/restore
        selftests/sgx: Specify freestanding environment for enclave compilation
        selftests/sgx: Separate linker options
        selftests/sgx: Include memory clobber for inline asm in test enclave
        selftests/sgx: Fix uninitialized pointer dereferences in encl_get_entry
        selftests/sgx: Fix uninitialized pointer dereference in error path
      ba7dd857
    • Jakub Kicinski's avatar
      Merge tag 'nf-24-01-18' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf · 925781a4
      Jakub Kicinski authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter fixes for net
      
      The following batch contains Netfilter fixes for net. Slightly larger
      than usual because this batch includes several patches to tighten the
      nf_tables control plane to reject inconsistent configuration:
      
      1) Restrict NFTA_SET_POLICY to NFT_SET_POL_PERFORMANCE and
         NFT_SET_POL_MEMORY.
      
      2) Bail out if a nf_tables expression registers more than 16 netlink
         attributes which is what struct nft_expr_info allows.
      
      3) Bail out if NFT_EXPR_STATEFUL provides no .clone interface, remove
         existing fallback to memcpy() when cloning which might accidentally
         duplicate memory reference to the same object.
      
      4) Fix br_netfilter interaction with neighbour layer. This requires
         three preparation patches:
      
         - Use nf_bridge_get_physinif() in nfnetlink_log
         - Use nf_bridge_info_exists() to check in br_netfilter context
           is available in nf_queue.
         - Pass net to nf_bridge_get_physindev()
      
         And finally, the fix which replaces physindev with physinif
         in nf_bridge_info.
      
         Patches from Pavel Tikhomirov.
      
      5) Catch-all deactivation happens in the transaction, hence this
         oneliner to check for the next generation. This bug uncovered after
         the removal of the _BUSY bit, which happened in set elements back in
         summer 2023.
      
      6) Ensure set (total) key length size and concat field length description
         is consistent, otherwise bail out.
      
      7) Skip set element with the _DEAD flag on from the netlink dump path.
         A tests occasionally shows that dump is mismatching because GC might
         lose race to get rid of this element while a netlink dump is in
         progress.
      
      8) Reject NFT_SET_CONCAT for field_count < 1.
      
      9) Use IP6_INC_STATS in ipvs to fix preemption BUG splat, patch
         from Fedor Pchelkin.
      
      * tag 'nf-24-01-18' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf:
        ipvs: avoid stat macros calls from preemptible context
        netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
        netfilter: nf_tables: skip dead set elements in netlink dump
        netfilter: nf_tables: do not allow mismatch field size and set key length
        netfilter: nf_tables: check if catch-all set element is active in next generation
        netfilter: bridge: replace physindev with physinif in nf_bridge_info
        netfilter: propagate net to nf_bridge_get_physindev
        netfilter: nf_queue: remove excess nf_bridge variable
        netfilter: nfnetlink_log: use proper helper for fetching physinif
        netfilter: nft_limit: do not ignore unsupported flags
        netfilter: nf_tables: bail out if stateful expression provides no .clone
        netfilter: nf_tables: validate .maxattr at expression registration
        netfilter: nf_tables: reject invalid set policy
      ====================
      
      Link: https://lore.kernel.org/r/20240118161726.14838-1-pablo@netfilter.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      925781a4
    • Wolfram Sang's avatar
      MAINTAINERS: use proper email for my I2C work · 4503538d
      Wolfram Sang authored
      Renesas is solely funding my I2C maintenance meanwhile, give them credit
      for that by using this email address.
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      4503538d
    • Alain Volmat's avatar
      i2c: stm32f7: add support for stm32mp25 soc · 90f9b140
      Alain Volmat authored
      The stm32mp25 has only a single interrupt line used for both
      events and errors. In order to cope with that, reorganise the
      error handling code so that it can be called either from the
      common handler (used in case of SoC having only a single IT line)
      and the error handler for others.
      The CR1 register also embeds a new FMP bit, necessary when running
      at Fast Mode Plus frequency. This bit should be used instead of
      the SYSCFG bit used on other platforms.
      Add a new compatible to distinguish between the SoCs and two
      boolean within the setup structure in order to know if the
      platform has a single/multiple IT lines and if the FMP bit
      within CR1 is available or not.
      Signed-off-by: default avatarValentin Caron <valentin.caron@foss.st.com>
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      90f9b140
    • Alain Volmat's avatar
      i2c: stm32f7: perform I2C_ISR read once at beginning of event isr · a058b24c
      Alain Volmat authored
      Move readl_relaxed of I2C_ISR register at beginning of event isr
      so that it done once for both master & slave handling.
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      a058b24c
    • Alain Volmat's avatar
      dt-bindings: i2c: document st,stm32mp25-i2c compatible · bf12998e
      Alain Volmat authored
      Add a new compatible st,stm32mp25-i2c for the STM32MP25 series which
      has only one interrupt line for both events and errors and differs in
      term of handling of FastModePlus.
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      bf12998e
    • Alain Volmat's avatar
      i2c: stm32f7: simplify status messages in case of errors · 33a00d91
      Alain Volmat authored
      Avoid usage of __func__ when reporting an error message
      since dev_err/dev_dbg are already providing enough details
      to identify the source of the message.
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      33a00d91
    • Alain Volmat's avatar
      i2c: stm32f7: perform most of irq job in threaded handler · e6103cd4
      Alain Volmat authored
      The irq handling is currently split between the irq handler
      and the threaded irq handler.  Some of the handling (such as
      dma related stuffs) done within the irq handler might sleep or
      take some time leading to issues if the kernel is built with
      realtime constraints.  In order to fix that, perform an overall
      rework to perform most of the job within the threaded handler
      and only keep fifo access in the non threaded handler.
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      e6103cd4
    • Alain Volmat's avatar
      i2c: stm32f7: use dev_err_probe upon calls of devm_request_irq · a51e224c
      Alain Volmat authored
      Convert error handling upon calls of devm_request_irq functions during
      the probe of the driver.
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      a51e224c
    • Paul Menzel's avatar
      i2c: i801: Add lis3lv02d for Dell XPS 15 7590 · 2f189493
      Paul Menzel authored
      On the Dell XPS 15 7590/0VYV0G, BIOS 1.24.0 09/11/2023, Linux prints the
      warning below.
      
          i801_smbus 0000:00:1f.4: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration
      
      Following the same suggestions by Wolfram Sang as for the Dell Precision
      3540 [1], the accelerometer can be successfully found on I2C bus 2 at
      address 0x29.
      
          $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-2/new_device
          lis3lv02d 0x29
          $ dmesg | tail -5
          [  549.522876] lis3lv02d_i2c 2-0029: supply Vdd not found, using dummy regulator
          [  549.522904] lis3lv02d_i2c 2-0029: supply Vdd_IO not found, using dummy regulator
          [  549.542486] lis3lv02d: 8 bits 3DC sensor found
          [  549.630022] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input35
          [  549.630586] i2c i2c-2: new_device: Instantiated device lis3lv02d at 0x29
      
      So, the device has that accelerometer. Add the I2C address to the
      mapping list, and test it successfully on the device.
      
      [1]: https://lore.kernel.org/linux-i2c/97708c11-ac85-fb62-2c8e-d37739ca826f@molgen.mpg.de/Signed-off-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Acked-by: default avatarPali Rohár <pali@kernel.org>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      2f189493
    • Paul Menzel's avatar
      i2c: i801: Add lis3lv02d for Dell Precision 3540 · 6d945046
      Paul Menzel authored
      On the Dell Precision 3540/0M14W7, BIOS 1.7.4 05/12/2020, Linux prints
      the warning below.
      
          i801_smbus 0000:00:1f.4: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration
      
      With the help of Wolfram Sang, the test to probe it on I2C bus 6 at address
      0x29 was successful.
      
          $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-6/new_device
          [ 2110.787000] i2c i2c-6: new_device: Instantiated device lis3lv02d at 0x29
          [ 2110.791932] lis3lv02d_i2c 6-0029: supply Vdd not found, using dummy regulator
          [ 2110.791981] lis3lv02d_i2c 6-0029: supply Vdd_IO not found, using dummy regulator
          [ 2110.809233] lis3lv02d: 8 bits 3DC sensor found
          [ 2110.900668] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input23
      
      So, the device has that accelerometer. Add the I2C address to the
      mapping list.
      
      Link: https://lore.kernel.org/linux-i2c/97708c11-ac85-fb62-2c8e-d37739ca826f@molgen.mpg.de/Signed-off-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Acked-by: default avatarPali Rohár <pali@kernel.org>
      Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
      [wsa: shortened commit message a little]
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      6d945046
    • Hans Hu's avatar
      i2c: wmt: Reduce redundant: REG_CR setting · bb7c0209
      Hans Hu authored
      These Settings for the same register, REG_CR,
      can be put together to reduce code redundancy.
      Signed-off-by: default avatarHans Hu <hanshu-oc@zhaoxin.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      bb7c0209
    • Hans Hu's avatar
      i2c: wmt: Reduce redundant: function parameter · 4c541c6a
      Hans Hu authored
      Use more appropriate parameter passing to reduce the amount of code
      Signed-off-by: default avatarHans Hu <hanshu-oc@zhaoxin.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      4c541c6a