Re: [PATCH v13 00/14] KVM: Dirty ring interface

2020-11-06 Thread Paolo Bonzini
On 01/10/20 03:20, Peter Xu wrote: KVM branch: https://github.com/xzpeter/linux/tree/kvm-dirty-ring QEMU branch for testing: https://github.com/xzpeter/qemu/tree/kvm-dirty-ring v13: - rebase to kvm/queue rather than 5.9-rc7. I think, kvm/queue is broken. I can only test the dirty rin

Attention for you outstanding payment,

2020-11-06 Thread Eveline Baert
Attention for you outstanding payment, How are you doing hoping all is well with you and your family? We know you might have forgotten about this your outstanding compensation payment due to delay on the delivery up till now. Your ATM card worth of $4.700,000.00 USD has been today deposited with

Re: INFO: rcu detected stall in sys_mount (5)

2020-11-06 Thread David Howells
#syz fix: afs: Fix cell removal

Re: [v3 4/4] spi: aspeed: Add ASPEED FMC/SPI memory controller driver

2020-11-06 Thread Boris Brezillon
+Tudor and Vignesh On Fri, 6 Nov 2020 10:21:06 + Chin-Ting Kuo wrote: > Hi Boris, > > Thanks for your comments and suggestions. > > > -Original Message- > > From: Boris Brezillon > > Sent: Friday, November 6, 2020 5:06 PM > > To: Chin-Ting Kuo > > Subject: Re: [v3 4/4] spi: aspee

Re: INFO: rcu detected stall in process_one_work (3)

2020-11-06 Thread David Howells
#syz fix: afs: Fix cell removal

Re: INFO: rcu detected stall in ip_list_rcv

2020-11-06 Thread David Howells
#syz fix: afs: Fix cell removal

Re: [PATCH 2/4] arm64: dts: ti: k3-j721e*: Cleanup disabled nodes at SoC dtsi level

2020-11-06 Thread Peter Ujfalusi
Nishanth, On 05/11/2020 16.08, Nishanth Menon wrote: > On 09:32-20201105, Peter Ujfalusi wrote: >> Nishanth, >> >> On 05/11/2020 0.43, Nishanth Menon wrote: >>> The device tree standard sets the default node behavior when status >>> property as enabled. >> >> It should be: >> When the status prope

[PATCH] mm/memcg: update page struct member in comments

2020-11-06 Thread Alex Shi
The page->mem_cgroup member is replaced by memcg_data, and add a helper page_memcg() for it. Need to update comments to avoid confusing. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Morton Cc: cgro...@vger.kernel.org Cc: linux...@kvack.org

[tip: x86/urgent] x86/speculation: Allow IBPB to be conditionally enabled on CPUs with always-on STIBP

2020-11-06 Thread tip-bot2 for Anand K Mistry
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 1978b3a53a74e3230cd46932b149c6e62e832e9a Gitweb: https://git.kernel.org/tip/1978b3a53a74e3230cd46932b149c6e62e832e9a Author:Anand K Mistry AuthorDate:Thu, 05 Nov 2020 16:33:04 +11:00 Committ

Re: [PATCH V5 0/5] can: flexcan: add stop mode support for i.MX8QM

2020-11-06 Thread Marc Kleine-Budde
On 11/6/20 11:56 AM, Joakim Zhang wrote: > Add stop mode support for i.MX8QM. > > ChangeLogs: > V4->V5: > * remove patch:firmware: imx: always export SCU symbols, since > it done by commit: 95de5094f5ac firmware: imx: add dummy functions > * rebase to fsl,flexcan.yaml > > V3->V4

Re: [PATCH] net/ethernet: update ret when ptp_clock is ERROR

2020-11-06 Thread Grygorii Strashko
On 06/11/2020 09:56, Wang Qing wrote: We always have to update the value of ret, otherwise the error value may be the previous one. Signed-off-by: Wang Qing --- drivers/net/ethernet/ti/am65-cpts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet

[PATCH] powerpc/64s: Remove RFI

2020-11-06 Thread Christophe Leroy
Last use of RFI on PPC64 was removed by commit b8e90cb7bc04 ("powerpc/64: Convert the syscall exit path to use RFI_TO_USER/KERNEL"). Remove the macro. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/a

Re: INFO: rcu detected stall in security_file_open (3)

2020-11-06 Thread David Howells
#syz fix: afs: Fix cell removal

Re: [PATCH v8 28/43] arm64: mte: Reset the page tag in page->flags

2020-11-06 Thread Vincenzo Frascino
Hi Catalin, On 11/5/20 3:59 PM, Catalin Marinas wrote: > On Thu, Nov 05, 2020 at 12:18:43AM +0100, Andrey Konovalov wrote: >> diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c >> index 8f99c65837fd..06ba6c923ab7 100644 >> --- a/arch/arm64/kernel/mte.c >> +++ b/arch/arm64/kernel/mte.c

[PATCH v2 06/10] usb: cdnsp: Device side header file for CDNSP driver

2020-11-06 Thread Pawel Laszczak
Patch defines macros, registers and structures used by Device side driver. Because the size of main patch is very big, I’ve decided to create separate patch for cdnsp-gadget.h. It should simplify reviewing the code. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/cdnsp-gadget.h | 1463 +

[PATCH v2 03/10] usb: cdns3: Moves reusable code to separate module

2020-11-06 Thread Pawel Laszczak
Patch moves common reusable code used by cdns3 and cdnsp driver to cdns-usb-common library. This library include core.c, drd.c and host.c files. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/Kconfig | 8 drivers/usb/cdns3/Makefile | 8 +--- drivers/usb/cdns3/cdns3-p

[PATCH v2 05/10] usb: cdns3: Changed type of gadget_dev in cdns structure

2020-11-06 Thread Pawel Laszczak
Patch changes the type for gadget_dev pointer in cdns structure from pointer to cdns3_device structure to void pointer. This filed is in reusable code and after this change it will be used to point to both cdns3_device or cdnsp_device objects. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/

[PATCH] coccinelle: locks: Add balancedlock.cocci script

2020-11-06 Thread Sumera Priyadarsini
When acquiring locks under certain conditions, they must be released under the same conditions as well. However, sometimes, there may be missing unlocks which may lead to a potential deadlock. Add this script to detect such code segments and avoid potential deadlock situations. Signed-off-by: Sum

[PATCH v2 08/10] usb: cdnsp: Add tracepoints for CDNSP driver

2020-11-06 Thread Pawel Laszczak
Patch adds the series of tracepoints that can be used for debugging issues detected in driver. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/Makefile | 5 + drivers/usb/cdns3/cdnsp-debug.h | 583 + drivers/usb/cdns3/cdnsp-ep0.c| 22 +- drivers/usb/cdns3/cd

[PATCH v2 04/10] usb: cdns3: Refactoring names in reusable code

2020-11-06 Thread Pawel Laszczak
Patch change the functions and objects names in reusable code. The reusable code includes core.c, core.h, drd.c and drd.h files. It also changes the names of all references to these functions and objects in other cdns3 files. There are a lot of changes, but all changes are very trivial. The reason

[PATCH v2 01/10] usb: cdns3: Add support for DRD CDNSP

2020-11-06 Thread Pawel Laszczak
Patch adds support for Cadence DRD Super Speed Plus controller(CDNSP). CDNSP DRD is a part of Cadence CDNSP controller. The DRD CDNSP controller has a lot of difference on hardware level but on software level is quite compatible with CDNS3 DRD. For this reason CDNS3 DRD part of CDNS3 driver was reu

[PATCH v2 09/10] usb: cdns3: Change file names for cdns3 driver.

2020-11-06 Thread Pawel Laszczak
Patch adds prefix cdns3- to all file names related only to cdsn3 driver. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/Makefile | 6 +++--- drivers/usb/cdns3/{debug.h => cdns3-debug.h} | 0 drivers/usb/cdns3/{ep0.c => cdns3-ep0.c} | 4 ++-- drivers/usb/cdns3/{ga

[PATCH v2 10/10] MAINTAINERS: add Cadence USBSSP DRD IP driver entry

2020-11-06 Thread Pawel Laszczak
Patch adds entry for USBSSP (CDNSP) driver into MAINTARNERS file. Signed-off-by: Pawel Laszczak --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f41d0e29b331..731150530d10 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3866,7 +3866,14 @@

[PATCH v2 00/10] Introduced new Cadence USBSSP DRD Driver.

2020-11-06 Thread Pawel Laszczak
This patch introduce new Cadence USBSS DRD driver to linux kernel. The Cadence USBSS DRD Controller is a highly configurable IP Core which can be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only (XHCI)configurations. The current driver has been validated with FPGA burned. We

[PATCH v2 02/10] usb: cdns3: Split core.c into cdns3-plat and core.c file

2020-11-06 Thread Pawel Laszczak
Patch splits file core.c into core.c containing the common reusable code and cnd3-plat.c containing device platform specific code. These changes are required to make possible reuse DRD part of CDNS3 driver in CDNSP driver. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/Makefile | 2 +-

cleanup a fix and add the vma_set_file function

2020-11-06 Thread Christian König
Hi Andrew, can I get you Acked-by to merge this cleanup through the drm-misc-next branch? The affected drivers are mostly from the DRM subsystem. The fix for the other problem you pointed out in mmap_region() has already shown up in that branch. Thanks in advance, Christian.

[PATCH 1/2] mm: mmap: fix fput in error path v2

2020-11-06 Thread Christian König
Patch "495c10cc1c0c CHROMIUM: dma-buf: restore args..." adds a workaround for a bug in mmap_region. As the comment states ->mmap() callback can change vma->vm_file and so we might call fput() on the wrong file. Revert the workaround and proper fix this in mmap_region. v2: drop the extra if in dm

[PATCH 2/2] mm: introduce vma_set_file function v5

2020-11-06 Thread Christian König
Add the new vma_set_file() function to allow changing vma->vm_file with the necessary refcount dance. v2: add more users of this. v3: add missing EXPORT_SYMBOL, rebase on mmap cleanup, add comments why we drop the reference on two occasions. v4: make it clear that changing an anonymous vma is

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-06 Thread Adrian Ratiu
Hi Nathan, On Fri, 06 Nov 2020, Nathan Chancellor wrote: + Ard, who wrote this code. On Fri, Nov 06, 2020 at 07:14:36AM +0200, Adrian Ratiu wrote: Due to a Clang bug [1] neon autoloop vectorization does not happen or happens badly with no gains and considering previous GCC experiences whic

Re: [PATCH v5 0/4] DCMI BT656 parallel bus mode support

2020-11-06 Thread Sakari Ailus
Hi Alexandre, On Thu, Nov 05, 2020 at 10:26:37AM +0100, Alexandre Torgue wrote: > Hi Huges > > On 11/4/20 6:32 PM, Hugues Fruchet wrote: > > Add support of BT656 embedded synchronization bus. > > This mode allows to save hardware synchro lines hsync & vsync > > by replacing them with synchro code

Re: [PATCH v3 1/2] ASoC: dt-bindings: fsl_aud2htx: Add binding doc for aud2htx module

2020-11-06 Thread Mark Brown
On Mon, 2 Nov 2020 09:52:26 +0800, Shengjiu Wang wrote: > AUD2HTX (Audio Subsystem TO HDMI TX Subsystem) is a new > IP module found on i.MX8MP. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: dt-bindings: fsl_aud2htx: Add binding doc

Re: [PATCH v1] sched/fair: update_pick_idlest() Select group with lowest group_util when idle_cpus are equal

2020-11-06 Thread Mel Gorman
On Wed, Nov 04, 2020 at 09:42:05AM +, Mel Gorman wrote: > While it's possible that some other factor masked the impact of the patch, > the fact it's neutral for two workloads in 5.10-rc2 is suspicious as it > indicates that if the patch was implemented against 5.10-rc2, it would > likely not ha

Re: [linux-safety] [PATCH] taskstats: remove unneeded dead assignment

2020-11-06 Thread Sudip Mukherjee
Hi Lukas, On 06/11/2020 10:31, Lukas Bulwahn wrote: > > > On Fri, 6 Nov 2020, Sudip Mukherjee wrote: > >> Hi Lukas, >> > > I did not try but I bet (a beverage of your choice) that the object code > remains the same also for your suggested patch. Try to disprove my claim > and possibly earn

Re: [PATCH] RISC-V: Use non-PGD mappings for early DTB access

2020-11-06 Thread Bin Meng
On Fri, Nov 6, 2020 at 4:52 PM Anup Patel wrote: > > On Fri, Nov 6, 2020 at 1:30 PM Palmer Dabbelt > wrote: > > > > On Tue, 03 Nov 2020 22:37:13 PST (-0800), Anup Patel wrote: > > > Currently, we use PGD mappings for early DTB mapping in early_pgd > > > but this breaks Linux kernel on SiFive Unl

Re: [PATCH v5] cper, apei, mce: Pass x86 CPER through the MCA handling chain

2020-11-06 Thread Borislav Petkov
On Tue, Nov 03, 2020 at 10:49:52AM -0600, Smita Koralahalli wrote: > diff --git a/arch/x86/kernel/cpu/mce/apei.c b/arch/x86/kernel/cpu/mce/apei.c > index af8d37962586..f56f0bc147e2 100644 > --- a/arch/x86/kernel/cpu/mce/apei.c > +++ b/arch/x86/kernel/cpu/mce/apei.c > @@ -51,6 +51,62 @@ void apei_mc

Re: [PATCH v5] cper, apei, mce: Pass x86 CPER through the MCA handling chain

2020-11-06 Thread Borislav Petkov
On Fri, Nov 06, 2020 at 02:36:46PM +0900, Punit Agrawal wrote: > > diff --git a/drivers/firmware/efi/cper-x86.c > > b/drivers/firmware/efi/cper-x86.c > > index 2531de49f56c..438ed9eff6d0 100644 > > --- a/drivers/firmware/efi/cper-x86.c > > +++ b/drivers/firmware/efi/cper-x86.c > > @@ -2,6 +2,7 @@

[PATCH] clk: hisilicon: Fix the memory leak issues

2020-11-06 Thread Dongjiu Geng
When return errors, the clock driver does not unmap the mapped memory, so fix this issue. Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/clk-hi3620.c | 8 ++-- drivers/clk/hisilicon/clk.c| 5 - 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/clk/his

Re: [PATCH v5 2/7] IMA: update process_buffer_measurement to measure buffer hash

2020-11-06 Thread Mimi Zohar
Hi Tushar, Below inline are a few additional comments. > diff --git a/security/integrity/ima/ima_main.c > b/security/integrity/ima/ima_main.c > index ae5da9f3339d..4485d87c0aa5 100644 > --- a/security/integrity/ima/ima_main.c > +++ b/security/integrity/ima/ima_main.c > @@ -787,12 +787,15 @@ int

Re: [PATCH] net/ethernet: update ret when ptp_clock is ERROR

2020-11-06 Thread Arnd Bergmann
On Fri, Nov 6, 2020 at 12:35 PM Grygorii Strashko wrote: > On 06/11/2020 09:56, Wang Qing wrote: > > +++ b/drivers/net/ethernet/ti/am65-cpts.c > > @@ -1001,8 +1001,7 @@ struct am65_cpts *am65_cpts_create(struct device > > *dev, void __iomem *regs, > > there is > cpts->ptp_clock = ptp_clo

[PATCH V2 3/3] arm64: defconfig: Enable WM8962

2020-11-06 Thread Adam Ford
The Beacon EmbeddedWorks development kits supporting i.MX8M Mini and Nano have an WM8962 audio CODEC installed. Add modules for both CONFIG_SND_SOC_WM8962 and CONFIG_SND_SOC_FSL_ASOC_CARD to enable them. Signed-off-by: Adam Ford --- V2: New to series arch/arm64/configs/defconfig | 2 ++ 1 fil

[PATCH V2 1/3] dt-bindings: arm: fsl: Add beacon,imx8mn-beacon-kit

2020-11-06 Thread Adam Ford
Add beacon,imx8mn-beacon-kit to list of compatible options. Signed-off-by: Adam Ford --- V2: New to series Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/

[PATCH V2 2/3] arm64: dts: imx: Add Beacon i.MX8M Nano development kit

2020-11-06 Thread Adam Ford
Beacon Embeddedworks is launching a development kit based on the i.MX8M Nano SoC. The kit consists of a System on Module (SOM) + baseboard. The SOM has the SoC, eMMC, and Ethernet. The baseboard has an wm8962 audio CODEC, a PDM microphone, and a single USB OTG. The baseboard is capable of two di

Re: [PATCH v3 1/6] mm/thp: add prep_transhuge_device_private_page()

2020-11-06 Thread Matthew Wilcox
On Thu, Nov 05, 2020 at 04:51:42PM -0800, Ralph Campbell wrote: > Add a helper function to allow device drivers to create device private > transparent huge pages. This is intended to help support device private > THP migrations. I think you'd be better off with these calling conventions: -void pr

Re: [PATCH v6 00/25] Make charlcd device independent

2020-11-06 Thread Miguel Ojeda
On Fri, Nov 6, 2020 at 11:11 AM Lars Poeschel wrote: > > I got an email [1] with a report about a build failure in > hd44780_common. The fix is simple but I don't know the process from here > on. Should I post a v7 of the whole patchset or only a follow-up patch > for the fix ? Either would work

Re: [PATCH v3 4/4] clk: qcom: camcc: Add camera clock controller driver for SC7180

2020-11-06 Thread Geert Uytterhoeven
; Signed-off-by: Taniya Das > > --- > > Applied to clk-next with some minor fixups. On Fri, Nov 6, 2020 at 8:43 AM wrote: > FAILED linux-next/m68k-allmodconfig/m68k-gcc8 Fri Nov 06, 18:35 > > http://kisskb.ellerman.id.au/kisskb/buildresult/14393224/ > >

Re: [RFT PATCH v2 7/8] gpio: exar: switch to using regmap

2020-11-06 Thread Mark Brown
On Fri, Nov 06, 2020 at 12:13:55PM +0100, Bartosz Golaszewski wrote: > On Thu, Nov 5, 2020 at 6:41 PM Mark Brown wrote: > > AFAICT (and indeed now I dig around assign_bit() only works on a single > > bit and does both shifts which makes the correspondance with that > > interface super unclear, we

[PATCH v3 2/2] media: rockchip: rkisp1: destage Rockchip ISP1 driver

2020-11-06 Thread Helen Koike
All the items in the TODO list were addressed, uapi was reviewed, documentation written, checkpatch errors fixed, several bugs fixed. There is no big reason to keep this driver in staging, so move it out. Dt-bindings Verified with: make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/d

Re: [PATCH] kfence: Fix parameter description for kfence_object_start()

2020-11-06 Thread Alexander Potapenko
On Fri, Nov 6, 2020 at 10:21 AM Marco Elver wrote: > > Describe parameter @addr correctly by delimiting with ':'. > > Reported-by: Stephen Rothwell > Signed-off-by: Marco Elver Reviewed-by: Alexander Potapenko > --- > include/linux/kfence.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion

[PATCH v3 1/2] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format

2020-11-06 Thread Helen Koike
From: Shunqian Zheng Add the Rockchip ISP1 specific processing parameter format V4L2_META_FMT_RK_ISP1_PARAMS and metadata format V4L2_META_FMT_RK_ISP1_STAT_3A for 3A. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen Signed-off-by: Helen Koike Reviewed-by: Laurent Pinchart --- Hello,

[PATCH v3 0/2] destage Rockchip ISP1 driver

2020-11-06 Thread Helen Koike
Hello, Changes in v3: - Moved Kconfig entry from M2M to Platform devices - Rename description and comment to Parameters and Statistics. - Patches squashed: dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging media: MAINTAINERS: rkisp1: add path to dt-bindings media: rockchip: rk

Re: [PATCH v3 1/2] ASoC: dt-bindings: fsl_aud2htx: Add binding doc for aud2htx module

2020-11-06 Thread Mark Brown
On Fri, Nov 06, 2020 at 11:54:23AM +, Mark Brown wrote: > On Mon, 2 Nov 2020 09:52:26 +0800, Shengjiu Wang wrote: > > AUD2HTX (Audio Subsystem TO HDMI TX Subsystem) is a new > > IP module found on i.MX8MP. > > Applied to > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

Re: [RFC PATCH 00/26] kvm: arm64: Always-on nVHE hypervisor

2020-11-06 Thread Marc Zyngier
On 2020-11-04 18:36, David Brazdil wrote: As we progress towards being able to keep guest state private to the host running nVHE hypervisor, this series allows the hypervisor to install itself on newly booted CPUs before the host is allowed to run on them. To this end, the hypervisor starts trap

Re: [PATCH] ASoC: Fix vaud18 power leakage of mt6359

2020-11-06 Thread Mark Brown
On Fri, Nov 06, 2020 at 02:18:37PM +0800, Shane Chien wrote: > +static int mt_vaud18_event(struct snd_soc_dapm_widget *w, > +struct snd_kcontrol *kcontrol, > +int event) > +{ > + struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm

Re: [PATCH v4 1/2] kunit: Support for Parameterized Testing

2020-11-06 Thread Marco Elver
On Fri, Nov 06, 2020 at 09:11AM +0100, Marco Elver wrote: > On Fri, 6 Nov 2020 at 06:54, Arpitha Raghunandan <98.a...@gmail.com> wrote: [...] > > I think this format of output should be fine for parameterized tests. > > But, this patch has the same issue as earlier. While, the tests run and > > thi

Re: [PATCH v18 2/4] iommu/arm-smmu: Add a way for implementations to influence SCTLR

2020-11-06 Thread Will Deacon
On Tue, Nov 03, 2020 at 10:28:13AM -0700, Jordan Crouse wrote: > On Mon, Nov 02, 2020 at 06:18:45PM +, Robin Murphy wrote: > > On 2020-11-02 17:14, Jordan Crouse wrote: > > >From: Rob Clark > > > > > >For the Adreno GPU's SMMU, we want SCTLR.HUPCF set to ensure that > > >pending translations a

Re: [linux-safety] [PATCH] taskstats: remove unneeded dead assignment

2020-11-06 Thread Lukas Bulwahn
On Fri, 6 Nov 2020, Sudip Mukherjee wrote: > Hi Lukas, > > On 06/11/2020 10:31, Lukas Bulwahn wrote: > > > > > > On Fri, 6 Nov 2020, Sudip Mukherjee wrote: > > > >> Hi Lukas, > >> > > > > > > > I did not try but I bet (a beverage of your choice) that the object code > > remains the same

[PATCH RFC v5 04/13] perf pmu: Add pmu_add_sys_aliases()

2020-11-06 Thread John Garry
Add pmu_add_sys_aliases() to add system PMU events aliases. For adding system PMU events, iterate through all the events for all SoC event tables in pmu_sys_event_tables[]. Matches must satisfy both: - PMU identifier matches event "compat" value - event "Unit" member must match, same as uncore ev

[PATCH RFC v5 12/13] perf metricgroup: Support adding metrics for system PMUs

2020-11-06 Thread John Garry
Currently adding metrics for core- or uncore-based events matched by CPUID is supported. Extend this for system events. Signed-off-by: John Garry --- tools/perf/util/metricgroup.c | 59 +-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/tools/perf

[PATCH RFC v5 01/13] perf jevents: Add support for an extra directory level

2020-11-06 Thread John Garry
Currently only upto a level 2 directory is supported, in form vendor/platform. Add support for a further level, to support vendor/platform sub-directories in future. Signed-off-by: John Garry --- tools/perf/pmu-events/jevents.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-)

[PATCH RFC v5 08/13] perf evlist: Change perf_evlist__splice_list_tail() ordering

2020-11-06 Thread John Garry
Function find_evsel_group() expects events to be ordered such that they are grouped after their leader. Modify perf_evlist__splice_list_tail() to guarantee this (ordering). [Should prob also change the function name] Signed-off-by: John Garry --- tools/perf/util/evlist.c | 19 +++--

[PATCH RFC v5 10/13] perf metricgroup: Split up metricgroup__print()

2020-11-06 Thread John Garry
To aid supporting system event metric groups, break up the function metricgroup__print() into a part which iterates metrics and a part which actually "prints" the metric. No functional change intended. Signed-off-by: John Garry --- tools/perf/util/metricgroup.c | 124 +++

[PATCH RFC v5 09/13] perf metricgroup: Fix metrics using aliases covering multiple PMUs

2020-11-06 Thread John Garry
Support for metric expressions using aliases which cover multiple PMUs is broken. Consider the following test metric expression: "MetricExpr": "UNC_CBO_XSNP_RESPONSE.MISS_XCORE * UNC_CBO_XSNP_RESPONSE.MISS_EVICTION" When used on my broadwell, "perf stat" gives: unc_cbo_xsnp_response.miss_evicti

[PATCH RFC v5 13/13] perf vendor events: Add JSON metrics for imx8mm DDR Perf

2020-11-06 Thread John Garry
From: Joakim Zhang Add JSON metrics for imx8mm DDR Perf. Signed-off-by: Joakim Zhang Signed-off-by: John Garry --- .../arch/arm64/freescale/imx8mm/sys/ddrc.json | 39 +++ .../arm64/freescale/imx8mm/sys/metrics.json | 18 + tools/perf/pmu-events/jevents.c

[PATCH RFC v5 07/13] perf vendor events arm64: Add hip09 uncore events

2020-11-06 Thread John Garry
Add uncore events for DDRC, HHA, and L3C. We use "Compat" property to match to specific implementations of the PMUs. Signed-off-by: John Garry --- .../hisilicon/hip09/sys/uncore-ddrc.json | 58 ++ .../arm64/hisilicon/hip09/sys/uncore-hha.json | 82 ++ .../arm64/hisilic

[PATCH RFC v5 02/13] perf jevents: Add support for system events tables

2020-11-06 Thread John Garry
Process the JSONs to find support for "system" events, which are not tied to a specific CPUID. A "COMPAT" property is now used to match against the namespace ID from the kernel PMU driver. The generated pmu-events.c will now have 2 tables: a. CPU events, as before. b. New pmu_sys_event_tables[] t

[PATCH RFC v5 05/13] perf vendor events arm64: Add Architected events smmuv3-pmcg.json

2020-11-06 Thread John Garry
Add JSON for Architected events from [0], Section 10.3 . [0] https://static.docs.arm.com/ihi0070/a/IHI_0070A_SMMUv3.pdf Signed-off-by: John Garry --- .../pmu-events/arch/arm64/smmuv3-pmcg.json| 58 +++ tools/perf/pmu-events/jevents.c | 2 + 2 files changed, 60

[PATCH RFC v5 03/13] perf pmu: Add pmu_id()

2020-11-06 Thread John Garry
Add a function to read the PMU id sysfs entry. This is only done for uncore PMUs where this would possibly be relevant. Signed-off-by: John Garry --- tools/perf/util/pmu.c | 18 ++ tools/perf/util/pmu.h | 1 + 2 files changed, 19 insertions(+) diff --git a/tools/perf/util/pmu.c

[PATCH RFC v5 00/13] perf pmu-events: Support event aliasing for system PMUs

2020-11-06 Thread John Garry
Currently event aliasing and metrics for only CPU and uncore PMUs is supported. In fact, only uncore PMUs aliasing is supported for when the uncore PMUs are fixed for a CPU, which may not always be the case for certain architectures. This series adds support for PMU event aliasing and metrics for

[PATCH RFC v5 11/13] perf metricgroup: Support printing metric groups for system PMUs

2020-11-06 Thread John Garry
Currently printing metricgroups for core- or uncore-based events matched by CPUID is supported. Extend this for system events. Signed-off-by: John Garry --- tools/perf/util/metricgroup.c | 64 --- 1 file changed, 60 insertions(+), 4 deletions(-) diff --git a/too

[PATCH RFC v5 06/13] perf vendor events arm64: Add hip09 SMMUv3 PMCG events

2020-11-06 Thread John Garry
Add the SMMUv3 PMCG (Performance Monitor Event Group) events for hip09 platform. This contains a mix of architected and IMP def events, but for now only a single event is added. Signed-off-by: John Garry --- .../hisilicon/hip09/sys/smmu-v3-pmcg.json | 42 +++ 1 file changed,

WARNING in input_register_device

2020-11-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:9e39aef3 usb: misc: brcmstb-usb-pinmap: Make sync_all_pins.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=145ffa8a50 kernel conf

Re: [PATCH v1 00/18] Refactor fw_devlink to significantly improve boot time

2020-11-06 Thread Grygorii Strashko
On 06/11/2020 10:36, Saravana Kannan wrote: On Thu, Nov 5, 2020 at 9:09 PM Laurent Pinchart wrote: Hi Saravana, Thank you for working on this ! On Wed, Nov 04, 2020 at 03:23:37PM -0800, Saravana Kannan wrote: The current implementation of fw_devlink is very inefficient because it tries t

Re: [PATCH 0/5] Add a dirty logging performance test

2020-11-06 Thread Paolo Bonzini
On 28/10/20 00:37, Ben Gardon wrote: Currently KVM lacks a simple, userspace agnostic, performance benchmark for dirty logging. Such a benchmark will be beneficial for ensuring that dirty logging performance does not regress, and to give a common baseline for validating performance improvements.

Re: [PATCH] arm64/smp: Move rcu_cpu_starting() earlier

2020-11-06 Thread Qian Cai
On Fri, 2020-11-06 at 10:37 +, Will Deacon wrote: > > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > > index 09c96f57818c..10729d2d6084 100644 > > --- a/arch/arm64/kernel/smp.c > > +++ b/arch/arm64/kernel/smp.c > > @@ -421,6 +421,8 @@ void cpu_die_early(void) > > > > upd

[PATCH v4 1/3] arm64: wrap and generalise counter read functions

2020-11-06 Thread Ionela Voinescu
In preparation for other uses of Activity Monitors (AMU) cycle counters, place counter read functionality in generic functions that can reused: read_corecnt() and read_constcnt(). As a result, implement update_freq_counters_refs() to replace init_cpu_freq_invariance_counters() and both initialise

[PATCH v4 0/3] arm64: cppc: add FFH support using AMUs

2020-11-06 Thread Ionela Voinescu
Hi guys, Many thanks for everyone's review. This series adds support for CPPC's delivered and reference performance counters through the FFH methods by using the AMU equivalent core and constant cycle counters. This support is added in patch 3/3, while the first 2 patches generalise the existing

[PATCH v4 2/3] arm64: split counter validation function

2020-11-06 Thread Ionela Voinescu
In order for the counter validation function to be reused, split validate_cpu_freq_invariance_counters() into: - freq_counters_valid(cpu) - check cpu for valid cycle counters - freq_inv_set_max_ratio(int cpu, u64 max_rate, u64 ref_rate) - generic function that sets the normalization ratio used

[PATCH v4 3/3] arm64: implement CPPC FFH support using AMUs

2020-11-06 Thread Ionela Voinescu
If Activity Monitors (AMUs) are present, two of the counters can be used to implement support for CPPC's (Collaborative Processor Performance Control) delivered and reference performance monitoring functionality using FFH (Functional Fixed Hardware). Given that counters for a certain CPU can only

Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM

2020-11-06 Thread Jason Gunthorpe
On Fri, Nov 06, 2020 at 11:27:59AM +0100, Daniel Vetter wrote: > On Fri, Nov 6, 2020 at 11:01 AM Daniel Vetter wrote: > > > > On Fri, Nov 6, 2020 at 5:08 AM John Hubbard wrote: > > > > > > On 11/5/20 4:49 AM, Jason Gunthorpe wrote: > > > > On Thu, Nov 05, 2020 at 10:25:24AM +0100, Daniel Vetter w

Re: [PATCH] printk: remove unneeded dead-store assignment

2020-11-06 Thread Petr Mladek
On Fri 2020-11-06 04:40:05, Lukas Bulwahn wrote: > make clang-analyzer on x86_64 defconfig caught my attention with: > > kernel/printk/printk_ringbuffer.c:885:3: warning: > Value stored to 'desc' is never read [clang-analyzer-deadcode.DeadStores] > desc = to_desc(desc_ring, hea

Re: [PATCH] net/ethernet: update ret when ptp_clock is ERROR

2020-11-06 Thread Kurt Kanzenbach
On Fri Nov 06 2020, Arnd Bergmann wrote: > On Fri, Nov 6, 2020 at 12:35 PM Grygorii Strashko > wrote: >> On 06/11/2020 09:56, Wang Qing wrote: > >> > +++ b/drivers/net/ethernet/ti/am65-cpts.c >> > @@ -1001,8 +1001,7 @@ struct am65_cpts *am65_cpts_create(struct device >> > *dev, void __iomem *regs

Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM

2020-11-06 Thread Jason Gunthorpe
On Fri, Nov 06, 2020 at 11:01:57AM +0100, Daniel Vetter wrote: > gpu drivers also tend to use vmf_insert_pfn* directly, so we can do > on-demand paging and move buffers around. From what I glanced for > lowest level we to the pte_mkspecial correctly (I think I convinced > myself that vm_insert_pfn

[PATCH] tty: serial: remove pnx8xxx uart driver

2020-11-06 Thread Thomas Bogendoerfer
Commit 625326ea9c84 ("MIPS: Remove PNX833x alias NXP_STB22x") removed support for PNX833x, so it's time to remove serial driver, too. Signed-off-by: Thomas Bogendoerfer --- drivers/tty/serial/Kconfig| 16 - drivers/tty/serial/Makefile | 1 - drivers/tty/serial/pnx8xxx_uart.c | 8

[PATCH] watchdog: remove pnx83xx driver

2020-11-06 Thread Thomas Bogendoerfer
Commit 625326ea9c84 ("MIPS: Remove PNX833x alias NXP_STB22x") removed support for PNX833x, so it's time to remove watchdog driver, too. Signed-off-by: Thomas Bogendoerfer --- drivers/watchdog/Kconfig | 10 -- drivers/watchdog/Makefile | 1 - drivers/watchdog/pnx833x_wdt.c | 277 ---

Re: [PATCH 1/1] watchdog: stm32_iwdg: don't print an error on probe deferral

2020-11-06 Thread Guenter Roeck
On Fri, Nov 06, 2020 at 10:46:27AM +0100, Christophe Roullier wrote: > From: Etienne Carriere > > Do not print an error trace when deferring probe for clock resources. > > Signed-off-by: Etienne Carriere > Signed-off-by: Christophe Roullier > --- > drivers/watchdog/stm32_iwdg.c | 6 -- >

Re: [PATCH] watchdog: remove pnx83xx driver

2020-11-06 Thread Guenter Roeck
On Fri, Nov 06, 2020 at 02:05:07PM +0100, Thomas Bogendoerfer wrote: > Commit 625326ea9c84 ("MIPS: Remove PNX833x alias NXP_STB22x") removed > support for PNX833x, so it's time to remove watchdog driver, too. > > Signed-off-by: Thomas Bogendoerfer Reviewed-by: Guenter Roeck > --- > drivers/wa

Re: [PATCH 11/11 v3] ftrace: Add recording of functions that caused recursion

2020-11-06 Thread Petr Mladek
On Thu 2020-11-05 21:32:46, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > This adds CONFIG_FTRACE_RECORD_RECURSION that will record to a file > "recursed_functions" all the functions that caused recursion while a > callback to the function tracer was running. > > Changes since v2:

Re: [PATCH 2/3] docs: hwmon: (ltc2945): change type of val to ULL in ltc2945_val_to_reg()

2020-11-06 Thread Guenter Roeck
On Fri, Nov 06, 2020 at 12:18:24PM +0200, Alexandru Ardelean wrote: > In order to account for any potential overflows that could occur. > > Signed-off-by: Alexandru Ardelean > --- > drivers/hwmon/ltc2945.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/d

Re: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-06 Thread Jason Gunthorpe
On Fri, Nov 06, 2020 at 09:48:34AM +, Tian, Kevin wrote: > > The interrupt controller is responsible to create an addr/data pair > > for an interrupt message. It sets the message format and ensures it > > routes to the proper CPU interrupt handler. Everything about the > > addr/data pair is own

Re: [PATCH 1/3] x86/quirks: Scan all busses for early PCI quirks

2020-11-06 Thread Guilherme G. Piccoli
On 23/10/2018 14:03, Bjorn Helgaas wrote: > On Mon, Oct 22, 2018 at 05:35:06PM -0300, Guilherme G. Piccoli wrote: >> On 18/10/2018 19:15, Bjorn Helgaas wrote: >>> On Thu, Oct 18, 2018 at 03:37:19PM -0300, Guilherme G. Piccoli wrote: >>> [...] >> I understand your point, but I think this is inheren

Re: [PATCH v5 8/8] rpmsg: Turn name service into a stand alone driver

2020-11-06 Thread Guennadi Liakhovetski
Hi Mathieu, Arnaud, On Thu, Nov 05, 2020 at 03:50:28PM -0700, Mathieu Poirier wrote: > From: Arnaud Pouliquen > > Make the RPMSG name service announcement a stand alone driver so that it > can be reused by other subsystems. It is also the first step in making the > functionatlity transport inde

Re: [PATCH 3/3] hwmon: (ltc2945): add support for sense resistor

2020-11-06 Thread Guenter Roeck
On Fri, Nov 06, 2020 at 12:18:25PM +0200, Alexandru Ardelean wrote: > The sense resistor is a parameter of the board. It should be configured in > the driver via a device-tree / ACPI property, so that the proper current > measurements can be done in the driver. > > It shouldn't be necessary that u

Re: [PATCH v1 17/30] mmc: sdhci-tegra: Support OPP and core voltage scaling

2020-11-06 Thread Dmitry Osipenko
06.11.2020 09:15, Viresh Kumar пишет: > Setting regulators for count as 0 doesn't sound good to me. > > But, I understand that you don't want to have that if (have_regulator) > check, and it is a fair request. What I will instead do is, allow all > dev_pm_opp_put*() API to start accepting a NULL p

Re: [PATCH 2/2] opp: Don't create an OPP table from dev_pm_opp_get_opp_table()

2020-11-06 Thread Dmitry Osipenko
06.11.2020 09:24, Viresh Kumar пишет: > It has been found that some users (like cpufreq-dt and others on LKML) > have abused the helper dev_pm_opp_get_opp_table() to create the OPP > table instead of just finding it, which is the wrong thing to do. This > routine was meant for OPP core's internal w

Re: [PATCH -next v3 1/2] watchdog: Fix potential dereferencing of null pointer

2020-11-06 Thread Guenter Roeck
On Fri, Nov 06, 2020 at 07:37:08AM +, wangwensheng (C) wrote: > 在 2020/11/5 22:26, Guenter Roeck 写道: > > On Thu, Nov 05, 2020 at 12:38:47PM +, Wang Wensheng wrote: > >> A reboot notifier, which stops the WDT by calling the stop hook without > >> any check, would be registered when we set WD

[GIT PULL] arm64 fixes for -rc3

2020-11-06 Thread Will Deacon
Hi Linus, Here's the weekly batch of fixes for arm64. Not an awful lot here, but there are still a few unresolved issues relating to CPU hotplug, RCU and IRQ tracing that I hope to queue fixes for next week. In the meantime, there's a summary for this lot in the tag. Cheers, Will --->8 The fo

Re: [PATCH 1/1] x86/mce: remove unused WARN_ON() in mce_register_decode_chain()

2020-11-06 Thread Leizhen (ThunderTown)
On 2020/11/6 19:12, Borislav Petkov wrote: > On Fri, Nov 06, 2020 at 04:43:40PM +0800, Zhen Lei wrote: >> enum mce_notifier_prios { >> MCE_PRIO_LOWEST, >> MCE_PRIO_MCELOG, >> MCE_PRIO_EDAC, >> >> After commit c9c6d216ed28 ("x86/mce: Rename "first" function as "early""), >

[PATCH] powerpc/mm: Refactor the floor/ceiling check in hugetlb range freeing functions

2020-11-06 Thread Christophe Leroy
All hugetlb range freeing functions have a verification like the following, which only differs by the mask used, depending on the page table level. start &= MASK; if (start < floor) return; if (ceiling) { ceiling &= MASK; if (

Re: [PATCH v5 3/7] IMA: add hook to measure critical data

2020-11-06 Thread Mimi Zohar
Hi Tushar, On Sun, 2020-11-01 at 14:26 -0800, Tushar Sugandhi wrote: > Currently, IMA does not provide a generic function for kernel subsystems > to measure their critical data. Examples of critical data in this context > could be kernel in-memory r/o structures, hash of the memory structures, > o

Re: [PATCH 00/20] [Set 1/2] Rid W=1 issues from Input

2020-11-06 Thread Lee Jones
On Wed, 04 Nov 2020, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > This is the first of 2 sets. > > Lee Jones (20): > input: rmi4: rmi_bus: Fix misnaming of >

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