Linux 5.10.72
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.10.72 kernel.
All users of the 5.10 kernel series must upgrade.
The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/sparc/lib/iomap.c | 2 arch/x86/events/core.c | 1 arch/x86/kvm/svm/svm.c | 2 arch/x86/kvm/x86.c | 7 + drivers/ata/libata-core.c | 34 ++++- drivers/irqchip/irq-gic.c | 52 +++++++ drivers/misc/habanalabs/gaudi/gaudi_security.c | 115 +++++++++-------- drivers/net/phy/mdio_device.c | 11 + drivers/net/xen-netback/netback.c | 2 drivers/nvme/host/fc.c | 18 +- drivers/platform/x86/touchscreen_dmi.c | 54 +++++++ drivers/scsi/sd.c | 9 - drivers/scsi/ses.c | 22 ++- drivers/spi/spi-rockchip.c | 6 drivers/thermal/qcom/tsens.c | 4 drivers/usb/dwc2/hcd.c | 4 fs/btrfs/file-item.c | 13 + fs/btrfs/volumes.c | 13 + fs/cifs/smb2pdu.c | 4 fs/ext2/balloc.c | 14 -- fs/nfsd/nfs4state.c | 16 +- include/linux/libata.h | 1 include/linux/mdio.h | 3 tools/testing/selftests/kvm/steal_time.c | 4 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c | 3 tools/testing/selftests/lib.mk | 1 tools/usb/testusb.c | 14 +- tools/vm/page-types.c | 2 virt/kvm/kvm_main.c | 6 30 files changed, 339 insertions(+), 100 deletions(-)
Anand K Mistry (1):
perf/x86: Reset destroy callback on event init failure
Ansuel Smith (1):
thermal/drivers/tsens: Fix wrong check for tzd in irq handlers
Changbin Du (1):
tools/vm/page-types: remove dependency on opt_file for idle page tracking
Dai Ngo (1):
nfsd: back channel stuck in SEQ4_STATUS_CB_PATH_DOWN
Dan Carpenter (1):
ext2: fix sleeping in atomic bugs on error
Daniel Wagner (1):
nvme-fc: update hardware queues before using them
Faizel K B (1):
usb: testusb: Fix for showing the connection speed
Fares Mehanna (1):
kvm: x86: Add AMD PMU MSRs to msrs_to_save_all[]
Filipe Manana (1):
btrfs: fix mount failure due to past and transient device flush error
Greg Kroah-Hartman (1):
Linux 5.10.72
Hans de Goede (2):
platform/x86: touchscreen_dmi: Add info for the Chuwi HiBook (CWI514) tablet platform/x86: touchscreen_dmi: Update info for the Chuwi Hi10 Plus (CWI527) tablet
James Smart (1):
nvme-fc: avoid race between time out and tear down
Jan Beulich (1):
xen-netback: correct success/error reporting for the SKB-with-fraglist case
Kate Hsuan (1):
libata: Add ATA_HORKAGE_NO_NCQ_ON_ATI for Samsung 860 and 870 SSD.
Li Zhijian (1):
selftests: be sure to make khdr before other targets
Linus Torvalds (1):
sparc64: fix pci_iounmap() when CONFIG_PCI is not set
Marc Zyngier (1):
irqchip/gic: Work around broken Renesas integration
Maxim Levitsky (1):
KVM: x86: nSVM: restore int_vector in svm_clear_vintr
Ming Lei (1):
scsi: sd: Free scsi_disk device via put_device()
Oded Gabbay (1):
habanalabs/gaudi: fix LBW RR configuration
Oliver Upton (1):
selftests: KVM: Align SMCCC call with the spec in steal_time
Qu Wenruo (1):
btrfs: replace BUG_ON() in btrfs_csum_one_bio() with proper error handling
Sergey Senozhatsky (1):
KVM: do not shrink halt_poll_ns below grow_start
Shuah Khan (1):
selftests:kvm: fix get_warnings_count() ignoring fscanf() return warn
Steve French (1):
smb3: correct smb3 ACL security descriptor
Tobias Schramm (1):
spi: rockchip: handle zero length transfers without timing out
Vladimir Oltean (1):
net: mdio: introduce a shutdown method to mdio device drivers
Wen Xiong (1):
scsi: ses: Retry failed Send/Receive Diagnostic commands
Yang Yingliang (1):
usb: dwc2: check return value after calling platform_get_resource()
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 71 +SUBLEVEL = 72 EXTRAVERSION = NAME = Dare mighty things
arch/sparc/lib/iomap.c +2 -0
@@ -19,8 +19,10 @@ void ioport_unmap(void __iomem *addr)EXPORT_SYMBOL (ioport_map);EXPORT_SYMBOL (ioport_unmap); +#ifdef CONFIG_PCI void pci_iounmap (struct pci_dev *dev,void __iomem * addr) {/* nothing to do */ }EXPORT_SYMBOL (pci_iounmap); +#endif
arch/x86/events/core.c +1 -0
@@ -2284,6 +2284,7 @@ static int x86_pmu_event_init(struct perf_event *event)if (err) {if (event->destroy) event->destroy (event); + event->destroy =NULL ; } if (READ_ONCE(x86_pmu.attr_rdpmc) &&
arch/x86/kvm/svm/svm.c +2 -0
@@ -1497,6 +1497,8 @@ static void svm_clear_vintr(struct vcpu_svm *svm) (svm->nested.ctl.int_ctl & V_TPR_MASK)); svm->vmcb->control.int_ctl |= svm->nested.ctl.int_ctl &V_IRQ_INJECTION_BITS_MASK ; + + svm->vmcb->control.int_vector = svm->nested.ctl.int_vector; }vmcb_mark_dirty (svm->vmcb,VMCB_INTR );
arch/x86/kvm/x86.c +7 -0
@@ -1250,6 +1250,13 @@ static const u32 msrs_to_save_all[] = {MSR_ARCH_PERFMON_EVENTSEL0 +12 ,MSR_ARCH_PERFMON_EVENTSEL0 +13 ,MSR_ARCH_PERFMON_EVENTSEL0 +14 ,MSR_ARCH_PERFMON_EVENTSEL0 +15 ,MSR_ARCH_PERFMON_EVENTSEL0 +16 ,MSR_ARCH_PERFMON_EVENTSEL0 +17 , + +MSR_K7_EVNTSEL0 ,MSR_K7_EVNTSEL1 ,MSR_K7_EVNTSEL2 ,MSR_K7_EVNTSEL3 , +MSR_K7_PERFCTR0 ,MSR_K7_PERFCTR1 ,MSR_K7_PERFCTR2 ,MSR_K7_PERFCTR3 , +MSR_F15H_PERF_CTL0 ,MSR_F15H_PERF_CTL1 ,MSR_F15H_PERF_CTL2 , +MSR_F15H_PERF_CTL3 ,MSR_F15H_PERF_CTL4 ,MSR_F15H_PERF_CTL5 , +MSR_F15H_PERF_CTR0 ,MSR_F15H_PERF_CTR1 ,MSR_F15H_PERF_CTR2 , + MSR_F15H_PERF_CTR3, MSR_F15H_PERF_CTR4, MSR_F15H_PERF_CTR5, };static u32 msrs_to_save[ARRAY_SIZE (msrs_to_save_all)];
drivers/ata/libata-core.c +32 -2
@@ -2199,6 +2199,25 @@ static void ata_dev_config_ncq_prio(struct ata_device *dev) } +static bool ata_dev_check_adapter (struct ata_device *dev, +unsigned short vendor_id) +{ +struct pci_dev *pcidev =NULL ; +struct device *parent_dev =NULL ; + +for (parent_dev = dev->tdev.parent; parent_dev !=NULL ; + parent_dev = parent_dev->parent) { +if (dev_is_pci (parent_dev)) { + pcidev =to_pci_dev (parent_dev); +if (pcidev->vendor == vendor_id) +return true; +break ; + } + } + +return false; +} +static int ata_dev_config_ncq (struct ata_device *dev,char *desc,size_t desc_sz) {
@@ -2217,6 +2236,13 @@ static int ata_dev_config_ncq(struct ata_device *dev,snprintf (desc, desc_sz,"NCQ (not used)" );return 0 ; } + +if (dev->horkage &ATA_HORKAGE_NO_NCQ_ON_ATI && +ata_dev_check_adapter (dev,PCI_VENDOR_ID_ATI )) { +snprintf (desc, desc_sz,"NCQ (not used)" ); +return 0 ; + } +if (ap->flags &ATA_FLAG_NCQ ) { hdepth =min (ap->scsi_host->can_queue,ATA_MAX_QUEUE ); dev->flags |=ATA_DFLAG_NCQ ;
@@ -3951,9 +3977,11 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { {"Samsung SSD 850*" ,NULL ,ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, }, { "Samsung SSD 860*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | - ATA_HORKAGE_ZERO_AFTER_TRIM, }, +ATA_HORKAGE_ZERO_AFTER_TRIM | + ATA_HORKAGE_NO_NCQ_ON_ATI, }, { "Samsung SSD 870*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | - ATA_HORKAGE_ZERO_AFTER_TRIM, }, +ATA_HORKAGE_ZERO_AFTER_TRIM | + ATA_HORKAGE_NO_NCQ_ON_ATI, }, { "FCCT*M500*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | ATA_HORKAGE_ZERO_AFTER_TRIM, },
@@ -6108,6 +6136,8 @@ static int __init ata_parse_force_one(char **cur, { "ncq", .horkage_off = ATA_HORKAGE_NONCQ }, { "noncqtrim", .horkage_on = ATA_HORKAGE_NO_NCQ_TRIM }, { "ncqtrim", .horkage_off = ATA_HORKAGE_NO_NCQ_TRIM }, + { "noncqati", .horkage_on = ATA_HORKAGE_NO_NCQ_ON_ATI }, + { "ncqati", .horkage_off = ATA_HORKAGE_NO_NCQ_ON_ATI }, { "dump_id", .horkage_on = ATA_HORKAGE_DUMP_ID }, { "pio0", .xfer_mask = 1 << (ATA_SHIFT_PIO + 0) }, { "pio1", .xfer_mask = 1 << (ATA_SHIFT_PIO + 1) },
drivers/irqchip/irq-gic.c +51 -1
82 lines not on this page · raw message
drivers/misc/habanalabs/gaudi/gaudi_security.c +67 -48
280 lines not on this page · raw message
drivers/net/phy/mdio_device.c +11 -0
@@ -179,6 +179,16 @@ static int mdio_remove(struct device *dev)return 0 ; } +static void mdio_shutdown (struct device *dev) +{ +struct mdio_device *mdiodev =to_mdio_device (dev); +struct device_driver *drv = mdiodev->dev.driver; +struct mdio_driver *mdiodrv =to_mdio_driver (drv); + +if (mdiodrv->shutdown) + mdiodrv->shutdown (mdiodev); +} +/** * mdio_driver_register - register an mdio_driver with the MDIO layer * @drv: new mdio_driver to register
@@ -193,6 +203,7 @@ int mdio_driver_register(struct mdio_driver *drv) mdiodrv->driver.bus = &mdio_bus_type; mdiodrv->driver.probe = mdio_probe; mdiodrv->driver.remove = mdio_remove; + mdiodrv->driver.shutdown = mdio_shutdown; retval =driver_register (&mdiodrv->driver);if (retval) {
drivers/net/xen-netback/netback.c +1 -1
@@ -499,7 +499,7 @@ static int xenvif_tx_check_gop(struct xenvif_queue *queue,* the header's copy failed, and they are * sharing a slot, send an error */ -if (i ==0 && sharedslot) +if (i ==0 && !first_shinfo && sharedslot)xenvif_idx_release (queue, pending_idx,XEN_NETIF_RSP_ERROR );else
drivers/nvme/host/fc.c +10 -8
@@ -2486,6 +2486,7 @@ __nvme_fc_abort_outstanding_ios(struct nvme_fc_ctrl *ctrl, bool start_queues)*/ if (ctrl->ctrl.queue_count >1 ) {nvme_stop_queues (&ctrl->ctrl); +nvme_sync_io_queues (&ctrl->ctrl);blk_mq_tagset_busy_iter (&ctrl->tag_set, nvme_fc_terminate_exchange, &ctrl->ctrl);blk_mq_tagset_wait_completed_request (&ctrl->tag_set);
@@ -2509,6 +2510,7 @@ __nvme_fc_abort_outstanding_ios(struct nvme_fc_ctrl *ctrl, bool start_queues)* clean up the admin queue. Same thing as above. */ blk_mq_quiesce_queue (ctrl->ctrl.admin_q); +blk_sync_queue (ctrl->ctrl.admin_q);blk_mq_tagset_busy_iter (&ctrl->admin_tag_set, nvme_fc_terminate_exchange, &ctrl->ctrl);blk_mq_tagset_wait_completed_request (&ctrl->admin_tag_set);
@@ -2952,14 +2954,6 @@ nvme_fc_recreate_io_queues(struct nvme_fc_ctrl *ctrl)if (ctrl->ctrl.queue_count ==1 )return 0 ; - ret =nvme_fc_create_hw_io_queues (ctrl, ctrl->ctrl.sqsize +1 ); -if (ret) - goto out_free_io_queues; - - ret =nvme_fc_connect_io_queues (ctrl, ctrl->ctrl.sqsize +1 ); -if (ret) - goto out_delete_hw_queues; -if (prior_ioq_cnt != nr_io_queues) { dev_info(ctrl->ctrl.device, "reconnect: revising io queue count from %d to %d\n",
@@ -2969,6 +2963,14 @@ nvme_fc_recreate_io_queues(struct nvme_fc_ctrl *ctrl)nvme_unfreeze (&ctrl->ctrl); } + ret =nvme_fc_create_hw_io_queues (ctrl, ctrl->ctrl.sqsize +1 ); +if (ret) + goto out_free_io_queues; + + ret =nvme_fc_connect_io_queues (ctrl, ctrl->ctrl.sqsize +1 ); +if (ret) + goto out_delete_hw_queues; +return 0 ; out_delete_hw_queues:
drivers/platform/x86/touchscreen_dmi.c +50 -4
78 lines not on this page · raw message
drivers/scsi/sd.c +5 -4
@@ -3443,15 +3443,16 @@ static int sd_probe(struct device *dev) }device_initialize (&sdkp->dev); - sdkp->dev.parent = dev; + sdkp->dev.parent =get_device (dev); sdkp->dev.class = &sd_disk_class;dev_set_name (&sdkp->dev,"%s" ,dev_name (dev)); error =device_add (&sdkp->dev); -if (error) - goto out_free_index; +if (error) { +put_device (&sdkp->dev); + goto out; + } -get_device (dev);dev_set_drvdata (dev, sdkp); gd->major =sd_major ((index &0xf0 ) >>4 );
drivers/scsi/ses.c +18 -4
@@ -87,9 +87,16 @@ static int ses_recv_diag(struct scsi_device *sdev, int page_code, 0 };unsigned char recv_page_code; +unsigned int retries =SES_RETRIES ; +struct scsi_sense_hdr sshdr; + +do { + ret =scsi_execute_req (sdev, cmd,DMA_FROM_DEVICE , buf, bufflen, + &sshdr,SES_TIMEOUT ,1 ,NULL ); + }while (ret >0 && --retries &&scsi_sense_valid (&sshdr) && + (sshdr.sense_key ==NOT_READY || + (sshdr.sense_key ==UNIT_ATTENTION && sshdr.asc ==0x29 ))); - ret =scsi_execute_req (sdev, cmd,DMA_FROM_DEVICE , buf, bufflen, -NULL ,SES_TIMEOUT ,SES_RETRIES ,NULL );if (unlikely (ret))return ret;
@@ -121,9 +128,16 @@ static int ses_send_diag(struct scsi_device *sdev, int page_code, bufflen &0xff , 0 }; +struct scsi_sense_hdr sshdr; +unsigned int retries =SES_RETRIES ; + +do { + result =scsi_execute_req (sdev, cmd,DMA_TO_DEVICE , buf, bufflen, + &sshdr,SES_TIMEOUT ,1 ,NULL ); + }while (result >0 && --retries &&scsi_sense_valid (&sshdr) && + (sshdr.sense_key ==NOT_READY || + (sshdr.sense_key ==UNIT_ATTENTION && sshdr.asc ==0x29 ))); - result =scsi_execute_req (sdev, cmd,DMA_TO_DEVICE , buf, bufflen, -NULL ,SES_TIMEOUT ,SES_RETRIES ,NULL );if (result)sdev_printk (KERN_ERR , sdev,"SEND DIAGNOSTIC result: %8x\n" , result);
drivers/spi/spi-rockchip.c +6 -0
@@ -582,6 +582,12 @@ static int rockchip_spi_transfer_one(int ret;bool use_dma; +/* Zero length transfers won't trigger an interrupt on completion */ +if (!xfer->len) { +spi_finalize_current_transfer (ctlr); +return 1 ; + } +WARN_ON (readl_relaxed (rs->regs +ROCKCHIP_SPI_SSIENR ) && (readl_relaxed (rs->regs +ROCKCHIP_SPI_SR ) &SR_BUSY ));
drivers/thermal/qcom/tsens.c +2 -2
@@ -415,7 +415,7 @@ static irqreturn_t tsens_critical_irq_thread(int irq, void *data)const struct tsens_sensor *s = &priv->sensor[i];u32 hw_id = s->hw_id; -if (IS_ERR (s->tzd)) +if (!s->tzd)continue ;if (!tsens_threshold_violated (priv, hw_id, &d))continue ;
@@ -465,7 +465,7 @@ static irqreturn_t tsens_irq_thread(int irq, void *data)const struct tsens_sensor *s = &priv->sensor[i];u32 hw_id = s->hw_id; -if (IS_ERR (s->tzd)) +if (!s->tzd)continue ;if (!tsens_threshold_violated (priv, hw_id, &d))continue ;
drivers/usb/dwc2/hcd.c +4 -0
@@ -5074,6 +5074,10 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg) hcd->has_tt =1 ; res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); +if (!res) { + retval = -EINVAL ; + goto error1; + } hcd->rsrc_start = res->start; hcd->rsrc_len =resource_size (res);
fs/btrfs/file-item.c +12 -1
@@ -568,7 +568,18 @@ blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio,if (!ordered) { ordered =btrfs_lookup_ordered_extent (inode, offset); -BUG_ON (!ordered);/* Logic error */ +/* +* The bio range is not covered by any ordered extent, +* must be a code logic error. +*/ +if (unlikely (!ordered)) { +WARN (1 ,KERN_WARNING +"no ordered extent for root %llu ino %llu offset %llu\n" , + inode->root->root_key.objectid, +btrfs_ino (inode), offset); +kvfree (sums); +return BLK_STS_IOERR ; + } } nr_sectors = BTRFS_BYTES_TO_BLKS(fs_info,
fs/btrfs/volumes.c +13 -0
@@ -1147,6 +1147,19 @@ static void btrfs_close_one_device(struct btrfs_device *device)atomic_set (&device->dev_stats_ccnt,0 );extent_io_tree_release (&device->alloc_state); +/* +* Reset the flush error record. We might have a transient flush error +* in this mount, and if so we aborted the current transaction and set +* the fs to an error state, guaranteeing no super blocks can be further +* committed. However that error might be transient and if we unmount the +* filesystem and mount it again, we should allow the mount to succeed +* (btrfs_check_rw_degradable() should not fail) - if after mounting the +* filesystem again we still get flush errors, then we will again abort +* any transaction and set the error state, guaranteeing no commits of +* unsafe super blocks. +*/ + device->last_flush_error =0 ; +/* Verify the device is back in a pristine state */ ASSERT (!test_bit (BTRFS_DEV_STATE_FLUSH_SENT , &device->dev_state));ASSERT (!test_bit (BTRFS_DEV_STATE_REPLACE_TGT , &device->dev_state));
fs/cifs/smb2pdu.c +2 -2
@@ -2339,7 +2339,7 @@ create_sd_buf(umode_t mode, bool set_owner, unsigned int *len) buf->sd.OffsetDacl =cpu_to_le32 (ptr - (__u8 *)&buf->sd);/* Ship the ACL for now. we will copy it into buf later. */ aclptr = ptr; - ptr +=sizeof (struct cifs_acl ); + ptr +=sizeof (struct smb3_acl );/* create one ACE to hold the mode embedded in reserved special SID */ acelen =setup_special_mode_ACE ((struct cifs_ace *)ptr, (__u64 )mode);
@@ -2364,7 +2364,7 @@ create_sd_buf(umode_t mode, bool set_owner, unsigned int *len) acl.AclRevision =ACL_REVISION ;/* See 2.4.4.1 of MS-DTYP */ acl.AclSize =cpu_to_le16 (acl_size); acl.AceCount =cpu_to_le16 (ace_count); -memcpy (aclptr, &acl,sizeof (struct cifs_acl )); +memcpy (aclptr, &acl,sizeof (struct smb3_acl )); buf->ccontext.DataLength =cpu_to_le32 (ptr - (__u8 *)&buf->sd); *len =roundup (ptr - (__u8 *)buf,8 );
fs/ext2/balloc.c +6 -8
@@ -48,10 +48,9 @@ struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb,struct ext2_sb_info *sbi =EXT2_SB (sb);if (block_group >= sbi->s_groups_count) { -ext2_error (sb,"ext2_get_group_desc" , -"block_group >= groups_count - " -"block_group = %d, groups_count = %lu" , - block_group, sbi->s_groups_count); +WARN (1 ,"block_group >= groups_count - " +"block_group = %d, groups_count = %lu" , + block_group, sbi->s_groups_count);return NULL ; }
@@ -59,10 +58,9 @@ struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb, group_desc = block_group >>EXT2_DESC_PER_BLOCK_BITS (sb); offset = block_group & (EXT2_DESC_PER_BLOCK (sb) -1 );if (!sbi->s_group_desc[group_desc]) { -ext2_error (sb,"ext2_get_group_desc" , -"Group descriptor not loaded - " -"block_group = %d, group_desc = %lu, desc = %lu" , - block_group, group_desc, offset); +WARN (1 ,"Group descriptor not loaded - " +"block_group = %d, group_desc = %lu, desc = %lu" , + block_group, group_desc, offset);return NULL ; }
fs/nfsd/nfs4state.c +13 -3
@@ -3512,7 +3512,7 @@ static struct nfsd4_conn *__nfsd4_find_conn(struct svc_xprt *xpt, struct nfsd4_s }static __be32 nfsd4_match_existing_connection (struct svc_rqst *rqst, -struct nfsd4_session *session,u32 req) +struct nfsd4_session *session,u32 req,struct nfsd4_conn **conn) {struct nfs4_client *clp = session->se_client;struct svc_xprt *xpt = rqst->rq_xprt;
@@ -3535,6 +3535,8 @@ static __be32 nfsd4_match_existing_connection(struct svc_rqst *rqst,else status = nfserr_inval;spin_unlock (&clp->cl_lock); +if (status == nfs_ok && conn) + *conn = c;return status; }
@@ -3559,8 +3561,16 @@ __be32 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp, status = nfserr_wrong_cred;if (!nfsd4_mach_creds_match (session->se_client, rqstp)) goto out; - status =nfsd4_match_existing_connection (rqstp, session, bcts->dir); -if (status == nfs_ok || status == nfserr_inval) + status =nfsd4_match_existing_connection (rqstp, session, + bcts->dir, &conn); +if (status == nfs_ok) { +if (bcts->dir ==NFS4_CDFC4_FORE_OR_BOTH || + bcts->dir ==NFS4_CDFC4_BACK ) + conn->cn_flags |=NFS4_CDFC4_BACK ; +nfsd4_probe_callback (session->se_client); + goto out; + } +if (status == nfserr_inval) goto out; status =nfsd4_map_bcts_dir (&bcts->dir);if (status)
include/linux/libata.h +1 -0
@@ -422,6 +422,7 @@ enum {ATA_HORKAGE_NOTRIM = (1 <<24 ),/* don't use TRIM */ ATA_HORKAGE_MAX_SEC_1024 = (1 <<25 ),/* Limit max sects to 1024 */ ATA_HORKAGE_MAX_TRIM_128M = (1 <<26 ),/* Limit max trim size to 128M */ + ATA_HORKAGE_NO_NCQ_ON_ATI = (1 << 27), /* Disable NCQ on ATI chipset *//* DMA mask for user DMA control: User visible values; DO NOT renumber */
include/linux/mdio.h +3 -0
@@ -72,6 +72,9 @@ struct mdio_driver {/* Clears up any memory if needed */ void (*remove)(struct mdio_device *mdiodev); + +/* Quiesces the device on system shutdown, turns off interrupts etc */ +void (*shutdown)(struct mdio_device *mdiodev); };#define to_mdio_driver (d) \ container_of(to_mdio_common_driver(d), struct mdio_driver, mdiodrv)
tools/testing/selftests/kvm/steal_time.c +2 -2
@@ -120,12 +120,12 @@ struct st_time {uint64_t st_time; }; -static int64_t smccc (uint32_t func,uint32_t arg) +static int64_t smccc (uint32_t func,uint64_t arg) {unsigned long ret; asmvolatile ( -"mov x0, %1\n" +"mov w0, %w1\n" "mov x1, %2\n" "hvc #0\n" "mov %0, x0\n"
tools/testing/selftests/kvm/x86_64/mmio_warning_test.c +2 -1
@@ -82,7 +82,8 @@ int get_warnings_count(void)FILE *f; f =popen ("dmesg | grep \"WARNING:\" | wc -l" ,"r" ); -fscanf (f,"%d" , &warnings); +if (fscanf (f,"%d" , &warnings) <1 ) + warnings =0 ;fclose (f);return warnings;
tools/testing/selftests/lib.mk +1 -0
@@ -48,6 +48,7 @@ ARCH ?= $(SUBARCH) # When local build is done, headers are installed in the default # INSTALL_HDR_PATH usr/include. .PHONY: khdr +.NOTPARALLEL: khdr: ifndef KSFT_KHDR_INSTALL_DONE ifeq (1,$(DEFAULT_INSTALL_HDR_PATH))
tools/usb/testusb.c +8 -6
@@ -265,12 +265,6 @@ static int find_testdev(const char *name, const struct stat *sb, int flag) } entry->ifnum = ifnum; - -/* FIXME update USBDEVFS_CONNECTINFO so it tells about high speed etc */ - -fprintf (stderr,"%s speed\t%s\t%u\n" , -speed (entry->speed), entry->name, entry->ifnum); - entry->next = testdevs; testdevs = entry;return 0 ;
@@ -299,6 +293,14 @@ static void *handle_testdev (void *arg)return 0 ; } + status =ioctl (fd,USBDEVFS_GET_SPEED ,NULL ); +if (status <0 ) +fprintf (stderr,"USBDEVFS_GET_SPEED failed %d\n" , status); +else + dev->speed = status; +fprintf (stderr,"%s speed\t%s\t%u\n" , +speed (dev->speed), dev->name, dev->ifnum); + restart:for (i =0 ; i <TEST_CASES ; i++) {if (dev->test !=-1 && dev->test != i)
tools/vm/page-types.c +1 -1
@@ -1331,7 +1331,7 @@ int main(int argc, char *argv[])if (opt_list && opt_list_mapcnt) kpagecount_fd =checked_open (PROC_KPAGECOUNT ,O_RDONLY ); -if (opt_mark_idle && opt_file) +if (opt_mark_idle) page_idle_fd =checked_open (SYS_KERNEL_MM_PAGE_IDLE ,O_RDWR );if (opt_list && opt_pid)
virt/kvm/kvm_main.c +5 -1
@@ -2756,15 +2756,19 @@ static void grow_halt_poll_ns(struct kvm_vcpu *vcpu)static void shrink_halt_poll_ns (struct kvm_vcpu *vcpu) { -unsigned int old, val, shrink; +unsigned int old, val, shrink, grow_start; old = val = vcpu->halt_poll_ns; shrink =READ_ONCE (halt_poll_ns_shrink); + grow_start =READ_ONCE (halt_poll_ns_grow_start);if (shrink ==0 ) val =0 ;else val /= shrink; +if (val < grow_start) + val =0 ; + vcpu->halt_poll_ns = val;trace_kvm_halt_poll_ns_shrink (vcpu->vcpu_id, val, old); }