[RFC PATCH 0/5] DAMON: Make coexistable with Idle Page Tracking

2020-09-28 Thread SeongJae Park
From: SeongJae Park NOTE: This is an RFC for future change of DAMON patchsets[1,2,3], which is not merged in the mainline yet. The aim of this RFC is to show how the patchset would be changed in the next version. So, if you have some interest in this RFC, please consider reviewing the DAMON pat

[RFC PATCH 2/5] mm/damon: Separate DAMON schemes application to primitives

2020-09-28 Thread SeongJae Park
From: SeongJae Park DAMON-based operation schemes feature is implemented inside DAMON 'core'. Though the access pattern based schemes target region tracking part makes sense to reside in the 'core', applying the scheme action would better to be reside in the 'primitives', as the work highly depe

[RFC PATCH 3/5] mm/damon: Move recording feature from core to dbgfs

2020-09-28 Thread SeongJae Park
From: SeongJae Park DAMON passes the monitoring results to user space via two ways: 1) a tracepoint and 2) it's recording feature. The recording feature is for the users who want simplest use. However, as the feature is for the user space only while the core is fundamentally a framework for the

[RFC PATCH 4/5] mm/page_idle: Avoid interferences from concurrent users

2020-09-28 Thread SeongJae Park
From: SeongJae Park Concurrent Idle Page Tracking users can interfere each other because the interface doesn't provide a central rule for synchronization between the users. Users could implement their own synchronization rule, but even in that case, applications developed by different users woul

[PATCH 4/4] scsi: arcmsr: Update driver version to v1.50.00.02-20200819

2020-09-28 Thread ching Huang
From: ching Huang Update driver version to v1.50.00.02-20200819. Signed-off-by: ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index 5e32f17..5d054d5 100755 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -49,7 +49,7 @@ struct

[RFC PATCH 5/5] mm/damon/primitives: Make coexistable with Idle Page Tracking

2020-09-28 Thread SeongJae Park
From: SeongJae Park DAMON's reference 'primitives' internally use 'PG_Idle' flag. Because the flag is also used by Idle Page Tracking but there was no way to synchronize with it, the 'primitives' were configured to be exclusive with Idle Page Tracking before. However, as we can now synchronize

[PATCH v2 4/9] gpio: mockup: use KBUILD_MODNAME

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Drop the definition for the driver name. Let's use KBUILD_MODNAME for the log format and use the "gpio-mockup" value directly in the only place where it's relevant: in the name of the device. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers

[PATCH v2 0/9] gpio: mockup: refactoring + documentation

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski These patches were part of the bigger overhaul of gpio-mockup but since the initial idea was dropped in favor of using configfs + sysfs in the future I thought I'd resent just the refactoring of the existing code + documentation patches. I think it's good to apply them s

[PATCH v2 2/9] Documentation: gpio: add documentation for gpio-mockup

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's some documentation for gpio-mockup's debugfs interface in the driver's source but it's not much. Add proper documentation for this testing module. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- .../admin-guide/gpio/gpio-mockup.rst

[PATCH v2 8/9] gpio: mockup: use the generic 'gpio-line-names' property

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski GPIO line names are currently created by the driver from the chip label. We'll want to support custom formats for line names (for instance: to name all lines the same) for user-space tests so create them in the module init function and pass them to the driver using the s

[PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's a common pattern of dynamically allocating an array of char pointers and then also dynamically allocating each string in this array. Provide a helper for freeing such a string array with one call. Signed-off-by: Bartosz Golaszewski --- include/linux/string_hel

[PATCH v2 6/9] gpio: mockup: remove unneeded return statement

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's a return; at the end of a void function. This is not needed so remove it. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/

Re: linux-next: manual merge of the akpm-current tree with the pm tree

2020-09-28 Thread Jonathan Cameron
On Mon, 28 Sep 2020 20:24:59 +1000 Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the akpm-current tree got a conflict in: > > drivers/acpi/numa/hmat.c > > between commits: > > 01feba590cd6 ("ACPI: Do not create new NUMA domains from ACPI static tables > that are not S

[PATCH v2 7/9] gpio: mockup: pass the chip label as device property

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While we do check the "chip-name" property in probe(), we never actually use it. Let's pass the chip label to the driver using device properties as we'll want to allow users to define their own once dynamically created chips are supported. The property is renamed to "ch

[PATCH v2 9/9] gpio: mockup: refactor the module init function

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Let's move the code preparing the device properties into a separate routine. This has the advantage of simplifying the error handling and makes the indentation less deep. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c |

[PATCH v2 5/9] gpio: mockup: use pr_fmt()

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We don't need a custom logging helper. Let's use the standard pr_fmt() macro which allows us to use all pr_*() routines with custom format. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 8 1 file changed, 4

[PATCH v2 3/9] gpio: mockup: drop unneeded includes

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This module doesn't need gpio/consumer.h - it's a provider. It also doesn't use any symbols from init.h so let's remove both includes. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 2 -- 1 file changed, 2 deletions(-

Re: perf script, libperf: python binding bug (bytearrays vs. strings)

2020-09-28 Thread Hagen Paul Pfeifer
* Jiri Olsa | 2020-09-28 12:08:08 [+0200]: >patch below fixes it for me, but seems strange this was >working till now.. maybe you're the only one using this >with python3 ;-) and I thought python2 is obsolete and not maintained anymore ... ;-) Anyway, the patch fixed everything: no more garbage f

Re: [PATCH v2] PCI: hv: Fix hibernation in case interrupts are not re-created

2020-09-28 Thread Lorenzo Pieralisi
[+MarcZ - this patch needs IRQ maintainers vetting] On Tue, Sep 08, 2020 at 04:17:59PM -0700, Dexuan Cui wrote: > Hyper-V doesn't trap and emulate the accesses to the MSI/MSI-X registers, > and we must use hv_compose_msi_msg() to ask Hyper-V to create the IOMMU > Interrupt Remapping Table Entries.

[PATCH 1/4] scsi: arcmsr: Remove unnecessary syntax

2020-09-28 Thread ching Huang
From: ching Huang (Resend for adding subject) Remove unnecessary syntax. Signed-off-by: ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index fa562a0..5076480 100755 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @

Re: WARNING: CPU: 1

2020-09-28 Thread Arend Van Spriel
On 9/28/2020 12:04 PM, Dmitry Vyukov wrote: On Mon, Sep 28, 2020 at 11:31 AM Arend Van Spriel wrote: On 9/27/2020 10:47 AM, Dmitry Vyukov wrote: On Sun, Sep 27, 2020 at 10:38 AM syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:748d1c8a Merge branch 'devlink-Use-n

[PATCH] staging: most: don't access hdm_ch before checking it valid

2020-09-28 Thread Jing Xiangfeng
In try_start_dim_transfer(), pointer hdm_ch is accessed before checking. This may lead to a potential null pointer dereference. Fix this by dereferencing hdm_ch after calling BUG_ON(). Signed-off-by: Jing Xiangfeng --- drivers/staging/most/dim2/dim2.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH V7 4/4] softirq: Allow early break the softirq processing loop

2020-09-28 Thread jun qian
Frederic Weisbecker 于2020年9月25日周五 上午8:42写道: > > On Thu, Sep 24, 2020 at 05:37:42PM +0200, Thomas Gleixner wrote: > > Subject: softirq; Prevent starvation of higher softirq vectors > [...] > > + /* > > + * Word swap pending to move the not yet handled bits of the previous > > + * run

[PATCH] hwmon: add support for SMSC EMC2305/03/02/01 fan controller

2020-09-28 Thread Biwen Li
From: Reinhard Pfau Add support for SMSC EMC2305, EMC2303, EMC2302, EMC2301 fan controller chips. The driver primary supports the EMC2305 chip which provides RPM-based PWM control and monitoring for up to 5 fans. According to the SMSC data sheets the EMC2303, EMC2302 and EMC2301 chips have basic

Re: [PATCH] usb: bdc: Remove duplicate error message in bdc_probe()

2020-09-28 Thread Tang Bin
Hi Balbi: 在 2020/9/28 17:40, Felipe Balbi 写道: Hi, Tang Bin writes: Hi Greg KH: 在 2020/9/27 21:45, Greg KH 写道: On Sun, Sep 27, 2020 at 09:42:18PM +0800, Tang Bin wrote: In this function, we don't need dev_err() message because when something goes wrong, devm_platform_ioremap_resource() can

Re: [PATCH v3 08/21] dt-bindings: arm: hisilicon: convert system controller bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/28 17:44, Jonathan Cameron wrote: > On Sun, 27 Sep 2020 14:21:16 +0800 > Zhen Lei wrote: > >> Convert the Hisilicon system controller and its variants binding to DT >> schema format using json-schema. All of them are grouped into one yaml >> file, to help users understand differences

RE: [PATCH] hwmon: add support for SMSC EMC2305/03/02/01 fan controller

2020-09-28 Thread Biwen Li
Hi All, The patch has a problem as follows, root@localhost:~# cat /sys/class/hwmon/hwmon0/pwm1 [ 103.150689] Unable to handle kernel paging request at virtual address 00329c100026 [ 103.158651] Mem abort info: [ 103.161443] ESR = 0x9604 [ 103.164486] EC = 0x25: DABT (current EL),

Re: [PATCH] time/sched_clock: mark sched_clock_read_begin as notrace

2020-09-28 Thread Peter Zijlstra
On Mon, Sep 28, 2020 at 06:49:52PM +0800, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > Since sched_clock_read_begin is called by notrace function sched_clock, > it shouldn't be traceable either, or else __ftrace_graph_caller will > run into a dead loop on the path (arm for instanc

Re: [PATCH 2/2] coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register

2020-09-28 Thread Suzuki K Poulose
Hi Sai, On 09/27/2020 05:20 PM, Sai Prakash Ranjan wrote: In commit f188b5e76aae ("coresight: etm4x: Save/restore state across CPU low power states"), mistakenly TRCVMIDCCTLR1 register value was saved in trcvmidcctlr0 state variable which is used to store TRCVMIDCCTLR0 register value in etm4x_cp

Re: [PATCH v5 1/3] leds: pwm: Remove platform_data support

2020-09-28 Thread Alexander Dahl
Hello Pavel, Am Samstag, 19. September 2020, 11:44:18 CEST schrieb Pavel Machek: > > Since commit 141f15c66d94 ("leds: pwm: remove header") that platform > > interface is not usable from outside and there seems to be no in tree > > user anymore. All in-tree users of the leds-pwm driver seem to us

Re: [PATCH 5/5] perf: arm_spe: Decode SVE events

2020-09-28 Thread Leo Yan
Hi Andre, On Mon, Sep 28, 2020 at 11:15:53AM +0100, André Przywara wrote: [...] > > So my summary for patches 02 ~ 05, except patch 04, other changes has > > been included in the patch set "perf arm-spe: Refactor decoding & > > dumping flow". > > Ah, my sincere apologies, I totally missed Wei's

Re: [PATCH 2/5 V2] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-28 Thread Sinan Kaya
On 9/27/2020 10:01 PM, Zhao, Haifeng wrote: > Sinan, >I explained the reason why locks don't protect this case in the patch > description part. > Write side and read side hold different semaphore and mutex. > I have been thinking about it some time but is there any reason why we have to han

Re: [PATCH -next] PCI: tegra: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-28 Thread Lorenzo Pieralisi
On Wed, Sep 16, 2020 at 10:50:25AM +0800, Liu Shixin wrote: > Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pci-tegra.c | 28 +++- > 1 file changed, 3 insertions(+), 25 deletions(-) Applied to pci/tegra,

Re: [PATCH V7 4/4] softirq: Allow early break the softirq processing loop

2020-09-28 Thread jun qian
Peter Zijlstra 于2020年9月28日周一 下午5:20写道: > > On Tue, Sep 15, 2020 at 07:56:09PM +0800, qianjun.ker...@gmail.com wrote: > > From: jun qian > > > > Allow terminating the softirq processing loop without finishing the vectors. > > > > Signed-off-by: jun qian > > --- > > kernel/softirq.c | 113 > > ++

Re: [PATCH v3 10/21] dt-bindings: arm: hisilicon: convert hisilicon, pcie-sas-subctrl bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/28 17:46, Jonathan Cameron wrote: > On Sun, 27 Sep 2020 14:21:18 +0800 > Zhen Lei wrote: > >> Convert the Hisilicon HiP05/HiP06 PCIe-SAS subsystem controller binding >> to DT schema format using json-schema. >> >> Signed-off-by: Zhen Lei > > One small thing inline to fix. > > Jona

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-09-28 Thread Sinan Kaya
On 9/27/2020 10:43 PM, Kuppuswamy, Sathyanarayanan wrote: > FATAL + no-hotplug - In this case, link will still be reseted. But > currently driver state is not properly restored. So I attempted > to restore it using pci_reset_bus(). > > status = reset_link(dev); > -    if (status != PC

Re: [PATCH v3 0/3] kgdb: Honour the kprobe blocklist when setting breakpoints

2020-09-28 Thread Daniel Thompson
On Sun, Sep 27, 2020 at 10:15:28PM +0100, Daniel Thompson wrote: > kgdb has traditionally adopted a no safety rails approach to breakpoint > placement. If the debugger is commanded to place a breakpoint at an > address then it will do so even if that breakpoint results in kgdb > becoming inoperable

Re: [PATCH v3 20/21] dt-bindings: arm: hisilicon: convert hisilicon, hi6220-sramctrl bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/28 17:50, Jonathan Cameron wrote: > On Sun, 27 Sep 2020 14:21:28 +0800 > Zhen Lei wrote: > >> Convert the Hisilicon Hi6220 SRAM controller binding to DT schema format >> using json-schema. >> >> Signed-off-by: Zhen Lei >> --- >> .../hi3620/hisilicon,hi6220-sramctrl.txt |

[PATCH v2 2/2] ASoC: cs4234: Add support for Cirrus Logic CS4234 codec

2020-09-28 Thread Richard Fitzgerald
From: Lucas Tanure The CS4234 is a highly versatile CODEC that combines 4 channels of high performance analog to digital conversion, 4 channels of high performance digital to analog conversion for audio, and 1 channel of digital to analog conversion to provide a nondelayed audio reference signal

[PATCH v2 1/2] ASoC: cs4234: Add dtschema binding document

2020-09-28 Thread Richard Fitzgerald
From: Charles Keepax Document the bindings for the CS4234 ASoC codec driver. Signed-off-by: Charles Keepax --- .../bindings/sound/cirrus,cs4234.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cirrus,cs4234.yaml

Re: [PATCH v3 21/21] dt-bindings: arm: hisilicon: convert LPC controller bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/28 17:52, Jonathan Cameron wrote: > On Sun, 27 Sep 2020 14:21:29 +0800 > Zhen Lei wrote: > >> Convert the Hisilicon Hip06 SoCs implement a Low Pin Count (LPC) >> controller binding to DT schema format using json-schema. >> >> Signed-off-by: Zhen Lei > > As only single entries in th

Re: [PATCH v5 3/3] dt-bindings: leds: Convert pwm to yaml

2020-09-28 Thread Alexander Dahl
Hello Rob, Am Dienstag, 22. September 2020, 17:42:58 CEST schrieb Rob Herring: > On Sat, 19 Sep 2020 07:31:45 +0200, Alexander Dahl wrote: > > The example was adapted slightly to make use of the 'function' and > > 'color' properties. License discussed with the original author. > > > > Suggested-

Re: [PATCH RFC 1/8] dt-bindings: thermal: Introduce monitor-falling parameter to thermal trip point binding

2020-09-28 Thread Thara Gopinath
Hi Rob, Thanks for the review. On 9/23/20 12:03 PM, Rob Herring wrote: On Wed, Sep 16, 2020 at 11:22:19PM -0400, Thara Gopinath wrote: Introduce a new binding parameter to thermal trip point description to indicate whether the temperature level specified by the trip point is monitored for a ris

Re: [PATCH 2/2] coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register

2020-09-28 Thread Sai Prakash Ranjan
Hi Suzuki, On 2020-09-28 16:35, Suzuki K Poulose wrote: Hi Sai, On 09/27/2020 05:20 PM, Sai Prakash Ranjan wrote: In commit f188b5e76aae ("coresight: etm4x: Save/restore state across CPU low power states"), mistakenly TRCVMIDCCTLR1 register value was saved in trcvmidcctlr0 state variable which

Re: [PATCH] usb: bdc: Remove duplicate error message in bdc_probe()

2020-09-28 Thread Greg KH
On Mon, Sep 28, 2020 at 06:55:26PM +0800, Tang Bin wrote: > Hi Balbi: > > 在 2020/9/28 17:40, Felipe Balbi 写道: > > Hi, > > > > Tang Bin writes: > > > Hi Greg KH: > > > > > > 在 2020/9/27 21:45, Greg KH 写道: > > > > On Sun, Sep 27, 2020 at 09:42:18PM +0800, Tang Bin wrote: > > > > > In this functio

Re: [RESEND PATCH v2] iio: adc: stm32-adc: fix runtime autosuspend delay when slow polling

2020-09-28 Thread Ulf Hansson
Jonathan, Fabrice, On Sat, 26 Sep 2020 at 17:17, Jonathan Cameron wrote: > > On Wed, 16 Sep 2020 12:28:00 +0200 > Fabrice Gasnier wrote: > > > On 7/1/20 4:55 PM, Fabrice Gasnier wrote: > > > When the ADC is runtime suspended and starting a conversion, the stm32-adc > > > driver calls pm_runtime_

linux-next: build failure after merge of the akpm tree

2020-09-28 Thread Stephen Rothwell
Hi all, After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: mm/madvise.c: In function '__do_sys_process_madvise': mm/madvise.c:1194:9: error: implicit declaration of function 'compat_import_iovec'; did you mean 'import_iovec'? [-Werror=implicit-func

Re: [PATCH RFC v7 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings

2020-09-28 Thread Kevin Tang
Hi maxime, Sorry, I forgot to describe ports subnode with my two port@X, i will be fix it. Thanks for reminding Maxime Ripard 于2020年9月28日周一 下午4:20写道: > > Hi! > > On Mon, Sep 28, 2020 at 02:27:39PM +0800, Kevin Tang wrote: > > From: Kevin Tang > > > > Adds MIPI DSI Master and MIPI DSI-PHY (D-PHY

Re: [PATCH RFC] kbuild: doc: describe proper script invocation

2020-09-28 Thread Masahiro Yamada
On Mon, Sep 28, 2020 at 3:42 PM Lukas Bulwahn wrote: > > During an investigation to fix up the execute bits of scripts in the kernel > repository, Andrew Morton and Kees Cook pointed out that the execute bit > should not matter, and that build scripts cannot rely on that. Kees could > not point to

Re: linux-next: build failure after merge of the akpm tree

2020-09-28 Thread Christoph Hellwig
Thanks, the fix looks correct.

Re: [PATCH] usb: bdc: Remove duplicate error message in bdc_probe()

2020-09-28 Thread Tang Bin
Hi 在 2020/9/28 19:23, Greg KH 写道: On Mon, Sep 28, 2020 at 06:55:26PM +0800, Tang Bin wrote: Hi Balbi: 在 2020/9/28 17:40, Felipe Balbi 写道: Hi, Tang Bin writes: Hi Greg KH: 在 2020/9/27 21:45, Greg KH 写道: On Sun, Sep 27, 2020 at 09:42:18PM +0800, Tang Bin wrote: In this function, we don't

Re: [PATCH 5/6] x86/apic/msi: Use Real PCI DMA device when configuring IRTE

2020-09-28 Thread Thomas Gleixner
On Mon, Sep 07 2020 at 15:32, Lorenzo Pieralisi wrote: > On Tue, Jul 28, 2020 at 01:49:44PM -0600, Jon Derrick wrote: >> VMD retransmits child device MSI/X with the VMD endpoint's requester-id. >> In order to support direct interrupt remapping of VMD child devices, >> ensure that the IRTE is progr

Re: [PATCH 1/3] software node: Power management operations for software nodes

2020-09-28 Thread Heikki Krogerus
On Fri, Sep 25, 2020 at 05:54:37PM +0200, Rafael J. Wysocki wrote: > On Tue, Aug 25, 2020 at 3:59 PM Heikki Krogerus > wrote: > > > > Adding separate PM operations vector for the software nodes. > > The software node specific PM operations make it possible to > > handle most PM related quirks sepa

Re: [PATCH 05/18] ARM/dma-mapping: Switch to iommu_dma_ops

2020-09-28 Thread Marek Szyprowski
Hi Robin, On 20.08.2020 17:08, Robin Murphy wrote: > With the IOMMU ops now looking much the same shape as iommu_dma_ops, > switch them out in favour of the iommu-dma library, currently enhanced > with temporary workarounds that allow it to also sit underneath the > arch-specific API. With that in

Re: [RFC PATCH v6 0/8] Add support for ipq8064 tsens

2020-09-28 Thread Amit Kucheria
Hi Ansuel, Just a quick note to say that I'm not ignoring this, just on vacations. I'll be back to review this in a few days. Regards, Amit On Fri, Aug 14, 2020 at 7:12 PM Ansuel Smith wrote: > > This patchset convert msm8960 to reg_filed, use int_common instead > of a custom function and fix w

[PATCH v7 bpf-next 1/8] bpf: provide function to get vmlinux BTF information

2020-09-28 Thread Alan Maguire
It will be used later for BPF structure display support Signed-off-by: Alan Maguire --- include/linux/bpf.h | 2 ++ kernel/bpf/verifier.c | 18 -- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 7990232..2eae3f3 1

[PATCH v7 bpf-next 0/8] bpf: add helpers to support BTF-based kernel data display

2020-09-28 Thread Alan Maguire
This series attempts to provide a simple way for BPF programs (and in future other consumers) to utilize BPF Type Format (BTF) information to display kernel data structures in-kernel. The use case this functionality is applied to here is to support a snprintf()-like helper to copy a BTF representa

[PATCH v7 bpf-next 3/8] bpf: add bpf_snprintf_btf helper

2020-09-28 Thread Alan Maguire
A helper is added to support tracing kernel type information in BPF using the BPF Type Format (BTF). Its signature is long bpf_snprintf_btf(char *str, u32 str_size, struct btf_ptr *ptr, u32 btf_ptr_size, u64 flags); struct btf_ptr * specifies - a pointer to the data to be

[PATCH v7 bpf-next 2/8] bpf: move to generic BTF show support, apply it to seq files/strings

2020-09-28 Thread Alan Maguire
generalize the "seq_show" seq file support in btf.c to support a generic show callback of which we support two instances; the current seq file show, and a show with snprintf() behaviour which instead writes the type data to a supplied string. Both classes of show function call btf_type_show() with

[PATCH v7 bpf-next 7/8] bpf: add bpf_seq_printf_btf helper

2020-09-28 Thread Alan Maguire
A helper is added to allow seq file writing of kernel data structures using vmlinux BTF. Its signature is long bpf_seq_printf_btf(struct seq_file *m, struct btf_ptr *ptr, u32 btf_ptr_size, u64 flags); Flags and struct btf_ptr definitions/use are identical to the bpf_snpri

[PATCH v7 bpf-next 6/8] selftests/bpf: fix overflow tests to reflect iter size increase

2020-09-28 Thread Alan Maguire
bpf iter size increase to PAGE_SIZE << 3 means overflow tests assuming page size need to be bumped also. Signed-off-by: Alan Maguire --- tools/testing/selftests/bpf/prog_tests/bpf_iter.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/bp

[PATCH v7 bpf-next 4/8] selftests/bpf: add bpf_snprintf_btf helper tests

2020-09-28 Thread Alan Maguire
Tests verifying snprintf()ing of various data structures, flags combinations using a tp_btf program. Tests are skipped if __builtin_btf_type_id is not available to retrieve BTF type ids. Signed-off-by: Alan Maguire --- .../selftests/bpf/prog_tests/snprintf_btf.c| 60 + .../selftests

Re: linux-next: build failure after merge of the drm tree

2020-09-28 Thread Christoph Hellwig
On Mon, Sep 28, 2020 at 12:15:56PM +0200, Paul Cercueil wrote: > Hi Christoph, > > Le lun. 28 sept. 2020 à 8:04, Christoph Hellwig a écrit : >> On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote: >>> Hi all, >>> >>> After merging the drm tree, today's linux-next build (x86_64 >>>

RE: [RFC PATCH v6 0/8] Add support for ipq8064 tsens

2020-09-28 Thread ansuelsmth
> -Original Message- > From: Amit Kucheria > Sent: Monday, September 28, 2020 1:33 PM > To: Ansuel Smith > Cc: Andy Gross ; Bjorn Andersson > ; Zhang Rui ; Daniel > Lezcano ; Rob Herring ; > linux-arm-msm ; Linux PM list p...@vger.kernel.org>; open list:OPEN FIRMWARE AND FLATTENED DEV

[PATCH v7 bpf-next 5/8] bpf: bump iter seq size to support BTF representation of large data structures

2020-09-28 Thread Alan Maguire
BPF iter size is limited to PAGE_SIZE; if we wish to display BTF-based representations of larger kernel data structures such as task_struct, this will be insufficient. Suggested-by: Alexei Starovoitov Signed-off-by: Alan Maguire --- kernel/bpf/bpf_iter.c | 4 ++-- 1 file changed, 2 insertions(+

[PATCH v7 bpf-next 8/8] selftests/bpf: add test for bpf_seq_printf_btf helper

2020-09-28 Thread Alan Maguire
Add a test verifying iterating over tasks and displaying BTF representation of task_struct succeeds. Suggested-by: Alexei Starovoitov Signed-off-by: Alan Maguire --- tools/testing/selftests/bpf/prog_tests/bpf_iter.c | 74 ++ .../selftests/bpf/progs/bpf_iter_task_btf.c

[PATCH] time/sched_clock: mark sched_clock_read_begin as notrace

2020-09-28 Thread quanyang.wang
From: Quanyang Wang Since sched_clock_read_begin is called by notrace function sched_clock, it shouldn't be traceable either, or else __ftrace_graph_caller will run into a dead loop on the path (arm for instance): ftrace_graph_caller prepare_ftrace_return function_graph_enter

[PATCHv2 0/2] Coresight ETF perf NULL pointer dereference and ETM save/restore fixes

2020-09-28 Thread Sai Prakash Ranjan
This 2 patch series provides fixes to ETF null pointer dereference crash and TRCVMIDCCTLR1 register save and restore fix. Patch 1 is an RFC since I am not sure of the fix provided since it looks more like a band-aid than the actual fix. Changes in v2: * Remove extra fixes tag (Suzuki) Sai Praka

[RFC PATCHv2 1/2] coresight: tmc-etf: Fix NULL pointer dereference in tmc_enable_etf_sink_perf()

2020-09-28 Thread Sai Prakash Ranjan
There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID. It is almost 100% reproducible when the process to monitor is something very active such as chrome and only with ETF as the sink. Currently in a bid to find the pid, the owner is dereferenced via task_pid_n

[PATCHv2 2/2] coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register

2020-09-28 Thread Sai Prakash Ranjan
In commit f188b5e76aae ("coresight: etm4x: Save/restore state across CPU low power states"), mistakenly TRCVMIDCCTLR1 register value was saved in trcvmidcctlr0 state variable which is used to store TRCVMIDCCTLR0 register value in etm4x_cpu_save() and then same value is written back to both TRCVMIDC

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-28 Thread Dan Scally
On 17/09/2020 11:33, Sakari Ailus wrote: >> +sensor_props[3] = PROPERTY_ENTRY_U32_ARRAY_LEN("data-lanes", >> + data_lanes, >> + >> (int)ssdb->lanes); >> +sens

Re: [PATCH v6 4/4] Bluetooth: Add toggle to switch off interleave scan

2020-09-28 Thread kernel test robot
a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Howard-Chung/Bluetooth-Interleave-with-allowlist-scan/20200928-154335 base: https://git.kernel.org/pub/scm/linux/

[PATCH v1 net] net: stmmac: Modify configuration method of EEE timers

2020-09-28 Thread Voon Weifeng
From: "Vineetha G. Jaya Kumaran" Ethtool manual stated that the tx-timer is the "the amount of time the device should stay in idle mode prior to asserting its Tx LPI". The previous implementation for "ethtool --set-eee tx-timer" sets the LPI TW timer duration which is not correct. Hence, this pa

[PATCH 4/4] mailbox: arm_mhu: Add ARM MHU doorbell driver

2020-09-28 Thread Sudeep Holla
The MHU drives the signal using a 32-bit register, with all 32 bits logically ORed together. The MHU provides a set of registers to enable software to set, clear, and check the status of each of the bits of this register independently. The use of 32 bits for each interrupt line enables software to

[PATCH 3/4] mailbox: arm_mhu: Match only if compatible is "arm,mhu"

2020-09-28 Thread Sudeep Holla
Since we will be soon adding a separate driver based on this ARM MHU driver to support doorbell mode, let us add explicit check to match the default compatible for this driver. This is needed as the probe and match reuses the AMBA device ids currently and don't have any explicit compatible check.

[PATCH 1/4] dt-bindings: mailbox : arm,mhu: Convert to Json-schema

2020-09-28 Thread Sudeep Holla
From: Viresh Kumar Convert the DT binding over to Json-schema. Reviewed-by: Rob Herring Signed-off-by: Viresh Kumar Signed-off-by: Sudeep Holla --- .../devicetree/bindings/mailbox/arm,mhu.yaml | 87 +++ .../devicetree/bindings/mailbox/arm-mhu.txt | 43 - 2 files ch

[PATCH 0/4] mailbox: arm_mhu: Add ARM MHU doorbell controller driver

2020-09-28 Thread Sudeep Holla
Hi, These series adds ARM MHU doorbell controller driver based on the discussion[1]. The DT patches are just repost from Viresh's last posting[2] Regards, Sudeep [1] https://lore.kernel.org/lkml/20200909044618.deyx37pzocxiga7u@vireshk-i7 [2] https://lore.kernel.org/r/3874de094d193a08624a00a3506

[PATCH 2/4] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-09-28 Thread Sudeep Holla
The ARM MHU's reference manual states following: "The MHU drives the signal using a 32-bit register, with all 32 bits logically ORed together. The MHU provides a set of registers to enable software to set, clear, and check the status of each of the bits of this register independently. The use of

Re: [PATCH] gpio: gpio-amd-fch: Fix typo on define of AMD_FCH_GPIO_REG_GPIO55_DEVSLP0

2020-09-28 Thread Andy Shevchenko
On Mon, Sep 28, 2020 at 1:33 PM Ed W wrote: > > Hi > > Could I get a final opinion (or signoff) on this patch please? > > The significant typo is the reference to "59", when the GPIO is actually 55 > > According to the PCEngines schematic the names of two similar GPIOs are > G59/DEVSLP1 >

Re: linux-next: build failure after merge of the drm tree

2020-09-28 Thread Paul Cercueil
Le lun. 28 sept. 2020 à 13:34, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 12:15:56PM +0200, Paul Cercueil wrote: Hi Christoph, Le lun. 28 sept. 2020 à 8:04, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote: Hi all, After merg

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-28 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 23, 2020 at 09:25:06AM +0800, Jin, Yao escreveu: > Hi Arnaldo, > > On 9/23/2020 3:42 AM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Sep 22, 2020 at 11:19:17AM +0800, Jin Yao escreveu: > > > - Update CascadelakeX events to v1.08. > > > - Update CascadelakeX JSON metrics from TMAM 4.0.

[PATCH -next] fs_parse: mark fs_param_bad_value() as static

2020-09-28 Thread Luo Jiaxing
We found the following warning when build kernel with W=1: fs/fs_parser.c:192:5: warning: no previous prototype for ‘fs_param_bad_value’ [-Wmissing-prototypes] int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) ^ CC drivers/usb/gadget/udc/snps_udc_core.o And no heade

Re: [PATCH] staging: most: don't access hdm_ch before checking it valid

2020-09-28 Thread Dan Carpenter
On Mon, Sep 28, 2020 at 06:48:38PM +0800, Jing Xiangfeng wrote: > In try_start_dim_transfer(), pointer hdm_ch is accessed before checking. > This may lead to a potential null pointer dereference. Fix this by > dereferencing hdm_ch after calling BUG_ON(). > > Signed-off-by: Jing Xiangfeng > --- >

[PATCH 0/2] KVM: nSVM: do not access MSR permission bitmap before KVM_RUN

2020-09-28 Thread Paolo Bonzini
Similar to what we need to do for VMX, the MSR permission bitmap should not be accessed until the first KVM_RUN. This is important because the memory map might not be up-to-date at the time of KVM_SET_NESTED_STATE. Paolo Bonzini (2): KVM: x86: rename KVM_REQ_GET_VMCS12_PAGES KVM: nSVM: delay

[PATCH 2/2] nSVM: delay MSR permission processing to first nested VM run

2020-09-28 Thread Paolo Bonzini
Allow userspace to set up the memory map after KVM_SET_NESTED_STATE; to do so, move the call to nested_svm_vmrun_msrpm inside the KVM_REQ_GET_NESTED_STATE_PAGES handler (which is currently not used by nSVM). This is similar to what VMX does already. Signed-off-by: Paolo Bonzini --- arch/x86/kvm

[PATCH 1/2] KVM: x86: rename KVM_REQ_GET_VMCS12_PAGES

2020-09-28 Thread Paolo Bonzini
We are going to use it for SVM too, so use a more generic name. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 4 ++-- arch/x86/kvm/vmx/nested.c | 8 arch/x86/kvm/x86.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x

Re: [RFC V2 0/9] x86/mmu:Introduce parallel memory virtualization to boost performance

2020-09-28 Thread yulei zhang
On Sat, Sep 26, 2020 at 4:50 AM Paolo Bonzini wrote: > > On 25/09/20 19:30, Ben Gardon wrote: > > Oh, thank you for explaining that. I didn't realize the goal here was > > to improve LM performance. I was under the impression that this was to > > give VMs a better experience on startup for fast sc

Re: [PATCH 3/5] perf tools: Copy metric events properly when expand cgroups

2020-09-28 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 25, 2020 at 03:51:33PM +0200, Jiri Olsa escreveu: > On Fri, Sep 25, 2020 at 10:44:53PM +0900, Namhyung Kim wrote: > > On Fri, Sep 25, 2020 at 10:26 PM Jiri Olsa wrote: > > > On Thu, Sep 24, 2020 at 09:44:53PM +0900, Namhyung Kim wrote: > > No actually, I still think perf record should

Re: [PATCH v3 03/10] arm64, kfence: enable KFENCE for ARM64

2020-09-28 Thread Marco Elver
On Mon, 21 Sep 2020 at 16:31, Will Deacon wrote: > On Mon, Sep 21, 2020 at 03:26:04PM +0200, Marco Elver wrote: > > Add architecture specific implementation details for KFENCE and enable > > KFENCE for the arm64 architecture. In particular, this implements the > > required interface in . Currently

Re: [PATCH 3/3] arm64: rebuild sched domains on invariance status changes

2020-09-28 Thread Dietmar Eggemann
On 25/09/2020 15:59, Quentin Perret wrote: > Hey Ionela, > > On Thursday 24 Sep 2020 at 17:10:02 (+0100), Ionela Voinescu wrote: >> I'm not sure what is a good way of fixing this.. I could add more info >> to the warning to suggest it might be temporary ("Disabling EAS: >> frequency-invariant load

linux-next: Tree for Sep 28

2020-09-28 Thread Stephen Rothwell
Hi all, Changes since 20200925: The vfs tree lost its build failure, but gained another for which I applied a fix patch. The net-next tree gained a conflict against the net tree. The drm tree gained a build failure due to a semantic conflict with the dma-mapping tree for which I have disabled a

Re: [PATCH] leds: lp50xx: Fix an error handling path in 'lp50xx_probe_dt()'

2020-09-28 Thread Heikki Krogerus
On Thu, Sep 24, 2020 at 09:49:32AM +0300, Dan Carpenter wrote: > On Wed, Sep 23, 2020 at 08:49:56PM +0200, Christophe JAILLET wrote: > > Le 23/09/2020 à 15:35, Dan Carpenter a écrit : > > > I've added Heikki Krogerus to the CC list because my question is mostly > > > about commit 59abd83672f7 ("dri

Re: [PATCH v2 0/3] PM / Domains: Add power on/off notifiers for genpd

2020-09-28 Thread Ulf Hansson
Rafael, On Thu, 24 Sep 2020 at 13:06, Ulf Hansson wrote: > > Changes in v2: > - Improved error handling in patch3. > > A device may have specific HW constraints that must be obeyed to, before its > corresponding PM domain (genpd) can be powered off - and vice verse at power > on. These co

Re: [PATCH 2/2] ARM: decompressor: relax the loading restriction of the decompressed kernel

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/28 18:14, Ard Biesheuvel wrote: > On Mon, 28 Sep 2020 at 11:27, Zhen Lei wrote: >> >> mov r4, pc >> and r4, r4, #0xf800 //truncated to 128MiB boundary >> add r4, r4, #TEXT_OFFSET//PA(_start) >> >> Currently, the decompressed kernel must be placed at the positio

[PATCH v2] usb: bdc: Fix the return value and remove duplicate error message

2020-09-28 Thread Tang Bin
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed, and it can print an error message itself if failed. So remove the redundant dev_err() in this place. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- Chan

[PATCH] KVM: x86: do not attempt TSC synchronization on guest writes

2020-09-28 Thread Paolo Bonzini
KVM special-cases writes to MSR_IA32_TSC so that all CPUs have the same base for the TSC. This logic is complicated, and we do not want it to have any effect once the VM is started. In particular, if any guest started to synchronize its TSCs with writes to MSR_IA32_TSC rather than MSR_IA32_TSC_AD

[PATCH v2] KVM: x86: do not attempt TSC synchronization on guest writes

2020-09-28 Thread Paolo Bonzini
KVM special-cases writes to MSR_IA32_TSC so that all CPUs have the same base for the TSC. This logic is complicated, and we do not want it to have any effect once the VM is started. In particular, if any guest started to synchronize its TSCs with writes to MSR_IA32_TSC rather than MSR_IA32_TSC_AD

Re: [PATCH 11/11] drivers/edac: convert pci counters to counter_atomic32

2020-09-28 Thread Borislav Petkov
On Fri, Sep 25, 2020 at 05:47:25PM -0600, Shuah Khan wrote: > counter_atomic* is introduced to be used when a variable is used as > a simple counter and doesn't guard object lifetimes. This clearly > differentiates atomic_t usages that guard object lifetimes. > > counter_atomic* variables will wra

Re: [PATCH v3 03/21] dt-bindings: arm: hisilicon: convert Hisilicon board/soc bindings to json-schema

2020-09-28 Thread Wei Xu
Hi Zhen Lei, Thanks! On 2020/9/27 14:21, Zhen Lei wrote: > Convert Hisilicon SoC bindings to DT schema format using json-schema. > > Signed-off-by: Zhen Lei > --- > .../bindings/arm/hisilicon/hisilicon.txt | 57 > .../bindings/arm/hisilicon/hisilicon.yaml |

[PATCH] regmap: destroy mutex (if used) in regmap_exit()

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While not destroying mutexes doesn't lead to memory leaks, it's still the correct thing to do for mutex debugging accounting. Signed-off-by: Bartosz Golaszewski --- drivers/base/regmap/regmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/regmap/

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