Re: [PATCH v9 00/21] Generic page walk and ptdump

2019-07-26 Thread Anshuman Khandual
On 07/25/2019 03:00 PM, Will Deacon wrote: > On Thu, Jul 25, 2019 at 02:39:22PM +0530, Anshuman Khandual wrote: >> On 07/24/2019 07:05 PM, Steven Price wrote: >>> There isn't any problem as such with using p?d_large macros. However the >>> name "large" has caused confusion in the past. In

Re: linux-next: Fixes tag needs some work in the sound-asoc tree

2019-07-26 Thread Peter Ujfalusi
Stephen, On 26/07/2019 0.27, Stephen Rothwell wrote: > Hi all, > > In commit > > 9fcf9139a2fd ("ASoC: ti: davinci-mcasp: Fix clk PDIR handling for i2s > master mode") > > Fixes tag > > Fixes: 2302be4126f52 ("ASoC: davinci-mcasp: Update PDIR (pin direction) > register handling") > > has

Re: [PATCH v8 2/4] uprobe: use original page when all uprobes are removed

2019-07-26 Thread Song Liu
Hi Oleg, >> >> No. Yes, deny_write_access() protects mm->exe_file, but not the dynamic >> libraries or other files which can be mmaped. > > I see. Let me see how we can cover this. > >> and I am worried this code can try to lock the same page twice... Say, the probed application

[PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Wanpeng Li
From: Wanpeng Li IPI shorthand is supported now by linux apic/x2apic driver, switch to IPI shorthand for all excluding self and all including self destination shorthand in kvm guest, to avoid splitting the target mask into serveral PV IPI hypercalls. Cc: Thomas Gleixner Cc: Paolo Bonzini

[PATCH RESEND 1/2] KVM: LAPIC: Add pv ipi tracepoint

2019-07-26 Thread Wanpeng Li
From: Wanpeng Li Add pv ipi tracepoint. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 2 ++ arch/x86/kvm/trace.h | 25 + 2 files changed, 27 insertions(+) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index

[PATCH RESEND 2/2] KVM: X86: Add pv tlb shootdown tracepoint

2019-07-26 Thread Wanpeng Li
From: Wanpeng Li Add pv tlb shootdown tracepoint. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/trace.h | 19 +++ arch/x86/kvm/x86.c | 2 ++ 2 files changed, 21 insertions(+) diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index

[PATCH RESEND] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Wanpeng Li
From: Wanpeng Li IPI shorthand is supported now by linux apic/x2apic driver, switch to IPI shorthand for all excluding self and all including self destination shorthand in kvm guest, to avoid splitting the target mask into serveral PV IPI hypercalls. Cc: Thomas Gleixner Cc: Paolo Bonzini

Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Wanpeng Li
On Fri, 26 Jul 2019 at 14:10, Wanpeng Li wrote: > > From: Wanpeng Li > > IPI shorthand is supported now by linux apic/x2apic driver, switch to > IPI shorthand for all excluding self and all including self destination > shorthand in kvm guest, to avoid splitting the target mask into serveral > PV

[PATCH v2 1/2] dt-bindings: vendor-prefixes: Add Admatec AG

2019-07-26 Thread Krzysztof Kozlowski
Add vendor prefix for Admatec AG. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: New patch --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH v2 2/2] ARM: dts: imx6ul-kontron-n6310: Add Kontron i.MX6UL N6310 SoM and boards

2019-07-26 Thread Krzysztof Kozlowski
Add support for i.MX6UL modules from Kontron Electronics GmbH (before acquisition: Exceet Electronics) and evalkit boards based on it: 1. N6310 SOM: i.MX6 UL System-on-Module, a 25x25 mm solderable module (LGA pads and pin castellations) with 256 MB RAM, 1 MB NOR-Flash, 256 MB NAND and

Re: [PATCH 5.2 000/413] 5.2.3-stable review

2019-07-26 Thread Kelsey Skunberg
On Wed, Jul 24, 2019 at 09:14:51PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.2.3 release. > There are 413 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH] rtw88: pci: Use general byte arrays as the elements of RX ring

2019-07-26 Thread Jian-Hong Pan
David Laight 於 2019年7月25日 週四 下午5:21寫道: > > From: Jian-Hong Pan > > Sent: 25 July 2019 09:09 > > Each skb as the element in RX ring was expected with sized buffer 8216 > > (RTK_PCI_RX_BUF_SIZE) bytes. However, the skb buffer's true size is > > 16640 bytes for alignment after allocated, x86_64 for

[Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n

2019-07-26 Thread Sai Prakash Ranjan
Hi, When trying to test my coresight patches, I found that etr,etf and stm device nodes are missing from /dev. Bisection gives this as the bad commit. 1be01d4a57142ded23bdb9e0c8d9369e693b26cc is the first bad commit commit 1be01d4a57142ded23bdb9e0c8d9369e693b26cc Author: Geert Uytterhoeven

Re: [PATCH 4.19 000/271] 4.19.61-stable review

2019-07-26 Thread Kelsey Skunberg
On Wed, Jul 24, 2019 at 09:17:49PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.61 release. > There are 271 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.1 000/371] 5.1.20-stable review

2019-07-26 Thread Kelsey Skunberg
On Wed, Jul 24, 2019 at 09:15:52PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.20 release. > There are 371 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH v2 1/1] platform/x86/pcengines-apuv2: add mpcie reset gpio export

2019-07-26 Thread Florian Eckert
On APUx we have also mpcie2/mpcie3 reset pins. To make it possible to reset the ports from the userspace, add the definition to this platform device. The gpio can then be exported by the legancy gpio subsystem to toggle the mpcie reset pin. Signed-off-by: Florian Eckert --- v2: Noting changed

Re: [Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n

2019-07-26 Thread Sai Prakash Ranjan
On 7/26/2019 11:49 AM, Sai Prakash Ranjan wrote: Hi, When trying to test my coresight patches, I found that etr,etf and stm device nodes are missing from /dev. Bisection gives this as the bad commit. 1be01d4a57142ded23bdb9e0c8d9369e693b26cc is the first bad commit commit

Re: [PATCH V6 17/21] arm64: tegra: Enable wake from deep sleep on RTC alarm.

2019-07-26 Thread Dmitry Osipenko
В Sun, 21 Jul 2019 12:40:56 -0700 Sowjanya Komatineni пишет: > This patch updates device tree for RTC and PMC to allow system wake > from deep sleep on RTC alarm. > > Signed-off-by: Sowjanya Komatineni The dot in the end of the commit's title is unnecessary.

Re: [PATCH 2/2] /proc/kpageflags: do not use uninitialized struct pages

2019-07-26 Thread Toshiki Fukasawa
On 2019/07/25 18:03, Michal Hocko wrote: > On Thu 25-07-19 02:31:18, Toshiki Fukasawa wrote: >> A kernel panic was observed during reading /proc/kpageflags for >> first few pfns allocated by pmem namespace: >> >> BUG: unable to handle page fault for address: fffe >> [ 114.495280]

[PATCH] iio: mxc4005: Use device-managed APIs

2019-07-26 Thread Chuhong Yuan
Use device-managed APIs to simplify the code. The remove function is redundant now and can be deleted. Signed-off-by: Chuhong Yuan --- drivers/iio/accel/mxc4005.c | 35 +++ 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/drivers/iio/accel/mxc4005.c

Re: [alsa-devel] [RFC PATCH 01/40] soundwire: add debugfs support

2019-07-26 Thread Guennadi Liakhovetski
Hi Pierre, A couple of nitpicks: On Thu, Jul 25, 2019 at 06:39:53PM -0500, Pierre-Louis Bossart wrote: > Add base debugfs mechanism for SoundWire bus by creating soundwire > root and master-N and slave-x hierarchy. > > Also add SDW Slave SCP, DP0 and DP-N register debug file. > > Registers not

Re: [PATCH v2 2/2] mmc: Add support for the ASPEED SD controller

2019-07-26 Thread Andrew Jeffery
On Fri, 26 Jul 2019, at 15:27, Adrian Hunter wrote: > On 26/07/19 3:52 AM, Andrew Jeffery wrote: > > On Thu, 25 Jul 2019, at 22:49, Adrian Hunter wrote: > >> On 12/07/19 6:32 AM, Andrew Jeffery wrote: > >>> +static int aspeed_sdhci_probe(struct platform_device *pdev) > >>> +{ > >>> + struct

Re: [alsa-devel] [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE

2019-07-26 Thread Guennadi Liakhovetski
On Thu, Jul 25, 2019 at 06:40:01PM -0500, Pierre-Louis Bossart wrote: > Per the hardware documentation, all changes to MCP_CONFIG, > MCP_CONTROL, MCP_CMDCTRL and MCP_PHYCTRL need to be validated with a > self-clearing write to MCP_CONFIG_UPDATE. > > For some reason, the existing code only does

Re: [PATCH] cpufreq: schedutil: Don't skip freq update when limits change

2019-07-26 Thread Viresh Kumar
On 25-07-19, 08:20, Doug Smythies wrote: > I tried the patch ("patch2"). It did not fix the issue. > > To summarize, all kernel 5.2 based, all intel_cpufreq driver and schedutil > governor: > > Test: Does a busy system respond to maximum CPU clock frequency reduction? > > stock, unaltered: No.

Re: [PATCH 1/9] lib/sort.c: implement sort() variant taking context argument

2019-07-26 Thread Rasmus Villemoes
On 26/07/2019 02.05, Andrew Morton wrote: > On Wed, 19 Jun 2019 14:15:32 +0200 Boris Brezillon > wrote: > >> From: Rasmus Villemoes >> >> Our list_sort() utility has always supported a context argument that >> is passed through to the comparison routine. Now there's a use case >> for the

Re: [PATCH 4/5] IMA: use obj-y for non-modular objects

2019-07-26 Thread Masahiro Yamada
On Fri, Jul 26, 2019 at 1:37 PM Eric Biggers wrote: > > On Fri, Jul 26, 2019 at 11:10:57AM +0900, Masahiro Yamada wrote: > > CONFIG_IMA is a boolean option, so none of these objects is linked > > into a module. > > > > All the objects in this directory are compiled only when CONFIG_IMA=y > >

Re: [RFC PATCH 00/10] implement KASLR for powerpc/fsl_booke/32

2019-07-26 Thread Diana Madalina Craciun
Hi Jason, I have briefly tested yesterday on a P4080 board and did not see any issues. I do not have much expertise on KASLR, but I will take a look over the code. Regards, Diana On 7/25/2019 10:16 AM, Jason Yan wrote: > Hi all, any comments? > > > On 2019/7/17 16:06, Jason Yan wrote: >> This

Re: [alsa-devel] [RFC PATCH 15/40] soundwire: cadence_master: handle multiple status reports per Slave

2019-07-26 Thread Guennadi Liakhovetski
On Thu, Jul 25, 2019 at 06:40:07PM -0500, Pierre-Louis Bossart wrote: > When a Slave reports multiple status in the sticky bits, find the > latest configuration from the mirror of the PING frame status and > update the status directly. > > Signed-off-by: Pierre-Louis Bossart > --- >

Re: [Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n

2019-07-26 Thread Greg Kroah-Hartman
On Fri, Jul 26, 2019 at 11:49:19AM +0530, Sai Prakash Ranjan wrote: > Hi, > > When trying to test my coresight patches, I found that etr,etf and stm > device nodes are missing from /dev. I have no idea what those device nodes are. > Bisection gives this as the bad commit. > >

Re: [PATCH 2/2] /proc/kpageflags: do not use uninitialized struct pages

2019-07-26 Thread Michal Hocko
On Fri 26-07-19 06:25:49, Toshiki Fukasawa wrote: > > > On 2019/07/25 18:03, Michal Hocko wrote: > > On Thu 25-07-19 02:31:18, Toshiki Fukasawa wrote: > >> A kernel panic was observed during reading /proc/kpageflags for > >> first few pfns allocated by pmem namespace: > >> > >> BUG: unable to

Re: [PATCH 00/10] make "order" unsigned int

2019-07-26 Thread Michal Hocko
On Fri 26-07-19 07:48:36, Pengfei Li wrote: [...] > For the benefit, "order" may be negative, which is confusing and weird. order = -1 has a special meaning. > There is no good reason not to do this since it can be avoided. "This is good because we can do it" doesn't really sound like a

Re: [PATCH v5] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Greg KH
On Fri, Jul 26, 2019 at 10:40:46AM +0800, jeyentam wrote: > Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. > > Signed-off-by: jeyentam You messed up the From: and signed-off-by: lines this time :( v4 had it "correct", please fix up and send v6. thanks, greg k-h

RE: Re: [PATCH v5] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Je Yen Tam
> Subject: [EXTERNAL] Re: [PATCH v5] serial/8250: Add support for NI-Serial > PXI/PXIe+485 devices > > On Fri, Jul 26, 2019 at 10:40:46AM +0800, jeyentam wrote: > > Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. > > > > Signed-off-by: jeyentam > > You messed up the

Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Thomas Gleixner
On Fri, 26 Jul 2019, Wanpeng Li wrote: > On Fri, 26 Jul 2019 at 14:10, Wanpeng Li wrote: > > static void kvm_send_ipi_all(int vector) > > { > > - __send_ipi_mask(cpu_online_mask, vector); > > + if (static_branch_likely(_use_ipi_shorthand)) > > +

Re: [RFC PATCH 00/10] implement KASLR for powerpc/fsl_booke/32

2019-07-26 Thread Jason Yan
On 2019/7/26 3:58, Kees Cook wrote: On Thu, Jul 25, 2019 at 03:16:28PM +0800, Jason Yan wrote: Hi all, any comments? I'm a fan of it, but I don't know ppc internals well enough to sanely review the code. :) Some comments below on design... Hi Kees, Thanks for your comments. On

[PATCH 0/6] Optimize Spreadtrum ADI driver

2019-07-26 Thread Baolin Wang
This patchset did some optimization to remove some redundant code, add more reboot mode support and change hardware spinlock support to be optional. Baolin Wang (3): spi: sprd: adi: Remove redundant address bits setting spi: sprd: adi: Change hwlock to be optional dt-bindings: spi: sprd:

[PATCH 1/6] spi: sprd: adi: Remove redundant address bits setting

2019-07-26 Thread Baolin Wang
The ADI default transfer address bits is 12bit on Spreadtrum SC9860 platform, thus there is no need to set again, remove it. Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c

Re: [PATCH v1] ACPI / scan: Acquire device_hotplug_lock in acpi_scan_init()

2019-07-26 Thread David Hildenbrand
On 25.07.19 23:23, Rafael J. Wysocki wrote: > On Thu, Jul 25, 2019 at 10:49 PM David Hildenbrand wrote: >> >> On 25.07.19 21:19, Michal Hocko wrote: >>> On Thu 25-07-19 16:35:07, David Hildenbrand wrote: On 25.07.19 15:57, Michal Hocko wrote: > On Thu 25-07-19 15:05:02, David Hildenbrand

[PATCH 2/6] spi: sprd: adi: Add a reset reason for TOS panic

2019-07-26 Thread Baolin Wang
From: Chenxu Wei Add a new reset flag to indicate the reset reason is caused by TOS. Signed-off-by: Chenxu Wei Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index

[PATCH 3/6] spi: sprd: adi: Add a reset reason for factory test mode

2019-07-26 Thread Baolin Wang
From: Sherry Zong Add a new reset flag to indicate that the system need enter factory test mode after restarting system. Signed-off-by: Sherry Zong Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-sprd-adi.c

[PATCH 6/6] dt-bindings: spi: sprd: Change the hwlock support to be optional

2019-07-26 Thread Baolin Wang
No need to add hardware spinlock proctection due to add multiple msater channel, so change it to be optional in documentation. Signed-off-by: Baolin Wang --- .../devicetree/bindings/spi/spi-sprd-adi.txt | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH 4/6] spi: sprd: adi: Add a reset reason for watchdog mode

2019-07-26 Thread Baolin Wang
From: Sherry Zong When the system was rebooted by watchdog, now we did not save the watchdog reset mode which will make system enter a incorrect mode after rebooting. Thus we should set the watchdog reset mode as default when opening the watchdog configuration, that means if the system was

[PATCH 5/6] spi: sprd: adi: Change hwlock to be optional

2019-07-26 Thread Baolin Wang
Now Spreadtrum ADI controller supplies multiple master accessing channel to support multiple subsystems accessing, instead of using a hardware spinlock to synchronize between the multiple subsystems. To keep backward compatibility, we should change the hardware spinlock to be optional. Moreover

[PATCH v6] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread jeyentam
Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. Signed-off-by: Je Yen Tam --- v5 -> v6 - Fix author full name. v4 -> v5 - Remove blank lines between variable definitions. - Remove trace_printk(). v3 -> v4: - Add changes description. v2 -> v3: - Add "full" name for

Re: [alsa-devel] [RFC PATCH 16/40] soundwire: cadence_master: improve startup sequence with link hw_reset

2019-07-26 Thread Guennadi Liakhovetski
On Thu, Jul 25, 2019 at 06:40:08PM -0500, Pierre-Louis Bossart wrote: > Enable interrupts first, then engage hardware bus reset with maximum > duration to make sure the Slave(s) correctly detect the reset pattern > and to ensure electrical conflicts can be resolved. > > Without these changes the

Re: [PATCH 5.1 000/371] 5.1.20-stable review

2019-07-26 Thread Greg Kroah-Hartman
On Thu, Jul 25, 2019 at 03:19:00PM -0700, Guenter Roeck wrote: > On Wed, Jul 24, 2019 at 09:15:52PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.20 release. > > There are 371 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 5.2 000/413] 5.2.3-stable review

2019-07-26 Thread Greg Kroah-Hartman
On Fri, Jul 26, 2019 at 12:18:54AM -0600, Kelsey Skunberg wrote: > On Wed, Jul 24, 2019 at 09:14:51PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.3 release. > > There are 413 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 4.19 000/271] 4.19.61-stable review

2019-07-26 Thread Greg Kroah-Hartman
On Thu, Jul 25, 2019 at 10:14:01AM +0530, Naresh Kamboju wrote: > On Thu, 25 Jul 2019 at 01:35, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 4.19.61 release. > > There are 271 patches in this series, all will be posted as a response > > to this one. If

Re: [RFC PATCH 00/10] implement KASLR for powerpc/fsl_booke/32

2019-07-26 Thread Jason Yan
On 2019/7/26 15:04, Diana Madalina Craciun wrote: Hi Jason, I have briefly tested yesterday on a P4080 board and did not see any issues. I do not have much expertise on KASLR, but I will take a look over the code. Hi Diana, thanks. Looking forward to your suggestions. Regards, Diana On

Re: [PATCH 00/10] make "order" unsigned int

2019-07-26 Thread Mel Gorman
On Fri, Jul 26, 2019 at 02:42:43AM +0800, Pengfei Li wrote: > Objective > > The motivation for this series of patches is use unsigned int for > "order" in compaction.c, just like in other memory subsystems. > Why? The series is relatively subtle in parts, particularly patch 5. There have

Re: [PATCH v6] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Greg KH
On Fri, Jul 26, 2019 at 03:22:26PM +0800, jeyentam wrote: > Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. > > Signed-off-by: Je Yen Tam "From:" name does not match the Signed-off-by: name :(

Re: [PATCH v3 4/9] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-07-26 Thread Juergen Gross
On 19.07.19 02:58, Nadav Amit wrote: To improve TLB shootdown performance, flush the remote and local TLBs concurrently. Introduce flush_tlb_multi() that does so. Introduce paravirtual versions of flush_tlb_multi() for KVM, Xen and hyper-v (Xen and hyper-v are only compile-tested). While the

Re: [PATCH] regulator: of: Add of_node_put() before return in function

2019-07-26 Thread Nishka Dasgupta
On 24/07/19 9:17 PM, Mark Brown wrote: On Wed, Jul 24, 2019 at 02:02:31PM +0530, Nishka Dasgupta wrote: The local variable search in regulator_of_get_init_node takes the value returned by either of_get_child_by_name or of_node_get, both of which get a node. If this node is not put before

RE: Re: [PATCH v6] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Je Yen Tam
> Subject: [EXTERNAL] Re: [PATCH v6] serial/8250: Add support for NI-Serial > PXI/PXIe+485 devices > > On Fri, Jul 26, 2019 at 03:22:26PM +0800, jeyentam wrote: > > Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. > > > > Signed-off-by: Je Yen Tam > > "From:" name does

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-26 Thread Guennadi Liakhovetski
Hi Pierre, I might be wrong but this doesn't seem right to me. (Supposedly) all RT-PM functions check for "enabled" internally. The only thing that can happen is that if RT-PM isn't enabled some of those functions will return an error. So, in those cases where the return value of RT-PM functions

[PATCH v7] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Je Yen Tam
Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. Signed-off-by: Je Yen Tam --- v6 -> v7 - Fix sender full name. v5 -> v6 - Fix author full name. v4 -> v5 - Remove blank lines between variable definitions. - Remove trace_printk(). v3 -> v4: - Add changes description.

Re: [PATCH 1/1] x86/boot: clear some fields explicitly

2019-07-26 Thread Thomas Gleixner
On Thu, 25 Jul 2019, John Hubbard wrote: > On 7/25/19 3:28 PM, H. Peter Anvin wrote: > > On 7/25/19 3:03 PM, Thomas Gleixner wrote: > >> On Thu, 25 Jul 2019, h...@zytor.com wrote: > >>> On July 25, 2019 2:48:30 PM PDT, Thomas Gleixner > >>> wrote: > > But seriously I think it's not

Re: [PATCH RESEND] autonuma: Fix scan period updating

2019-07-26 Thread Huang, Ying
Hi, Srikar, Srikar Dronamraju writes: > * Huang, Ying [2019-07-25 16:01:24]: > >> From: Huang Ying >> >> From the commit log and comments of commit 37ec97deb3a8 ("sched/numa: >> Slow down scan rate if shared faults dominate"), the autonuma scan >> period should be increased (scanning is

[iommu/dma] b1d2dc009d: can't load the disk

2019-07-26 Thread Rong Chen
FYI, we noticed the following commit (built with gcc-7): commit: 1b961423158caaae49d3900b7c9c37477bbfa9b3 ("iommu/dma: Fix condition check in iommu_dma_unmap_sg") https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master on test machine: Intel(R) Xeon(R) CPU E7-8890

Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Wanpeng Li
On Fri, 26 Jul 2019 at 15:20, Thomas Gleixner wrote: > > On Fri, 26 Jul 2019, Wanpeng Li wrote: > > On Fri, 26 Jul 2019 at 14:10, Wanpeng Li wrote: > > > static void kvm_send_ipi_all(int vector) > > > { > > > - __send_ipi_mask(cpu_online_mask, vector); > > > + if

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-26 Thread Jan Kotas
Hello, I while back I proposed a patch for this, but it went nowhere. https://patchwork.kernel.org/patch/10887405/ Maybe something similar can be implemented? Jan > On 26 Jul 2019, at 09:39, Guennadi Liakhovetski > wrote: > > EXTERNAL MAIL > > > Hi Pierre, > > I might be wrong but this

[PATCH] fs: nfs: Fix possible null-pointer dereferences in encode_attrs()

2019-07-26 Thread Jia-Ju Bai
In encode_attrs(), there is an if statement on line 1145 to check whether label is NULL: if (label && (attrmask[2] & FATTR4_WORD2_SECURITY_LABEL)) When label is NULL, it is used on lines 1178-1181: *p++ = cpu_to_be32(label->lfs); *p++ = cpu_to_be32(label->pi); *p++ =

[PATCH V2 net-next 07/10] net: hns3: make hclge_service use delayed workqueue

2019-07-26 Thread Huazhong Tan
From: Yunsheng Lin Use delayed work instead of using timers to trigger the hclge_serive. Simplify the code with one less middle function and in order to support misc irq affinity. Signed-off-by: Yunsheng Lin Reviewed-by: Peng Li Signed-off-by: Huazhong Tan ---

[PATCH V2 net-next 01/10] net: hns3: add reset checking before set channels

2019-07-26 Thread Huazhong Tan
From: Jian Shen hns3_set_channels() should check the resetting status firstly, since the device will reinitialize when resetting. If the reset has not completed, the hns3_set_channels() may access invalid memory. Signed-off-by: Jian Shen Signed-off-by: Huazhong Tan ---

[PATCH V2 net-next 10/10] net: hns3: use dev_info() instead of pr_info()

2019-07-26 Thread Huazhong Tan
dev_info() is more appropriate for printing messages when driver initialization done, so switch to dev_info(). Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 +++- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 3 ++- 2 files changed,

[PATCH V2 net-next 02/10] net: hns3: add a check for get_reset_level

2019-07-26 Thread Huazhong Tan
From: Guangbin Huang For some cases, ops->get_reset_level may not be implemented, so we should check whether it is NULL before calling get_reset_level. Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- 1 file changed, 1

[PATCH V2 net-next 00/10] net: hns3: some code optimizations & bugfixes & features

2019-07-26 Thread Huazhong Tan
This patch-set includes code optimizations, bugfixes and features for the HNS3 ethernet controller driver. [patch 1/10] checks reset status before setting channel. [patch 2/10] adds a NULL pointer checking. [patch 3/10] removes reset level upgrading when current reset fails. [patch 4/10] fixes

[PATCH V2 net-next 05/10] net: hns3: modify firmware version display format

2019-07-26 Thread Huazhong Tan
From: Yufeng Mo This patch modifies firmware version display format in hclge(vf)_cmd_init() and hns3_get_drvinfo(). Also, adds some optimizations for firmware version display format. Signed-off-by: Yufeng Mo Signed-off-by: Peng Li Signed-off-by: Huazhong Tan ---

[PATCH V2 net-next 08/10] net: hns3: add interrupt affinity support for misc interrupt

2019-07-26 Thread Huazhong Tan
From: Yunsheng Lin The misc interrupt is used to schedule the reset and mailbox subtask, and service_task delayed_work is used to do periodic management work each second. This patch sets the above three subtask's affinity using the misc interrupt' affinity. Also this patch setups a affinity

[PATCH V2 net-next 06/10] net: hns3: adds debug messages to identify eth down cause

2019-07-26 Thread Huazhong Tan
From: Yonglong Liu Some times just see the eth interface have been down/up via dmesg, but can not know why the eth down. So adds some debug messages to identify the cause for this. Signed-off-by: Yonglong Liu Signed-off-by: Peng Li Signed-off-by: Huazhong Tan ---

[PATCH V2 net-next 03/10] net: hns3: remove upgrade reset level when reset fail

2019-07-26 Thread Huazhong Tan
Currently, hclge_reset_err_handle() will assert a global reset when the failing count is smaller than MAX_RESET_FAIL_CNT, which will affect other running functions. So this patch removes this upgrading, and uses re-scheduling reset task to do it. Signed-off-by: Huazhong Tan Reviewed-by:

[PATCH V2 net-next 09/10] net: hns3: Add support for using order 1 pages with a 4K buffer

2019-07-26 Thread Huazhong Tan
From: Yunsheng Lin Hardware supports 0.5K, 1K, 2K, 4K RX buffer size, the RX buffer can not be reused because the hns3_page_order return 0 when page size and RX buffer size are both 4096. So this patch changes the hns3_page_order to return 1 when RX buffer is greater than half of the page size

[PATCH V2 net-next 04/10] net: hns3: change GFP flag during lock period

2019-07-26 Thread Huazhong Tan
From: Yufeng Mo When allocating memory, the GFP_KERNEL cannot be used during the spin_lock period. This is because it may cause scheduling when holding spin_lock. This patch changes GFP flag to GFP_ATOMIC in this case. Fixes: dd74f815dd41 ("net: hns3: Add support for rule add/delete for flow

Re: [PATCH v1] ACPI / scan: Acquire device_hotplug_lock in acpi_scan_init()

2019-07-26 Thread Michal Hocko
On Thu 25-07-19 22:49:36, David Hildenbrand wrote: > On 25.07.19 21:19, Michal Hocko wrote: [...] > > We need to rationalize the locking here, not to add more hacks. > > No, sorry. The real hack is calling a function that is *documented* to > be called under lock without it. That is an

Re: [RFC][PATCH 1/5] exit: kill struct waitid_info

2019-07-26 Thread Christian Brauner
On Thu, Jul 25, 2019 at 07:46:50AM -0500, Eric W. Biederman wrote: > Linus Torvalds writes: > > > On Wed, Jul 24, 2019 at 7:47 AM Christian Brauner > > wrote: > >> > >> The code here uses a struct waitid_info to catch basic information about > >> process exit including the pid, uid, status,

[PATCH] iio: humidity: Use device-managed APIs

2019-07-26 Thread Chuhong Yuan
Use device-managed APIs to simplify the code. The remove functions are redundant now and can be deleted. Signed-off-by: Chuhong Yuan --- drivers/iio/humidity/am2315.c | 21 - drivers/iio/humidity/hdc100x.c | 18 -- 2 files changed, 8 insertions(+), 31

[PATCH 2/2] net: ipv6: Fix a possible null-pointer dereference in vti6_link_config()

2019-07-26 Thread Jia-Ju Bai
In vti6_link_config(), there is an if statement on line 649 to check whether rt is NULL: if (rt) When rt is NULL, it is used on line 651: ip6_rt_put(rt); dst_release(>dst); Thus, a possible null-pointer dereference may occur. To fix this bug, ip6_rt_put() is called when rt is

[PATCH 1/2] net: ipv6: Fix a possible null-pointer dereference in ip6_xmit()

2019-07-26 Thread Jia-Ju Bai
In ip6_xmit(), there is an if statement on line 245 to check whether np is NULL: if (np) When np is NULL, it is used on line 251: ip6_autoflowlabel(net, np) if (!np->autoflowlabel_set) Thus, a possible null-pointer dereference may occur. To fix this bug, np is checked before

Re: [PATCH v2 01/14] opp: Add dev_pm_opp_find_level_exact()

2019-07-26 Thread Viresh Kumar
On 25-07-19, 12:41, Niklas Cassel wrote: > When using performance states, there is usually not any opp-hz property > specified, so the dev_pm_opp_find_freq_exact() function cannot be used. Removed above two lines while applying. > Since the performance states in the OPP table are unique,

Re: [PATCH v2 02/14] dt-bindings: cpufreq: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2019-07-26 Thread Viresh Kumar
$subject of this and few more binding patches updated to: "dt-bindings: opp: XXX" On 25-07-19, 12:41, Niklas Cassel wrote: > From: Sricharan R > > The kryo cpufreq driver reads the nvmem cell and uses that data to > populate the opps. There are other qcom cpufreq socs like krait which > does

Re: [PATCH v1] ACPI / scan: Acquire device_hotplug_lock in acpi_scan_init()

2019-07-26 Thread David Hildenbrand
On 26.07.19 09:57, Michal Hocko wrote: > On Thu 25-07-19 22:49:36, David Hildenbrand wrote: >> On 25.07.19 21:19, Michal Hocko wrote: > [...] >>> We need to rationalize the locking here, not to add more hacks. >> >> No, sorry. The real hack is calling a function that is *documented* to >> be

Re: [PATCH 04/17] ARM: dts: vesnin: Add unit address for memory node

2019-07-26 Thread Alexander A. Filippov
On Fri, Jul 26, 2019 at 03:09:46PM +0930, Andrew Jeffery wrote: > Fixes the following warnings: > > arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dt.yaml: /: memory: False schema > does not allow {'reg': [[1073741824, 536870912]]} > arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dt.yaml: memory:

Re: [PATCH v2 00/14] Add support for QCOM Core Power Reduction

2019-07-26 Thread Viresh Kumar
On 25-07-19, 12:41, Niklas Cassel wrote: > This series adds support for Core Power Reduction (CPR), a form of > Adaptive Voltage Scaling (AVS), found on certain Qualcomm SoCs. > > This series is based on top of the qcs404 cpufreq patch series that > hasn't landed yet: >

Re: Re: [PATCH v6] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Greg KH
On Fri, Jul 26, 2019 at 07:33:28AM +, Je Yen Tam wrote: > > Subject: [EXTERNAL] Re: [PATCH v6] serial/8250: Add support for NI-Serial > > PXI/PXIe+485 devices > > > > On Fri, Jul 26, 2019 at 03:22:26PM +0800, jeyentam wrote: > > > Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485

Re: WARNING in ovl_real_fdget_meta

2019-07-26 Thread Amir Goldstein
On Thu, Jul 25, 2019 at 7:24 AM syzbot wrote: > > syzbot has bisected this bug to: > > commit 387e3746d01c34457d6a73688acd90428725070b > Author: Amir Goldstein > Date: Fri Jun 7 14:24:38 2019 + > > locks: eliminate false positive conflicts for write lease > > bisection log:

Re: [RFC PATCH 1/3] mm, reclaim: make should_continue_reclaim perform dryrun detection

2019-07-26 Thread Mel Gorman
> From: Hillf Danton > Subject: [RFC PATCH 1/3] mm, reclaim: make should_continue_reclaim perform > dryrun detection > > Address the issue of should_continue_reclaim continuing true too often > for __GFP_RETRY_MAYFAIL attempts when !nr_reclaimed and nr_scanned. > This could happen during

Re: [PATCH] mfd: max77620: Add of_node_put() before return

2019-07-26 Thread Nishka Dasgupta
On 25/07/19 5:45 PM, Lee Jones wrote: On Tue, 09 Jul 2019, Nishka Dasgupta wrote: Each iteration of for_each_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return.

Re: [PATCH v7] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices

2019-07-26 Thread Greg KH
On Fri, Jul 26, 2019 at 03:40:12PM +0800, Je Yen Tam wrote: > Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. > > Signed-off-by: Je Yen Tam Looks good, now queued up, thanks for all of the revisions. greg k-h

Re: [PATCH RFC] mm/memory_hotplug: Don't take the cpu_hotplug_lock

2019-07-26 Thread Michal Hocko
On Thu 25-07-19 11:22:06, David Hildenbrand wrote: > Commit 9852a7212324 ("mm: drop hotplug lock from lru_add_drain_all()") > states that lru_add_drain_all() "Doesn't need any cpu hotplug locking > because we do rely on per-cpu kworkers being shut down before our > page_alloc_cpu_dead callback is

Re: [PATCH 2/5] pidfd: add pidfd_wait()

2019-07-26 Thread Arnd Bergmann
On Wed, Jul 24, 2019 at 4:47 PM Christian Brauner wrote: > + > +static int copy_rusage_to_user_any(struct rusage *kru, struct rusage __user > *ru) > +{ > +#ifdef CONFIG_COMPAT > + if (in_compat_syscall()) > + return put_compat_rusage(kru, (struct compat_rusage __user >

Re: [Regression] Missing device nodes for ETR, ETF and STM after CONFIG_UEVENT_HELPER=n

2019-07-26 Thread Sai Prakash Ranjan
On 7/26/2019 12:34 PM, Greg Kroah-Hartman wrote: On Fri, Jul 26, 2019 at 11:49:19AM +0530, Sai Prakash Ranjan wrote: Hi, When trying to test my coresight patches, I found that etr,etf and stm device nodes are missing from /dev. I have no idea what those device nodes are. Bisection gives

Re: [PATCH RFC] mm/memory_hotplug: Don't take the cpu_hotplug_lock

2019-07-26 Thread David Hildenbrand
On 26.07.19 10:19, Michal Hocko wrote: > On Thu 25-07-19 11:22:06, David Hildenbrand wrote: >> Commit 9852a7212324 ("mm: drop hotplug lock from lru_add_drain_all()") >> states that lru_add_drain_all() "Doesn't need any cpu hotplug locking >> because we do rely on per-cpu kworkers being shut down

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-26 Thread Guennadi Liakhovetski
Hi Jan, On Fri, Jul 26, 2019 at 07:47:04AM +, Jan Kotas wrote: > Hello, > > I while back I proposed a patch for this, but it went nowhere. > > https://patchwork.kernel.org/patch/10887405/ > Maybe something similar can be implemented? Yes, I was thinking about checkint -EACCESS too, but

Re: [PATCH 2/5] pidfd: add pidfd_wait()

2019-07-26 Thread Christian Brauner
On Fri, Jul 26, 2019 at 10:19:55AM +0200, Arnd Bergmann wrote: > On Wed, Jul 24, 2019 at 4:47 PM Christian Brauner > wrote: > > > + > > +static int copy_rusage_to_user_any(struct rusage *kru, struct rusage > > __user *ru) > > +{ > > +#ifdef CONFIG_COMPAT > > + if (in_compat_syscall()) >

Re: [PATCH] tools/lib/traceevent, tools/perf: Move struct tep_handler definition in a local header file

2019-07-26 Thread Tzvetomir Stoyanov
Hi Andres, On Fri, Jul 26, 2019 at 6:58 AM Andres Freund wrote: > > Hi, > ... > > Is just plain wrong, as: > > > - return pevent->events[idx]; > > + return (all_events + idx); > > that's not a valid conversion. ->events isn't an array of tep_handle, > it's an array of

[PATCH] isdn: mISDN: hfcsusb: Fix possible null-pointer dereferences in start_isoc_chain()

2019-07-26 Thread Jia-Ju Bai
In start_isoc_chain(), usb_alloc_urb() on line 1392 may fail and return NULL. At this time, fifo->iso[i].urb is assigned to NULL. Then, fifo->iso[i].urb is used at some places, such as: LINE 1405:fill_isoc_urb(fifo->iso[i].urb, ...) urb->number_of_packets = num_packets;

[PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-26 Thread Dietmar Eggemann
Remove BUG_ON() in __enqueue_dl_entity() since there is already one in enqueue_dl_entity(). Move the check that the dl_se is not on the dl_rq from __dequeue_dl_entity() to dequeue_dl_entity() to align with the enqueue side and use the on_dl_rq() helper function. Signed-off-by: Dietmar Eggemann

[PATCH 5/5] sched/deadline: Use return value of SCHED_WARN_ON() in bw accounting

2019-07-26 Thread Dietmar Eggemann
To make the decision whether to set rq or running bw to 0 in underflow case use the return value of SCHED_WARN_ON() rather than an extra if condition. Signed-off-by: Dietmar Eggemann --- kernel/sched/deadline.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH 3/5] sched/deadline: Use __sub_running_bw() throughout dl_change_utilization()

2019-07-26 Thread Dietmar Eggemann
dl_change_utilization() has a BUG_ON() to check that no schedutil kthread (sugov) is entering this function. So instead of calling sub_running_bw() which checks for the special entity related to a sugov thread, call the underlying function __sub_running_bw(). Signed-off-by: Dietmar Eggemann ---

[PATCH 2/5] sched/deadline: Remove unused int flags from __dequeue_task_dl()

2019-07-26 Thread Dietmar Eggemann
The int flags parameter is not used in __dequeue_task_dl(). Remove it. Signed-off-by: Dietmar Eggemann --- kernel/sched/deadline.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index d1aeada374e1..99d4c24a8637

  1   2   3   4   5   6   7   8   9   10   >