Re: [PATCH] perf parse-events: Use strcmp to compare the PMU name

2020-05-07 Thread Ian Rogers
On Thu, May 7, 2020 at 9:46 AM Arnaldo Carvalho de Melo wrote: > > Em Thu, Apr 30, 2020 at 09:38:34PM +0800, Jin, Yao escreveu: > > Hi John, Jiri, > > > > On 4/30/2020 7:48 PM, John Garry wrote: > > > On 30/04/2020 12:15, Jiri Olsa wrote: > > > > > > + > > > > > > > On Thu, Apr 30, 2020 at 09:54:1

[PATCH 10/14] ARM: dts: Configure system timers for omap3

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

[PATCH 12/14] ARM: dts: Configure system timers for omap2

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

[PATCH 08/14] ARM: dts: Configure system timers for omap4

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

[PATCH 14/14] bus: ti-sysc: Timers no longer need legacy quirk handling

2020-05-07 Thread Tony Lindgren
As timers no longer need legacy quirk handling, let's move them to the CONFIG_DEBUG section to make it easier to see which drivers still need more work. Let's also add detection for few more older timer revisions while at it as that makes CONFIG_DEBUG output easier to read with proper names. Cc:

[PATCH 09/14] ARM: dts: Configure system timers for omap5 and dra7

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

[PATCH 01/14] clocksource/drivers/timer-ti-32k: Add support for initializing directly

2020-05-07 Thread Tony Lindgren
Let's allow probing the 32k counter directly based on devicetree data to prepare for dropping the related legacy platform code. Let's only do this if the parent node is compatible with ti-sysc to make sure we have the related devicetree data available. Let's also show the 32k counter information b

[PATCH 02/14] clocksource/drivers/timer-ti-dm: Add clockevent and clocksource support

2020-05-07 Thread Tony Lindgren
We can move the TI dmtimer clockevent and clocksource to live under drivers/clocksource if we rely only on the clock framework, and handle the module configuration directly in the clocksource driver based on the device tree data. This removes the early dependency with system timers to the intercon

[PATCH 11/14] ARM: dts: Configure system timers for ti81xx

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

[PATCH 04/14] bus: ti-sysc: Ignore timer12 on secure omap3

2020-05-07 Thread Tony Lindgren
Some early omap3 boards use timer12 for system timer, but for secure SoCs like on n900 it's not accessible. Likely we will be configuring unavailable devices for other SoCs too based on runtime SoC detection, so let's use a switch to start with. Cc: Grygorii Strashko Cc: Keerthy Cc: Lokesh Vutla

[PATCHv3 00/14] Update omaps to use drivers/clocksource timers

2020-05-07 Thread Tony Lindgren
Hi all, Here's v3 series to udpate omaps to use drivers/clocksource timers for the 32k counter and dmtimer, and to remove the old legacy platform code. Please review and test. I've updated the timer-ti-dm-systimer.c patch based on the comments from Daniel and Rob, and added support for selecting

[PATCH 06/14] ARM: dts: Configure system timers for am335x

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

[PATCH 03/14] clk: ti: dm816: enable sysclk6_ck on init

2020-05-07 Thread Tony Lindgren
We need sysclk6_ck enabled early as it is needed by l4_ls and system timers early on boot. This removes the dependency of system timers to the interconnect related code that can be then probed later on when suitable at module_init time. Cc: linux-...@vger.kernel.org Cc: Grygorii Strashko Cc: Mich

[PATCH 05/14] ARM: OMAP2+: Add omap_init_time_of()

2020-05-07 Thread Tony Lindgren
This allows us to move the SoCs to probe system timers one SoC at at time. As arch/arm/mach-omap2/timer.c will be eventually gone, let's just add omap_init_time_of() to board-generic.c directly. Cc: Grygorii Strashko Cc: Keerthy Cc: Lokesh Vutla Cc: Rob Herring Cc: Tero Kristo Signed-off-by:

Re: [PATCH] MAINTAINER: Update my email address

2020-05-07 Thread Joe Perches
On Thu, 2020-05-07 at 12:08 -0500, himanshu.madh...@oracle.com wrote: > > On 5/7/20 11:57 AM, Joe Perches wrote: > > On Thu, 2020-05-07 at 11:12 -0500, Himanshu Madhani wrote: > > > I do not have access to my @marvell.com email ID anymore. > > > Lets map my new email address correctly in .mailmap

[PATCH 07/14] ARM: dts: Configure system timers for am437x

2020-05-07 Thread Tony Lindgren
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on th

Re: [patch V4 part 4 15/24] x86/db: Split out dr6/7 handling

2020-05-07 Thread Alexandre Chartre
On 5/5/20 3:49 PM, Thomas Gleixner wrote: From: Peter Zijlstra DR6/7 should be handled before nmi_enter() is invoked and restore after nmi_exit() to minimize the exposure. Split it out into helper inlines and bring it into the correct order. Signed-off-by: Peter Zijlstra Signed-off-by: Tho

Re: [PATCH 1/2] perf: Fix POWER9 metric 'lsu_other_stall_cpi'

2020-05-07 Thread Ian Rogers
On Thu, May 7, 2020 at 9:48 AM Arnaldo Carvalho de Melo wrote: > > Em Thu, May 07, 2020 at 11:28:57AM -0500, Paul A. Clarke escreveu: > > From: "Paul A. Clarke" > > > > The metric definition is too long for the current value of EXPR_MAX_OTHER. > > Increase the value EXPR_MAX_OTHER sufficiently to

Re: [PATCH v2 00/91] drm/vc4: Support BCM2711 Display Pipelin

2020-05-07 Thread Maxime Ripard
On Mon, May 04, 2020 at 02:35:08PM +0800, Jian-Hong Pan wrote: > Maxime Ripard 於 2020年4月29日 週三 上午12:21寫道: > > > > Hi, > > > > On Mon, Apr 27, 2020 at 03:23:42PM +0800, Jian-Hong Pan wrote: > > > Hi Maxime, > > > > > > Thanks for your V2 patch series! I'm testing it. > > > > > > This patch series

Re: [PATCH V2] mmc: core: Fix recursive locking issue in CQE recovery path

2020-05-07 Thread Adrian Hunter
On 7/05/20 7:15 pm, Veerabhadrarao Badiganti wrote: > From: Sarthak Garg > > Consider the following stack trace > > -001|raw_spin_lock_irqsave > -002|mmc_blk_cqe_complete_rq > -003|__blk_mq_complete_request(inline) > -003|blk_mq_complete_request(rq) > -004|mmc_cqe_timed_out(inline) > -004|mmc_mq

[PATCH] PCI: brcmstb: Assert fundamental reset on initialization

2020-05-07 Thread Nicolas Saenz Julienne
While preparing the driver for upstream this detail was missed. If not asserted during the initialization process, devices connected on the bus will not be made aware of the internal reset happening. This, potentially resulting in unexpected behavior. Fixes: c0452137034b ("PCI: brcmstb: Add Broad

Re: [PATCH v1 2/2] phy: phy-cadence-torrent: Use PHY kernel APIs to set PHY attributes

2020-05-07 Thread Maxime Ripard
Hi! On Thu, Apr 30, 2020 at 02:06:20PM +, Swapnil Kashinath Jakhade wrote: > Thank you so much for reviewing the patch. Please see inline reply below. > > > -Original Message- > > From: Maxime Ripard > > Sent: Wednesday, April 29, 2020 5:58 PM > > To: Yuti Suresh Amonkar > > Cc: lin

Re: Kmemleak infrastructure improvement for task_struct leaks and call_rcu()

2020-05-07 Thread Catalin Marinas
On Wed, May 06, 2020 at 12:22:37PM -0400, Qian Cai wrote: > What do you think about adding some aux call traces for kmemleak in > general? For example, if the tracking object is a task struct, it > would save call traces for the first and last call of both > get_task_struct() and put_task_struct().

Re: Kmemleak infrastructure improvement for task_struct leaks and call_rcu()

2020-05-07 Thread Catalin Marinas
On Wed, May 06, 2020 at 10:40:19AM -0700, Paul E. McKenney wrote: > On Wed, May 06, 2020 at 12:22:37PM -0400, Qian Cai wrote: > > == call_rcu() leaks == > > Another issue that might be relevant is that it seems sometimes, > > kmemleak will give a lot of false positives (hundreds) because the > > me

Re: [patch V4 part 3 04/29] x86/traps: Make interrupt enable/disable symmetric in C code

2020-05-07 Thread Thomas Gleixner
Alexandre Chartre writes: > On 5/5/20 3:43 PM, Thomas Gleixner wrote: >> Traps enable interrupts conditionally but rely on the ASM return code to >> disable them again. That results in redundant interrupt disable and trace >> calls. >> >> Make the trap handlers disable interrupts before returnin

[PATCH] bus: mhi: core: Add soc_reset sysfs

2020-05-07 Thread Jeffrey Hugo
The MHI bus supports a standardized hardware reset, which is known as the "SoC Reset". This reset is similar to the reset sysfs for PCI devices - a hardware mechanism to reset the state back to square one. The MHI SoC Reset is described in the spec as a reset of last resort. If some unrecoverabl

Re: [PATCH] x86/fpu/xstate: Clear uninitialized xstate areas in core dump

2020-05-07 Thread Yu-cheng Yu
On Thu, 2020-05-07 at 09:52 -0700, Dave Hansen wrote: > On 5/7/20 9:49 AM, Yu-cheng Yu wrote: > > In a core dump, copy_xstate_to_kernel() copies only enabled user xfeatures > > to a kernel buffer without touching areas for disabled xfeatures. However, > > those uninitialized areas may contain rand

Re: [PATCH] x86/fpu/xstate: Clear uninitialized xstate areas in core dump

2020-05-07 Thread Yu-cheng Yu
On Thu, 2020-05-07 at 18:56 +0200, Sebastian Andrzej Siewior wrote: > On 2020-05-07 09:49:04 [-0700], Yu-cheng Yu wrote: > > In a core dump, copy_xstate_to_kernel() copies only enabled user xfeatures > > to a kernel buffer without touching areas for disabled xfeatures. However, > > those uninitial

Re: [PATCH] MAINTAINER: Update my email address

2020-05-07 Thread himanshu . madhani
On 5/7/20 11:57 AM, Joe Perches wrote: On Thu, 2020-05-07 at 11:12 -0500, Himanshu Madhani wrote: I do not have access to my @marvell.com email ID anymore. Lets map my new email address correctly in .mailmap Bad patch subject, this is a .mailmap patch. Maybe [PATCH] .mailmap: Update addres

Re: [PATCH RFC tip/core/rcu] Add shrinker to shift to fast/inefficient GP mode

2020-05-07 Thread Paul E. McKenney
On Thu, May 07, 2020 at 01:00:06PM -0400, Johannes Weiner wrote: > On Wed, May 06, 2020 at 05:55:35PM -0700, Andrew Morton wrote: > > On Wed, 6 May 2020 17:42:40 -0700 "Paul E. McKenney" > > wrote: > > > > > This commit adds a shrinker so as to inform RCU when memory is scarce. > > > RCU respond

ATENCIÓN

2020-05-07 Thread Sistemas Administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

[PATCH USB v3 3/5] usb: raw-gadget: fix gadget endpoint selection

2020-05-07 Thread Andrey Konovalov
Currently automatic gadget endpoint selection based on required features doesn't work. Raw Gadget tries iterating over the list of available endpoints and finding one that has the right direction and transfer type. Unfortunately selecting arbitrary gadget endpoints (even if they satisfy feature req

[PATCH USB v3 5/5] usb: raw-gadget: documentation updates

2020-05-07 Thread Andrey Konovalov
Mention the issue with fixed UDC addresses. Links external examples and test suite. Add more implmenetation details and potential improvements. Signed-off-by: Andrey Konovalov --- Documentation/usb/raw-gadget.rst | 30 -- 1 file changed, 28 insertions(+), 2 deletion

[PATCH USB v3 1/5] usb: raw-gadget: fix return value of ep read ioctls

2020-05-07 Thread Andrey Konovalov
They must return the number of bytes transferred during the data stage. Fixes: 068fbff4f860 ("usb: raw-gadget: Fix copy_to/from_user() checks") Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") Signed-off-by: Andrey Konovalov --- drivers/usb/gadget/legacy/raw_gadget.c | 8 ++-- 1

[PATCH USB v3 4/5] usb: raw-gadget: support stalling/halting/wedging endpoints

2020-05-07 Thread Andrey Konovalov
Raw Gadget is currently unable to stall/halt/wedge gadget endpoints, which is required for proper emulation of certain USB classes. This patch adds a few more ioctls: - USB_RAW_IOCTL_EP0_STALL allows to stall control endpoint #0 when there's a pending setup request for it. - USB_RAW_IOCTL_SET/C

[PATCH USB v3 2/5] usb: raw-gadget: improve uapi headers comments

2020-05-07 Thread Andrey Konovalov
Fix typo "trasferred" => "transferred". Don't call USB requests URBs. Fix comment style. Signed-off-by: Andrey Konovalov --- include/uapi/linux/usb/raw_gadget.h | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/include/uapi/linux/usb/raw_gadget.h b/in

[PATCH USB v3 0/5] usb: raw-gadget: fixes for 5.7-rcN

2020-05-07 Thread Andrey Konovalov
I've put all raw-gadget fixes in a series, please ignore the previous patches. I've dropped the patches that change the ABI for now (those need more testing anyway). Changes in v3: - Dropped ABI breaking changes for . - A few more comment fixes for uapi headers. - Updated documentation. Andrey K

Re: [patch V4 part 2 05/18] x86/entry: Move irq tracing on syscall entry to C-code

2020-05-07 Thread Thomas Gleixner
Thomas Gleixner writes: > Thomas Gleixner writes: >> Alexandre Chartre writes: >>> On 5/5/20 3:41 PM, Thomas Gleixner wrote: - /* - * User mode is traced as though IRQs are on, and the interrupt - * gate turned them off. - */ - TRACE_IRQS_OFF - movq

Re: [PATCH 05/11] net: core: provide devm_register_netdev()

2020-05-07 Thread Bartosz Golaszewski
czw., 7 maj 2020 o 18:53 Jakub Kicinski napisał(a): > > On Thu, 7 May 2020 11:25:01 +0200 Bartosz Golaszewski wrote: > > śr., 6 maj 2020 o 19:12 Jakub Kicinski napisał(a): > > > > > > On Wed, 6 May 2020 08:39:47 +0200 Bartosz Golaszewski wrote: > > > > wt., 5 maj 2020 o 19:31 Jakub Kicinski napi

Re: [PATCH v2 09/11] perf record: implement control commands handling

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, May 07, 2020 at 11:58:45AM +0300, Alexey Budankov escreveu: > > On 06.05.2020 23:23, Arnaldo Carvalho de Melo wrote: > > Em Wed, May 06, 2020 at 09:29:05PM +0300, Alexey Budankov escreveu: > >> > >> Implement handling of 'enable' and 'disable' control commands > >> coming from control file

Re: [PATCH 06/11] net: ethernet: mtk-eth-mac: new driver

2020-05-07 Thread Bartosz Golaszewski
czw., 7 maj 2020 o 15:16 Andrew Lunn napisał(a): > > On Thu, May 07, 2020 at 12:50:15PM +0200, Bartosz Golaszewski wrote: > > czw., 7 maj 2020 o 11:46 Mark-MC.Lee napisał(a): > > > > > > Hi Bartosz: > > > I think the naming of this driver and its Kconfig option is too generic > > > that will con

Re: [PATCH v2 02/11] perf evlist: implement control command handling functions

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, May 07, 2020 at 11:32:53AM +0300, Alexey Budankov escreveu: > > On 06.05.2020 23:21, Arnaldo Carvalho de Melo wrote: > > Em Wed, May 06, 2020 at 09:19:22PM +0300, Alexey Budankov escreveu: > >> > >> Implement functions of initialization, finalization and processing > >> of control commands

Re: [PATCH v4 2/6] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2020-05-07 Thread Rajendra Nayak
On 5/3/2020 5:34 PM, Rajendra Nayak wrote: geni spi needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak

Re: [PATCH RFC tip/core/rcu] Add shrinker to shift to fast/inefficient GP mode

2020-05-07 Thread Johannes Weiner
On Wed, May 06, 2020 at 05:55:35PM -0700, Andrew Morton wrote: > On Wed, 6 May 2020 17:42:40 -0700 "Paul E. McKenney" > wrote: > > > This commit adds a shrinker so as to inform RCU when memory is scarce. > > RCU responds by shifting into the same fast and inefficient mode that is > > used in the

Re: [PATCH] memcg: effective memory.high reclaim for remote charging

2020-05-07 Thread Shakeel Butt
On Thu, May 7, 2020 at 9:47 AM Michal Hocko wrote: > > On Thu 07-05-20 09:33:01, Shakeel Butt wrote: > [...] > > @@ -2600,8 +2596,23 @@ static int try_charge(struct mem_cgroup *memcg, > > gfp_t gfp_mask, > > schedule_work(&memcg->high_work); > >

Re: [PATCH v10 05/26] x86/cet/shstk: Add Kconfig option for user-mode Shadow Stack

2020-05-07 Thread Yu-cheng Yu
On Thu, 2020-05-07 at 08:55 -0700, Dave Hansen wrote: > On 4/29/20 3:07 PM, Yu-cheng Yu wrote: > > +config X86_INTEL_SHADOW_STACK_USER > > + prompt "Intel Shadow Stacks for user-mode" > > + def_bool n > > + depends on CPU_SUP_INTEL && X86_64 > > + depends on AS_HAS_SHADOW_STACK > > + sele

Re: [PATCH] MAINTAINER: Update my email address

2020-05-07 Thread Joe Perches
On Thu, 2020-05-07 at 11:12 -0500, Himanshu Madhani wrote: > I do not have access to my @marvell.com email ID anymore. > Lets map my new email address correctly in .mailmap Bad patch subject, this is a .mailmap patch. Maybe [PATCH] .mailmap: Update address of Himanshu Madhani > Signed-off-by: Hi

Re: [PATCH 2/2] perf: Add missing metrics to POWER9 'cpi_breakdown'

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, May 07, 2020 at 11:28:58AM -0500, Paul A. Clarke escreveu: > From: "Paul A. Clarke" > > Add the following metrics to the POWER9 'cpi_breakdown' metricgroup: > - ict_noslot_br_mpred_cpi > - ict_noslot_br_mpred_icmiss_cpi > - ict_noslot_cyc_other_cpi > - ict_noslot_disp_held_cpi > - ict_nos

Re: [PATCH] x86/fpu/xstate: Clear uninitialized xstate areas in core dump

2020-05-07 Thread Sebastian Andrzej Siewior
On 2020-05-07 09:49:04 [-0700], Yu-cheng Yu wrote: > In a core dump, copy_xstate_to_kernel() copies only enabled user xfeatures > to a kernel buffer without touching areas for disabled xfeatures. However, > those uninitialized areas may contain random data, which is then written to > the core dump

Re: [PATCH 05/11] net: core: provide devm_register_netdev()

2020-05-07 Thread Jakub Kicinski
On Thu, 7 May 2020 11:25:01 +0200 Bartosz Golaszewski wrote: > śr., 6 maj 2020 o 19:12 Jakub Kicinski napisał(a): > > > > On Wed, 6 May 2020 08:39:47 +0200 Bartosz Golaszewski wrote: > > > wt., 5 maj 2020 o 19:31 Jakub Kicinski napisał(a): > > > > > > > > On Tue, 5 May 2020 16:02:25 +0200 Ba

Re: [PATCH] x86/fpu/xstate: Clear uninitialized xstate areas in core dump

2020-05-07 Thread Dave Hansen
On 5/7/20 9:49 AM, Yu-cheng Yu wrote: > In a core dump, copy_xstate_to_kernel() copies only enabled user xfeatures > to a kernel buffer without touching areas for disabled xfeatures. However, > those uninitialized areas may contain random data, which is then written to > the core dump file and can

Re: [PATCH] [v2] ubsan, kcsan: don't combine sanitizer with kcov on clang

2020-05-07 Thread Marco Elver
On Thu, 7 May 2020 at 18:26, Arnd Bergmann wrote: > > Clang does not allow -fsanitize-coverage=trace-{pc,cmp} together > with -fsanitize=bounds or with ubsan: > > clang: error: argument unused during compilation: > '-fsanitize-coverage=trace-pc' [-Werror,-Wunused-command-line-argument] > clang: e

[PATCH] x86/fpu/xstate: Clear uninitialized xstate areas in core dump

2020-05-07 Thread Yu-cheng Yu
In a core dump, copy_xstate_to_kernel() copies only enabled user xfeatures to a kernel buffer without touching areas for disabled xfeatures. However, those uninitialized areas may contain random data, which is then written to the core dump file and can be read by a non-privileged user. Fix it by

Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Jacob Pan
On Thu, 7 May 2020 08:55:32 +0800 Lu Baolu wrote: > When a PASID is used for SVA by the device, it's possible that the > PASID entry is cleared before the device flushes all ongoing DMA > requests. The IOMMU should ignore the non-recoverable faults caused > by these requests. Perhaps be more spe

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-07 Thread Nathaniel McCallum
On Thu, May 7, 2020 at 1:03 AM Haitao Huang wrote: > > On Wed, 06 May 2020 17:14:22 -0500, Sean Christopherson > wrote: > > > On Wed, May 06, 2020 at 05:42:42PM -0400, Nathaniel McCallum wrote: > >> Tested on Enarx. This requires a patch[0] for v29 support. > >> > >> Tested-by: Nathaniel McCallum

Re: [patch V4 part 3 29/29] x86/entry/32: Convert IRET exception to IDTENTRY_SW

2020-05-07 Thread Alexandre Chartre
On 5/5/20 3:44 PM, Thomas Gleixner wrote: From: Thomas Gleixner Convert the IRET exception handler to IDTENTRY_SW. This is slightly different than the conversions of hardware exceptions as the IRET exception is invoked via an exception table when IRET faults. So it just uses the IDTENTRY_SW m

Re: [PATCH 1/2] perf: Fix POWER9 metric 'lsu_other_stall_cpi'

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, May 07, 2020 at 11:28:57AM -0500, Paul A. Clarke escreveu: > From: "Paul A. Clarke" > > The metric definition is too long for the current value of EXPR_MAX_OTHER. > Increase the value EXPR_MAX_OTHER sufficiently to allow > 'lsu_other_stall_cpi' to build properly. I already have a patch f

RE: [RFC][PATCH 1/3] evm: Move hooks outside LSM infrastructure

2020-05-07 Thread Roberto Sassu
> -Original Message- > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > On Thu, 2020-05-07 at 07:53 +, Roberto Sassu wrote: > > > -Original Message- > > > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > > > Sent: Wednesday, May 6, 2020 11:10 PM > > > To: Roberto Sassu ; > david.s

Re: [PATCH] memcg: effective memory.high reclaim for remote charging

2020-05-07 Thread Michal Hocko
On Thu 07-05-20 09:33:01, Shakeel Butt wrote: [...] > @@ -2600,8 +2596,23 @@ static int try_charge(struct mem_cgroup *memcg, gfp_t > gfp_mask, > schedule_work(&memcg->high_work); > break; > } > -

Re: [PATCH] perf parse-events: Use strcmp to compare the PMU name

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 30, 2020 at 09:38:34PM +0800, Jin, Yao escreveu: > Hi John, Jiri, > > On 4/30/2020 7:48 PM, John Garry wrote: > > On 30/04/2020 12:15, Jiri Olsa wrote: > > > > + > > > > > On Thu, Apr 30, 2020 at 09:54:18AM +0100, John Garry wrote: > > > > On 30/04/2020 09:45, Jiri Olsa wrote: > > >

[PATCH][next] ath11k: remove redundant initialization of pointer info

2020-05-07 Thread Colin King
From: Colin Ian King Pointer info is being assigned twice, once at the start of the function and secondly when it is just about to be accessed. Remove the redundant initialization and keep the original assignment to info that is close to the memcpy that uses it. Addresses-Coverity: ("Unused valu

Re: [PATCH v3] net: bpf: permit redirect from ingress L3 to egress L2 devices at near max mtu

2020-05-07 Thread Maciej Żenczykowski
(a) not clear why the max is SKB_MAX_ALLOC in the first place (this is PAGE_SIZE << 2, ie. 16K on x86), while lo mtu is 64k (b) hmm, if we're not redirecting, then exceeding the ingress device's mtu doesn't seem to be a problem. Indeed AFAIK this can already happen, some devices will round mtu up

Re: [PATCH] perf parse-events: Use strcmp to compare the PMU name

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 30, 2020 at 10:45:29AM +0200, Jiri Olsa escreveu: > On Thu, Apr 30, 2020 at 08:36:18AM +0800, Jin Yao wrote: > > A big uncore event group is split into multiple small groups which > > only include the uncore events from the same PMU. This has been > > supported in the commit 3cdc5c2cb92

Re: [PATCH] ACPI: Drop rcu usage for MMIO mappings

2020-05-07 Thread Rafael J. Wysocki
On 5/7/2020 1:39 AM, Dan Williams wrote: Recently a performance problem was reported for a process invoking a non-trival ASL program. The method call in this case ends up repetitively triggering a call path like: acpi_ex_store acpi_ex_store_object_to_node acpi_ex_write_data_to_fie

Re: [PATCH V2] efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()

2020-05-07 Thread Ard Biesheuvel
On Thu, 7 May 2020 at 15:37, Lenny Szubowicz wrote: > > In allocate_e820(), call the EFI get_memory_map() service directly > instead of indirectly via efi_get_memory_map(). This avoids allocation > of a buffer and return of the full EFI memory map, which is not needed > here and would otherwise ne

Re: [PATCH v4 2/5] iommu/vt-d: debugfs: Add support to show inv queue internals

2020-05-07 Thread Jacob Pan
Hi Baolu, Very helpful feature, thanks for doing this. Just a small suggestion. On Thu, 7 May 2020 08:55:31 +0800 Lu Baolu wrote: > Export invalidation queue internals of each iommu device through the > debugfs. > > Example of such dump on a Skylake machine: > > $ sudo cat /sys/kernel/debug/

Re: [PATCH 9/9] KVM: VMX: pass correct DR6 for GD userspace exit

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 06:21:18PM +0200, Paolo Bonzini wrote: > On 07/05/20 18:18, Peter Xu wrote: > >>if (vcpu->guest_debug & KVM_GUESTDBG_USE_HW_BP) { > >> - vcpu->run->debug.arch.dr6 = vcpu->arch.dr6; > >> + vcpu->run->debug.arch.dr6 = DR6_BD | DR6_

Re: [PATCH] uio_hv_generic: add missed sysfs_remove_bin_file

2020-05-07 Thread Greg Kroah-Hartman
On Thu, May 07, 2020 at 11:13:43PM +0800, Chuhong Yuan wrote: > This driver calls sysfs_create_bin_file() in probe, but forgets to > call sysfs_remove_bin_file() in remove. > Add the missed call to fix it. > > Signed-off-by: Chuhong Yuan > --- > drivers/uio/uio_hv_generic.c | 1 + > 1 file chang

Re: [PATCH v5 1/5] mmc: core: Extend mmc_of_parse() to parse CQE bindings

2020-05-07 Thread Veerabhadrarao Badiganti
On 5/6/2020 10:06 PM, Ulf Hansson wrote: On Wed, 6 May 2020 at 15:01, Veerabhadrarao Badiganti wrote: On 4/28/2020 5:26 AM, Chun-Hung Wu wrote: Parse CQE bindings "supports-cqe" and "disable-cqe-dcmd" in mmc_of_parse(). Signed-off-by: Chun-Hung Wu --- drivers/mmc/core/host.c | 5 +

[PATCH] memcg: effective memory.high reclaim for remote charging

2020-05-07 Thread Shakeel Butt
Currently the reclaim of excessive usage over memory.high is scheduled to run on returning to the userland. The main reason behind this approach was simplicity i.e. always reclaim with GFP_KERNEL context. However the underlying assumptions behind this approach are: the current task shares the memcg

Re: [PATCH v2 12/45] powerpc/ptdump: Properly handle non standard page size

2020-05-07 Thread kbuild test robot
Hi Christophe, I love your patch! Yet something to improve: [auto build test ERROR on v5.7-rc4] [cannot apply to powerpc/next next-20200507] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option

Re: [RFC 34/43] shmem: PKRAM: multithread preserving and restoring shmem pages

2020-05-07 Thread Randy Dunlap
On 5/6/20 5:42 PM, Anthony Yznaga wrote: > Improve performance by multithreading the work to preserve and restore > shmem pages. > > Add 'pkram_max_threads=' kernel option to specify the maximum number > of threads to use to preserve or restore the pages of a shmem file. > The default is 16. Hi,

[GIT PULL] arm64 fixes for 5.7-rc5

2020-05-07 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fix below. Thanks. The following changes since commit 1578e5d03112e3e9d37e1c4d95b6dfb734c73955: arm64: vdso: Add -fasynchronous-unwind-tables to cflags (2020-04-30 18:35:32 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/ke

Re: [patch V4 part 3 12/29] x86/entry/common: Provide idtentry_enter/exit()

2020-05-07 Thread Alexandre Chartre
On 5/5/20 3:44 PM, Thomas Gleixner wrote: Provide functions which handle the low level entry and exit similiar to enter/exit from user mode. typo: "similiar" Signed-off-by: Thomas Gleixner --- arch/x86/entry/common.c | 89 arch/x86/inc

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-07 Thread Jirka Hladky
Hi Mel, we are not targeting just OMP applications. We see the performance degradation also for other workloads, like SPECjbb2005 and SPECjvm2008. Even worse, it also affects a higher number of threads. For example, comparing 5.7.0-0.rc2 against 5.6 kernel, on 4 NUMA server with 2x AMD 7351 CPU, w

[PATCH 2/2] perf: Add missing metrics to POWER9 'cpi_breakdown'

2020-05-07 Thread Paul A. Clarke
From: "Paul A. Clarke" Add the following metrics to the POWER9 'cpi_breakdown' metricgroup: - ict_noslot_br_mpred_cpi - ict_noslot_br_mpred_icmiss_cpi - ict_noslot_cyc_other_cpi - ict_noslot_disp_held_cpi - ict_noslot_disp_held_hb_full_cpi - ict_noslot_disp_held_issq_cpi - ict_noslot_disp_held_ot

[PATCH 0/2] perf: Fix POWER9 cpi_breakdown metricgroup

2020-05-07 Thread Paul A. Clarke
From: "Paul A. Clarke" The recent patches posted by Ian Rogers motivated a deeper dive into the POWER9 perf metrics, which uncovered some additional issues: - 'lsu_other_stall_cpi' doesn't work at all - All of the "ICT" metrics are missing from the metricgroup Paul A. Clarke (2): perf: Fix PO

[PATCH 1/2] perf: Fix POWER9 metric 'lsu_other_stall_cpi'

2020-05-07 Thread Paul A. Clarke
From: "Paul A. Clarke" The metric definition is too long for the current value of EXPR_MAX_OTHER. Increase the value EXPR_MAX_OTHER sufficiently to allow 'lsu_other_stall_cpi' to build properly. Before: -- $ perf list | grep lsu_other lsu_other_stall_cpi # perf stat -a --metrics lsu_other_stal

[PATCH] [v2] ubsan, kcsan: don't combine sanitizer with kcov on clang

2020-05-07 Thread Arnd Bergmann
Clang does not allow -fsanitize-coverage=trace-{pc,cmp} together with -fsanitize=bounds or with ubsan: clang: error: argument unused during compilation: '-fsanitize-coverage=trace-pc' [-Werror,-Wunused-command-line-argument] clang: error: argument unused during compilation: '-fsanitize-coverage=

Re: [PATCH] ceph: demote quotarealm lookup warning to a debug message

2020-05-07 Thread Ilya Dryomov
On Thu, May 7, 2020 at 3:44 PM Jeff Layton wrote: > > On Tue, 2020-05-05 at 13:59 +0100, Luis Henriques wrote: > > A misconfigured cephx can easily result in having the kernel client > > flooding the logs with: > > > > ceph: Can't lookup inode 1 (err: -13) > > > > Change his message to debug lev

Re: [PATCH v9 12/18] arm64: kexec: arm64_relocate_new_kernel don't use x0 as temp

2020-05-07 Thread James Morse
Hi Pavel, On 26/03/2020 03:24, Pavel Tatashin wrote: > x0 will contain the only argument to arm64_relocate_new_kernel; don't > use it as a temp. Reassigned registers to free-up x0. The missing bit of motivation is _why_ you need x0 keep its value until the end of this code. With that covered, R

Re: [PATCH v9 13/18] arm64: kexec: add expandable argument to relocation function

2020-05-07 Thread James Morse
Hi Pavel, On 26/03/2020 03:24, Pavel Tatashin wrote: > Currently, kexec relocation function (arm64_relocate_new_kernel) accepts > the following arguments: > > head: start of array that contains relocation information. > entry:entry point for new kernel or purgatory. > dtb_

[PATCH -next] drm: panel: add MODULE_LICENSE to panel-visionox-rm69299.c

2020-05-07 Thread Randy Dunlap
...@lists.freedesktop.org --- drivers/gpu/drm/panel/panel-visionox-rm69299.c |1 + 1 file changed, 1 insertion(+) --- linux-next-20200507.orig/drivers/gpu/drm/panel/panel-visionox-rm69299.c +++ linux-next-20200507/drivers/gpu/drm/panel/panel-visionox-rm69299.c @@ -300,3 +300,4 @@ static struct mipi_dsi_driver

Re: [PATCH v9 14/18] arm64: kexec: offset for relocation function

2020-05-07 Thread James Morse
Hi Pavel, On 26/03/2020 03:24, Pavel Tatashin wrote: > Soon, relocation function will share the same page with EL2 vectors. The EL2 vectors would only be executed with the MMU off, so they don't need to be mapped anywhere in particular. (this is something hibernate probably does sloppily). > A

Re: [PATCH v9 11/18] arm64: kexec: arm64_relocate_new_kernel clean-ups

2020-05-07 Thread James Morse
Hi Pavel, On 26/03/2020 03:24, Pavel Tatashin wrote: > Remove excessive empty lines from arm64_relocate_new_kernel. To make it harder to read? Or just for the churn ... > Also, use comments on the same lines with instructions where > appropriate. Churn, > Change ENDPROC to END it never return

Re: [PATCH v9 15/18] arm64: kexec: kexec EL2 vectors

2020-05-07 Thread James Morse
Hi Pavel, What happened to the subject? (it really needs a verb to make any sense) On 26/03/2020 03:24, Pavel Tatashin wrote: > If we have a EL2 mode without VHE, the EL2 vectors are needed in order > to switch to EL2 and jump to new world with hyperivsor privileges. Yes, but the hyp-stub has an

Re: [PATCH v9 16/18] arm64: kexec: configure trans_pgd page table for kexec

2020-05-07 Thread James Morse
Hi Pavel, On 26/03/2020 03:24, Pavel Tatashin wrote: > Configure a page table located in kexec-safe memory that has > the following mappings: > > 1. identity mapping for text of relocation function with executable >permission. > 2. linear mappings for all source ranges > 3. linear mappings fo

Re: [PATCH 9/9] KVM: VMX: pass correct DR6 for GD userspace exit

2020-05-07 Thread Paolo Bonzini
On 07/05/20 18:18, Peter Xu wrote: >> if (vcpu->guest_debug & KVM_GUESTDBG_USE_HW_BP) { >> -vcpu->run->debug.arch.dr6 = vcpu->arch.dr6; >> +vcpu->run->debug.arch.dr6 = DR6_BD | DR6_RTM | >> DR6_FIXED_1; > After a second thought I'm thinking whet

[RFC-PATCH] mtd: spi-nor: add conditional 4B opcodes

2020-05-07 Thread Daniel Walker
Some chips have 4B opcodes, but there is no way to know if they have them. This device tree option allows platform owners to force enable 4b opcodes when they know their chips support it even when it can be automatically identified. Cc: xe-linux-exter...@cisco.com Signed-off-by: Daniel Walker ---

[PATCH v4] bus: mhi: core: Handle syserr during power_up

2020-05-07 Thread Jeffrey Hugo
The MHI device may be in the syserr state when we attempt to init it in power_up(). Since we have no local state, the handling is simple - reset the device and wait for it to transition out of the reset state. Signed-off-by: Jeffrey Hugo --- v4: -Implemented Hemant's suggested solution from v2.

[PATCH] MAINTAINER: Update my email address

2020-05-07 Thread Himanshu Madhani
I do not have access to my @marvell.com email ID anymore. Lets map my new email address correctly in .mailmap Signed-off-by: Himanshu Madhani --- .mailmap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.mailmap b/.mailmap index db3754a41018..30d8c3f10ca7 100644 --- a/.mailmap +++ b/.mailm

Re: [PATCH 9/9] KVM: VMX: pass correct DR6 for GD userspace exit

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 07:50:11AM -0400, Paolo Bonzini wrote: > When KVM_EXIT_DEBUG is raised for the disabled-breakpoints case (DR7.GD), > DR6 was incorrectly copied from the value in the VM. Instead, > DR6.BD should be set in order to catch this case. > > On AMD this does not need any special

[RFC][PATCH 1/3] x86/entry: Collapse the 3 IRQ stack instances into a single macro

2020-05-07 Thread Peter Zijlstra
Because 1 copy of this magic is plenty. Signed-off-by: Peter Zijlstra (Intel) --- --- a/arch/x86/include/asm/irq_stack.h +++ b/arch/x86/include/asm/irq_stack.h @@ -12,10 +12,8 @@ static __always_inline bool irqstack_act return __this_cpu_read(irq_count) != -1; } -/* - * Macro to emit c

[RFC][PATCH 2/3] x86/entry: Provide ASM_INSTR_{BEGIN,END}

2020-05-07 Thread Peter Zijlstra
To reduce clutter. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/irq_stack.h | 10 ++ arch/x86/include/asm/kvm_host.h | 10 ++ include/linux/compiler.h | 14 ++ 3 files changed, 18 insertions(+), 16 deletions(-) --- a/arch/x86/include/

[RFC][PATCH 3/3] x86/entry, ORC: Teach objtool/unwind_orc about stack irq swizzles

2020-05-07 Thread Peter Zijlstra
Thomas would very much like objtool to understand and generate correct ORC unwind information for the minimal stack swizzle sequence: mov %rsp, (%[ts]) mov %[ts], %rsp ... pop %rsp This sequence works for the fp and guess unwinders -- all they need is that top-of-s

[RFC][PATCH 0/3] objtool vs irqstack swizzles

2020-05-07 Thread Peter Zijlstra
These few patches are on top of the very latest tarball tglx gave me and do not apply to hit posted patches or his git-tree (although I suspect that might change at some point in the near future). Aside from relying on tip/objtool/core, this also relies on the patch I just pushed into tip/objtool/

Re: [PATCH AUTOSEL 5.6 33/50] drm/amdgpu: bump version for invalidate L2 before SDMA IBs

2020-05-07 Thread Michel Dänzer
On 2020-05-07 4:27 p.m., Sasha Levin wrote: > From: Marek Olšák > > [ Upstream commit 9017a4897a20658f010bebea825262963c10afa6 ] > > This fixes GPU hangs due to cache coherency issues. > Bump the driver version. Split out from the original patch. > > Signed-off-by: Marek Olšák > Reviewed-by: C

[GIT PULL] configfs fix for 5.7

2020-05-07 Thread Christoph Hellwig
The following changes since commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c: Linux 5.7-rc3 (2020-04-26 13:51:02 -0700) are available in the Git repository at: git://git.infradead.org/users/hch/configfs.git tags/configfs-for-5.7 for you to fetch changes up to 8aebfffacfa379ba400da573a5bf9e49

[PATCH V2] mmc: core: Fix recursive locking issue in CQE recovery path

2020-05-07 Thread Veerabhadrarao Badiganti
From: Sarthak Garg Consider the following stack trace -001|raw_spin_lock_irqsave -002|mmc_blk_cqe_complete_rq -003|__blk_mq_complete_request(inline) -003|blk_mq_complete_request(rq) -004|mmc_cqe_timed_out(inline) -004|mmc_mq_timed_out mmc_mq_timed_out acquires the queue_lock for the first time.

[PATCH v2] mm: expand documentation over __read_mostly

2020-05-07 Thread Luis Chamberlain
__read_mostly can easily be misused by folks, its not meant for just read-only data. There are performance reasons for using it, but we also don't provide any guidance about its use. Provide a bit more guidance over its use. Acked-by: Christoph Lameter Signed-off-by: Luis Chamberlain --- This v

<    5   6   7   8   9   10   11   12   13   14   >