Linux 5.0.15
Greg KH
maintainerI'm announcing the release of the 5.0.15 kernel.
All users of the 5.0 kernel series must upgrade.
The updated 5.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.0.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/arm64/include/asm/futex.h | 55 +- arch/mips/kernel/kgdb.c | 3 arch/x86/events/intel/core.c | 8 arch/xtensa/include/asm/processor.h | 21 block/blk-mq.c | 7 drivers/acpi/acpi_lpss.c | 4 drivers/block/virtio_blk.c | 2 drivers/bluetooth/hci_bcm.c | 20 drivers/clk/meson/gxbb.c | 2 drivers/cpufreq/armada-37xx-cpufreq.c | 22 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 13 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 3 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 drivers/gpu/drm/mediatek/mtk_dpi.c | 8 drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 drivers/gpu/drm/mediatek/mtk_hdmi_phy.c | 35 - drivers/gpu/drm/mediatek/mtk_hdmi_phy.h | 5 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 49 +- drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 23 + drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 26 - drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 5 drivers/hv/hv.c | 1 drivers/hwtracing/intel_th/pci.c | 5 drivers/i3c/master.c | 5 drivers/iio/adc/qcom-spmi-adc5.c | 1 drivers/infiniband/hw/hfi1/chip.c | 26 - drivers/infiniband/hw/hfi1/qp.c | 2 drivers/infiniband/hw/hfi1/rc.c | 4 drivers/infiniband/hw/hns/hns_roce_hem.c | 6 drivers/infiniband/hw/hns/hns_roce_mr.c | 4 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 2 drivers/iommu/amd_iommu_init.c | 2 drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 2 drivers/nvme/host/core.c | 2 drivers/nvme/host/fc.c | 20 drivers/nvme/target/admin-cmd.c | 5 drivers/nvme/target/discovery.c | 68 +- drivers/nvme/target/nvmet.h | 1 drivers/platform/x86/pmc_atom.c | 2 drivers/scsi/csiostor/csio_scsi.c | 5 drivers/scsi/lpfc/lpfc_attr.c | 192 ++++---- drivers/scsi/lpfc/lpfc_ct.c | 12 drivers/scsi/lpfc/lpfc_debugfs.c | 455 ++++++++++---------- drivers/scsi/lpfc/lpfc_debugfs.h | 6 drivers/scsi/qla2xxx/qla_attr.c | 4 drivers/scsi/qla2xxx/qla_target.c | 4 drivers/soc/sunxi/Kconfig | 1 drivers/staging/greybus/power_supply.c | 2 drivers/staging/most/cdev/cdev.c | 2 drivers/staging/most/sound/sound.c | 2 drivers/staging/wilc1000/linux_wlan.c | 2 drivers/usb/class/cdc-acm.c | 32 + drivers/usb/dwc3/Kconfig | 6 drivers/usb/dwc3/core.c | 2 drivers/usb/musb/Kconfig | 2 drivers/usb/serial/f81232.c | 39 + drivers/usb/storage/scsiglue.c | 26 - drivers/usb/storage/uas.c | 35 - drivers/virtio/virtio_pci_common.c | 8 fs/nfs/nfs42proc.c | 3 fs/nfs/nfs4file.c | 4 include/keys/trusted.h | 2 include/linux/blk-mq.h | 1 include/linux/kernel.h | 4 include/linux/nvme.h | 9 include/net/bluetooth/hci_core.h | 3 include/sound/soc.h | 2 kernel/events/core.c | 52 +- kernel/events/ring_buffer.c | 4 kernel/futex.c | 188 +++++--- kernel/irq/manage.c | 4 lib/iov_iter.c | 4 lib/ubsan.c | 49 +- mm/slab.c | 3 net/bluetooth/hci_conn.c | 8 net/bluetooth/hidp/sock.c | 1 net/bluetooth/l2cap_core.c | 9 security/keys/trusted.c | 4 sound/hda/ext/hdac_ext_bus.c | 1 sound/hda/hdac_bus.c | 1 sound/hda/hdac_component.c | 6 sound/soc/codecs/cs35l35.c | 11 sound/soc/codecs/cs4270.c | 1 sound/soc/codecs/hdac_hda.c | 53 +- sound/soc/codecs/hdac_hda.h | 1 sound/soc/codecs/hdmi-codec.c | 118 ++--- sound/soc/codecs/nau8810.c | 4 sound/soc/codecs/nau8824.c | 46 +- sound/soc/codecs/rt5682.c | 56 +- sound/soc/codecs/tlv320aic32x4.c | 2 sound/soc/codecs/tlv320aic3x.c | 5 sound/soc/codecs/wm_adsp.c | 11 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 2 sound/soc/intel/common/sst-firmware.c | 8 sound/soc/intel/skylake/skl-pcm.c | 19 sound/soc/rockchip/rockchip_pdm.c | 2 sound/soc/samsung/odroid.c | 4 sound/soc/soc-core.c | 1 sound/soc/soc-dapm.c | 4 sound/soc/soc-pcm.c | 47 +- sound/soc/stm/stm32_adfsdm.c | 38 + sound/soc/stm/stm32_sai_sub.c | 92 +++- tools/objtool/check.c | 1 105 files changed, 1381 insertions(+), 819 deletions(-)
Alan Stern (1):
usb-storage: Set virt_boundary_mask to avoid SG overflows
Alex Deucher (1):
drm/amdkfd: Add picasso pci id
Alexander Shishkin (1):
intel_th: pci: Add Comet Lake support
Andrew Vasquez (1):
scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS routines
Andrey Ryabinin (1):
ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
Annaliese McDermond (1):
ASoC: tlv320aic32x4: Fix Common Pins
Bjorn Andersson (1):
iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
Charles Keepax (2):
ASoC: wm_adsp: Add locking to wm_adsp2_bus_error
ASoC: cs35l35: Disable regulators on driver removal
Chen-Yu Tsai (1):
Bluetooth: hci_bcm: Fix empty regulator supplies for Intel Macs
Chong Qiao (1):
MIPS: KGDB: fix kgdb support for SMP platforms.
Christian Gromm (1):
staging: most: sound: pass correct device when creating a sound card
Dan Carpenter (2):
drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status()
Daniel Mack (1):
ASoC: cs4270: Set auto-increment bit for register writes
Dexuan Cui (1):
Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
Dongli Zhang (1):
virtio-blk: limit number of hw queues by nr_cpu_ids
Greg Kroah-Hartman (1):
Linux 5.0.15
Gregory CLEMENT (1):
cpufreq: armada-37xx: fix frequency calculation for opp
Hans de Goede (1):
ACPI / LPSS: Use acpi_lpss_* instead of acpi_subsys_* functions for hibernate
James Smart (1):
nvme-fc: correct csn initialization and increments on error
Jann Horn (1):
linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
Ji-Ze Hong (Peter Hong) (1):
USB: serial: f81232: fix interrupt worker not stop
Joerg Roedel (1):
iommu/amd: Set exclusion range correctly
Johan Hovold (2):
staging: greybus: power_supply: fix prop-descriptor request size
USB: cdc-acm: fix unthrottle races
John Hsu (2):
ASoC: nau8824: fix the issue of the widget with prefix name
ASoC: nau8810: fix the issue of widget with prefixed name
Josh Poimboeuf (1):
objtool: Add rewind_stack_do_exit() to the noreturn list
KaiChieh Chuang (1):
ASoC: dpcm: prevent snd_soc_dpcm use after free
Kaike Wan (3):
IB/hfi1: Clear the IOWAIT pending bits when QP is put into error state IB/hfi1: Eliminate opcode tests on mr deref
IB/hfi1: Fix the allocation of RSM table
Kamal Heib (1):
RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
Keith Busch (1):
nvmet: fix discover log page when offsets are used
Lijun Ou (1):
RDMA/hns: Fix bug that caused srq creation to fail
Longpeng (1):
virtio_pci: fix a NULL pointer reference in vp_del_vqs
Luiz Augusto von Dentz (1):
Bluetooth: Fix not initializing L2CAP tx_credits
Marc Gonzalez (1):
usb: dwc3: Allow building USB_DWC3_QCOM without EXTCON
Marcel Holtmann (1):
Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
Max Filippov (1):
xtensa: fix initialization of pt_regs::syscall in start_thread
Maxime Jourdan (1):
clk: meson-gxbb: round the vdec dividers to closest
Ming Lei (2):
blk-mq: introduce blk_mq_complete_request_sync()
nvme: cancel request synchronously
Olga Kornievskaia (1):
NFSv4.1 fix incorrect return value in copy_file_range
Oliver Neukum (1):
UAS: fix alignment of scatter/gather segments
Olivier Moysan (6):
ASoC: stm32: sai: fix iec958 controls indexation
ASoC: stm32: sai: fix exposed capabilities in spdif mode
ASoC: stm32: sai: fix race condition in irq handler
ASoC: stm32: dfsdm: manage multiple prepare
ASoC: stm32: dfsdm: fix debugfs warnings on entry creation
ASoC: stm32: sai: fix master clock management
Ondrej Jirman (1):
drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind
Pankaj Bharadiya (1):
ASoC: dapm: Fix NULL pointer dereference in snd_soc_dapm_free_kcontrol
Peter Zijlstra (2):
perf/x86/intel: Initialize TFA MSR perf/core: Fix perf_event_disable_inatomic() race
Philipp Puschmann (1):
ASoC: tlv320aic3x: fix reset gpio reference counting
Prasad Sodagudi (1):
genirq: Prevent use-after-free and work list corruption
Qian Cai (1):
slab: fix a crash by reading /proc/slab_allocators
Quinn Tran (1):
scsi: qla2xxx: Fix device staying in blocked state
Rander Wang (3):
ASoC:soc-pcm:fix a codec fixup issue in TDM case ASoC:hdac_hda:use correct format to setup hda codec ASoC:intel:skl:fix a simultaneous playback & capture issue on hda platform
Ross Zwisler (1):
ASoC: Intel: avoid Oops if DMA setup fails
Russell King (1):
ASoC: hdmi-codec: fix S/PDIF DAI
Samuel Holland (1):
soc: sunxi: Fix missing dependency on REGMAP_MMIO
Shuming Fan (3):
ASoC: rt5682: Check JD status when system resume
ASoC: rt5682: fix jack type detection issue
ASoC: rt5682: recording has no sound after booting
Silvio Cesare (1):
scsi: lpfc: change snprintf to scnprintf for possible overflow
Stephane Eranian (1):
perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
Stephen Boyd (1):
platform/x86: pmc_atom: Drop __initconst on dmi table
Sugar Zhang (1):
ASoC: rockchip: pdm: fix regmap_ops hang issue
Suresh Udipi (1):
staging: most: cdev: fix chrdev_region leak in mod_exit
Sylwester Nawrocki (1):
ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
Takashi Iwai (1):
ALSA: hda: Fix racy display power access
Tetsuo Handa (1):
staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context.
Thinh Nguyen (1):
usb: dwc3: Fix default lpm_nyet_threshold value
Tony Lindgren (1):
drm/omap: hdmi4_cec: Fix CEC clock handling for PM
Tzung-Bi Shih (1):
ASoC: Intel: kbl: fix wrong number of channels
Varun Prakash (1):
scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
Wangyan Wang (5):
drm/mediatek: fix the rate and divder of hdmi phy for MT2701 drm/mediatek: make implementation of recalc_rate() for MT2701 hdmi phy drm/mediatek: remove flag CLK_SET_RATE_PARENT for MT2701 hdmi phy drm/mediatek: using new factor for tvdpll for MT2701 hdmi phy drm/mediatek: no change parent rate in round_rate() for MT2701 hdmi phy
Wen Yang (1):
drm/mediatek: fix possible object reference leak
Will Deacon (2):
locking/futex: Allow low-level atomic operations to return -EAGAIN
arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
Young Xiao (1):
Bluetooth: hidp: fix buffer overflow
YueHaibing (2):
net: stmmac: Use bfsize1 in ndesc_init_rx_desc
iov_iter: Fix build error without CONFIG_CRYPTO
[email protected] (1):
KEYS: trusted: fix -Wvarags warning
shaoyunl (1):
drm/amdgpu: Adjust IB test timeout for XGMI configuration
tiancyin (1):
drm/amd/display: fix cursor black issue
wentalou (1):
drm/amdgpu: amdgpu_device_recover_vram always failed if only one node in shadow_list
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 0 -SUBLEVEL = 14 +SUBLEVEL = 15 EXTRAVERSION = NAME = Shy Crocodile
arch/arm64/include/asm/futex.h +34 -21
109 lines not on this page · raw message
arch/mips/kernel/kgdb.c +2 -1
@@ -33,6 +33,7 @@#include <asm/processor.h> #include <asm/sigcontext.h> #include <linux/uaccess.h> +#include <asm/irq_regs.h> static struct hard_trap_info { unsigned char tt; /* Trap type code for MIPS R3xxx and R4xxx */
@@ -214,7 +215,7 @@ void kgdb_call_nmi_hook(void *ignored) old_fs =get_fs ();set_fs (get_ds ()); -kgdb_nmicallback (raw_smp_processor_id (),NULL ); +kgdb_nmicallback (raw_smp_processor_id (),get_irq_regs ());set_fs (old_fs); }
arch/x86/events/intel/core.c +7 -1
@@ -3184,7 +3184,7 @@ static int intel_pmu_hw_config(struct perf_event *event)return ret;if (event->attr.precise_ip) { -if (!event->attr.freq) { +if (!(event->attr.freq || event->attr.wakeup_events)) { event->hw.flags |=PERF_X86_EVENT_AUTO_RELOAD ;if (!(event->attr.sample_type & ~intel_pmu_large_pebs_flags (event)))
@@ -3563,6 +3563,12 @@ static void intel_pmu_cpu_starting(int cpu) cpuc->lbr_sel =NULL ; +if (x86_pmu.flags &PMU_FL_TFA ) { +WARN_ON_ONCE (cpuc->tfa_shadow); + cpuc->tfa_shadow = ~0ULL ; +intel_set_tfa (cpuc, false); + } +if (x86_pmu.version >1 )flip_smm_bit (&x86_pmu.attr_freeze_on_smi);
arch/xtensa/include/asm/processor.h +12 -9
@@ -187,15 +187,18 @@ struct thread_struct {/* Clearing a0 terminates the backtrace. */ #define start_thread (regs, new_pc, new_sp) \ - memset(regs, 0, sizeof(*regs)); \ - regs->pc = new_pc; \ - regs->ps = USER_PS_VALUE; \ - regs->areg[1] = new_sp; \ - regs->areg[0] = 0; \ - regs->wmask = 1; \ - regs->depc = 0; \ - regs->windowbase = 0; \ - regs->windowstart = 1; + do { \ + memset((regs), 0, sizeof(*(regs))); \ + (regs)->pc = (new_pc); \ + (regs)->ps = USER_PS_VALUE; \ + (regs)->areg[1] = (new_sp); \ + (regs)->areg[0] = 0; \ + (regs)->wmask = 1; \ + (regs)->depc = 0; \ + (regs)->windowbase = 0; \ + (regs)->windowstart = 1; \ + (regs)->syscall = NO_SYSCALL; \ + } while (0)/* Forward declaration */ struct task_struct ;
block/blk-mq.c +7 -0
@@ -657,6 +657,13 @@ bool blk_mq_complete_request(struct request *rq) }EXPORT_SYMBOL (blk_mq_complete_request); +void blk_mq_complete_request_sync (struct request *rq) +{ +WRITE_ONCE (rq->state,MQ_RQ_COMPLETE ); + rq->q->mq_ops->complete (rq); +} +EXPORT_SYMBOL_GPL (blk_mq_complete_request_sync); +int blk_mq_request_started (struct request *rq) {return blk_mq_rq_state (rq) !=MQ_RQ_IDLE ;
drivers/acpi/acpi_lpss.c +2 -2
@@ -1142,8 +1142,8 @@ static struct dev_pm_domain acpi_lpss_pm_domain = { .thaw_noirq = acpi_subsys_thaw_noirq, .poweroff = acpi_subsys_suspend, .poweroff_late = acpi_lpss_suspend_late, - .poweroff_noirq = acpi_subsys_suspend_noirq, - .restore_noirq = acpi_subsys_resume_noirq, + .poweroff_noirq = acpi_lpss_suspend_noirq, + .restore_noirq = acpi_lpss_resume_noirq, .restore_early = acpi_lpss_resume_early, #endif .runtime_suspend = acpi_lpss_runtime_suspend,
drivers/block/virtio_blk.c +2 -0
@@ -513,6 +513,8 @@ static int init_vq(struct virtio_blk *vblk)if (err) num_vqs =1 ; + num_vqs = min_t(unsigned int, nr_cpu_ids, num_vqs); + vblk->vqs =kmalloc_array (num_vqs,sizeof (*vblk->vqs),GFP_KERNEL );if (!vblk->vqs)return -ENOMEM ;
drivers/bluetooth/hci_bcm.c +16 -4
@@ -228,9 +228,15 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered)int err;if (powered && !dev->res_enabled) { - err =regulator_bulk_enable (BCM_NUM_SUPPLIES , dev->supplies); -if (err) -return err; +/* Intel Macs use bcm_apple_get_resources() and don't +* have regulator supplies configured. +*/ +if (dev->supplies[0 ].supply) { + err =regulator_bulk_enable (BCM_NUM_SUPPLIES , + dev->supplies); +if (err) +return err; + }/* LPO clock needs to be 32.768 kHz */ err =clk_set_rate (dev->lpo_clk,32768 );
@@ -259,7 +265,13 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered)if (!powered && dev->res_enabled) {clk_disable_unprepare (dev->txco_clk);clk_disable_unprepare (dev->lpo_clk); -regulator_bulk_disable (BCM_NUM_SUPPLIES , dev->supplies); + +/* Intel Macs use bcm_apple_get_resources() and don't +* have regulator supplies configured. +*/ +if (dev->supplies[0 ].supply) +regulator_bulk_disable (BCM_NUM_SUPPLIES , + dev->supplies); }/* wait for device to power on and come out of reset */
drivers/clk/meson/gxbb.c +2 -0
@@ -2213,6 +2213,7 @@ static struct clk_regmap gxbb_vdec_1_div = { .offset = HHI_VDEC_CLK_CNTL, .shift = 0, .width = 7, + .flags = CLK_DIVIDER_ROUND_CLOSEST, }, .hw.init = &(struct clk_init_data ){ .name ="vdec_1_div" ,
@@ -2258,6 +2259,7 @@ static struct clk_regmap gxbb_vdec_hevc_div = { .offset = HHI_VDEC2_CLK_CNTL, .shift = 16, .width = 7, + .flags = CLK_DIVIDER_ROUND_CLOSEST, }, .hw.init = &(struct clk_init_data ){ .name ="vdec_hevc_div" ,
drivers/cpufreq/armada-37xx-cpufreq.c +19 -3
@@ -359,11 +359,11 @@ static int __init armada37xx_cpufreq_driver_init(void)struct armada_37xx_dvfs *dvfs;struct platform_device *pdev;unsigned long freq; -unsigned int cur_frequency; +unsigned int cur_frequency, base_frequency;struct regmap *nb_pm_base, *avs_base;struct device *cpu_dev;int load_lvl, ret; -struct clk *clk; +struct clk *clk, *parent; nb_pm_base =syscon_regmap_lookup_by_compatible ("marvell,armada-3700-nb-pm" );
@@ -399,6 +399,22 @@ static int __init armada37xx_cpufreq_driver_init(void)return PTR_ERR (clk); } + parent =clk_get_parent (clk); +if (IS_ERR (parent)) { +dev_err (cpu_dev,"Cannot get parent clock for CPU0\n" ); +clk_put (clk); +return PTR_ERR (parent); + } + +/* Get parent CPU frequency */ + base_frequency =clk_get_rate (parent); + +if (!base_frequency) { +dev_err (cpu_dev,"Failed to get parent clock rate for CPU\n" ); +clk_put (clk); +return -EINVAL ; + } +/* Get nominal (current) CPU frequency */ cur_frequency =clk_get_rate (clk);if (!cur_frequency) {
@@ -431,7 +447,7 @@ static int __init armada37xx_cpufreq_driver_init(void)for (load_lvl =ARMADA_37XX_DVFS_LOAD_0 ; load_lvl <LOAD_LEVEL_NR ; load_lvl++) {unsigned long u_volt = avs_map[dvfs->avs[load_lvl]] *1000 ; - freq = cur_frequency / dvfs->divider[load_lvl]; + freq = base_frequency / dvfs->divider[load_lvl]; ret =dev_pm_opp_add (cpu_dev, freq, u_volt);if (ret) goto remove_opp;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +9 -4
@@ -3158,11 +3158,16 @@ static int amdgpu_device_recover_vram(struct amdgpu_device *adev)break ;if (fence) { - r =dma_fence_wait_timeout (fence, false, tmo); + tmo =dma_fence_wait_timeout (fence, false, tmo);dma_fence_put (fence); fence = next; -if (r <=0 ) +if (tmo ==0 ) { + r = -ETIMEDOUT ;break ; + }else if (tmo <0 ) { + r = tmo; +break ; + } }else { fence = next; }
@@ -3173,8 +3178,8 @@ static int amdgpu_device_recover_vram(struct amdgpu_device *adev) tmo =dma_fence_wait_timeout (fence, false, tmo);dma_fence_put (fence); -if (r <=0 || tmo <=0 ) { -DRM_ERROR ("recover vram bo from shadow failed\n" ); +if (r <0 || tmo <=0 ) { +DRM_ERROR ("recover vram bo from shadow failed, r is %ld, tmo is %ld\n" , r, tmo);return -EIO ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +3 -0
@@ -35,6 +35,7 @@#include "amdgpu_trace.h" #define AMDGPU_IB_TEST_TIMEOUT msecs_to_jiffies(1000) +#define AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT msecs_to_jiffies(2000)/* * IB
@@ -344,6 +345,8 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)* cost waiting for it coming back under RUNTIME only */ tmo_gfx =8 *AMDGPU_IB_TEST_TIMEOUT ; + }else if (adev->gmc.xgmi.hive_id) { + tmo_gfx =AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT ; }for (i =0 ; i < adev->num_rings; ++i) {
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -0
@@ -320,6 +320,7 @@ static const struct kfd_deviceid supported_devices[] = { { 0x9876, &carrizo_device_info }, /* Carrizo */ { 0x9877, &carrizo_device_info }, /* Carrizo */ { 0x15DD, &raven_device_info }, /* Raven */ + { 0x15D8, &raven_device_info }, /* Raven */ #endif { 0x67A0, &hawaii_device_info }, /* Hawaii */ { 0x67A1, &hawaii_device_info }, /* Hawaii */
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -0
@@ -4455,6 +4455,7 @@ static void handle_cursor_update(struct drm_plane *plane, amdgpu_crtc->cursor_width = plane->state->crtc_w; amdgpu_crtc->cursor_height = plane->state->crtc_h; +memset (&attributes,0 ,sizeof (attributes)); attributes.address.high_part =upper_32_bits (address); attributes.address.low_part =lower_32_bits (address); attributes.width = plane->state->crtc_w;
drivers/gpu/drm/mediatek/mtk_dpi.c +3 -5
@@ -662,13 +662,11 @@ static unsigned int mt8173_calculate_factor(int clock)static unsigned int mt2701_calculate_factor (int clock) {if (clock <=64000 ) -return 16 ; -else if (clock <=128000 ) -return 8 ; -else if (clock <=256000 )return 4 ; -else +else if (clock <=128000 )return 2 ; +else +return 1 ; }static const struct mtk_dpi_conf mt8173_conf = {
drivers/gpu/drm/mediatek/mtk_hdmi.c +1 -1
@@ -1479,7 +1479,6 @@ static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi,if (IS_ERR (regmap)) ret =PTR_ERR (regmap);if (ret) { - ret =PTR_ERR (regmap);dev_err (dev,"Failed to get system configuration registers: %d\n" , ret);
@@ -1515,6 +1514,7 @@ static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi,of_node_put (remote); hdmi->ddc_adpt =of_find_i2c_adapter_by_node (i2c_np); +of_node_put (i2c_np);if (!hdmi->ddc_adpt) {dev_err (dev,"Failed to get ddc i2c adapter by node\n" );return -EINVAL ;
drivers/gpu/drm/mediatek/mtk_hdmi_phy.c +5 -30
@@ -15,28 +15,6 @@ static const struct phy_ops mtk_hdmi_phy_dev_ops = { .owner = THIS_MODULE, }; -long mtk_hdmi_pll_round_rate (struct clk_hw *hw,unsigned long rate, -unsigned long *parent_rate) -{ -struct mtk_hdmi_phy *hdmi_phy =to_mtk_hdmi_phy (hw); - - hdmi_phy->pll_rate = rate; -if (rate <=74250000 ) - *parent_rate = rate; -else - *parent_rate = rate /2 ; - -return rate; -} - -unsigned long mtk_hdmi_pll_recalc_rate (struct clk_hw *hw, -unsigned long parent_rate) -{ -struct mtk_hdmi_phy *hdmi_phy =to_mtk_hdmi_phy (hw); - -return hdmi_phy->pll_rate; -} -void mtk_hdmi_phy_clear_bits (struct mtk_hdmi_phy *hdmi_phy,u32 offset,u32 bits) {
@@ -110,13 +88,11 @@ mtk_hdmi_phy_dev_get_ops(const struct mtk_hdmi_phy *hdmi_phy)return NULL ; } -static void mtk_hdmi_phy_clk_get_ops (struct mtk_hdmi_phy *hdmi_phy, -const struct clk_ops **ops) +static void mtk_hdmi_phy_clk_get_data (struct mtk_hdmi_phy *hdmi_phy, +struct clk_init_data *clk_init) { -if (hdmi_phy && hdmi_phy->conf && hdmi_phy->conf->hdmi_phy_clk_ops) - *ops = hdmi_phy->conf->hdmi_phy_clk_ops; -else -dev_err (hdmi_phy->dev,"Failed to get clk ops of phy\n" ); + clk_init->flags = hdmi_phy->conf->flags; + clk_init->ops = hdmi_phy->conf->hdmi_phy_clk_ops; }static int mtk_hdmi_phy_probe (struct platform_device *pdev)
@@ -129,7 +105,6 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev)struct clk_init_data clk_init = { .num_parents =1 , .parent_names = (const char *const *)&ref_clk_name, - .flags =CLK_SET_RATE_PARENT |CLK_SET_RATE_GATE , };struct phy *phy;
@@ -167,7 +142,7 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev) hdmi_phy->dev = dev; hdmi_phy->conf = (struct mtk_hdmi_phy_conf *)of_device_get_match_data (dev); -mtk_hdmi_phy_clk_get_ops (hdmi_phy, &clk_init.ops); +mtk_hdmi_phy_clk_get_data (hdmi_phy, &clk_init); hdmi_phy->pll_hw.init = &clk_init; hdmi_phy->pll =devm_clk_register (dev, &hdmi_phy->pll_hw);if (IS_ERR (hdmi_phy->pll)) {
drivers/gpu/drm/mediatek/mtk_hdmi_phy.h +1 -4
@@ -21,6 +21,7 @@ struct mtk_hdmi_phy;struct mtk_hdmi_phy_conf {bool tz_disabled; +unsigned long flags;const struct clk_ops *hdmi_phy_clk_ops;void (*hdmi_phy_enable_tmds)(struct mtk_hdmi_phy *hdmi_phy);void (*hdmi_phy_disable_tmds)(struct mtk_hdmi_phy *hdmi_phy);
@@ -48,10 +49,6 @@ void mtk_hdmi_phy_set_bits(struct mtk_hdmi_phy *hdmi_phy, u32 offset,void mtk_hdmi_phy_mask (struct mtk_hdmi_phy *hdmi_phy,u32 offset,u32 val,u32 mask);struct mtk_hdmi_phy *to_mtk_hdmi_phy (struct clk_hw *hw); -long mtk_hdmi_pll_round_rate (struct clk_hw *hw,unsigned long rate, -unsigned long *parent_rate); -unsigned long mtk_hdmi_pll_recalc_rate (struct clk_hw *hw, -unsigned long parent_rate);extern struct platform_driver mtk_hdmi_phy_driver;extern struct mtk_hdmi_phy_conf mtk_hdmi_phy_8173_conf;
drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c +43 -6
102 lines not on this page · raw message
drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c +23 -0
@@ -199,6 +199,20 @@ static void mtk_hdmi_pll_unprepare(struct clk_hw *hw)usleep_range (100 ,150 ); } +static long mtk_hdmi_pll_round_rate (struct clk_hw *hw,unsigned long rate, +unsigned long *parent_rate) +{ +struct mtk_hdmi_phy *hdmi_phy =to_mtk_hdmi_phy (hw); + + hdmi_phy->pll_rate = rate; +if (rate <=74250000 ) + *parent_rate = rate; +else + *parent_rate = rate /2 ; + +return rate; +} +static int mtk_hdmi_pll_set_rate (struct clk_hw *hw,unsigned long rate,unsigned long parent_rate) {
@@ -285,6 +299,14 @@ static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,return 0 ; } +static unsigned long mtk_hdmi_pll_recalc_rate (struct clk_hw *hw, +unsigned long parent_rate) +{ +struct mtk_hdmi_phy *hdmi_phy =to_mtk_hdmi_phy (hw); + +return hdmi_phy->pll_rate; +} +static const struct clk_ops mtk_hdmi_phy_pll_ops = { .prepare = mtk_hdmi_pll_prepare, .unprepare = mtk_hdmi_pll_unprepare,
@@ -309,6 +331,7 @@ static void mtk_hdmi_phy_disable_tmds(struct mtk_hdmi_phy *hdmi_phy) }struct mtk_hdmi_phy_conf mtk_hdmi_phy_8173_conf = { + .flags =CLK_SET_RATE_PARENT |CLK_SET_RATE_GATE , .hdmi_phy_clk_ops = &mtk_hdmi_phy_pll_ops, .hdmi_phy_enable_tmds = mtk_hdmi_phy_enable_tmds, .hdmi_phy_disable_tmds = mtk_hdmi_phy_disable_tmds,
drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c +19 -7
@@ -175,6 +175,7 @@ static int hdmi_cec_adap_enable(struct cec_adapter *adap, bool enable)REG_FLD_MOD (core->base,HDMI_CORE_SYS_INTR_UNMASK4 ,0 ,3 ,3 );hdmi_wp_clear_irqenable (core->wp,HDMI_IRQ_CORE );hdmi_wp_set_irqstatus (core->wp,HDMI_IRQ_CORE ); +REG_FLD_MOD (core->wp->base,HDMI_WP_CLK ,0 ,5 ,0 );hdmi4_core_disable (core);return 0 ; }
@@ -182,16 +183,24 @@ static int hdmi_cec_adap_enable(struct cec_adapter *adap, bool enable)if (err)return err; +/* +* Initialize CEC clock divider: CEC needs 2MHz clock hence +* set the divider to 24 to get 48/24=2MHz clock +*/ +REG_FLD_MOD (core->wp->base,HDMI_WP_CLK ,0x18 ,5 ,0 ); +/* Clear TX FIFO */ if (!hdmi_cec_clear_tx_fifo (adap)) {pr_err ("cec-%s: could not clear TX FIFO\n" , adap->name); -return -EIO ; + err = -EIO ; + goto err_disable_clk; }/* Clear RX FIFO */ if (!hdmi_cec_clear_rx_fifo (adap)) {pr_err ("cec-%s: could not clear RX FIFO\n" , adap->name); -return -EIO ; + err = -EIO ; + goto err_disable_clk; }/* Clear CEC interrupts */
@@ -236,6 +245,12 @@ static int hdmi_cec_adap_enable(struct cec_adapter *adap, bool enable)hdmi_write_reg (core->base,HDMI_CEC_INT_STATUS_1 , temp); }return 0 ; + +err_disable_clk: +REG_FLD_MOD (core->wp->base,HDMI_WP_CLK ,0 ,5 ,0 ); +hdmi4_core_disable (core); + +return err; }static int hdmi_cec_adap_log_addr (struct cec_adapter *adap,u8 log_addr)
@@ -333,11 +348,8 @@ int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,return ret; core->wp = wp; -/* -* Initialize CEC clock divider: CEC needs 2MHz clock hence -* set the devider to 24 to get 48/24=2MHz clock -*/ -REG_FLD_MOD (core->wp->base,HDMI_WP_CLK ,0x18 ,5 ,0 ); +/* Disable clock initially, hdmi_cec_adap_enable() manages it */ +REG_FLD_MOD (core->wp->base,HDMI_WP_CLK ,0 ,5 ,0 ); ret =cec_register_adapter (core->adap, &pdev->dev);if (ret <0 ) {
drivers/gpu/drm/sun4i/sun8i_tcon_top.c +3 -2
@@ -227,7 +227,7 @@ static int sun8i_tcon_top_bind(struct device *dev, struct device *master, err_unregister_gates:for (i =0 ; i <CLK_NUM ; i++) -if (clk_data->hws[i]) +if (!IS_ERR_OR_NULL (clk_data->hws[i]))clk_hw_unregister_gate (clk_data->hws[i]);clk_disable_unprepare (tcon_top->bus); err_assert_reset:
@@ -245,7 +245,8 @@ static void sun8i_tcon_top_unbind(struct device *dev, struct device *master,of_clk_del_provider (dev->of_node);for (i =0 ; i <CLK_NUM ; i++) -clk_hw_unregister_gate (clk_data->hws[i]); +if (clk_data->hws[i]) +clk_hw_unregister_gate (clk_data->hws[i]);clk_disable_unprepare (tcon_top->bus);reset_control_assert (tcon_top->rst);
drivers/hv/hv.c +0 -1
@@ -408,7 +408,6 @@ int hv_synic_cleanup(unsigned int cpu)clockevents_unbind_device (hv_cpu->clk_evt, cpu);hv_ce_shutdown (hv_cpu->clk_evt); -put_cpu_ptr (hv_cpu); }hv_get_synint_state (VMBUS_MESSAGE_SINT , shared_sint.as_uint64);
drivers/hwtracing/intel_th/pci.c +5 -0
@@ -165,6 +165,11 @@ static const struct pci_device_id intel_th_pci_id_table[] = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x34a6), .driver_data = (kernel_ulong_t)&intel_th_2x, }, + { +/* Comet Lake */ + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x02a6), + .driver_data = (kernel_ulong_t)&intel_th_2x, + }, { 0 }, };
drivers/i3c/master.c +3 -2
@@ -385,8 +385,9 @@ static void i3c_bus_set_addr_slot_status(struct i3c_bus *bus, u16 addr,return ; ptr = bus->addrslots + (bitpos /BITS_PER_LONG ); - *ptr &= ~(I3C_ADDR_SLOT_STATUS_MASK << (bitpos %BITS_PER_LONG )); - *ptr |= status << (bitpos %BITS_PER_LONG ); + *ptr &= ~((unsigned long )I3C_ADDR_SLOT_STATUS_MASK << + (bitpos %BITS_PER_LONG )); + *ptr |= (unsigned long )status << (bitpos %BITS_PER_LONG ); }static bool i3c_bus_dev_addr_is_avail (struct i3c_bus *bus,u8 addr)
drivers/iio/adc/qcom-spmi-adc5.c +1 -0
@@ -664,6 +664,7 @@ static const struct of_device_id adc5_match_table[] = { }, { } }; +MODULE_DEVICE_TABLE (of, adc5_match_table);static int adc5_get_dt_data (struct adc5_chip *adc,struct device_node *node) {
drivers/infiniband/hw/hfi1/chip.c +19 -7
@@ -13219,7 +13219,7 @@ static int set_up_context_variables(struct hfi1_devdata *dd)int total_contexts;int ret;unsigned ngroups; -int qos_rmt_count; +int rmt_count;int user_rmt_reduced;u32 n_usr_ctxts;u32 send_contexts =chip_send_contexts (dd);
@@ -13281,10 +13281,20 @@ static int set_up_context_variables(struct hfi1_devdata *dd) n_usr_ctxts = rcv_contexts - total_contexts; } -/* each user context requires an entry in the RMT */ - qos_rmt_count =qos_rmt_entries (dd,NULL ,NULL ); -if (qos_rmt_count + n_usr_ctxts >NUM_MAP_ENTRIES ) { - user_rmt_reduced =NUM_MAP_ENTRIES - qos_rmt_count; +/* +* The RMT entries are currently allocated as shown below: +* 1. QOS (0 to 128 entries); +* 2. FECN for PSM (num_user_contexts + num_vnic_contexts); +* 3. VNIC (num_vnic_contexts). +* It should be noted that PSM FECN oversubscribe num_vnic_contexts +* entries of RMT because both VNIC and PSM could allocate any receive +* context between dd->first_dyn_alloc_text and dd->num_rcv_contexts, +* and PSM FECN must reserve an RMT entry for each possible PSM receive +* context. +*/ + rmt_count =qos_rmt_entries (dd,NULL ,NULL ) + (num_vnic_contexts *2 ); +if (rmt_count + n_usr_ctxts >NUM_MAP_ENTRIES ) { + user_rmt_reduced =NUM_MAP_ENTRIES - rmt_count; dd_dev_err(dd, "RMT size is reducing the number of user receive contexts from %u to %d\n", n_usr_ctxts,
@@ -14272,9 +14282,11 @@ static void init_user_fecn_handling(struct hfi1_devdata *dd,u64 reg;int i, idx, regoff, regidx;u8 offset; +u32 total_cnt;/* there needs to be enough room in the map table */ -if (rmt->used + dd->num_user_contexts >=NUM_MAP_ENTRIES ) { + total_cnt = dd->num_rcv_contexts - dd->first_dyn_alloc_ctxt; +if (rmt->used + total_cnt >=NUM_MAP_ENTRIES ) {dd_dev_err (dd,"User FECN handling disabled - too many user contexts allocated\n" );return ; }
@@ -14328,7 +14340,7 @@ static void init_user_fecn_handling(struct hfi1_devdata *dd,/* add rule 1 */ add_rsm_rule (dd,RSM_INS_FECN , &rrd); - rmt->used += dd->num_user_contexts; + rmt->used += total_cnt; }/* Initialize RSM for VNIC */
drivers/infiniband/hw/hfi1/qp.c +2 -0
@@ -834,6 +834,8 @@ void notify_error_qp(struct rvt_qp *qp)if (!list_empty (&priv->s_iowait.list) && !(qp->s_flags &RVT_S_BUSY )) { qp->s_flags &= ~HFI1_S_ANY_WAIT_IO ; +iowait_clear_flag (&priv->s_iowait,IOWAIT_PENDING_IB ); +iowait_clear_flag (&priv->s_iowait,IOWAIT_PENDING_TID );list_del_init (&priv->s_iowait.list); priv->s_iowait.lock =NULL ;rvt_put_qp (qp);
drivers/infiniband/hw/hfi1/rc.c +2 -2
@@ -2302,7 +2302,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet)update_ack_queue (qp, next); } e = &qp->s_ack_queue[qp->r_head_ack_queue]; -if (e->opcode ==OP (RDMA_READ_REQUEST ) && e->rdma_sge.mr) { +if (e->rdma_sge.mr) {rvt_put_mr (e->rdma_sge.mr); e->rdma_sge.mr =NULL ; }
@@ -2376,7 +2376,7 @@ void hfi1_rc_rcv(struct hfi1_packet *packet)update_ack_queue (qp, next); } e = &qp->s_ack_queue[qp->r_head_ack_queue]; -if (e->opcode ==OP (RDMA_READ_REQUEST ) && e->rdma_sge.mr) { +if (e->rdma_sge.mr) {rvt_put_mr (e->rdma_sge.mr); e->rdma_sge.mr =NULL ; }
drivers/infiniband/hw/hns/hns_roce_hem.c +4 -2
@@ -763,6 +763,8 @@ void *hns_roce_table_find(struct hns_roce_dev *hr_dev, idx_offset = (obj & (table->num_obj -1 )) % obj_per_chunk; dma_offset = offset = idx_offset * table->obj_size; }else { +u32 seg_size =64 ;/* 8 bytes per BA and 8 BA per segment */ +hns_roce_calc_hem_mhop (hr_dev, table, &mhop_obj, &mhop);/* mtt mhop */ i = mhop.l0_idx;
@@ -774,8 +776,8 @@ void *hns_roce_table_find(struct hns_roce_dev *hr_dev, hem_idx = i; hem = table->hem[hem_idx]; - dma_offset = offset = (obj & (table->num_obj -1 )) * - table->obj_size % mhop.bt_chunk_size; + dma_offset = offset = (obj & (table->num_obj -1 )) * seg_size % + mhop.bt_chunk_size;if (mhop.hop_num ==2 ) dma_offset = offset =0 ; }
drivers/infiniband/hw/hns/hns_roce_mr.c +2 -2
@@ -746,7 +746,6 @@ static int hns_roce_write_mtt_chunk(struct hns_roce_dev *hr_dev,struct hns_roce_hem_table *table;dma_addr_t dma_handle;__le64 *mtts; -u32 s = start_index *sizeof (u64);u32 bt_page_size;u32 i;
@@ -780,7 +779,8 @@ static int hns_roce_write_mtt_chunk(struct hns_roce_dev *hr_dev,return -EINVAL ; mtts =hns_roce_table_find (hr_dev, table, - mtt->first_seg + s / hr_dev->caps.mtt_entry_sz, + mtt->first_seg + + start_index /HNS_ROCE_MTT_ENTRY_PER_SEG , &dma_handle);if (!mtts)return -ENOMEM ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c +2 -0
@@ -1125,6 +1125,8 @@ static void pvrdma_pci_remove(struct pci_dev *pdev)pvrdma_page_dir_cleanup (dev, &dev->cq_pdir);pvrdma_page_dir_cleanup (dev, &dev->async_pdir);pvrdma_free_slots (dev); +dma_free_coherent (&pdev->dev,sizeof (*dev->dsr), dev->dsr, + dev->dsrbase);iounmap (dev->regs);kfree (dev->sgid_tbl);
drivers/iommu/amd_iommu_init.c +1 -1
@@ -358,7 +358,7 @@ static void iommu_write_l2(struct amd_iommu *iommu, u8 address, u32 val)static void iommu_set_exclusion_range (struct amd_iommu *iommu) {u64 start = iommu->exclusion_start &PAGE_MASK ; -u64 limit = (start + iommu->exclusion_length) &PAGE_MASK ; +u64 limit = (start + iommu->exclusion_length -1 ) &PAGE_MASK ;u64 entry;if (!iommu->exclusion_start)
drivers/net/ethernet/stmicro/stmmac/norm_desc.c +1 -1
@@ -140,7 +140,7 @@ static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode, p->des0 |=cpu_to_le32 (RDES0_OWN ); bfsize1 =min (bfsize, BUF_SIZE_2KiB -1 ); - p->des1 |=cpu_to_le32 (bfsize &RDES1_BUFFER1_SIZE_MASK ); + p->des1 |=cpu_to_le32 (bfsize1 &RDES1_BUFFER1_SIZE_MASK );if (mode ==STMMAC_CHAIN_MODE )ndesc_rx_set_on_chain (p, end);
drivers/nvme/host/core.c +1 -1
@@ -291,7 +291,7 @@ bool nvme_cancel_request(struct request *req, void *data, bool reserved) "Cancelling I/O %d", req->tag);nvme_req (req)->status =NVME_SC_ABORT_REQ ; -blk_mq_complete_request (req); +blk_mq_complete_request_sync (req);return true; }EXPORT_SYMBOL_GPL (nvme_cancel_request);
drivers/nvme/host/fc.c +15 -5
@@ -1857,7 +1857,7 @@ nvme_fc_init_queue(struct nvme_fc_ctrl *ctrl, int idx)memset (queue,0 ,sizeof (*queue)); queue->ctrl = ctrl; queue->qnum = idx; -atomic_set (&queue->csn,1 ); +atomic_set (&queue->csn,0 ); queue->dev = ctrl->dev;if (idx >0 )
@@ -1899,7 +1899,7 @@ nvme_fc_free_queue(struct nvme_fc_queue *queue)*/ queue->connection_id =0 ; -atomic_set (&queue->csn,1 ); +atomic_set (&queue->csn,0 ); } static void
@@ -2195,7 +2195,6 @@ nvme_fc_start_fcp_op(struct nvme_fc_ctrl *ctrl, struct nvme_fc_queue *queue, {struct nvme_fc_cmd_iu *cmdiu = &op->cmd_iu;struct nvme_command *sqe = &cmdiu->sqe; -u32 csn;int ret, opstate;/*
@@ -2210,8 +2209,6 @@ nvme_fc_start_fcp_op(struct nvme_fc_ctrl *ctrl, struct nvme_fc_queue *queue,/* format the FC-NVME CMD IU and fcp_req */ cmdiu->connection_id =cpu_to_be64 (queue->connection_id); - csn =atomic_inc_return (&queue->csn); - cmdiu->csn =cpu_to_be32 (csn); cmdiu->data_len =cpu_to_be32 (data_len);switch (io_dir) {case NVMEFC_FCP_WRITE :
@@ -2269,11 +2266,24 @@ nvme_fc_start_fcp_op(struct nvme_fc_ctrl *ctrl, struct nvme_fc_queue *queue,if (!(op->flags &FCOP_FLAGS_AEN ))blk_mq_start_request (op->rq); + cmdiu->csn =cpu_to_be32 (atomic_inc_return (&queue->csn)); ret = ctrl->lport->ops->fcp_io (&ctrl->lport->localport, &ctrl->rport->remoteport, queue->lldd_handle, &op->fcp_req);if (ret) { +/* +* If the lld fails to send the command is there an issue with +* the csn value? If the command that fails is the Connect, +* no - as the connection won't be live. If it is a command +* post-connect, it's possible a gap in csn may be created. +* Does this matter? As Linux initiators don't send fused +* commands, no. The gap would exist, but as there's nothing +* that depends on csn order to be delivered on the target +* side, it shouldn't hurt. It would be difficult for a +* target to even detect the csn gap as it has no idea when the +* cmd with the csn was supposed to arrive. +*/ opstate =atomic_xchg (&op->state,FCPOP_STATE_COMPLETE );__nvme_fc_fcpop_chk_teardowns (ctrl, op, opstate);
drivers/nvme/target/admin-cmd.c +5 -0
@@ -32,6 +32,11 @@ u32 nvmet_get_log_page_len(struct nvme_command *cmd)return len; } +u64 nvmet_get_log_page_offset (struct nvme_command *cmd) +{ +return le64_to_cpu (cmd->get_log_page.lpo); +} +static void nvmet_execute_get_log_page_noop (struct nvmet_req *req) {nvmet_req_complete (req,nvmet_zero_sgl (req,0 , req->data_len));
drivers/nvme/target/discovery.c +45 -23
107 lines not on this page · raw message
drivers/nvme/target/nvmet.h +1 -0
@@ -436,6 +436,7 @@ u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf,u16 nvmet_zero_sgl (struct nvmet_req *req,off_t off,size_t len);u32 nvmet_get_log_page_len (struct nvme_command *cmd); +u64 nvmet_get_log_page_offset (struct nvme_command *cmd);extern struct list_head *nvmet_ports; void nvmet_port_disc_changed(struct nvmet_port *port,
drivers/platform/x86/pmc_atom.c +1 -1
@@ -396,7 +396,7 @@ static int pmc_dbgfs_register(struct pmc_dev *pmc)* Some systems need one or more of their pmc_plt_clks to be * marked as critical. */ -static const struct dmi_system_id critclk_systems[]__initconst = { +static const struct dmi_system_id critclk_systems[] = { { .ident ="MPL CEC1x" , .matches = {
drivers/scsi/csiostor/csio_scsi.c +4 -1
@@ -1713,8 +1713,11 @@ csio_scsi_err_handler(struct csio_hw *hw, struct csio_ioreq *req) } out: -if (req->nsge >0 ) +if (req->nsge >0 ) {scsi_dma_unmap (cmnd); +if (req->dcopy && (host_status ==DID_OK )) + host_status =csio_scsi_copy_to_sgl (hw, req); + } cmnd->result = (((host_status) <<16 ) | scsi_status); cmnd->scsi_done (cmnd);
drivers/scsi/lpfc/lpfc_attr.c +98 -94
623 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_ct.c +6 -6
@@ -1430,7 +1430,7 @@ lpfc_vport_symbolic_port_name(struct lpfc_vport *vport, char *symbol,* Name object. NPIV is not in play so this integer * value is sufficient and unique per FC-ID. */ - n =snprintf (symbol, size,"%d" , vport->phba->brd_no); + n =scnprintf (symbol, size,"%d" , vport->phba->brd_no);return n; }
@@ -1444,26 +1444,26 @@ lpfc_vport_symbolic_node_name(struct lpfc_vport *vport, char *symbol,lpfc_decode_firmware_rev (vport->phba, fwrev,0 ); - n =snprintf (symbol, size,"Emulex %s" , vport->phba->ModelName); + n =scnprintf (symbol, size,"Emulex %s" , vport->phba->ModelName);if (size < n)return n; - n +=snprintf (symbol + n, size - n," FV%s" , fwrev); + n +=scnprintf (symbol + n, size - n," FV%s" , fwrev);if (size < n)return n; - n +=snprintf (symbol + n, size - n," DV%s." , + n +=scnprintf (symbol + n, size - n," DV%s." , lpfc_release_version);if (size < n)return n; - n +=snprintf (symbol + n, size - n," HN:%s." , + n +=scnprintf (symbol + n, size - n," HN:%s." ,init_utsname ()->nodename);if (size < n)return n;/* Note :- OS name is "Linux" */ - n +=snprintf (symbol + n, size - n," OS:%s\n" , + n +=scnprintf (symbol + n, size - n," OS:%s\n" ,init_utsname ()->sysname);return n; }
drivers/scsi/lpfc/lpfc_debugfs.c +229 -226
1,279 lines not on this page · raw message
kernel/events/core.c +43 -9
52 lines not on this page · raw message
kernel/futex.c +117 -71
188 lines not on this page · raw message
lib/ubsan.c +23 -26
49 lines not on this page · raw message
sound/soc/codecs/hdac_hda.c +39 -14
53 lines not on this page · raw message
sound/soc/codecs/hdmi-codec.c +59 -59
118 lines not on this page · raw message
sound/soc/codecs/nau8824.c +38 -8
46 lines not on this page · raw message
sound/soc/codecs/rt5682.c +25 -31
56 lines not on this page · raw message
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +1 -1
Lines of this file are not shown. View the raw message.
sound/soc/soc-pcm.c +38 -9
47 lines not on this page · raw message
sound/soc/stm/stm32_sai_sub.c +71 -21
92 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.