[PATCH 7/8] perf/x86/rapl: Get attributes from new probe framework

2019-05-31 Thread Jiri Olsa
We no longer need model specific attribute arrays, because we get all this detected in rapl_events_attrs. Signed-off-by: Jiri Olsa --- arch/x86/events/intel/rapl.c | 89 1 file changed, 89 deletions(-) diff --git a/arch/x86/events/intel/rapl.c

[PATCH 1/8] perf/x86: Add msr probe interface

2019-05-31 Thread Jiri Olsa
Adding perf_msr_probe function to provide interface for checking up on MSR register and set the related attribute group visibility. User defines following struct for each MSR register: struct perf_msr { u64 msr; struct attribute_group *grp; bool

[PATCH 6/8] perf/x86/rapl: Get msr values from new probe framework

2019-05-31 Thread Jiri Olsa
There's no need to have special code for getting the bit and msr value for given event. We can now easily get it from rapl_msrs array. Also getting rid of RAPL_IDX_*, which is no longer needed and replacing INTEL_RAPL* with PERF_RAPL* enums. Signed-off-by: Jiri Olsa ---

[PATCHv2 0/8] perf/x86: Rework msr probe interface

2019-05-31 Thread Jiri Olsa
hi, following up on [1], [2] and [3], this patchset adds update attribute groups to pmu, factors out the MSR probe code and use it in msr,cstate* and rapl PMUs. The functionality stays the same with one exception: for msr PMU: the event is not exported if the rdmsr return zero on event's msr,

[PATCH 5/8] perf/x86/rapl: Get rapl_cntr_mask from new probe framework

2019-05-31 Thread Jiri Olsa
We get rapl_cntr_mask from perf_msr_probe call, as a replacement for current intel_rapl_init_fun::cntr_mask value for each model. Signed-off-by: Jiri Olsa --- arch/x86/events/intel/rapl.c | 38 ++-- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git

[PATCH 4/8] perf/x86/rapl: Use new msr detection interface

2019-05-31 Thread Jiri Olsa
Using perf_msr_probe function to probe for rapl msrs. Adding new rapl_model_match device table, that gathers events info for given model, following the msr and cstate module design. It will replace the current rapl_cpu_match device table and detection code in following patches. Signed-off-by:

[PATCH] ext4: remove unnecessary gotos in ext4_xattr_set_entry

2019-05-31 Thread Pavel Tikhomirov
In the "out" label we only iput old/new_ea_inode-s, in all these places these variables are always NULL so there is no point in goto to "out". Signed-off-by: Pavel Tikhomirov --- fs/ext4/xattr.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/ext4/xattr.c

[PATCH 8/8] perf/x86/rapl: Get quirk state from new probe framework

2019-05-31 Thread Jiri Olsa
Getting the apply_quirk bool from new rapl_model_match array. And because apply_quirk was the last remaining piece of data in rapl_cpu_match, replacing it with rapl_model_match as device table. The switch to new perf_msr_probe detection API is done. Signed-off-by: Jiri Olsa ---

Re: [PATCH v4] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume

2019-05-31 Thread Jiri Kosina
On Fri, 31 May 2019, Josh Poimboeuf wrote: > Something like this (not yet tested)? Maybe we could also remove the > resume_play_dead() hack? I tried to test this, but the resumed kernel doesn't seem to be healthy for reason I don't understand yet. Symptoms I've seen so far -- 'dazed and

[PATCH 3/8] perf/x86/cstate: Use new probe function

2019-05-31 Thread Jiri Olsa
Using perf_msr_probe function to probe for cstate events. The functionality is the same, with one exception, that perf_msr_probe checks for rdmsr to return value != 0 for given MSR register. Using the new attribute groups and adding the events via pmu::attr_update. Signed-off-by: Jiri Olsa ---

[PATCH] phy: qcom-qusb2: fix missing assignment of ret when calling clk_prepare_enable

2019-05-31 Thread Colin King
From: Colin Ian King The error return from the call to clk_prepare_enable is not being assigned to variable ret even though ret is being used to check if the call failed. Fix this by adding in the missing assignment. Addresses-Coverity: ("Logically dead code") Fixes: 891a96f65ac3 ("phy:

Re: [PATCH] perf jvmti: Fix gcc string overflow warning

2019-05-31 Thread Arnaldo Carvalho de Melo
Em Fri, May 31, 2019 at 10:03:07AM +0200, Jiri Olsa escreveu: > We are getting fake gcc warning when we compile with gcc9 (9.1.1): > > CC jvmti/libjvmti.o >In file included from /usr/include/string.h:494, > from jvmti/libjvmti.c:5: >In function ‘strncpy’, >

Re: [PATCH v6 0/6] Allwinner H6 Mali GPU support

2019-05-31 Thread Tomeu Vizoso
On Wed, 29 May 2019 at 19:38, Robin Murphy wrote: > > On 29/05/2019 16:09, Tomeu Vizoso wrote: > > On Tue, 21 May 2019 at 18:11, Clément Péron wrote: > >> > > [snip] > >> [ 345.204813] panfrost 180.gpu: mmu irq status=1 > >> [ 345.209617] panfrost 180.gpu: Unhandled Page fault in AS0

Re: [net-next,v4 0/2] Enable SFP on ACPI based systems

2019-05-31 Thread Andrew Lunn
On Fri, May 31, 2019 at 08:48:42AM +0200, Wolfram Sang wrote: > > > > Are you happy for the i2c patch to be merged via net-next? > > > > Yes, that's fine my me. > > > > Wolfram do you have any objections? > > That's fine with me, I'd like an immutable branch, though. There are > likely other

[PATCH net-next v5 5/5] net: stmmac: add EHL SGMII 1Gbps PCI info and PCI ID

2019-05-31 Thread Voon Weifeng
Added EHL SGMII 1Gbps PCI ID. Different MII and speed will have different PCI ID. Signed-off-by: Voon Weifeng --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 111 +++ 1 file changed, 111 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

[PATCH net-next v5 3/5] net: stmmac: add xpcs function hooks into main driver and ethtool

2019-05-31 Thread Voon Weifeng
From: Ong Boon Leong With xPCS functions now ready, we add them into the main driver and ethtool logics. To differentiate from EQoS MAC PCS and DWC Ethernet xPCS, we introduce 'has_xpcs' in platform data as a mean to indicate whether GBE controller includes xPCS or not. To support

[PATCH net-next v5 4/5] net: stmmac: add xPCS functions for device with DWMACv5.1

2019-05-31 Thread Voon Weifeng
From: Ong Boon Leong We introduce support for driver that has v5.10 IP and is also using xPCS as MMD. This can be easily enabled for other product that integrates xPCS that is not using v5.00 IP. Reviewed-by: Chuah Kim Tatt Reviewed-by: Voon Weifeng Reviewed-by: Kweh Hock Leong Reviewed-by:

[PATCH net-next v5 0/5] net: stmmac: enable EHL SGMI

2019-05-31 Thread Voon Weifeng
This patch-set is to enable Ethernet controller (DW Ethernet QoS and DW Ethernet PCS) with SGMII interface in Elkhart Lake. The DW Ethernet PCS is the Physical Coding Sublayer that is between Ethernet MAC and PHY and uses MDIO Clause-45 as Communication. Kweh Hock Leong (1): net: stmmac: enable

[PATCH net-next v5 1/5] net: stmmac: enable clause 45 mdio support

2019-05-31 Thread Voon Weifeng
From: Kweh Hock Leong DWMAC4 is capable to support clause 45 mdio communication. This patch enable the feature on stmmac_mdio_write() and stmmac_mdio_read() by following phy_write_mmd() and phy_read_mmd() mdiobus read write implementation format. Reviewed-by: Li, Yifan Signed-off-by: Kweh Hock

[PATCH net-next v5 2/5] net: stmmac: introducing support for DWC xPCS logics

2019-05-31 Thread Voon Weifeng
From: Ong Boon Leong xPCS is DWC Ethernet Physical Coding Sublayer that may be integrated into a GbE controller that uses DWC EQoS MAC controller. An example of HW configuration is shown below:- <-GBE Controller-->|<--External PHY chip--> +--+ ++

Re: [PATCH] ptrace: restore smp_rmb() in __ptrace_may_access()

2019-05-31 Thread Jann Horn
On Thu, May 30, 2019 at 2:35 PM Oleg Nesterov wrote: > On 05/29, Jann Horn wrote: > > --- a/kernel/cred.c > > +++ b/kernel/cred.c > > @@ -450,6 +450,15 @@ int commit_creds(struct cred *new) > > if (task->mm) > > set_dumpable(task->mm, suid_dumpable); > >

Re: [patch 2/3] timers: do not raise softirq unconditionally (spinlockless version)

2019-05-31 Thread Anna-Maria Gleixner
On Thu, 30 May 2019, Marcelo Tosatti wrote: > On Wed, May 29, 2019 at 04:53:26PM +0200, Anna-Maria Gleixner wrote: > > On Mon, 15 Apr 2019, Marcelo Tosatti wrote: > > > > > --- linux-rt-devel.orig/kernel/time/timer.c 2019-04-15 > > > 14:21:02.788704354 -0300 > > > +++

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

2019-05-31 Thread Dan Murphy
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. The peripheral devices may provide read/write and configuration support of the IP. Acked-by:

Re: [PATCH] staging: kpc2000: replace bogus variable name in core.c

2019-05-31 Thread Dan Carpenter
On Wed, May 29, 2019 at 09:42:22PM +0200, Simon Sandström wrote: > "struct kp2000_regs temp" has nothing to do with temperatures, so > replace it with the more proper name "regs". > > Signed-off-by: Simon Sandström > --- Reviewed-by: Dan Carpenter regards, dan carpenter

Re: [RFC PATCH v2 04/12] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-05-31 Thread Juergen Gross
On 31/05/2019 08:36, Nadav Amit wrote: > To improve TLB shootdown performance, flush the remote and local TLBs > concurrently. Introduce flush_tlb_multi() that does so. The current > flush_tlb_others() interface is kept, since paravirtual interfaces need > to be adapted first before it can be

Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-31 Thread Roman Penyaev
On 2019-05-31 12:45, Renzo Davoli wrote: HI Roman, On Fri, May 31, 2019 at 11:34:08AM +0200, Roman Penyaev wrote: On 2019-05-27 15:36, Renzo Davoli wrote: > Unfortunately this approach cannot be applied to > poll/select/ppoll/pselect/epoll. If you have to override other systemcalls, what is

Re: single copy atomicity for double load/stores on 32-bit systems

2019-05-31 Thread Paul E. McKenney
On Fri, May 31, 2019 at 09:41:17AM +, David Laight wrote: > From: Vineet Gupta > > Sent: 30 May 2019 19:23 > ... > > While it seems reasonable form hardware pov to not implement such atomicity > > by > > default it seems there's an additional burden on application writers. They > > could > >

Re: [RFC PATCH 4/5] media: ov6650: Fix frame scaling not reset on crop

2019-05-31 Thread Sakari Ailus
Hi Janusz, On Sun, May 26, 2019 at 10:47:57PM +0200, Janusz Krzysztofik wrote: > According to V4L2 subdevice interface specification, frame scaling > factors should be reset to default values on modification of input frame > format. Assuming that requirement also applies in case of crop >

Re: [PATCH 2/3] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-05-31 Thread Fabio Estevam
On Thu, May 30, 2019 at 6:45 AM wrote: > + gpio1: gpio@3020 { > + compatible = "fsl,imx8mn-gpio", > "fsl,imx35-gpio"; > + reg = <0x3020 0x1>; > + interrupts = , > +

Alerta de correo

2019-05-31 Thread Administración
Estimado usuario de correo electrónico, Este mensaje es de nuestro centro de mensajes de administración para todos los usuarios de nuestra cuenta de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web. Su cuenta de correo electrónico se actualizará a una

Re: [PATCH] mmc: sdhci-pci: remove redundant check of slots == 0

2019-05-31 Thread Adrian Hunter
On 31/05/19 2:32 PM, Colin King wrote: > From: Colin Ian King > > The calculation of slots results in a value in the range 1..8 > and so slots can never be zero. The check for slots == 0 is > always going to be false, hence it is redundant and can be > removed. > > Addresses-Coverity:

[PATCH] mmc: sdhci-pci: remove redundant check of slots == 0

2019-05-31 Thread Colin King
From: Colin Ian King The calculation of slots results in a value in the range 1..8 and so slots can never be zero. The check for slots == 0 is always going to be false, hence it is redundant and can be removed. Addresses-Coverity: ("Logically dead code") Signed-off-by: Colin Ian King ---

Re: Userspace woes with 5.1.5 due to TIPC

2019-05-31 Thread Ying Xue
On 5/31/19 7:02 PM, Jon Maloy wrote: > This was the very reason the broken patch was introduced. AFAIK there is no > problem after the corrected version of that patch was applied. I have prepared for our patches on net-next tree. But when I checked my patches on net tree, it's found that the

Re: [PATCH v3 06/13] epoll: introduce helpers for adding/removing events to uring

2019-05-31 Thread Roman Penyaev
On 2019-05-31 11:55, Peter Zijlstra wrote: On Thu, May 16, 2019 at 10:58:03AM +0200, Roman Penyaev wrote: +#define atomic_set_unless_zero(ptr, flags) \ +({ \ + typeof(ptr) _ptr = (ptr);

Re: [PATCH v3 07/13] epoll: call ep_add_event_to_uring() from ep_poll_callback()

2019-05-31 Thread Roman Penyaev
On 2019-05-31 11:56, Peter Zijlstra wrote: On Thu, May 16, 2019 at 10:58:04AM +0200, Roman Penyaev wrote: Each ep_poll_callback() is called when fd calls wakeup() on epfd. So account new event in user ring. The tricky part here is EPOLLONESHOT. Since we are lockless we have to be deal with

Alerta de correo

2019-05-31 Thread Administración
Estimado usuario de correo electrónico, Este mensaje es de nuestro centro de mensajes de administración para todos los usuarios de nuestra cuenta de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web. Su cuenta de correo electrónico se actualizará a una

Alerta de correo

2019-05-31 Thread Administración
Estimado usuario de correo electrónico, Este mensaje es de nuestro centro de mensajes de administración para todos los usuarios de nuestra cuenta de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web. Su cuenta de correo electrónico se actualizará a una

RE: [PATCH v2 net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-31 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Yunsheng Lin > Sent: Friday, May 31, 2019 10:01 AM > To: da...@davemloft.net > Cc: hkallwe...@gmail.com; f.faine...@gmail.com; > step...@networkplumber.org; net...@vger.kernel.org; linux- >

Re: [RFC PATCH 00/11] mm / virtio: Provide support for paravirtual waste page treatment

2019-05-31 Thread Nitesh Narayan Lal
On 5/30/19 5:53 PM, Alexander Duyck wrote: > This series provides an asynchronous means of hinting to a hypervisor > that a guest page is no longer in use and can have the data associated > with it dropped. To do this I have implemented functionality that allows > for what I am referring to as

Re: [PATCH v3 06/13] epoll: introduce helpers for adding/removing events to uring

2019-05-31 Thread Roman Penyaev
On 2019-05-31 11:56, Peter Zijlstra wrote: On Thu, May 16, 2019 at 10:58:03AM +0200, Roman Penyaev wrote: +static inline bool ep_add_event_to_uring(struct epitem *epi, __poll_t pollflags) +{ + struct eventpoll *ep = epi->ep; + struct epoll_uitem *uitem; + bool added = false;

Re: [RFC PATCH v3 10/16] sched: Core-wide rq->lock

2019-05-31 Thread Peter Zijlstra
On Wed, May 29, 2019 at 08:36:46PM +, Vineeth Remanan Pillai wrote: > + * The static-key + stop-machine variable are needed such that: > + * > + * spin_lock(rq_lockp(rq)); > + * ... > + * spin_unlock(rq_lockp(rq)); > + * > + * ends up locking and unlocking the _same_ lock, and all CPUs

[GIT PULL] s390 updates for 5.2-rc3

2019-05-31 Thread Heiko Carstens
Hello Linus, we have to say farewell to Martin Schwidefsky. This is also my first pull request with a signed tag. My key id is 1B296EC2. Corresponding fingerprint: 08C3 5F58 4C37 48B9 E688 B919 220E C379 1B29 6EC2 Please also note that Vasily Gorbik and Christian Borntraeger join in

[PATCH v1 2/2] dt-binding: edac: add NPCM ECC documentation

2019-05-31 Thread George Hung
Add device tree documentation for Nuvoton BMC ECC Signed-off-by: George Hung --- .../bindings/edac/npcm7xx-sdram-edac.txt| 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/npcm7xx-sdram-edac.txt diff --git

[PATCH v1 1/2] edac: npcm: Add Nuvoton NPCM7xx EDAC driver

2019-05-31 Thread George Hung
Add support for the Nuvoton NPCM7xx SoC EDAC driver NPCM7xx ECC datasheet from nuvoton.israel-Poleg: "Cadence DDR Controller User’s Manual For DDR3 & DDR4 Memories" Tested: Forcing an ECC error event Write a value to the xor_check_bits parameter that will trigger an ECC event once that word is

Re: [PATCH] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-05-31 Thread Pingfan Liu
On Fri, May 31, 2019 at 7:21 AM John Hubbard wrote: > > On 5/30/19 2:47 PM, Ira Weiny wrote: > > On Thu, May 30, 2019 at 06:54:04AM +0800, Pingfan Liu wrote: > [...] > >> +for (j = i; j < nr; j++) > >> +put_page(pages[j]); > > > >

RE: Userspace woes with 5.1.5 due to TIPC

2019-05-31 Thread Jon Maloy
> -Original Message- > From: Ying Xue > Sent: 30-May-19 20:41 > To: Mihai Moldovan ; Jon Maloy > ; linux-kernel@vger.kernel.org > Subject: Re: Userspace woes with 5.1.5 due to TIPC > > On 5/31/19 4:47 AM, Mihai Moldovan wrote: > > * On 5/30/19 9:51 PM, Jon Maloy wrote: > >> Make sure

Re: [RFC PATCH v2 11/12] x86/mm/tlb: Use async and inline messages for flushing

2019-05-31 Thread Peter Zijlstra
On Thu, May 30, 2019 at 11:36:44PM -0700, Nadav Amit wrote: > When we flush userspace mappings, we can defer the TLB flushes, as long > the following conditions are met: > > 1. No tables are freed, since otherwise speculative page walks might >cause machine-checks. > > 2. No one would access

[PATCH][next] drivers: thermal: tsens: remove redundant u32 comparison with less than zero

2019-05-31 Thread Colin King
From: Colin Ian King The u32 variable hw_id is unsigned and cannot be less than zero so the comparison with less than zero is always false and hence is redundant and can be removed. Addresses-Coverity: ("Unsigned compared against 0") Signed-off-by: Colin Ian King ---

Re: [PATCH] Smack: Restore the smackfsdef mount option and add missing prefixes

2019-05-31 Thread David Howells
Should this go via Al's tree, James's tree, Casey's tree or directly to Linus? David

[PATCH] Smack: Restore the smackfsdef mount option and add missing prefixes

2019-05-31 Thread David Howells
From: Casey Schaufler The 5.1 mount system rework changed the smackfsdef mount option to smackfsdefault. This fixes the regression by making smackfsdef treated the same way as smackfsdefault. Also fix the smack_param_specs[] to have "smack" prefixes on all the names. This isn't visible to a

Re: [PATCH RESEND] ARM: dts: qcom: msm8974-hammerhead: add device tree bindings for vibrator

2019-05-31 Thread Linus Walleij
On Wed, May 29, 2019 at 12:12 PM Brian Masney wrote: > My first revision of this vibrator driver used the Linux PWM framework > due to the variable duty cycle: So what I perceive if I get the thread right is that actually a lot of qcom clocks (all with the M/N/D counter set-up) have variable

re: security/loadpin: Allow to exclude specific file types

2019-05-31 Thread Colin Ian King
Hi, Static analysis with Coverity on linux-next has found a potential issue with the following commit: commit 1633a4f04cc171fc638deb5c95af96032d3c591b Author: Ke Wu Date: Thu May 30 12:22:08 2019 -0700 security/loadpin: Allow to exclude specific file types 209for (j =

Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-31 Thread Renzo Davoli
HI Roman, On Fri, May 31, 2019 at 11:34:08AM +0200, Roman Penyaev wrote: > On 2019-05-27 15:36, Renzo Davoli wrote: > > Unfortunately this approach cannot be applied to > > poll/select/ppoll/pselect/epoll. > > If you have to override other systemcalls, what is the problem to override > poll

Re: [PATCH 2/5] clocksource/drivers/timer-microchip-pit64b: add Microchip PIT64B support

2019-05-31 Thread Daniel Lezcano
Hi Claudiu, On 30/05/2019 09:46, claudiu.bez...@microchip.com wrote: > Hi Daniel, > > Taking into account the discussion on this tread and the fact that we have > no answer from Rob on this topic (I'm talking about [1]), what do you think > it would be best for this driver to be accepted the

Re: [PATCH] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-05-31 Thread Pingfan Liu
On Fri, May 31, 2019 at 7:52 AM Ira Weiny wrote: > > On Thu, May 30, 2019 at 04:21:19PM -0700, John Hubbard wrote: > > On 5/30/19 2:47 PM, Ira Weiny wrote: > > > On Thu, May 30, 2019 at 06:54:04AM +0800, Pingfan Liu wrote: > > [...] > > >> + for (j = i; j < nr; j++) > >

Re: [PATCH 4.19 079/276] x86/modules: Avoid breaking W^X while loading modules

2019-05-31 Thread Pavel Machek
Hi! > [ Upstream commit f2c65fb3221adc6b73b0549fc7ba892022db9797 ] > > When modules and BPF filters are loaded, there is a time window in > which some memory is both writable and executable. An attacker that has > already found another vulnerability (e.g., a dangling pointer) might be > able to

Re: [PATCH] phy: meson-g12a-usb3-pcie: disable locking for cr_regmap

2019-05-31 Thread Kishon Vijay Abraham I
Hi, On 31/05/19 4:01 PM, Neil Armstrong wrote: > Fix the following BUG by disabling locking for the cr_regmap config. What caused the BUG in the first place? The commit log needs more details or else this looks like a workaround to mask a BUG. Thanks Kishon > > BUG: sleeping function called

[PATCH v2] Revert "ASoC: core: use component driver name as component name"

2019-05-31 Thread Krzysztof Kozlowski
Using component driver as a name is not unique and it breaks audio in certain configurations, e.g. Hardkernel Odroid XU3 board where following components are registered: - "383.i2s" with driver name "snd_dmaengine_pcm" - "383.i2s-sec" with driver name "snd_dmaengine_pcm" - "383.i2s"

[PATCH] hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.

2019-05-31 Thread Amy.Shih
From: "amy.shih" This patch do 2 jobs as described in below: 1. NCT-7904D also supports reading of channel limitation registers and SMI status registers for fan, voltage and temperature monitoring, add below sysfs nodes: -fan[1-*]_min -fan[1-*]_alarm -in[0-*]_min -in[0-*]_max -in[0-*]_alarm

[PATCH] media: platform: ao-cec-g12a: disable regmap fast_io for cec bus regmap

2019-05-31 Thread Neil Armstrong
With fast_io enabled, spinlock_irq is used for read/write operations, thus leading to : BUG: sleeping function called from invalid context at [snip]/ao-cec-g12a.c:379 in_atomic(): 1, irqs_disabled(): 128, pid: 1451, name: irq/14-ff800280 [snip] Call trace: dump_backtrace+0x0/0x180

[PATCH] Revert "ASoC: core: use component driver name as component name"

2019-05-31 Thread Krzysztof Kozlowski
Using component driver as a name is not unique and it breaks audio in certain configurations, e.g. Hardkernel Odroid XU3 board where following components are registered: - 383.i2s with driver snd_dmaengine_pcm - 383.i2s-sec with driver snd_dmaengine_pcm - 383.i2s with driver

[PATCH] phy: meson-g12a-usb3-pcie: disable locking for cr_regmap

2019-05-31 Thread Neil Armstrong
Fix the following BUG by disabling locking for the cr_regmap config. BUG: sleeping function called from invalid context at drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c:85 in_atomic(): 1, irqs_disabled(): 128, pid: 60, name: kworker/3:1 [snip] Workqueue: events deferred_probe_work_func Call

Re: [PATCH] staging: comedi: Remove variable runflags

2019-05-31 Thread Ian Abbott
On 30/05/2019 21:51, Nishka Dasgupta wrote: Remove variable runflags and use its value directly. Issue found with checkpatch. Signed-off-by: Nishka Dasgupta --- drivers/staging/comedi/comedi_fops.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 1/2] mt76: mt7615: enable support for mesh

2019-05-31 Thread Ryder Lee
On Fri, 2019-05-31 at 12:02 +0200, Lorenzo Bianconi wrote: > > Enable NL80211_IFTYPE_MESH_POINT and add its path. > > > > Signed-off-by: Ryder Lee > > --- > > drivers/net/wireless/mediatek/mt76/mt7615/init.c | 6 ++ > > drivers/net/wireless/mediatek/mt76/mt7615/main.c | 1 + > >

Re: [PATCH] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-05-31 Thread Pingfan Liu
On Fri, May 31, 2019 at 5:46 AM Ira Weiny wrote: > > On Thu, May 30, 2019 at 06:54:04AM +0800, Pingfan Liu wrote: > > As for FOLL_LONGTERM, it is checked in the slow path > > __gup_longterm_unlocked(). But it is not checked in the fast path, which > > means a possible leak of CMA page to longterm

Re: [PATCH] media: avoid skipping MEDIA_PAD_FL_MUST_CONNECT logic

2019-05-31 Thread Sakari Ailus
Hi Nikita, On Fri, May 31, 2019 at 11:06:37AM +0300, Nikita Yushchenko wrote: > In the current code, __media_pipeline_start() skips check of > MEDIA_PAD_FL_MUST_CONNECT logic for entity not providing link_validate() > op. > > Fix that by checking for existence of link_validate() at different

[PATCH 1/2] w1: add 1-wire master driver for IP block found in SGI ASICs

2019-05-31 Thread Thomas Bogendoerfer
Starting with SGI Origin machines nearly every new SGI ASIC contains an 1-Wire master. They are used for attaching One-Wire prom devices, which contain information about part numbers, revision numbers, serial number etc. and MAC addresses for ethernet interfaces. This patch adds a master driver to

Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node

2019-05-31 Thread Luca Weiss
On Freitag, 24. Mai 2019 11:20:01 CEST Maxime Ripard wrote: > > It would be great to drop the -keys from the compatible, and to > document the bindings > > Looks good otherwise > > Maxime Hi again, So I should just document the "allwinner,sun50i-a64-lradc" string in

[PATCH 2/2] w1: add DS2501, DS2502, DS2505 EPROM device driver

2019-05-31 Thread Thomas Bogendoerfer
Add a 1-Wire slave driver to support DS250x EPROM deivces. This slave driver attaches the devices to the NVMEM subsystem for an easy in-kernel usage. Signed-off-by: Thomas Bogendoerfer --- drivers/w1/slaves/Kconfig | 6 + drivers/w1/slaves/Makefile| 1 +

Re: [PATCH v2] checkpatch.pl: Warn on duplicate sysctl local variable

2019-05-31 Thread Joe Perches
On Fri, 2019-05-31 at 10:44 +0200, Matteo Croce wrote: > On May 31, 2019 5:06:58 AM GMT+02:00, Joe Perches wrote: > > On Fri, 2019-05-31 at 03:12 +0200, Matteo Croce wrote: > > > + > > > +# check for sysctl duplicate constants > > > + if ($line =~

Re: [PATCH] platform/chrome: fix crash during suspend

2019-05-31 Thread Enric Balletbo i Serra
Hi, Many thanks for this patch On 30/5/19 6:03, Hyungwoo Yang wrote: > Kernel crashes during suspend due to wrong conversion in > suspend and resume functions. > > Use the proper helper to get ishtp_cl_device instance. > > Signed-off-by: Hyungwoo Yang > --- >

Re: [BISECT] No audio after "ASoC: core: use component driver name as component name"

2019-05-31 Thread Tzung-Bi Shih
On Fri, May 31, 2019 at 5:27 PM Krzysztof Kozlowski wrote: > The problem might be in component name. The driver->name and > fmt_single_name(dev, >id) are: > snd_dmaengine_pcm != 383.i2s > snd_dmaengine_pcm != 383.i2s-sec > samsung-i2s != 383.i2s > > This commit should not go in

Re: [RFC PATCH v2 07/12] smp: Do not mark call_function_data as shared

2019-05-31 Thread Peter Zijlstra
On Thu, May 30, 2019 at 11:36:40PM -0700, Nadav Amit wrote: > cfd_data is marked as shared, but although it hold pointers to shared > data structures, it is private per core. > > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Rik van Riel > Cc: Andy Lutomirski > Signed-off-by: Nadav Amit >

[PATCH] MAINTAINERS: Add mailing list for csky architecture

2019-05-31 Thread guoren
From: Guo Ren Add the newly created linux-c...@vger.kernel.org mailing list for patch reviews and discussions. Signed-off-by: Guo Ren --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5cfbea4..b5fadcc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH] drivers/acpi: Turn off power resources while entering S5

2019-05-31 Thread Rafael J. Wysocki
On Wednesday, April 24, 2019 1:39:04 AM CEST Furquan Shaikh wrote: > During boot-up, ACPI bus scan enables all power resources > so that respective device drivers can talk to their device. This causes acpi > ref_count for the power resource to be incremented to 1. When system > suspends (S3/S0ix)

[PATCH] lockdep: Rename lockdep_assert_held_exclusive -> lockdep_assert_held_write

2019-05-31 Thread Nikolay Borisov
All callers of lockdep_assert_held_exclusive use it to verify the correct locking state of either a semaphore (ldisc_sem in tty, mmap_sem for perf events, i_rwsem of inode for dax) or rwlock by apparmor. Thus it makes sense to rename _exclusive to _write since that's the semantics callers care.

Re: [RFCv2 6/6] mm: extend process_madvise syscall to support vector arrary

2019-05-31 Thread Yann Droneaud
Hi, Le vendredi 31 mai 2019 à 15:43 +0900, Minchan Kim a écrit : > > diff --git a/include/uapi/asm-generic/mman-common.h > b/include/uapi/asm-generic/mman-common.h > index 92e347a89ddc..220c2b5eb961 100644 > --- a/include/uapi/asm-generic/mman-common.h > +++

Re: [PATCH 1/2] mt76: mt7615: enable support for mesh

2019-05-31 Thread Lorenzo Bianconi
> Enable NL80211_IFTYPE_MESH_POINT and add its path. > > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/mt7615/init.c | 6 ++ > drivers/net/wireless/mediatek/mt76/mt7615/main.c | 1 + > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 5 - > 3 files changed, 11

Re: [PATCH v3 07/13] epoll: call ep_add_event_to_uring() from ep_poll_callback()

2019-05-31 Thread Peter Zijlstra
On Thu, May 16, 2019 at 10:58:04AM +0200, Roman Penyaev wrote: > Each ep_poll_callback() is called when fd calls wakeup() on epfd. > So account new event in user ring. > > The tricky part here is EPOLLONESHOT. Since we are lockless we > have to be deal with ep_poll_callbacks() called in paralle,

Re: [PATCH 3/4] vsock/virtio: fix flush of works during the .remove()

2019-05-31 Thread Jason Wang
On 2019/5/31 下午4:18, Stefano Garzarella wrote: On Thu, May 30, 2019 at 07:59:14PM +0800, Jason Wang wrote: On 2019/5/30 下午6:10, Stefano Garzarella wrote: On Thu, May 30, 2019 at 05:46:18PM +0800, Jason Wang wrote: On 2019/5/29 下午6:58, Stefano Garzarella wrote: On Wed, May 29, 2019 at

Re: [PATCH v3 06/13] epoll: introduce helpers for adding/removing events to uring

2019-05-31 Thread Peter Zijlstra
On Thu, May 16, 2019 at 10:58:03AM +0200, Roman Penyaev wrote: > +#define atomic_set_unless_zero(ptr, flags) \ > +({ \ > + typeof(ptr) _ptr = (ptr); \ > + typeof(flags) _flags =

Re: [PATCH v3 06/13] epoll: introduce helpers for adding/removing events to uring

2019-05-31 Thread Peter Zijlstra
On Thu, May 16, 2019 at 10:58:03AM +0200, Roman Penyaev wrote: > +static inline bool ep_add_event_to_uring(struct epitem *epi, __poll_t > pollflags) > +{ > + struct eventpoll *ep = epi->ep; > + struct epoll_uitem *uitem; > + bool added = false; > + > + if (WARN_ON(!pollflags)) > +

Re: [PATCH v3 00/13] epoll: support pollable epoll from userspace

2019-05-31 Thread Peter Zijlstra
On Thu, May 16, 2019 at 10:57:57AM +0200, Roman Penyaev wrote: > When new event comes for some epoll item kernel does the following: > > struct epoll_uitem *uitem; > > /* Each item has a bit (index in user items array), discussed later */ > uitem = user_header->items[epi->bit]; > > if

Re: [PATCH] ptrace: restore smp_rmb() in __ptrace_may_access()

2019-05-31 Thread Oleg Nesterov
On 05/31, Peter Zijlstra wrote: > > On Thu, May 30, 2019 at 02:05:31PM +0200, Oleg Nesterov wrote: > > > Anyway, looking at it, I think smp_acquire__after_ctrl_dep() doesn't > > > make sense here; > > > > Well I still _think_ it should work, it provides the LOAD-LOAD ordering > > and this is what

Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-31 Thread Morten Rasmussen
On Fri, May 31, 2019 at 10:37:43AM +0100, Sudeep Holla wrote: > On Thu, May 30, 2019 at 10:42:54PM +0100, Russell King - ARM Linux admin > wrote: > > On Thu, May 30, 2019 at 12:51:03PM +0100, Morten Rasmussen wrote: > > > On Wed, May 29, 2019 at 07:39:17PM -0400, Andrew F. Davis wrote: > > > > On

RE: [PATCH v2 net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-31 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org On Behalf Of Yunsheng Lin > Sent: Friday, May 31, 2019 10:01 AM > To: da...@davemloft.net > Cc: hkallwe...@gmail.com; f.faine...@gmail.com; > step...@networkplumber.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm > Subject: [PATCH v2

Re: [PATCH -next] crypto: atmel-i2c - Fix build error while CRC16 set to m

2019-05-31 Thread Ard Biesheuvel
On Fri, 31 May 2019 at 11:50, YueHaibing wrote: > > If CRYPTO_DEV_ATMEL_ECC is set m, which select CRC16 to m, > while CRYPTO_DEV_ATMEL_SHA204A is set to y, building fails. > > drivers/crypto/atmel-i2c.o: In function `atmel_i2c_checksum': > atmel-i2c.c:(.text+0x16): undefined reference to `crc16'

Re: [PATCH v2] PM: sleep: Add kerneldoc comments to some functions

2019-05-31 Thread Rafael J. Wysocki
On Monday, May 27, 2019 12:45:18 PM CEST Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add kerneldoc comments to pm_suspend_via_firmware(), > pm_resume_via_firmware() and pm_suspend_via_s2idle() to explain > what they do. > > Signed-off-by: Rafael J. Wysocki > --- > > -> v2: > Put

Re: [PATCH v1] s390/pkey: Use -ENODEV instead of -EOPNOTSUPP

2019-05-31 Thread Cornelia Huck
On Fri, 31 May 2019 11:36:28 +0200 David Hildenbrand wrote: > systemd-modules-load.service automatically tries to load the pkey module > on systems that have MSA. > > Pkey also requires the MSA3 facility and a bunch of subfunctions. > Failing with -EOPNOTSUPP makes

[PATCH -next] crypto: atmel-i2c - Fix build error while CRC16 set to m

2019-05-31 Thread YueHaibing
If CRYPTO_DEV_ATMEL_ECC is set m, which select CRC16 to m, while CRYPTO_DEV_ATMEL_SHA204A is set to y, building fails. drivers/crypto/atmel-i2c.o: In function `atmel_i2c_checksum': atmel-i2c.c:(.text+0x16): undefined reference to `crc16' Add CRC16 dependency to CRYPTO_DEV_ATMEL_SHA204A, and also

[PATCH] PCI: PM: Avoid resuming devices in D3hot during system suspend

2019-05-31 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The current code resumes devices in D3hot during system suspend if the target power state for them is D3cold, but that is not necessary in general. It only is necessary to do that if the platform firmware requires the device to be resumed, but that should be covered by

[PATCH v3 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-31 Thread Renzo Davoli
This patch implements an extension of eventfd (EFD_VPOLL) to define file descriptors whose I/O events can be generated at user level. These file descriptors trigger notifications for [p]select/[p]poll/epoll. This feature is useful for user-level implementations of network stacks or virtual

RE: single copy atomicity for double load/stores on 32-bit systems

2019-05-31 Thread David Laight
From: Vineet Gupta > Sent: 30 May 2019 19:23 ... > While it seems reasonable form hardware pov to not implement such atomicity by > default it seems there's an additional burden on application writers. They > could > be happily using a lockless algorithm with just a shared flag between 2 >

Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-31 Thread Sudeep Holla
On Thu, May 30, 2019 at 08:56:03AM -0400, Andrew F. Davis wrote: > On 5/30/19 7:51 AM, Morten Rasmussen wrote: > > On Wed, May 29, 2019 at 07:39:17PM -0400, Andrew F. Davis wrote: > > > On 5/29/19 5:13 PM, Atish Patra wrote: > > > > From: Sudeep Holla > > > > > > > > The current ARM DT topology

Re: [PATCH V6] ARM: mach-shmobile: Don't init CNTVOFF/counter if PSCI is available

2019-05-31 Thread Simon Horman
On Wed, May 29, 2019 at 07:05:00PM +0300, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > If PSCI is available then most likely we are running on PSCI-enabled > U-Boot which, we assume, has already taken care of resetting CNTVOFF > and updating counter module before switching to

Re: [PATCH v2 1/2] KVM: Start populating /sys/hypervisor with KVM entries

2019-05-31 Thread Marc Zyngier
On Fri, 31 May 2019 10:12:03 +0100, "Raslan, KarimAllah" wrote: > > On Fri, 2019-05-31 at 11:06 +0200, Alexander Graf wrote: > > On 17.05.19 17:41, Sironi, Filippo wrote: > > > > > > > > > > > On 16. May 2019, at 15:50, Graf, Alexander wrote: > > > > > > > > On 14.05.19 08:16, Filippo Sironi

Re: [PATCH v6 1/7] Documentation: DT: arm: add support for sockets defining package boundaries

2019-05-31 Thread Sudeep Holla
On Thu, May 30, 2019 at 10:42:54PM +0100, Russell King - ARM Linux admin wrote: > On Thu, May 30, 2019 at 12:51:03PM +0100, Morten Rasmussen wrote: > > On Wed, May 29, 2019 at 07:39:17PM -0400, Andrew F. Davis wrote: > > > On 5/29/19 5:13 PM, Atish Patra wrote: > > > >From: Sudeep Holla > > > > >

Re: [PATCH] arm64: dts: ulcb-kf: Add support for TI WL1837

2019-05-31 Thread Simon Horman
Hi Spyridon, please respond to Geert's review below and if appropriate provide an incremental patch. Thanks in advance, Simon On Tue, May 28, 2019 at 11:19:04AM +0200, Geert Uytterhoeven wrote: > Hi Spyridon, > > On Thu, Apr 11, 2019 at 2:42 PM Spyridon Papageorgiou > wrote: > > This patch

[PATCH v1] s390/pkey: Use -ENODEV instead of -EOPNOTSUPP

2019-05-31 Thread David Hildenbrand
systemd-modules-load.service automatically tries to load the pkey module on systems that have MSA. Pkey also requires the MSA3 facility and a bunch of subfunctions. Failing with -EOPNOTSUPP makes "systemd-modules-load.service" fail on any system that does not have all needed subfunctions. For

Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-31 Thread Roman Penyaev
Hi Renzo, On 2019-05-27 15:36, Renzo Davoli wrote: On Mon, May 27, 2019 at 09:33:32AM +0200, Greg KH wrote: On Sun, May 26, 2019 at 04:25:21PM +0200, Renzo Davoli wrote: > This patch implements an extension of eventfd to define file descriptors > whose I/O events can be generated at user

<    1   2   3   4   5   6   7   8   9   >