Re: [PATCH] drm/amdkfd/kfd_mqd_manager_v10: Avoid fall-through warning

2019-07-22 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Jul 22, 2019 at 2:14 PM Liu, Shaoyun wrote: > > Reviewed-by: shaoyunl > > On 2019-07-22 1:47 p.m., Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, this patch silences > > the following warning: > > > > drivers/gpu/drm/amd/amdgpu/

[PATCH 1/3] [net-next] net: remove netx ethernet driver

2019-07-22 Thread Arnd Bergmann
The ARM netx platform got removed in 5.3, so this driver is now useless. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/Kconfig | 11 - drivers/net/ethernet/Makefile | 1 - drivers/net/ethernet/netx-eth.c| 497 - include/linux/platform

Re: [PATCH] ax88179_178a: Merge memcpy + le32_to_cpus to get_unaligned_le32

2019-07-22 Thread David Miller
From: Chuhong Yuan Date: Fri, 19 Jul 2019 17:07:15 +0800 > Merge the combo use of memcpy and le32_to_cpus. > Use get_unaligned_le32 instead. > This simplifies the code. > > Signed-off-by: Chuhong Yuan Applied.

Re: [PATCH] usbnet: smsc75xx: Merge memcpy + le32_to_cpus to get_unaligned_le32

2019-07-22 Thread David Miller
From: Chuhong Yuan Date: Fri, 19 Jul 2019 16:27:31 +0800 > Merge the combo use of memcpy and le32_to_cpus. > Use get_unaligned_le32 instead. > This simplifies the code. > > Signed-off-by: Chuhong Yuan Applied.

Re: [PATCH] pwm: sifive: remove redundant dev_err message

2019-07-22 Thread Uwe Kleine-König
On Thu, Jul 18, 2019 at 03:51:11PM +0800, Ding Xiang wrote: > devm_ioremap_resource already contains error message, so remove > the redundant dev_err message > > Signed-off-by: Ding Xiang Acked-by: Uwe Kleine-König Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König

Re: [PATCH 39/79] libperf: Add perf_evlist__add function

2019-07-22 Thread Arnaldo Carvalho de Melo
Em Sun, Jul 21, 2019 at 01:24:26PM +0200, Jiri Olsa escreveu: > Adding perf_evlist__add function to add perf_evsel > in perf_evlist struct. > > Link: http://lkml.kernel.org/n/tip-pnfovrqcgxquioroelzfz...@git.kernel.org > Signed-off-by: Jiri Olsa > --- > tools/perf/lib/evlist.c | 7 +

Re: [PATCH] net/mlx5: fix -Wtype-limits compilation warnings

2019-07-22 Thread David Miller
From: Qian Cai Date: Mon, 22 Jul 2019 14:34:42 -0400 > The commit b9a7ba556207 ("net/mlx5: Use event mask based on device > capabilities") introduced a few compilation warnings due to it bumps > MLX5_EVENT_TYPE_MAX from 0x27 to 0x100 which is always greater than > an "struct {mlx5_eqe|mlx5_nb}.ty

HELLO

2019-07-22 Thread Salah Ibrahim
I have a business proposal of $35 Million USD which i want to transact with you get back for more details.Best Regards I am Dr. Salah Ibrahim

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Nadav Amit
> On Jul 22, 2019, at 11:51 AM, Thomas Gleixner wrote: > > On Mon, 22 Jul 2019, Nadav Amit wrote: >>> On Jul 22, 2019, at 11:37 AM, Thomas Gleixner wrote: >>> >>> On Mon, 22 Jul 2019, Peter Zijlstra wrote: >>> On Thu, Jul 18, 2019 at 05:58:29PM -0700, Nadav Amit wrote: > +/* > + *

Re: [PATCH v2 6/7] dt-bindings: net: realtek: Add property to configure LED mode

2019-07-22 Thread Andrew Lunn
On Mon, Jul 22, 2019 at 10:14:18AM -0700, Matthias Kaehlcke wrote: > I'm working on a generic binding. > > I wonder what is the best process for reviewing/landing it, I'm > doubting between two options: > > a) only post the binding doc and the generic PHY code that reads >the configuration fr

[RFC/RFT 5/5] phy: exynos5-usbdrd: drop duplicate setting PIPE3 tune signal

2019-07-22 Thread Anand Moon
Drop duplicate configuration setting of PIPE tune signal. Signed-off-by: Anand Moon --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index 4f16c4f82ae5..f6d2f

[RFC/RFT 3/5] phy: exynos5-usbdrd: UTMI tune signal

2019-07-22 Thread Anand Moon
Tune USB2.0 (UTMI+) TX signal for high speed data transfer. Signed-off-by: Anand Moon --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 42 +--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exy

[RFC/RFT 4/5] phy: exynos5-usbdrd: PIPE3 tune signal

2019-07-22 Thread Anand Moon
Tune USB3.0 (PIPE3) PHY TX signal for high and supper speed data transfer. Signed-off-by: Anand Moon --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsun

[RFC/RFT 2/5] phy: exynos5-usbdrd: add missing tuning of the phyutmi signal

2019-07-22 Thread Anand Moon
Add missing tuning of phyutmi controls to enter suspend and resume state. Signed-off-by: Anand Moon --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 32 ++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/s

[RFC/RFT 1/5] phy: exynos5-usbdrd: read from correct offset of xhci linksystem

2019-07-22 Thread Anand Moon
Read from linksystem offset to update the xhci version. Signed-off-by: Anand Moon --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index 646259be

[RFC/RFT 0/5] Exynos USB 3.0 PHY tune setting

2019-07-22 Thread Anand Moon
Dear All, Here are some patches which help tune USB 3.0 phy. changes have been testing on Odroid XU3 / XU4 / HC1. with suspend and resume working with usb hdd device connected. These patches have been build on top on Marek Szyprowski Fix USB3.0 DRD PHY calibration issues. [0] https://patchwork.k

Re: RFC: call_rcu_outstanding (was Re: WARNING in __mmdrop)

2019-07-22 Thread Paul E. McKenney
On Mon, Jul 22, 2019 at 12:32:17PM -0400, Michael S. Tsirkin wrote: > On Mon, Jul 22, 2019 at 09:25:51AM -0700, Paul E. McKenney wrote: > > On Mon, Jul 22, 2019 at 12:13:40PM -0400, Michael S. Tsirkin wrote: > > > On Mon, Jul 22, 2019 at 08:55:34AM -0700, Paul E. McKenney wrote: > > > > On Mon, Jul

[patch V3 09/25] x86/apic: Consolidate the apic local headers

2019-07-22 Thread Thomas Gleixner
Now there are three small local headers. Some contain functions which are only used in one source file. Move all the inlines and declarations into a single local header and the inlines which are only used in one source file into that. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/apic

[patch V3 12/25] x86/cpu: Move arch_smt_update() to a neutral place

2019-07-22 Thread Thomas Gleixner
arch_smt_update() will be used to control IPI/NMI broadcasting via the shorthand mechanism. Keeping it in the bugs file and calling the apic function from there is possible, but not really intuitive. Move it to a neutral place and invoke the bugs function from there. No functional change. Signed

[patch V3 07/25] x86/apic: Move ipi header into apic directory

2019-07-22 Thread Thomas Gleixner
Only used locally. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/ipi.h | 90 --- arch/x86/kernel/apic/apic_flat_64.c |3 - arch/x86/kernel/apic/apic_numachip.c |3 - arch/x86/kernel/apic/bigsmp_32.c |9 --- arch/x86/kernel/ap

[patch V3 06/25] x86/apic: Cleanup the include maze

2019-07-22 Thread Thomas Gleixner
All of these APIC files include the world and some more. Remove the unneeded cruft. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/apic_flat_64.c | 15 --- arch/x86/kernel/apic/apic_noop.c | 18 +- arch/x86/kernel/apic/apic_numachip.c |6 +++--

[patch V3 15/25] x86/apic: Add NMI_VECTOR wait to IPI shorthand

2019-07-22 Thread Thomas Gleixner
To support NMI shorthand broadcasts add the safe wait for ICR idle for NMI vector delivery. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/ipi.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) --- a/arch/x86/kernel/apic/ipi.c +++ b/arch/x86/kernel/apic/ipi.c @@ -30,7 +30,1

Re: [PATCH v2] dma-mapping: Use dma_get_mask in dma_addressing_limited

2019-07-22 Thread Michael S. Tsirkin
On Mon, Jul 22, 2019 at 06:56:49PM +0200, Auger Eric wrote: > Hi Christoph, > > On 7/22/19 6:51 PM, Eric Auger wrote: > > We currently have cases where the dma_addressing_limited() gets > > called with dma_mask unset. This causes a NULL pointer dereference. > > > > Use dma_get_mask() accessor to

[patch V3 00/25] x86/apic: Support for IPI shorthands

2019-07-22 Thread Thomas Gleixner
This is merily a refresh of V2. Changes vs. V2 (https://lkml.kernel.org/r/20190704155145.617706...@linutronix.de) - Fix the NMI_VECTOR/VECTOR_NMI typo in kgdb - Remove the misleading vector 0-31 wording It applies on top of: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86

[patch V3 01/25] x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI

2019-07-22 Thread Thomas Gleixner
apic->send_IPI_allbutself() takes a vector number as argument. APIC_DM_NMI is clearly not a vector number. It's defined to 0x400 which is outside the vector space. Use NMI_VECTOR instead as that's what it is intended to be. Fixes: 82da3ff89dc2 ("x86: kgdb support") Signed-off-by: Thomas Gleixner

[patch V3 14/25] x86/apic: Remove dest argument from __default_send_IPI_shortcut()

2019-07-22 Thread Thomas Gleixner
The SDM states: "The destination shorthand field of the ICR allows the delivery mode to be by-passed in favor of broadcasting the IPI to all the processors on the system bus and/or back to itself (see Section 10.6.1, Interrupt Command Register (ICR)). Three destination shorthands are su

[patch V3 05/25] x86/apic: Move IPI inlines into ipi.c

2019-07-22 Thread Thomas Gleixner
No point in having them in an header file. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/ipi.h | 19 --- arch/x86/kernel/apic/ipi.c | 16 +--- 2 files changed, 13 insertions(+), 22 deletions(-) --- a/arch/x86/include/asm/ipi.h +++ b/arch/x86/include/asm

[patch V3 18/25] x86/apic: Provide and use helper for send_IPI_allbutself()

2019-07-22 Thread Thomas Gleixner
To support IPI shorthands wrap invocations of apic->send_IPI_allbutself() in a helper function, so the static key controlling the shorthand mode is only in one place. Fixup all callers. Signed-off-by: Thomas Gleixner --- V2: New patch --- arch/x86/include/asm/apic.h |2 ++ arch/x86/kernel/a

[patch V3 03/25] x86/apic: Soft disable APIC before initializing it

2019-07-22 Thread Thomas Gleixner
If the APIC was already enabled on entry of setup_local_APIC() then disabling it soft via the SPIV register makes a lot of sense. That masks all LVT entries and brings it into a well defined state. Otherwise previously enabled LVTs which are not touched in the setup function stay unmasked and mig

[patch V3 21/25] x86/smp: Enhance native_send_call_func_ipi()

2019-07-22 Thread Thomas Gleixner
Nadav noticed that the cpumask allocations in native_send_call_func_ipi() are noticeable in microbenchmarks. Use the new cpumask_or_equal() function to simplify the decision whether the supplied target CPU mask is either equal to cpu_online_mask or equal to cpu_online_mask except for the CPU on wh

[patch V3 17/25] x86/apic: Add static key to Control IPI shorthands

2019-07-22 Thread Thomas Gleixner
The IPI shorthand functionality delivers IPI/NMI broadcasts to all CPUs in the system. This can have similar side effects as the MCE broadcasting when CPUs are waiting in the BIOS or are offlined. The kernel tracks already the state of offlined CPUs whether they have been brought up at least once

[patch V3 25/25] x86/apic/x2apic: Implement IPI shorthands support

2019-07-22 Thread Thomas Gleixner
All callers of apic->send_IPI_all() and apic->send_IPI_allbutself() contain the decision logic for shorthand invocation already and invoke send_IPI_mask() if the prereqisites are not satisfied. Implement shorthand support for x2apic. Signed-off-by: Thomas Gleixner --- V2: Remove the decision log

[patch V3 19/25] cpumask: Implement cpumask_or_equal()

2019-07-22 Thread Thomas Gleixner
The IPI code of x86 needs to evaluate whether the target cpumask is equal to the cpu_online_mask or equal except for the calling CPU. To replace the current implementation which requires the usage of a temporary cpumask, which might involve allocations, add a new function which compares a cpumask

[patch V3 08/25] x86/apic: Move apic_flat_64 header into apic directory

2019-07-22 Thread Thomas Gleixner
Only used locally. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/apic_flat_64.h |8 arch/x86/kernel/apic/apic_flat_64.c |2 +- arch/x86/kernel/apic/apic_flat_64.h |8 arch/x86/kernel/apic/apic_numachip.c |2 +- 4 files changed, 10 insertions(+), 10

[patch V3 24/25] x86/apic/flat64: Remove the IPI shorthand decision logic

2019-07-22 Thread Thomas Gleixner
All callers of apic->send_IPI_all() and apic->send_IPI_allbutself() contain the decision logic for shorthand invocation already and invoke send_IPI_mask() if the prereqisites are not satisfied. Remove the now redundant decision logic in the APIC code and the duplicate helper in probe_64.c. Signed

[patch V3 02/25] x86/apic: Invoke perf_events_lapic_init() after enabling APIC

2019-07-22 Thread Thomas Gleixner
If the APIC is soft disabled then unmasking an LVT entry does not work and the write is ignored. perf_events_lapic_init() tries to do so. Move the invocation after the point where the APIC has been enabled. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/apic.c |5 ++--- 1 file chan

[patch V3 13/25] x86/hotplug: Silence APIC and NMI when CPU is dead

2019-07-22 Thread Thomas Gleixner
In order to support IPI/NMI broadcasting via the shorthand mechanism side effects of shorthands need to be mitigated: Shorthand IPIs and NMIs hit all CPUs including unplugged CPUs Neither of those can be handled on unplugged CPUs for obvious reasons. It would be trivial to just fully disable th

[patch V3 16/25] x86/apic: Move no_ipi_broadcast() out of 32bit

2019-07-22 Thread Thomas Gleixner
For the upcoming shorthand support for all APIC incarnations the command line option needs to be available for 64 bit as well. While at it, rename the control variable, make it static and mark it __ro_after_init. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/ipi.c | 29

[patch V3 11/25] smp/hotplug: Track booted once CPUs in a cpumask

2019-07-22 Thread Thomas Gleixner
The booted once information which is required to deal with the MCE broadcast issue on X86 correctly is stored in the per cpu hotplug state, which is perfectly fine for the intended purpose. X86 needs that information for supporting NMI broadcasting via shortcuts, but retrieving it from per cpu dat

[patch V3 20/25] x86/smp: Move smp_function_call implementations into IPI code

2019-07-22 Thread Thomas Gleixner
Move it where it belongs. That allows to keep all the shorthand logic in one place. No functional change. Signed-off-by: Thomas Gleixner --- V2: New patch --- arch/x86/include/asm/smp.h |1 + arch/x86/kernel/apic/ipi.c | 40 arch/x86/kernel/smp.c

[patch V3 22/25] x86/apic: Remove the shorthand decision logic

2019-07-22 Thread Thomas Gleixner
All callers of apic->send_IPI_all() and apic->send_IPI_allbutself() contain the decision logic for shorthand invocation already and invoke send_IPI_mask() if the prereqisites are not satisfied. Remove the now redundant decision logic in the 32bit implementation. Signed-off-by: Thomas Gleixner --

[patch V3 10/25] x86/apic/uv: Make x2apic_extra_bits static

2019-07-22 Thread Thomas Gleixner
Not used outside of the UV apic source. Signed-off-by: Thomas Gleixner --- V2: New patch --- arch/x86/include/asm/apic.h|2 -- arch/x86/kernel/apic/x2apic_uv_x.c |2 +- 2 files changed, 1 insertion(+), 3 deletions(-) --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/a

[patch V3 04/25] x86/apic: Make apic_pending_intr_clear() more robust

2019-07-22 Thread Thomas Gleixner
In course of developing shorthand based IPI support issues with the function which tries to clear eventually pending ISR bits in the local APIC were observed. 1) O-day testing triggered the WARN_ON() in apic_pending_intr_clear(). This warning is emitted when the function fails to clear pen

[patch V3 23/25] x86/apic: Share common IPI helpers

2019-07-22 Thread Thomas Gleixner
The 64bit implementations need the same wrappers around __default_send_IPI_shortcut() as 32bit. Move them out of the 32bit section. Signed-off-by: Thomas Gleixner --- V2: New patch --- arch/x86/kernel/apic/ipi.c | 30 +++--- arch/x86/kernel/apic/local.h |6 +++---

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Thomas Gleixner
On Mon, 22 Jul 2019, Nadav Amit wrote: > > On Jul 22, 2019, at 11:37 AM, Thomas Gleixner wrote: > > > > On Mon, 22 Jul 2019, Peter Zijlstra wrote: > > > >> On Thu, Jul 18, 2019 at 05:58:29PM -0700, Nadav Amit wrote: > >>> +/* > >>> + * Call a function on all processors. May be used during early

Wine Enthusiasts

2019-07-22 Thread Leslie Arthur
Hello, Would you be interested in acquiring an email list of "Wine Enthusiasts" from USA? We also have data for Golfers, Alcohol Enthusiasts, Beer Enthusiasts, Chocolate Enthusiasts, Foodies, Travelers, Gift Buyers, Spa and Resort Visitors, Sports Enthusiasts, Android Users and many more..

Re: [PATCH v5 00/13] Allwinner A64/H6 IR support

2019-07-22 Thread Clément Péron
Hi, This series received ack from device-tree, media and sunxi maintainers. Can patch 2/3/4 goes to linux-media and the rest to linux-sunxi ? Thanks, Clément On Sat, 8 Jun 2019 at 01:11, Clément Péron wrote: > > Hi, > > A64 IR support series[1] pointed out that an A31 bindings should be > intr

RE: [PATCH v2] ARC: [plat-hsdk]: allow to switch between AXI DMAC port configurations

2019-07-22 Thread Alexey Brodkin
Hi Eugeniy, > -Original Message- > From: Eugeniy Paltsev > Sent: Monday, July 22, 2019 12:32 PM > To: linux-snps-...@lists.infradead.org; Vineet Gupta > Cc: linux-kernel@vger.kernel.org; Alexey Brodkin ; > Eugeniy Paltsev > > Subject: [PATCH v2] ARC: [plat-hsdk]: allow to switch betwee

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Nadav Amit
> On Jul 22, 2019, at 11:16 AM, Peter Zijlstra wrote: > > On Fri, Jul 19, 2019 at 11:23:06AM -0700, Dave Hansen wrote: >> On 7/18/19 5:58 PM, Nadav Amit wrote: >>> @@ -624,16 +622,11 @@ EXPORT_SYMBOL(on_each_cpu); >>> void on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, >>>

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Nadav Amit
> On Jul 22, 2019, at 11:37 AM, Thomas Gleixner wrote: > > On Mon, 22 Jul 2019, Peter Zijlstra wrote: > >> On Thu, Jul 18, 2019 at 05:58:29PM -0700, Nadav Amit wrote: >>> +/* >>> + * Call a function on all processors. May be used during early boot while >>> + * early_boot_irqs_disabled is set.

Re: [5.2 REGRESSION] Generic vDSO breaks seccomp-enabled userspace on i386

2019-07-22 Thread Kees Cook
On Mon, Jul 22, 2019 at 08:31:32PM +0200, Thomas Gleixner wrote: > On Mon, 22 Jul 2019, Kees Cook wrote: > > Just so I'm understanding: the vDSO change introduced code to make an > > actual syscall on i386, which for most seccomp filters would be rejected? > > No. The old x86 specific VDSO impleme

Re: [PATCH V6 01/21] irqchip: tegra: Do not disable COP IRQ during suspend

2019-07-22 Thread Marc Zyngier
On Mon, 22 Jul 2019 09:21:21 -0700 Sowjanya Komatineni wrote: > On 7/22/19 3:57 AM, Dmitry Osipenko wrote: > > 22.07.2019 13:13, Marc Zyngier пишет: > >> On 22/07/2019 10:54, Dmitry Osipenko wrote: > >>> 21.07.2019 22:40, Sowjanya Komatineni пишет: > Tegra210 platforms use sc7 entry fi

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Thomas Gleixner
On Mon, 22 Jul 2019, Peter Zijlstra wrote: > On Thu, Jul 18, 2019 at 05:58:29PM -0700, Nadav Amit wrote: > > +/* > > + * Call a function on all processors. May be used during early boot while > > + * early_boot_irqs_disabled is set. > > + */ > > +static inline void on_each_cpu(smp_call_func_t fun

[PATCH] net/mlx5: fix -Wtype-limits compilation warnings

2019-07-22 Thread Qian Cai
The commit b9a7ba556207 ("net/mlx5: Use event mask based on device capabilities") introduced a few compilation warnings due to it bumps MLX5_EVENT_TYPE_MAX from 0x27 to 0x100 which is always greater than an "struct {mlx5_eqe|mlx5_nb}.type" that is an "u8". drivers/net/ethernet/mellanox/mlx5/core/e

Re: [PATCH -next] infiniband: siw: remove set but not used variables 'rv'

2019-07-22 Thread Jason Gunthorpe
On Fri, Jul 19, 2019 at 09:29:38AM +0800, Mao Wenan wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/infiniband/sw/siw/siw_cm.c: In function siw_cep_set_inuse: > drivers/infiniband/sw/siw/siw_cm.c:223:6: warning: variable rv set but not > used [-Wunused-but-set-variable] > > I

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Nadav Amit
> On Jul 22, 2019, at 11:21 AM, Peter Zijlstra wrote: > > On Thu, Jul 18, 2019 at 05:58:29PM -0700, Nadav Amit wrote: >> +/* >> + * Call a function on all processors. May be used during early boot while >> + * early_boot_irqs_disabled is set. >> + */ >> +static inline void on_each_cpu(smp_call_f

Re: [5.2 REGRESSION] Generic vDSO breaks seccomp-enabled userspace on i386

2019-07-22 Thread Thomas Gleixner
On Mon, 22 Jul 2019, Kees Cook wrote: > On Fri, Jul 19, 2019 at 01:40:13PM -0400, Andy Lutomirski wrote: > > > On Jul 19, 2019, at 1:03 PM, Sean Christopherson > > > wrote: > > > > > > The generic vDSO implementation, starting with commit > > > > > > 7ac870747988 ("x86/vdso: Switch to generic

Re: [PATCH 1/3] ACPI: Remove acpi_has_method() call from acpi_adxl.c

2019-07-22 Thread Bjorn Helgaas
[+cc Tony (original author), Borislav (merged original patch)] On Mon, Jul 22, 2019 at 10:31:11AM +0200, Rafael J. Wysocki wrote: > On Mon, Jul 22, 2019 at 4:36 AM Kelsey Skunberg > wrote: > > > > acpi_check_dsm() will already return an error if the DSM method does not > > exist. Checking if the

Re: [PATCH v3 3/9] x86/mm/tlb: Open-code on_each_cpu_cond_mask() for tlb_is_not_lazy()

2019-07-22 Thread Peter Zijlstra
On Thu, Jul 18, 2019 at 05:58:31PM -0700, Nadav Amit wrote: > +static DEFINE_PER_CPU(cpumask_t, flush_tlb_mask); I'm thinking it should be possible to allocate this before we switch to SMP, no? cpumask_t really should not be used wherever possible.

Re: [RFC PATCH] string.h: Add stracpy/stracpy_pad (was: Re: [PATCH] checkpatch: Added warnings in favor of strscpy().)

2019-07-22 Thread Matthew Wilcox
On Mon, Jul 22, 2019 at 10:58:15AM -0700, Joe Perches wrote: > On Mon, 2019-07-22 at 10:43 -0700, Joe Perches wrote: > > On Mon, 2019-07-22 at 10:33 -0700, Kees Cook wrote: > > > On Thu, Jul 04, 2019 at 05:15:57PM -0700, Joe Perches wrote: > > > > On Thu, 2019-07-04 at 13:46 -0700, Joe Perches wrot

[PATCH] mfd: da9063: remove now unused platform_data

2019-07-22 Thread Wolfram Sang
All preparational patches have been applied, we can now remove the include file for platform_data. Yiha! Signed-off-by: Wolfram Sang --- include/Kbuild | 1 - include/linux/mfd/da9063/pdata.h | 60 2 files changed, 61 deletions(-) delete mode

[PATCH 2/4] stacktrace: Constify 'entries' arguments

2019-07-22 Thread Bart Van Assche
Make it clear to humans and to the compiler that the stack trace ('entries') arguments are not modified. Cc: Thomas Gleixner Cc: Will Deacon Cc: Waiman Long Signed-off-by: Bart Van Assche --- include/linux/stacktrace.h | 4 ++-- kernel/stacktrace.c| 4 ++-- 2 files changed, 4 insertio

Re: [PATCH] power: sysfs: Remove wakeup_abort_count attribute.

2019-07-22 Thread Greg KH
On Mon, Jul 22, 2019 at 10:04:07AM -0700, Ravi Chandra Sadineni wrote: > wakeup_abort_count and wakeup_count sysfs entries print the > same (wakeup_count) attribute. This patch removes the duplicate > wakeup_abort_count sysfs entry. > > Signed-off-by: Ravi Chandra Sadineni > --- > Documentation/

[PATCH 3/4] locking/lockdep: Reduce space occupied by stack traces

2019-07-22 Thread Bart Van Assche
Although commit 669de8bda87b ("kernel/workqueue: Use dynamic lockdep keys for workqueues") unregisters dynamic lockdep keys when a workqueue is destroyed, a side effect of that commit is that all stack traces associated with the lockdep key are leaked when a workqueue is destroyed. Fix this by stor

[PATCH 0/4] video: of: display_timing: Adjust err printing of of_get_display_timing()

2019-07-22 Thread Douglas Anderson
As reported by Sam Ravnborg [1], after commit b8a2948fa2b3 ("drm/panel: simple: Add ability to override typical timing") we now see a pointless error message printed on every boot for many systems. Let's fix that by adjusting who is responsible for printing error messages when of_get_display_timing

[PATCH 4/4] locking/lockdep: Report more stack trace statistics

2019-07-22 Thread Bart Van Assche
Report the number of stack traces and the number of stack trace hash chains. These two numbers are useful because these allow to estimate the number of stack trace hash collisions. Cc: Thomas Gleixner Cc: Will Deacon Cc: Waiman Long Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c

[PATCH 1/4] locking/lockdep: Make it clear that what lock_class::key points at is not modified

2019-07-22 Thread Bart Van Assche
This patch does not change the behavior of the lockdep code. Cc: Thomas Gleixner Cc: Will Deacon Cc: Waiman Long Signed-off-by: Bart Van Assche --- include/linux/lockdep.h| 2 +- kernel/locking/lockdep.c | 2 +- kernel/locking/lockdep_internals.h | 3 ++- kernel/locking/

[PATCH 0/4] Lockdep: Reduce stack trace memory usage

2019-07-22 Thread Bart Van Assche
Hi Peter, An unfortunate side effect of commit 669de8bda87b ("kernel/workqueue: Use dynamic lockdep keys for workqueues") is that all stack traces associated with the lockdep key are leaked when a workqueue is destroyed. Fix this by storing each unique stack trace once. Please consider this patch

Re: [PATCH] power:sysfs: Expose device wakeup_event_count.

2019-07-22 Thread Greg KH
On Mon, Jul 22, 2019 at 11:02:58AM -0700, Ravi Chandra Sadineni wrote: > Device level event_count can help user level daemon to track if a > praticular device has seen an wake interrupt during a suspend resume > cycle. Thus expose it via sysfs. > > Signed-off-by: Ravi Chandra Sadineni > --- > Do

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Peter Zijlstra
On Thu, Jul 18, 2019 at 05:58:29PM -0700, Nadav Amit wrote: > +/* > + * Call a function on all processors. May be used during early boot while > + * early_boot_irqs_disabled is set. > + */ > +static inline void on_each_cpu(smp_call_func_t func, void *info, int wait) > +{ > + on_each_cpu_mask(c

Re: [PATCH 1/2] drivers: qcom: rpmh-rsc: simplify TCS locking

2019-07-22 Thread Stephen Boyd
Quoting Lina Iyer (2019-07-22 09:20:03) > On Fri, Jul 19 2019 at 12:20 -0600, Stephen Boyd wrote: > >Quoting Lina Iyer (2019-07-01 08:29:06) > >> From: "Raju P.L.S.S.S.N" > >> > >> tcs->lock was introduced to serialize access with in TCS group. But > >> even without tcs->lock, drv->lock is serving

Re: [PATCH] libata: zpodd: Fix small read overflow in zpodd_get_mech_type()

2019-07-22 Thread Kees Cook
On Mon, Jul 22, 2019 at 10:40:40AM -0700, Nick Desaulniers wrote: > On Fri, Jul 19, 2019 at 8:41 PM Kees Cook wrote: > > > > Much like commit 18c9a99bce2a ("libata: zpodd: small read overflow in > > eject_tray()"), this fixes a cdb[] buffer length, this time in > > zpodd_get_mech_type(): > > > > W

Re: [PATCH v3 1/9] smp: Run functions concurrently in smp_call_function_many()

2019-07-22 Thread Peter Zijlstra
On Fri, Jul 19, 2019 at 11:23:06AM -0700, Dave Hansen wrote: > On 7/18/19 5:58 PM, Nadav Amit wrote: > > @@ -624,16 +622,11 @@ EXPORT_SYMBOL(on_each_cpu); > > void on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, > > void *info, bool wait) > > { > > - int c

Re: [PATCH 2/2] HID: core: only warn once of oversize hid report

2019-07-22 Thread Joshua Clayton
On Mon, Jul 22, 2019 at 11:23 AM Joe Perches wrote: > > On Mon, 2019-07-22 at 10:36 -0600, stillcompil...@gmail.com wrote: > > On HP spectre x360 convertible the message: > > hid-sensor-hub 001F:8087:0AC2.0002: hid_field_extract() called with n (192) > > > 32! (kworker/1:2) > > is continually pri

[PATCH v2] mtd: maps: pismo: simplify getting the adapter of a client

2019-07-22 Thread Wolfram Sang
We have a dedicated pointer for that, so use it. Much easier to read and less computation involved. Signed-off-by: Wolfram Sang --- Change since V1: * remove 'adapter' variable entirely drivers/mtd/maps/pismo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/

[PATCH] leds: is31fl319x: simplify getting the adapter of a client

2019-07-22 Thread Wolfram Sang
We have a dedicated pointer for that, so use it. Much easier to read and less computation involved. Signed-off-by: Wolfram Sang --- drivers/leds/leds-is31fl319x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/leds/leds-is31fl319x.c b/drivers/leds/leds-is31fl319x.c

Re: [PATCH] drm/amdkfd/kfd_mqd_manager_v10: Avoid fall-through warning

2019-07-22 Thread Liu, Shaoyun
Reviewed-by:  shaoyunl On 2019-07-22 1:47 p.m., Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, this patch silences > the following warning: > > drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_mqd_manager_v10.c: In function > ‘mqd_manager_init_v10’: > ./include/linux/dyn

[PATCH] regulator: act8865: support regulator-pull-down property

2019-07-22 Thread Michał Mirosław
AC8865 has internal 1.5k pull-down resistor that can be enabled when LDO is shut down. Signed-off-by: Michał Mirosław --- * against broonie/regulator/for-next tree --- drivers/regulator/act8865-regulator.c | 45 --- 1 file changed, 33 insertions(+), 12 deletions(-) dif

Re: 5.3-rc1 panic in dma_direct_max_mapping_size

2019-07-22 Thread Adam Williamson
Seeing something similar but not identical here. I updated a Fedora Rawhide virt-manager/libvirt VM (installed with the previous Fedora kernel build) to the Fedora rc1 kernel build, and it doesn't boot any more, with this trace: [3.018311] scsi host8: Virtio SCSI HBA [3.019234] BUG: kernel

[PATCH] power:sysfs: Expose device wakeup_event_count.

2019-07-22 Thread Ravi Chandra Sadineni
Device level event_count can help user level daemon to track if a praticular device has seen an wake interrupt during a suspend resume cycle. Thus expose it via sysfs. Signed-off-by: Ravi Chandra Sadineni --- Documentation/ABI/testing/sysfs-devices-power | 11 ++ drivers/base/power/sysfs

[PATCH RESEND] HID: fix error message in hid_open_report()

2019-07-22 Thread Michał Mirosław
On HID report descriptor parsing error the code displays bogus pointer instead of error offset (subtracts start=NULL from end). Make the message more useful by displaying correct error offset and include total buffer size for reference. This was carried over from ancient times - "Fixed" commit jus

Re: [alsa-devel][PATCH] Signed-off-by: lsh <410860...@qq.com>

2019-07-22 Thread John Stultz
On Fri, Jul 19, 2019 at 11:35 PM lsh wrote: > > From: lsh <410860...@qq.com> > > Modification of leap seconds from 58 59 59 00 to 58 59 00 00 In the future, on other patches, you should provide a rational for *why* you are submitting this change, not what the change does. As for this patch, it w

Re: [PATCH] checkpatch: Added warnings in favor of strscpy().

2019-07-22 Thread Joe Perches
On Mon, 2019-07-22 at 10:50 -0700, Kees Cook wrote: > On Sat, Jul 06, 2019 at 02:42:04PM +0200, Stephen Kitt wrote: > > On Tue, 2 Jul 2019 10:25:04 -0700, Kees Cook wrote: > > > On Sat, Jun 29, 2019 at 06:15:37PM +0200, Stephen Kitt wrote: > > > > On Fri, 28 Jun 2019 17:25:48 +0530, Nitin Gote >

Re: [PATCH v2] powerpc: slightly improve cache helpers

2019-07-22 Thread Segher Boessenkool
On Mon, Jul 22, 2019 at 10:21:07AM -0700, Nick Desaulniers wrote: > On Sun, Jul 21, 2019 at 11:19 PM Segher Boessenkool > wrote: > > On Sun, Jul 21, 2019 at 07:41:40PM -0700, Nathan Chancellor wrote: > > > On Sun, Jul 21, 2019 at 01:01:50PM -0500, Segher Boessenkool wrote: > > > > On Sun, Jul 21,

[PATCH 2/2] MIPS: dts: ingenic: Add 'cpus' node

2019-07-22 Thread Paul Cercueil
Add 'cpus' node to the jz4740.dtsi, jz4770.dtsi, jz4780.dtsi files. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 19 +++ arch/mips/boot/dts/ingenic/jz4770.dtsi | 29 arch/mips/boot/dts/ingenic/jz4780.dtsi | 47 ++ 3 fi

[PATCH 1/2] dt/bindings: mips: Document Ingenic SoCs binding

2019-07-22 Thread Paul Cercueil
Document the available properties for the root node and the cpu nodes of the devicetree for the Ingenic SoCs. Signed-off-by: Paul Cercueil --- .../devicetree/bindings/mips/ingenic-socs.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bin

Re: [PATCH 3/3] sgi-gru: Use __get_user_pages_fast in atomic_pte_lookup

2019-07-22 Thread Bharath Vedartham
On Sun, Jul 21, 2019 at 07:32:36PM -0700, John Hubbard wrote: > On 7/21/19 8:58 AM, Bharath Vedartham wrote: > > *pte_lookup functions get the physical address for a given virtual > > address by getting a physical page using gup and use page_to_phys to get > > the physical address. > > > > Current

Re: [PATCH 2/3] sgi-gru: Remove CONFIG_HUGETLB_PAGE ifdef

2019-07-22 Thread Bharath Vedartham
On Sun, Jul 21, 2019 at 09:20:38PM -0600, William Kucharski wrote: > I suspect I'm being massively pedantic here, but the comments for > atomic_pte_lookup() note: > > * Only supports Intel large pages (2MB only) on x86_64. > *ZZZ - hugepage support is incomplete > > That makes me wonder ho

Re: [PATCH] checkpatch: Added warnings in favor of strscpy().

2019-07-22 Thread Kees Cook
On Sat, Jul 06, 2019 at 02:42:04PM +0200, Stephen Kitt wrote: > On Tue, 2 Jul 2019 10:25:04 -0700, Kees Cook wrote: > > On Sat, Jun 29, 2019 at 06:15:37PM +0200, Stephen Kitt wrote: > > > On Fri, 28 Jun 2019 17:25:48 +0530, Nitin Gote > > > wrote: > > > > 1. Deprecate strcpy() in favor of strsc

Re: [PATCH] [v3] xen: avoid link error on ARM

2019-07-22 Thread Stefano Stabellini
On Mon, 22 Jul 2019, Arnd Bergmann wrote: > Building the privcmd code as a loadable module on ARM, we get > a link error due to the private cache management functions: > > ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined! > > Move the code into a new that is always built in wh

Re: [PATCH 1/3] sgi-gru: Convert put_page() to get_user_page*()

2019-07-22 Thread Bharath Vedartham
On Sun, Jul 21, 2019 at 07:25:31PM -0700, John Hubbard wrote: > On 7/21/19 8:58 AM, Bharath Vedartham wrote: > > For pages that were retained via get_user_pages*(), release those pages > > via the new put_user_page*() routines, instead of via put_page(). > > > > This is part a tree-wide conversion

[PATCH 37/37] perf build: Do not use -Wshadow on gcc < 4.8

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As it is too strict, see https://lkml.org/lkml/2006/11/28/253 and https://gcc.gnu.org/gcc-4.8/changes.html, that takes into account Linus's comments (search for Wshadow) for the reasoning about -Wshadow not being interesting before gcc 4.8. Acked-by: Andrii Nakryik

[PATCH 32/37] perf trace: Preallocate the syscall table

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll continue reading its details from tracefs as we need it, but preallocate the whole thing otherwise we may realloc and end up with pointers to the previous buffer. I.e. in an upcoming algorithm we'll look for syscalls that have function signatures that are sim

[PATCH 33/37] perf trace: Reuse BPF augmenters from syscalls with similar args signature

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We have an augmenter for the "open" syscall, which has just one pointer, in the first argument, a "const char *", so any other syscall that has just one pointer and that is the first can reuse the "open" BPF augmenter program. Even more, syscalls that get two point

[PATCH 15/37] perf augmented_raw_syscalls: Rename augmented_args_filename to augmented_args_payload

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It'll get other stuff in there than just filenames, starting with sockaddr for 'connect' and 'bind'. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-bsexidtsn91ehdpzcd6n5...@git.kernel.org Signed-o

[PATCH 35/37] perf probe: Set pev->nargs to zero after freeing pev->args entries

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that, when perf_add_probe_events() fails, like in: # perf probe icmp_rcv:64 "type=icmph->type" Failed to find 'icmph' in this function. Error: Failed to add events. Segmentation fault (core dumped) # We don't segfault. clear_perf_probe_event() was

[PATCH 36/37] perf probe: Avoid calling freeing routine multiple times for same pointer

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When perf_add_probe_events() we call cleanup_perf_probe_events() for the pev pointer it receives, then, as part of handling this failure the main 'perf probe' goes on and calls cleanup_params() and that will again call cleanup_perf_probe_events()for the same pointer

[PATCH 34/37] perf trace: Add "sendfile64" alias to the "sendfile" syscall

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were looking in tracefs for: /sys/kernel/debug/tracing/events/syscalls/sys_enter_sendfile/format when what is there is just /sys/kernel/debug/tracing/events/syscalls/sys_enter_sendfile/format Its the same id, 40 in x86_64, so just add an alias and let the

[PATCH 31/37] perf trace: Mark syscall ids that are not allocated to avoid unnecessary error messages

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo There are holes in syscall tables with IDs not associated with any syscall, mark those when trying to read information for syscalls, which could happen when iterating thru all syscalls from 0 to the highest numbered syscall id. Cc: Adrian Hunter Cc: Jiri Olsa Cc:

[PATCH 30/37] perf trace: Forward error codes when trying to read syscall info

2019-07-22 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We iterate thru the syscall table produced from the kernel syscall tables reading info, propagate the error and add to the debug message. This helps in fixing further bugs, such as failing to read the "sendfile" syscall info when it really should try the aliasm "se

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