[PATCH AUTOSEL 4.19 174/258] livepatch: check kzalloc return values

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] kzalloc() return should always be checked - notably in example code where this may be seen as reference. On failure of allocation in livepatch_fix1_dummy_alloc() respectively dummy_alloc() previous allocation

[PATCH AUTOSEL 4.19 173/258] tools/power/x86/intel_pstate_tracer: Fix non root execution for post processing a trace file

2019-01-28 Thread Sasha Levin
From: Doug Smythies [ Upstream commit 663546903c835fe46308b1b1e53d32d1f2b33da9 ] This script is supposed to be allowed to run with regular user privileges if a previously captured trace is being post processed. Commit fbe313884d7d (tools/power/x86/intel_pstate_tracer: Free the trace buffer

[PATCH AUTOSEL 4.19 175/258] arm64: KVM: Skip MMIO insn after emulation

2019-01-28 Thread Sasha Levin
From: Mark Rutland [ Upstream commit 0d640732dbebed0f10f18526de21652931f0b2f2 ] When we emulate an MMIO instruction, we advance the CPU state within decode_hsr(), before emulating the instruction effects. Having this logic in decode_hsr() is opaque, and advancing the state before emulation is

[PATCH AUTOSEL 4.19 190/258] scsi: smartpqi: correct host serial num for ssa

2019-01-28 Thread Sasha Levin
From: Mahesh Rajashekhara [ Upstream commit b2346b5030cf9458f30a84028d9fe904b8c942a7 ] Reviewed-by: Scott Benesh Reviewed-by: Ajish Koshy Reviewed-by: Murthy Bhat Reviewed-by: Mahesh Rajashekhara Reviewed-by: Dave Carroll Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by:

[PATCH AUTOSEL 4.19 189/258] mlxsw: spectrum: Properly cleanup LAG uppers when removing port from LAG

2019-01-28 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit be2d6f421f680e01d58f7cd452646e0d8586d49b ] When a LAG device or a VLAN device on top of it is enslaved to a bridge, the driver propagates the CHANGEUPPER event to the LAG's slaves. This causes each physical port to increase the reference count of the

[PATCH AUTOSEL 4.19 188/258] xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi

2019-01-28 Thread Sasha Levin
From: YueHaibing [ Upstream commit fa89a4593b927b3f59c3b69379f31d3b22272e4e ] gcc warn this: net/ipv6/xfrm6_tunnel.c:143 __xfrm6_tunnel_alloc_spi() warn: always true condition '(spi <= 4294967295) => (0-u32max <= u32max)' 'spi' is u32, which always not greater than XFRM6_TUNNEL_SPI_MAX

[PATCH AUTOSEL 4.19 193/258] cw1200: Fix concurrency use-after-free bugs in cw1200_hw_scan()

2019-01-28 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 4f68ef64cd7feb1220232bd8f501d8aad340a099 ] The function cw1200_bss_info_changed() and cw1200_hw_scan() can be concurrently executed. The two functions both access a possible shared variable "frame.skb". This shared variable is freed by dev_kfree_skb() in

[PATCH AUTOSEL 4.19 195/258] powerpc/perf: Fix thresholding counter data for unknown type

2019-01-28 Thread Sasha Levin
From: Madhavan Srinivasan [ Upstream commit 17cfccc91545682513541924245abb876d296063 ] MMCRA[34:36] and MMCRA[38:44] expose the thresholding counter value. Thresholding counter can be used to count latency cycles such as load miss to reload. But threshold counter value is not relevant when the

4.14 revert "seccomp: add a selftest for get_metadata"

2019-01-28 Thread Rantala, Tommi T. (Nokia - FI/Espoo)
Hi Greg, Can you please revert this commit in 4.14? commit e65cd9a20343ea90f576c24c38ee85ab6e7d5fec Author: Tycho Andersen Date: Tue Feb 20 19:47:47 2018 -0700 seccomp: add a selftest for get_metadata [ Upstream commit d057dc4e35e16050befa3dda943876dab39cbf80 ] Let's

Re: [PATCH 2/2] mm: Consider subtrees in memory.events

2019-01-28 Thread Shakeel Butt
Hi Tejun, On Mon, Jan 28, 2019 at 8:05 AM Tejun Heo wrote: > > Hello, Shakeel. > > On Mon, Jan 28, 2019 at 07:59:33AM -0800, Shakeel Butt wrote: > > Why not make this configurable at the delegation boundary? As you > > mentioned, there are jobs who want centralized workload manager to > > watch

[PATCH AUTOSEL 4.19 200/258] drbd: disconnect, if the wrong UUIDs are attached on a connected peer

2019-01-28 Thread Sasha Levin
From: Lars Ellenberg [ Upstream commit b17b59602b6dcf8f97a7dc7bc489a48388d7063a ] With "on-no-data-accessible suspend-io", DRBD requires the next attach or connect to be to the very same data generation uuid tag it lost last. If we first lost connection to the peer, then later lost connection

[PATCH AUTOSEL 4.19 208/258] ice: Do not enable NAPI on q_vectors that have no rings

2019-01-28 Thread Sasha Levin
From: Young Xiao [ Upstream commit eec903769b4ea47659173bb7359f14f38c51 ] If ice driver has q_vectors w/ active NAPI that has no rings, then this will result in a divide by zero error. To correct it I am updating the driver code so that we only support NAPI on q_vectors that have 1 or more

Re: [PATCH AUTOSEL 4.20 028/304] srcu: Prevent __call_srcu() counter wrap with read-side critical section

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 08:23:18AM -0800, Paul E. McKenney wrote: On Mon, Jan 28, 2019 at 10:39:05AM -0500, Sasha Levin wrote: From: "Paul E. McKenney" [ Upstream commit 0607ba8403c4cdb253f8c5200ecf654dfb7790cc ] Ever since cdf7abc4610a ("srcu: Allow use of Tiny/Tree SRCU from both process

[PATCH 2/2] devpts: simplify devpts_fill_super()

2019-01-28 Thread Christian Brauner
When devpts_fill_super() fails deactivate_locked_super() will cleanup dentries for us so there's no need to do that work in devpts_fill_super() itself. This allows us to simplify that function quite a bit. Cc: Al Viro Signed-off-by: Christian Brauner --- fs/devpts/inode.c | 22

[PATCH 1/2] devpts: remove unneeded inode_lock in mknod_ptmx

2019-01-28 Thread Christian Brauner
Afaict, the mknod_ptmx() call is a no-op on subsequent calls and the first call is done before we unlock the suberblock. If I'm not mistaken this is exactly parallel to what Al pointed out for binderfs 29ef1c8e16a ("binderfs: drop lock in binderfs_binder_ctl_create"). In both filesystems it should

[PATCH AUTOSEL 4.19 213/258] pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins

2019-01-28 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 42f9b48cc5402be11d2364275eb18c257d2a79e8 ] The GPIOAO pins (as well as the two exotic GPIO_BSD_EN and GPIO_TEST_N) only belong to the pin controller in the AO domain. With the current definition these pins cannot be referred to in .dts files as group

[PATCH AUTOSEL 4.19 218/258] NFS: nfs_compare_mount_options always compare auth flavors.

2019-01-28 Thread Sasha Levin
From: Chris Perl [ Upstream commit 594d1644cd59447f4fceb592448d5cd09eb09b5e ] This patch removes the check from nfs_compare_mount_options to see if a `sec' option was passed for the current mount before comparing auth flavors and instead just always compares auth flavors. Consider the

[PATCH AUTOSEL 4.19 214/258] pinctrl: meson: meson8b: fix the GPIO function for the GPIOAO pins

2019-01-28 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 2b745ac3cceb8fc1d9985990c8241a821ea97e53 ] The GPIOAO pins (as well as the two exotic GPIO_BSD_EN and GPIO_TEST_N) only belong to the pin controller in the AO domain. With the current definition these pins cannot be referred to in .dts files as group

[PATCH 3/3] PCI: controller: dwc: allow to select i.MX driver for i.MX 7D

2019-01-28 Thread Stefan Agner
The i.MX 6 PCI driver supports the i.MX 7D SoC too. Allow to select the i.MX PCI driver even if only the i.MX 7D SoC has been selected. Signed-off-by: Stefan Agner --- drivers/pci/controller/dwc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH AUTOSEL 4.19 221/258] hwmon: (lm80) fix a missing check of bus read in lm80 probe

2019-01-28 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit 9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315 ] In lm80_probe(), if lm80_read_value() fails, it returns a negative error number which is stored to data->fan[f_min] and will be further used. We should avoid using the data if the read fails. The fix checks if

[PATCH AUTOSEL 4.19 222/258] seq_buf: Make seq_buf_puts() null-terminate the buffer

2019-01-28 Thread Sasha Levin
From: Michael Ellerman [ Upstream commit 0464ed24380905d640030d368cd84a4e4d1e15e2 ] Currently seq_buf_puts() will happily create a non null-terminated string for you in the buffer. This is particularly dangerous if the buffer is on the stack. For example: char buf[8]; char secret =

[PATCH AUTOSEL 4.19 227/258] f2fs: fix use-after-free issue when accessing sbi->stat_info

2019-01-28 Thread Sasha Levin
From: Sahitya Tummala [ Upstream commit 60aa4d5536ab7fe32433ca1173bd9d6633851f27 ] iput() on sbi->node_inode can update sbi->stat_info in the below context, if the f2fs_write_checkpoint() has failed with error. f2fs_balance_fs_bg+0x1ac/0x1ec f2fs_write_node_pages+0x4c/0x260

[PATCH AUTOSEL 4.19 229/258] niu: fix missing checks of niu_pci_eeprom_read

2019-01-28 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit 26fd962bde0b15e54234fe762d86bc0349df1de4 ] niu_pci_eeprom_read() may fail, so we should check its return value before using the read data. Signed-off-by: Kangjie Lu Acked-by: Shannon Nelson Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 241/258] gdrom: fix a memory leak bug

2019-01-28 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017 ] In probe_gdrom(), the buffer pointed by 'gd.cd_info' is allocated through kzalloc() and is used to hold the information of the gdrom device. To register and unregister the device, the pointer 'gd.cd_info' is passed

Re: [PATCH AUTOSEL 4.19 177/258] usb: musb: dsps: fix runtime pm for peripheral mode

2019-01-28 Thread Bin Liu
Hi Sasha, On Mon, Jan 28, 2019 at 10:58:03AM -0500, Sasha Levin wrote: > From: Bin Liu > > [ Upstream commit 54578ee883e34d2d1c518d48f1c1e2dd3f387188 ] > > Since the runtime PM support was added in musb, dsps relies on the timer > calling otg_timer() to activate the usb subsystem. However the

[PATCH AUTOSEL 4.19 242/258] fsl/fman: Use GFP_ATOMIC in {memac,tgec}_add_hash_mac_address()

2019-01-28 Thread Sasha Levin
From: Scott Wood [ Upstream commit 0d9c9a238faf925823bde866182c663b6d734f2e ] These functions are called from atomic context: [9.150239] BUG: sleeping function called from invalid context at /home/scott/git/linux/mm/slab.h:421 [9.158159] in_atomic(): 1, irqs_disabled(): 0, pid: 4432,

[PATCH AUTOSEL 4.19 247/258] thermal: generic-adc: Fix adc to temp interpolation

2019-01-28 Thread Sasha Levin
From: Bjorn Andersson [ Upstream commit 9d216211fded20fff301d0317af3238d8383634c ] First correct the edge case to return the last element if we're outside the range, rather than at the last element, so that interpolation is not omitted for points between the two last entries in the table. Then

[PATCH AUTOSEL 4.19 254/258] kernel/hung_task.c: force console verbose before panic

2019-01-28 Thread Sasha Levin
From: "Liu, Chuansheng" [ Upstream commit 168e06f7937d96c7222037d8a05565e8a6eb00fe ] Based on commit 401c636a0eeb ("kernel/hung_task.c: show all hung tasks before panic"), we could get the call stack of hung task. However, if the console loglevel is not high, we still can not see the useful

Re: [PATCH 2/2] mm: Consider subtrees in memory.events

2019-01-28 Thread Tejun Heo
Hello, On Mon, Jan 28, 2019 at 08:08:26AM -0800, Shakeel Butt wrote: > Do you envision a separate interface/file for recursive and local > counters? That would make notifications simpler but that is an > additional interface. I need to think more about it but my first throught is that a separate

[PATCH AUTOSEL 4.19 258/258] scripts/gdb: fix lx-version string output

2019-01-28 Thread Sasha Levin
From: Du Changbin [ Upstream commit b058809bfc8faeb7b7cae047666e23375a060059 ] A bug is present in GDB which causes early string termination when parsing variables. This has been reported [0], but we should ensure that we can support at least basic printing of the core kernel strings. For

[PATCH AUTOSEL 4.14 002/170] staging: iio: adc: ad7280a: handle error from __ad7280_read32()

2019-01-28 Thread Sasha Levin
From: Slawomir Stepien [ Upstream commit 0559ef7fde67bc6c83c6eb6329dbd6649528263e ] Inside __ad7280_read32(), the spi_sync_transfer() can fail with negative error code. This change will ensure that this error is being passed up in the call stack, so it can be handled. Signed-off-by: Slawomir

[PATCH] powerpc/kernel/time: Remove duplicate header

2019-01-28 Thread Brajeswar Ghosh
Remove linux/rtc.h which is included more than once Signed-off-by: Brajeswar Ghosh --- arch/powerpc/kernel/time.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 3646affae963..bc0503ef9c9c 100644 --- a/arch/powerpc/kernel/time.c

[PATCH AUTOSEL 4.14 004/170] pinctrl: bcm2835: Use raw spinlock for RT compatibility

2019-01-28 Thread Sasha Levin
From: Lukas Wunner [ Upstream commit 3c7b30f704b6f5e53eed6bf89cf2c8d1b38b02c0 ] The BCM2835 pinctrl driver acquires a spinlock in its ->irq_enable, ->irq_disable and ->irq_set_type callbacks. Spinlocks become sleeping locks with CONFIG_PREEMPT_RT_FULL=y, therefore invocation of one of the

[PATCH AUTOSEL 4.14 005/170] ASoC: Intel: mrfld: fix uninitialized variable access

2019-01-28 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 1539c7f23f256120f89f8b9ec53160790bce9ed2 ] Randconfig testing revealed a very old bug, with gcc-8: sound/soc/intel/atom/sst/sst_loader.c: In function 'sst_load_fw': sound/soc/intel/atom/sst/sst_loader.c:357:5: error: 'fw' may be used uninitialized in this

[PATCH AUTOSEL 4.14 003/170] drm/vgem: Fix vgem_init to get drm device available.

2019-01-28 Thread Sasha Levin
From: Deepak Sharma [ Upstream commit d5c04dff24870ef07ce6453a3f4e1ffd9cf88d27 ] Modify vgem_init to take platform dev as parent in drm_dev_init. This will make drm device available at "/sys/devices/platform/vgem" in x86 chromebook. v2: rebase, address checkpatch typo and line over 80

[PATCH AUTOSEL 4.14 011/170] platform/x86: asus-nb-wmi: Map 0x35 to KEY_SCREENLOCK

2019-01-28 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit b3f2f3799a972d3863d0fdc2ab6287aef6ca631f ] When the OS registers to handle events from the display off hotkey the EC will send a notification with 0x35 for every key press, independent of the backlight state. The behavior of this key on Windows,

[PATCH AUTOSEL 4.14 012/170] ARM: 8808/1: kexec:offline panic_smp_self_stop CPU

2019-01-28 Thread Sasha Levin
From: Yufen Wang [ Upstream commit 82c08c3e7f171aa7f579b231d0abbc1d62e91974 ] In case panic() and panic() called at the same time on different CPUS. For example: CPU 0: panic() __crash_kexec machine_crash_shutdown crash_smp_send_stop machine_kexec

[PATCH AUTOSEL 4.14 008/170] scsi: lpfc: Correct LCB RJT handling

2019-01-28 Thread Sasha Levin
From: James Smart [ Upstream commit b114d9009d386276bfc3352289fc235781ae3353 ] When LCB's are rejected, if beaconing was already in progress, the Reason Code Explanation was not being set. Should have been set to command in progress. Signed-off-by: Dick Kennedy Signed-off-by: James Smart

Re: [PATCH AUTOSEL 4.19 176/258] usb: musb: dsps: fix otg state machine

2019-01-28 Thread Bin Liu
Hi Sasha, On Mon, Jan 28, 2019 at 10:58:02AM -0500, Sasha Levin wrote: > From: Bin Liu > > [ Upstream commit 6010abf2c2c0e382d7e8ee44bd11f343aae90cce ] > > Due to lack of ID pin interrupt event on AM335x devices, the musb dsps > driver uses polling to detect usb device attach for dual-role

[PATCH AUTOSEL 4.14 014/170] dlm: Don't swamp the CPU with callbacks queued during recovery

2019-01-28 Thread Sasha Levin
From: Bob Peterson [ Upstream commit 216f0efd19b9cc32207934fd1b87a45f2c4c593e ] Before this patch, recovery would cause all callbacks to be delayed, put on a queue, and afterward they were all queued to the callback work queue. This patch does the same thing, but occasionally takes a break

[PATCH AUTOSEL 4.14 020/170] serial: fsl_lpuart: clear parity enable bit when disable parity

2019-01-28 Thread Sasha Levin
From: Andy Duan [ Upstream commit 397bd9211fe014b347ca8f95a8f4e1017bac1aeb ] Current driver only enable parity enable bit and never clear it when user set the termios. The fix clear the parity enable bit when PARENB flag is not set in termios->c_cflag. Cc: Lukas Wunner Signed-off-by: Andy

[PATCH AUTOSEL 4.14 015/170] x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux)

2019-01-28 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 53bb565fc5439f2c8c57a786feea5946804aa3e9 ] In the expression "word1 << 16", word1 starts as u16, but is promoted to a signed int, then sign-extended to resource_size_t, which is probably not what was intended. Cast to resource_size_t to avoid the sign

[PATCH AUTOSEL 4.14 019/170] drm/vc4: ->x_scaling[1] should never be set to VC4_SCALING_NONE

2019-01-28 Thread Sasha Levin
From: Boris Brezillon [ Upstream commit 0560054da5673b25d56bea6c57c8d069673af73b ] For the YUV conversion to work properly, ->x_scaling[1] should never be set to VC4_SCALING_NONE, but vc4_get_scaling_mode() might return VC4_SCALING_NONE if the horizontal scaling ratio exactly matches the

[PATCH AUTOSEL 4.14 016/170] powerpc/pseries: add of_node_put() in dlpar_detach_node()

2019-01-28 Thread Sasha Levin
From: Frank Rowand [ Upstream commit 5b3f5c408d8cc59b87e47f1ab9803dbd006e4a91 ] The previous commit, "of: overlay: add missing of_node_get() in __of_attach_node_sysfs" added a missing of_node_get() to __of_attach_node_sysfs(). This results in a refcount imbalance for nodes attached with

[PATCH AUTOSEL 4.14 024/170] staging:iio:ad2s90: Make probe handle spi_setup failure

2019-01-28 Thread Sasha Levin
From: Matheus Tavares [ Upstream commit b3a3eafeef769c6982e15f83631dcbf8d1794efb ] Previously, ad2s90_probe ignored the return code from spi_setup, not handling its possible failure. This patch makes ad2s90_probe check if the code is an error code and, if so, do the following: - Call dev_err

[PATCH AUTOSEL 4.14 023/170] MIPS: Boston: Disable EG20T prefetch

2019-01-28 Thread Sasha Levin
From: Paul Burton [ Upstream commit 5ec17af7ead09701e23d2065e16db6ce4e137289 ] The Intel EG20T Platform Controller Hub used on the MIPS Boston development board supports prefetching memory to optimize DMA transfers. Unfortunately for unknown reasons this doesn't work well with some MIPS CPUs

[PATCH AUTOSEL 4.14 028/170] staging: iio: ad7780: update voltage on read

2019-01-28 Thread Sasha Levin
From: Renato Lui Geh [ Upstream commit 336650c785b62c3bea7c8cf6061c933a90241f67 ] The ad7780 driver previously did not read the correct device output, as it read an outdated value set at initialization. It now updates its voltage on read. Signed-off-by: Renato Lui Geh Acked-by: Alexandru

[PATCH AUTOSEL 4.14 032/170] net/mlx5: EQ, Use the right place to store/read IRQ affinity hint

2019-01-28 Thread Sasha Levin
From: Saeed Mahameed [ Upstream commit 1e86ace4c140fd5a693e266c9b23409358f25381 ] Currently the cpu affinity hint mask for completion EQs is stored and read from the wrong place, since reading and storing is done from the same index, there is no actual issue with that, but internal irq_info for

[PATCH AUTOSEL 4.14 030/170] drm/rockchip: fix for mailbox read size

2019-01-28 Thread Sasha Levin
From: Damian Kos [ Upstream commit fa68d4f8476bea4cdf441062b614b41bb85ef1da ] Some of the functions (like cdn_dp_dpcd_read, cdn_dp_get_edid_block) allow to read 64KiB, but the cdn_dp_mailbox_read_receive, that is used by them, can read only up to 255 bytes at once. Normally, it's not a big

[PATCH AUTOSEL 4.14 031/170] ARM: OMAP2+: hwmod: Fix some section annotations

2019-01-28 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit c10b26abeb53cabc1e6271a167d3f3d396ce0218 ] When building the kernel with Clang, the following section mismatch warnings appears: WARNING: vmlinux.o(.text+0x2d398): Section mismatch in reference from the function _setup() to the function

[PATCH AUTOSEL 4.14 027/170] platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup

2019-01-28 Thread Sasha Levin
From: Brian Norris [ Upstream commit 6ad16b78a039b45294b1ad5d69c14ac57b2fe706 ] EC_MKBP_EVENT_SENSOR_FIFO events can be triggered for a variety of reasons, and there are very few cases in which they should be treated as wakeup interrupts (particularly, when a certain MOTIONSENSE_MODULE_FLAG_*

[PATCH] irqchip/gic-v3-its: Align PCI Multi-MSI allocation on their size

2019-01-28 Thread Ard Biesheuvel
From: Marc Zyngier Commit 8208d1708b88b412ca97f50a6d951242c88cbbac upstream. The way we allocate events works fine in most cases, except when multiple PCI devices share an ITS-visible DevID, and that one of them is trying to use MultiMSI allocation. In that case, our allocation is not

[PATCH AUTOSEL 4.14 022/170] ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl

2019-01-28 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit 83d0bdc7390b890905634186baaa294475cd6a06 ] If a gettime64 call fails, return the error and avoid copying data back to user. Cc: Richard Cochran Cc: Jacob Keller Signed-off-by: Miroslav Lichvar Signed-off-by: David S. Miller Signed-off-by: Sasha

[PATCH AUTOSEL 4.14 034/170] perf tools: Add Hygon Dhyana support

2019-01-28 Thread Sasha Levin
From: Pu Wen [ Upstream commit 4787eff3fa88f62fede6ed7afa06477ae6bf984d ] The tool perf is useful for the performance analysis on the Hygon Dhyana platform. But right now there is no Hygon support for it to analyze the KVM guest os data. So add Hygon Dhyana support to it by checking vendor

[PATCH v3 2/2] Dt-bindings: Serial: Add X1000 serial bindings.

2019-01-28 Thread Zhou Yanjie
Add the serial bindings for the X1000 Soc from Ingenic. Signed-off-by: Zhou Yanjie --- Documentation/devicetree/bindings/serial/ingenic,uart.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/ingenic,uart.txt

[PATCH AUTOSEL 4.14 039/170] iio: adc: meson-saradc: check for devm_kasprintf failure

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit aad172b017617994343e36d8659c69e14cd694fd ] devm_kasprintf() may return NULL on failure of internal allocation thus the assignments to init.name are not safe if not checked. On error meson_sar_adc_clk_init() returns negative values so -ENOMEM in the

[PATCH v3 1/2] Serial: Ingenic: Add support for the X1000.

2019-01-28 Thread Zhou Yanjie
Add support for probing the 8250_ingenic driver on the X1000 Soc from Ingenic. Signed-off-by: Zhou Yanjie --- drivers/tty/serial/8250/8250_ingenic.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250_ingenic.c

[PATCH AUTOSEL 4.14 036/170] media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()

2019-01-28 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ] of_parse_phandle() returns the device node with refcount incremented. There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(), but their refcounts are not decremented. The patch adds one

Re: [PATCH 2/2] mm: Consider subtrees in memory.events

2019-01-28 Thread Michal Hocko
On Mon 28-01-19 07:41:50, Tejun Heo wrote: > Hello, Michal. > > On Mon, Jan 28, 2019 at 04:18:59PM +0100, Michal Hocko wrote: > > How do you make an atomic snapshot of the hierarchy state? Or you do > > not need it because event counters are monotonic and you are willing to > > sacrifice some

Add Ingenic X1000 serial support

2019-01-28 Thread Zhou Yanjie
v1->v2: Remove unnecessary "EARLYCON_DECLARE". v2->v3: Use different subject line for each patch.

[PATCH lora-next 02/11] net: lora: sx130x: add loading of tx lut from DT

2019-01-28 Thread Ben Whitten
From: Ben Whitten The AGC software requires loading of a power lookup table on initialisation prior to transmission. The fields required are digital, pa, dac, and mixer gain. These values are typically hardware specific and calibrated for a particular power output at the card rf port. The format

[PATCH AUTOSEL 4.14 041/170] iio: accel: kxcjk1013: Add KIOX010A ACPI Hardware-ID

2019-01-28 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 7f6232e69539971cf9eaed07a6c14ab4a2361133 ] Various 2-in-1's use KIOX010A and KIOX020A as HIDs for 2 KXCJ91008 accelerometers. The KIOX010A HID is for the one in the base and the KIOX020A for the accelerometer in the keyboard. Since userspace does not have

Re: [PATCH AUTOSEL 4.19 034/258] sctp: Fix SKB list traversal in sctp_intl_store_reasm().

2019-01-28 Thread Marcelo Ricardo Leitner
On Mon, Jan 28, 2019 at 10:55:40AM -0500, Sasha Levin wrote: > From: "David S. Miller" > > [ Upstream commit 348bbc25c40844c5efa083a3842c7f53d70a815e ] > > To be fully correct, an iterator has an undefined value when something > like skb_queue_walk() naturally terminates. > > This will

[PATCH lora-next 01/11] dt-bindings: net: lora: sx130x: add power lut binding

2019-01-28 Thread Ben Whitten
From: Ben Whitten Adding power lookup table for the concentrator specified in DT. These values are calibrated for the hardware and are unique to hardware designs and certifications. First byte is signed power in dBm measured at the rf connector. Second byte is unsigned value for DIGITAL gain.

[PATCH AUTOSEL 4.14 043/170] ACPI: SPCR: Consider baud rate 0 as preconfigured state

2019-01-28 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit b413b1abeb21b4a152c0bf8d1379efa30759b6e3 ] Since SPCR 1.04 [1] the baud rate of 0 means a preconfigured state of UART. Assume firmware or bootloader configures console correctly. [1]:

[PATCH lora-next 00/11] net: lora: Get SX130x to transmit lora packets

2019-01-28 Thread Ben Whitten
Hello, This series adds setup nessesary to transmit lora packets from the SX1301x, it builds on the comments on the RFC [1] to a point where the card is capable of sending out a LoRa modulated signal using transmission paramaters from the LORA socket address. As patches have been refactored and

[PATCH AUTOSEL 4.14 042/170] media: adv*/tc358743/ths8200: fill in min width/height/pixelclock

2019-01-28 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ] The v4l2_dv_timings_cap struct is used to do sanity checks when setting and enumerating DV timings, ensuring that only valid timings as per the HW capabilities are allowed. However, many drivers just filled in 0

[PATCH AUTOSEL 4.14 047/170] f2fs: fix race between write_checkpoint and write_begin

2019-01-28 Thread Sasha Levin
From: Sheng Yong [ Upstream commit 2866fb16d67992195b0526d19e65acb6640fb87f ] The following race could lead to inconsistent SIT bitmap: Task A Task B == == f2fs_write_checkpoint block_operations f2fs_lock_all

[PATCH AUTOSEL 4.14 044/170] staging: pi433: fix potential null dereference

2019-01-28 Thread Sasha Levin
From: Michael Straube [ Upstream commit 64c4c4ca6c129a4191e8e1e91b2d5d9b8d08c518 ] Add a test for successful call to cdev_alloc() to avoid potential null dereference. Issue reported by smatch. Signed-off-by: Michael Straube Fixes: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by:

[PATCH lora-next 04/11] net: lora: sx130x: add helper function for writing to the SX130x MCU

2019-01-28 Thread Ben Whitten
From: Ben Whitten The transaction to the internal MCU starts with CMD_WAIT to start a transaction, written to CHRS followed by writing the value, the status of the command is read back from AGCSTS. Signed-off-by: Ben Whitten --- drivers/net/lora/sx130x.c | 28

[PATCH AUTOSEL 4.14 045/170] f2fs: move dir data flush to write checkpoint process

2019-01-28 Thread Sasha Levin
From: Yunlei He [ Upstream commit b61ac5b720146c619c7cdf17eff2551b934399e5 ] This patch move dir data flush to write checkpoint process, by doing this, it may reduce some time for dir fsync. pre: -f2fs_do_sync_file enter -file_write_and_wait_range <- flush & wait

[PATCH AUTOSEL 4.14 049/170] i2c: sh_mobile: add support for r8a77990 (R-Car E3)

2019-01-28 Thread Sasha Levin
From: Simon Horman [ Upstream commit 5eb316e636eb298c204f5b368526d4480b63c0ba ] Add support for the IIC code for the r8a77990 (R-Car E3). It is not considered compatible with existing fallback bindings due to the documented absence of automatic transmission registers. These registers are

[PATCH lora-next 07/11] net: lora: sx130x: add work queue to tx path

2019-01-28 Thread Ben Whitten
As we are not allowed to sleep in _start_xmit, we need to add a work queue to handle transmission of the packets. Signed-off-by: Ben Whitten --- drivers/net/lora/sx130x.c | 50 ++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git

[PATCH AUTOSEL 4.14 048/170] f2fs: fix wrong return value of f2fs_acl_create

2019-01-28 Thread Sasha Levin
From: Tiezhu Yang [ Upstream commit f6176473a0c7472380eef72ebeb330cf9485bf0a ] When call f2fs_acl_create_masq() failed, the caller f2fs_acl_create() should return -EIO instead of -ENOMEM, this patch makes it consistent with posix_acl_create() which has been fixed in commit beaf226b863a

[PATCH lora-next 06/11] net: lora: sx130x: add detail to TODO in setup

2019-01-28 Thread Ben Whitten
From: Ben Whitten Setup requires a more steps to be complete, call these out specifically so they are not missed. Signed-off-by: Ben Whitten --- drivers/net/lora/sx130x.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/lora/sx130x.c

[PATCH lora-next 09/11] net: lora: introduce lora socket addressing for metadata

2019-01-28 Thread Ben Whitten
Information such as spreading factor, coding rate and power are on a per transmission basis so we can encode this information in the lora socket address. In future we may have a different format for receive with additional fields which get populated. Signed-off-by: Ben Whitten ---

[PATCH lora-next 10/11] net: lora: sx130x: make use of lora address metadata in transmission

2019-01-28 Thread Ben Whitten
We take the metadata encoded in the lora address and apply it to the outgoing transmission. Signed-off-by: Ben Whitten --- drivers/net/lora/sx130x.c | 58 --- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/drivers/net/lora/sx130x.c

[PATCH] input: goodix - support Goodix gt5688

2019-01-28 Thread Guido Günther
>From what I've seen in vendor trees it's fine to treat this as gt1x¹. [1]: https://github.com/TadiT7/android_kernel_mtk-4.4/tree/master/drivers/input/touchscreen/mediatek/GT5688 Signed-off-by: Guido Günther --- Documentation/devicetree/bindings/input/touchscreen/goodix.txt | 1 +

[PATCH lora-next 11/11] net: lora: sx130x: add patch to register fields

2019-01-28 Thread Ben Whitten
The SX130x chips require a number of constant adjustments and patches. We add the fields for the registers which require patches, add patch values then add a helper to patch fields. Removing one TODO. Signed-off-by: Ben Whitten --- drivers/net/lora/sx130x.c | 131

[PATCH AUTOSEL 4.14 051/170] sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN

2019-01-28 Thread Sasha Levin
From: Young Xiao [ Upstream commit a11f6ca9aef989b56cd31ff4ee2af4fb31a172ec ] __vdc_tx_trigger should only loop on EAGAIN a finite number of times. See commit adddc32d6fde ("sunvnet: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN") for detail. Signed-off-by: Young Xiao

[PATCH AUTOSEL 4.14 052/170] soc: bcm: brcmstb: Don't leak device tree node reference

2019-01-28 Thread Sasha Levin
From: Yangtao Li [ Upstream commit 1861a7f07e02292830a1ca256328d370deefea30 ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. soc_is_brcmstb() doesn't do that, so fix it. [treding: slightly rewrite to avoid inline

[PATCH lora-next 05/11] net: lora: sx130x: initialise AGC

2019-01-28 Thread Ben Whitten
From: Ben Whitten Initialisation of the AGC firmware requires a couple of steps to be completed; - Loading a TX LUT - Loading the two MSBs for the radio tx synthesizer frequencies, (Always 3 if f > 768 for SX1257 and SX1258 or f > 384 for SX1255) - Loading a firmware option - Finish

Re: [PATCH AUTOSEL 4.20 163/304] sched/topology: Add lowest CPU asymmetry sched_domain level pointer

2019-01-28 Thread Quentin Perret
Hi Sasha, On Monday 28 Jan 2019 at 10:41:20 (-0500), Sasha Levin wrote: > From: Quentin Perret > > [ Upstream commit 011b27bb5d3139e8b5fe9ceff1fc7f6dc3145071 ] > > Add another member to the family of per-cpu sched_domain shortcut > pointers. This one, sd_asym_cpucapacity, points to the lowest

[PATCH AUTOSEL 4.14 054/170] drm: Clear state->acquire_ctx before leaving drm_atomic_helper_commit_duplicated_state()

2019-01-28 Thread Sasha Levin
From: Sean Paul [ Upstream commit aa394b0dd68cb00c483e151dcd84713d4d517ed1 ] drm_atomic_helper_commit_duplicated_state() sets state->acquire_ctx to the context given in the argument and leaves it in state after it quits. The lifetime of state and context are not guaranteed to be the same, so we

[PATCH AUTOSEL 4.14 059/170] arm64: ftrace: don't adjust the LR value

2019-01-28 Thread Sasha Levin
From: Mark Rutland [ Upstream commit 6e803e2e6e367db9a0d6ecae1bd24bb5752011bd ] The core ftrace code requires that when it is handed the PC of an instrumented function, this PC is the address of the instrumented instruction. This is necessary so that the core ftrace code can identify the

[PATCH AUTOSEL 4.14 057/170] firmware/efi: Add NULL pointer checks in efivars API functions

2019-01-28 Thread Sasha Levin
From: Arend van Spriel [ Upstream commit ab2180a15ce54739fed381efb4cb12e78dfb1561 ] Since commit: ce2e6db554fa ("brcmfmac: Add support for getting nvram contents from EFI variables") we have a device driver accessing the efivars API. Several functions in the efivars API assume __efivars

Re: [PATCH 1/4] selftests: lib: allow to override CC in the top-level Makefile

2019-01-28 Thread Daniel Díaz
Hello! On Mon, 28 Jan 2019 at 10:28, shuah wrote: > On 1/28/19 8:42 AM, Denys Dmytriyenko wrote: > > On Mon, Jan 28, 2019 at 08:01:15AM -0700, shuah wrote: > >> Hi Daniel, > >> > >> On 1/18/19 10:54 AM, Daniel Díaz wrote: > >>> Hello! > >>> > >>> On Wed, 16 Jan 2019 at 15:56, shuah wrote: >

[PATCH AUTOSEL 4.14 070/170] driver core: Move async_synchronize_full call

2019-01-28 Thread Sasha Levin
From: Alexander Duyck [ Upstream commit c37d721c68ad88925ba0e72f6e14acb829a8c6bb ] Move the async_synchronize_full call out of __device_release_driver and into driver_detach. The idea behind this is that the async_synchronize_full call will only guarantee that any existing async operations are

[PATCH AUTOSEL 4.14 069/170] clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks

2019-01-28 Thread Sasha Levin
From: Chen-Yu Tsai [ Upstream commit 6e6da2039c82271dd873b9ad2b902a692a7dd554 ] All the audio interfaces on Allwinner SoCs need to change their module clocks during operation, to switch between support for 44.1 kHz and 48 kHz family sample rates. The clock rate for the module clocks is governed

[PATCH AUTOSEL 4.14 066/170] usb: hub: delay hub autosuspend if USB3 port is still link training

2019-01-28 Thread Sasha Levin
From: Mathias Nyman [ Upstream commit e86108940e541febf35813402ff29fa6f4a9ac0b ] When initializing a hub we want to give a USB3 port in link training the same debounce delay time before autosuspening the hub as already trained, connected enabled ports. USB3 ports won't reach the enabled state

[PATCH AUTOSEL 4.14 068/170] usb: mtu3: fix the issue about SetFeature(U1/U2_Enable)

2019-01-28 Thread Sasha Levin
From: Chunfeng Yun [ Upstream commit a0678e2eed41e81004308693ac84ea95614b0920 ] Fix the issue: device doesn't accept LGO_U1/U2: 1. set SW_U1/U2_ACCEPT_ENABLE to eanble controller to accept LGO_U1/U2 by default; 2. enable/disable controller to initiate requests for transition into U1/U2

[PATCH AUTOSEL 4.14 072/170] IB/hfi1: Unreserve a reserved request when it is completed

2019-01-28 Thread Sasha Levin
From: Kaike Wan [ Upstream commit ca95f802ef5139722acc8d30aeaab6fe5bbe939e ] Currently, When a reserved operation is completed, its entry in the send queue will not be unreserved, which leads to the miscalculation of qp->s_avail and thus the triggering of a WARN_ON call trace. This patch fixes

[PATCH AUTOSEL 4.14 076/170] ARM: dts: Fix OMAP4430 SDP Ethernet startup

2019-01-28 Thread Sasha Levin
From: Russell King - ARM Linux [ Upstream commit 84fb6c7feb1494ebb7d1ec8b95cfb7ada0264465 ] It was noticed that unbinding and rebinding the KSZ8851 ethernet resulted in the driver reporting "failed to read device ID" at probe. Probing the reset line with a 'scope while repeatedly attempting to

[PATCH AUTOSEL 4.14 079/170] ARM: dts: Fix up the D-Link DIR-685 MTD partition info

2019-01-28 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 738a05e673435afb986b53da43befd83ad87ec3b ] The vendor firmware was analyzed to get the right idea about this flash layout. /proc/mtd contains: dev:size erasesize name mtd0: 01e7ff40 0002 "rootfs" mtd1: 01f4 0002 "upgrade" mtd2: 0004

Re: [RFC] Don't print sample_type bits in non-group events not set in the group's was Re: [PATCH] perf, script: Fix crash with printing mixed trace point and other events

2019-01-28 Thread Andi Kleen
> > also now it won't make sample for slave events > > with zero value/period read > > > > note the patch needs to be split into more patches, > > sending it all together for discussion over the solution > > any feedback on this one? Looks good to me. Reviewed-by: Andi Kleen -Andi

[PATCH AUTOSEL 4.14 080/170] tracing: Have trace_stack nr_entries compare not be so subtle

2019-01-28 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ca16b0fbb05242f18da9d810c07d3882ffed831c ] Dan Carpenter reviewed the trace_stack.c code and figured he found an off by one bug. "From reviewing the code, it seems possible for stack_trace_max.nr_entries to be set to .max_entries and in that case we

[PATCH AUTOSEL 4.14 082/170] watchdog: renesas_wdt: don't set divider while watchdog is running

2019-01-28 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit e990e12741877e9bfac402ca468f4007a75f6e2a ] The datasheet says we must stop the timer before changing the clock divider. This can happen when the restart handler is called while the watchdog is running. Signed-off-by: Wolfram Sang Reviewed-by: Fabrizio

[PATCH AUTOSEL 4.14 086/170] sata_rcar: fix deferred probing

2019-01-28 Thread Sasha Levin
From: Sergei Shtylyov [ Upstream commit 9f83cfdb1ace3ef268ecc6fda50058d2ec37d603 ] The driver overrides the error codes returned by platform_get_irq() to -EINVAL, so if it returns -EPROBE_DEFER, the driver would fail the probe permanently instead of the deferred probing. Switch to propagating

[PATCH AUTOSEL 4.14 084/170] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2019-01-28 Thread Sasha Levin
From: Vivek Gautam [ Upstream commit 89cddc563743cb1e0068867ac97013b2a5bf86aa ] qcom,smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. On msm8996, multiple cores, viz. mdss, video, etc. use this smmu. On sdm845, this smmu is used with gpu. Add bindings for the

[PATCH AUTOSEL 4.14 088/170] cpuidle: big.LITTLE: fix refcount leak

2019-01-28 Thread Sasha Levin
From: Yangtao Li [ Upstream commit 9456823c842f346c74265fcd98d008d87a7eb6f5 ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li Acked-by: Daniel

<    4   5   6   7   8   9   10   11   12   13   >