Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM

2018-09-16 Thread Feng Tang
Hi Thomas, On Sun, Sep 16, 2018 at 11:06:41PM +0800, Feng Tang wrote: > Hi Thomas, > > On Sun, Sep 16, 2018 at 04:43:55PM +0200, Thomas Gleixner wrote: > > On Sun, 16 Sep 2018, Feng Tang wrote: > > > diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c > > > index e848a4811785..a927f5f39bee

Re: [PATCH] interconnect: Fix a GCC compiler warning

2018-09-16 Thread Greg KH
On Mon, Sep 17, 2018 at 02:15:31PM +0800, zhong jiang wrote: > On 2018/9/16 22:31, zhong jiang wrote: > > Fix the following compile warning: > +to Andrew and Greg > +me for what? Nothing is here :(

RE: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-09-16 Thread 林上智
Hi, > -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > > Pls, use phy-handle instead of phy_id here and in the next patch. Thanks for the reminder, I will use phy-handle in next version. Furthermore, the property of "phy-handle" doesn't work properly

Re: [PATCH v2] ttyprintk: make the printk log level configurable

2018-09-16 Thread Peter Korsgaard
On Fri, Sep 7, 2018 at 10:18 AM Peter Korsgaard wrote: > > For some use cases it is handy to use a different printk log level than the > default (info) for the messages written to ttyprintk, so add a Kconfig > option similar to what we have for default console loglevel. > > Signed-off-by: Peter Ko

Re: [PATCH] scsi: iscsi: target: fix spelling mistake "entires" -> "entries"

2018-09-16 Thread Martin K. Petersen
Colin, > Trivial fix to spelling mistake in function name and comment Applied to 4.20/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-16 Thread Rob Herring
On Sun, Sep 16, 2018 at 04:50:03PM +0800, Guo Ren wrote: > Signed-off-by: Guo Ren Needs a commit description. > --- > .../interrupt-controller/csky,apb-intc.txt | 70 > ++ > 1 file changed, 70 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/

Re: [PATCH mmc-next] mmc: sdhci: fix __sdhci_adma_write_desc

2018-09-16 Thread Adrian Hunter
On 17/09/18 08:30, Jisheng Zhang wrote: > If hosts provides ops->adma_write_desc, we should not fall back to the > general sdhci_adma_write_desc(). > > Signed-off-by: Jisheng Zhang > --- > > Hi Ulf, Adrian, > > When I introduced .adma_write_desc, I made a mistake since v4 -- if the host > provi

[PATCH] resource: fix an error which walks through iomem resources

2018-09-16 Thread Lianbo Jiang
When we walk through iomem resources by calling walk_iomem_res_desc(), the values of the function parameter may be modified in the while loop of __walk _iomem_res_desc(), which will cause us to not get the desired result in some cases. At present, it only restores the original value of res->end, b

Re: [PATCH v5] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.

2018-09-16 Thread Rob Herring
On Sat, Sep 15, 2018 at 05:57:52PM +0800, Song Qiang wrote: > This driver was originally written by ST in 2016 as a misc input device > driver, and hasn't been maintained for a long time. I grabbed some code > from it's API and reformed it into an iio proximity device driver. > This version of driv

Re: KSM not working in 4.9 Kernel

2018-09-16 Thread Pintu Kumar
On Mon, Sep 17, 2018 at 10:07 AM Mike Rapoport wrote: > > On Sun, Sep 16, 2018 at 10:35:17PM +0530, Pintu Kumar wrote: > > On Sun, Sep 16, 2018 at 9:02 PM Mike Rapoport > > wrote: > > > > > > On Fri, Sep 14, 2018 at 07:58:01PM +0530, Pintu Kumar wrote: > > > > Hi All, > > > > > > > > Board: Hike

Re: [PATCH] interconnect: Fix a GCC compiler warning

2018-09-16 Thread zhong jiang
On 2018/9/16 22:31, zhong jiang wrote: > Fix the following compile warning: +to Andrew and Greg

Re: [REGRESSION][BISECTED] Boot stall related to drivers/pci/hotplug/acpiphp_glue.c

2018-09-16 Thread Mika Westerberg
On Mon, Sep 17, 2018 at 08:58:50AM +0300, Peter Anemone wrote: > Dear kernel developers > I reported a bug at Bugzilla, but Greg Kroah-Hartman pointed me in > mailing lists. Here's my bug report: > > Linux has been unbootable for me from 4.18 upwards. Even the fallback > image does not boot. This

[PATCH] x86/apm: Fix a unused function warning

2018-09-16 Thread zhong jiang
Fix the following compile warning: arch/x86/kernel/apm_32.c:1643:12: warning: ‘proc_apm_show’ defined but not used [-Wunused-function] static int proc_apm_show(struct seq_file *m, void *v) Signed-off-by: zhong jiang --- arch/x86/kernel/apm_32.c | 2 ++ 1 file changed, 2 insertions(+) diff --

[REGRESSION][BISECTED] Boot stall related to drivers/pci/hotplug/acpiphp_glue.c

2018-09-16 Thread Peter Anemone
Dear kernel developers I reported a bug at Bugzilla, but Greg Kroah-Hartman pointed me in mailing lists. Here's my bug report: Linux has been unbootable for me from 4.18 upwards. Even the fallback image does not boot. This has not been fixed yet in 4.19-rc3. acpi=off kernel parameter lets me boot

Re: [PATCH] arm64: dts: rockchip: add initial dts support for Rockpro64 board

2018-09-16 Thread Rob Herring
On Fri, Sep 14, 2018 at 05:39:09PM +0530, Akash Gajjar wrote: > Rockpro64 board is a rockchip RK3399 based board from pine64.org. > This commit adds initial device tree support for Rockpro64 board. > > Signed-off-by: Akash Gajjar > --- > Documentation/devicetree/bindings/arm/rockchip.txt | 4 +

Re: [PATCH] MAINTAINERS: Add me as a keys/trusted maintainer

2018-09-16 Thread James Bottomley
On Sun, 2018-09-16 at 22:19 +0300, Jarkko Sakkinen wrote: > On Thu, Sep 13, 2018 at 05:45:54PM +0100, David Howells wrote: > > Jarkko Sakkinen wrote: > > > > > David, what do you think? > > > > Which David? > > > > I think you need to ask James and Mimi since they're the current > > maintainers

[PATCH mmc-next] mmc: sdhci: fix __sdhci_adma_write_desc

2018-09-16 Thread Jisheng Zhang
If hosts provides ops->adma_write_desc, we should not fall back to the general sdhci_adma_write_desc(). Signed-off-by: Jisheng Zhang --- Hi Ulf, Adrian, When I introduced .adma_write_desc, I made a mistake since v4 -- if the host provide ops->adma_write_desc, we should just call it and don't fa

[PATCH RESEND] phy: phy-twl4030-usb: fix denied runtime access

2018-09-16 Thread Andreas Kemnade
When runtime is not enabled, pm_runtime_get_sync() returns -EACCESS, the counter will be incremented but the resume callback not called, so enumeration and charging will not start properly. To avoid that happen, wait and try again later. Practically this happens when the device is woken up from su

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v4

2018-09-16 Thread Daniel Drake
Hi Suren On Fri, Sep 7, 2018 at 11:58 PM, Suren Baghdasaryan wrote: > Thanks for the new patchset! Backported to 4.9 and retested on ARMv8 8 > code system running Android. Signals behave as expected reacting to > memory pressure, no jumps in "total" counters that would indicate an > overflow/unde

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

2018-09-16 Thread Andreas Kemnade
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 Kemnade --- drivers/power/supply/twl4030_charger.c | 3 ++- 1 file changed, 2 i

Re: [PATCH 4.18 082/197] block: dont warn for flush on read-only device

2018-09-16 Thread Greg Kroah-Hartman
On Sun, Sep 16, 2018 at 09:04:04PM -0700, Stefan Agner wrote: > Hi Greg, > > The follow up patch 8b2ded1c94c0 ("block: don't warn when doing fsync > on read-only devices") should get applied too, since it correctly > fixes what this patch tried to fix. Already queueud up, thanks! greg k-h

Re: [PATCH 2/2] tools: hv: fcopy: set 'error' in case an unknown operation was requested

2018-09-16 Thread Greg KH
On Mon, Sep 17, 2018 at 04:14:55AM +, k...@linuxonhyperv.com wrote: > From: Vitaly Kuznetsov > > 'error' variable is left uninitialized in case we see an unknown operation. > As we don't immediately return and proceed to pwrite() we need to set it > to something, HV_E_FAIL sounds good enough.

Re: [PATCH net-next v4 18/20] crypto: port ChaCha20 to Zinc

2018-09-16 Thread Jason A. Donenfeld
Hey Martin, Thanks for running these and pointing this out. I've replicated the results with tcrypt and fixed some issues, and the next patch series should be a lot closer to what you'd expect, instead of the regression you noticed. Most of the slowdown happened as a result of over-eager XSAVEs, w

Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library

2018-09-16 Thread David Miller
From: Andy Lutomirski Date: Sun, 16 Sep 2018 21:09:11 -0700 > CRYPTO API > M: Herbert Xu > M: "David S. Miller" > L: linux-cry...@vger.kernel.org > > Herbert hasn't replied to any of these submissions. You're the other > maintainer :) Herbert is the primary crypto maintainer,

[GIT PULL] ext4 fixes for 4.19-rc5

2018-09-16 Thread Theodore Y. Ts'o
[ This pull request was originally intended for 4.19-rc4, but some testing hiccups delayed my sending this earlier. Given Linus's comments, I'm not sure whether PULL requests should be going to Linus or Greg, so I'm sending it to both. -- Ted ] The following changes since commit 863c37fcb1

[PATCH v5 6/6] arm64/mm: Move {idmap_pg_dir .. swapper_pg_dir} to rodata section.

2018-09-16 Thread Jun Yao
Move the idmap_pg_dir/tramp_pg_dir/reserved_ttbr0/swapper_pg_dir to the rodata section. When the kernel is initialized, the idmap_pg_dir, tramp_pg_dir and reserved_ttbr0 will not change. And it's safe to move them to rodata section. Signed-off-by: Jun Yao --- arch/arm64/kernel/vmlinux.lds.S | 39

[PATCH v5 4/6] arm64/mm: Create the final page table directly in swapper_pg_dir.

2018-09-16 Thread Jun Yao
As the initial page table is created in the init_pg_dir, we can set up the final page table directly in the swapper_pg_dir. And it only contains the top level page table, so we can reduce it to a page size. Signed-off-by: Jun Yao --- arch/arm64/kernel/vmlinux.lds.S | 2 +- arch/arm64/mm/mmu.c

[PATCH v5 1/6] arm64/mm: Introduce the init_pg_dir.

2018-09-16 Thread Jun Yao
To make the swapper_pg_dir read only, we will move it to the rodata section. And force the kernel to set up the initial page table in the init_pg_dir. After generating all levels page table, we copy only the top level into the swapper_pg_dir during paging_init(). In this patch, just add the init_p

[PATCH v5 2/6] arm64/mm: Pass ttbr1 as a parameter to __enable_mmu().

2018-09-16 Thread Jun Yao
The kernel will set up the initial page table in the init_pg_dir. However, it will create the final page table in the swapper_pg_dir during the initialization process. We need to let __enable_mmu() know which page table to use. Signed-off-by: Jun Yao --- arch/arm64/kernel/head.S | 19 ++

[PATCH v5 0/6] Move swapper_pg_dir to rodata section.

2018-09-16 Thread Jun Yao
Version 5 changes: 1. Correct spelling and indentation errors[1]. 2. Update init_mm.pgd by assembly[2]. 3. Simplify set_p?d() by introducing set_swapper_pgd()[3]. 4. Reduce unnecessary tlbi for every write to swapper_pg_dir during paging_init()[3]. v4: ht

[PATCH v5 5/6] arm64/mm: Populate the swapper_pg_dir by fixmap.

2018-09-16 Thread Jun Yao
Since we will move the swapper_pg_dir to rodata section, we need a way to update it. The fixmap can handle it. When the swapper_pg_dir needs to be updated, we map it dynamically. The map will be canceled after the update is complete. In this way, we can defend against KSMA(Kernel Space Mirror Attac

[PATCH v5 3/6] arm64/mm: Create the initial page table in the init_pg_dir.

2018-09-16 Thread Jun Yao
Create the initial page table in the init_pg_dir. And update the init_mm.pgd to make sure that pgd_offset_k() works correctly. When the final page table is created, we redirect the init_mm.pgd to the swapper_pg_dir. Signed-off-by: Jun Yao --- arch/arm64/include/asm/pgtable.h | 2 ++ arch/arm64/k

Re: KSM not working in 4.9 Kernel

2018-09-16 Thread Mike Rapoport
On Sun, Sep 16, 2018 at 10:35:17PM +0530, Pintu Kumar wrote: > On Sun, Sep 16, 2018 at 9:02 PM Mike Rapoport wrote: > > > > On Fri, Sep 14, 2018 at 07:58:01PM +0530, Pintu Kumar wrote: > > > Hi All, > > > > > > Board: Hikey620 ARM64 > > > Kernel: 4.9.20 > > > > > > I am trying to verify KSM (Kerne

[PATCH 2/2] tools: hv: fcopy: set 'error' in case an unknown operation was requested

2018-09-16 Thread kys
From: Vitaly Kuznetsov 'error' variable is left uninitialized in case we see an unknown operation. As we don't immediately return and proceed to pwrite() we need to set it to something, HV_E_FAIL sounds good enough. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- tools/hv/

[PATCH 1/2] Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect()

2018-09-16 Thread kys
From: Dexuan Cui With CONFIG_DEBUG_PREEMPT=y, I always see this warning: BUG: using smp_processor_id() in preemptible [] Fix the false warning by using get/put_cpu(). Here vmbus_connect() sends a message to the host and waits for the host's response. The host will deliver the response m

[PATCH 0/2] Drivers: hv: Miscellaneous fixes

2018-09-16 Thread kys
From: "K. Y. Srinivasan" Some miscellaneous fixes. Dexuan Cui (1): Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect() Vitaly Kuznetsov (1): tools: hv: fcopy: set 'error' in case an unknown operation was requested drivers/hv/connection.c| 8 +--- tools/hv/hv_fcopy_daemon.

Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library

2018-09-16 Thread Andy Lutomirski
On Tue, Sep 11, 2018 at 4:57 PM David Miller wrote: > > From: Andrew Lunn > Date: Wed, 12 Sep 2018 01:30:15 +0200 > > > Just as an FYI: > > > > 1) I don't think anybody in netdev has taken a serious look at the > > network code yet. There is little point until the controversial part > > of the co

Re: [PATCH 4.18 082/197] block: dont warn for flush on read-only device

2018-09-16 Thread Stefan Agner
Hi Greg, The follow up patch 8b2ded1c94c0 ("block: don't warn when doing fsync on read-only devices") should get applied too, since it correctly fixes what this patch tried to fix. -- Stefan On 13.09.2018 06:30, Greg Kroah-Hartman wrote: > 4.18-stable review patch. If anyone has any objection

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

2018-09-16 Thread Baolin Wang
Hi Sebastian, On 16 September 2018 at 22:35, Sebastian Reichel wrote: > Hi, > > Looks mostly good. I have a couple of comments in addition to the > ones from the binding about using battery_info for the OCV -> > capacity mapping. OK. >> + >> +static int sc27xx_fgu_get_vbat_vol(struct sc27xx_fgu

Re: [PATCH net-next] net/smc: cast sizeof to int for comparison

2018-09-16 Thread YueHaibing
On 2018/9/15 19:35, Andreas Schwab wrote: > On Sep 15 2018, YueHaibing wrote: > >> Comparing an int to a size, which is unsigned, causes the int to become >> unsigned, giving the wrong result. kernel_sendmsg can return a negative >> error code. >> >> Signed-off-by: YueHaibing >> --- >> net/smc/

Re: [PATCH v3 3/3] thermal: broadcom: Add Stingray thermal driver

2018-09-16 Thread Srinath Mannam
Hi Daniel, Thank you for your review comments. I will address all your comments in next patch set. Regards, Srinath. On Fri, Sep 14, 2018 at 7:50 PM, Daniel Lezcano wrote: > On 09/08/2018 14:54, Srinath Mannam wrote: >> From: Pramod Kumar >> >> Adds stingray thermal driver to monitor six >> th

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

2018-09-16 Thread Baolin Wang
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 PMICs >> fuel gauge unit device, which is used to calculate the battery capacity.

Re: [PATCH] Documentation: soundwire: fix stream.rst markup warnings

2018-09-16 Thread Takashi Sakamoto
Hi, On Sep 17 2018 09:34, Randy Dunlap wrote: From: Randy Dunlap Fix kernel-doc markup warnings in soundwire/stream.rst: rc4/Documentation/driver-api/soundwire/stream.rst:177: WARNING: Explicit markup ends without a blank line; unexpected unindent. rc4/Documentation/driver-api/soundwire/stre

[PATCH AUTOSEL 4.18 003/136] tsl2550: fix lux1_input error in low light

2018-09-16 Thread Sasha Levin
From: Matt Ranostay [ Upstream commit ce054546cc2c26891cefa2f284d90d93b52205de ] ADC channel 0 photodiode detects both infrared + visible light, but ADC channel 1 just detects infrared. However, the latter is a bit more sensitive in that range so complete darkness or low light causes a error con

[PATCH AUTOSEL 4.18 005/136] vmci: type promotion bug in qp_host_get_user_memory()

2018-09-16 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 7fb2fd4e25fc1fb10dcb30b5519de257cfeae84c ] The problem is that if get_user_pages_fast() fails and returns a negative error code, it gets type promoted to a high positive value and treated as a success. Fixes: 06164d2b72aa ("VMCI: queue pairs implementation.

[PATCH AUTOSEL 4.18 011/136] x86/numa_emulation: Fix emulated-to-physical node mapping

2018-09-16 Thread Sasha Levin
From: Dan Williams [ Upstream commit 3b6c62f363a19ce82bf378187ab97c9dc01e3927 ] Without this change the distance table calculation for emulated nodes may use the wrong numa node and report an incorrect distance. Signed-off-by: Dan Williams Cc: David Rientjes Cc: Linus Torvalds Cc: Peter Zijl

[PATCH AUTOSEL 4.18 014/136] misc: sram: enable clock before registering regions

2018-09-16 Thread Sasha Levin
From: Johan Hovold [ Upstream commit d5b9653dd2bb7a2b1c8cc783c5d3b607bbb6b271 ] Make sure to enable the clock before registering regions and exporting partitions to user space at which point we must be prepared for I/O. Fixes: ee895ccdf776 ("misc: sram: fix enabled clock leak on error path") Si

[PATCH AUTOSEL 4.18 006/136] siox: don't create a thread without starting it

2018-09-16 Thread Sasha Levin
From: Uwe Kleine-König [ Upstream commit e890591413819eeb604207ad3261ba617b2ec0bb ] When a siox master device is registered a kthread is created that is only started when triggered by userspace. So this thread might be in TASK_UNINTERRUPTIBLE state for long and trigger a warning [ 241.

Re: [PATCH v3 3/3] i2c: designware: select gpio/default pin when prepare/unprepare recovery

2018-09-16 Thread Jisheng Zhang
+ DT maintainers On Mon, 17 Sep 2018 11:29:49 +0800 Jisheng Zhang wrote: > On some platforms, the sda/scl pins are muxed with gpio functions, so > they could be used for recovery. Select the gpio/default pin function > when prepare/unprepare recovery. > > Signed-off-by: Jisheng Zhang > --- >

[PATCH AUTOSEL 4.18 009/136] net: hns3: Fix warning bug when doing lp selftest

2018-09-16 Thread Sasha Levin
From: Yunsheng Lin [ Upstream commit d7099d15478e89edb9bc6c6e3ab4cd341884a367 ] The napi_alloc_skb is excepted to be called under the non-preemptible code path when it is called by hns3_clean_rx_ring during loopback selftest, otherwise the below warning will be logged: [ 92.420780] BUG: using

[PATCH AUTOSEL 4.18 018/136] iommu/amd: make sure TLB to be flushed before IOVA freed

2018-09-16 Thread Sasha Levin
From: Zhen Lei [ Upstream commit 3c120143f584360a13614787e23ae2cdcb5e5ccd ] Although the mapping has already been removed in the page table, it maybe still exist in TLB. Suppose the freed IOVAs is reused by others before the flush operation completed, the new user can not correctly access to its

[PATCH AUTOSEL 4.18 020/136] USB: serial: kobil_sct: fix modem-status error handling

2018-09-16 Thread Sasha Levin
From: Johan Hovold [ Upstream commit a420b5d939ee58f1d950f0ea782834056520aeaa ] Make sure to return -EIO in case of a short modem-status read request. While at it, split the debug message to not include the (zeroed) transfer-buffer content in case of errors. Fixes: 1da177e4c3f4 ("Linux-2.6.12-

[PATCH AUTOSEL 4.18 019/136] Bluetooth: Add a new Realtek 8723DE ID 0bda:b009

2018-09-16 Thread Sasha Levin
From: Jian-Hong Pan [ Upstream commit 45ae68b8cfc25bdbffc11248001c47ab1b76ff6e ] Without this patch we cannot turn on the Bluethooth adapter on HP 14-bs007la. T: Bus=01 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vend

[PATCH AUTOSEL 4.18 013/136] power: supply: axp288_charger: Fix initial constant_charge_current value

2018-09-16 Thread Sasha Levin
From: Hans de Goede [ Upstream commit f2a42595f0865886a2d40524b0e9d15600848670 ] We should look at val which contains the value read from the register, not ret which is always 0 on a successful read. Signed-off-by: Hans de Goede Fixes: eac53b3664f59 ("power: supply: axp288_charger: Drop platfo

[PATCH AUTOSEL 4.18 016/136] uwb: hwa-rc: fix memory leak at probe

2018-09-16 Thread Sasha Levin
From: Anton Vasilyev [ Upstream commit 11b71782c1d10d9bccc31825cf84291cd7588a1e ] hwarc_probe() allocates memory for hwarc, but does not free it if uwb_rc_add() or hwarc_get_version() fail. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev Signed-off

Re: [PATCH v3 2/3] dt-bindings: i2c: designware: add optional pinctrl for bus recovery

2018-09-16 Thread Jisheng Zhang
+ DT maintainers On Mon, 17 Sep 2018 11:28:30 +0800 Jisheng Zhang wrote: > Document the pinctrl property for bus recovery. > > Signed-off-by: Jisheng Zhang > --- > Documentation/devicetree/bindings/i2c/i2c-designware.txt | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/Document

Re: [PATCH v3 1/3] dt-bindings: i2c: designware: add optional gpio recovery properties

2018-09-16 Thread Jisheng Zhang
+ DT maintainers On Mon, 17 Sep 2018 11:27:41 +0800 Jisheng Zhang wrote: > Document the scl-gpios and sda-gpios properties for bus recovery. > > Signed-off-by: Jisheng Zhang > --- > Documentation/devicetree/bindings/i2c/i2c-designware.txt | 6 ++ > 1 file changed, 6 insertions(+) > > dif

[PATCH AUTOSEL 4.18 024/136] power: remove possible deadlock when unregistering power_supply

2018-09-16 Thread Sasha Levin
From: Benjamin Tissoires [ Upstream commit 3ffa6583e24e1ad1abab836d24bfc9d2308074e5 ] If a device gets removed right after having registered a power_supply node, we might enter in a deadlock between the remove call (that has a lock on the parent device) and the deferred register work. Allow the

[PATCH AUTOSEL 4.18 012/136] staging: rts5208: fix missing error check on call to rtsx_write_register

2018-09-16 Thread Sasha Levin
From: Colin Ian King [ Upstream commit c5fae4f4fd28189b1062fb8ef7b21fec37cb8b17 ] Currently the check on error return from the call to rtsx_write_register is checking the error status from the previous call. Fix this by adding in the missing assignment of retval. Detected by CoverityScan, CID#7

[PATCH AUTOSEL 4.18 023/136] s390/mm: correct allocate_pgste proc_handler callback

2018-09-16 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit 5bedf8aa03c28cb8dc98bdd32a41b66d8f7d3eaa ] Since proc_dointvec does not perform value range control, proc_dointvec_minmax should be used to limit value range, which is clearly intended here, as the internal representation of the value: unsigned int alloc_pg

[PATCH AUTOSEL 4.18 022/136] iommu/msm: Don't call iommu_device_{,un}link from atomic context

2018-09-16 Thread Sasha Levin
From: Niklas Cassel [ Upstream commit 379521462e4add27f3514da8e4ab1fd7a54fe1c7 ] Fixes the following splat during boot: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:747 in_atomic(): 1, irqs_disabled(): 128, pid: 77, name: kworker/2:1 4 locks held by kworker/2:1/7

[PATCH AUTOSEL 4.18 031/136] RDMA/bnxt_re: Fix a bunch of off by one bugs in qplib_fp.c

2018-09-16 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit c1dfc0114c901b4f46c85ceff0491debf2b2a2ec ] The srq->swq[] is allocated in bnxt_qplib_create_srq(). It has srq->hwq.max_elements elements so these tests should be > instead of >= or we might go beyond the end of the array. Fixes: 1ac5a4047975 ("RDMA/bnxt_re

[PATCH AUTOSEL 4.18 034/136] media: exynos4-is: Prevent NULL pointer dereference in __isp_video_try_fmt()

2018-09-16 Thread Sasha Levin
From: Sylwester Nawrocki [ Upstream commit 7c1b9a5aeed91bef98988ac0fcf38c8c1f4f9a3a ] This patch fixes potential NULL pointer dereference as indicated by the following static checker warning: drivers/media/platform/exynos4-is/fimc-isp-video.c:408 isp_video_try_fmt_mplane() error: NULL derefere

[PATCH AUTOSEL 4.18 035/136] IB/mlx4: Test port number before querying type.

2018-09-16 Thread Sasha Levin
From: Tarick Bedeir [ Upstream commit f1228867adaf8890826f2b59e4caddb1c5cc2df7 ] rdma_ah_find_type() can reach into ib_device->port_immutable with a potentially out-of-bounds port number, so check that the port number is valid first. Fixes: 44c58487d51a ("IB/core: Define 'ib' and 'roce' rdma_ah

[PATCH AUTOSEL 4.18 033/136] IB/core: type promotion bug in rdma_rw_init_one_mr()

2018-09-16 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit c2d7c8ff89b22ddefb1ac2986c0d48444a667689 ] "nents" is an unsigned int, so if ib_map_mr_sg() returns a negative error code then it's type promoted to a high unsigned int which is treated as success. Fixes: a060b5629ab0 ("IB/core: generic RDMA READ/WRITE API"

[PATCH AUTOSEL 4.18 017/136] power: vexpress: fix corruption in notifier registration

2018-09-16 Thread Sasha Levin
From: Sudeep Holla [ Upstream commit 09bebb1adb21ecd04adf7ccb3b06f73e3a851e93 ] Vexpress platforms provide two different restart handlers: SYS_REBOOT that restart the entire system, while DB_RESET only restarts the daughter board containing the CPU. DB_RESET is overridden by SYS_REBOOT if it exi

[PATCH AUTOSEL 4.18 046/136] ARM: dts: ls1021a: Add missing cooling device properties for CPUs

2018-09-16 Thread Sasha Levin
From: Viresh Kumar [ Upstream commit 47768f372eae030db6fab5225f9504a820d2c07f ] The cooling device properties, like "#cooling-cells" and "dynamic-power-coefficient", should either be present for all the CPUs of a cluster or none. If these are present only for a subset of CPUs of a cluster then t

[PATCH AUTOSEL 4.18 045/136] x86/entry/64: Add two more instruction suffixes

2018-09-16 Thread Sasha Levin
From: Jan Beulich [ Upstream commit 6709812f094d96543b443645c68daaa32d3d3e77 ] Sadly, other than claimed in: a368d7fd2a ("x86/entry/64: Add instruction suffix") ... there are two more instances which want to be adjusted. As said there, omitting suffixes from instructions in AT&T mode is bad

[PATCH AUTOSEL 4.18 039/136] media: staging/imx: fill vb2_v4l2_buffer field entry

2018-09-16 Thread Sasha Levin
From: Peter Seiderer [ Upstream commit a38d4b71cb7a12b65317f4e3d59883a918957719 ] - fixes gstreamer v4l2src warning: 0:00:00.716640334 349 0x164f720 WARN v4l2bufferpool gstv4l2bufferpool.c:1195:gst_v4l2_buffer_pool_dqbuf: Driver should never set v4l2_buffer.field to ANY - fixes v4l2-com

[PATCH AUTOSEL 4.18 038/136] vhost_net: Avoid tx vring kicks during busyloop

2018-09-16 Thread Sasha Levin
From: Toshiaki Makita [ Upstream commit 027b17603b030f1334ade079b7a3e986569c956b ] Under heavy load vhost busypoll may run without suppressing notification. For example tx zerocopy callback can push tx work while handle_tx() is running, then busyloop exits due to vhost_has_work() condition and e

[PATCH AUTOSEL 4.18 036/136] powerpc/kdump: Handle crashkernel memory reservation failure

2018-09-16 Thread Sasha Levin
From: Hari Bathini [ Upstream commit 8950329c4a64c6d3ca0bc34711a1afbd9ce05657 ] Memory reservation for crashkernel could fail if there are holes around kdump kernel offset (128M). Fail gracefully in such cases and print an error message. Signed-off-by: Hari Bathini Tested-by: David Gibson Rev

[PATCH AUTOSEL 4.18 044/136] ARM: hwmod: RTC: Don't assume lock/unlock will be called with irq enabled

2018-09-16 Thread Sasha Levin
From: Dave Gerlach [ Upstream commit 6d609b35c815ba20132b7b64bcca04516bb17c56 ] When the RTC lock and unlock functions were introduced it was likely assumed that they would always be called from irq enabled context, hence the use of local_irq_disable/enable. This is no longer true as the RTC+DDR

Re: [PATCH v3 0/3] i2c: designware: select gpio/default pin when prepare/unprepare recovery

2018-09-16 Thread Jisheng Zhang
+ DT maintainers On Mon, 17 Sep 2018 11:26:33 +0800 Jisheng Zhang wrote: > On some platforms, the sda/scl pins are muxed with gpio functions, so > they could be used for recovery. Select the gpio/default pin function > when prepare/unprepare recovery. > > patch1 adds the missing scl-gpios, sda-

[PATCH AUTOSEL 4.18 043/136] x86/tsc: Add missing header to tsc_msr.c

2018-09-16 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit dbd0fbc76c77daac08ddd245afdcbade0d506e19 ] Add a missing header otherwise compiler warns about missed prototype: CC arch/x86/kernel/tsc_msr.o arch/x86/kernel/tsc_msr.c:73:15: warning: no previous prototype for ‘cpu_khz_from_msr’ [-Wmissing-prototype

[PATCH AUTOSEL 4.18 040/136] media: sta2x11: Add video_device and vb2_queue locks

2018-09-16 Thread Sasha Levin
From: Ezequiel Garcia [ Upstream commit cd63c0288fd760ce7de247fba618e2bbcfc0c35c ] Currently, this driver does not serialize its video4linux ioctls, which is a bug, as race conditions might appear. In addition, video_device and vb2_queue locks are now both mandatory. Add them, and implement wai

[PATCH AUTOSEL 4.18 037/136] media: fsl-viu: fix error handling in viu_of_probe()

2018-09-16 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 662a99e145661c2b35155cf375044deae9b79896 ] viu_of_probe() ignores fails in i2c_get_adapter(), tries to unlock uninitialized mutex on error path. The patch streamlining the error handling in viu_of_probe(). Found by Linux Driver Verification project (l

[PATCH AUTOSEL 4.18 042/136] include/rdma/opa_addr.h: Fix an endianness issue

2018-09-16 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 4eefd62c17a9a5e7576207e84f3d2b4f73aba750 ] IB_MULTICAST_LID_BASE is defined as follows: #define IB_MULTICAST_LID_BASE cpu_to_be16(0xC000) Hence use be16_to_cpu() to convert it to CPU endianness. Compile-tested only. Fixes: af808ece5ce9 ("IB/SA: Chec

[PATCH AUTOSEL 4.18 049/136] scsi: klist: Make it safe to use klists in atomic context

2018-09-16 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 624fa7790f80575a4ec28fbdb2034097dc18d051 ] In the scsi_transport_srp implementation it cannot be avoided to iterate over a klist from atomic context when using the legacy block layer instead of blk-mq. Hence this patch that makes it safe to use klists in a

[PATCH v3 3/3] i2c: designware: select gpio/default pin when prepare/unprepare recovery

2018-09-16 Thread Jisheng Zhang
On some platforms, the sda/scl pins are muxed with gpio functions, so they could be used for recovery. Select the gpio/default pin function when prepare/unprepare recovery. Signed-off-by: Jisheng Zhang --- drivers/i2c/busses/i2c-designware-core.h | 3 +++ drivers/i2c/busses/i2c-designware-mas

[PATCH AUTOSEL 4.18 054/136] ath10k: sdio: set skb len for all rx packets

2018-09-16 Thread Sasha Levin
From: Alagu Sankar [ Upstream commit 8530b4e7b22bc3bd8240579f3844c73947cd5f71 ] Without this, packets larger than 1500 will silently be dropped. Easily reproduced by sending a ping packet with a size larger than 1500. Co-Developed-by: Niklas Cassel Signed-off-by: Alagu Sankar Signed-off-by: N

[PATCH AUTOSEL 4.18 051/136] scsi: target: Avoid that EXTENDED COPY commands trigger lock inversion

2018-09-16 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit 36d4cb460bcbe2a1323732a6e4bb9dd783284368 ] The approach for adding a device to the devices_idr data structure and for removing it is as follows: * &dev->dev_group.cg_item is initialized before a device is added to devices_idr. * If the reference count

[PATCH AUTOSEL 4.18 053/136] ath10k: sdio: use same endpoint id for all packets in a bundle

2018-09-16 Thread Sasha Levin
From: Alagu Sankar [ Upstream commit 679e1f07c86221b7183dd69df7068fd42d0041f6 ] All packets in a bundle should use the same endpoint id as the first lookahead. This matches how things are done is ath6kl, however, this patch can theoretically handle several bundles in ath10k_sdio_mbox_rx_process

[PATCH AUTOSEL 4.18 050/136] scsi: ibmvscsi: Improve strings handling

2018-09-16 Thread Sasha Levin
From: Breno Leitao [ Upstream commit 1262dc09dc9ae7bf4ad00b6a2c5ed6a6936bcd10 ] Currently an open firmware property is copied into partition_name variable without keeping a room for \0. Later one, this variable (partition_name), which is 97 bytes long, is strncpyed into ibmvcsci_host_data->mada

[PATCH AUTOSEL 4.18 058/136] s390/sysinfo: add missing #ifdef CONFIG_PROC_FS

2018-09-16 Thread Sasha Levin
From: Heiko Carstens [ Upstream commit 9f35b818a2f90fb6cb291aa0c9f835d4f0974a9a ] Get rid of this compile warning for !PROC_FS: CC arch/s390/kernel/sysinfo.o arch/s390/kernel/sysinfo.c:275:12: warning: 'sysinfo_show' defined but not used [-Wunused-function] static int sysinfo_show(stru

[PATCH AUTOSEL 4.18 057/136] ACPI / button: increment wakeup count only when notified

2018-09-16 Thread Sasha Levin
From: Ravi Chandra Sadineni [ Upstream commit 7c058c7c74b3dbeb7d157c273959f87faf710350 ] Because acpi_lid_initialize_state() is called on every system resume and it triggers acpi_lid_notify_state() which invokes acpi_pm_wakeup_event() for the lid device, the lid's wakeup count is incremented eve

[PATCH AUTOSEL 4.18 056/136] platform/x86: asus-wireless: Fix uninitialized symbol usage

2018-09-16 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit eca4c4e47eb0658ad251f0bff465e23c055377da ] 'ret' will not be initialized if acpi_evaluate_integer() returns through an error path, so it should not be used in this case. This fixes the following Smatch static analyser error: drivers/platform/x86/as

[PATCH AUTOSEL 4.18 062/136] s390/extmem: fix gcc 8 stringop-overflow warning

2018-09-16 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit 6b2ddf33baec23dace85bd647e3fc4ac070963e8 ] arch/s390/mm/extmem.c: In function '__segment_load': arch/s390/mm/extmem.c:436:2: warning: 'strncat' specified bound 7 equals source length [-Wstringop-overflow=] strncat(seg->res_name, " (DCSS)", 7); What gcc co

[PATCH AUTOSEL 4.18 061/136] s390/scm_blk: correct numa_node in scm_blk_dev_setup

2018-09-16 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit d642d6262f4fcfa5d200ec6e218c17f0c15b3390 ] The numa_node field of the tag_set struct has to be explicitly initialized, otherwise it stays as 0, which is a valid numa node id and cause memory allocation failure if node 0 is offline. Acked-by: Sebastian Ott

[PATCH AUTOSEL 4.18 081/136] staging: mt7621-dts: Fix remaining pcie warnings

2018-09-16 Thread Sasha Levin
From: Rosen Penev [ Upstream commit d0233204fbc10f003d1ef077f57341c2feca4002 ] This currently fixes the remaining dtb warnings: Node /pcie@1e14/pcie0 has a reg or ranges property, but no unit name Node /pcie@1e14/pcie1 has a reg or ranges property, but no unit name Node /pcie@1e14/p

[PATCH AUTOSEL 4.18 069/136] selftests: forwarding: Tweak tc filters for mirror-to-gretap tests

2018-09-16 Thread Sasha Levin
From: Petr Machata [ Upstream commit ec9fdc99f5a6a2cfe4061e807fcb0cc1129f0a2d ] When running mirror_gre_bridge_1d_vlan tests on veth, several issues cause spurious failures: - vlan_ethtype should be ip, not ipv6 even in mirror-to-ip6gretap case, because the overlay packet is still IPv4. - Sim

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

2018-09-16 Thread Baolin Wang
Hi Sebastian, On 16 September 2018 at 18:17, Sebastian Reichel wrote: > Hi Baolin, > > On Mon, Sep 03, 2018 at 04:55:46PM +0800, Baolin Wang wrote: >> This patch adds the SC2731 PMIC switch charger support. >> >> Signed-off-by: Baolin Wang >> --- > > The power-supply sysfs files uses uA instead

[PATCH AUTOSEL 4.18 068/136] nfp: fail probe if serial or interface id is missing

2018-09-16 Thread Sasha Levin
From: Jakub Kicinski [ Upstream commit 18aa5b180f00a10c2f63944b4f0ab116bf8ea19b ] On some platforms with broken ACPI tables we may not have access to the Serial Number PCIe capability. This capability is crucial for us for switchdev operation as we use serial number as switch ID, and for commun

[PATCH AUTOSEL 4.18 071/136] media: s3c-camif: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power

2018-09-16 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 30ed2b83343bd1e07884ca7355dac70d25ffc158 ] When the subdevice doesn't provide s_power core ops callback, the v4l2_subdev_call for s_power returns -ENOIOCTLCMD. If the subdevice doesn't have the special handling for its power saving mode, the s_power isn't re

[PATCH AUTOSEL 4.18 072/136] media: soc_camera: ov772x: correct setting of banding filter

2018-09-16 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 22216ec41e919682c15345e95928f266e8ba6f9e ] The banding filter ON/OFF is controlled via bit 5 of COM8 register. It is attempted to be enabled in ov772x_set_params() by the following line. ret = ov772x_mask_set(client, COM8, BNDF_ON_OFF, 1); But this

[PATCH AUTOSEL 4.18 073/136] media: omap3isp: zero-initialize the isp cam_xclk{a,b} initial data

2018-09-16 Thread Sasha Levin
From: Javier Martinez Canillas [ Upstream commit 2ec7debd44b49927a6e2861521994cc075a389ed ] The struct clk_init_data init variable is declared in the isp_xclk_init() function so is an automatic variable allocated in the stack. But it's not explicitly zero-initialized, so some init fields are lef

[PATCH AUTOSEL 4.18 084/136] ALSA: hda: Add AZX_DCAPS_PM_RUNTIME for AMD Raven Ridge

2018-09-16 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 1adca4b0cd65c14cb8b8c9c257720385869c3d5f ] This patch can make audio controller in AMD Raven Ridge gets runtime suspended to D3, to save ~1W power when it's not in use. Cc: Vijendar Mukunda Signed-off-by: Kai-Heng Feng Signed-off-by: Takashi Iwai Signed-

[PATCH v3 2/3] dt-bindings: i2c: designware: add optional pinctrl for bus recovery

2018-09-16 Thread Jisheng Zhang
Document the pinctrl property for bus recovery. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/i2c/i2c-designware.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-designware.txt b/Documentation/devicetree/bindings/i2c/i2

[PATCH AUTOSEL 4.18 074/136] media: ov772x: add checks for register read errors

2018-09-16 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 30f3b17eaf4913e9e56be15915ce57aae69db701 ] This change adds checks for register read errors and returns correct error code. Cc: Laurent Pinchart Cc: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Akinobu Mita Signed-off-by: Sakari Ailus Signed-of

[PATCH AUTOSEL 4.18 075/136] staging: android: ashmem: Fix mmap size validation

2018-09-16 Thread Sasha Levin
From: Alistair Strachan [ Upstream commit 8632c614565d0c5fdde527889601c018e97b6384 ] The ashmem driver did not check that the size/offset of the vma passed to its .mmap() function was not larger than the ashmem object being mapped. This could cause mmap() to succeed, even though accessing parts

[PATCH AUTOSEL 4.18 085/136] net: phy: xgmiitorgmii: Check read_status results

2018-09-16 Thread Sasha Levin
From: Brandon Maier [ Upstream commit 8d0752d11312be830c33e84dfd1016e6a47c2938 ] We're ignoring the result of the attached phy device's read_status(). Return it so we can detect errors. Signed-off-by: Brandon Maier Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha

  1   2   3   4   5   6   >