Skip to content
  1. Jan 25, 2022
    • Christophe JAILLET's avatar
      scsi: 3w-sas: Remove useless DMA-32 fallback configuration · fb8d5ea8
      Christophe JAILLET authored
      As stated in [1], dma_set_mask() with a 64-bit mask never fails if
      dev->dma_mask is non-NULL. So, if it fails, the 32-bit case will also fail
      for the same reason.
      
      Simplify code and remove some dead code accordingly.
      
      [1]: https://lore.kernel.org/linux-kernel/YL3vSPK5DXTNvgdx@infradead.org/#t
      
      Link: https://lore.kernel.org/r/dbbe8671ca760972d80f8d35f3170b4609bee368.1642236763.git.christophe.jaillet@wanadoo.fr
      
      
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      fb8d5ea8
    • John Meneghini's avatar
      scsi: bnx2fc: Flush destroy_work queue before calling bnx2fc_interface_put() · 847f9ea4
      John Meneghini authored
      The bnx2fc_destroy() functions are removing the interface before calling
      destroy_work. This results multiple WARNings from sysfs_remove_group() as
      the controller rport device attributes are removed too early.
      
      Replace the fcoe_port's destroy_work queue. It's not needed.
      
      The problem is easily reproducible with the following steps.
      
      Example:
      
        $ dmesg -w &
        $ systemctl enable --now fcoe
        $ fipvlan -s -c ens2f1
        $ fcoeadm -d ens2f1.802
        [  583.464488] host2: libfc: Link down on port (7500a1)
        [  583.472651] bnx2fc: 7500a1 - rport not created Yet!!
        [  583.490468] ------------[ cut here ]------------
        [  583.538725] sysfs group 'power' not found for kobject 'rport-2:0-0'
        [  583.568814] WARNING: CPU: 3 PID: 192 at fs/sysfs/group.c:279 sysfs_remove_group+0x6f/0x80
        [  583.607130] Modules linked in: dm_service_time 8021q garp mrp stp llc bnx2fc cnic uio rpcsec_gss_krb5 auth_rpcgss nfsv4 ...
        [  583.942994] CPU: 3 PID: 192 Comm: kworker/3:2 Kdump: loaded Not tainted 5.14.0-39.el9.x86_64 #1
        [  583.984105] Hardware name: HP ProLiant DL120 G7, BIOS J01 07/01/2013
        [  584.016535] Workqueue: fc_wq_2 fc_rport_final_delete [scsi_transport_fc]
        [  584.050691] RIP: 0010:sysfs_remove_group+0x6f/0x80
        [  584.074725] Code: ff 5b 48 89 ef 5d 41 5c e9 ee c0 ff ff 48 89 ef e8 f6 b8 ff ff eb d1 49 8b 14 24 48 8b 33 48 c7 c7 ...
        [  584.162586] RSP: 0018:ffffb567c15afdc0 EFLAGS: 00010282
        [  584.188225] RAX: 0000000000000000 RBX: ffffffff8eec4220 RCX: 0000000000000000
        [  584.221053] RDX: ffff8c1586ce84c0 RSI: ffff8c1586cd7cc0 RDI: ffff8c1586cd7cc0
        [  584.255089] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffb567c15afc00
        [  584.287954] R10: ffffb567c15afbf8 R11: ffffffff8fbe7f28 R12: ffff8c1486326400
        [  584.322356] R13: ffff8c1486326480 R14: ffff8c1483a4a000 R15: 0000000000000004
        [  584.355379] FS:  0000000000000000(0000) GS:ffff8c1586cc0000(0000) knlGS:0000000000000000
        [  584.394419] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
        [  584.421123] CR2: 00007fe95a6f7840 CR3: 0000000107674002 CR4: 00000000000606e0
        [  584.454888] Call Trace:
        [  584.466108]  device_del+0xb2/0x3e0
        [  584.481701]  device_unregister+0x13/0x60
        [  584.501306]  bsg_unregister_queue+0x5b/0x80
        [  584.522029]  bsg_remove_queue+0x1c/0x40
        [  584.541884]  fc_rport_final_delete+0xf3/0x1d0 [scsi_transport_fc]
        [  584.573823]  process_one_work+0x1e3/0x3b0
        [  584.592396]  worker_thread+0x50/0x3b0
        [  584.609256]  ? rescuer_thread+0x370/0x370
        [  584.628877]  kthread+0x149/0x170
        [  584.643673]  ? set_kthread_struct+0x40/0x40
        [  584.662909]  ret_from_fork+0x22/0x30
        [  584.680002] ---[ end trace 53575ecefa942ece ]---
      
      Link: https://lore.kernel.org/r/20220115040044.1013475-1-jmeneghi@redhat.com
      Fixes: 0cbf32e1
      
       ("[SCSI] bnx2fc: Avoid calling bnx2fc_if_destroy with unnecessary locks")
      Tested-by: default avatarGuangwu Zhang <guazhang@redhat.com>
      Co-developed-by: default avatarMaurizio Lombardi <mlombard@redhat.com>
      Signed-off-by: default avatarMaurizio Lombardi <mlombard@redhat.com>
      Signed-off-by: default avatarJohn Meneghini <jmeneghi@redhat.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      847f9ea4
    • Steffen Maier's avatar
      scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices · 8c9db667
      Steffen Maier authored
      Suppose we have an environment with a number of non-NPIV FCP devices
      (virtual HBAs / FCP devices / zfcp "adapter"s) sharing the same physical
      FCP channel (HBA port) and its I_T nexus. Plus a number of storage target
      ports zoned to such shared channel. Now one target port logs out of the
      fabric causing an RSCN. Zfcp reacts with an ADISC ELS and subsequent port
      recovery depending on the ADISC result. This happens on all such FCP
      devices (in different Linux images) concurrently as they all receive a copy
      of this RSCN. In the following we look at one of those FCP devices.
      
      Requests other than FSF_QTCB_FCP_CMND can be slow until they get a
      response.
      
      Depending on which requests are affected by slow responses, there are
      different recovery outcomes. Here we want to fix failed recoveries on port
      or adapter level by avoiding recovery requests that can be slow.
      
      We need the cached N_Port_ID for the remote port "link" test with ADISC.
      Just before sending the ADISC, we now intentionally forget the old cached
      N_Port_ID. The idea is that on receiving an RSCN for a port, we have to
      assume that any cached information about this port is stale.  This forces a
      fresh new GID_PN [FC-GS] nameserver lookup on any subsequent recovery for
      the same port. Since we typically can still communicate with the nameserver
      efficiently, we now reach steady state quicker: Either the nameserver still
      does not know about the port so we stop recovery, or the nameserver already
      knows the port potentially with a new N_Port_ID and we can successfully and
      quickly perform open port recovery.  For the one case, where ADISC returns
      successfully, we re-initialize port->d_id because that case does not
      involve any port recovery.
      
      This also solves a problem if the storage WWPN quickly logs into the fabric
      again but with a different N_Port_ID. Such as on virtual WWPN takeover
      during target NPIV failover.
      [https://www.redbooks.ibm.com/abstracts/redp5477.html] In that case the
      RSCN from the storage FDISC was ignored by zfcp and we could not
      successfully recover the failover. On some later failback on the storage,
      we could have been lucky if the virtual WWPN got the same old N_Port_ID
      from the SAN switch as we still had cached.  Then the related RSCN
      triggered a successful port reopen recovery.  However, there is no
      guarantee to get the same N_Port_ID on NPIV FDISC.
      
      Even though NPIV-enabled FCP devices are not affected by this problem, this
      code change optimizes recovery time for gone remote ports as a side effect.
      The timely drop of cached N_Port_IDs prevents unnecessary slow open port
      attempts.
      
      While the problem might have been in code before v2.6.32 commit
      799b76d0 ("[SCSI] zfcp: Decouple gid_pn requests from erp") this fix
      depends on the gid_pn_work introduced with that commit, so we mark it as
      culprit to satisfy fix dependencies.
      
      Note: Point-to-point remote port is already handled separately and gets its
      N_Port_ID from the cached peer_d_id. So resetting port->d_id in general
      does not affect PtP.
      
      Link: https://lore.kernel.org/r/20220118165803.3667947-1-maier@linux.ibm.com
      Fixes: 799b76d0
      
       ("[SCSI] zfcp: Decouple gid_pn requests from erp")
      Cc: <stable@vger.kernel.org> #2.6.32+
      Suggested-by: default avatarBenjamin Block <bblock@linux.ibm.com>
      Reviewed-by: default avatarBenjamin Block <bblock@linux.ibm.com>
      Signed-off-by: default avatarSteffen Maier <maier@linux.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      8c9db667
    • John Garry's avatar
      scsi: pm8001: Fix bogus FW crash for maxcpus=1 · 62afb379
      John Garry authored
      According to the comment in check_fw_ready() we should not check the
      IOP1_READY field in register SCRATCH_PAD_1 for 8008 or 8009 controllers.
      
      However we check this very field in process_oq() for processing the highest
      index interrupt vector. The highest interrupt vector is checked as the FW
      is programmed to signal fatal errors through this irq.
      
      Change that function to not check IOP1_READY for those mentioned
      controllers, but do check ILA_READY in both cases.
      
      The reason I assume that this was not hit earlier was because we always
      allocated 64 MSI(X), and just did not pass the vector index check in
      process_oq(), i.e.  the handler never ran for vector index 63.
      
      Link: https://lore.kernel.org/r/1642508105-95432-1-git-send-email-john.garry@huawei.com
      
      
      Tested-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      62afb379
    • Saurav Kashyap's avatar
      scsi: qedf: Change context reset messages to ratelimited · 64fd4af6
      Saurav Kashyap authored
      If FCoE is not configured, libfc/libfcoe keeps on retrying FLOGI and after
      3 retries driver does a context reset and tries fipvlan again.  This leads
      to context reset message flooding the logs. Hence ratelimit the message to
      prevent flooding the logs.
      
      Link: https://lore.kernel.org/r/20220117135311.6256-4-njavali@marvell.com
      
      
      Signed-off-by: default avatarSaurav Kashyap <skashyap@marvell.com>
      Signed-off-by: default avatarNilesh Javali <njavali@marvell.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      64fd4af6
    • Saurav Kashyap's avatar
      scsi: qedf: Fix refcount issue when LOGO is received during TMF · 5239ab63
      Saurav Kashyap authored
      Hung task call trace was seen during LOGO processing.
      
      [  974.309060] [0000:00:00.0]:[qedf_eh_device_reset:868]: 1:0:2:0: LUN RESET Issued...
      [  974.309065] [0000:00:00.0]:[qedf_initiate_tmf:2422]: tm_flags 0x10 sc_cmd 00000000c16b930f op = 0x2a target_id = 0x2 lun=0
      [  974.309178] [0000:00:00.0]:[qedf_initiate_tmf:2431]: portid=016900 tm_flags =LUN RESET
      [  974.309222] [0000:00:00.0]:[qedf_initiate_tmf:2438]: orig io_req = 00000000ec78df8f xid = 0x180 ref_cnt = 1.
      [  974.309625] host1: rport 016900: Received LOGO request while in state Ready
      [  974.309627] host1: rport 016900: Delete port
      [  974.309642] host1: rport 016900: work event 3
      [  974.309644] host1: rport 016900: lld callback ev 3
      [  974.313243] [0000:61:00.2]:[qedf_execute_tmf:2383]:1: fcport is uploading, not executing flush.
      [  974.313295] [0000:61:00.2]:[qedf_execute_tmf:2400]:1: task mgmt command success...
      [  984.031088] INFO: task jbd2/dm-15-8:7645 blocked for more than 120 seconds.
      [  984.031136]       Not tainted 4.18.0-305.el8.x86_64 #1
      
      [  984.031166] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
      [  984.031209] jbd2/dm-15-8    D    0  7645      2 0x80004080
      [  984.031212] Call Trace:
      [  984.031222]  __schedule+0x2c4/0x700
      [  984.031230]  ? unfreeze_partials.isra.83+0x16e/0x1a0
      [  984.031233]  ? bit_wait_timeout+0x90/0x90
      [  984.031235]  schedule+0x38/0xa0
      [  984.031238]  io_schedule+0x12/0x40
      [  984.031240]  bit_wait_io+0xd/0x50
      [  984.031243]  __wait_on_bit+0x6c/0x80
      [  984.031248]  ? free_buffer_head+0x21/0x50
      [  984.031251]  out_of_line_wait_on_bit+0x91/0xb0
      [  984.031257]  ? init_wait_var_entry+0x50/0x50
      [  984.031268]  jbd2_journal_commit_transaction+0x112e/0x19f0 [jbd2]
      [  984.031280]  kjournald2+0xbd/0x270 [jbd2]
      [  984.031284]  ? finish_wait+0x80/0x80
      [  984.031291]  ? commit_timeout+0x10/0x10 [jbd2]
      [  984.031294]  kthread+0x116/0x130
      [  984.031300]  ? kthread_flush_work_fn+0x10/0x10
      [  984.031305]  ret_from_fork+0x1f/0x40
      
      There was a ref count issue when LOGO is received during TMF. This leads to
      one of the I/Os hanging with the driver. Fix the ref count.
      
      Link: https://lore.kernel.org/r/20220117135311.6256-3-njavali@marvell.com
      
      
      Signed-off-by: default avatarSaurav Kashyap <skashyap@marvell.com>
      Signed-off-by: default avatarNilesh Javali <njavali@marvell.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      5239ab63
    • Saurav Kashyap's avatar
      scsi: qedf: Add stag_work to all the vports · b70a99fd
      Saurav Kashyap authored
      Call trace seen when creating NPIV ports, only 32 out of 64 show online.
      stag work was not initialized for vport, hence initialize the stag work.
      
      WARNING: CPU: 8 PID: 645 at kernel/workqueue.c:1635 __queue_delayed_work+0x68/0x80
      CPU: 8 PID: 645 Comm: kworker/8:1 Kdump: loaded Tainted: G IOE    --------- --
       4.18.0-348.el8.x86_64 #1
      Hardware name: Dell Inc. PowerEdge MX740c/0177V9, BIOS 2.12.2 07/09/2021
      Workqueue: events fc_lport_timeout [libfc]
      RIP: 0010:__queue_delayed_work+0x68/0x80
      Code: 89 b2 88 00 00 00 44 89 82 90 00 00 00 48 01 c8 48 89 42 50 41 81
      f8 00 20 00 00 75 1d e9 60 24 07 00 44 89 c7 e9 98 f6 ff ff <0f> 0b eb
      c5 0f 0b eb a1 0f 0b eb a7 0f 0b eb ac 44 89 c6 e9 40 23
      RSP: 0018:ffffae514bc3be40 EFLAGS: 00010006
      RAX: ffff8d25d6143750 RBX: 0000000000000202 RCX: 0000000000000002
      RDX: ffff8d2e31383748 RSI: ffff8d25c000d600 RDI: ffff8d2e31383788
      RBP: ffff8d2e31380de0 R08: 0000000000002000 R09: ffff8d2e31383750
      R10: ffffffffc0c957e0 R11: ffff8d2624800000 R12: ffff8d2e31380a58
      R13: ffff8d2d915eb000 R14: ffff8d25c499b5c0 R15: ffff8d2e31380e18
      FS:  0000000000000000(0000) GS:ffff8d2d1fb00000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 000055fd0484b8b8 CR3: 00000008ffc10006 CR4: 00000000007706e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      PKRU: 55555554
      Call Trace:
        queue_delayed_work_on+0x36/0x40
        qedf_elsct_send+0x57/0x60 [qedf]
        fc_lport_enter_flogi+0x90/0xc0 [libfc]
        fc_lport_timeout+0xb7/0x140 [libfc]
        process_one_work+0x1a7/0x360
        ? create_worker+0x1a0/0x1a0
        worker_thread+0x30/0x390
        ? create_worker+0x1a0/0x1a0
        kthread+0x116/0x130
        ? kthread_flush_work_fn+0x10/0x10
        ret_from_fork+0x35/0x40
       ---[ end trace 008f00f722f2c2ff ]--
      
      Initialize stag work for all the vports.
      
      Link: https://lore.kernel.org/r/20220117135311.6256-2-njavali@marvell.com
      
      
      Signed-off-by: default avatarSaurav Kashyap <skashyap@marvell.com>
      Signed-off-by: default avatarNilesh Javali <njavali@marvell.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      b70a99fd
    • Xiaoke Wang's avatar
      scsi: ufs: ufshcd-pltfrm: Check the return value of devm_kstrdup() · a65b3274
      Xiaoke Wang authored
      devm_kstrdup() returns pointer to allocated string on success, NULL on
      failure. So it is better to check the return value of it.
      
      Link: https://lore.kernel.org/r/tencent_4257E15D4A94FF9020DDCC4BB9B21C041408@qq.com
      
      
      Reviewed-by: default avatarBean Huo <beanhuo@micron.com>
      Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      a65b3274
    • ZouMingzhe's avatar
      scsi: target: iscsi: Make sure the np under each tpg is unique · a861790a
      ZouMingzhe authored
      iscsit_tpg_check_network_portal() has nested for_each loops and is supposed
      to return true when a match is found. However, the tpg loop will still
      continue after existing the tpg_np loop. If this tpg_np is not the last the
      match value will be changed.
      
      Break the outer loop after finding a match and make sure the np under each
      tpg is unique.
      
      Link: https://lore.kernel.org/r/20220111054742.19582-1-mingzhe.zou@easystack.cn
      
      
      Signed-off-by: default avatarZouMingzhe <mingzhe.zou@easystack.cn>
      Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      a861790a
    • Yang Yingliang's avatar
      scsi: elx: efct: Don't use GFP_KERNEL under spin lock · 61263b3a
      Yang Yingliang authored
      GFP_KERNEL/GFP_DMA can't be used under a spin lock. According the comment,
      els_ios_lock is used to protect els ios list so we can move down the spin
      lock to avoid using this flag under the lock.
      
      Link: https://lore.kernel.org/r/20220111012441.3232527-1-yangyingliang@huawei.com
      Fixes: 8f406ef7
      
       ("scsi: elx: libefc: Extended link Service I/O handling")
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Reviewed-by: default avatarJames Smart <jsmart2021@gmail.com>
      Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      61263b3a
  2. Jan 23, 2022
    • Linus Torvalds's avatar
      Linux 5.17-rc1 · e783362e
      Linus Torvalds authored
      e783362e
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v5.17-2022-01-22' of... · 40c84321
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v5.17-2022-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull more perf tools updates from Arnaldo Carvalho de Melo:
      
       - Fix printing 'phys_addr' in 'perf script'.
      
       - Fix failure to add events with 'perf probe' in ppc64 due to not
         removing leading dot (ppc64 ABIv1).
      
       - Fix cpu_map__item() python binding building.
      
       - Support event alias in form foo-bar-baz, add pmu-events and
         parse-event tests for it.
      
       - No need to setup affinities when starting a workload or attaching to
         a pid.
      
       - Use path__join() to compose a path instead of ad-hoc snprintf()
         equivalent.
      
       - Override attr->sample_period for non-libpfm4 events.
      
       - Use libperf cpumap APIs instead of accessing the internal state
         directly.
      
       - Sync x86 arch prctl headers and files changed by the new
         set_mempolicy_home_node syscall with the kernel sources.
      
       - Remove duplicate include in cpumap.h.
      
       - Remove redundant err variable.
      
      * tag 'perf-tools-for-v5.17-2022-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf tools: Remove redundant err variable
        perf test: Add parse-events test for aliases with hyphens
        perf test: Add pmu-events test for aliases with hyphens
        perf parse-events: Support event alias in form foo-bar-baz
        perf evsel: Override attr->sample_period for non-libpfm4 events
        perf cpumap: Remove duplicate include in cpumap.h
        perf cpumap: Migrate to libperf cpumap api
        perf python: Fix cpu_map__item() building
        perf script: Fix printing 'phys_addr' failure issue
        tools headers UAPI: Sync files changed by new set_mempolicy_home_node syscall
        tools headers UAPI: Sync x86 arch prctl headers with the kernel sources
        perf machine: Use path__join() to compose a path instead of snprintf(dir, '/', filename)
        perf evlist: No need to setup affinities when disabling events for pid targets
        perf evlist: No need to setup affinities when enabling events for pid targets
        perf stat: No need to setup affinities when starting a workload
        perf affinity: Allow passing a NULL arg to affinity__cleanup()
        perf probe: Fix ppc64 'perf probe add events failed' case
      40c84321
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 67bfce0e
      Linus Torvalds authored
      Pull ftrace fix from Steven Rostedt:
       "Fix s390 breakage from sorting mcount tables.
      
        The latest merge of the tracing tree sorts the mcount table at build
        time. But s390 appears to do things differently (like always) and
        replaces the sorted table back to the original unsorted one. As the
        ftrace algorithm depends on it being sorted, bad things happen when it
        is not, and s390 experienced those bad things.
      
        Add a new config to tell the boot if the mcount table is sorted or
        not, and allow s390 to opt out of it"
      
      * tag 'trace-v5.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        ftrace: Fix assuming build time sort works for s390
      67bfce0e
    • Steven Rostedt (Google)'s avatar
      ftrace: Fix assuming build time sort works for s390 · 6b9b6413
      Steven Rostedt (Google) authored
      To speed up the boot process, as mcount_loc needs to be sorted for ftrace
      to work properly, sorting it at build time is more efficient than boot up
      and can save milliseconds of time. Unfortunately, this change broke s390
      as it will modify the mcount_loc location after the sorting takes place
      and will put back the unsorted locations. Since the sorting is skipped at
      boot up if it is believed that it was sorted at run time, ftrace can crash
      as its algorithms are dependent on the list being sorted.
      
      Add a new config BUILDTIME_MCOUNT_SORT that is set when
      BUILDTIME_TABLE_SORT but not if S390 is set. Use this config to determine
      if sorting should take place at boot up.
      
      Link: https://lore.kernel.org/all/yt9dee51ctfn.fsf@linux.ibm.com/
      
      Fixes: 72b3942a
      
       ("scripts: ftrace - move the sort-processing in ftrace_init")
      Reported-by: default avatarSven Schnelle <svens@linux.ibm.com>
      Tested-by: default avatarHeiko Carstens <hca@linux.ibm.com>
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      6b9b6413
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.17' of... · 473aec0e
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Bring include/uapi/linux/nfc.h into the UAPI compile-test coverage
      
       - Revert the workaround of CONFIG_CC_IMPLICIT_FALLTHROUGH
      
       - Fix build errors in certs/Makefile
      
      * tag 'kbuild-fixes-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty
        certs: Fix build error when CONFIG_MODULE_SIG_KEY is PKCS#11 URI
        Revert "Makefile: Do not quote value for CONFIG_CC_IMPLICIT_FALLTHROUGH"
        usr/include/Makefile: add linux/nfc.h to the compile-test coverage
      473aec0e
    • Linus Torvalds's avatar
      Merge tag 'bitmap-5.17-rc1' of git://github.com/norov/linux · 3689f9f8
      Linus Torvalds authored
      Pull bitmap updates from Yury Norov:
      
       - introduce for_each_set_bitrange()
      
       - use find_first_*_bit() instead of find_next_*_bit() where possible
      
       - unify for_each_bit() macros
      
      * tag 'bitmap-5.17-rc1' of git://github.com/norov/linux:
        vsprintf: rework bitmap_list_string
        lib: bitmap: add performance test for bitmap_print_to_pagebuf
        bitmap: unify find_bit operations
        mm/percpu: micro-optimize pcpu_is_populated()
        Replace for_each_*_bit_from() with for_each_*_bit() where appropriate
        find: micro-optimize for_each_{set,clear}_bit()
        include/linux: move for_each_bit() macros from bitops.h to find.h
        cpumask: replace cpumask_next_* with cpumask_first_* where appropriate
        tools: sync tools/bitmap with mother linux
        all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate
        cpumask: use find_first_and_bit()
        lib: add find_first_and_bit()
        arch: remove GENERIC_FIND_FIRST_BIT entirely
        include: move find.h from asm_...
      3689f9f8
    • Minghao Chi's avatar
      perf tools: Remove redundant err variable · f0ac5b85
      Minghao Chi authored
      
      
      Return value from perf_event__process_tracing_data() directly instead
      of taking this in another redundant variable.
      
      Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
      Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: http://lore.kernel.org/lkml/20220112080109.666800-1-chi.minghao@zte.com.cn
      
      
      Signed-off-by: default avatarCGEL ZTE <cgel.zte@gmail.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f0ac5b85
    • John Garry's avatar
      perf test: Add parse-events test for aliases with hyphens · b4a7276c
      John Garry authored
      
      
      Add a test which allows us to test parsing an event alias with hyphens.
      
      Since these events typically do not exist on most host systems, add the
      alias to the fake pmu.
      
      Function perf_pmu__test_parse_init() has terms added to match known test
      aliases.
      
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Qi Liu <liuqi115@huawei.com>
      Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
      Cc: linuxarm@huawei.com
      Link: https://lore.kernel.org/r/1642432215-234089-4-git-send-email-john.garry@huawei.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      b4a7276c
    • John Garry's avatar
      perf test: Add pmu-events test for aliases with hyphens · 34fa67e7
      John Garry authored
      
      
      Add a test for aliases with hyphens in the name to ensure that the
      pmu-events tables are as expects. There should be no reason why these sort
      of aliases would be treated differently, but no harm in checking.
      
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Qi Liu <liuqi115@huawei.com>
      Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
      Cc: linuxarm@huawei.com
      Link: https://lore.kernel.org/r/1642432215-234089-3-git-send-email-john.garry@huawei.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      34fa67e7
    • John Garry's avatar
      perf parse-events: Support event alias in form foo-bar-baz · 864bc8c9
      John Garry authored
      
      
      Event aliasing for events whose name in the form foo-bar-baz is not
      supported, while foo-bar, foo_bar_baz, and other combinations are, i.e.
      two hyphens are not supported.
      
      The HiSilicon D06 platform has events in such form:
      
        $ ./perf list sdir-home-migrate
      
        List of pre-defined events (to be used in -e):
      
        uncore hha:
          sdir-home-migrate
         [Unit: hisi_sccl,hha]
      
        $ sudo ./perf stat -e sdir-home-migrate
        event syntax error: 'sdir-home-migrate'
                                \___ parser error
        Run 'perf list' for a list of valid events
      
         Usage: perf stat [<options>] [<command>]
      
         -e, --event <event>event selector. use 'perf list' to list available events
      
      To support, add an extra PMU event symbol type for "baz", and add a new
      rule in the bison file.
      
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Qi Liu <liuqi115@huawei.com>
      Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
      Cc: linuxarm@huawei.com
      Link: https://lore.kernel.org/r/1642432215-234089-2-git-send-email-john.garry@huawei.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      864bc8c9
    • German Gomez's avatar
      perf evsel: Override attr->sample_period for non-libpfm4 events · 3606c0e1
      German Gomez authored
      A previous patch preventing "attr->sample_period" values from being
      overridden in pfm events changed a related behaviour in arm-spe.
      
      Before said patch:
      
        perf record -c 10000 -e arm_spe_0// -- sleep 1
      
      Would yield an SPE event with period=10000. After the patch, the period
      in "-c 10000" was being ignored because the arm-spe code initializes
      sample_period to a non-zero value.
      
      This patch restores the previous behaviour for non-libpfm4 events.
      
      Fixes: ae5dcc8a
      
       (“perf record: Prevent override of attr->sample_period for libpfm4 events”)
      Reported-by: default avatarChase Conklin <chase.conklin@arm.com>
      Signed-off-by: default avatarGerman Gomez <german.gomez@arm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: John Fastabend <john.fastabend@gmail.com>
      Cc: KP Singh <kpsingh@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Martin KaFai Lau <kafai@fb.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Song Liu <songliubraving@fb.com>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Yonghong Song <yhs@fb.com>
      Cc: bpf@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Link: http://lore.kernel.org/lkml/20220118144054.2541-1-german.gomez@arm.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      3606c0e1
    • Lv Ruyi's avatar
      perf cpumap: Remove duplicate include in cpumap.h · 24ead7c2
      Lv Ruyi authored
      
      
      Remove all but the first include of stdbool.h from cpumap.h.
      
      Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
      Signed-off-by: default avatarLv Ruyi <lv.ruyi@zte.com.cn>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/r/20220117083730.863200-1-lv.ruyi@zte.com.cn
      
      
      Signed-off-by: default avatarCGEL ZTE <cgel.zte@gmail.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      24ead7c2
    • Ian Rogers's avatar
      perf cpumap: Migrate to libperf cpumap api · 44028699
      Ian Rogers authored
      
      
      Switch from directly accessing the perf_cpu_map to using the appropriate
      libperf API when possible. Using the API simplifies the job of
      refactoring use of perf_cpu_map.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: André Almeida <andrealmeid@collabora.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Dmitriy Vyukov <dvyukov@google.com>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: German Gomez <german.gomez@arm.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Miaoqian Lin <linmq006@gmail.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Riccardo Mancini <rickyman7@gmail.com>
      Cc: Shunsuke Nakamura <nakamura.shun@fujitsu.com>
      Cc: Song Liu <song@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Stephen Brennan <stephen.s.brennan@oracle.com>
      Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Thomas Richter <tmricht@linux.ibm.com>
      Cc: Yury Norov <yury.norov@gmail.com>
      Link: http://lore.kernel.org/lkml/20220122045811.3402706-3-irogers@google.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      44028699
    • Ian Rogers's avatar
      perf python: Fix cpu_map__item() building · 1d1d9af2
      Ian Rogers authored
      Value should be built as an integer.
      
      Switch some uses of perf_cpu_map to use the library API.
      
      Fixes: 6d18804b
      
       ("perf cpumap: Give CPUs their own type")
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: André Almeida <andrealmeid@collabora.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Dmitriy Vyukov <dvyukov@google.com>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: German Gomez <german.gomez@arm.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Miaoqian Lin <linmq006@gmail.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Riccardo Mancini <rickyman7@gmail.com>
      Cc: Shunsuke Nakamura <nakamura.shun@fujitsu.com>
      Cc: Song Liu <song@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Stephen Brennan <stephen.s.brennan@oracle.com>
      Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Thomas Richter <tmricht@linux.ibm.com>
      Cc: Yury Norov <yury.norov@gmail.com>
      Link: http://lore.kernel.org/lkml/20220122045811.3402706-2-irogers@google.com
      
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      1d1d9af2
    • Yao Jin's avatar
      perf script: Fix printing 'phys_addr' failure issue · 9edcde68
      Yao Jin authored
      
      
      Perf script was failed to print the phys_addr for SPE profiling.
      One 'dummy' event is added by SPE profiling but it doesn't have PHYS_ADDR
      attribute set, perf script then exits with error.
      
      Now referring to 'addr', use evsel__do_check_stype() to check the type.
      
      Before:
      
        # perf record -e arm_spe_0/branch_filter=0,ts_enable=1,pa_enable=1,load_filter=1,jitter=0,\
      		store_filter=0,min_latency=0,event_filter=2/ -p 4064384 -- sleep 3
        # perf script -F pid,tid,addr,phys_addr
        Samples for 'dummy:u' event do not have PHYS_ADDR attribute set. Cannot print 'phys_addr' field.
      
      After:
      
        # perf record -e arm_spe_0/branch_filter=0,ts_enable=1,pa_enable=1,load_filter=1,jitter=0,\
      		store_filter=0,min_latency=0,event_filter=2/ -p 4064384 -- sleep 3
        # perf script -F pid,tid,addr,phys_addr
        4064384/4064384 ffff802f921be0d0      2f921be0d0
        4064384/4064384 ffff802f921be0d0      2f921be0d0
      
      Reviewed-by: default avatarGerman Gomez <german.gomez@arm.com>
      Signed-off-by: default avatarYao Jin <jinyao5@huawei.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Hanjun Guo <guohanjun@huawei.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20220121065954.2121900-1-liwei391@huawei.com
      
      
      Signed-off-by: default avatarWei Li <liwei391@huawei.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9edcde68
  3. Jan 22, 2022
    • Masahiro Yamada's avatar
      certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty · e6340b65
      Masahiro Yamada authored
      Since b8c96a6b ("certs: simplify $(srctree)/ handling and remove
      config_filename macro"), when CONFIG_MODULE_SIG_KEY is empty,
      signing_key.x509 fails to build:
      
          CERT    certs/signing_key.x509
        Usage: extract-cert <source> <dest>
        make[1]: *** [certs/Makefile:78: certs/signing_key.x509] Error 2
        make: *** [Makefile:1831: certs] Error 2
      
      Pass "" to the first argument of extract-cert to fix the build error.
      
      Link: https://lore.kernel.org/linux-kbuild/20220120094606.2skuyb26yjlnu66q@lion.mk-sys.cz/T/#u
      Fixes: b8c96a6b
      
       ("certs: simplify $(srctree)/ handling and remove config_filename macro")
      Reported-by: default avatarMichal Kubecek <mkubecek@suse.cz>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: default avatarMichal Kubecek <mkubecek@suse.cz>
      e6340b65
    • Masahiro Yamada's avatar
      certs: Fix build error when CONFIG_MODULE_SIG_KEY is PKCS#11 URI · ad29a2fb
      Masahiro Yamada authored
      When CONFIG_MODULE_SIG_KEY is PKCS#11 URL (pkcs11:*), signing_key.x509
      fails to build:
      
        certs/Makefile:77: *** target pattern contains no '%'.  Stop.
      
      Due to the typo, $(X509_DEP) contains a colon.
      
      Fix it.
      
      Fixes: b8c96a6b
      
       ("certs: simplify $(srctree)/ handling and remove config_filename macro")
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      ad29a2fb
    • Masahiro Yamada's avatar
      Revert "Makefile: Do not quote value for CONFIG_CC_IMPLICIT_FALLTHROUGH" · e92e2634
      Masahiro Yamada authored
      This reverts commit cd8c917a.
      
      Commit 129ab0d2
      
       ("kbuild: do not quote string values in
      include/config/auto.conf") provided the final solution.
      
      Now reverting the temporary workaround.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      e92e2634
    • Dmitry V. Levin's avatar
      usr/include/Makefile: add linux/nfc.h to the compile-test coverage · 10756dc5
      Dmitry V. Levin authored
      As linux/nfc.h userspace compilation was finally fixed by commits
      79b69a83 ("nfc: uapi: use kernel size_t to fix user-space builds")
      and 7175f02c
      
       ("uapi: fix linux/nfc.h userspace compilation errors"),
      there is no need to keep the compile-test exception for it in
      usr/include/Makefile.
      
      Signed-off-by: default avatarDmitry V. Levin <ldv@altlinux.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      10756dc5
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 1c522832
      Linus Torvalds authored
      Merge yet more updates from Andrew Morton:
       "This is the post-linux-next queue. Material which was based on or
        dependent upon material which was in -next.
      
        69 patches.
      
        Subsystems affected by this patch series: mm (migration and zsmalloc),
        sysctl, proc, and lib"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (69 commits)
        mm: hide the FRONTSWAP Kconfig symbol
        frontswap: remove support for multiple ops
        mm: mark swap_lock and swap_active_head static
        frontswap: simplify frontswap_register_ops
        frontswap: remove frontswap_test
        mm: simplify try_to_unuse
        frontswap: remove the frontswap exports
        frontswap: simplify frontswap_init
        frontswap: remove frontswap_curr_pages
        frontswap: remove frontswap_shrink
        frontswap: remove frontswap_tmem_exclusive_gets
        frontswap: remove frontswap_writethrough
        mm: remove cleancache
        lib/stackdepot: always do filter_irq_stacks() in stack_depot_save()
        lib/stackdepot: allow optional init and...
      1c522832
    • Linus Torvalds's avatar
      Merge tag '5.17-rc-part2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 8205ae32
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
      
       - multichannel fixes, addressing additional reconnect and DFS scenarios
      
       - reenabling fscache support (indexing rewrite, metadata caching e.g.)
      
       - send additional version information during NTLMSSP negotiate to
         improve debugging
      
       - fix for a mount race
      
       - DFS fixes
      
       - fix for a memory leak for stable
      
      * tag '5.17-rc-part2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: update internal module number
        smb3: send NTLMSSP version information
        cifs: Support fscache indexing rewrite
        cifs: cifs_ses_mark_for_reconnect should also update reconnect bits
        cifs: update tcpStatus during negotiate and sess setup
        cifs: make status checks in version independent callers
        cifs: remove repeated state change in dfs tree connect
        cifs: fix the cifs_reconnect path for DFS
        cifs: remove unused variable ses_selected
        cifs: protect all accesses to chan_* with chan_lock
        cifs: fix the connection state transitions with multichannel
        cifs: check reconnects for channels of active tcons too
        smb3: add new defines from protocol specification
        cifs: serialize all mount attempts
        cifs: quirk for STATUS_OBJECT_NAME_INVALID returned for non-ASCII dfs refs
        cifs: alloc_path_with_tree_prefix: do not append sep. if the path is empty
        cifs: clean up an inconsistent indenting
        cifs: free ntlmsspblob allocated in negotiate
      8205ae32
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.17-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 1cb69c80
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
       "One of the patches removes some dead code from xfs_ioctl32.h and the
        other fixes broken workqueue flushing in the inode garbage collector.
      
         - Minor cleanup of ioctl32 cruft
      
         - Clean up open coded inodegc workqueue function calls"
      
      * tag 'xfs-5.17-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: flush inodegc workqueue tasks before cancel
        xfs: remove unused xfs_ioctl32.h declarations
      1cb69c80
    • Linus Torvalds's avatar
      Merge tag 'fscache-fixes-20220121' of... · 7fd350f6
      Linus Torvalds authored
      Merge tag 'fscache-fixes-20220121' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
      
      Pull more fscache updates from David Howells:
       "A set of fixes and minor updates for the fscache rewrite:
      
         - Fix mishandling of volume collisions (the wait condition is
           inverted and so it was only waiting if the volume collision was
           already resolved).
      
         - Fix miscalculation of whether there's space available in
           cachefiles.
      
         - Make sure a default cache name is set on a cache if the user hasn't
           set one by the time they bind the cache.
      
         - Adjust the way the backing inode is presented in tracepoints, add a
           tracepoint for mkdir and trace directory lookup.
      
         - Add a tracepoint for failure to set the active file mark.
      
         - Add an explanation of the checks made on the backing filesystem.
      
         - Check that the backing filesystem supports tmpfile.
      
         - Document how the page-release cancellation of the read-skip
           optimisation works.
      
        And I've included a change for netfslib:
      
         - Make ops->init_rreq() optional"
      
      * tag 'fscache-fixes-20220121' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        netfs: Make ops->init_rreq() optional
        fscache: Add a comment explaining how page-release optimisation works
        cachefiles: Check that the backing filesystem supports tmpfiles
        cachefiles: Explain checks in a comment
        cachefiles: Trace active-mark failure
        cachefiles: Make some tracepoint adjustments
        cachefiles: set default tag name if it's unspecified
        cachefiles: Calculate the blockshift in terms of bytes, not pages
        fscache: Fix the volume collision wait condition
      7fd350f6
    • Linus Torvalds's avatar
      Merge tag 'folio-5.17a' of git://git.infradead.org/users/willy/pagecache · b68b10b6
      Linus Torvalds authored
      Pull more folio updates from Matthew Wilcox:
       "Three small folio patches.
      
        One bug fix, one patch pulled forward from the patches destined for
        5.18 and then a patch to make use of that functionality"
      
      * tag 'folio-5.17a' of git://git.infradead.org/users/willy/pagecache:
        filemap: Use folio_put_refs() in filemap_free_folio()
        mm: Add folio_put_refs()
        pagevec: Initialise folio_batch->percpu_pvec_drained
      b68b10b6
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 369af20a
      Linus Torvalds authored
      Pull more SCSI updates from James Bottomley:
       "This series is all the stragglers that didn't quite make the first
        merge window pull. It's mostly minor updates and bug fixes of merge
        window code"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: nsp_cs: Check of ioremap return value
        scsi: ufs: ufs-mediatek: Fix error checking in ufs_mtk_init_va09_pwr_ctrl()
        scsi: ufs: Modify Tactive time setting conditions
        scsi: efct: Remove useless DMA-32 fallback configuration
        scsi: message: fusion: mptctl: Use dma_alloc_coherent()
        scsi: message: fusion: mptsas: Use dma_alloc_coherent()
        scsi: message: fusion: Use dma_alloc_coherent() in mptsas_exp_repmanufacture_info()
        scsi: message: fusion: mptbase: Use dma_alloc_coherent()
        scsi: message: fusion: Use dma_alloc_coherent() in mpt_alloc_fw_memory()
        scsi: message: fusion: Remove usage of the deprecated "pci-dma-compat.h" API
        scsi: megaraid: Avoid mismatched storage type sizes
        scsi: hisi_sas: Remove unused variable and check in hisi_sas_send_ata_reset_each_phy()
        scsi: aic79xx: Remove redundant error variable
        scsi: pm80xx: Port reset timeout error handling correction
        scsi: mpi3mr: Fix formatting problems in some kernel-doc comments
        scsi: mpi3mr: Fix some spelling mistakes
        scsi: mpt3sas: Update persistent trigger pages from sysfs interface
        scsi: core: Fix scsi_mode_select() interface
        scsi: aacraid: Fix spelling of "its"
        scsi: qedf: Fix potential dereference of NULL pointer
      369af20a
    • Linus Torvalds's avatar
      Merge tag 'ata-5.17-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · b087788c
      Linus Torvalds authored
      Pull ATA fix from Damien Le Moal:
       "A single patch to fix a compilation error in the pata_octeon_cf driver
        (mips architecture), from me"
      
      * tag 'ata-5.17-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: pata_octeon_cf: fix call to trace_ata_bmdma_stop()
      b087788c
    • Linus Torvalds's avatar
      Merge tag 'thermal-5.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 6bdfb259
      Linus Torvalds authored
      Pull more thermal control updates from Rafael Wysocki:
       "Add device IDs for Raptor Lake to the int340x thermal control driver
        (Srinivas Pandruvada)"
      
      * tag 'thermal-5.17-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: int340x: Add Raptor Lake PCI device id
        thermal: int340x: Support Raptor Lake
      6bdfb259
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.17-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 71f1b916
      Linus Torvalds authored
      Pull extra ACPI updates from Rafael Wysocki:
       "These fix and clean up the ACPI CPPC driver on top of the recent
        changes in it merged previously and add some new device IDs to the
        ACPI DPTF driver.
      
        Specifics:
      
         - Fix a recently introduced endianness-related issue in the ACPI CPPC
           library and clean it up on top of that (Rafael Wysocki)
      
         - Add new device IDs for the Raptor Lake SoC to the ACPI DPTF driver
           (Srinivas Pandruvada)"
      
      * tag 'acpi-5.17-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: DPTF: Support Raptor Lake
        ACPI: CPPC: Drop redundant local variable from cpc_read()
        ACPI: CPPC: Fix up I/O port access in cpc_read()
      71f1b916
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 0809edba
      Linus Torvalds authored
      Pull devicetree fixes and cleanups from Rob Herring:
      
       - Fix a regression when probing a child device reusing the parent
         device's DT node pointer
      
       - Refactor of_parse_phandle*() variants to static inlines
      
       - Drop Enric Balletbo i Serra as a maintainer
      
       - Fix DT schemas with arrays incorrectly encoded as a matrix
      
       - Drop unneeded pinctrl properties from schemas
      
       - Add SPI peripheral schema to SPI based displays
      
       - Clean-up several schema examples
      
       - Clean-up trivial-devices.yaml comments
      
       - Add missing, in use vendor prefixes: Wingtech, Thundercomm, Huawei,
         F(x)tec, 8devices
      
      * tag 'devicetree-fixes-for-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: google,cros-ec: drop Enric Balletbo i Serra from maintainers
        dt-bindings: display: bridge: drop Enric Balletbo i Serra from maintainers
        of: Check 'of_node_reused' flag on of_match_device()
        of: property: define of_property_read_u{8,16,32,64}_array() unconditionally
        of: base: make small of_parse_phandle() variants static inline
        dt-bindings: mfd: cirrus,madera: Fix 'interrupts' in example
        dt-bindings: Fix array schemas encoded as matrices
        dt-bindings: Drop unnecessary pinctrl properties
        dt-bindings: rtc: st,stm32-rtc: Make each example a separate entry
        dt-bindings: mmc: arm,pl18x: Make each example a separate entry
        dt-bindings: display: Add SPI peripheral schema to SPI based displays
        scripts/dtc: dtx_diff: remove broken example from help text
        dt-bindings: trivial-devices: fix double spaces in comments
        dt-bindings: trivial-devices: fix swapped comments
        dt-bindings: vendor-prefixes: add Wingtech
        dt-bindings: vendor-prefixes: add Thundercomm
        dt-bindings: vendor-prefixes: add Huawei
        dt-bindings: vendor-prefixes: add F(x)tec
        dt-bindings: vendor-prefixes: add 8devices
        dt-bindings: power: reset: gpio-restart: Correct default priority
      0809edba
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 636b5284
      Linus Torvalds authored
      Pull more kvm updates from Paolo Bonzini:
       "Generic:
      
         - selftest compilation fix for non-x86
      
         - KVM: avoid warning on s390 in mark_page_dirty
      
       x86:
      
         - fix page write-protection bug and improve comments
      
         - use binary search to lookup the PMU event filter, add test
      
         - enable_pmu module parameter support for Intel CPUs
      
         - switch blocked_vcpu_on_cpu_lock to raw spinlock
      
         - cleanups of blocked vCPU logic
      
         - partially allow KVM_SET_CPUID{,2} after KVM_RUN (5.16 regression)
      
         - various small fixes"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (46 commits)
        docs: kvm: fix WARNINGs from api.rst
        selftests: kvm/x86: Fix the warning in lib/x86_64/processor.c
        selftests: kvm/x86: Fix the warning in pmu_event_filter_test.c
        kvm: selftests: Do not indent with spaces
        kvm: selftests: sync uapi/linux/kvm.h with Linux header
        selftests: kvm: add amx_test to .gitignore
        KVM: SVM: Nullify vcpu_(un)blocking() hooks if AVIC is disabled
        KVM: SVM: Move svm_hardware_setup() and its helpers below svm_x86_ops
        KVM: SVM: Drop AVIC's intermediate avic_set_running() helper
        KVM: VMX: Don't do full kick when handling posted interrupt wakeup
        KVM: VMX: Fold fallback path into triggering posted IRQ helper
        KVM: VMX: Pass desired vector instead of bool for triggering posted IRQ
        KVM: VMX: Don't do full kick when triggering posted interrupt "fails"
        KVM: SVM: Skip AVIC and IRTE updates when loading blocking vCPU
        KVM: SVM: Use kvm_vcpu_is_blocking() in AVIC load to handle preemption
        KVM: SVM: Remove unnecessary APICv/AVIC update in vCPU unblocking path
        KVM: SVM: Don't bother checking for "running" AVIC when kicking for IPIs
        KVM: SVM: Signal AVIC doorbell iff vCPU is in guest mode
        KVM: x86: Remove defunct pre_block/post_block kvm_x86_ops hooks
        KVM: x86: Unexport LAPIC's switch_to_{hv,sw}_timer() helpers
        ...
      636b5284