Re: [PATCH v2] ath10k: Remove msdu from idr when management pkt send fails

2020-05-07 Thread Kalle Valo
writes: > Yes, The change you did is correct and better. Thanks for checking. > So should I be sending a v3 for this patch ? No need, the patch with this change is now in my pending branch and I'll apply it to ath-next it in the next few days. -- https://wireless.wiki.kernel.org/en/developer

RE: [PATCH v11 00/13] SMMUv3 Nested Stage Setup (IOMMU part)

2020-05-07 Thread Shameerali Kolothum Thodi
Hi Eric, > -Original Message- > From: Shameerali Kolothum Thodi > Sent: 30 April 2020 10:38 > To: 'Auger Eric' ; Zhangfei Gao > ; eric.auger@gmail.com; > io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > k...@vger.kernel.org; kvm...@lists.cs.columbia.edu; w...@kernel.or

[PATCH v3 3/4] perf stat: Copy counts from prev_raw_counts to evsel->counts

2020-05-07 Thread Jin Yao
It would be useful to support the overall statistics for perf-stat interval mode. For example, report the summary at the end of "perf-stat -I" output. But since perf-stat can support many aggregation modes, such as --per-thread, --per-socket, -M and etc, we need a solution which doesn't bring much

[PATCH v3 1/4] perf stat: Fix wrong per-thread runtime stat for interval mode

2020-05-07 Thread Jin Yao
root@kbl-ppc:~# perf stat --per-thread -e cycles,instructions -I1000 --interval-count 2 1.004171683 perf-3696 8,747,311 cycles ... 1.004171683 perf-3696691,730 instructions #0.08 insn per cycle

RE: [PATCH V3 10/10] clk: imx8mp: mark memrepair clock as critical

2020-05-07 Thread Aisheng Dong
> From: Peng Fan > Sent: Thursday, May 7, 2020 1:56 PM > > If memrepair root clock in CCM is disabled, the memory repair logic in HDMIMIX > can’t work. So let's mark it as critical clock. A small question here: Is this clock critical for the whole system or only for HDMIMIX? What if HDMIIX is no

[PATCH v3 4/4] perf stat: Report summary for interval mode

2020-05-07 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. The patch uses 'evsel->prev_raw_counts' to get counts for summary. Copy the counts to 'evsel->counts' after printing the interval results. Next, we just follow the

[PATCH v3 2/4] perf counts: Reset prev_raw_counts counts

2020-05-07 Thread Jin Yao
The evsel->prev_raw_counts is updated in perf_evsel__compute_deltas: perf_evsel__compute_deltas() { tmp = *perf_counts(evsel->prev_raw_counts, cpu, thread); *perf_counts(evsel->prev_raw_counts, cpu, thread) = *count; } When we want to reset the evsel->prev_raw_counts in perf_evsel

[PATCH v3 0/4] perf stat: Support overall statistics for interval mode

2020-05-07 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. With this patchset, it supports to report the summary at the end of interval output. For example, root@kbl-ppc:~# perf stat -e cycles -I1000 --interval-count 2

[PATCH -next] ACPI: debug: Make two functions static

2020-05-07 Thread Zheng Zengkai
Fix sparse warnings: drivers/acpi/acpi_dbg.c:748:12: warning: symbol 'acpi_aml_init' was not declared. Should it be static? drivers/acpi/acpi_dbg.c:774:13: warning: symbol 'acpi_aml_exit' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zheng Zengkai --- drivers/

Re: [PATCH] x86: bitops: fix build regression

2020-05-07 Thread hpa
On May 6, 2020 11:18:09 PM PDT, Brian Gerst wrote: >On Tue, May 5, 2020 at 1:47 PM Nick Desaulniers > wrote: >> >> From: Sedat Dilek >> >> It turns out that if your config tickles __builtin_constant_p via >> differences in choices to inline or not, this now produces invalid >> assembly: >> >> $ c

Re: [PATCH -next] ALSA: sound/ppc: Use bitwise instead of arithmetic operator for flags

2020-05-07 Thread Takashi Iwai
On Thu, 07 May 2020 05:54:07 +0200, Samuel Zou wrote: > > Fix the following coccinelle warnings: > > sound/ppc/pmac.c:729:57-58: WARNING: sum of probable bitmasks, consider | > sound/ppc/pmac.c:229:37-38: WARNING: sum of probable bitmasks, consider | > > Reported-by: Hulk Robot > Signed-off-by:

Re: [PATCH -next] ALSA: portman2x4: Use bitwise instead of arithmetic operator for flags

2020-05-07 Thread Takashi Iwai
On Thu, 07 May 2020 08:48:55 +0200, Samuel Zou wrote: > > Fix the following coccinelle warning: > > sound/drivers/portman2x4.c:460:34-35: WARNING: sum of probable bitmasks, > consider | > > Reported-by: Hulk Robot > Signed-off-by: Samuel Zou Applied now. Thanks. Takashi

[ANNOUNCE][CFP] Linux Security Summit Europe 2020

2020-05-07 Thread Elena Reshetova
== ANNOUNCEMENT AND CALL FOR PARTICIPATION LINUX SECURITY SUMMIT EUROPE 2020 29-30 OCTOBER DUBLIN, IRELAN

Re: [PATCH] clone: only use lower 32 flag bits

2020-05-07 Thread Christian Brauner
On Wed, May 06, 2020 at 12:06:10PM -0700, Joe Perches wrote: > On Tue, 2020-05-05 at 19:44 +0200, Christian Brauner wrote: > > Jan reported an issue where an interaction between sign-extending clone's > > flag argument on ppc64le and the new CLONE_INTO_CGROUP feature causes > > clone() to consisten

[PATCH] drivers: block: use set_current_state macro

2020-05-07 Thread Xu Wang
Use set_current_state macro instead of current->state = TASK_RUNNING. Signed-off-by: Xu Wang --- drivers/block/swim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/swim.c b/drivers/block/swim.c index 4c297f69171d..dd34504382e5 100644 --- a/drivers/block/

Re: [PATCH] ARM: dts: stm32: bump PSCI to version 1.0 on stm32mp15x

2020-05-07 Thread Alexandre Torgue
Hi Etienne On 5/6/20 7:48 PM, Etienne Carriere wrote: From: Etienne Carriere Declare PSCI v1.0 support instead of v0.1 as the former is supported by the PSCI firmware stacks stm32mp15x relies on. Signed-off-by: Etienne Carriere --- arch/arm/boot/dts/stm32mp151.dtsi | 4 +--- 1 file change

Re: [PATCH] xhci: Make debug message consistent with bus and port number

2020-05-07 Thread Kai-Heng Feng
> On May 7, 2020, at 14:45, Greg Kroah-Hartman > wrote: > > On Thu, May 07, 2020 at 02:17:55PM +0800, Kai-Heng Feng wrote: >> Current xhci debug message doesn't always output bus number, so it's >> hard to figure out it's from USB2 or USB3 root hub. >> >> In addition to that, some port numbe

Re: [f2fs-dev] [PATCH] f2fs: get parent inode when recovering pino

2020-05-07 Thread Gao Xiang
Hi Chao, On Thu, May 07, 2020 at 02:38:39PM +0800, Chao Yu wrote: > On 2020/5/7 6:36, Gao Xiang wrote: > > On Wed, May 06, 2020 at 12:16:13PM -0700, Eric Biggers wrote: > >> On Wed, May 06, 2020 at 02:47:19PM +0800, Gao Xiang wrote: > >>> On Wed, May 06, 2020 at 09:58:22AM +0800, Gao Xiang wrote:

Re: [v3] nfp: abm: University research groups?

2020-05-07 Thread Markus Elfring
> > I imagined that the bug report (combined with a patch) was triggered by > > an evolving source code analysis approach which will be explained > > in another research paper. Is such a view appropriate? > > https://github.com/umnsec/cheq/ > > Could you elaborate more on "university research group

[PATCH v2] virtio_net: fix lockdep warning on 32 bit

2020-05-07 Thread Michael S. Tsirkin
When we fill up a receive VQ, try_fill_recv currently tries to count kicks using a 64 bit stats counter. Turns out, on a 32 bit kernel that uses a seqcount. sequence counts are "lock" constructs where you need to make sure that writers are serialized. In turn, this means that we mustn't run two tr

[PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-07 Thread YueHaibing
When CONFIG_SND_SOC_SOF_BAYTRAIL is not set, gcc warns: sound/soc/sof/intel/byt.c:85:41: warning: ‘cht_debugfs’ defined but not used [-Wunused-const-variable=] static const struct snd_sof_debugfs_map cht_debugfs[] = { ^~~ Move the variable inside

Re: [ANNOUNCE][CFP] Power Management and Scheduling in the Linux Kernel IV edition (OSPM-summit 2020)

2020-05-07 Thread Juri Lelli
Hello, On 19/12/19 11:35, Juri Lelli wrote: > Power Management and Scheduling in the Linux Kernel (OSPM-summit) IV edition > > May 11-13, 2019 > Scuola Superiore Sant'Anna > Pisa, Italy > Quick reminder that OSPM-summit IV edition is happening next week! Not in Pisa (for obvious reasons :-/),

Re: [PATCH 1/2] arch/x86: Rename config X86_INTEL_MEMORY_PROTECTION_KEYS to generic x86

2020-05-07 Thread Sebastian Andrzej Siewior
On 2020-05-06 15:21:29 [-0700], Dave Hansen wrote: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 1197b5596d5a..8630b9fa06f5 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -1886,11 +1886,11 @@ config X86_UMIP > > specific cases in protected and virtual-808

Re: [PATCH] xhci: Make debug message consistent with bus and port number

2020-05-07 Thread Greg Kroah-Hartman
On Thu, May 07, 2020 at 03:15:01PM +0800, Kai-Heng Feng wrote: > > > > On May 7, 2020, at 14:45, Greg Kroah-Hartman > > wrote: > > > > On Thu, May 07, 2020 at 02:17:55PM +0800, Kai-Heng Feng wrote: > >> Current xhci debug message doesn't always output bus number, so it's > >> hard to figure ou

[PATCH v2 05/12] bus/fsl-mc: Cache the DPRC API version

2020-05-07 Thread Diana Craciun
There are already firmware API commands that have multiple versions. For each multiple version command, another command to retrieve the API version is issued. This may introduce an important overhead. The version does not change while the system is running, so the DPRC API version can be safely cac

[PATCH v2 02/12] bus/fsl-mc: Add a new parameter to dprc_scan_objects function

2020-05-07 Thread Diana Craciun
Prepare the dprc_scan_objects function to be used by the VFIO mc driver code. The function is used to scan the mc objects by the bus driver. The same functionality is needed by the VFIO mc driver, but in this case the interrupt configuration is delayed until the userspace configures the interrupts.

[PATCH v2 09/12] bus/fsl-mc: Add a container setup function

2020-05-07 Thread Diana Craciun
Both DPRC driver and VFIO driver use the same initialization code for the DPRC. Introduced a new function which groups this initialization code. The function is exported and may be used by VFIO as well. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 78 ++

Re: [PATCH v9 0/8] Add endpoint driver for R-Car PCIe controller

2020-05-07 Thread Lad, Prabhakar
Hi Kishon, On Thu, May 7, 2020 at 4:13 AM Kishon Vijay Abraham I wrote: > > Hi Prabhakar, > > On 5/5/2020 3:17 PM, Lad, Prabhakar wrote: > > Hi Lorenzo, > > > > On Tue, May 5, 2020 at 10:44 AM Lorenzo Pieralisi > > wrote: > >> > >> On Thu, Apr 30, 2020 at 09:43:20AM +0100, Lad, Prabhakar wrote:

[PATCH v2 06/12] bus/fsl-mc: Add dprc-reset-container support

2020-05-07 Thread Diana Craciun
From: Bharat Bhushan DPRC reset is required by VFIO-mc in order to stop a device to further generate DMA transactions. Signed-off-by: Bharat Bhushan Signed-off-by: Laurentiu Tudor Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc.c | 71 + drivers

[PATCH v2 08/12] bus/fsl-mc: Export a cleanup function for DPRC

2020-05-07 Thread Diana Craciun
Create and export a cleanup function for DPRC. The function is used by the DPRC driver, but it will be used by the VFIO driver as well. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 52 include/linux/fsl/mc.h | 2 ++ 2 files chang

[PATCH v2 04/12] bus/fsl-mc: Set the QMAN/BMAN region flags

2020-05-07 Thread Diana Craciun
The QMAN region is memory mapped, so it should be of type IORESOURCE_MEM. The region flags bits were wrongly used to pass additional information. Use the bus specific bits for this purpose. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/fsl-mc-bus.c | 7 ++- drivers/bus/fsl-mc/fsl-m

[PATCH v2 03/12] bus/fsl-mc: add support for 'driver_override' in the mc-bus

2020-05-07 Thread Diana Craciun
From: Bharat Bhushan This patch is required for vfio-fsl-mc meta driver to successfully bind layerscape container devices for device passthrough. This patch adds a mechanism to allow a layerscape device to specify a driver rather than a layerscape driver provide a device match. Example to allow

[PATCH v2 11/12] bus/fsl-mc: Export IRQ pool handling functions to be used by VFIO

2020-05-07 Thread Diana Craciun
The IRQ pool handling functions can be used by both DPRC driver and VFIO. Adapt and export those functions. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 7 +++ drivers/bus/fsl-mc/fsl-mc-allocator.c | 12 drivers/bus/fsl-mc/fsl-mc-private.h | 10 ---

[PATCH v2 00/12] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support

2020-05-07 Thread Diana Craciun
The vfio-mc bus driver needs some additional services to be exported by the mc-bus driver like: - a way to reset the DPRC container - driver_override support - functions to setup/tear down a DPRC - functions for allocating the pool of interrupts. In case of VFIO the interrupts are not configured at

[PATCH v2 12/12] bus/fsl-mc: Extend ICID size from 16bit to 32bit

2020-05-07 Thread Diana Craciun
From: Bharat Bhushan In virtual machines the device-id range is defined between 0x1-0x2. The reason for using such a large range is to avoid overlapping with the PCI range. Signed-off-by: Bharat Bhushan Signed-off-by: Laurentiu Tudor Signed-off-by: Diana Craciun --- drivers/bus/fsl-m

[PATCH v2 01/12] bus/fsl-mc: Do no longer export the total number of irqs outside dprc_scan_objects

2020-05-07 Thread Diana Craciun
The total number of interrupts is only used for some checks outside the dprc_scan_objects function. Furthermore, in some situations the check is made twice. Move the bounds check inside the function for all situations. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 30 ++

[PATCH v2 07/12] bus/fsl-mc: Export a dprc scan function to be used by multiple entities

2020-05-07 Thread Diana Craciun
Currently the DPRC scan function is used only by the bus driver. But the same functionality will be needed by the VFIO driver. To support this, the dprc scan function was exported and a little bit adjusted to fit both scenarios. Also the scan mutex initialization is done when the bus object is crea

[PATCH v2 10/12] bus/fsl_mc: Do not rely on caller to provide non NULL mc_io

2020-05-07 Thread Diana Craciun
Before destroying the mc_io, check first that it was allocated. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/mc-io.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/bus/fsl-mc/mc-io.c b/drivers/bus/fsl-mc/mc-io.c index 6ae48ad80409..e1dfe4a76519 100644 --

Re: [PATCH v5 3/5] drivers/soc/litex: add LiteX SoC Controller driver

2020-05-07 Thread Mateusz Holenko
On Wed, Apr 29, 2020 at 5:12 AM Benjamin Herrenschmidt wrote: > > On Sat, 2020-04-25 at 13:42 +0200, Mateusz Holenko wrote: > > From: Pawel Czarnecki > > > > This commit adds driver for the FPGA-based LiteX SoC > > Controller from LiteX SoC builder. > > Sorry for jumping in late, Joel only just p

Re: [net-next PATCH v3 5/5] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2020-05-07 Thread Calvin Johnson
On Tue, May 05, 2020 at 05:22:00PM +0300, Andy Shevchenko wrote: > On Tue, May 5, 2020 at 4:30 PM Calvin Johnson > wrote: > > > > Introduce fwnode_mdiobus_register_phy() to register PHYs on the > > mdiobus. From the compatible string, identify whether the PHY is > > c45 and based on this create a

Re: [RFC 0/8] mfd: Add support for Khadas Microcontroller

2020-05-07 Thread Neil Armstrong
On 29/04/2020 21:16, Kevin Hilman wrote: > Neil Armstrong writes: > >> The new Khadas VIM2, VIM3 and Edge boards embeds an on-board microcontroller >> connected via I2C. >> >> This Microcontroller is present on the Khadas VIM1, VIM2, VIM3 and Edge >> boards. >> >> It has multiple boot control fea

Re: bdi: fix use-after-free for dev_name(bdi->dev) v3 (resend)

2020-05-07 Thread Ming Lei
On Mon, May 04, 2020 at 02:47:52PM +0200, Christoph Hellwig wrote: > Hi Jens, > > can you pick up this series? > > the first three patches are my take on the proposal from Yufen Yu > to fix the use after free of the device name of the bdi device. > > The rest is vaguely related cleanups. > > Ch

[PATCH 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d777069..257b843 10064

[no subject]

2020-05-07 Thread dillon . minfei
This patchset enable the stmpe811 touch screen on stm32f429-disco board, tested with ts_print. as sdram memory shortage on this disco board, so i didn't test ts_calibrate (kernel crashed at mmap in open framebuffer)

RE: [PATCH] x86: bitops: fix build regression

2020-05-07 Thread David Laight
From: Brian Gerst > Sent: 07 May 2020 07:18 ... > > --- a/arch/x86/include/asm/bitops.h > > +++ b/arch/x86/include/asm/bitops.h > > @@ -54,7 +54,7 @@ arch_set_bit(long nr, volatile unsigned long *addr) > > if (__builtin_constant_p(nr)) { > > asm volatile(LOCK_PREFIX "orb %1,

Re: [PATCH v11 00/13] SMMUv3 Nested Stage Setup (IOMMU part)

2020-05-07 Thread Auger Eric
Hi Shameer, On 5/7/20 8:59 AM, Shameerali Kolothum Thodi wrote: > Hi Eric, > >> -Original Message- >> From: Shameerali Kolothum Thodi >> Sent: 30 April 2020 10:38 >> To: 'Auger Eric' ; Zhangfei Gao >> ; eric.auger@gmail.com; >> io...@lists.linux-foundation.org; linux-kernel@vger.kerne

[PATCH 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinc

[PATCH 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-05-07 Thread dillon . minfei
From: dillon min As stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than inte

[PATCH 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm

[PATCH] tracing: Remove unused event variable in tracing_iter_reset

2020-05-07 Thread Muchun Song
We do not use the event variable, just remove it. Signed-off-by: Muchun Song --- kernel/trace/trace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8d2b988126250..6be74d2a7056f 100644 --- a/kernel/trace/trace.c +++ b/kerne

Re: [RFC 1/2] PCI/IOV: Introduce pci_iov_sysfs_link() function

2020-05-07 Thread Niklas Schnelle
On 5/6/20 11:10 PM, Bjorn Helgaas wrote: > On Wed, May 06, 2020 at 05:41:38PM +0200, Niklas Schnelle wrote: >> currently pci_iov_add_virtfn() scans the SR-IOV bars, adds the VF to the >> bus and also creates the sysfs links between the newly added VF and its >> parent PF. > > s/currently/Currently

Re: [PATCH] media: usb: ttusb-dec: avoid buffer overflow in ttusb_dec_handle_irq() when DMA failures/attacks occur

2020-05-07 Thread Greg KH
On Thu, May 07, 2020 at 01:15:22PM +0800, Jia-Ju Bai wrote: > > > On 2020/5/7 1:43, Greg KH wrote: > > On Thu, May 07, 2020 at 12:48:47AM +0800, Jia-Ju Bai wrote: > > > Yes, I agree that this issue is not new, because DMA attacks are old > > > problems. > > > But I am a little surprised that many

ping; [PATCH v4] mtd: clear cache_state to avoid writing to bad blocks repeatedly

2020-05-07 Thread Xiaoming Ni
ping On 2020/3/31 9:31, Xiaoming Ni wrote: The function call process is as follows: mtd_blktrans_work() while (1) do_blktrans_request() mtdblock_writesect() do_cached_write() write_cached_data() /*if cache_state is STA

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] > Sent: Wednesday, May 6, 2020 11:10 PM > To: Roberto Sassu ; david.saff...@gmail.com; > v...@zeniv.linux.org.uk; jmor...@namei.org; John Johansen > > Cc: linux-fsde...@vger.kernel.org; linux-integr...@vger.kernel.org; li

[PATCH v3] dt-bindings: irqchip: renesas-intc-irqpin: Convert to json-schema

2020-05-07 Thread Geert Uytterhoeven
From: Yoshihiro Kaneko Convert the Renesas Interrupt Controller (INTC) for external pins Device Tree binding documentation to json-schema. Signed-off-by: Yoshihiro Kaneko Co-developed-by: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven --- v3: - Take over from Kaneko-san, - Update li

[PATCH v2 10/10] md: use PAGE_SECTORS to clean up code

2020-05-07 Thread Zhen Lei
Execute the following shell script: C_FILES=`find drivers/md/ -name "*.c"` for file in $C_FILES do #with brace sed -i 's/(PAGE_SIZE \/ 512)/PAGE_SECTORS/g' $file sed -i 's/(PAGE_SIZE\/512)/PAGE_SECTORS/g' $file sed -i 's/(PAGE_SIZE >> 9)/PAGE_SECTORS/g' $file

[PATCH v2 09/10] md: use existing definition RESYNC_SECTORS

2020-05-07 Thread Zhen Lei
"RESYNC_BLOCK_SIZE/512" is equal to "RESYNC_BLOCK_SIZE >> 9", replace it with RESYNC_SECTORS. Signed-off-by: Zhen Lei --- drivers/md/raid10.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 948afe720fca..ac4273f804e8 100

[PATCH v2 02/10] zram: abolish macro SECTORS_PER_PAGE

2020-05-07 Thread Zhen Lei
SECTORS_PER_PAGE is equivalent to PAGE_SECTORS. Although I prefer SECTORS_PER_PAGE better than PAGE_SECTORS, the former is more clearer, I think. But the latter was defined in before, rename it may impact users. Signed-off-by: Zhen Lei --- drivers/block/zram/zram_drv.c | 4 ++-- drivers/block/

[PATCH v2 08/10] md: use sectors_to_npage() and npage_to_sectors() to clean up code

2020-05-07 Thread Zhen Lei
1. Replace ">> (PAGE_SHIFT - 9)" with sectors_to_npage() 2. Replace "<< (PAGE_SHIFT - 9)" with npage_to_sectors() Suggested-by: Matthew Wilcox Signed-off-by: Zhen Lei --- drivers/md/dm-table.c| 2 +- drivers/md/raid1.c | 2 +- drivers/md/raid10.c | 2 +- drivers/md/raid5-cache

[PATCH v2 06/10] mm/swap: use npage_to_sectors() and PAGE_SECTORS to clean up code

2020-05-07 Thread Zhen Lei
1. Replace "<<= (PAGE_SHIFT - 9)" with "*= PAGE_SECTORS" 2. Replace "<< (PAGE_SHIFT - 9)" with npage_to_sectors() Suggested-by: Matthew Wilcox Signed-off-by: Zhen Lei --- mm/page_io.c | 4 ++-- mm/swapfile.c | 12 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mm/

[PATCH v2 01/10] block: move PAGE_SECTORS definition into

2020-05-07 Thread Zhen Lei
Too many duplicated PAGE_SECTORS definitions, eliminate it. Signed-off-by: Zhen Lei --- drivers/block/brd.c | 1 - drivers/block/null_blk_main.c | 1 - drivers/md/bcache/util.h | 2 -- include/linux/blkdev.h| 5 +++-- include/linux/device-mapper.h | 1 - 5 files changed, 3

[PATCH v2 05/10] block: abolish macro PAGE_SECTORS_SHIFT

2020-05-07 Thread Zhen Lei
The name of PAGE_SECTORS_SHIFT is quite hard to read. 1. use sectors_to_npage() to replace ">> PAGE_SECTORS_SHIFT" 2. use npage_to_sectors() to replace "<< PAGE_SECTORS_SHIFT" Suggested-by: Matthew Wilcox Signed-off-by: Zhen Lei --- drivers/block/brd.c | 6 ++ drivers/block/null_b

[PATCH v2 07/10] block: use sectors_to_npage() and PAGE_SECTORS to clean up code

2020-05-07 Thread Zhen Lei
1. Replace "1 << (PAGE_SHIFT - 9)" with PAGE_SECTORS 2. Replace ">> (PAGE_SHIFT - 9)" with sectors_to_npage() Suggested-by: Matthew Wilcox Signed-off-by: Zhen Lei --- block/blk-settings.c| 6 +++--- block/partitions/core.c | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --

[PATCH v2 00/10] clean up SECTOR related macros and sectors/pages conversions

2020-05-07 Thread Zhen Lei
v1 --> v2: As Matthew Wilcox's suggestion, add sectors_to_npage()/npage_to_sectors() helpers to eliminate SECTORS_PER_PAGE_SHIFT, because it's quite hard to read. In further, I also eliminated PAGE_SECTORS_SHIFT. I tried to eliminate all magic number "9" and "512", but it's too many, maybe no one

[PATCH v2 03/10] block: add sectors_to_npage()/npage_to_sectors() helpers

2020-05-07 Thread Zhen Lei
Provide the conversion of "number of sectors"/"sector number" and "number of pages"/"page number". Suggested-by: Matthew Wilcox Signed-off-by: Zhen Lei --- include/linux/blkdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 934f31fc

[PATCH v2 04/10] zram: abolish macro SECTORS_PER_PAGE_SHIFT

2020-05-07 Thread Zhen Lei
The name of SECTORS_PER_PAGE_SHIFT is quite hard to read. So use sectors_to_npage() to replace ">> SECTORS_PER_PAGE_SHIFT" Suggested-by: Matthew Wilcox Signed-off-by: Zhen Lei --- drivers/block/zram/zram_drv.c | 4 ++-- drivers/block/zram/zram_drv.h | 1 - 2 files changed, 2 insertions(+), 3 de

Re: [PATCH v2] KVM: x86/pmu: Support full width counting

2020-05-07 Thread Paolo Bonzini
On 07/05/20 04:14, Like Xu wrote: > +static inline u64 vmx_get_perf_capabilities(void) > +{ > + u64 perf_cap = 0; > + > + if (boot_cpu_has(X86_FEATURE_PDCM)) > + rdmsrl(MSR_IA32_PERF_CAPABILITIES, perf_cap); > + > + /* Currently, KVM only supports Full-Width Writes. */ > +

RE: [PATCH] x86: bitops: fix build regression

2020-05-07 Thread hpa
On May 7, 2020 12:44:44 AM PDT, David Laight wrote: >From: Brian Gerst >> Sent: 07 May 2020 07:18 >... >> > --- a/arch/x86/include/asm/bitops.h >> > +++ b/arch/x86/include/asm/bitops.h >> > @@ -54,7 +54,7 @@ arch_set_bit(long nr, volatile unsigned long >*addr) >> > if (__builtin_constant_p

[PATCH net-next] net: phy: Make iproc_mdio_resume static

2020-05-07 Thread Zheng Zengkai
Fix sparse warnings: drivers/net/phy/mdio-bcm-iproc.c:182:5: warning: symbol 'iproc_mdio_resume' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zheng Zengkai --- drivers/net/phy/mdio-bcm-iproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

RE: [PATCH V3 10/10] clk: imx8mp: mark memrepair clock as critical

2020-05-07 Thread Peng Fan
> Subject: RE: [PATCH V3 10/10] clk: imx8mp: mark memrepair clock as critical > > > From: Peng Fan > > Sent: Thursday, May 7, 2020 1:56 PM > > > > If memrepair root clock in CCM is disabled, the memory repair logic in > > HDMIMIX can’t work. So let's mark it as critical clock. > > A small questi

Re: [PATCH] xhci: Make debug message consistent with bus and port number

2020-05-07 Thread Kai-Heng Feng
> On May 7, 2020, at 15:31, Greg Kroah-Hartman > wrote: > > On Thu, May 07, 2020 at 03:15:01PM +0800, Kai-Heng Feng wrote: >> >> >>> On May 7, 2020, at 14:45, Greg Kroah-Hartman >>> wrote: >>> >>> On Thu, May 07, 2020 at 02:17:55PM +0800, Kai-Heng Feng wrote: Current xhci debug mess

[PATCH V1 0/7] Target specific DLL configuration for qcom SDHC

2020-05-07 Thread Sarthak Garg
Sarthak Garg (6): dt-bindings: mmc: Add information for DLL register properties mmc: sdhci-msm: Update dll_config_3 as per HSR mmc: sdhci-msm: Update DDR_CONFIG as per device tree file mmc: sdhci-msm: Read and use DLL Config property from device tree file mmc: sdhci-msm: Introduce new ops

RE: [PATCH] fsnotify: avoid gcc-10 zero-length-bounds warning

2020-05-07 Thread David Laight
From: Arnd Bergmann > Sent: 05 May 2020 16:00 ... > Yes, we usually backport trivial warning fixes to stable kernels to allow > building those with any modern compiler version. In this case wouldn't it be better to backport a change that disables the specific compiler warning? David - Re

[PATCH V1 5/7] mmc: sdhci-msm: Read and use DLL Config property from device tree file

2020-05-07 Thread Sarthak Garg
Certain platforms require different settings in the SDCC_HC_REG_DLL_CONFIG register. This setting can change from platform to platform. So the driver should check whether a particular platform require a different setting by reading the DT file and use it. Also use msm_cm_dll_set_freq only when DLL

[PATCH V1 4/7] mmc: sdhci-msm: Update DDR_CONFIG as per device tree file

2020-05-07 Thread Sarthak Garg
Certain platforms require different settings in the SDCC_HC_REG_DDR_CONFIG register. This setting can change from platform to platform. So the driver should check whether a particular platform require a different setting by reading the device tree file and use it. Signed-off-by: Bao D. Nguyen Sig

[PATCH V1 3/7] mmc: sdhci-msm: Update dll_config_3 as per HSR

2020-05-07 Thread Sarthak Garg
Update dll_config_3 as per the host clock frequency as specified in the DLL Hardware Reference Guide. Signed-off-by: Sarthak Garg --- drivers/mmc/host/sdhci-msm.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index

[PATCH V1 2/7] mmc: host: sdhci-msm: Configure dll-user-control in dll init sequence

2020-05-07 Thread Sarthak Garg
From: Veerabhadrarao Badiganti With SDCC v5.1.0, additional setting needed for enabling DLL output. The dll-user-control register need to be configured during dll initialization for getting proper dll output. Without this configuration, we don't get the DLL lock status properly. Also update the

[PATCH V1 7/7] mmc: sdhci-msm: dump vendor specific registers during error

2020-05-07 Thread Sarthak Garg
Implement dump_vendor_registers host operation to print the vendor specific registers in addition to standard SDHC register during error conditions. Signed-off-by: Sahitya Tummala Signed-off-by: Sarthak Garg --- drivers/mmc/host/sdhci-msm.c | 31 +++ 1 file changed,

[PATCH V1 6/7] mmc: sdhci-msm: Introduce new ops to dump vendor specific registers

2020-05-07 Thread Sarthak Garg
Introduce new sdhci ops to dump vendor specific registers in the sdhci_dumpregs during error. Signed-off-by: Sahitya Tummala Signed-off-by: Sarthak Garg --- drivers/mmc/host/sdhci.c | 3 +++ drivers/mmc/host/sdhci.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci.c

KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread butt3rflyh4ck
I report a bug (in linux-5.7-rc1) found by syzkaller. kernel config: https://github.com/butterflyhack/syzkaller-fuzz/blob/master/v5.7.0-rc1.config reproducer: https://github.com/butterflyhack/syzkaller-fuzz/blob/master/repro.cprog I test the reproducer in linux-5.7-rc4 and crash too. crash log

[PATCH V1 1/7] dt-bindings: mmc: Add information for DLL register properties

2020-05-07 Thread Sarthak Garg
Add information regarding DLL register properties for getting target specific configurations. These DLL register settings may vary from target to target. Also new compatible string value for sm8250 target. Signed-off-by: Sarthak Garg --- Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 14

RE: [PATCH v5 0/6] Add support for O_MAYEXEC

2020-05-07 Thread David Laight
From: Mickaël Salaün > Sent: 05 May 2020 16:32 > > This fifth patch series add new kernel configurations (OMAYEXEC_STATIC, > OMAYEXEC_ENFORCE_MOUNT, and OMAYEXEC_ENFORCE_FILE) to enable to > configure the security policy at kernel build time. As requested by > Mimi Zohar, I completed the series w

RE: [PATCH v7 2/3] media: ov8856: Add devicetree support

2020-05-07 Thread Kao, Ben
Hi Robert, On 20-05-05 12:01, Robert Foss wrote: > Add match table, enable ov8856_probe() to support both ACPI and DT modes. > > ACPI and DT modes are primarily distinguished from by checking for ACPI mode > and by having resource like be NULL. > > Signed-off-by: Robert Foss > --- > > - Change

Re: [PATCH 2/2] KVM: SVM: Add support for MPK feature on AMD

2020-05-07 Thread Paolo Bonzini
On 07/05/20 00:26, Sean Christopherson wrote: >> +/* Load the guest pkru state */ >> +if (static_cpu_has(X86_FEATURE_PKU) && >> +kvm_read_cr4_bits(vcpu, X86_CR4_PKE) && >> +vcpu->arch.pkru != svm->host_pkru) >> +__write_pkru(vcpu->arch.pkru); > This and the resto

[PATCH 0/1] hibernate: restrict writes to the snapshot device

2020-05-07 Thread Domenico Andreoli
Dear maintainers, here I'm proposing an improvement to [0] which aimed to quickly solve a regression. The aim is to complete [1] with regards of uswsusp needs, at the time not considered. Kind regards, Domenico [0] https://lore.kernel.org/linux-pm/20200304170646.GA31552@dumbo/ [1] https://lor

[PATCH 1/1] hibernate: restrict writes to the snapshot device

2020-05-07 Thread Domenico Andreoli
From: Domenico Andreoli Hibernation via snapshot device requires write permission to the swap block device, the one that more often (but not necessarily) is used to store the hibernation image. With this patch, such permissions are granted iff: 1) snapshot device config option is enabled 2) swa

RE: [PATCH V2] pwm: tegra: dynamic clk freq configuration by PWM driver

2020-05-07 Thread Sandipan Patra
Hello, > -Original Message- > From: Uwe Kleine-König > Sent: Tuesday, May 5, 2020 1:42 AM > To: Sandipan Patra > Cc: Thierry Reding ; robh...@kernel.org; Jonathan > Hunter ; Bibek Basu ; Laxman > Dewangan ; linux-...@vger.kernel.org; > devicet...@vger.kernel.org; linux-te...@vger.kernel.

binder: transaction latency tracking for user build

2020-05-07 Thread Frankie Chang
Frankie.Chang (3): binder: move structs from core file to header file binder: add trace at free transaction. binder: add transaction latency tracer drivers/android/Kconfig | 8 + drivers/android/Makefile| 1 + drivers/android/binder.c| 40

Re: [PATCH 1/4] scripts/checkstack.pl: don't display $dre as different entity

2020-05-07 Thread Masahiro Yamada
On Thu, Apr 30, 2020 at 9:50 PM Maninder Singh wrote: > > currnetly script prints stack usage for functions > in two ways:($re and $dre) > > dre breaks sorting mechanism. > 0xa00011f26f88 sunxi_mux_clk_setup.isra.0 [vmlinux]:Dynamic (0x140) > .. > 0xa00011f27210 sunxi_divs_clk_setup [vmlin

Re: [PATCH 1/2] media: venus: Add support for MSM8939

2020-05-07 Thread Stanimir Varbanov
Hi Konrad, On 5/7/20 12:23 AM, Konrad Dybcio wrote: > Hi Stan, > > I have found some issues with the submitted GCC driver, related to > venus, but I have to further look into them locally and work out some > stuff. One of the things is that freq table for venus clock should be > changed to the va

Re: [PATCH 2/4] scripts/checkstack.pl: Add argument to print stacks greather than value.

2020-05-07 Thread Masahiro Yamada
On Thu, Apr 30, 2020 at 9:50 PM Maninder Singh wrote: > > Add arguments support to print stacks which are greater than > argument value only. > > Signed-off-by: Vaneet Narang > Signed-off-by: Maninder Singh > --- > scripts/checkstack.pl | 12 > 1 file changed, 8 insertions(+), 4 de

[RFC PATCH 4/7] perf metricgroup: always place duration_time last

2020-05-07 Thread Ian Rogers
If a metric contains the duration_time event then the event is placed outside of the metric's group of events. Rather than split the group, make it so the duration_time is immediately after the group. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 20 ++-- 1 file c

[RFC PATCH 7/7] perf metricgroup: remove duped metric group events

2020-05-07 Thread Ian Rogers
A metric group contains multiple metrics. These metrics may use the same events. If metrics use separate events then it leads to more multiplexing and overall metric counts fail to sum to 100%. Modify how metrics are associated with events so that if the events in an earlier group satisfy the curre

[RFC PATCH 0/7] Share events between metrics

2020-05-07 Thread Ian Rogers
Metric groups contain metrics. Metrics create groups of events to ideally be scheduled together. Often metrics refer to the same events, for example, a cache hit and cache miss rate. Using separate event groups means these metrics are multiplexed at different times and the counts don't sum to 100%.

linux-next: Tree for May 7

2020-05-07 Thread Stephen Rothwell
Hi all, Changes since 20200505: My fixes tree contains: bbefc924d0ff ("ubsan: disable UBSAN_ALIGNMENT under COMPILE_TEST") 7cb1d38f52b1 ("drm/msm: Fix undefined "rd_full" link error") 41ef83a65305 ("device_cgroup: Fix RCU list debugging warning") d58ae1991898 ("ipmr: Add lockdep expressi

[RFC PATCH 3/7] perf metricgroup: free metric_events on error

2020-05-07 Thread Ian Rogers
Avoid a simple memory leak. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index dcd175c05872..2356dda92a07 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/per

[RFC PATCH 6/7] perf metricgroup: order event groups by size

2020-05-07 Thread Ian Rogers
When adding event groups to the group list, insert them in size order. This performs an insertion sort on the group list. By placing the largest groups at the front of the group list it is possible to see if a larger group contains the same events as a later group. This can make the later group red

[RFC PATCH 5/7] perf metricgroup: delay events string creation

2020-05-07 Thread Ian Rogers
Currently event groups are placed into groups_list at the same time as the events string containing the events is built. Separate these two operations and build the groups_list first, then the event string from the groups_list. This adds an ability to reorder the groups_list that will be used in a

[RFC PATCH 2/7] perf metricgroup: change evlist_used to a bitmap

2020-05-07 Thread Ian Rogers
Use a bitmap rather than an array of bools. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 2f92dbc05226..dcd175c05872 100644 --

[RFC PATCH 1/7] perf expr: migrate expr ids table to libbpf's hashmap

2020-05-07 Thread Ian Rogers
Use a hashmap between a char* string and a double* value. While bpf's hashmap entries are size_t in size, we can't guarantee sizeof(size_t) >= sizeof(double). Avoid a memory allocation when gathering ids by making 0.0 a special value encoded as NULL. Suggested by Andi Kleen: https://lore.kernel.or

  1   2   3   4   5   6   7   8   9   10   >