Linux 5.4.31
Greg KH
maintainerI'm announcing the release of the 5.4.31 kernel.
All users of the 5.4 kernel series must upgrade.
The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.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 drivers/extcon/extcon-axp288.c | 32 +++++ drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 2 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 11 + drivers/gpu/drm/bochs/bochs_hw.c | 6 - drivers/i2c/busses/i2c-i801.c | 45 ++------ drivers/infiniband/hw/hfi1/user_sdma.c | 25 +++- drivers/md/dm.c | 5 drivers/misc/cardreader/rts5227.c | 1 drivers/misc/mei/hw-me-regs.h | 2 drivers/misc/mei/pci-me.c | 2 drivers/misc/pci_endpoint_test.c | 14 +- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h | 4 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 25 +--- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 6 - drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c | 6 - drivers/nvme/host/rdma.c | 8 - drivers/nvmem/nvmem-sysfs.c | 6 + drivers/pci/pci-sysfs.c | 6 - drivers/power/supply/axp288_charger.c | 57 +++++++++- drivers/soc/mediatek/mtk-cmdq-helper.c | 1 drivers/watchdog/iTCO_vendor.h | 2 drivers/watchdog/iTCO_vendor_support.c | 16 +- drivers/watchdog/iTCO_wdt.c | 28 ++-- include/uapi/linux/coresight-stm.h | 6 - kernel/padata.c | 6 - lib/test_xarray.c | 18 +++ lib/xarray.c | 3 mm/mempolicy.c | 6 - net/core/dev.c | 2 net/ipv4/tcp_input.c | 6 - net/rxrpc/sendmsg.c | 4 scripts/Kconfig.include | 7 + sound/pci/hda/patch_ca0132.c | 1 tools/power/x86/turbostat/Makefile | 2 tools/power/x86/turbostat/turbostat.c | 73 ++++++++----- usr/Kconfig | 22 +-- 39 files changed, 326 insertions(+), 146 deletions(-)
Alexander Usyskin (1):
mei: me: add cedar fork device ids
Amritha Nambiar (1):
net: Fix Tx hash bound checking
Bibby Hsieh (1):
soc: mediatek: knows_txdone needs to be set in Mediatek CMDQ helper
Daniel Jordan (2):
padata: fix uninitialized return value in padata_replace()
padata: always acquire cpu_hotplug_lock before pinst->lock
David Howells (1):
rxrpc: Fix sendmsg(MSG_WAITALL) handling
Eugene Syromiatnikov (1):
coresight: do not use the BIT() macro in the UAPI header
Eugeniy Paltsev (1):
initramfs: restore default compression behavior
Geoffrey Allott (1):
ALSA: hda/ca0132 - Add Recon3Di quirk to handle integrated sound on EVGA X99 Classified motherboard
Gerd Hoffmann (1):
drm/bochs: downgrade pci_request_region failure from error to warning
Greg Kroah-Hartman (1):
Linux 5.4.31
Guenter Roeck (1):
brcmfmac: abort and release host after error
Hans de Goede (2):
extcon: axp288: Add wakeup support
power: supply: axp288_charger: Add special handling for HP Pavilion x2 10
James Zhu (1):
drm/amdgpu: fix typo for vcn1 idle check
Kelsey Skunberg (1):
PCI: sysfs: Revert "rescan" file renames
Kishon Vijay Abraham I (2):
misc: pci_endpoint_test: Fix to support > 10 pci-endpoint-test devices
misc: pci_endpoint_test: Avoid using module parameter to determine irqtype
Len Brown (3):
tools/power turbostat: Fix gcc build warnings
tools/power turbostat: Fix missing SYS_LPI counter on some Chromebooks tools/power turbostat: Fix 32-bit capabilities warning
Luca Coelho (1):
iwlwifi: dbg: don't abort if sending DBGC_SUSPEND_RESUME fails
Mario Kleiner (1):
drm/amd/display: Add link_rate quirk for Apple 15" MBP 2017
Masahiro Yamada (1):
kconfig: introduce m32-flag and m64-flag
Matthew Wilcox (Oracle) (1):
XArray: Fix xa_find_next for large multi-index entries
Mika Westerberg (3):
watchdog: iTCO_wdt: Export vendorsupport
watchdog: iTCO_wdt: Make ICH_RES_IO_SMI optional
i2c: i801: Do not add ICH_RES_IO_SMI for the iTCO_wdt device
Mike Marciniszyn (1):
IB/hfi1: Ensure pq is not left on waitlist
Mike Snitzer (1):
Revert "dm: always call blk_queue_split() in dm_process_bio()"
Mordechay Goodstein (2):
iwlwifi: consider HE capability when setting LDPC
iwlwifi: yoyo: don't add TLV offset when reading FIFOs
Neal Cardwell (1):
tcp: fix TFO SYNACK undo to avoid double-timestamp-undo
Nicholas Johnson (1):
nvmem: check for NULL reg_read and reg_write before dereferencing
Prabhath Sajeepa (1):
nvme-rdma: Avoid double freeing of async event data
Randy Dunlap (1):
mm: mempolicy: require at least one nodeid for MPOL_PREFERRED
Tariq Toukan (2):
net/mlx5e: kTLS, Fix TCP seq off-by-1 issue in TX resync flow net/mlx5e: kTLS, Fix wrong value in record tracker enum
YueHaibing (1):
misc: rtsx: set correct pcr_ops for rts522A
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 30 +SUBLEVEL = 31 EXTRAVERSION = NAME = Kleptomaniac Octopus
drivers/extcon/extcon-axp288.c +32 -0
@@ -423,9 +423,40 @@ static int axp288_extcon_probe(struct platform_device *pdev)/* Start charger cable type detection */ axp288_extcon_enable (info); +device_init_wakeup (dev, true); +platform_set_drvdata (pdev, info); + +return 0 ; +} + +static int __maybe_unused axp288_extcon_suspend (struct device *dev) +{ +struct axp288_extcon_info *info =dev_get_drvdata (dev); + +if (device_may_wakeup (dev)) +enable_irq_wake (info->irq[VBUS_RISING_IRQ ]); +return 0 ; } +static int __maybe_unused axp288_extcon_resume (struct device *dev) +{ +struct axp288_extcon_info *info =dev_get_drvdata (dev); + +/* +* Wakeup when a charger is connected to do charger-type +* connection and generate an extcon event which makes the +* axp288 charger driver set the input current limit. +*/ +if (device_may_wakeup (dev)) +disable_irq_wake (info->irq[VBUS_RISING_IRQ ]); + +return 0 ; +} + +static SIMPLE_DEV_PM_OPS(axp288_extcon_pm_ops, axp288_extcon_suspend, + axp288_extcon_resume); +static const struct platform_device_id axp288_extcon_table[] = { { .name ="axp288_extcon" }, {},
@@ -437,6 +468,7 @@ static struct platform_driver axp288_extcon_driver = { .id_table = axp288_extcon_table, .driver = { .name = "axp288_extcon", + .pm = &axp288_extcon_pm_ops, }, };
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +1 -1
@@ -1375,7 +1375,7 @@ static int vcn_v1_0_set_clockgating_state(void *handle,if (enable) {/* wait for STATUS to clear */ -if (vcn_v1_0_is_idle (handle)) +if (!vcn_v1_0_is_idle (handle))return -EBUSY ;vcn_v1_0_enable_clock_gating (adev); }else {
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +11 -0
@@ -2879,6 +2879,17 @@ static bool retrieve_link_cap(struct dc_link *link) sink_id.ieee_device_id, sizeof(sink_id.ieee_device_id)); +/* Quirk Apple MBP 2017 15" Retina panel: Wrong DP_MAX_LINK_RATE */ + { +uint8_t str_mbp_2017[] = {101 ,68 ,21 ,101 ,98 ,97 }; + +if ((link->dpcd_caps.sink_dev_id ==0x0010fa ) && + !memcmp (link->dpcd_caps.sink_dev_id_str, str_mbp_2017, +sizeof (str_mbp_2017))) { + link->reported_link_cap.link_rate =0x0c ; + } + } + core_link_read_dpcd( link, DP_SINK_HW_REVISION_START,
drivers/gpu/drm/bochs/bochs_hw.c +2 -4
@@ -156,10 +156,8 @@ int bochs_hw_init(struct drm_device *dev) size =min (size, mem); } -if (pci_request_region (pdev,0 ,"bochs-drm" ) !=0 ) { -DRM_ERROR ("Cannot request framebuffer\n" ); -return -EBUSY ; - } +if (pci_request_region (pdev,0 ,"bochs-drm" ) !=0 ) +DRM_WARN ("Cannot request framebuffer, boot fb still active?\n" ); bochs->fb_map =ioremap (addr, size);if (bochs->fb_map ==NULL ) {
drivers/i2c/busses/i2c-i801.c +12 -33
84 lines not on this page · raw message
drivers/infiniband/hw/hfi1/user_sdma.c +22 -3
@@ -141,6 +141,7 @@ static int defer_packet_queue(*/ xchg (&pq->state,SDMA_PKT_Q_DEFERRED );if (list_empty (&pq->busy.list)) { + pq->busy.lock = &sde->waitlock;iowait_get_priority (&pq->busy);iowait_queue (pkts_sent, &pq->busy, &sde->dmawait); }
@@ -155,6 +156,7 @@ static void activate_packet_queue(struct iowait *wait, int reason) {struct hfi1_user_sdma_pkt_q *pq = container_of(wait, struct hfi1_user_sdma_pkt_q, busy); + pq->busy.lock =NULL ;xchg (&pq->state,SDMA_PKT_Q_ACTIVE );wake_up (&wait->wait_dma); };
@@ -256,6 +258,21 @@ int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt,return ret; } +static void flush_pq_iowait (struct hfi1_user_sdma_pkt_q *pq) +{ +unsigned long flags; +seqlock_t *lock = pq->busy.lock; + +if (!lock) +return ; +write_seqlock_irqsave (lock, flags); +if (!list_empty (&pq->busy.list)) { +list_del_init (&pq->busy.list); + pq->busy.lock =NULL ; + } +write_sequnlock_irqrestore (lock, flags); +} +int hfi1_user_sdma_free_queues (struct hfi1_filedata *fd,struct hfi1_ctxtdata *uctxt) {
@@ -281,6 +298,7 @@ int hfi1_user_sdma_free_queues(struct hfi1_filedata *fd,kfree (pq->reqs);kfree (pq->req_in_use);kmem_cache_destroy (pq->txreq_cache); +flush_pq_iowait (pq);kfree (pq); }else {spin_unlock (&fd->pq_rcu_lock);
@@ -587,11 +605,12 @@ int hfi1_user_sdma_process_request(struct hfi1_filedata *fd,if (ret <0 ) {if (ret != -EBUSY ) goto free_req; -wait_event_interruptible_timeout ( +if (wait_event_interruptible_timeout ( pq->busy.wait_dma, - (pq->state ==SDMA_PKT_Q_ACTIVE ), + pq->state ==SDMA_PKT_Q_ACTIVE ,msecs_to_jiffies ( -SDMA_IOWAIT_TIMEOUT )); +SDMA_IOWAIT_TIMEOUT )) <=0 ) +flush_pq_iowait (pq); } } *count += idx;
drivers/md/dm.c +3 -2
@@ -1760,8 +1760,9 @@ static blk_qc_t dm_process_bio(struct mapped_device *md,* won't be imposed. */ if (current->bio_list) { -blk_queue_split (md->queue, &bio); -if (!is_abnormal_io (bio)) +if (is_abnormal_io (bio)) +blk_queue_split (md->queue, &bio); +else dm_queue_split (md, ti, &bio); }
drivers/misc/cardreader/rts5227.c +1 -0
@@ -394,6 +394,7 @@ static const struct pcr_ops rts522a_pcr_ops = {void rts522a_init_params (struct rtsx_pcr *pcr) {rts5227_init_params (pcr); + pcr->ops = &rts522a_pcr_ops; pcr->tx_initial_phase =SET_CLOCK_PHASE (20 ,20 ,11 ); pcr->reg_pm_ctrl3 =RTS522A_PM_CTRL3 ;
drivers/misc/mei/hw-me-regs.h +2 -0
@@ -87,6 +87,8 @@#define MEI_DEV_ID_CMP_H 0x06e0/* Comet Lake H */ #define MEI_DEV_ID_CMP_H_3 0x06e4/* Comet Lake H 3 (iTouch) */ +#define MEI_DEV_ID_CDF 0x18D3/* Cedar Fork */ +#define MEI_DEV_ID_ICP_LP 0x34E0/* Ice Lake Point LP */ #define MEI_DEV_ID_TGP_LP 0xA0E0/* Tiger Lake Point LP */
drivers/misc/mei/pci-me.c +2 -0
@@ -109,6 +109,8 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_MCC, MEI_ME_PCH12_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_MCC_4, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CDF, MEI_ME_PCH8_CFG)}, +/* required last entry */ {0, } };
drivers/misc/pci_endpoint_test.c +10 -4
@@ -98,6 +98,7 @@ struct pci_endpoint_test {struct completion irq_raised;int last_irq;int num_irqs; +int irq_type;/* mutex to protect the ioctls */ struct mutex mutex;struct miscdevice miscdev;
@@ -157,6 +158,7 @@ static void pci_endpoint_test_free_irq_vectors(struct pci_endpoint_test *test)struct pci_dev *pdev = test->pdev;pci_free_irq_vectors (pdev); + test->irq_type =IRQ_TYPE_UNDEFINED ; } static bool pci_endpoint_test_alloc_irq_vectors(struct pci_endpoint_test *test,
@@ -191,6 +193,8 @@ static bool pci_endpoint_test_alloc_irq_vectors(struct pci_endpoint_test *test, irq =0 ; res = false; } + + test->irq_type = type; test->num_irqs = irq;return res;
@@ -330,6 +334,7 @@ static bool pci_endpoint_test_copy(struct pci_endpoint_test *test, size_t size)dma_addr_t orig_dst_phys_addr;size_t offset;size_t alignment = test->alignment; +int irq_type = test->irq_type;u32 src_crc32;u32 dst_crc32;
@@ -426,6 +431,7 @@ static bool pci_endpoint_test_write(struct pci_endpoint_test *test, size_t size)dma_addr_t orig_phys_addr;size_t offset;size_t alignment = test->alignment; +int irq_type = test->irq_type;u32 crc32;if (size >SIZE_MAX - alignment)
@@ -494,6 +500,7 @@ static bool pci_endpoint_test_read(struct pci_endpoint_test *test, size_t size)dma_addr_t orig_phys_addr;size_t offset;size_t alignment = test->alignment; +int irq_type = test->irq_type;u32 crc32;if (size >SIZE_MAX - alignment)
@@ -555,7 +562,7 @@ static bool pci_endpoint_test_set_irq(struct pci_endpoint_test *test,return false; } -if (irq_type == req_irq_type) +if (test->irq_type == req_irq_type)return true;pci_endpoint_test_release_irq (test);
@@ -567,12 +574,10 @@ static bool pci_endpoint_test_set_irq(struct pci_endpoint_test *test,if (!pci_endpoint_test_request_irq (test)) goto err; - irq_type = req_irq_type;return true; err:pci_endpoint_test_free_irq_vectors (test); - irq_type =IRQ_TYPE_UNDEFINED ;return false; }
@@ -633,7 +638,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev, {int err;int id; -char name[20 ]; +char name[24 ];enum pci_barno bar;void __iomem *base;struct device *dev = &pdev->dev;
@@ -652,6 +657,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev, test->test_reg_bar =0 ; test->alignment =0 ; test->pdev = pdev; + test->irq_type =IRQ_TYPE_UNDEFINED ;if (no_msi) irq_type =IRQ_TYPE_LEGACY ;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h +2 -2
@@ -38,8 +38,8 @@ enum {enum {MLX5E_TLS_PROGRESS_PARAMS_RECORD_TRACKER_STATE_START =0 , -MLX5E_TLS_PROGRESS_PARAMS_RECORD_TRACKER_STATE_SEARCHING =1 , -MLX5E_TLS_PROGRESS_PARAMS_RECORD_TRACKER_STATE_TRACKING =2 , +MLX5E_TLS_PROGRESS_PARAMS_RECORD_TRACKER_STATE_TRACKING =1 , +MLX5E_TLS_PROGRESS_PARAMS_RECORD_TRACKER_STATE_SEARCHING =2 , };struct mlx5e_ktls_offload_context_tx {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c +1 -1
@@ -218,7 +218,7 @@ tx_sync_info_get(struct mlx5e_ktls_offload_context_tx *priv_tx,* this packet was already acknowledged and its record info * was released. */ - ends_before =before (tcp_seq + datalen,tls_record_start_seq (record)); + ends_before =before (tcp_seq + datalen -1 ,tls_record_start_seq (record));if (unlikely (tls_record_is_start_marker (record))) { ret = ends_before ?MLX5E_KTLS_SYNC_SKIP_NO_DATA :MLX5E_KTLS_SYNC_FAIL ;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +2 -0
@@ -1934,6 +1934,8 @@ static uint brcmf_sdio_readframes(struct brcmf_sdio *bus, uint maxframes)if (brcmf_sdio_hdparse (bus, bus->rxhdr, &rd_new,BRCMF_SDIO_FT_NORMAL )) { rd->len =0 ; +brcmf_sdio_rxfail (bus, true, true); +sdio_release_host (bus->sdiodev->func1);brcmu_pkt_buf_free_skb (pkt);continue ; }
drivers/net/wireless/intel/iwlwifi/fw/dbg.c +8 -17
@@ -8,7 +8,7 @@* Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH * Copyright(c) 2015 - 2017 Intel Deutschland GmbH -* Copyright(c) 2018 - 2019 Intel Corporation +* Copyright(c) 2018 - 2020 Intel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as
@@ -31,7 +31,7 @@* Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH * Copyright(c) 2015 - 2017 Intel Deutschland GmbH -* Copyright(c) 2018 - 2019 Intel Corporation +* Copyright(c) 2018 - 2020 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without
@@ -1373,11 +1373,7 @@ static int iwl_dump_ini_rxf_iter(struct iwl_fw_runtime *fwrt, goto out; } -/* -* region register have absolute value so apply rxf offset after -* reading the registers -*/ - offs += rxf_data.offset; + offs = rxf_data.offset;/* Lock fence */ iwl_write_prph_no_grab (fwrt->trans,RXF_SET_FENCE_MODE + offs,0x1 );
@@ -2315,10 +2311,7 @@ static void iwl_fw_dbg_collect_sync(struct iwl_fw_runtime *fwrt, u8 wk_idx) goto out; } -if (iwl_fw_dbg_stop_restart_recording (fwrt, ¶ms, true)) { -IWL_ERR (fwrt,"Failed to stop DBGC recording, aborting dump\n" ); - goto out; - } +iwl_fw_dbg_stop_restart_recording (fwrt, ¶ms, true);IWL_DEBUG_FW_INFO (fwrt,"WRT: Data collection start\n" );if (iwl_trans_dbg_ini_valid (fwrt->trans))
@@ -2484,14 +2477,14 @@ static int iwl_fw_dbg_restart_recording(struct iwl_trans *trans,return 0 ; } -int iwl_fw_dbg_stop_restart_recording (struct iwl_fw_runtime *fwrt, -struct iwl_fw_dbg_params *params, -bool stop) +void iwl_fw_dbg_stop_restart_recording (struct iwl_fw_runtime *fwrt, +struct iwl_fw_dbg_params *params, +bool stop) {int ret =0 ;if (test_bit (STATUS_FW_ERROR , &fwrt->trans->status)) -return 0 ; +return ;if (fw_has_capa (&fwrt->fw->ucode_capa,IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP ))
@@ -2508,7 +2501,5 @@ int iwl_fw_dbg_stop_restart_recording(struct iwl_fw_runtime *fwrt, iwl_fw_set_dbg_rec_on(fwrt); }#endif - -return ret; }IWL_EXPORT_SYMBOL (iwl_fw_dbg_stop_restart_recording);
drivers/net/wireless/intel/iwlwifi/fw/dbg.h +3 -3
@@ -263,9 +263,9 @@ _iwl_fw_dbg_trigger_simple_stop(struct iwl_fw_runtime *fwrt,_iwl_fw_dbg_trigger_simple_stop ((fwrt), (wdev), \iwl_fw_dbg_get_trigger ((fwrt)->fw,\ (trig))) -int iwl_fw_dbg_stop_restart_recording (struct iwl_fw_runtime *fwrt, -struct iwl_fw_dbg_params *params, -bool stop); +void iwl_fw_dbg_stop_restart_recording (struct iwl_fw_runtime *fwrt, +struct iwl_fw_dbg_params *params, +bool stop);#ifdef CONFIG_IWLWIFI_DEBUGFS static inline void iwl_fw_set_dbg_rec_on (struct iwl_fw_runtime *fwrt)
drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c +5 -1
@@ -147,7 +147,11 @@ static u16 rs_fw_get_config_flags(struct iwl_mvm *mvm, (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)))) flags |=IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK ; -/* consider our LDPC support in case of HE */ +/* consider LDPC support in case of HE */ +if (he_cap->has_he && (he_cap->he_cap_elem.phy_cap_info[1 ] & +IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD )) + flags |=IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK ; +if (sband->iftype_data && sband->iftype_data->he_cap.has_he && !(sband->iftype_data->he_cap.he_cap_elem.phy_cap_info[1 ] &IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD ))
drivers/nvme/host/rdma.c +5 -3
@@ -850,9 +850,11 @@ static int nvme_rdma_configure_admin_queue(struct nvme_rdma_ctrl *ctrl,if (new)blk_mq_free_tag_set (ctrl->ctrl.admin_tagset); out_free_async_qe: -nvme_rdma_free_qe (ctrl->device->dev, &ctrl->async_event_sqe, -sizeof (struct nvme_command ),DMA_TO_DEVICE ); - ctrl->async_event_sqe.data =NULL ; +if (ctrl->async_event_sqe.data) { +nvme_rdma_free_qe (ctrl->device->dev, &ctrl->async_event_sqe, +sizeof (struct nvme_command ),DMA_TO_DEVICE ); + ctrl->async_event_sqe.data =NULL ; + } out_free_queue:nvme_rdma_free_queue (&ctrl->queues[0 ]);return error;
drivers/nvmem/nvmem-sysfs.c +6 -0
@@ -56,6 +56,9 @@ static ssize_t bin_attr_nvmem_read(struct file *filp, struct kobject *kobj, count =round_down (count, nvmem->word_size); +if (!nvmem->reg_read) +return -EPERM ; + rc = nvmem->reg_read (nvmem->priv, pos, buf, count);if (rc)
@@ -90,6 +93,9 @@ static ssize_t bin_attr_nvmem_write(struct file *filp, struct kobject *kobj, count =round_down (count, nvmem->word_size); +if (!nvmem->reg_write) +return -EPERM ; + rc = nvmem->reg_write (nvmem->priv, pos, buf, count);if (rc)
drivers/pci/pci-sysfs.c +4 -2
@@ -464,7 +464,8 @@ static ssize_t dev_rescan_store(struct device *dev, }return count; } -static DEVICE_ATTR_WO (dev_rescan); +static struct device_attribute dev_attr_dev_rescan =__ATTR (rescan,0200 ,NULL , + dev_rescan_store);static ssize_t remove_store (struct device *dev,struct device_attribute *attr,const char *buf,size_t count)
@@ -501,7 +502,8 @@ static ssize_t bus_rescan_store(struct device *dev, }return count; } -static DEVICE_ATTR_WO (bus_rescan); +static struct device_attribute dev_attr_bus_rescan =__ATTR (rescan,0200 ,NULL , + bus_rescan_store);#if defined(CONFIG_PM ) && defined(CONFIG_ACPI ) static ssize_t d3cold_allowed_store(struct device *dev,
drivers/power/supply/axp288_charger.c +56 -1
81 lines not on this page · raw message
drivers/soc/mediatek/mtk-cmdq-helper.c +1 -0
@@ -38,6 +38,7 @@ struct cmdq_client *cmdq_mbox_create(struct device *dev, int index, u32 timeout) client->pkt_cnt =0 ; client->client.dev = dev; client->client.tx_block = false; + client->client.knows_txdone = true; client->chan =mbox_request_channel (&client->client, index);if (IS_ERR (client->chan)) {
drivers/watchdog/iTCO_vendor.h +2 -0
@@ -1,10 +1,12 @@/* SPDX-License-Identifier: GPL-2.0 */ /* iTCO Vendor Specific Support hooks */ #ifdef CONFIG_ITCO_VENDOR_SUPPORT +extern int iTCO_vendorsupport;extern void iTCO_vendor_pre_start (struct resource *,unsigned int );extern void iTCO_vendor_pre_stop (struct resource *);extern int iTCO_vendor_check_noreboot_on (void );#else +#define iTCO_vendorsupport 0#define iTCO_vendor_pre_start (acpibase, heartbeat) {}#define iTCO_vendor_pre_stop (acpibase) {}#define iTCO_vendor_check_noreboot_on () 1
drivers/watchdog/iTCO_vendor_support.c +9 -7
@@ -39,8 +39,10 @@/* Broken BIOS */ #define BROKEN_BIOS 911 -static int vendorsupport; -module_param (vendorsupport, int,0 ); +int iTCO_vendorsupport; +EXPORT_SYMBOL (iTCO_vendorsupport); + +module_param_named (vendorsupport, iTCO_vendorsupport, int,0 );MODULE_PARM_DESC (vendorsupport,"iTCO vendor specific support mode, default=" "0 (none), 1=SuperMicro Pent3, 911=Broken SMI BIOS" );
@@ -152,7 +154,7 @@ static void broken_bios_stop(struct resource *smires)void iTCO_vendor_pre_start (struct resource *smires,unsigned int heartbeat) { -switch (vendorsupport) { +switch (iTCO_vendorsupport) {case SUPERMICRO_OLD_BOARD :supermicro_old_pre_start (smires);break ;
@@ -165,7 +167,7 @@ EXPORT_SYMBOL(iTCO_vendor_pre_start);void iTCO_vendor_pre_stop (struct resource *smires) { -switch (vendorsupport) { +switch (iTCO_vendorsupport) {case SUPERMICRO_OLD_BOARD :supermicro_old_pre_stop (smires);break ;
@@ -178,7 +180,7 @@ EXPORT_SYMBOL(iTCO_vendor_pre_stop);int iTCO_vendor_check_noreboot_on (void ) { -switch (vendorsupport) { +switch (iTCO_vendorsupport) {case SUPERMICRO_OLD_BOARD :return 0 ;default :
@@ -189,13 +191,13 @@ EXPORT_SYMBOL(iTCO_vendor_check_noreboot_on);static int __init iTCO_vendor_init_module (void ) { -if (vendorsupport ==SUPERMICRO_NEW_BOARD ) { +if (iTCO_vendorsupport ==SUPERMICRO_NEW_BOARD ) {pr_warn ("Option vendorsupport=%d is no longer supported, " "please use the w83627hf_wdt driver instead\n" ,SUPERMICRO_NEW_BOARD );return -EINVAL ; } -pr_info ("vendor-support=%d\n" , vendorsupport); +pr_info ("vendor-support=%d\n" , iTCO_vendorsupport);return 0 ; }
drivers/watchdog/iTCO_wdt.c +16 -12
@@ -459,13 +459,25 @@ static int iTCO_wdt_probe(struct platform_device *pdev)if (!p->tco_res)return -ENODEV ; - p->smi_res =platform_get_resource (pdev,IORESOURCE_IO ,ICH_RES_IO_SMI ); -if (!p->smi_res) -return -ENODEV ; - p->iTCO_version = pdata->version; p->pci_dev =to_pci_dev (dev->parent); + p->smi_res =platform_get_resource (pdev,IORESOURCE_IO ,ICH_RES_IO_SMI ); +if (p->smi_res) { +/* The TCO logic uses the TCO_EN bit in the SMI_EN register */ +if (!devm_request_region (dev, p->smi_res->start, +resource_size (p->smi_res), + pdev->name)) { +pr_err ("I/O address 0x%04llx already in use, device disabled\n" , + (u64 )SMI_EN (p)); +return -EBUSY ; + } + }else if (iTCO_vendorsupport || + turn_SMI_watchdog_clear_off >= p->iTCO_version) { +pr_err ("SMI I/O resource is missing\n" ); +return -ENODEV ; + } +iTCO_wdt_no_reboot_bit_setup (p, pdata);/*
@@ -492,14 +504,6 @@ static int iTCO_wdt_probe(struct platform_device *pdev)/* Set the NO_REBOOT bit to prevent later reboots, just for sure */ p->update_no_reboot_bit (p->no_reboot_priv, true); -/* The TCO logic uses the TCO_EN bit in the SMI_EN register */ -if (!devm_request_region (dev, p->smi_res->start, -resource_size (p->smi_res), - pdev->name)) { -pr_err ("I/O address 0x%04llx already in use, device disabled\n" , - (u64 )SMI_EN (p)); -return -EBUSY ; - }if (turn_SMI_watchdog_clear_off >= p->iTCO_version) {/* * Bit 13: TCO_EN -> 0
include/uapi/linux/coresight-stm.h +4 -2
@@ -2,8 +2,10 @@#ifndef __UAPI_CORESIGHT_STM_H_#define __UAPI_CORESIGHT_STM_H_ -#define STM_FLAG_TIMESTAMPED BIT(3) -#define STM_FLAG_GUARANTEED BIT(7) +#include <linux/const.h> + +#define STM_FLAG_TIMESTAMPED _BITUL(3) +#define STM_FLAG_GUARANTEED _BITUL(7)/* * The CoreSight STM supports guaranteed and invariant timing
kernel/padata.c +3 -3
@@ -516,7 +516,7 @@ static int padata_replace(struct padata_instance *pinst) {int notification_mask =0 ;struct padata_shell *ps; -int err; +int err =0 ; pinst->flags |=PADATA_RESET ;
@@ -643,8 +643,8 @@ int padata_set_cpumask(struct padata_instance *pinst, int cpumask_type,struct cpumask *serial_mask, *parallel_mask;int err = -EINVAL ; -mutex_lock (&pinst->lock);get_online_cpus (); +mutex_lock (&pinst->lock);switch (cpumask_type) {case PADATA_CPU_PARALLEL :
@@ -662,8 +662,8 @@ int padata_set_cpumask(struct padata_instance *pinst, int cpumask_type, err =__padata_set_cpumasks (pinst, parallel_mask, serial_mask); out: -put_online_cpus ();mutex_unlock (&pinst->lock); +put_online_cpus ();return err; }
lib/test_xarray.c +18 -0
@@ -12,6 +12,9 @@static unsigned int tests_run;static unsigned int tests_passed; +static const unsigned int order_limit = +IS_ENABLED (CONFIG_XARRAY_MULTI ) ?BITS_PER_LONG :1 ; +#ifndef XA_DEBUG # ifdef __KERNEL__void xa_dump (const struct xarray *xa) { }
@@ -959,6 +962,20 @@ static noinline void check_multi_find_2(struct xarray *xa) } } +static noinline void check_multi_find_3(struct xarray *xa) +{ +unsigned int order; + +for (order =5 ; order < order_limit; order++) { +unsigned long index =1UL << (order -5 ); + +XA_BUG_ON (xa, !xa_empty (xa)); +xa_store_order (xa,0 , order -4 ,xa_mk_index (0 ),GFP_KERNEL ); +XA_BUG_ON (xa,xa_find_after (xa, &index,ULONG_MAX ,XA_PRESENT )); +xa_erase_index (xa,0 ); + } +} + static noinline void check_find_1(struct xarray *xa) {unsigned long i, j, k;
@@ -1081,6 +1098,7 @@ static noinline void check_find(struct xarray *xa)for (i =2 ; i <10 ; i++)check_multi_find_1 (xa, i);check_multi_find_2 (xa); +check_multi_find_3 (xa); }/* See find_swap_entry() in mm/shmem.c */
lib/xarray.c +2 -1
@@ -1839,7 +1839,8 @@ static bool xas_sibling(struct xa_state *xas)if (!node)return false; mask = (XA_CHUNK_SIZE << node->shift) -1 ; -return (xas->xa_index & mask) > (xas->xa_offset << node->shift); +return (xas->xa_index & mask) > + ((unsigned long )xas->xa_offset << node->shift); }/**
mm/mempolicy.c +5 -1
@@ -2822,7 +2822,9 @@ int mpol_parse_str(char *str, struct mempolicy **mpol)switch (mode) {case MPOL_PREFERRED :/* -* Insist on a nodelist of one node only +* Insist on a nodelist of one node only, although later +* we use first_node(nodes) to grab a single node, so here +* nodelist (or nodes) cannot be empty. */ if (nodelist) {char *rest = nodelist;
@@ -2830,6 +2832,8 @@ int mpol_parse_str(char *str, struct mempolicy **mpol) rest++;if (*rest) goto out; +if (nodes_empty (nodes)) + goto out; }break ;case MPOL_INTERLEAVE :
net/core/dev.c +2 -0
@@ -2795,6 +2795,8 @@ static u16 skb_tx_hash(const struct net_device *dev,if (skb_rx_queue_recorded (skb)) { hash =skb_get_rx_queue (skb); +if (hash >= qoffset) + hash -= qoffset;while (unlikely (hash >= qcount)) hash -= qcount;return hash + qoffset;
net/ipv4/tcp_input.c +5 -1
@@ -6096,7 +6096,11 @@ static void tcp_rcv_synrecv_state_fastopen(struct sock *sk) {struct request_sock *req; -tcp_try_undo_loss (sk, false); +/* If we are still handling the SYNACK RTO, see if timestamp ECR allows +* undo. If peer SACKs triggered fast recovery, we can't undo here. +*/ +if (inet_csk (sk)->icsk_ca_state == TCP_CA_Loss) +tcp_try_undo_loss (sk, false);/* Reset rtx states to prevent spurious retransmits_timed_out() */ tcp_sk (sk)->retrans_stamp =0 ;
net/rxrpc/sendmsg.c +2 -2
@@ -58,8 +58,8 @@ static int rxrpc_wait_for_tx_window_nonintr(struct rxrpc_sock *rx, rtt =READ_ONCE (call->peer->rtt); rtt2 =nsecs_to_jiffies64 (rtt) *2 ; -if (rtt2 <1 ) - rtt2 =1 ; +if (rtt2 <2 ) + rtt2 =2 ; timeout = rtt2; tx_start =READ_ONCE (call->tx_hard_ack);
scripts/Kconfig.include +7 -0
@@ -40,3 +40,10 @@ $(error-if,$(success, $(LD) -v | grep -q gold), gold linker '$(LD)' not supporte # gcc version including patch level gcc-version := $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) + +# machine bit flags +# $(m32-flag): -m32 if the compiler supports it, or an empty string otherwise. +# $(m64-flag): -m64 if the compiler supports it, or an empty string otherwise. +cc-option-bit = $(if-success,$(CC) -Werror $(1) -E -x c /dev/null -o /dev/null,$(1)) +m32-flag := $(cc-option-bit,-m32) +m64-flag := $(cc-option-bit,-m64)
sound/pci/hda/patch_ca0132.c +1 -0
@@ -1180,6 +1180,7 @@ static const struct snd_pci_quirk ca0132_quirks[] = {SND_PCI_QUIRK (0x1458 ,0xA016 ,"Recon3Di" ,QUIRK_R3DI ),SND_PCI_QUIRK (0x1458 ,0xA026 ,"Gigabyte G1.Sniper Z97" ,QUIRK_R3DI ),SND_PCI_QUIRK (0x1458 ,0xA036 ,"Gigabyte GA-Z170X-Gaming 7" ,QUIRK_R3DI ), +SND_PCI_QUIRK (0x3842 ,0x1038 ,"EVGA X99 Classified" ,QUIRK_R3DI ),SND_PCI_QUIRK (0x1102 ,0x0013 ,"Recon3D" ,QUIRK_R3D ), SND_PCI_QUIRK(0x1102, 0x0051, "Sound Blaster AE-5", QUIRK_AE5), {}
tools/power/x86/turbostat/Makefile +1 -1
@@ -16,7 +16,7 @@ override CFLAGS += -D_FORTIFY_SOURCE=2 %: %.c @mkdir -p $(BUILD_OUTPUT) - $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) + $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) -lcap .PHONY : clean clean :
tools/power/x86/turbostat/turbostat.c +46 -27
131 lines not on this page · raw message
usr/Kconfig +11 -11
@@ -131,17 +131,6 @@ choice If in doubt, select 'None' -config INITRAMFS_COMPRESSION_NONE - bool "None" - help - Do not compress the built-in initramfs at all. This may sound wasteful - in space, but, you should be aware that the built-in initramfs will be - compressed at a later stage anyways along with the rest of the kernel, - on those architectures that support this. However, not compressing the - initramfs may lead to slightly higher memory consumption during a - short time at boot, while both the cpio image and the unpacked - filesystem image will be present in memory simultaneously - config INITRAMFS_COMPRESSION_GZIP bool "Gzip" depends on RD_GZIP
@@ -214,6 +203,17 @@ config INITRAMFS_COMPRESSION_LZ4 If you choose this, keep in mind that most distros don't provide lz4 by default which could cause a build failure. +config INITRAMFS_COMPRESSION_NONE + bool "None" + help + Do not compress the built-in initramfs at all. This may sound wasteful + in space, but, you should be aware that the built-in initramfs will be + compressed at a later stage anyways along with the rest of the kernel, + on those architectures that support this. However, not compressing the + initramfs may lead to slightly higher memory consumption during a + short time at boot, while both the cpio image and the unpacked + filesystem image will be present in memory simultaneously + endchoice config INITRAMFS_COMPRESSION