[PATCH v2 00/23] LPUART fixes and improvements

2019-07-31 Thread Andrey Smirnov
Everyone: This series contains fixes/improvements to LPUART dirver I came up with recently as well as fixes picked up from Toradex and NXP Vybrid repos. Feedback is welcome! Changes since [v1]: - Dropped "tty: serial: fsl_lpuart: Drop unnecessary sg_set_buf() call" due to being a duplicate

Re: [PATCH 1/2] input: keyboard: gpio_keys_polled: use gpio lookup table

2019-07-31 Thread Enrico Weigelt, metux IT consult
On 29.07.19 20:43, Dmitry Torokhov wrote: Hi, https://patchwork.kernel.org/cover/11042915/ Thanks. I tried putting you on CC list there, did you not get them? hmm, maybe it went to one of the dozens of mailboxes where I didn't look at careful enough ... I'm currently just sorting by

Re: [PATCH] fanotify, inotify, dnotify, security: add security hook for fs notifications

2019-07-31 Thread Casey Schaufler
On 7/31/2019 8:34 AM, Aaron Goidel wrote: > As of now, setting watches on filesystem objects has, at most, applied a > check for read access to the inode, and in the case of fanotify, requires > CAP_SYS_ADMIN. No specific security hook or permission check has been > provided to control the setting

Re: [PATCH v3 3/4] arm64: Make debug exception handlers visible from RCU

2019-07-31 Thread Will Deacon
On Thu, Jul 25, 2019 at 05:16:15PM +0900, Masami Hiramatsu wrote: > Make debug exceptions visible from RCU so that synchronize_rcu() > correctly track the debug exception handler. > > This also introduces sanity checks for user-mode exceptions as same > as x86's ist_enter()/ist_exit(). > > The

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Greg Kroah-Hartman
On Wed, Jul 31, 2019 at 10:13:57AM -0700, Stephen Boyd wrote: > Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > > > > > > > > We can run into the same

Re: microblaze HAVE_MEMBLOCK_NODE_MAP dependency (was Re: [PATCH v2 0/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA)

2019-07-31 Thread Mike Rapoport
On Wed, Jul 31, 2019 at 04:41:14PM +0200, Michal Hocko wrote: > On Wed 31-07-19 17:21:29, Mike Rapoport wrote: > > On Wed, Jul 31, 2019 at 03:00:37PM +0200, Michal Hocko wrote: > > > > > > I am sorry, but I still do not follow. Who is consuming that node id > > > information when NUMA=n. In other

Re: [PATCH] arm64/efi: fix variable 'si' set but not used

2019-07-31 Thread Catalin Marinas
On Tue, Jul 30, 2019 at 05:23:48PM -0400, Qian Cai wrote: > GCC throws out this warning on arm64. > > drivers/firmware/efi/libstub/arm-stub.c: In function 'efi_entry': > drivers/firmware/efi/libstub/arm-stub.c:132:22: warning: variable 'si' > set but not used [-Wunused-but-set-variable] > > Fix

Re: [PATCH 4/4] block: stop exporting bio_map_kern

2019-07-31 Thread Javier González
> On 31 Jul 2019, at 11.41, Hans Holmberg wrote: > > Now that there no module users left of bio_map_kern, stop > exporting the symbol. > > Signed-off-by: Hans Holmberg > --- > block/bio.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/block/bio.c b/block/bio.c > index

Re: [PATCH] arm64: vdso: Fix Makefile regression

2019-07-31 Thread Catalin Marinas
On Mon, Jul 29, 2019 at 01:54:21PM +0100, Vincenzo Frascino wrote: > Using an old .config in combination with "make oldconfig" can cause > an incorrect detection of the compat compiler: > > $ grep CROSS_COMPILE_COMPAT .config > CONFIG_CROSS_COMPILE_COMPAT_VDSO="" > > $ make oldconfig && make >

Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-07-31 Thread Pavel Machek
On Tue 2019-07-30 22:35:18, Joe Perches wrote: > Reserve the pseudo keyword 'fallthrough' for the ability to convert the > various case block /* fallthrough */ style comments to appear to be an > actual reserved word with the same gcc case block missing fallthrough > warning capability. Acked-by:

Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs

2019-07-31 Thread Stephen Boyd
Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > > > > > We can run into the same problem when two buses name their devices the > > > same name and then we

Re: [alsa-devel] [PATCH v2 3/3] ASoC: SOF: no need to check return value of debugfs_create functions

2019-07-31 Thread Ranjani Sridharan
On Wed, 2019-07-31 at 15:17 +0200, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic > should > never do something different based on this. > > Also, if a debugfs call fails, userspace

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-07-31 Thread Logan Gunthorpe
On 2019-07-31 12:30 a.m., Greentime Hu wrote: > I look this issue more closely. > I found it always sets each memblock region to node 0. Does this make sense? > I am not sure if I understand this correctly. Do you have any idea for > this? Thank you. :) Yes, I think this is normal. When we

Re: [PATCH 5/8] arm64: use ZONE_DMA on DMA addressing limited devices

2019-07-31 Thread Catalin Marinas
On Wed, Jul 31, 2019 at 05:47:48PM +0200, Nicolas Saenz Julienne wrote: > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index 1c4ffabbe1cb..f5279ef85756 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -50,6 +50,13 @@ > s64 memstart_addr __ro_after_init = -1; >

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-07-31 Thread Andrey Ryabinin
On 7/26/19 4:19 PM, Walter Wu wrote: > On Fri, 2019-07-26 at 15:52 +0300, Andrey Ryabinin wrote: >> >> On 7/26/19 3:28 PM, Walter Wu wrote: >>> On Fri, 2019-07-26 at 15:00 +0300, Andrey Ryabinin wrote: >>> > > > I remember that there are already the lists which you concern.

Re: [PATCH] watchdog:alim1535_wdt: Fix data race in ali_settimer() concerning ali_timeout_bits variable.

2019-07-31 Thread Mark Balantzyan
My employer (and yes, I am working for the Linux Foundation) has me working on analysing race condition warnings in the Linux kernel. They have a driver verification project running under the umbrella of the ELISA project involved in the research, investigation, experimentation, and

Re: [PATCH 1/6] dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal

2019-07-31 Thread Rob Herring
On Wed, Jul 31, 2019 at 6:44 AM Neil Armstrong wrote: > > On 31/07/2019 14:14, Guillaume La Roque wrote: > > Adding the devicetree binding documentation for the Amlogic temperature > > sensor found in the Amlogic Meson G12 SoCs. > > the G12A and G12B SoCs are supported. > > > > Signed-off-by:

Reply me on my email OK

2019-07-31 Thread troxellj...@gmail.com
-- Hello dear Friend i am Major. John Wayne Troxell, Write to me back on the below email ( troxellj...@gmail.com )

Re: [PATCH 1/2] arm64: Add support for function error injection

2019-07-31 Thread Leo Yan
Hi Will, Thanks for reviewing. On Wed, Jul 31, 2019 at 05:08:37PM +0100, Will Deacon wrote: > On Tue, Jul 16, 2019 at 07:13:00PM +0800, Leo Yan wrote: > > This patch implement regs_set_return_value() and > > override_function_with_return() to support function error injection > > for arm64. > >

Re: [PATCH 4/6] dt-bindings: arm: amlogic: add support for the Khadas VIM3

2019-07-31 Thread Rob Herring
On Wed, Jul 31, 2019 at 6:40 AM Neil Armstrong wrote: > > From: Christian Hewitt > > The Khadas VIM3 uses the Amlogic S922X or A311S SoC, both based on the > Amlogic G12B SoC family, on a board with the same form factor as the > VIM/VIM2 models. It ships in two variants; basic and > pro which

Re: [PATCH v2 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-07-31 Thread Dmitry Safonov
On 7/31/19 5:49 PM, Dmitry Safonov wrote: > Hi Adrian, > > On 7/31/19 5:12 PM, Adrian Reber wrote: > [..] >> @@ -2530,14 +2530,12 @@ noinline static int copy_clone_args_from_user(struct >> kernel_clone_args *kargs, >>struct clone_args __user *uargs, >>

Re: [PATCH 2/6] dt-bindings: arm: amlogic: add bindings for G12B based S922X SoC

2019-07-31 Thread Rob Herring
On Wed, Jul 31, 2019 at 6:40 AM Neil Armstrong wrote: > > Add a specific compatible for the Amlogic G12B family based S922X SoC > to differentiate with the A311D SoC from the same family. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + > 1

Re: [PATCH 3/6] dt-bindings: arm: amlogic: add bindings for the Amlogic G12B based A311D SoC

2019-07-31 Thread Rob Herring
On Wed, Jul 31, 2019 at 6:40 AM Neil Armstrong wrote: > > Add a specific compatible for the Amlogic G12B bases A311D SoC used > in the Khadas VIM3. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/arm/amlogic.yaml | 5 + > 1 file changed, 5 insertions(+)

Re: [PATCH v4 2/2] dt-bindings: iio: potentiometer: add max5432.yaml binding

2019-07-31 Thread Rob Herring
On Wed, Jul 31, 2019 at 8:07 AM Martin Kaiser wrote: > > Add a binding for the Maxim Integrated MAX5432-MAX5435 family of digital > potentiometers. > > Signed-off-by: Martin Kaiser > --- > changes in v4 > - fix the dt bindings >- replace ic20 with i2c >- document the reg property >-

Re: [PATCH v2 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-07-31 Thread Dmitry Safonov
Hi Adrian, On 7/31/19 5:12 PM, Adrian Reber wrote: [..] > @@ -2530,14 +2530,12 @@ noinline static int copy_clone_args_from_user(struct > kernel_clone_args *kargs, > struct clone_args __user *uargs, > size_t

Re: [PATCH v3 2/7] perf/x86/intel: Support PEBS output to PT

2019-07-31 Thread Peter Zijlstra
On Wed, Jul 31, 2019 at 05:30:36PM +0300, Alexander Shishkin wrote: > diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c > index cfe256ca76df..6cf2a7ba822a 100644 > --- a/arch/x86/events/core.c > +++ b/arch/x86/events/core.c > @@ -1006,6 +1006,28 @@ static int collect_events(struct

Re: [PATCH 2/2] reset: imx7: Fix IMX8MQ_RESET_MIPI_DSI_ defines

2019-07-31 Thread Lucas Stach
Am Mittwoch, den 31.07.2019, 18:43 +0200 schrieb Guido Günther: > Some of the mipi dsi resets were called > >   IMX8MQ_RESET_MIPI_DIS_ > > instead of > >   IMX8MQ_RESET_MIPI_DSI_ > > Since they're DSI related this looks like a typo. > > I wasn't sure if this should be a single patch since it

[PATCH 2/2] reset: imx7: Fix IMX8MQ_RESET_MIPI_DSI_ defines

2019-07-31 Thread Guido Günther
Some of the mipi dsi resets were called IMX8MQ_RESET_MIPI_DIS_ instead of IMX8MQ_RESET_MIPI_DSI_ Since they're DSI related this looks like a typo. I wasn't sure if this should be a single patch since it otherwise breaks bisectability. I couldn't find any device trees using this yet.

[PATCH 1/2] dt-bindings: reset: Fix typo in imx8mq resets

2019-07-31 Thread Guido Günther
Some of the mipi dsi resets were called IMX8MQ_RESET_MIPI_DIS__ instead of IMX8MQ_RESET_MIPI_DSI__ Since they're DSI related this looks like a typo. Signed-off-by: Guido Günther --- include/dt-bindings/reset/imx8mq-reset.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 0/2] imx: Fix typo in iMQ8MQ reset names

2019-07-31 Thread Guido Günther
Some of the mipi dsi resets were called IMX8MQ_RESET_MIPI_DIS_ instead of IMX8MQ_RESET_MIPI_DSI_ Since they're DSI related this looks like a typo. Guido Günther (2): dt-bindings: reset: Fix typo in imx8mq resets reset: imx7: Fix IMX8MQ_RESET_MIPI_DSI_ defines

Re: [PATCH] watchdog:alim1535_wdt: Fix data race in ali_settimer() concerning ali_timeout_bits variable.

2019-07-31 Thread Guenter Roeck
Hi Mark, On Wed, Jul 31, 2019 at 09:17:13AM -0700, Mark Balantzyan wrote: > Hi Guenter, > > If it's not too much too ask, I also propose to rewrite alim1535_wdt to use > the watchdog subsystem as I believe we are making progress toward the > similar end in pc87413_wdt, as my evaluation ends in

[PATCH v2 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-07-31 Thread Adrian Reber
The main motivation to add CLONE_SET_TID to clone3() is CRIU. To restore a process with the same PID/TID CRIU currently uses /proc/sys/kernel/ns_last_pid. It writes the desired (PID - 1) to ns_last_pid and then (quickly) does a clone(). This works most of the time, but it is racy. It is also slow

[PATCH v2 2/2] selftests: add test for clone3() with set_tid

2019-07-31 Thread Adrian Reber
This tests clone3() with set_tid to see if all desired PIDs are working as expected. The test tries to clone3() with a set_tid of -1, 1, pid_max, a PID which is already in use and an unused PID. The same tests are also running in PID namespace. Signed-off-by: Adrian Reber ---

Re: [PATCH 1/3] KVM: Don't need to wakeup vCPU twice afer timer fire

2019-07-31 Thread Paolo Bonzini
On 31/07/19 15:14, Vitaly Kuznetsov wrote: > Paolo Bonzini writes: > >> On 31/07/19 13:27, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> kvm_set_pending_timer() will take care to wake up the sleeping vCPU which >>> has pending timer, don't need to check this in apic_timer_expired() again. >>

[PATCHv4 2/3] fpga: altera-cvp: Preparation for V2 parts.

2019-07-31 Thread thor . thayer
From: Thor Thayer In preparation for adding newer V2 parts that use a FIFO, reorganize altera_cvp_chk_error() and change the write function to block based. V2 parts have a block size matching the FIFO while older V1 parts write a 32 bit word at a time. Signed-off-by: Thor Thayer --- v2 Remove

[PATCHv4 3/3] fpga: altera-cvp: Add Stratix10 (V2) Support

2019-07-31 Thread thor . thayer
From: Thor Thayer Add Stratix10 specific functions that use a credit mechanism to throttle data to the CvP FIFOs. Add a private structure with function pointers for V1 vs V2 functions. Signed-off-by: Thor Thayer --- v2 Remove inline function declaration Reverse Christmas Tree format for

[PATCHv4 0/3] fpga: altera-cvp: Add Stratix10 Support

2019-07-31 Thread thor . thayer
From: Thor Thayer Newer versions (V2) of Altera/Intel FPGAs CvP have different PCI Vendor Specific Capability offsets than the older (V1) Altera/FPGAs. Most of the CvP registers and their bitfields remain the same between both the older parts and the newer parts. This patchset implements

[PATCHv4 1/3] fpga: altera-cvp: Discover Vendor Specific offset

2019-07-31 Thread thor . thayer
From: Thor Thayer Newer Intel FPGAs have different Vendor Specific offsets than legacy parts. Use PCI discovery to find the CvP registers. Since the register positions remain the same, change the hard coded address to a more flexible way of indexing registers from the offset. Adding new PCI read

Re: [RFC v4 0/8] TurboSched: A scheduler for sustaining Turbo Frequencies for longer durations

2019-07-31 Thread Parth Shah
On 7/28/19 7:01 PM, Pavel Machek wrote: > Hi! > >> Abstract >> >> >> The modern servers allows multiple cores to run at range of frequencies >> higher than rated range of frequencies. But the power budget of the system >> inhibits sustaining these higher frequencies for longer

Re: [PATCH 2/2] uprobe: collapse THP pmd after removing all uprobes

2019-07-31 Thread Song Liu
> On Jul 31, 2019, at 9:16 AM, Oleg Nesterov wrote: > > On 07/28, Song Liu wrote: >> >> @@ -525,6 +527,9 @@ int uprobe_write_opcode(struct arch_uprobe *auprobe, >> struct mm_struct *mm, >> >> /* dec_mm_counter for old_page */ >>

Re: [PATCH RFC 3/5] x86: KVM: svm: clear interrupt shadow on all paths in skip_emulated_instruction()

2019-07-31 Thread Paolo Bonzini
On 31/07/19 15:50, Vitaly Kuznetsov wrote: > Jim Mattson writes: > >> On Thu, Jun 20, 2019 at 4:02 AM Vitaly Kuznetsov wrote: >>> >>> Regardless of the way how we skip instruction, interrupt shadow needs to be >>> cleared. >> >> This change is definitely an improvement, but the existing code

Re: [PATCH] net: sctp: Rename fallthrough label to unhandled

2019-07-31 Thread Joe Perches
On Wed, 2019-07-31 at 08:16 -0400, Neil Horman wrote: > On Wed, Jul 31, 2019 at 04:32:43AM -0700, Joe Perches wrote: > > On Wed, 2019-07-31 at 07:19 -0400, Neil Horman wrote: > > > On Tue, Jul 30, 2019 at 10:04:37PM -0700, Joe Perches wrote: > > > > fallthrough may become a pseudo reserved keyword

Re: [PATCH] scsi: ufs: Additional clock initialization in Cadence UFS

2019-07-31 Thread Vignesh Raghavendra
Hi, On 31-Jul-19 2:06 PM, Anil Varughese wrote: > Configure CDNS_UFS_REG_HCLKDIV in .hce_enable_notify() > because if UFSHCD resets the controller ip because of > phy or device related errors then CDNS_UFS_REG_HCLKDIV > is reset to default value and .setup_clock() is not > called later in the

Re: [RFC v2 00/27] Kernel Address Space Isolation

2019-07-31 Thread Dario Faggioli
Hello all, I know this is a bit of an old thread, so apologies for being late to the party. :-) I would have a question about this: > > > On 7/12/19 2:36 PM, Peter Zijlstra wrote: > > > > On Fri, Jul 12, 2019 at 02:17:20PM +0200, Alexandre Chartre > > > > wrote: > > > > > On 7/12/19 1:44 PM,

Re: [PATCH] randstruct: fix a bug in is_pure_ops_struct()

2019-07-31 Thread Joonwon Kang
On Tue, Jul 30, 2019 at 10:11:19AM -0700, Kees Cook wrote: > On Sun, Jul 28, 2019 at 12:58:41AM +0900, Joonwon Kang wrote: > > Before this, there were false negatives in the case where a struct > > contains other structs which contain only function pointers because > > of unreachable code in

Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

2019-07-31 Thread linux-kernel
Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

Re: [PATCH] arm64: vdso: Fix Makefile regression

2019-07-31 Thread Will Deacon
On Mon, Jul 29, 2019 at 01:54:21PM +0100, Vincenzo Frascino wrote: > Using an old .config in combination with "make oldconfig" can cause > an incorrect detection of the compat compiler: > > $ grep CROSS_COMPILE_COMPAT .config > CONFIG_CROSS_COMPILE_COMPAT_VDSO="" > > $ make oldconfig && make >

Re: [PATCH v3 1/7] perf: Allow normal events to be sources of AUX data

2019-07-31 Thread Peter Zijlstra
On Wed, Jul 31, 2019 at 05:30:35PM +0300, Alexander Shishkin wrote: > +static void perf_put_aux_event(struct perf_event *event) > +{ > + struct perf_event_context *ctx = event->ctx; > + struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); > + struct perf_event *iter = NULL; > + >

[PATCH linux-firmware] Install only listed firmware files

2019-07-31 Thread Takashi Iwai
The current make-install procedure leaves lots of garbage files that aren't really firmware files in /lib/firmware. Instead of copy-all-and-prune approach, copy only the listed files and links in WHENCE by make-install for assuring only the proper firmware files. Signed-off-by: Takashi Iwai ---

Re: [PATCH] watchdog:alim1535_wdt: Fix data race in ali_settimer() concerning ali_timeout_bits variable.

2019-07-31 Thread Mark Balantzyan
Hi Guenter, If it's not too much too ask, I also propose to rewrite alim1535_wdt to use the watchdog subsystem as I believe we are making progress toward the similar end in pc87413_wdt, as my evaluation ends in some weeks. Thank you, Mark

Re: [PATCH v3 1/7] perf: Allow normal events to be sources of AUX data

2019-07-31 Thread Peter Zijlstra
On Wed, Jul 31, 2019 at 05:30:35PM +0300, Alexander Shishkin wrote: > +static void perf_put_aux_event(struct perf_event *event) > +{ > + struct perf_event_context *ctx = event->ctx; > + struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); > + struct perf_event *iter = NULL; > + >

Re: [PATCH 2/2] uprobe: collapse THP pmd after removing all uprobes

2019-07-31 Thread Oleg Nesterov
On 07/28, Song Liu wrote: > > @@ -525,6 +527,9 @@ int uprobe_write_opcode(struct arch_uprobe *auprobe, > struct mm_struct *mm, > > /* dec_mm_counter for old_page */ > dec_mm_counter(mm, MM_ANONPAGES); > + > +

Re: [PATCH] arm64: Move TIF_* documentation to individual definitions

2019-07-31 Thread Will Deacon
On Wed, Jul 31, 2019 at 03:35:20PM +0200, Geert Uytterhoeven wrote: > Some TIF_* flags are documented in the comment block at the top, some > next to their definitions, some in both places. > > Move all documentation to the individual definitions for consistency, > and for easy lookup. > >

Re: [Regression] Commit "ACPI: PM: Allow transitions to D0 to occur in special cases"

2019-07-31 Thread Mario.Limonciello
I've actually been seeing worse behavior, in that I can't get Thunderbolt to work at all with 5.3rc1 or 5.3rc2 on the 9380 system I have on hand, similar messages related to link timeouts.

Re: [PATCH v3] watchdog: pc87413: Rewriting of pc87413_wdt driver to use watchdog subsystem

2019-07-31 Thread Guenter Roeck
On Wed, Jul 31, 2019 at 07:42:35AM -0700, Mark Balantzyan wrote: > This patch rewrites the pc87413_wdt driver to use the watchdog subsystem. In Checkpatch complains about the line length here. Also, s/This patch rewrites the pc87413_wdt/Rewrite/ It is obvious that the description applies to

Re: [RFC 2/2] arm64/mm: Enable device memory allocation and free for vmemmap mapping

2019-07-31 Thread Will Deacon
On Fri, Jun 28, 2019 at 10:14:43AM +0530, Anshuman Khandual wrote: > This enables vmemmap_populate() and vmemmap_free() functions to incorporate > struct vmem_altmap based device memory allocation and free requests. With > this device memory with specific atlmap configuration can be hot plugged >

Re: [RFC 1/2] mm/sparsemem: Add vmem_altmap support in vmemmap_populate_basepages()

2019-07-31 Thread Will Deacon
On Fri, Jun 28, 2019 at 10:14:42AM +0530, Anshuman Khandual wrote: > Generic vmemmap_populate_basepages() is used across platforms for vmemmap > as standard or as fallback when huge pages mapping fails. On arm64 it is > used for configs with ARM64_SWAPPER_USES_SECTION_MAPS applicable both for >

Re: "mm: account nr_isolated_xxx in [isolate|putback]_lru_page" breaks OOM with swap

2019-07-31 Thread Qian Cai
prise the patch make some bugs because > it's rather tricky. > > Could you test this patch? It does help the situation a bit, but the recover speed is still way slower than just reverting the commit "mm: account nr_isolated_xxx in [isolate|putback]_lru_page". For example, on this pow

Re: [PATCH 1/2] arm64: Add support for function error injection

2019-07-31 Thread Will Deacon
On Tue, Jul 16, 2019 at 07:13:00PM +0800, Leo Yan wrote: > This patch implement regs_set_return_value() and > override_function_with_return() to support function error injection > for arm64. > > In the exception flow, arm64's general register x30 contains the value > for the link register; so we

Re: [PATCH v2] staging/octeon: Fix build error without CONFIG_NETDEVICES

2019-07-31 Thread David Miller
From: Greg KH Date: Wed, 31 Jul 2019 18:02:19 +0200 > From: YueHaibing > > While do COMPILE_TEST build without CONFIG_NETDEVICES, > we get Kconfig warning: > > WARNING: unmet direct dependencies detected for PHYLIB > Depends on [n]: NETDEVICES [=n] > Selected by [y]: > - OCTEON_ETHERNET

Re: [PATCH] mmc: atmel-mci: Mark expected switch fall-throughs

2019-07-31 Thread Kees Cook
On Wed, Jul 31, 2019 at 01:32:16PM +0200, Ludovic Desroches wrote: > > drivers/mmc/host/atmel-mci.c:2426:40: warning: this statement may fall > > through [-Wimplicit-fallthrough=] > >host->caps.need_notbusy_for_read_ops = 1; > >~^~~ > >

Re: [PATCH 1/2] bnxt_en: Use refcount_t for refcount

2019-07-31 Thread Willem de Bruijn
On Wed, Jul 31, 2019 at 8:22 AM Chuhong Yuan wrote: > > refcount_t is better for reference counters since its > implementation can prevent overflows. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan > --- > drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 8

[Regression] Commit "ACPI: PM: Allow transitions to D0 to occur in special cases"

2019-07-31 Thread Kai-Heng Feng
Hi, After commit "ACPI: PM: Allow transitions to D0 to occur in special cases”, Thunderbolt on XPS 9380 spews the following when it runtime resumes: [ 36.136554] pci_raw_set_power_state: 25 callbacks suppressed [ 36.136558] pcieport :03:00.0: Refused to change power state, currently

[PATCH v2] staging/octeon: Fix build error without CONFIG_NETDEVICES

2019-07-31 Thread Greg KH
From: YueHaibing While do COMPILE_TEST build without CONFIG_NETDEVICES, we get Kconfig warning: WARNING: unmet direct dependencies detected for PHYLIB Depends on [n]: NETDEVICES [=n] Selected by [y]: - OCTEON_ETHERNET [=y] && STAGING [=y] && (CAVIUM_OCTEON_SOC && NETDEVICES [=n] ||

Re: [PATCH][next] RDMA/core: fix spelling mistake "Nelink" -> "Netlink"

2019-07-31 Thread Doug Ledford
On Wed, 2019-07-31 at 11:28 +0300, Leon Romanovsky wrote: > On Wed, Jul 31, 2019 at 09:01:44AM +0100, Colin King wrote: > > From: Colin Ian King > > > > There is a spelling mistake in a warning message, fix it. > > > > Signed-off-by: Colin Ian King > > --- > >

Re: [PATCH] cifs: remove redundant assignment to variable rc

2019-07-31 Thread Colin Ian King
On 31/07/2019 16:34, Aurélien Aptel wrote: > "Dan Carpenter" writes: >> You're just turning off GCC's static analysis (and introducing false >> positives) when you do that. We have seen bugs caused by this and never >> seen any bugs prevented by this style. > > You've never seen bugs prevented

Re: [PATCH v6 20/57] infiniband: Remove dev_err() usage after platform_get_irq()

2019-07-31 Thread Doug Ledford
On Tue, 2019-07-30 at 11:15 -0700, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now > that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression

Re: [PATCH v3] sched/core: Don't use dying mm as active_mm of kthreads

2019-07-31 Thread Waiman Long
On 7/31/19 11:07 AM, Rik van Riel wrote: > On Wed, 2019-07-31 at 10:15 -0400, Waiman Long wrote: >> On 7/31/19 9:48 AM, Rik van Riel wrote: >>> On Tue, 2019-07-30 at 17:01 -0400, Waiman Long wrote: On 7/29/19 8:26 PM, Rik van Riel wrote: > On Mon, 2019-07-29 at 17:42 -0400, Waiman Long

Re: [patch 4/4] fs: jbd/jbd2: Substitute BH locks for RT and lock debugging

2019-07-31 Thread Jan Kara
On Tue 30-07-19 13:24:56, Thomas Gleixner wrote: > Bit spinlocks are problematic if PREEMPT_RT is enabled. They disable > preemption, which is undesired for latency reasons and breaks when regular > spinlocks are taken within the bit_spinlock locked region because regular > spinlocks are converted

[PATCH v10 21/22] arm64: mm: Convert mm/dump.c to use walk_page_range()

2019-07-31 Thread Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the arm64 ptdump code over to using it, simplifying the code. Signed-off-by: Steven Price --- arch/arm64/Kconfig | 1 + arch/arm64/Kconfig.debug | 19 + arch/arm64/include/asm/ptdump.h| 8 +-

[PATCH 0/8] Raspberry Pi 4 DMA addressing support

2019-07-31 Thread Nicolas Saenz Julienne
Hi all, this series attempts to address some issues we found while bringing up the new Raspberry Pi 4 in arm64 and it's intended to serve as a follow up of this discussion: https://lkml.org/lkml/2019/7/17/476 The new Raspberry Pi 4 has up to 4GB of memory but most peripherals can only address the

[PATCH 1/8] arm64: mm: use arm64_dma_phys_limit instead of calling max_zone_dma_phys()

2019-07-31 Thread Nicolas Saenz Julienne
By the time we call zones_sizes_init() arm64_dma_phys_limit already contains the result of max_zone_dma_phys(). We use the variable instead of calling the function directly to save some precious cpu time. Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/mm/init.c | 2 +- 1 file changed, 1

Re: [PATCH v5 15/29] compat_ioctl: move tape handling into drivers

2019-07-31 Thread Arnd Bergmann
On Wed, Jul 31, 2019 at 12:51 PM Heiko Carstens wrote: > > On Tue, Jul 30, 2019 at 09:55:31PM +0200, Arnd Bergmann wrote: > > MTIOCPOS and MTIOCGET are incompatible between 32-bit and 64-bit user > > space, and traditionally have been translated in fs/compat_ioctl.c. > > > > To get rid of that

[PATCH v10 15/22] x86: mm: Point to struct seq_file from struct pg_state

2019-07-31 Thread Steven Price
mm/dump_pagetables.c passes both struct seq_file and struct pg_state down the chain of walk_*_level() functions to be passed to note_page(). Instead place the struct seq_file in struct pg_state and access it from struct pg_state (which is private to this file) in note_page(). Signed-off-by:

[PATCH v10 14/22] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-07-31 Thread Steven Price
The pte_hole() callback is called at multiple levels of the page tables. Code dumping the kernel page tables needs to know what at what depth the missing entry is. Add this is an extra parameter to pte_hole(). When the depth isn't know (e.g. processing a vma) then -1 is passed. The depth that is

[PATCH v10 19/22] mm: Add generic ptdump

2019-07-31 Thread Steven Price
Add a generic version of page table dumping that architectures can opt-in to Signed-off-by: Steven Price --- include/linux/ptdump.h | 19 ++ mm/Kconfig.debug | 21 ++ mm/Makefile| 1 + mm/ptdump.c| 151 + 4 files

[PATCH v10 22/22] arm64: mm: Display non-present entries in ptdump

2019-07-31 Thread Steven Price
Previously the /sys/kernel/debug/kernel_page_tables file would only show lines for entries present in the page tables. However it is useful to also show non-present entries as this makes the size and level of the holes more visible. This aligns the behaviour with x86 which also shows holes.

Re: [PATCH] vfio: re-arrange vfio region definitions

2019-07-31 Thread Cornelia Huck
On Wed, 17 Jul 2019 13:49:56 +0200 Cornelia Huck wrote: > It is easy to miss already defined region types. Let's re-arrange > the definitions a bit and add more comments to make it hopefully > a bit clearer. > > No functional change. > > Signed-off-by: Cornelia Huck > --- >

[PATCH v10 11/22] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-07-31 Thread Steven Price
pgd_entry() and pud_entry() were removed by commit 0b1fbfe50006c410 ("mm/pagewalk: remove pgd_entry() and pud_entry()") because there were no users. We're about to add users so reintroduce them, along with p4d_entry() as we now have 5 levels of tables. Note that commit a00cc7d9dd93d66a ("mm, x86:

[PATCH v10 18/22] x86: mm: Convert ptdump_walk_pgd_level_core() to take an mm_struct

2019-07-31 Thread Steven Price
An mm_struct is needed to enable x86 to use of the generic walk_page_range() function. In the case of walking the user page tables (when CONFIG_PAGE_TABLE_ISOLATION is enabled), it is necessary to create a fake_mm structure because there isn't an mm_struct with a pointer to the pgd of the user

[PATCH v10 20/22] x86: mm: Convert dump_pagetables to use walk_page_range

2019-07-31 Thread Steven Price
Make use of the new functionality in walk_page_range to remove the arch page walking code and use the generic code to walk the page tables. The effective permissions are passed down the chain using new fields in struct pg_state. The KASAN optimisation is implemented by including test_p?d

[PATCH v10 05/22] mips: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. If _PAGE_HUGE is defined we can simply look for it. When

[PATCH v10 13/22] mm: pagewalk: Add test_p?d callbacks

2019-07-31 Thread Steven Price
It is useful to be able to skip parts of the page table tree even when walking without VMAs. Add test_p?d callbacks similar to test_walk but which are called just before a table at that level is walked. If the callback returns non-zero then the entire table is skipped. Signed-off-by: Steven Price

[PATCH v10 06/22] powerpc: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For powerpc pmd_large() already exists and does what we

[PATCH v10 16/22] x86: mm+efi: Convert ptdump_walk_pgd_level() to take a mm_struct

2019-07-31 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level() need to pass an mm_struct rather than the raw pgd_t pointer. Luckily since commit 7e904a91bf60 ("efi: Use efi_mm in x86 as well as ARM") we now have an mm_struct for EFI on x86. Signed-off-by:

[PATCH v10 17/22] x86: mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-07-31 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price ---

[PATCH v10 12/22] mm: pagewalk: Allow walking without vma

2019-07-31 Thread Steven Price
Since 48684a65b4e3: "mm: pagewalk: fix misbehavior of walk_page_range for vma(VM_PFNMAP)", page_table_walk() will report any kernel area as a hole, because it lacks a vma. This means each arch has re-implemented page table walking when needed, for example in the per-arch ptdump walker. Remove

[PATCH v10 10/22] x86: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For x86 we already have p?d_large() functions, so simply

[PATCH v10 04/22] arm64: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information will be provided by the p?d_leaf() functions/macros. For arm64, we already have p?d_sect() macros which we

[PATCH v10 07/22] riscv: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For riscv a page is a leaf page when it has a read, write

[PATCH v10 09/22] sparc: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For sparc 64 bit, pmd_large() and pud_large() are already

[PATCH v10 08/22] s390: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For s390, pud_large() and pmd_large() are already

[PATCH v10 03/22] arm: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For arm pmd_large() already exists and does what we want.

[PATCH v10 02/22] arc: mm: Add p?d_leaf() definitions

2019-07-31 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information will be provided by the p?d_leaf() functions/macros. For arc, we only have two levels, so only pmd_leaf()

[PATCH v10 01/22] mm: Add generic p?d_leaf() macros

2019-07-31 Thread Steven Price
Exposing the pud/pgd levels of the page tables to walk_page_range() means we may come across the exotic large mappings that come with large areas of contiguous memory (such as the kernel's linear map). For architectures that don't provide all p?d_leaf() macros, provide generic do nothing default

[PATCH v10 00/22] Generic page walk and ptdump

2019-07-31 Thread Steven Price
This is a slight reworking and extension of my previous patch set (Convert x86 & arm64 to use generic page walk), but I've continued the version numbering as most of the changes are the same. In particular this series ends with a generic PTDUMP implemention for arm64 and x86. Many architectures

Re: [PATCH v2] mm: kmemleak: Use mempool allocations for kmemleak objects

2019-07-31 Thread Catalin Marinas
On Tue, Jul 30, 2019 at 01:02:15PM -0700, Andrew Morton wrote: > On Sat, 27 Jul 2019 14:23:33 +0100 Catalin Marinas > wrote: > > > Add mempool allocations for struct kmemleak_object and > > kmemleak_scan_area as slightly more resilient than kmem_cache_alloc() > > under memory pressure.

Re: [PATCH] myri10ge: remove unneeded variable

2019-07-31 Thread David Miller
From: Ding Xiang Date: Wed, 31 Jul 2019 16:53:46 +0800 > "error" is unneeded,just return 0 > > Signed-off-by: Ding Xiang Applied to net-next.

[PATCH net] net: dsa: mv88e6xxx: drop adjust_link to enabled phylink

2019-07-31 Thread Hubert Feurstein
We have to drop the adjust_link callback in order to finally migrate to phylink. Otherwise we get the following warning during startup: "mv88e6xxx 2188000.ethernet-1:10: Using legacy PHYLIB callbacks. Please migrate to PHYLINK!" The warning is generated in the function

[RFC v2 3/8] arm64: hibernate: switch to transtional page tables.

2019-07-31 Thread Pavel Tatashin
Transitional page tables provide the needed functionality to setup temporary page tables needed for hibernate resume. Signed-off-by: Pavel Tatashin --- arch/arm64/kernel/hibernate.c | 261 -- 1 file changed, 60 insertions(+), 201 deletions(-) diff --git

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