Re: [PATCH 06/13] keys: Add a notification facility [ver #4]

2019-06-10 Thread Jonathan Corbet
On Fri, 07 Jun 2019 15:18:19 +0100 David Howells wrote: > Add a key/keyring change notification facility whereby notifications about > changes in key and keyring content and attributes can be received. > > Firstly, an event queue needs to be created: > > fd = open("/dev/event_queue", O_RD

Re: [PATCH v2 1/3] KVM: LAPIC: Make lapic timer unpinned when timer is injected by posted-interrupt

2019-06-10 Thread Radim Krčmář
2019-06-06 13:31+0800, Wanpeng Li: > From: Wanpeng Li > > Make lapic timer unpinned when timer is injected by posted-interrupt, > the emulated timer can be offload to the housekeeping cpus. > > The host admin should fine tuned, e.g. dedicated instances scenario > w/ nohz_full cover the pCPUs wh

[PATCH V4 6/6] i2c: tegra: remove BUG, BUG_ON

2019-06-10 Thread Bitan Biswas
Remove redundant BUG_ON calls or replace with WARN_ON_ONCE as needed. Remove BUG() and make Rx and Tx case handling similar. Signed-off-by: Bitan Biswas --- drivers/i2c/busses/i2c-tegra.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra

[PATCH V4 4/6] i2c: tegra: add spinlock definition comment

2019-06-10 Thread Bitan Biswas
Fix checkpatch.pl CHECK as follows: CHECK: spinlock_t definition without comment + spinlock_t xfer_lock; Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers

[PATCH V4 1/6] i2c: tegra: clean up macros

2019-06-10 Thread Bitan Biswas
Clean up macros by: 1) removing unused macros 2) replace constants by macro BIT() Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/d

[PATCH V4 2/6] i2c: tegra: remove unnecessary variable init

2019-06-10 Thread Bitan Biswas
Remove variable initializations in functions that are followed by assignments before use Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers

[PATCH V4 3/6] i2c: tegra: fix alignment and spacing violations

2019-06-10 Thread Bitan Biswas
Fix checkpatch.pl alignment and blank line check(s) in i2c-tegra.c Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c

[PATCH V4 5/6] i2c: tegra: fix msleep warning

2019-06-10 Thread Bitan Biswas
Fix checkpatch.pl WARNING for delay of approximately 1msec in flush i2c FIFO polling loop by using usleep_range(1000, 2000): WARNING: msleep < 20ms can sleep for up to 20ms; see ... Documentation/timers/timers-howto.txt + msleep(1); Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Os

Re: [PATCH v3 02/11] s390x/mm: Fail when an altmap is used for arch_add_memory()

2019-06-10 Thread Oscar Salvador
On Mon, May 27, 2019 at 01:11:43PM +0200, David Hildenbrand wrote: > ZONE_DEVICE is not yet supported, fail if an altmap is passed, so we > don't forget arch_add_memory()/arch_remove_memory() when unlocking > support. > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Andrew Morton > Cc: Mic

[PATCH 0/1] gpio: of: prepare for switching stmmac to GPIO descriptors

2019-06-10 Thread Martin Blumenstingl
This is a preparation patch which is needed before we can switch stmmac to GPIO descriptors. stmmac has a custom "snps,reset-active-low" property because it has ignored the GPIO flags including the polarity. Add the parsing to gpiolib-of so we can port stmmac over to GPIO descriptors. This patch

Re: [PATCH v2] tty: serial: msm_serial: avoid system lockup condition

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 09:55:54AM +0200, Jorge Ramirez-Ortiz wrote: > The function msm_wait_for_xmitr can be taken with interrupts > disabled. In order to avoid a potential system lockup - demonstrated > under stress testing conditions on SoC QCS404/5 - make sure we wait > for a bounded amount of

[PATCH 1/1] gpio: of: parse stmmac PHY reset line specific active-low property

2019-06-10 Thread Martin Blumenstingl
The stmmac driver currently ignores the GPIO flags which are passed via devicetree because it operates with legacy GPIO numbers instead of GPIO descriptors. stmmac assumes that the GPIO is "active HIGH" by default. This can be overwritten by setting "snps,reset-active-low" to make the reset line "a

Re: [PATCH v3 11/11] mm/memory_hotplug: Remove "zone" parameter from sparse_remove_one_section

2019-06-10 Thread Oscar Salvador
On Mon, May 27, 2019 at 01:11:52PM +0200, David Hildenbrand wrote: > The parameter is unused, so let's drop it. Memory removal paths should > never care about zones. This is the job of memory offlining and will > require more refactorings. > > Reviewed-by: Dan Williams > Signed-off-by: David Hild

Re: [PATCH 07/15] x86: Add int3_emulate_call() selftest

2019-06-10 Thread Andy Lutomirski
On Mon, Jun 10, 2019 at 9:53 AM Josh Poimboeuf wrote: > > On Wed, Jun 05, 2019 at 03:08:00PM +0200, Peter Zijlstra wrote: > > Given that the entry_*.S changes for this functionality are somewhat > > tricky, make sure the paths are tested every boot, instead of on the > > rare occasion when we trip

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-10 Thread Josh Poimboeuf
On Wed, Jun 05, 2019 at 03:08:01PM +0200, Peter Zijlstra wrote: > In preparation for static_call support, teach text_poke_bp() to > emulate instructions, including CALL. > > The current text_poke_bp() takes a @handler argument which is used as > a jump target when the temporary INT3 is hit by a di

Re: [PATCH 4/6] clk: qcom: Add ipq6018 Global Clock Controller support

2019-06-10 Thread Bjorn Andersson
On Mon 10 Jun 04:47 PDT 2019, Sricharan R wrote: > Hi Bjorn, > > On 6/8/2019 9:02 AM, Bjorn Andersson wrote: > > On Wed 05 Jun 10:15 PDT 2019, Sricharan R wrote: > > > >> This patch adds support for the global clock controller found on > >> the ipq6018 based devices. > >> > >> Signed-off-by: Sri

Re: [PATCH] serial: Fix an invalid comparing statement

2019-06-10 Thread Greg Kroah-Hartman
On Mon, May 27, 2019 at 02:01:27PM +0900, Sugaya Taichi wrote: > Drop the if-statement which refers to 8th bit field of u8 variable. > The bit field is no longer used. > > Fixes: ba44dc043004 ("serial: Add Milbeaut serial control") > Reported-by: Colin Ian King > Signed-off-by: Sugaya Taichi > -

Re: [PATCH v3 10/11] mm/memory_hotplug: Make unregister_memory_block_under_nodes() never fail

2019-06-10 Thread Oscar Salvador
On Mon, May 27, 2019 at 01:11:51PM +0200, David Hildenbrand wrote: > We really don't want anything during memory hotunplug to fail. > We always pass a valid memory block device, that check can go. Avoid > allocating memory and eventually failing. As we are always called under > lock, we can use a s

Re: [PATCH 1/2] Input: synaptics-rmi4 - clear irqs before set irqs

2019-06-10 Thread Aaron Ma
On 6/10/19 12:55 AM, Dmitry Torokhov wrote: > Hi Aaron, > > On Wed, Feb 20, 2019 at 05:41:59PM +0100, Aaron Ma wrote: >> rmi4 got spam data after S3 resume on some ThinkPads. >> Then TrackPoint lost when be detected by psmouse. >> Clear irqs status before set irqs will make TrackPoint back. > Co

Re: [PATCH 3/4] arm64: dts: meson: use the generic Ethernet PHY reset GPIO bindings

2019-06-10 Thread Robin Murphy
Hi Martin, On 10/06/2019 17:37, Martin Blumenstingl wrote: The snps,reset-gpio bindings are deprecated in favour of the generic "Ethernet PHY reset" bindings. Replace snps,reset-gpio from the ðmac node with reset-gpios in the ethernet-phy node. The old snps,reset-active-low property is now enco

Re: [PATCH 07/15] x86: Add int3_emulate_call() selftest

2019-06-10 Thread Josh Poimboeuf
On Wed, Jun 05, 2019 at 03:08:00PM +0200, Peter Zijlstra wrote: > Given that the entry_*.S changes for this functionality are somewhat > tricky, make sure the paths are tested every boot, instead of on the > rare occasion when we trip an INT3 while rewriting text. > > Requested-by: Andy Lutomirski

Re: [PATCH v2 2/3] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-10 Thread Radim Krčmář
2019-06-06 13:31+0800, Wanpeng Li: > From: Wanpeng Li > > Dedicated instances are currently disturbed by unnecessary jitter due > to the emulated lapic timers fire on the same pCPUs which vCPUs resident. > There is no hardware virtual timer on Intel for guest like ARM. Both > programming timer

Re: [PATCH v3 3/5] brcmfmac: sdio: Disable auto-tuning around commands expected to fail

2019-06-10 Thread Doug Anderson
Hi, On Mon, Jun 10, 2019 at 1:56 AM Hunter, Adrian wrote: > > > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > > @@ -16,6 +16,7 @@ > > #include > > #include > > #include > > +#include > > SDIO function drive

[PATCH v2 1/6] clocksource/drivers/tegra: Restore timer rate on Tegra210

2019-06-10 Thread Dmitry Osipenko
The clocksource rate is initialized only for the first per-CPU clocksource and then that rate shall be replicated for the rest of clocksource's because they are initialized manually in the code. Fixes: 3be2a85a0b61 ("Support per-CPU timers on all Tegra's") Signed-off-by: Dmitry Osipenko --- driv

[PATCH v2 0/6] Few more cleanups for tegra-timer

2019-06-10 Thread Dmitry Osipenko
Hello, This a followup to [0] that includes some more fixes and further prettifies the driver's code. [0] https://patchwork.ozlabs.org/project/linux-tegra/list/?series=111529 Changelog: v2: Fixed a bug that was introduced by [0] in a newly added patch: "Restore timer rate on Tegra210".

[PATCH v2 5/6] clocksource/drivers/tegra: Add verbose definition for 1MHz constant

2019-06-10 Thread Dmitry Osipenko
Convert all 1MHz literals to a verbose constant for better readability. Suggested-by: Daniel Lezcano Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/timer-tegra.c b/drivers

[PATCH v2 3/6] clocksource/drivers/tegra: Set and use timer's period

2019-06-10 Thread Dmitry Osipenko
The of_clk structure has a period field that is set up initially by timer_of_clk_init(), that period value need to be adjusted for a case of TIMER1-9 that are running at a fixed rate that doesn't match the clock's rate. Note that the period value is currently used only by some of the clocksource dr

[PATCH v2 4/6] clocksource/drivers/tegra: Drop unneeded typecasting in one place

2019-06-10 Thread Dmitry Osipenko
There is no need to cast void because kernel allows to do that without a warning message from a compiler. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-tegra.c b/drivers/clocksou

[PATCH v2 6/6] clocksource/drivers/tegra: Restore base address before cleanup

2019-06-10 Thread Dmitry Osipenko
We're adjusting the timer's base for each per-CPU timer to point to the actual start of the timer since device-tree defines a compound registers range that includes all of the timers. In this case the original base need to be restore before calling iounmap to unmap the proper address. Signed-off-b

[PATCH v2 2/6] clocksource/drivers/tegra: Remove duplicated use of per_cpu_ptr

2019-06-10 Thread Dmitry Osipenko
It was left unnoticed by accident, which means that the code could be cleaned up a tad more. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra.c | 42 ++- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/drivers/clocksource/timer-tegra.

Re: [PATCH 04/10] serial: stm32: add pm_runtime support

2019-06-10 Thread Greg Kroah-Hartman
On Tue, Jun 04, 2019 at 10:55:13AM +0200, Erwan Le Ray wrote: > Use pm_runtime for clock management. > > Signed-off-by: Bich Hemon > Signed-off-by: Erwan Le Ray Does not apply to my tree :(

Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-10 Thread Stephen Boyd
Quoting Sricharan R (2019-06-10 08:45:22) > On 6/8/2019 9:18 AM, Bjorn Andersson wrote: > > On Wed 05 Jun 10:16 PDT 2019, Sricharan R wrote: > >> diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi > >> b/arch/arm64/boot/dts/qcom/ipq6018.dtsi > >> new file mode 100644 > >> index 000..79cccdd >

[PATCH 0/2] arm64: dts: g12a/g12b: add the Ethernet PHY GPIO IRQs

2019-06-10 Thread Martin Blumenstingl
Avoid polling of the PHY status by passing the Ethernet PHY's GPIO interrupt line to the PHY node. I tested this successfully on my X96 Max, but I don't have an Odroid-N2 to test it there. The reset and interrupt GPIO part of the schematics seems to be identical for both boards (and probably other

[PATCH 1/2] arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY interrupt line

2019-06-10 Thread Martin Blumenstingl
The interrupt line of the RTL8211F PHY is routed to the GPIOZ_14 pad. Describe this in the device tree so the PHY framework doesn't have to poll the PHY status. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 4 1 file changed, 4 insertions(+)

[PATCH 2/2] arm64: dts: meson: g12a: x96-max: add the Ethernet PHY interrupt line

2019-06-10 Thread Martin Blumenstingl
X96 Max has the PHY reset and interrupt lines are identical to the Odroid-N2: - GPIOZ_14 is the interrupt on X96 Max - GPIOZ_15 is the reset line on X96 Max Add GPIOZ_14 as PHY interrupt line on the X96 Max so we don't have to poll for the PHY status. Suggested-by: Neil Armstrong Signed-off-by:

Re: [RFC PATCH v2 5/5] security/selinux: Add enclave_load() implementation

2019-06-10 Thread Sean Christopherson
On Fri, Jun 07, 2019 at 05:16:01PM -0400, Stephen Smalley wrote: > On 6/5/19 10:11 PM, Sean Christopherson wrote: > >The goal of selinux_enclave_load() is to provide a facsimile of the > >existing selinux_file_mprotect() and file_map_prot_check() policies, > >but tailored to the unique properties o

Re: [PATCH v3 01/11] mm/memory_hotplug: Simplify and fix check_hotplug_memory_range()

2019-06-10 Thread Oscar Salvador
On Mon, May 27, 2019 at 01:11:42PM +0200, David Hildenbrand wrote: > By converting start and size to page granularity, we actually ignore > unaligned parts within a page instead of properly bailing out with an > error. > > Cc: Andrew Morton > Cc: Oscar Salvador > Cc: Michal Hocko > Cc: David Hi

Re: [PATCH net-next] tcp: Make tcp_fastopen_alloc_ctx static

2019-06-10 Thread Jason Baron
On 6/10/19 11:19 AM, YueHaibing wrote: > Fix sparse warning: > > net/ipv4/tcp_fastopen.c:75:29: warning: > symbol 'tcp_fastopen_alloc_ctx' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- > net/ipv4/tcp_fastopen.c | 6 +++--- > 1 file change

Re: [RFC PATCH v2 3/5] x86/sgx: Enforce noexec filesystem restriction for enclaves

2019-06-10 Thread Andy Lutomirski
On Mon, Jun 10, 2019 at 9:00 AM Jarkko Sakkinen wrote: > > On Wed, Jun 05, 2019 at 07:11:43PM -0700, Sean Christopherson wrote: > > + goto out; > > + } > > + > > + /* > > + * Query VM_MAYEXEC as an indirect path_noexec() check (see > > do_mmap()), > > + * but with so

[PATCH 1/4] arm64: dts: meson: g12a: x96-max: fix the Ethernet PHY reset line

2019-06-10 Thread Martin Blumenstingl
The Odroid-N2 schematics show that the following pins are used for the reset and interrupt lines: - GPIOZ_14 is the PHY interrupt line - GPIOZ_15 is the PHY reset line The GPIOZ_14 and GPIOZ_15 pins are special. The datasheet describes that they are "3.3V input tolerant open drain (OD) output pins

[PATCH 4/4] arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY reset line

2019-06-10 Thread Martin Blumenstingl
The reset line of the RTL8211F PHY is routed to the GPIOZ_15 pad. Describe this in the device tree so the PHY framework can bring the PHY into a known state when initializing it. GPIOZ_15 doesn't support driving the output HIGH (to take the PHY out of reset, only output LOW to reset the PHY is supp

[PATCH 3/4] arm64: dts: meson: use the generic Ethernet PHY reset GPIO bindings

2019-06-10 Thread Martin Blumenstingl
The snps,reset-gpio bindings are deprecated in favour of the generic "Ethernet PHY reset" bindings. Replace snps,reset-gpio from the ðmac node with reset-gpios in the ethernet-phy node. The old snps,reset-active-low property is now encoded directly as GPIO flag inside the reset-gpios property. sn

[PATCH 2/4] ARM: dts: meson: switch to the generic Ethernet PHY reset bindings

2019-06-10 Thread Martin Blumenstingl
The snps,reset-gpio bindings are deprecated in favour of the generic "Ethernet PHY reset" bindings. Replace snps,reset-gpio from the ðmac node with reset-gpios in the ethernet-phy node. The old snps,reset-active-low property is now encoded directly as GPIO flag inside the reset-gpios property. sn

[PATCH 0/4] Ethernet PHY reset GPIO updates for Amlogic SoCs

2019-06-10 Thread Martin Blumenstingl
While trying to add the Ethernet PHY interrupt on the X96 Max I found that the current reset line definition is incorrect. Patch #1 fixes this. Since the fix requires moving from the deprecated "snps,reset-gpio" property to the generic Ethernet PHY reset bindings I decided to move all Amlogic boar

Re: [PATCH v7 22/27] binfmt_elf: Extract .note.gnu.property from an ELF file

2019-06-10 Thread Yu-cheng Yu
On Fri, 2019-06-07 at 19:01 +0100, Dave Martin wrote: > On Thu, Jun 06, 2019 at 01:06:41PM -0700, Yu-cheng Yu wrote: > > An ELF file's .note.gnu.property indicates features the executable file > > can support. For example, the property GNU_PROPERTY_X86_FEATURE_1_AND > > indicates the file supports

Re: [PATCH v12 1/5] can: m_can: Create a m_can platform framework

2019-06-10 Thread Dan Murphy
Bump On 6/6/19 8:16 AM, Dan Murphy wrote: Marc Bump On 5/31/19 6:51 AM, Dan Murphy wrote: Marc On 5/15/19 3:54 PM, Dan Murphy wrote: Marc On 5/9/19 11:11 AM, Dan Murphy wrote: Create a m_can platform framework that peripheral devices can register to and use common code and register sets.

[PATCH] mm: treewide: Clarify pgtable_page_{ctor,dtor}() naming

2019-06-10 Thread Mark Rutland
The naming of pgtable_page_{ctor,dtor}() seems to have confused a few people, and until recently arm64 used these erroneously/pointlessly for other levels of pagetable. To make it incredibly clear that these only apply to the PTE level, and to align with the naming of pgtable_pmd_page_{ctor,dtor}(

Re: [RFC PATCH 1/2] mmc: sdhci: Manually check card status after reset

2019-06-10 Thread Raul Rangel
On Mon, Jun 10, 2019 at 06:17:31PM +0200, Ulf Hansson wrote: > + Adrian > > On Fri, 7 Jun 2019 at 18:05, Raul Rangel wrote: > > > > On Tue, May 28, 2019 at 09:38:20AM +0200, Ulf Hansson wrote: > > > On Wed, 1 May 2019 at 19:55, Raul E Rangel wrote: > > > > First off, thanks for the review. > > >

Re: [RFE]: watchdog: atmel: atmel-sama5d4-wdt

2019-06-10 Thread Guenter Roeck
On Mon, Jun 10, 2019 at 03:51:52PM +, Ken Sloat wrote: > Hello Nicolas, > > I wanted to open a discussion proposing new functionality to allow disabling > of the watchdog timer upon entering > suspend in the SAMA5D2/4. > > Typical use case of a hardware watchdog timer in the kernel is a use

Re: [PATCH v5 4/5] dt-bindings: mtd: Add bindings for TI's AM654 HyperBus memory controller

2019-06-10 Thread Sergei Shtylyov
Hello! On 06/09/2019 01:32 PM, Vignesh Raghavendra wrote: > Add binding documentation for TI's HyperBus memory controller present on > AM654 SoC. > > Signed-off-by: Vignesh Raghavendra > --- > v5: > Update binding example to show MMIO mux > Fix reg property for flash slave. > > .../devicetree

Re: [RFC PATCH 1/5] signal: Teach sigsuspend to use set_user_sigmask

2019-06-10 Thread Oleg Nesterov
On 06/07, Eric W. Biederman wrote: > > +static int set_sigmask(sigset_t *kmask) > +{ > + set_restore_sigmask(); > + current->saved_sigmask = current->blocked; > + set_current_blocked(kmask); > + > + return 0; > +} I was going to do the same change except my version returns void ;)

Re: [PATCH net 1/2] net: mvpp2: prs: Fix parser range for VID filtering

2019-06-10 Thread David Miller
Please start providing proper header postings with each and every patch series, explaining at a high level what the patch series is doing, how it is doing it, and why it is doing it that way. Thanks.

Re: [RFC PATCH v2 4/5] LSM: x86/sgx: Introduce ->enclave_load() hook for Intel SGX

2019-06-10 Thread Sean Christopherson
On Fri, Jun 07, 2019 at 03:58:34PM -0400, Stephen Smalley wrote: > On 6/5/19 10:11 PM, Sean Christopherson wrote: > >enclave_load() is roughly analogous to the existing file_mprotect(). > > > >Due to the nature of SGX and its Enclave Page Cache (EPC), all enclave > >VMAs are backed by a single file

Re: [RFC PATCH 1/2] mmc: sdhci: Manually check card status after reset

2019-06-10 Thread Ulf Hansson
+ Adrian On Fri, 7 Jun 2019 at 18:05, Raul Rangel wrote: > > On Tue, May 28, 2019 at 09:38:20AM +0200, Ulf Hansson wrote: > > On Wed, 1 May 2019 at 19:55, Raul E Rangel wrote: > > First off, thanks for the review. > > > > > > > There is a race condition between resetting the SDHCI controller and

Re: [PATCH bpf v2] xdp: fix hang while unregistering device bound to xdp socket

2019-06-10 Thread Ilya Maximets
On 10.06.2019 11:05, Ilya Maximets wrote: > On 08.06.2019 2:31, Jakub Kicinski wrote: >> On Fri, 7 Jun 2019 20:31:43 +0300, Ilya Maximets wrote: >>> +static int xsk_notifier(struct notifier_block *this, >>> + unsigned long msg, void *ptr) >>> +{ >>> + struct sock *sk; >>> + s

[PATCH bpf v3] xdp: fix hang while unregistering device bound to xdp socket

2019-06-10 Thread Ilya Maximets
Device that bound to XDP socket will not have zero refcount until the userspace application will not close it. This leads to hang inside 'netdev_wait_allrefs()' if device unregistering requested: # ip link del p1 < hang on recvmsg on netlink socket > # ps -x | grep ip 5126 pts/0D+

Re: [RFC PATCH v2 2/5] x86/sgx: Require userspace to define enclave pages' protection bits

2019-06-10 Thread Sean Christopherson
On Mon, Jun 10, 2019 at 06:27:17PM +0300, Jarkko Sakkinen wrote: > On Wed, Jun 05, 2019 at 07:11:42PM -0700, Sean Christopherson wrote: > > [SNAP] > > Same general criticism as for the previous patch: try to say things as > they are without anything extra. > > > A third alternative would be to pu

Re: [PATCH][next] qtnfmac: Use struct_size() in kzalloc()

2019-06-10 Thread Sergey Matyukevich
> One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct ieee80211_regdomain { > ... > struct ieee80211_reg_rul

RE: [PATCH net-next 1/2] hinic: add rss support

2019-06-10 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Xue Chaojing > Sent: Monday, June 10, 2019 4:35 AM > To: da...@davemloft.net > Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; Luoshaokai > (luoshaokai) ; Wangxiaoyun (Cloud, Network Chip > Applicat

Re: [PATCH net-next 0/3] net: mvpp2: Add extra ethtool stats

2019-06-10 Thread David Miller
From: Maxime Chevallier Date: Mon, 10 Jun 2019 10:55:26 +0200 > This series adds support for more ethtool counters in PPv2 : > - Per port counters, including one indicating the classifier drops > - Per RXQ and per TXQ counters > > The first 2 patches perform some light rework and renaming, and

Re: [PATCH 4/7] arm64: dts: actions: Add uSD and eMMC support for Bubblegum96

2019-06-10 Thread Manivannan Sadhasivam
Hi Andreas, On Mon, Jun 10, 2019 at 04:08:26PM +0200, Andreas Färber wrote: > Hi Mani, > > Am 08.06.19 um 21:53 schrieb Manivannan Sadhasivam: > > Add uSD and eMMC support for Bubblegum96 board based on Actions Semi > > Owl SoC. > > What information does "based on Actions Semi Owl SoC" give us

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-10 Thread Larry Finger
On 6/10/19 3:18 AM, Christoph Hellwig wrote: On Sat, Jun 08, 2019 at 04:52:24PM -0500, Larry Finger wrote: On 6/7/19 12:29 PM, Christoph Hellwig wrote: I don't think we should work around this in the driver, we need to fix it in the core. I'm curious why my previous patch didn't work. Can you

Re: [PATCH 1/7] clk: actions: Fix factor clk struct member access

2019-06-10 Thread Manivannan Sadhasivam
Hi Andreas, On Mon, Jun 10, 2019 at 03:36:42PM +0200, Andreas Färber wrote: > Hi Mani, > > Am 08.06.19 um 21:53 schrieb Manivannan Sadhasivam: > > Since the helper "owl_factor_helper_round_rate" is shared between factor > > and composite clocks, using the factor clk specific helper function > >

Re: [PATCH] [v4.14.y] infiniband: fix race condition between infiniband mlx4, mlx5 driver and core dumping

2019-06-10 Thread Jason Gunthorpe
On Tue, Jun 11, 2019 at 02:22:17AM +0530, Ajay Kaher wrote: > This patch is the extension of following upstream commit to fix > the race condition between get_task_mm() and core dumping > for IB->mlx4 and IB->mlx5 drivers: > > commit 04f5866e41fb ("coredump: fix race condition between > mmget_not_

Re: [PATCH 2/7] dt-bindings: mmc: Add Actions Semi SD/MMC/SDIO controller binding

2019-06-10 Thread Manivannan Sadhasivam
Hi Andreas, On Mon, Jun 10, 2019 at 03:45:37PM +0200, Andreas Färber wrote: > Am 08.06.19 um 21:53 schrieb Manivannan Sadhasivam: > > Add devicetree binding for Actions Semi Owl SoC's SD/MMC/SDIO controller. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > .../devicetree/bindings/mmc/

Re: [RFC PATCH v2 4/5] LSM: x86/sgx: Introduce ->enclave_load() hook for Intel SGX

2019-06-10 Thread Jarkko Sakkinen
On Wed, Jun 05, 2019 at 07:11:44PM -0700, Sean Christopherson wrote: > enclave_load() is roughly analogous to the existing file_mprotect(). > > Due to the nature of SGX and its Enclave Page Cache (EPC), all enclave > VMAs are backed by a single file, i.e. /dev/sgx/enclave, that must be > MAP_SHARE

Re: [PATCH net-next 1/2] hinic: add rss support

2019-06-10 Thread David Miller
From: Xue Chaojing Date: Mon, 10 Jun 2019 03:34:54 + > This patch adds rss support for the HINIC driver. > > Signed-off-by: Xue Chaojing > --- > drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ > .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- > .../net/ethernet/huawei/hinic

Re: [PATCH 00/10] STM32 usart power improvements

2019-06-10 Thread Alexandre Torgue
Hi Erwan, On 6/4/19 10:55 AM, Erwan Le Ray wrote: This series delivers power improvements for stm32-usart driver. Bich Hemon (4): dt-bindings: serial: add optional pinctrl states serial: stm32: select pinctrl state in each suspend/resume function ARM: dts: stm32: Update pin states for

Re: [RFC PATCH v2 3/5] x86/sgx: Enforce noexec filesystem restriction for enclaves

2019-06-10 Thread Jarkko Sakkinen
On Wed, Jun 05, 2019 at 07:11:43PM -0700, Sean Christopherson wrote: > + goto out; > + } > + > + /* > + * Query VM_MAYEXEC as an indirect path_noexec() check (see do_mmap()), > + * but with some future proofing against other cases that may deny > + * execute permi

Re: [PATCH] regulator: wm831x: Convert to use GPIO descriptors

2019-06-10 Thread Charles Keepax
On Sun, Jun 09, 2019 at 11:00:25PM +0200, Linus Walleij wrote: > This converts the Wolfson Micro WM831x DCDC converter to use > a GPIO descriptor for the GPIO driving the DVS pin. > > There is just one (non-DT) machine in the kernel using this, and > that is the Wolfson Micro (now Cirrus) Cragganm

Re: [PATCH v5 5/6] staging: rtl8712: Renamed CamelCase wkFilterRxFF0 to wk_filter_rx_ff0

2019-06-10 Thread Greg KH
On Sun, Jun 09, 2019 at 06:01:44PM +0530, Deepak Mishra wrote: > This patch renames CamelCase variable wkFilterRxFF0 to wk_filter_rx_ff0 in > drv_types.h, rtl871x_xmit.c and xmit_linux.c > > This was reported by checkpatch.pl > > Signed-off-by: Deepak Mishra > --- > drivers/staging/rtl8712/drv_

Re: [PATCHv4 0/2] Document memory-to-memory video codec interfaces

2019-06-10 Thread Nicolas Dufresne
Le lundi 03 juin 2019 à 13:28 +0200, Hans Verkuil a écrit : > Since Thomasz was very busy with other things, I've taken over this > patch series. This v4 includes his draft changes and additional changes > from me. > > This series attempts to add the documentation of what was discussed > during Me

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-10 Thread Yu-cheng Yu
On Sat, 2019-06-08 at 22:52 +0200, Pavel Machek wrote: > Hi! > > > > I've no idea what the kernel should do; since you failed to answer the > > > question what happens when you point this to garbage. > > > > > > Does it then fault or what? > > > > Yeah, I think you'll fault with a rather mysteri

Re: ARC Assembler: bundle_align_mode directive support

2019-06-10 Thread Vineet Gupta
On 6/8/19 11:21 AM, Eugeniy Paltsev wrote: > Hi Cupertino, > > I tried to use ".bundle_align_mode" directive in ARC assembly, but I got > following error: > ->8-- > Assembler messages: > Error: unknown pseudo-op: `.bundle_align_mode' > ->8--

Re: [RFC PATCH v2 1/5] mm: Introduce vm_ops->may_mprotect()

2019-06-10 Thread Sean Christopherson
On Mon, Jun 10, 2019 at 06:06:00PM +0300, Jarkko Sakkinen wrote: > On Wed, Jun 05, 2019 at 07:11:41PM -0700, Sean Christopherson wrote: > > SGX will use the may_mprotect() hook to prevent userspace from > > circumventing various security checks, e.g. Linux Security Modules. > > Naming it may_mprote

Re: [PATCH v4 5/9] iommu/vt-d: Don't switch off swiotlb if use direct dma

2019-06-10 Thread Konrad Rzeszutek Wilk
On Mon, Jun 03, 2019 at 09:16:16AM +0800, Lu Baolu wrote: > The direct dma implementation depends on swiotlb. Hence, don't > switch of swiotlb since direct dma interfaces are used in this s/of/off/ > driver. But I think you really want to leave the code as is but change the #ifdef to check for I

Re: [PATCH 00/18] ARM/ARM64: Support hierarchical CPU arrangement for PSCI

2019-06-10 Thread Ulf Hansson
On Mon, 10 Jun 2019 at 12:32, Sudeep Holla wrote: > > On Fri, Jun 07, 2019 at 12:34:07PM -0700, Bjorn Andersson wrote: > > On Fri 07 Jun 08:42 PDT 2019, Sudeep Holla wrote: > > > > > On Tue, May 14, 2019 at 10:58:04AM +0200, Ulf Hansson wrote: > > > > On Tue, 14 May 2019 at 10:08, Rafael J. Wysock

Re: [PATCH] s390: mark __ctl_set_bit and __ctl_clear_bit as __always_inline

2019-06-10 Thread Heiko Carstens
On Sun, Jun 09, 2019 at 01:35:44PM -0700, Guenter Roeck wrote: > s390:tinyconfig fails to build with gcc 8.3.0. ... > Marking __ctl_set_bit and __ctl_clear_bit as __always_inline fixes the > problem. > > Fixes: 9012d011660e ("compiler: allow all arches to enable > CONFIG_OPTIMIZE_INLINING") > Sig

Re: [RFC next v1 0/5] stmmac: honor the GPIO flags for the PHY reset GPIO

2019-06-10 Thread Martin Blumenstingl
Hi Andrew, On Mon, Jun 10, 2019 at 3:25 PM Andrew Lunn wrote: > > > if anyone else (just like me) doesn't know about it, there are generic > > bindings defined here: [0] > > > > I just tested this on my X96 Max by defining the following properties > > inside the PHY node: > > reset-delay-us = <

Re: [PATCH v2] staging: kpc2000: kpc_i2c: remove the macros inb_p and outb_p

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 03:48:24PM +0800, Hao Xu wrote: > remove inb_p and outb_p to call readq/writeq directly. > > Signed-off-by: Hao Xu > --- > Changes in v2: > - remove the macros inb_p/outb_p and use readq/writeq directly, per > https://lkml.kernel.org/lkml/20190608134505.ga...@arch-01.home

[RFE]: watchdog: atmel: atmel-sama5d4-wdt

2019-06-10 Thread Ken Sloat
Hello Nicolas, I wanted to open a discussion proposing new functionality to allow disabling of the watchdog timer upon entering suspend in the SAMA5D2/4. Typical use case of a hardware watchdog timer in the kernel is a userspace application opens the watchdog timer and periodically "kicks" it.

Re: [RFC next v1 0/5] stmmac: honor the GPIO flags for the PHY reset GPIO

2019-06-10 Thread Martin Blumenstingl
On Mon, Jun 10, 2019 at 3:51 PM Maxime Ripard wrote: > > Hi Martin, > > On Mon, Jun 10, 2019 at 02:31:17PM +0200, Martin Blumenstingl wrote: > > On Mon, Jun 10, 2019 at 1:47 PM Maxime Ripard > > wrote: > > > > > > Hi Andrew, > > > > > > On Sun, Jun 09, 2019 at 10:45:10PM +0200, Andrew Lunn wrote

Re: [PATCH] ARM: debug: stm32: add UART early console configuration

2019-06-10 Thread Erwan LE RAY
Hi Olof, Arnd and Kevin, Gentle reminder on my feedback request. Best regards, Erwan.

Re: [PATCH 16/16] Staging: wlan-ng: cfg80211: fixed alignment issue with open parenthesis line ending with (

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 04:08:25PM +0530, Merwin Trever Ferrao wrote: > From: Merwin Trever Ferrao > > Fixed a coding style issue. > > Signed-off-by: Merwin Trever Ferrao > --- > drivers/staging/wlan-ng/cfg80211.c | 32 ++ > 1 file changed, 15 insertions(+), 17 dele

Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-10 Thread Sricharan R
Hi Bjorn, On 6/8/2019 9:18 AM, Bjorn Andersson wrote: > On Wed 05 Jun 10:16 PDT 2019, Sricharan R wrote: > >> Add initial device tree support for the Qualcomm IPQ6018 SoC and >> CP01 evaluation board. >> >> Signed-off-by: Sricharan R >> Signed-off-by: Abhishek Sahu > > Please fix the order of

Re: [PATCH] arm64: dts: meson: g12a: sort sdio nodes correctly

2019-06-10 Thread Martin Blumenstingl
Hi Jerome, On Mon, Jun 10, 2019 at 2:49 PM Jerome Brunet wrote: > > Fix sdio node order in the soc device tree good catch, thank you for fixing this! > Fixes: a1737347250e ("arm64: dts: meson: g12a: add SDIO controller") > Signed-off-by: Jerome Brunet Reviewed-by: Martin Blumenstingl [...] >

Re: [PATCH] locking/lockdep: Fix lock IRQ usage initialization bug

2019-06-10 Thread Qian Cai
On Mon, 2019-06-10 at 13:52 +0800, Yuyang Du wrote: > The commit: > >   091806515124b20 ("locking/lockdep: Consolidate lock usage bit > initialization") > > misses marking LOCK_USED flag at IRQ usage initialization when > CONFIG_TRACE_IRQFLAGS > or CONFIG_PROVE_LOCKING is not defined. Fix it. >

Re: [RFC V3] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-10 Thread Leonardo Bras
On Mon, 2019-06-10 at 08:09 +0530, Anshuman Khandual wrote: > > > +/* > > > + * To be potentially processing a kprobe fault and to be allowed > > > + * to call kprobe_running(), we have to be non-preemptible. > > > + */ > > > +if (kprobes_built_in() && !preemptible() && !user_mo

Re: [RFC PATCH v2 2/5] x86/sgx: Require userspace to define enclave pages' protection bits

2019-06-10 Thread Jarkko Sakkinen
On Wed, Jun 05, 2019 at 07:11:42PM -0700, Sean Christopherson wrote: > [SNAP] Same general criticism as for the previous patch: try to say things as they are without anything extra. > A third alternative would be to pull the protection bits from the page's > SECINFO, i.e. make decisions based on

Re: Linux 4.19 and GCC 9

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 12:14:07PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jun 10, 2019 at 12:21:51AM -0700, Ivan Babrou escreveu: > > Looks like 4.19.49 received some patches for GCC 9+, but unfortunately > > perf still doesn't want to compile: > > > > [07:15:32]In file included from /us

[PATCH] arm64: dts: ls1028a: add crypto node

2019-06-10 Thread Horia Geantă
LS1028A has a SEC v5.0 compatible security engine. Signed-off-by: Horia Geantă --- Tested with "arm-smmu.disable_bypass=0" kernel boot parameter, since ICID (Isolation Context ID, out of which ARM SMMU stream ID is derived) programming and DT fix-up support hasn't been added yet in U-boot. ...

Re: [PATCH 4/6] clk: qcom: Add ipq6018 Global Clock Controller support

2019-06-10 Thread Stephen Boyd
Quoting Sricharan R (2019-06-05 10:28:56) > diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig > index e1ff83c..e5fb091 100644 > --- a/drivers/clk/qcom/Kconfig > +++ b/drivers/clk/qcom/Kconfig > @@ -120,6 +120,15 @@ config IPQ_GCC_8074 > i2c, USB, SD/eMMC, etc. Select this f

[PATCH] clk: at91: generated: Truncate divisor to GENERATED_MAX_DIV + 1

2019-06-10 Thread Codrin.Ciubotariu
From: Codrin Ciubotariu In clk_generated_determine_rate(), if the divisor is greater than GENERATED_MAX_DIV + 1, then the wrong best_rate will be returned. If clk_generated_set_rate() will be called later with this wrong rate, it will return -EINVAL, so the generated clock won't change its value.

[PATCH net-next] tcp: Make tcp_fastopen_alloc_ctx static

2019-06-10 Thread YueHaibing
Fix sparse warning: net/ipv4/tcp_fastopen.c:75:29: warning: symbol 'tcp_fastopen_alloc_ctx' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- net/ipv4/tcp_fastopen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/ipv4/t

Re: [PATCH RESEND 1/2] tools/perf: Add arch neutral function to choose event for perf kvm record

2019-06-10 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 10, 2019 at 12:15:17PM +0530, Anju T Sudhakar escreveu: > 'perf kvm record' uses 'cycles'(if the user did not specify any event) as > the default event to profile the guest. > This will not provide any proper samples from the guest incase of > powerpc architecture, since in powerpc the

Re: Linux 4.19 and GCC 9

2019-06-10 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 10, 2019 at 12:21:51AM -0700, Ivan Babrou escreveu: > Looks like 4.19.49 received some patches for GCC 9+, but unfortunately > perf still doesn't want to compile: > > [07:15:32]In file included from /usr/include/string.h:635, > [07:15:32] from util/debug.h:7, > [07:15:32] from builtin-

RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-10 Thread Stephen Boyd
Quoting Anson Huang (2019-06-08 02:58:18) > Hi, Stephen > > > -Original Message- > > From: Stephen Boyd > > Sent: Saturday, June 8, 2019 2:01 AM > > To: bjorn.anders...@linaro.org; catalin.mari...@arm.com; > > devicet...@vger.kernel.org; dingu...@kernel.org; > > enric.balle...@collabora.c

Re: [PATCH 1/2] serial: xilinx_uartps: Fix warnings in the driver

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 05:06:57PM +0200, Michal Simek wrote: > On 10. 06. 19 16:44, Greg KH wrote: > > On Mon, Jun 10, 2019 at 10:44:55AM +0200, Michal Simek wrote: > >> From: Nava kishore Manne > >> > >> This patch fixes the below warning > >> > >> -->Symbolic permissions 'S_IRUGO' are n

Re: BUG: Dentry still in use [unmount of tmpfs tmpfs]

2019-06-10 Thread Mark Rutland
On Sun, Jun 09, 2019 at 12:42:06AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:79c3ba32 Merge tag 'drm-fixes-2019-06-07-1' of git://anong.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16eacf36a0 > kernel

Re: [PATCH 1/2] serial: xilinx_uartps: Fix warnings in the driver

2019-06-10 Thread Michal Simek
On 10. 06. 19 16:44, Greg KH wrote: > On Mon, Jun 10, 2019 at 10:44:55AM +0200, Michal Simek wrote: >> From: Nava kishore Manne >> >> This patch fixes the below warning >> >> -->Symbolic permissions 'S_IRUGO' are not preferred. >>Consider using octal permissions '0444'. >>

<    1   2   3   4   5   6   7   8   9   >