[PATCH v7 09/13] drivers: devfreq: events: add Exynos PPMU new events

2019-05-06 Thread Lukasz Luba
Define new performance events supported by Exynos5422 SoC counters. The counters are built-in in Dynamic Memory Controller and provide information regarding memory utilization. Signed-off-by: Lukasz Luba --- drivers/devfreq/event/exynos-ppmu.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH v7 10/13] ARM: dts: exynos: add chipid label and syscon compatible

2019-05-06 Thread Lukasz Luba
Add the chipid label which allows to use it in phandle from other device. Use syscon in compatible to get the regmap of the device register set. The chipid is used in DMC during initialization to compare compatibility. Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos5.dtsi | 4 ++-- 1

[PATCH v7 04/13] dt-bindings: ddr: rename lpddr2 directory

2019-05-06 Thread Lukasz Luba
Change directory name to be ready for new types of memories. Signed-off-by: Lukasz Luba --- .../devicetree/bindings/ddr/lpddr2-timings.txt | 52 +++ Documentation/devicetree/bindings/ddr/lpddr2.txt | 102 + .../devicetree/bindings/lpddr2/lpddr2-timings.txt |

[PATCH v7 05/13] dt-bindings: ddr: add LPDDR3 memories

2019-05-06 Thread Lukasz Luba
Specifies the AC timing parameters of the LPDDR3 memory device. Signed-off-by: Lukasz Luba --- .../devicetree/bindings/ddr/lpddr3-timings.txt | 58 + Documentation/devicetree/bindings/ddr/lpddr3.txt | 97 ++ 2 files changed, 155 insertions(+) create mode

[PATCH v7 12/13] ARM: dts: exynos: add DMC device for exynos5422

2019-05-06 Thread Lukasz Luba
Add description of Dynamic Memory Controller and PPMU counters. They are used by exynos5422-dmc driver. There is a definition of the memory chip, which is then used during calculation of timings for each OPP. The algorithm in the driver needs these two sets to bound the timings. Signed-off-by:

[PATCH v7 13/13] ARM: exynos_defconfig: enable DMC driver

2019-05-06 Thread Lukasz Luba
Enable driver for Exynos5422 Dynamic Memory Controller supporting dynamic frequency and voltage scaling in Exynos5422 SoCs. Signed-off-by: Lukasz Luba --- arch/arm/configs/exynos_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/exynos_defconfig

[PATCH v7 08/13] drivers: memory: add DMC driver for Exynos5422

2019-05-06 Thread Lukasz Luba
This patch adds driver for Exynos5422 Dynamic Memory Controller. The driver provides support for dynamic frequency and voltage scaling for DMC and DRAM. It supports changing timings of DRAM running with different frequency. There is also an algorithm to calculate timigns based on memory

[PATCH v7 01/13] clk: samsung: add needed IDs for DMC clocks in Exynos5420

2019-05-06 Thread Lukasz Luba
Define new IDs for clocks used by Dynamic Memory Controller in Exynos5422 SoC. Acked-by: Rob Herring Signed-off-by: Lukasz Luba --- include/dt-bindings/clock/exynos5420.h | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git

[PATCH 5.0 002/122] seccomp: Make NEW_LISTENER and TSYNC flags exclusive

2019-05-06 Thread Greg Kroah-Hartman
From: Tycho Andersen commit 7a0df7fbc14505e2e2be19ed08654a09e1ed5bf6 upstream. As the comment notes, the return codes for TSYNC and NEW_LISTENER conflict, because they both return positive values, one in the case of success and one in the case of error. So, let's disallow both of these flags

[PATCH 5.0 033/122] batman-adv: Reduce tt_local hash refcnt only for removed entry

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 3d65b9accab4a7ed5038f6df403fbd5e298398c7 ] The batadv_hash_remove is a function which searches the hashtable for an entry using a needle, a hashtable bucket selection function and a compare function. It will lock the bucket list and delete an entry when the compare function

[PATCH 5.0 038/122] ARM: dts: Fix dcan clkctrl clock for am3

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 7d56bedb2730dc2ea8abf0fd7240ee99ecfee3c9 ] We must not use legacy clock defines for dts clckctrl clocks as the offsets will be wrong. Fixes: 87fc89ced3a7 ("ARM: dts: am335x: Move l4 child devices to probe them with ti-sysc") Cc: Tero Kristo Signed-off-by: Tony Lindgren

[PATCH 5.0 035/122] batman-adv: fix warning in function batadv_v_elp_get_throughput

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit ca8c3b922e7032aff6cc3fd05548f4df1f3df90e ] When CONFIG_CFG80211 isn't enabled the compiler correcly warns about 'sinfo.pertid' may be unused. It can also happen for other error conditions that it not warn about. net/batman-adv/bat_v_elp.c: In function

[PATCH 5.0 020/122] KVM: lapic: Disable timer advancement if adaptive tuning goes haywire

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 57bf67e73ce9bcce2258890f5abf2adf5f619f1a upstream. To minimize the latency of timer interrupts as observed by the guest, KVM adjusts the values it programs into the host timers to account for the host's overhead of programming and handling the timer event. Now

[PATCH 5.0 024/122] KVM: lapic: Convert guest TSC to host time domain if necessary

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Christopherson commit b6aa57c69cb26ea0160c51f7cf45f1af23542686 upstream. To minimize the latency of timer interrupts as observed by the guest, KVM adjusts the values it programs into the host timers to account for the host's overhead of programming and handling the timer event. In

[PATCH 5.0 018/122] USB: core: Fix unterminated string returned by usb_string()

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit c01c348ecdc66085e44912c97368809612231520 upstream. Some drivers (such as the vub300 MMC driver) expect usb_string() to return a properly NUL-terminated string, even when an error occurs. (In fact, vub300's probe routine doesn't bother to check the return code from

Re: [PATCH] drivers: thermal: processor_thermal: Downgrade error message

2019-05-06 Thread Srinivas Pandruvada
On Mon, 2019-05-06 at 20:50 +0800, Zhang Rui wrote: > On δΈ€, 2019-04-29 at 20:42 -0700, Srinivas Pandruvada wrote: > > Downgrade "Unsupported event" message from dev_err to dev_dbg. > > Otherwise it > > floods with this message one some platforms. > > > > Signed-off-by: Srinivas Pandruvada < > >

[PATCH 5.0 054/122] net: stmmac: fix dropping of multi-descriptor RX frames

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 8ac0c24fe1c256af6644caf3d311029440ec2fbd ] Packets without the last descriptor set should be dropped early. If we receive a frame larger than the DMA buffer, the HW will continue using the next descriptor. Driver mistakes these as individual frames, and sometimes a truncated

[PATCH 5.0 058/122] mfd: twl-core: Disable IRQ while suspended

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 20bb907f7dc82ecc9e135ad7067ac7eb69c81222 ] Since commit 6e2bd956936 ("i2c: omap: Use noirq system sleep pm ops to idle device for suspend") on gta04 we have handle_twl4030_pih() called in situations where pm_runtime_get() in i2c-omap.c returns -EACCES. [ 86.474365] Freezing

[PATCH 5.0 055/122] net: stmmac: dont log oversized frames

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 057a0c5642a2ff2db7c421cdcde34294a23bf37b ] This is log is harmful as it can trigger multiple times per packet. Delete it. Signed-off-by: Aaro Koskinen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin (Microsoft) --- drivers/net/ethernet/stmicro/stmmac/norm_desc.c |

[PATCH 5.0 072/122] net: hns: Fix WARNING when remove HNS driver with SMMU enabled

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 8601a99d7c0256b7a7fdd1ab14cf6c1f1dfcadc6 ] When enable SMMU, remove HNS driver will cause a WARNING: [ 141.924177] WARNING: CPU: 36 PID: 2708 at drivers/iommu/dma-iommu.c:443 __iommu_dma_unmap+0xc0/0xc8 [ 141.954673] Modules linked in: hns_enet_drv(-) [ 141.963615] CPU: 36

[PATCH 5.0 068/122] net: hns: fix KASAN: use-after-free in hns_nic_net_xmit_hw()

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 3a39a12ad364a9acd1038ba8da67cd8430f30de4 ] This patch is trying to fix the issue due to: [27237.844750] BUG: KASAN: use-after-free in hns_nic_net_xmit_hw+0x708/0xa18[hns_enet_drv] After hnae_queue_xmit() in hns_nic_net_xmit_hw(), can be interrupted by interruptions, and than

[PATCH 5.0 067/122] arm64: fix wrong check of on_sdei_stack in nmi context

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 1c41860864c8ae0387ef7d44fe99cbb2e06d ] When doing unwind_frame() in the context of pseudo nmi (need enable CONFIG_ARM64_PSEUDO_NMI), reaching the bottom of the stack (fp == 0, pc != 0), function on_sdei_stack() will return true while the sdei acpi table is not inited in

[PATCH 5.0 064/122] scsi: storvsc: Fix calculation of sub-channel count

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 382e06d11e075a40b4094b6ef809f8d4bcc7ab2a ] When the number of sub-channels offered by Hyper-V is >= the number of CPUs in the VM, calculate the correct number of sub-channels. The current code produces one too many. This scenario arises only when the number of CPUs is

[PATCH 5.0 070/122] net: hns: Fix probabilistic memory overwrite when HNS driver initialized

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit c0b0984426814f3a9251873b689e67d34d8ccd84 ] When reboot the system again and again, may cause a memory overwrite. [ 15.638922] systemd[1]: Reached target Swap. [ 15.667561] tun: Universal TUN/TAP device driver, 1.6 [ 15.676756] Bridge firewalling registered [ 17.344135]

[PATCH 5.0 090/122] staging: iio: adt7316: fix handling of dac high resolution option

2019-05-06 Thread Greg Kroah-Hartman
From: Jeremy Fertic commit 76b7fe8d6c4daf4db672eb953c892c6f6572a282 upstream. The adt7316/7 and adt7516/7 have the option to output voltage proportional to temperature on dac a and/or dac b. The default dac resolution in this mode is 8 bits with the dac high resolution option enabling 10 bits.

[PATCH 5.0 088/122] staging: iio: adt7316: allow adt751x to use internal vref for all dacs

2019-05-06 Thread Greg Kroah-Hartman
From: Jeremy Fertic commit 10bfe7cc1739c22f0aa296b39e53f61e9e3f4d99 upstream. With adt7516/7/9, internal vref is available for dacs a and b, dacs c and d, or all dacs. The driver doesn't currently support internal vref for all dacs. Change the else if to an if so both bits are checked rather

[PATCH 5.0 077/122] sh: fix multiple function definition build errors

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit acaf892ecbf5be7710ae05a61fd43c668f68ad95 ] Many of the sh CPU-types have their own plat_irq_setup() and arch_init_clk_ops() functions, so these same (empty) functions in arch/sh/boards/of-generic.c are not needed and cause build errors. If there is some case where these empty

[PATCH 5.0 081/122] ARM: orion: dont use using 64-bit DMA masks

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit cd92d74d67c811dc22544430b9ac3029f5bd64c5 ] clang warns about statically defined DMA masks from the DMA_BIT_MASK macro with length 64: arch/arm/plat-orion/common.c:625:29: error: shift count >= width of type [-Werror,-Wshift-count-overflow] .coherent_dma_mask

[PATCH 5.0 082/122] ARM: iop: dont use using 64-bit DMA masks

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 2125801ccce19249708ca3245d48998e70569ab8 ] clang warns about statically defined DMA masks from the DMA_BIT_MASK macro with length 64: arch/arm/mach-iop13xx/setup.c:303:35: error: shift count >= width of type [-Werror,-Wshift-count-overflow] static u64 iop13xx_adma_dmamask =

[PATCH 5.0 084/122] Bluetooth: btusb: request wake pin with NOAUTOEN

2019-05-06 Thread Greg Kroah-Hartman
From: Brian Norris commit 771acc7e4a6e5dba779cb1a7fd851a164bc81033 upstream. Badly-designed systems might have (for example) active-high wake pins that default to high (e.g., because of external pull ups) until they have an active firmware which starts driving it low. This can cause an

Re: [PATCH 4/7] sched: Add sched_load_rq tracepoint

2019-05-06 Thread Qais Yousef
On 05/06/19 11:08, Peter Zijlstra wrote: > On Sun, May 05, 2019 at 12:57:29PM +0100, Qais Yousef wrote: > > > +/* > > + * Following tracepoints are not exported in tracefs and provide hooking > > + * mechanisms only for testing and debugging purposes. > > + */ > > +DECLARE_TRACE(sched_load_rq, >

[PATCH 5.0 110/122] Input: stmfts - acknowledge that setting brightness is a blocking call

2019-05-06 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit 937c4e552fd1174784045684740edfcea536159d upstream. We need to turn regulators on and off when switching brightness, and that may block, therefore we have to set stmfts_brightness_set() as LED's brightness_set_blocking() method. Fixes: 78bcac7b2ae1 ("Input: add

[PATCH 5.0 101/122] KVM: nVMX: Remove a rogue "rax" clobber from nested_vmx_check_vmentry_hw()

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 9ce0a07a6f49822238fd4357c02e0dba060a43cc upstream. RAX is not touched by nested_vmx_check_vmentry_hw(), directly or indirectly (e.g. vmx_vmenter()). Remove it from the clobber list. Fixes: 52017608da33 ("KVM: nVMX: add option to perform early consistency

[PATCH 5.0 113/122] selinux: never allow relabeling on context mounts

2019-05-06 Thread Greg Kroah-Hartman
From: Ondrej Mosnacek commit a83d6ddaebe541570291205cb538e35ad4ff94f9 upstream. In the SECURITY_FS_USE_MNTPOINT case we never want to allow relabeling files/directories, so we should never set the SBLABEL_MNT flag. The 'special handling' in selinux_is_sblabel_mnt() is only intended for when the

[PATCH 5.0 114/122] mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode

2019-05-06 Thread Greg Kroah-Hartman
From: Alexander Wetzel commit 78ad2341521d5ea96cb936244ed4c4c4ef9ec13b upstream. Restore SW_CRYPTO_CONTROL operation on AP_VLAN interfaces for unicast keys, the original override was intended to be done for group keys as those are treated specially by mac80211 and would always have been

[PATCH 5.0 112/122] selinux: avoid silent denials in permissive mode under RCU walk

2019-05-06 Thread Greg Kroah-Hartman
From: Stephen Smalley commit 3a28cff3bd4bf43f02be0c4e7933aebf3dc8197e upstream. commit 0dc1ba24f7fff6 ("SELINUX: Make selinux cache VFS RCU walks safe") results in no audit messages at all if in permissive mode because the cache is updated during the rcu walk and thus no denial occurs on the

[PATCH 4.19 01/99] iwlwifi: fix driver operation for 5350

2019-05-06 Thread Greg Kroah-Hartman
From: Emmanuel Grumbach commit 5c9adef9789148d382d7d1307c3d6bfaf51d143d upstream. We introduced a bug that prevented this old device from working. The driver would simply not be able to complete the INIT flow while spewing this warning: CSR addresses aren't configured WARNING: CPU: 0 PID:

[PATCH 4.19 10/99] ALSA: hda/realtek - Add new Dell platform for headset mode

2019-05-06 Thread Greg Kroah-Hartman
From: Kailang Yang commit 0a29c57b76624723b6b00c027e0e992d130ace49 upstream. Add two Dell platform for headset mode. [ Note: this is a further correction / addition of the previous pin-based quirks for Dell machines; another entry for ALC236 with the d-mic pin 0x12 and an entry for ALC295

Applied "ASoC: stm32: spdifrx: manage identification registers" to the asoc tree

2019-05-06 Thread Mark Brown
The patch ASoC: stm32: spdifrx: manage identification registers has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: stm32: spdifrx: update pcm hardware constraints" to the asoc tree

2019-05-06 Thread Mark Brown
The patch ASoC: stm32: spdifrx: update pcm hardware constraints has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: stm32: spdifrx: change trace level on iec control" to the asoc tree

2019-05-06 Thread Mark Brown
The patch ASoC: stm32: spdifrx: change trace level on iec control has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH v3 0/9] klp-convert livepatch build tooling

2019-05-06 Thread Miroslav Benes
On Fri, 3 May 2019, Joe Lawrence wrote: > On Tue, Apr 16, 2019 at 01:37:13PM +0200, Miroslav Benes wrote: > > > > [ ... snip ... ] > > > > Quick look, but it seems quite similar to the problem we had with > > apply_alternatives(). See arch/x86/kernel/livepatch.c and the commit which > >

[PATCH 4.19 17/99] USB: core: Fix unterminated string returned by usb_string()

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit c01c348ecdc66085e44912c97368809612231520 upstream. Some drivers (such as the vub300 MMC driver) expect usb_string() to return a properly NUL-terminated string, even when an error occurs. (In fact, vub300's probe routine doesn't bother to check the return code from

[PATCH 4.19 12/99] ALSA: hda/realtek - Apply the fixup for ASUS Q325UAR

2019-05-06 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 3887c26c0e24d50a4d0ce20cf4726737cee1a2fd upstream. Some ASUS models like Q325UAR with ALC295 codec requires the same fixup that has been applied to ALC294 codec. Just copy the entry with the pin matching to cover ALC295 too. BugLink:

Applied "ASoC: max98090: Fix restore of DAPM Muxes" to the asoc tree

2019-05-06 Thread Mark Brown
The patch ASoC: max98090: Fix restore of DAPM Muxes has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

[PATCH 4.19 31/99] reset: meson-audio-arb: Fix missing .owner setting of reset_controller_dev

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 13e8a05b922457761ddef39cfff6231bd4ed9eef ] Set .owner to prevent module unloading while being used. Signed-off-by: Axel Lin Fixes: d903779b58be ("reset: meson: add meson audio arb driver") Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin ---

[PATCH 4.19 00/99] 4.19.41-stable review

2019-05-06 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.41 release. There are 99 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed 08 May 2019 02:29:12 PM UTC. Anything

[PATCH 4.19 30/99] ARM: dts: rockchip: Fix gpu opp node names for rk3288

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit d040e4e8deeaa8257d6aa260e29ad69832b5d630 ] The device tree compiler yells like this: Warning (unit_address_vs_reg): /gpu-opp-table/opp@1: node has a unit name, but no reg property Let's match the cpu opp node names and use a dash. Signed-off-by: Douglas Anderson

[PATCH 4.19 08/99] i2c: Allow recovery of the initial IRQ by an I2C client device.

2019-05-06 Thread Greg Kroah-Hartman
From: Jim Broadus commit 93b6604c5a669d84e45fe5129294875bf82eb1ff upstream. A previous change allowed I2C client devices to discover new IRQs upon reprobe by clearing the IRQ in i2c_device_remove. However, if an IRQ was assigned in i2c_new_device, that information is lost. For example, the

[PATCH 4.19 15/99] USB: dummy-hcd: Fix failure to give back unlinked URBs

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit fc834e607ae3d18e1a20bca3f9a2d7f52ea7a2be upstream. The syzkaller USB fuzzer identified a failure mode in which dummy-hcd would never give back an unlinked URB. This causes usb_kill_urb() to hang, leading to WARNINGs and unkillable threads. In dummy-hcd, all URBs are

[PATCH 4.19 06/99] i2c: Remove unnecessary call to irq_find_mapping

2019-05-06 Thread Greg Kroah-Hartman
From: Charles Keepax commit b9bb3fdf4e870fb655064f5c3c81c1fee7fd89ce upstream. irq_create_mapping calls irq_find_mapping internally and will use the found mapping if one exists, so there is no need to manually call this from i2c_smbus_host_notify_to_irq. Signed-off-by: Charles Keepax

[PATCH 4.19 19/99] nvme-loop: init nvmet_ctrl fatal_err_work when allocate

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit d11de63f2b519f0a162b834013b6d3a46dbf3886 ] After commit 4d43d395fe (workqueue: Try to catch flush_work() without INIT_WORK()), it can cause warning when delete nvme-loop device, trace like: [ 76.601272] Call Trace: [ 76.601646] ? del_timer+0x72/0xa0 [ 76.602156]

[PATCH 4.19 02/99] mwifiex: Make resume actually do something useful again on SDIO cards

2019-05-06 Thread Greg Kroah-Hartman
From: Douglas Anderson commit b82d6c1f8f8288f744a9dcc16cd3085d535decca upstream. The commit fc3a2fcaa1ba ("mwifiex: use atomic bitops to represent adapter status variables") had a fairly straightforward bug in it. It contained this bit of diff: - if (!adapter->is_suspended) { + if

[PATCH 4.19 36/99] net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit eca4a928585ac08147e5cc8e2111ecbc6279ee31 ] Traditionally, the PF (Physical Function) which resides on vport 0 was the E-switch manager. Since the ECPF (Embedded CPU Physical Function), which resides on vport 0xfffe, was introduced as the E-Switch manager, the assumption that the

[PATCH 4.19 34/99] HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 2bafa1e9625400bec4c840a168d70ba52607a58d ] Similar to commit edfc3722cfef ("HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working"), the Lenovo Miix 630 has a combo keyboard/touchpad device with vid:pid of 04F3:0400, which is shared with Elan touchpads. The

[PATCH 4.19 40/99] net: stmmac: dont stop NAPI processing when dropping a packet

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 07b3975352374c3f5ebb4a42ef0b253fe370542d ] Currently, if we drop a packet, we exit from NAPI loop before the budget is consumed. In some situations this will make the RX processing stall e.g. when flood pinging the system with oversized packets, as the errorneous packets are not

[PATCH 4.19 41/99] net: stmmac: dont overwrite discard_frame status

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 1b746ce8b397e58f9e40ce5c63b7198de6930482 ] If we have error bits set, the discard_frame status will get overwritten by checksum bit checks, which might set the status back to good one. Fix by checking the COE status only if the frame is good. Signed-off-by: Aaro Koskinen

[PATCH 4.19 38/99] net: stmmac: use correct DMA buffer size in the RX descriptor

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 583e6361414903c5206258a30e5bd88cb03c0254 ] We always program the maximum DMA buffer size into the receive descriptor, although the allocated size may be less. E.g. with the default MTU size we allocate only 1536 bytes. If somebody sends us a bigger frame, then memory may get

[PATCH v2 3/3] staging: vchiq: make wait events interruptible

2019-05-06 Thread Nicolas Saenz Julienne
The killable version of wait_event() is meant to be used on situations where it should not fail at all costs, but still have the convenience of being able to kill it if really necessary. Wait events in VCHIQ doesn't fit this criteria, as it's mainly used as an interface to V4L2 and ALSA devices.

[PATCH v2 2/3] staging: vchiq: revert "switch to wait_for_completion_killable"

2019-05-06 Thread Nicolas Saenz Julienne
The killable version of wait_for_completion() is meant to be used on situations where it should not fail at all costs, but still have the convenience of being able to kill it if really necessary. VCHIQ doesn't fit this criteria, as it's mainly used as an interface to V4L2 and ALSA devices. Fixes:

[PATCH 4.19 43/99] net: stmmac: dont log oversized frames

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 057a0c5642a2ff2db7c421cdcde34294a23bf37b ] This is log is harmful as it can trigger multiple times per packet. Delete it. Signed-off-by: Aaro Koskinen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 2 -- 1

[PATCH 4.19 44/99] jffs2: fix use-after-free on symlink traversal

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 4fdcfab5b5537c21891e22e65996d4d0dd8ab4ca ] free the symlink body after the same RCU delay we have for freeing the struct inode itself, so that traversal during RCU pathwalk wouldn't step into freed memory. Signed-off-by: Al Viro Signed-off-by: Sasha Levin ---

[PATCH 4.19 42/99] net: stmmac: fix dropping of multi-descriptor RX frames

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 8ac0c24fe1c256af6644caf3d311029440ec2fbd ] Packets without the last descriptor set should be dropped early. If we receive a frame larger than the DMA buffer, the HW will continue using the next descriptor. Driver mistakes these as individual frames, and sometimes a truncated

[PATCH v2 1/3] staging: vchiq_2835_arm: revert "quit using custom down_interruptible()"

2019-05-06 Thread Nicolas Saenz Julienne
The killable version of down() is meant to be used on situations where it should not fail at all costs, but still have the convenience of being able to kill it if really necessary. VCHIQ doesn't fit this criteria, as it's mainly used as an interface to V4L2 and ALSA devices. Fixes: ff5979ad8636

[PATCH 4.19 48/99] rtc: da9063: set uie_unsupported when relevant

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 882c5e552ffd06856de42261460f46e18319d259 ] The DA9063AD doesn't support alarms on any seconds and its granularity is the minute. Set uie_unsupported in that case. Reported-by: Wolfram Sang Reported-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang

[PATCH 4.19 50/99] vfio/pci: use correct format characters

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 426b046b748d1f47e096e05bdcc6fb4172791307 ] When compiling with -Wformat, clang emits the following warnings: drivers/vfio/pci/vfio_pci.c:1601:5: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]

[PATCH 4.19 54/99] arm64: fix wrong check of on_sdei_stack in nmi context

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 1c41860864c8ae0387ef7d44fe99cbb2e06d ] When doing unwind_frame() in the context of pseudo nmi (need enable CONFIG_ARM64_PSEUDO_NMI), reaching the bottom of the stack (fp == 0, pc != 0), function on_sdei_stack() will return true while the sdei acpi table is not inited in

[PATCH 4.19 29/99] batman-adv: fix warning in function batadv_v_elp_get_throughput

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit ca8c3b922e7032aff6cc3fd05548f4df1f3df90e ] When CONFIG_CFG80211 isn't enabled the compiler correcly warns about 'sinfo.pertid' may be unused. It can also happen for other error conditions that it not warn about. net/batman-adv/bat_v_elp.c: In function

[PATCH 4.19 28/99] batman-adv: Reduce tt_global hash refcnt only for removed entry

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit f131a56880d10932931e74773fb8702894a94a75 ] The batadv_hash_remove is a function which searches the hashtable for an entry using a needle, a hashtable bucket selection function and a compare function. It will lock the bucket list and delete an entry when the compare function

[PATCH 4.19 58/99] net: hns: fix ICMP6 neighbor solicitation messages discard problem

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit f058e46855dcbc28edb2ed4736f38a71fd19cadb ] ICMP6 neighbor solicitation messages will be discard by the Hip06 chips, because of not setting forwarding pool. Enable promisc mode has the same problem. This patch fix the wrong forwarding table configs for the multicast vague

[PATCH 4.19 68/99] ARM: iop: dont use using 64-bit DMA masks

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 2125801ccce19249708ca3245d48998e70569ab8 ] clang warns about statically defined DMA masks from the DMA_BIT_MASK macro with length 64: arch/arm/mach-iop13xx/setup.c:303:35: error: shift count >= width of type [-Werror,-Wshift-count-overflow] static u64 iop13xx_adma_dmamask =

[PATCH 4.19 69/99] block: pass no-op callback to INIT_WORK().

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 2e3c18d0ada16f145087b2687afcad1748c0827c ] syzbot is hitting flush_work() warning caused by commit 4d43d395fed12463 ("workqueue: Try to catch flush_work() without INIT_WORK().") [1]. Although that commit did not expect INIT_WORK(NULL) case, calling flush_work() without setting a

Re: [PATCH 4/7] sched: Add sched_load_rq tracepoint

2019-05-06 Thread Qais Yousef
On 05/06/19 09:52, Steven Rostedt wrote: > On Mon, 6 May 2019 11:08:59 +0200 > Peter Zijlstra wrote: > > > These functions really should be called trace_*() > > > > Also; I _really_ hate how fat they are. Why can't we do simple straight > > forward things like: > > > > trace_pelt_cfq(cfq);

[PATCH 4.19 71/99] Bluetooth: btusb: request wake pin with NOAUTOEN

2019-05-06 Thread Greg Kroah-Hartman
From: Brian Norris commit 771acc7e4a6e5dba779cb1a7fd851a164bc81033 upstream. Badly-designed systems might have (for example) active-high wake pins that default to high (e.g., because of external pull ups) until they have an active firmware which starts driving it low. This can cause an

[PATCH 4.19 75/99] staging: iio: adt7316: fix the dac read calculation

2019-05-06 Thread Greg Kroah-Hartman
From: Jeremy Fertic commit 45130fb030aec26ac28b4bb23344901df3ec3b7f upstream. The calculation of the current dac value is using the wrong bits of the dac lsb register. Create two macros to shift the lsb register value into lsb position, depending on whether the dac is 10 or 12 bit. Initialize

[PATCH 4.19 74/99] staging: iio: adt7316: allow adt751x to use internal vref for all dacs

2019-05-06 Thread Greg Kroah-Hartman
From: Jeremy Fertic commit 10bfe7cc1739c22f0aa296b39e53f61e9e3f4d99 upstream. With adt7516/7/9, internal vref is available for dacs a and b, dacs c and d, or all dacs. The driver doesn't currently support internal vref for all dacs. Change the else if to an if so both bits are checked rather

[PATCH 4.19 81/99] platform/x86: intel_pmc_core: Fix PCH IP name

2019-05-06 Thread Greg Kroah-Hartman
From: Rajneesh Bhardwaj commit d6827015e671cd17871c9b7a0fabe06c044f7470 upstream. For Cannonlake and Icelake, the IP name for Res_6 should be SPF i.e. South Port F. No functional change is intended other than just renaming the IP appropriately. Cc: "David E. Box" Cc: Srinivas Pandruvada

[PATCH 4.19 78/99] ASoC: Intel: bytcr_rt5651: Revert "Fix DMIC map headsetmic mapping"

2019-05-06 Thread Greg Kroah-Hartman
From: Hans de Goede commit aee48a9ffa5a128bf4e433c57c39e015ea5b0208 upstream. Commit 37c7401e8c1f ("ASoC: Intel: bytcr_rt5651: Fix DMIC map headsetmic mapping"), changed the headsetmic mapping from IN3P to IN2P, this was based on the observation that all bytcr_rt5651 devices I have access to (7

[PATCH 4.19 77/99] scsi: RDMA/srpt: Fix a credit leak for aborted commands

2019-05-06 Thread Greg Kroah-Hartman
From: Bart Van Assche commit 40ca8757291ca7a8775498112d320205b2a2e571 upstream. Make sure that the next time a response is sent to the initiator that the credit it had allocated for the aborted request gets freed. Cc: Doug Ledford Cc: Jason Gunthorpe Cc: Nicholas Bellinger Cc: Mike Christie

Re: [alsa-devel] [RFC PATCH 2/7] soundwire: add Slave sysfs support

2019-05-06 Thread Pierre-Louis Bossart
+static struct attribute_group sdw_slave_dev_attr_group = { + .attrs = slave_dev_attrs, +}; + +const struct attribute_group *sdw_slave_dev_attr_groups[] = { + _slave_dev_attr_group, + NULL +}; ATTRIBUTE_GROUP()? yes. + +int sdw_sysfs_slave_init(struct sdw_slave

[PATCH 4.19 82/99] platform/x86: intel_pmc_core: Handle CFL regmap properly

2019-05-06 Thread Greg Kroah-Hartman
From: Rajneesh Bhardwaj commit e50af8332785355de3cb40d9f5e8c45dbfc86f53 upstream. Only Coffeelake should use Cannonlake regmap other than Cannonlake platform. This allows Coffeelake special handling only when there is no matching PCI device and default reg map selected as per CPUID is for

[PATCH 4.19 88/99] gpio: mxc: add check to return defer probe if clock tree NOT ready

2019-05-06 Thread Greg Kroah-Hartman
From: Anson Huang commit a329bbe707cee2cf8c660890ef2ad0d00ec7e8a3 upstream. On i.MX8MQ platform, clock driver uses platform driver model and it is probed after GPIO driver, so when GPIO driver fails to get clock, it should check the error type to decide whether to return defer probe or just

[PATCH 4.19 60/99] libcxgb: fix incorrect ppmax calculation

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit cc5a726c79158bd307150e8d4176ec79b52001ea ] BITS_TO_LONGS() uses DIV_ROUND_UP() because of this ppmax value can be greater than available per cpu page pods. This patch removes BITS_TO_LONGS() to fix this issue. Signed-off-by: Varun Prakash Signed-off-by: David S. Miller

[PATCH 4.19 61/99] KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit b86bc2858b389255cd44555ce4b1e427b2b770c0 ] This ensures that the address and length provided to DBG_DECRYPT and DBG_ENCRYPT do not cause an overflow. At the same time, pass the actual number of pages pinned in memory to sev_unpin_memory() as a cleanup. Reported-by: Cfir Cohen

Re: [PATCH] platform/x86: pmc_atom: Add Lex 3I380D industrial PC to critclk_systems DMI table

2019-05-06 Thread Andy Shevchenko
On Mon, May 6, 2019 at 5:47 PM Hans de Goede wrote: > > Hi, > > On 06-05-19 14:38, Andy Shevchenko wrote: > > On Mon, Apr 29, 2019 at 6:01 PM Hans de Goede wrote: > >> > >> The Lex 3I380D industrial PC has 4 ethernet controllers on board > >> which need pmc_plt_clk0 - 3 to function, add it to

[PATCH 4.19 89/99] selinux: avoid silent denials in permissive mode under RCU walk

2019-05-06 Thread Greg Kroah-Hartman
From: Stephen Smalley commit 3a28cff3bd4bf43f02be0c4e7933aebf3dc8197e upstream. commit 0dc1ba24f7fff6 ("SELINUX: Make selinux cache VFS RCU walks safe") results in no audit messages at all if in permissive mode because the cache is updated during the rcu walk and thus no denial occurs on the

[PATCH 4.19 64/99] sh: fix multiple function definition build errors

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit acaf892ecbf5be7710ae05a61fd43c668f68ad95 ] Many of the sh CPU-types have their own plat_irq_setup() and arch_init_clk_ops() functions, so these same (empty) functions in arch/sh/boards/of-generic.c are not needed and cause build errors. If there is some case where these empty

[PATCH 4.19 93/99] x86/mce: Improve error message when kernel cannot recover, p2

2019-05-06 Thread Greg Kroah-Hartman
From: Tony Luck commit 41f035a86b5b72a4f947c38e94239d20d595352a upstream. In c7d606f560e4 ("x86/mce: Improve error message when kernel cannot recover") a case was added for a machine check caused by a DATA access to poison memory from the kernel. A case should have been added also for an

[PATCH 4.19 99/99] media: v4l2: i2c: ov7670: Fix PLL bypass register values

2019-05-06 Thread Greg Kroah-Hartman
From: Jacopo Mondi commit 61da76beef1e4f0b6ba7be4f8d0cf0dac7ce1f55 upstream. The following commits: commit f6dd927f34d6 ("[media] media: ov7670: calculate framerate properly for ov7675") commit 04ee6d92047e ("[media] media: ov7670: add possibility to bypass pll for ov7675") introduced the

Re: [PATCH 4.9 10/62] kasan: rework Kconfig settings

2019-05-06 Thread Andrey Ryabinin
On 5/6/19 5:32 PM, Greg Kroah-Hartman wrote: > From: Arnd Bergmann > > commit e7c52b84fb18f08ce49b6067ae6285aca79084a8 upstream. > This is a fix/workaround for the previous patch c5caf21ab0cf "kasan: turn on -fsanitize-address-use-after-scope" which shouldn't be in the -stable. So without

[PATCH 4.14 01/75] ALSA: line6: use dynamic buffers

2019-05-06 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman commit e5c812e84f0dece3400d5caf42522287e6ef139f upstream. The line6 driver uses a lot of USB buffers off of the stack, which is not allowed on many systems, causing the driver to crash on some of them. Fix this up by dynamically allocating the buffers with kmalloc()

[PATCH 4.14 10/75] net: phy: marvell: Fix buffer overrun with stats counters

2019-05-06 Thread Greg Kroah-Hartman
From: Andrew Lunn [ Upstream commit fdfdf86720a34527f777cbe0d8599bf0528fa146 ] marvell_get_sset_count() returns how many statistics counters there are. If the PHY supports fibre, there are 3, otherwise two. marvell_get_strings() does not make this distinction, and always returns 3 strings.

[PATCH 4.19 57/99] net: hns: Fix probabilistic memory overwrite when HNS driver initialized

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit c0b0984426814f3a9251873b689e67d34d8ccd84 ] When reboot the system again and again, may cause a memory overwrite. [ 15.638922] systemd[1]: Reached target Swap. [ 15.667561] tun: Universal TUN/TAP device driver, 1.6 [ 15.676756] Bridge firewalling registered [ 17.344135]

[PATCH 4.19 92/99] powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search

2019-05-06 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V commit 3b4d07d2674f6b4a9281031f99d1f7efd325b16d upstream. When doing top-down search the low_limit is not PAGE_SIZE but rather max(PAGE_SIZE, mmap_min_addr). This handle cases in which mmap_min_addr > PAGE_SIZE. Fixes: fba2369e6ceb ("mm: use vm_unmapped_area() on powerpc

[PATCH 4.19 97/99] x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info"

2019-05-06 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 780e0106d468a2962b16b52fdf42898f2639e0a0 upstream. Revert the following commit: 515ab7c41306: ("x86/mm: Align TLB invalidation info") I found out (the hard way) that under some .config options (notably L1_CACHE_SHIFT=7) and compiler combinations this on-stack

[PATCH 4.14 15/75] arm64: only advance singlestep for user instruction traps

2019-05-06 Thread Greg Kroah-Hartman
From: Mark Rutland commit 9478f1927e6ef9ef5e1ad761af1c98aa8e40b7f5 upstream. Our arm64_skip_faulting_instruction() helper advances the userspace singlestep state machine, but this is also called by the kernel BRK handler, as used for WARN*(). Thus, if we happen to hit a WARN*() while the user

[PATCH 4.14 13/75] kasan: prevent compiler from optimizing away memset in tests

2019-05-06 Thread Greg Kroah-Hartman
From: Andrey Konovalov commit 69ca372c100fba99c78ef826a1795aa86e4f01a8 upstream. A compiler can optimize away memset calls by replacing them with mov instructions. There are KASAN tests that specifically test that KASAN correctly handles memset calls so we don't want this optimization to

[PATCH 4.14 17/75] ALSA: hda/realtek - Add new Dell platform for headset mode

2019-05-06 Thread Greg Kroah-Hartman
From: Kailang Yang commit 0a29c57b76624723b6b00c027e0e992d130ace49 upstream. Add two Dell platform for headset mode. [ Note: this is a further correction / addition of the previous pin-based quirks for Dell machines; another entry for ALC236 with the d-mic pin 0x12 and an entry for ALC295

[PATCH 4.14 19/75] USB: yurex: Fix protection fault after device removal

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit ef61eb43ada6c1d6b94668f0f514e4c268093ff3 upstream. The syzkaller USB fuzzer found a general-protection-fault bug in the yurex driver. The fault occurs when a device has been unplugged; the driver's interrupt-URB handler logs an error message referring to the device by

[PATCH 4.14 18/75] ALSA: hda/realtek - Fixed Dell AIO speaker noise

2019-05-06 Thread Greg Kroah-Hartman
From: Kailang Yang commit 0700d3d117a7f110bd83873e13652f69c54b upstream. Fixed Dell AIO speaker noise. spec->gen.auto_mute_via_amp = 1, this option was solved speaker white noise at boot. codec->power_save_node = 0, this option was solved speaker noise at resume back. Fixes: 9226665159f0

<    2   3   4   5   6   7   8   9   10   11   >