[PATCH AUTOSEL 4.4 1/7] thermal: of-thermal: disable passive polling when thermal zone is disabled

2018-09-19 Thread Sasha Levin
From: Anson Huang [ Upstream commit 152395fd03d4ce1e535a75cdbf58105e50587611 ] When thermal zone is in passive mode, disabling its mode from sysfs is NOT taking effect at all, it is still polling the temperature of the disabled thermal zone and handling all thermal trips, it makes user confused.

[PATCH AUTOSEL 3.18 4/4] hwmon: (adt7475) Make adt7475_read_word() return errors

2018-09-19 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f196dec6d50abb2e65fb54a0621b2f1b4d922995 ] The adt7475_read_word() function was meant to return negative error codes on failure. Signed-off-by: Dan Carpenter Reviewed-by: Tokunori Ikegami Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 4.9 14/14] i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus

2018-09-19 Thread Sasha Levin
From: Mika Westerberg [ Upstream commit 7fd6d98b89f382d414e1db528e29a67bbd749457 ] Commit 7ae81952cda ("i2c: i801: Allow ACPI SystemIO OpRegion to conflict with PCI BAR") made it possible for AML code to access SMBus I/O ports by installing custom SystemIO OpRegion handler and blocking i80i driv

[PATCH AUTOSEL 4.4 2/7] net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit 3ed614dce3ca9912d22be215ff0f11104b69fe62 ] When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length and page_offset are u16, they will overflow. So change them to u32. Fixes: 6fe6611ff275 ("net: add H

[PATCH AUTOSEL 4.14 09/25] net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit 3ed614dce3ca9912d22be215ff0f11104b69fe62 ] When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length and page_offset are u16, they will overflow. So change them to u32. Fixes: 6fe6611ff275 ("net: add H

[PATCH AUTOSEL 4.18 52/56] arm/arm64: smccc-1.1: Make return values unsigned long

2018-09-19 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 1d8f574708a3fb6f18c85486d0c5217df893c0cf ] An unfortunate consequence of having a strong typing for the input values to the SMC call is that it also affects the type of the return values, limiting r0 to 32 bits and r{1,2,3} to whatever was passed as an input.

[PATCH AUTOSEL 3.18 3/4] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit ee400a3f1bfe7004a3e14b81c38ccc5583c26295 ] In 'e1000_set_ringparam()', the tx_ring and rx_ring are updated with new value and the old tx/rx rings are freed only when the device is up. There are resource leaks on old tx/rx rings when the device is not up. This bug

[PATCH AUTOSEL 4.9 02/14] qed: Wait for MCP halt and resume commands to take place

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit 76271809f49056f079e202bf6513d17b0d6dd34d ] Successive iterations of halting and resuming the management chip (MCP) might fail, since currently the driver doesn't wait for these operations to actually take place. This patch prevents the driver from moving forwa

[PATCH AUTOSEL 3.18 2/4] e1000: check on netif_running() before calling e1000_up()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit cf1acec008f8d7761aa3fd7c4bca7e17b2d2512d ] When the device is not up, the call to 'e1000_up()' from the error handling path of 'e1000_set_ringparam()' causes a kernel oops with a null-pointer dereference. The null-pointer dereference is triggered in function 'e100

[PATCH AUTOSEL 4.14 08/25] bpf: sockmap: write_space events need to be passed to TCP handler

2018-09-19 Thread Sasha Levin
From: John Fastabend [ Upstream commit 9b2e0388bec8ec5427403e23faff3b58dd1c3200 ] When sockmap code is using the stream parser it also handles the write space events in order to handle the case where (a) verdict redirects skb to another socket and (b) the sockmap then sends the skb but due to me

[PATCH AUTOSEL 4.9 11/14] drm/amdgpu: Update power state at the end of smu hw_init.

2018-09-19 Thread Sasha Levin
From: Rex Zhu [ Upstream commit 2ab4d0e74256fc49b7b270f63c1d1e47c2455abc ] For SI/Kv, the power state is managed by function amdgpu_pm_compute_clocks. when dpm enabled, we should call amdgpu_pm_compute_clocks to update current power state instand of set boot state. this change can fix the oops

[PATCH AUTOSEL 4.4 4/7] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit ee400a3f1bfe7004a3e14b81c38ccc5583c26295 ] In 'e1000_set_ringparam()', the tx_ring and rx_ring are updated with new value and the old tx/rx rings are freed only when the device is up. There are resource leaks on old tx/rx rings when the device is not up. This bug

[PATCH AUTOSEL 3.18 1/4] thermal: of-thermal: disable passive polling when thermal zone is disabled

2018-09-19 Thread Sasha Levin
From: Anson Huang [ Upstream commit 152395fd03d4ce1e535a75cdbf58105e50587611 ] When thermal zone is in passive mode, disabling its mode from sysfs is NOT taking effect at all, it is still polling the temperature of the disabled thermal zone and handling all thermal trips, it makes user confused.

[PATCH AUTOSEL 4.14 10/25] net: hns: fix skb->truesize underestimation

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit b1ccd4c0ab6ef499f47dd84ed4920502a7147bba ] skb->truesize is not meant to be tracking amount of used bytes in a skb, but amount of reserved/consumed bytes in memory. For instance, if we use a single byte in last page fragment, we have to account the full size

[PATCH AUTOSEL 4.14 12/25] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit ee400a3f1bfe7004a3e14b81c38ccc5583c26295 ] In 'e1000_set_ringparam()', the tx_ring and rx_ring are updated with new value and the old tx/rx rings are freed only when the device is up. There are resource leaks on old tx/rx rings when the device is not up. This bug

[PATCH AUTOSEL 4.9 08/14] hwmon: (ina2xx) fix sysfs shunt resistor read access

2018-09-19 Thread Sasha Levin
From: Lothar Felten [ Upstream commit 3ad867001c91657c46dcf6656d52eb6080286fd5 ] fix the sysfs shunt resistor read access: return the shunt resistor value, not the calibration register contents. update email address Signed-off-by: Lothar Felten Signed-off-by: Guenter Roeck Signed-off-by: Sas

[PATCH AUTOSEL 4.14 23/25] arm/arm64: smccc-1.1: Handle function result as parameters

2018-09-19 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 755a8bf5579d22eb5636685c516d8dede799e27b ] If someone has the silly idea to write something along those lines: extern u64 foo(void); void bar(struct arm_smccc_res *res) { arm_smccc_1_1_smc(0xbad, foo(), res);

[PATCH AUTOSEL 4.18 53/56] arm/arm64: smccc-1.1: Handle function result as parameters

2018-09-19 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 755a8bf5579d22eb5636685c516d8dede799e27b ] If someone has the silly idea to write something along those lines: extern u64 foo(void); void bar(struct arm_smccc_res *res) { arm_smccc_1_1_smc(0xbad, foo(), res);

[PATCH AUTOSEL 4.18 41/56] crypto: chtls - fix null dereference chtls_free_uld()

2018-09-19 Thread Sasha Levin
From: Ganesh Goudar [ Upstream commit 65b2c12dcdb883fc015c0ec65d6c2f857e0456ac ] call chtls_free_uld() only for the initialized cdev, this fixes NULL dereference in chtls_free_uld() Signed-off-by: Ganesh Goudar Signed-off-by: Atul Gupta Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin -

[PATCH AUTOSEL 4.18 49/56] nvme-fcloop: Fix dropped LS's to removed target port

2018-09-19 Thread Sasha Levin
From: James Smart [ Upstream commit afd299ca996929f4f98ac20da0044c0cdc124879 ] When a targetport is removed from the config, fcloop will avoid calling the LS done() routine thinking the targetport is gone. This leaves the initiator reset/reconnect hanging as it waits for a status on the Create_A

[PATCH AUTOSEL 4.18 46/56] drm/amdgpu: Enable/disable gfx PG feature in rlc safe mode

2018-09-19 Thread Sasha Levin
From: Rex Zhu [ Upstream commit 8ef23364b654d44244400d79988e677e504b21ba ] This is required by gfx hw and can fix the rlc hang when do s3 stree test on Cz/St. Reviewed-by: Alex Deucher Signed-off-by: Hang Zhou Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --

[PATCH AUTOSEL 4.18 15/56] bpf, sockmap: fix sock hash count in alloc_sock_hash_elem

2018-09-19 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit eb29429d81e31b191f3b2bd19cf820279cec6463 ] When we try to allocate a new sock hash entry and the allocation fails, then sock hash map fails to reduce the map element counter, meaning we keep accounting this element although it was never used. Fix it by dro

[PATCH AUTOSEL 4.18 10/56] mmc: atmel-mci: fix bad logic of sg_copy_{from,to}_buffer conversion

2018-09-19 Thread Sasha Levin
From: Ludovic Desroches [ Upstream commit 19f5e9e015675fcdbf2c20e804b2e84e80201454 ] The conversion to sg_copy_{from,to}_buffer has been done in the wrong way. sg_copy_to_buffer is a copy from an SG list to a linear buffer so it can't replace memcpy(buf + offset, &value, remaining) where buf is

[PATCH AUTOSEL 4.18 28/56] ice: Report stats for allocated queues via ethtool stats

2018-09-19 Thread Sasha Levin
From: Jacob Keller [ Upstream commit f8ba7db850350319348b6d3c276f8ba19bc098ef ] It is not safe to have the string table for statistics change order or size over the lifetime of a given netdevice. This is because of the nature of the 3-step process for obtaining stats. First, user space performs

[PATCH 3/5] nds32: support denormalized result through FP emulator

2018-09-19 Thread Vincent Chen
For current nds32 FPU, arithmetic for denormalized number is unsupported. When nds32 FPU finds the result of floating pointer instruction is a denormlized number, nds32 FPU thinks an underflow condition is happened and round the result to an appropriate number. It may cause precision loss. This c

[PATCH AUTOSEL 4.18 09/56] isofs: reject hardware sector size > 2048 bytes

2018-09-19 Thread Sasha Levin
From: Eric Sandeen [ Upstream commit 09a4e0be5826aa66c4ce9954841f110ffe63ef4f ] The largest block size supported by isofs is ISOFS_BLOCK_SIZE (2048), but isofs_fill_super calls sb_min_blocksize and sets the blocksize to the device's logical block size if it's larger than what we ended up with af

[PATCH 2/5] nds32: Support FP emulation

2018-09-19 Thread Vincent Chen
Andes FPU hardware does not support denormalized number handling. >From Andes FPU spec, FPU generates a denorm input to require kernel to deal with this instrution operation when encountering a denormalized operand. Hence an emulator for nds32 FPU ISA in kernel is needed to satisfy the requiremen

[PATCH AUTOSEL 4.18 26/56] net: hns3: fix page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit 27a5959308559fa6afcaa4e6cd81d25bcb2dda7c ] When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of page_offset is u16, it will overflow. So change it to u32, when "CONFIG_ARM64_64K_PAGES" enabled. Fixes: 76a

[PATCH AUTOSEL 4.18 44/56] hwmon: (adt7475) Make adt7475_read_word() return errors

2018-09-19 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f196dec6d50abb2e65fb54a0621b2f1b4d922995 ] The adt7475_read_word() function was meant to return negative error codes on failure. Signed-off-by: Dan Carpenter Reviewed-by: Tokunori Ikegami Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- driv

[PATCH 1/5] nds32: nds32 FPU port

2018-09-19 Thread Vincent Chen
This commit contains basic components for nds32 FPU support such as FPU exception handler and context switch for FPU register. Signed-off-by: Vincent Chen --- arch/nds32/Kconfig |1 + arch/nds32/Kconfig.cpu | 22 +++ arch/nds32/Makefile

[PATCH AUTOSEL 4.18 13/56] ARM: dts: omap4-droid4: fix vibrations on Droid 4

2018-09-19 Thread Sasha Levin
From: Pavel Machek [ Upstream commit f4efa74c09a7eddcc12cd13208f78743763f6e7a ] Vibration GPIOs don't have anything to do with wakeup. Move it to normal section; this fixes vibrations on Droid 4. Fixes: a5effd968301 ("ARM: dts: omap4-droid4: Add vibrator") Signed-off-by: Pavel Machek Reviewed-

[PATCH AUTOSEL 4.18 25/56] net: hns: fix skb->truesize underestimation

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit b1ccd4c0ab6ef499f47dd84ed4920502a7147bba ] skb->truesize is not meant to be tracking amount of used bytes in a skb, but amount of reserved/consumed bytes in memory. For instance, if we use a single byte in last page fragment, we have to account the full size

[PATCH AUTOSEL 4.18 19/56] drm/amdgpu: fix preamble handling

2018-09-19 Thread Sasha Levin
From: Christian König [ Upstream commit d98ff24e8e9be3329eea7c84d5e244d0c1cd0ab3 ] At this point the command submission can still be interrupted. Signed-off-by: Christian König Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdg

[PATCH AUTOSEL 4.18 29/56] ice: Clean control queues only when they are initialized

2018-09-19 Thread Sasha Levin
From: Preethi Banala [ Upstream commit b29bc220e2c7bd494a4605defcd93b18d5a8cf86 ] Clean control queues only when they are initialized. One of the ways to validate if the basic initialization is done is by checking value of cq->sq.head and cq->rq.head variables that specify the register address.

[PATCH AUTOSEL 4.18 36/56] e1000: check on netif_running() before calling e1000_up()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit cf1acec008f8d7761aa3fd7c4bca7e17b2d2512d ] When the device is not up, the call to 'e1000_up()' from the error handling path of 'e1000_set_ringparam()' causes a kernel oops with a null-pointer dereference. The null-pointer dereference is triggered in function 'e100

[PATCH AUTOSEL 4.18 07/56] qed: Avoid sending mailbox commands when MFW is not responsive

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit b310974e041913231b6e3d5d475d4df55c312301 ] Keep sending mailbox commands to the MFW when it is not responsive ends up with a redundant amount of timeout expiries. This patch prints the MCP status on the first command which is not responded, and blocks the foll

[PATCH 0/5] nds32 FPU port

2018-09-19 Thread Vincent Chen
This patchset contains basic components for nds32 FPU support such as exception handler and context switch for FPU register. Lazy FPU is supported in nds32 by default. User can through CONFIG_UNLZAY_FPU to disable this feature. In addition, a floating point emulator is needed to deal with all ari

[PATCH AUTOSEL 4.18 45/56] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-09-19 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 538d6e9d597584e80514698e24321645debde78f ] This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. That commit followed the reference manual but unfortunately the imx7d manual is incorrect. Tested with ath9k pcie card and confirmed internally. Sig

[PATCH AUTOSEL 4.18 43/56] hwmon: (ina2xx) fix sysfs shunt resistor read access

2018-09-19 Thread Sasha Levin
From: Lothar Felten [ Upstream commit 3ad867001c91657c46dcf6656d52eb6080286fd5 ] fix the sysfs shunt resistor read access: return the shunt resistor value, not the calibration register contents. update email address Signed-off-by: Lothar Felten Signed-off-by: Guenter Roeck Signed-off-by: Sas

[PATCH 4/5] math-emu/op-2.h: Use statement expressions to prevent negative constant shift

2018-09-19 Thread Vincent Chen
This modification is quoted from glibc 'commit (fe0b1e854ad32a69b260)' Signed-off-by: Vincent Chen --- include/math-emu/op-2.h | 97 ++ 1 files changed, 46 insertions(+), 51 deletions(-) diff --git a/include/math-emu/op-2.h b/include/math-emu/op-2

[PATCH AUTOSEL 4.18 23/56] tcp_bbr: in restart from idle, see if we should exit PROBE_RTT

2018-09-19 Thread Sasha Levin
From: Kevin Yang [ Upstream commit 5490b32dce6932ea7ee8e3b2f76db2957c92af6e ] This patch fix the case where BBR does not exit PROBE_RTT mode when it restarts from idle. When BBR restarts from idle and if BBR is in PROBE_RTT mode, BBR should check if it's time to exit PROBE_RTT. If yes, then BBR

[PATCH AUTOSEL 4.18 48/56] ata: ftide010: Add a quirk for SQ201

2018-09-19 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 46cb52ad414ac829680d0bb8cc7090ac2b577ca7 ] The DMA is broken on this specific device for some unknown reason (probably badly designed or plain broken interface electronics) and will only work with PIO. Other users of the same hardware does not have this prob

[PATCH 5/5] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning

2018-09-19 Thread Vincent Chen
_FP_ROUND_ZERO is defined as 0 and used as a statemente in macro _FP_ROUND. This generates "error: statement with no effect [-Werror=unused-value]" from gcc. Defining _FP_ROUND_ZERO as (void)0 to fix it. This modification is quoted from glibc 'commit (8ed1e7d5894000c155acbd06f)' Signed-off-by:

[PATCH AUTOSEL 4.18 31/56] ice: Use order_base_2 to calculate higher power of 2

2018-09-19 Thread Sasha Levin
From: Jacob Keller [ Upstream commit 1eb43fc754485d772b1165118a8fb80c385f0492 ] Currently, we use a combination of ilog2 and is_power_of_2() to calculate the next power of 2 for the qcount. This appears to be causing a warning on some combinations of GCC and the Linux kernel: MODPOST 1 modules

[PATCH AUTOSEL 4.18 01/56] ARM: OMAP2+: Fix null hwmod for ti-sysc debug

2018-09-19 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 4769c003e0fcff0ee001a9102e2605bdaa5880f0 ] We may call omap_hwmod_parse_module_range() with no hwmod allocated yet and may have debug enabled. Let's fix this by checking for hwmod before trying to use it's name. Fixes: 6c72b3550672 ("ARM: OMAP2+: Parse modu

[PATCH AUTOSEL 4.18 02/56] ARM: OMAP2+: Fix module address for modules using mpu_rt_idx

2018-09-19 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 1dbcb97c656eed1a244c960b8b3a469c3d20ce7b ] If we use device tree data for a module interconnect target we want to map the control registers from the module start. Legacy hwmod platform data however is using child IP offsets for cpsw module with mpu_rt_idx.

[PATCH AUTOSEL 4.18 14/56] bpf, sockmap: fix sock_hash_alloc and reject zero-sized keys

2018-09-19 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit b845c898b2f1ea458d5453f0fa1da6e2dfce3bb4 ] Currently, it is possible to create a sock hash map with key size of 0 and have the kernel return a fd back to user space. This is invalid for hash maps (and kernel also hasn't been tested for zero key size suppor

[PATCH AUTOSEL 4.18 05/56] qed: Wait for MCP halt and resume commands to take place

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit 76271809f49056f079e202bf6513d17b0d6dd34d ] Successive iterations of halting and resuming the management chip (MCP) might fail, since currently the driver doesn't wait for these operations to actually take place. This patch prevents the driver from moving forwa

[PATCH AUTOSEL 4.18 12/56] bus: ti-sysc: Fix no_console_suspend handling

2018-09-19 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 4f3530f4a41d49c41015020cd9a5ed5c95b5d2db ] If no_console_suspend is set, we should keep console enabled during suspend. Lets fix this by only producing a warning if we can't idle hardware during suspend. Fixes: ef55f8215a78 ("bus: ti-sysc: Improve suspend a

[PATCH AUTOSEL 4.18 32/56] ice: Set VLAN flags correctly

2018-09-19 Thread Sasha Levin
From: Brett Creeley [ Upstream commit 5d8778d803e21f235e9bc727b5bd619f02abb88b ] In the struct ice_aqc_vsi_props the field port_vlan_flags is an overloaded term because it is used for both port VLANs (PVLANs) and regular VLANs. This is an issue and is very confusing especially when dealing with

[PATCH AUTOSEL 4.18 11/56] mmc: android-goldfish: fix bad logic of sg_copy_{from,to}_buffer conversion

2018-09-19 Thread Sasha Levin
From: Ludovic Desroches [ Upstream commit 17e96d8516e31c3cb52cb8e2ee79d1d2e6948c11 ] The conversion to sg_copy_{from,to}_buffer has been done in the wrong way. sg_copy_to_buffer is a copy from an SG list to a linear buffer so it can't replace memcpy(dest, host->virt_base, data->sg->length) where

[PATCH AUTOSEL 4.18 30/56] ice: Fix bugs in control queue processing

2018-09-19 Thread Sasha Levin
From: Anirudh Venkataramanan [ Upstream commit 3d6b640efcc1b07709b42dd2e9609401c6f88633 ] This patch is a consolidation of multiple bug fixes for control queue processing. 1) In ice_clean_adminq_subtask() remove unnecessary reads/writes to registers. The bits PFINT_FW_CTL, PFINT_MBX_CTL an

[PATCH] misc: genwqe: should return proper error value.

2018-09-19 Thread zhong jiang
The function should return -EFAULT when copy_from_user fails. Even though the caller does not distinguish them. but we should keep backward compatibility. Signed-off-by: zhong jiang --- drivers/misc/genwqe/card_utils.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --g

Re: [RFC PATCH] selinux: add a fallback to defcontext for native labeling

2018-09-19 Thread Taras Kondratiuk
Quoting Stephen Smalley (2018-09-19 12:00:33) > On 09/19/2018 12:52 PM, Taras Kondratiuk wrote: > > When files on NFSv4 server are not properly labeled (label doesn't match > > a policy on a client) they will end up with unlabeled_t type which is > > too generic. We would like to be able to set a d

Re: [PATCH AUTOSEL 4.18 10/92] mtd: rawnand: fscm: Avoid collision on PC def when compiling for MIPS

2018-09-19 Thread Sasha Levin
On Sat, Sep 15, 2018 at 07:21:11PM +0200, Miquel Raynal wrote: >Hi Sasha, > >Sasha Levin wrote on Sat, 15 Sep 2018 >01:29:55 +: > >> From: Boris Brezillon >> >> [ Upstream commit 8f3931ed975e1d775b87ce85d65ecacd54138359 ] >> >> We want to allow this driver to be selected when COMPILE_TEST=y,

Re: [PATCH] Revert "ubifs: xattr: Don't operate on deleted inodes"

2018-09-19 Thread Joel Stanley
On Mon, 17 Sep 2018 at 07:30, Richard Weinberger wrote: > > This reverts commit 11a6fc3dc743e22fb50f2196ec55bee5140d3c52. > UBIFS wants to assert that xattr operations are only issued on files > with positive link count. The said patch made this operations return > -ENOENT for unlinked files such

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-19 Thread Ard Biesheuvel
On 19 September 2018 at 07:31, Jim Quinlan wrote: > The Broadcom STB PCIe host controller is intimately related to the > memory subsystem. This close relationship adds complexity to how cpu > system memory is mapped to PCIe memory. Ideally, this mapping is an > identity mapping, or an identity m

RE: [PATCH V6 0/4] clk: new APIs to handle all available clocks

2018-09-19 Thread A.s. Dong
> -Original Message- > From: Thor Thayer [mailto:thor.tha...@linux.intel.com] > Sent: Wednesday, September 19, 2018 10:47 PM > To: A.s. Dong ; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > sb...@kernel.org; mturque...@baylibre.com; sha

Re: Code of Conduct: Let's revamp it.

2018-09-19 Thread Edward Cree
On 20/09/18 02:16, Olof Johansson wrote: > I would be very surprised if any of my peers on the TAB ever had those > intentions, and I know I would not have them myself. In case my references to individualsmade it unclear: I have no reason to  suspect _any_ of the present TAB members would; everythi

Re: [PATCH v1 2/3] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-09-19 Thread Yi Sun
Hi, On 18-09-17 20:54:52, Yi Sun wrote: > On 18-09-14 12:42:33, Thomas Gleixner wrote: > > On Fri, 14 Sep 2018, Yi Sun wrote: > > > > > +static void hv_notify_long_spin_wait(void) > > > > > +{ > > > > > + u64 input = spin_wait_info | 0x; > > > > > > > > What? The result is al

[PATCH] kgdboc: Fix warning with module build

2018-09-19 Thread Laura Abbott
After 2dd453168643 ("kgdboc: Fix restrict error"), kgdboc_option_setup is now only used when built in, resulting in a warning when compiled as a module: drivers/tty/serial/kgdboc.c:134:12: warning: 'kgdboc_option_setup' defined but not used [-Wunused-function] static int kgdboc_option_setup(ch

Re: [PATCH] pinctrl: qcom: spmi-gpio: Add pms405 gpio support

2018-09-19 Thread Bjorn Andersson
On Wed 19 Sep 18:47 PDT 2018, Bjorn Andersson wrote: > From: Vinod Koul > > Update the binding and driver for pms405-gpios > > Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson Regards, Bjorn > --- > Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 ++ > drivers/pin

[PATCH] remoteproc: qcom: q6v5: Propagate EPROBE_DEFER

2018-09-19 Thread Bjorn Andersson
In the case that the interrupts fail to result because of the interrupt-controller not yet being registered the platform_get_irq_byname() call will fail with -EPROBE_DEFER, but passing this into devm_request_threaded_irq() will result in -EINVAL being returned, the driver is therefor not reprobed l

[PATCH -next] serial: imx: remove set but not used variable 'rtsirq'

2018-09-19 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/tty/serial/imx.c: In function 'imx_uart_probe': drivers/tty/serial/imx.c:2198:20: warning: variable 'rtsirq' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- drivers/tty/serial/imx.c | 3 +-- 1 file changed, 1 ins

[PATCH -next] pinctrl: qcom: spmi-mpp: Fix err handling of pmic_mpp_set_mux

2018-09-19 Thread YueHaibing
'ret' should be returned while pmic_mpp_write_mode_ctl fails. Fixes: 0e948042c420 ("pinctrl: qcom: spmi-mpp: Implement support for sink mode") Signed-off-by: YueHaibing --- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl

[PATCH] power: reset: qcom-pon: Add pms405 pon support

2018-09-19 Thread Bjorn Andersson
From: Vinod Koul Update the binding and driver for pms405 pon. Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/power/reset/qcom,pon.txt | 5 - drivers/power/reset/qcom-pon.c | 1 + 2 files changed, 5 insertions(+),

linux-next: build warnings after merge of the devicetree tree

2018-09-19 Thread Stephen Rothwell
Hi Rob, After merging the devicetree tree, today's linux-next build (arm multi_v7_defconfig) produced these warnings: arch/arm/boot/dts/bcm53340-ubnt-unifi-switch8.dtb: Warning (spi_bus_bridge): /axi@1800/qspi@27200: node name for SPI buses should be 'spi' arch/arm/boot/dts/bcm53340-ubnt-uni

[PATCH] Input: pm8941-pwrkey - Add pms405 pwrkey support

2018-09-19 Thread Bjorn Andersson
From: Vinod Koul Update the binding and driver for pms405 pwrkey. Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 1 + drivers/input/misc/pm8941-pwrkey.c | 1 + 2 files changed, 2 inserti

[PATCH] pinctrl: qcom: spmi-gpio: Add pms405 gpio support

2018-09-19 Thread Bjorn Andersson
From: Vinod Koul Update the binding and driver for pms405-gpios Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 ++ drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Documentation/de

[PATCH] soc: qcom: smd-rpm: Add QCS404 compatible

2018-09-19 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 + drivers/soc/qcom/smd-rpm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt b/Documentation/devi

[PATCH] mailbox: qcom: Add QCS404 APPS Global compatible

2018-09-19 Thread Bjorn Andersson
Add support for the QCS404 APPS Global block with IPC register at offset 8. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt| 1 + drivers/mailbox/qcom-apcs-ipc-mailbox.c | 1 + 2 files changed, 2 insertions(+) diff --

[PATCH] regulators: qcom: Add PMS405 regulators

2018-09-19 Thread Bjorn Andersson
The PMS405 provdies 5 SMPS regulators and 13 LDOs, add these to the RPM regulator driver. Signed-off-by: Bjorn Andersson --- .../regulator/qcom,smd-rpm-regulator.txt | 23 ++ drivers/regulator/qcom_smd-regulator.c| 77 +++ 2 files changed, 100 insertions(+) diff

[PATCH 3/4] dt-bindings: pinctrl: qcom: Add QCS404 pinctrl binding

2018-09-19 Thread Bjorn Andersson
Add the binding for the TLMM pinctrl block found in the QCS404 platform. Signed-off-by: Bjorn Andersson --- .../bindings/pinctrl/qcom,qcs404-pinctrl.txt | 200 ++ 1 file changed, 200 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,qcs404-pinctrl

[PATCH 4/4] pinctrl: qcom: Add qcs404 pinctrl driver

2018-09-19 Thread Bjorn Andersson
From: Avaneesh Kumar Dwivedi Add initial pinctrl driver to support pin configuration with pinctrl framework for qcs404. Signed-off-by: Avaneesh Kumar Dwivedi Signed-off-by: Chintan Pandya Signed-off-by: Anu Ramanathan [bjorn: Reworked tile handling and did some minor rework] Signed-off-by: Bj

[PATCH 2/4] pinctrl: qcom: Support dispersed tiles

2018-09-19 Thread Bjorn Andersson
On some new platforms the tiles have been placed too far apart to be covered in a single ioremap. Turn "regs" into an array of base addresses and make the pingroup carry the information about which tile the pin resides in. For existing platforms we map the first entry regs and the existing pingrou

[PATCH 1/4] pinctrl: qcom: Introduce readl/writel accessors

2018-09-19 Thread Bjorn Andersson
In preparation for the support for dispersed tiles move all readl and writel calls to helper functions. This will allow us to isolate the added complexity of another indirection. Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-msm.c | 90 ++ 1 file cha

[PATCH 0/4] Qualcomm QCS404 TLMM pinctrl driver

2018-09-19 Thread Bjorn Andersson
This series introduces register accessor functions and a level of indirection for these, in order to handle dispersed tiles. It then adds the TLMM binder and driver for the QCS404 platform. Avaneesh Kumar Dwivedi (1): pinctrl: qcom: Add qcs404 pinctrl driver Bjorn Andersson (3): pinctrl: qcom

Re: Code of Conduct: Let's revamp it.

2018-09-19 Thread Olof Johansson
Hi, I'd like to clarify that I am replying here in my personal capacity, and not on behalf of the TAB or anyone else. On Thu, Sep 20, 2018 at 12:35 AM, Edward Cree wrote: > On 19/09/18 15:18, Jonathan Corbet wrote: >> I'd like to address just this part, speaking only for myself. >> The LF is not

Re: [PATCH -next] RDMA/core: Properly return the error code of rdma_set_src_addr_rcu

2018-09-19 Thread YueHaibing
On 2018/9/20 0:14, Jason Gunthorpe wrote: > On Wed, Sep 19, 2018 at 08:28:38PM +0800, YueHaibing wrote: >> rdma_set_src_addr_rcu should check copy_src_l2_addr fails, >> rather than always return 0. Also copy_src_l2_addr should return >> 'ret' as its return value while rdma_translate_ip fails. >> >>

Re: [PATCH v4] ARM: dts: pxa: add mioa701 board description

2018-09-19 Thread kbuild test robot
Hi Robert, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on v4.19-rc4 next-20180919] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH] firmware: Always initialize the fw_priv list object

2018-09-19 Thread Bjorn Andersson
When freeing the fw_priv the item is taken off the list. This causes an oops in the FW_OPT_NOCACHE case as the list object is not initialized. Make sure to initialize the list object regardless of this flag. Fixes: 422b3db2a503 ("firmware: Fix security issue with request_firmware_into_buf()") Cc

Re: [PATCH v3 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-09-19 Thread Sebastian Reichel
Hi, On Mon, Sep 17, 2018 at 01:03:31PM -0700, Baolin Wang wrote: > This patch adds the SC2731 PMIC switch charger support. > > Signed-off-by: Baolin Wang > Reviewed-by: Krzysztof Kozlowski > --- Thanks, queued. -- Sebastian > Changes from v2: > - Add reviewed tag from Krzysztof. > - Change

Re: [PATCH v3 1/2] dt-bindings: power: Add Spreadtrum SC2731 charger documentation

2018-09-19 Thread Sebastian Reichel
Hi, On Mon, Sep 17, 2018 at 01:03:30PM -0700, Baolin Wang wrote: > This patch adds the binding documentation for Spreadtrum SC2731 charger > device. > > Signed-off-by: Baolin Wang > Reviewed-by: Krzysztof Kozlowski > --- Thanks, queued. -- Sebastian > Changes from v2: > - Add reviewed tag f

Re: [PATCH 1/2] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-09-19 Thread Baolin Wang
Hi Sebastian, On 20 September 2018 at 08:46, Sebastian Reichel wrote: > Hi, > > On Mon, Sep 17, 2018 at 11:43:30AM +0800, Baolin Wang wrote: >> Hi Sebastian, >> >> On 16 September 2018 at 21:57, Sebastian Reichel >> wrote: >> > Hi, >> > >> > On Wed, Sep 12, 2018 at 03:29:38PM +0800, Baolin Wang

Re: [PATCH 1/2] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-09-19 Thread Sebastian Reichel
Hi, On Mon, Sep 17, 2018 at 11:43:30AM +0800, Baolin Wang wrote: > Hi Sebastian, > > On 16 September 2018 at 21:57, Sebastian Reichel > wrote: > > Hi, > > > > On Wed, Sep 12, 2018 at 03:29:38PM +0800, Baolin Wang wrote: > >> This patch adds the binding documentation for Spreadtrum SC27XX series

Re: [PATCH 2/2] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-19 Thread Baolin Wang
Hi, On 20 September 2018 at 08:36, Sebastian Reichel wrote: > Hi, > > On Mon, Sep 17, 2018 at 12:01:51PM +0800, Baolin Wang wrote: > [...] >> >> +static int sc27xx_fgu_parse_dt(struct sc27xx_fgu_data *data, >> >> +struct device_node *np) >> >> +{ >> >> + const __be

Re: [PATCH AUTOSEL 4.9 31/34] dmaengine: idma64: Support dmaengine_terminate_sync()

2018-09-19 Thread Vinod
On 15-09-18, 01:34, Sasha Levin wrote: > From: Andy Shevchenko > > [ Upstream commit bbacb8e78a3b29ebdbb6af7d54fcf25d3f1c248f ] > > It appears that the driver misses the support of dmaengine_terminate_sync(). > Since many of callers expects this behaviour implement the new > device_synchronize()

Re: [PATCH AUTOSEL 4.9 30/34] dmaengine: hsu: Support dmaengine_terminate_sync()

2018-09-19 Thread Vinod
On 15-09-18, 01:34, Sasha Levin wrote: > From: Andy Shevchenko > > [ Upstream commit 2abc66cd499aa16876e45c6438788902f7d1ce22 ] > > It appears that the driver misses the support of dmaengine_terminate_sync(). > Since many of callers expects this behaviour implement the new > device_synchronize()

Re: [PATCH 2/2] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-19 Thread Sebastian Reichel
Hi, On Mon, Sep 17, 2018 at 12:01:51PM +0800, Baolin Wang wrote: [...] > >> +static int sc27xx_fgu_parse_dt(struct sc27xx_fgu_data *data, > >> +struct device_node *np) > >> +{ > >> + const __be32 *list; > >> + int i, len, size, ret; > >> + > >> + ret = of_pr

Re: [RESEND PATCH V6 3/3] Input: new da7280 haptic driver

2018-09-19 Thread Dmitry Torokhov
Hi Roy, On Wed, Sep 19, 2018 at 07:35:04PM +0900, Roy Im wrote: > > Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with > multiple mode and integrated waveform memory and wideband support. > It communicates via an I2C bus to the device. > > Signed-off-by: Roy Im > > --- > v6: No chan

Re: [LKP] [x86/pci] 7ffb31888c: PANIC:early_exception

2018-09-19 Thread Rong Chen
On 09/19/2018 09:53 PM, Pu Wen wrote: On 2018/9/19 11:19, kernel test robot wrote: [0.800215] AGP: No AGP bridge found PANIC: early exception 0xe3 IP 10:8294623f error 0 cr2 0x0 [0.815262] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.0-rc2-00018-g7ffb318 #1 [0.826860] Har

[PATCH v3] cpufreq: qcom-kryo: Fix section annotations

2018-09-19 Thread Nathan Chancellor
There is currently a warning when building the Kryo cpufreq driver into the kernel image: WARNING: vmlinux.o(.text+0x8aa424): Section mismatch in reference from the function qcom_cpufreq_kryo_probe() to the function .init.text:qcom_cpufreq_kryo_get_msm_id() The function qcom_cpufreq_kryo_probe() r

[PATCH v3 14/16] LSM: Infrastructure management of the task security blob

2018-09-19 Thread Casey Schaufler
LSM: Infrastructure management of the task security blob Move management of the task_struct->security blob out of the individual security modules and into the security infrastructure. Instead of allocating the blobs from within the modules the modules tell the infrastructure how much space is requ

[PATCH v3 07/16] TOMOYO: Abstract use of cred security blob

2018-09-19 Thread Casey Schaufler
TOMOYO: Abstract use of cred security blob Don't use the cred->security pointer directly. Provide helper functions that provide the security blob pointer. Signed-off-by: Casey Schaufler --- security/tomoyo/common.h| 21 -- security/tomoyo/domain.c| 4 +++- secur

[PATCH v3 03/16] SELinux: Abstract use of cred security blob

2018-09-19 Thread Casey Schaufler
SELinux: Abstract use of cred security blob Don't use the cred->security pointer directly. Provide a helper function that provides the security blob pointer. Signed-off-by: Casey Schaufler --- security/selinux/hooks.c | 54 +++ security/selinux/include/objse

[PATCH v3 02/16] Smack: Abstract use of cred security blob

2018-09-19 Thread Casey Schaufler
Smack: Abstract use of cred security blob Don't use the cred->security pointer directly. Provide a helper function that provides the security blob pointer. Signed-off-by: Casey Schaufler --- security/smack/smack.h| 17 +-- security/smack/smack_access.c | 4 +-- security/smack/s

[PATCH v3 01/16] procfs: add smack subdir to attrs

2018-09-19 Thread Casey Schaufler
procfs: add smack subdir to attrs Back in 2007 I made what turned out to be a rather serious mistake in the implementation of the Smack security module. The SELinux module used an interface in /proc to manipulate the security context on processes. Rather than use a similar interface, I used the sa

Re: [PATCH RESEND] twl4030_charger: fix charging current out-of-bounds

2018-09-19 Thread Sebastian Reichel
Hi, On Mon, Sep 17, 2018 at 07:20:35AM +0200, Andreas Kemnade wrote: > the charging current uses unsigned int variables, if we step back > if the current is still low, we would run into negative which > means setting the target to a huge value. > Better add checks here. > > Signed-off-by: Andreas

[PATCH v3 11/16] SELinux: Abstract use of inode security blob

2018-09-19 Thread Casey Schaufler
SELinux: Abstract use of inode security blob Don't use the inode->i_security pointer directly. Provide a helper function that provides the security blob pointer. Signed-off-by: Casey Schaufler --- security/selinux/hooks.c | 26 +- security/selinux/include/objsec

[PATCH v3 15/16] LSM: Infrastructure management of the ipc security blob

2018-09-19 Thread Casey Schaufler
LSM: Infrastructure management of the ipc security blob Move management of the kern_ipc_perm->security and msg_msg->security blobs out of the individual security modules and into the security infrastructure. Instead of allocating the blobs from within the modules the modules tell the infrastructur

<    1   2   3   4   5   6   7   8   >