[PATCH 15/24] parisc: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-par...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/parisc/include/asm/mmu_context.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/parisc/include/asm/mmu_context.h

[PATCH 19/24] sh: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Yoshinori Sato Cc: Rich Felker Cc: linux...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/sh/include/asm/mmu_context.h| 5 ++--- arch/sh/include/asm/mmu_context_32.h | 9 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git

[PATCH 24/24] xtensa: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org Signed-off-by: Nicholas Piggin --- arch/xtensa/include/asm/mmu_context.h | 11 +++ arch/xtensa/include/asm/nommu_context.h | 26 + 2 files changed, 4 insertions(+), 33 deletions(-) diff --git

[PATCH 18/24] s390: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/s390/include/asm/mmu_context.h | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/s390/include/asm/mmu_context.h

[PATCH 17/24] riscv: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-ri...@lists.infradead.org Signed-off-by: Nicholas Piggin --- arch/riscv/include/asm/mmu_context.h | 22 ++ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/riscv/include/asm/mmu_context.h

[PATCH 16/24] powerpc: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/mmu_context.h | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git

[PATCH 20/24] sparc: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/sparc/include/asm/mmu_context_32.h | 10 -- arch/sparc/include/asm/mmu_context_64.h | 10 +- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git

[PATCH 21/24] um: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Jeff Dike Cc: Richard Weinberger Cc: Anton Ivanov Cc: linux...@lists.infradead.org Signed-off-by: Nicholas Piggin --- arch/um/include/asm/mmu_context.h | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/um/include/asm/mmu_context.h

[PATCH 23/24] x86: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x...@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Nicholas Piggin --- arch/x86/include/asm/mmu_context.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/include/asm/mmu_context.h

[PATCH 10/24] microblaze: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Michal Simek Signed-off-by: Nicholas Piggin --- arch/microblaze/include/asm/mmu_context_mm.h | 8 arch/microblaze/include/asm/processor.h | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/microblaze/include/asm/mmu_context_mm.h

[PATCH 12/24] nds32: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Nick Hu Cc: Greentime Hu Cc: Vincent Chen Signed-off-by: Nicholas Piggin --- arch/nds32/include/asm/mmu_context.h | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/nds32/include/asm/mmu_context.h b/arch/nds32/include/asm/mmu_context.h index

[PATCH 13/24] nios2: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Ley Foon Tan Signed-off-by: Nicholas Piggin --- arch/nios2/include/asm/mmu_context.h | 21 - arch/nios2/mm/mmu_context.c | 1 + 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/arch/nios2/include/asm/mmu_context.h

[PATCH 22/24] unicore32: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Guan Xuetao Signed-off-by: Nicholas Piggin --- arch/unicore32/include/asm/mmu_context.h | 24 +++- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/arch/unicore32/include/asm/mmu_context.h b/arch/unicore32/include/asm/mmu_context.h index

[PATCH 06/24] csky: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Guo Ren Cc: linux-c...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/csky/include/asm/mmu_context.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/csky/include/asm/mmu_context.h b/arch/csky/include/asm/mmu_context.h index

[PATCH 14/24] openrisc: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Jonas Bonn Cc: Stefan Kristiansson Cc: Stafford Horne Cc: openr...@lists.librecores.org Signed-off-by: Nicholas Piggin --- arch/openrisc/include/asm/mmu_context.h | 8 +++- arch/openrisc/mm/tlb.c | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 02/24] alpha: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-al...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/alpha/include/asm/mmu_context.h | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/alpha/include/asm/mmu_context.h

[PATCH 05/24] arm64: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Nicholas Piggin --- arch/arm64/include/asm/mmu_context.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/mmu_context.h

[PATCH 00/24] Use asm-generic for mmu_context no-op functions

2020-07-27 Thread Nicholas Piggin
It would be nice to be able to modify these or add a hook without updating all architectures, most of which just use noops. There was some discussion around the lazy tlb switching vs membarrier barriers that may have needed changes here to fix (addition of an exit_lazy_tlb() function). I don't

[PATCH 01/24] asm-generic: add generic versions of mmu context functions

2020-07-27 Thread Nicholas Piggin
Many of these are no-ops on many architectures, so extend mmu_context.h to cover MMU and NOMMU, and split the NOMMU bits out to nommu_context.h Cc: Arnd Bergmann Cc: linux-a...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/microblaze/include/asm/mmu_context.h | 2 +-

[PATCH 04/24] arm: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Nicholas Piggin --- arch/arm/include/asm/mmu_context.h | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/arch/arm/include/asm/mmu_context.h

[PATCH 03/24] arc: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Vineet Gupta Cc: linux-snps-...@lists.infradead.org Signed-off-by: Nicholas Piggin --- arch/arc/include/asm/mmu_context.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arc/include/asm/mmu_context.h b/arch/arc/include/asm/mmu_context.h index

[PATCH 07/24] hexagon: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Brian Cain Cc: linux-hexa...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/hexagon/include/asm/mmu_context.h | 33 -- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/arch/hexagon/include/asm/mmu_context.h

[PATCH 08/24] ia64: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/ia64/include/asm/mmu_context.h | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/arch/ia64/include/asm/mmu_context.h b/arch/ia64/include/asm/mmu_context.h

配信停止を受け付けました

2020-07-27 Thread info
メール配信手続きを受け付けました。 配信停止の手続きまで数日かかりますこと、 何卒ご了承いただきますようお願い申し上げます。 株式会社ジンジブ セミナー事務局 ※本メールは「自動返信メール」です。 === 【 Email 】 linux-kernel@vger.kernel.org === 送信日時:2020/07/28 (Tue) 12:27:41

[PATCH 11/24] mips: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Thomas Bogendoerfer Cc: linux-m...@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/mips/include/asm/mmu_context.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/mips/include/asm/mmu_context.h b/arch/mips/include/asm/mmu_context.h index

[PATCH 09/24] m68k: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Nicholas Piggin
Cc: Geert Uytterhoeven Cc: linux-m...@lists.linux-m68k.org Signed-off-by: Nicholas Piggin --- arch/m68k/include/asm/mmu_context.h | 47 + 1 file changed, 8 insertions(+), 39 deletions(-) diff --git a/arch/m68k/include/asm/mmu_context.h

[PATCH v6 3/3] binder: add transaction latency tracer

2020-07-27 Thread Frankie Chang
From: "Frankie.Chang" Record start/end timestamp for binder transaction. When transaction is completed or transaction is free, it would be checked if transaction latency over threshold (default 2 sec), if yes, printing related information for tracing. /* Implement details */ - Add latency

[PATCH v6] binder: transaction latency tracking for user build

2020-07-27 Thread Frankie Chang
Change from v6: - change CONFIG_BINDER_TRANSACTION_LATENCY_TRACKING type from bool to tristate - add comments to @timestamp and @tv under struct binder_transaction - make binder_txn_latency threshold configurable - enhance lock protection Change from v5: - change config name to the

[PATCH v6 2/3] binder: add trace at free transaction.

2020-07-27 Thread Frankie Chang
From: "Frankie.Chang" Since the original trace_binder_transaction_received cannot precisely present the real finished time of transaction, adding a trace_binder_txn_latency_free at the point of free transaction may be more close to it. Signed-off-by: Frankie.Chang --- drivers/android/binder.c

[PATCH v6 1/3] binder: move structs from core file to header file

2020-07-27 Thread Frankie Chang
From: "Frankie.Chang" Moving all structs to header file makes module more extendable, and makes all these structs to be defined in the same file. Signed-off-by: Frankie.Chang --- drivers/android/binder.c | 405 - drivers/android/binder_internal.h

[PATCH v5 2/2] dt-bindings: Add SynQucer TPM MMIO as a trivial device

2020-07-27 Thread Masahisa Kojima
Add a compatible string for the SynQuacer TPM to the binding for a TPM exposed via a memory mapped TIS frame. The MMIO window behaves slightly differently on this hardware, so it requires its own identifier. Cc: Rob Herring Cc: Ard Biesheuvel Acked-by: Rob Herring Signed-off-by: Masahisa

[PATCH v5 1/2] tpm: tis: add support for MMIO TPM on SynQuacer

2020-07-27 Thread Masahisa Kojima
When fitted, the SynQuacer platform exposes its SPI TPM via a MMIO window that is backed by the SPI command sequencer in the SPI bus controller. This arrangement has the limitation that only byte size accesses are supported, and so we'll need to provide a separate module that take this into

[PATCH v5 0/2] synquacer: add TPM support

2020-07-27 Thread Masahisa Kojima
This adds support for driving the TPM on Socionext SynQuacer platform using the driver for a memory mapped TIS frame. v5: - modify multi-line comment style - remove MODULE_AUTHOR() and MODULE_VERSION() v4: - add ACPI support - modify function and structure name v3: - prepare new module to

Re: [PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check

2020-07-27 Thread Cong Wang
On Mon, Jul 27, 2020 at 7:14 PM Gaurav Singh wrote: > > Add return to fix build issue. Haven't reproduced this issue at > my end. > > My hypothesis is this: In function: ip6_xmit(), we have > const struct ipv6_pinfo *np = inet6_sk(sk); which returns NULL. > > Further down the function, there's a

Re: [PATCH] perf record: Set PERF_RECORD_SAMPLE if attr->freq is set.

2020-07-27 Thread Athira Rajeev
> On 27-Jul-2020, at 12:29 PM, Ian Rogers wrote: > > From: David Sharp > > evsel__config() would only set PERF_RECORD_SAMPLE if it set attr->freq Hi Ian, Commit message says PERF_RECORD_SAMPLE. But since we are setting period here, it has to say “PERF_SAMPLE_PERIOD” ? Thanks Athira >

[PATCH 1/2] clk: imx: imx8m: avoid memory leak

2020-07-27 Thread peng . fan
From: Peng Fan Use devm_kzalloc to avoid memory leak when probe fail. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 3 +-- drivers/clk/imx/clk-imx8mn.c | 15 +-- drivers/clk/imx/clk-imx8mp.c | 2 +- drivers/clk/imx/clk-imx8mq.c | 3 +-- 4 files changed, 8

[PATCH 2/2] clk: imx: imx8m: use devm_of_clk_add_hw_provider

2020-07-27 Thread peng . fan
From: Peng Fan Use devm_of_clk_add_hw_provider to simplify code. To i.MX8MP, also add err handling. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 9 ++--- drivers/clk/imx/clk-imx8mn.c | 9 ++--- drivers/clk/imx/clk-imx8mp.c | 8 ++-- drivers/clk/imx/clk-imx8mq.c | 9

Re: [PATCH v7 0/2] phy: Add USB PHY support on Intel LGM SoC

2020-07-27 Thread Ramuthevar, Vadivel MuruganX
Hi Andy, On 27/7/2020 7:09 pm, Andy Shevchenko wrote: On Mon, Jul 27, 2020 at 1:08 PM Ramuthevar,Vadivel MuruganX wrote: The USB PHY provides the optimized for low power dissipation while active, idle, or on standby. Requires minimal external components, a single resistor, for best

Re: [PATCH] drm/amd/display: Clear dm_state for fast updates

2020-07-27 Thread Kazlauskas, Nicholas
On 2020-07-27 5:32 p.m., Daniel Vetter wrote: On Mon, Jul 27, 2020 at 11:11 PM Mazin Rezk wrote: On Monday, July 27, 2020 4:29 PM, Daniel Vetter wrote: On Mon, Jul 27, 2020 at 9:28 PM Christian König wrote: Am 27.07.20 um 16:05 schrieb Kazlauskas, Nicholas: On 2020-07-27 9:39 a.m.,

Re: [PATCH v3] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-27 Thread Mike Kravetz
On 7/27/20 5:19 PM, Andrew Morton wrote: > On Sat, 25 Jul 2020 16:07:49 +0800 Muchun Song > wrote: > >> In the reservation routine, we only check whether the cpuset meets >> the memory allocation requirements. But we ignore the mempolicy of >> MPOL_BIND case. If someone mmap hugetlb succeeds,

Re: [PATCH v2 7/7] arm64: dts: qcom: sm8250: add interconnect nodes

2020-07-27 Thread Jonathan Marek
On 7/24/20 12:55 PM, Sibi Sankar wrote: On 2020-07-24 20:06, Jonathan Marek wrote: On 7/24/20 10:13 AM, Sibi Sankar wrote: Hey Jonathan, Thanks for the patch! Please use the suggested register space definitions instead. Thanks for the suggestions, I was unsure what to use for the sizes.

Re: [External] Re: [PATCH v3] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-27 Thread Muchun Song
On Tue, Jul 28, 2020 at 8:19 AM Andrew Morton wrote: > > On Sat, 25 Jul 2020 16:07:49 +0800 Muchun Song > wrote: > > > In the reservation routine, we only check whether the cpuset meets > > the memory allocation requirements. But we ignore the mempolicy of > > MPOL_BIND case. If someone mmap

[PATCH v3 1/7] dt-bindings: interconnect: single yaml file for RPMh interconnect drivers

2020-07-27 Thread Jonathan Marek
These two bindings are almost identical, so combine them into one. This will make it easier to add the sm8150 and sm8250 interconnect bindings. Signed-off-by: Jonathan Marek --- .../{qcom,sdm845.yaml => qcom,rpmh.yaml} | 20 - .../bindings/interconnect/qcom,sc7180.yaml| 85

[PATCH v3 4/7] interconnect: qcom: Add SM8150 interconnect provider driver

2020-07-27 Thread Jonathan Marek
Add driver for the Qualcomm interconnect buses found in SM8150 based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-slave pairs. Based on SC7180 driver and generated from downstream dts.

[PATCH v3 0/7] Add SM8150 and SM8250 interconnect drivers

2020-07-27 Thread Jonathan Marek
Most of this is generated from downstream dts using a script. v2: single yaml file for RPMh interconnect bindings, drop display RSC v3: - removed the sc7180 example from the combined yaml file, two examples with conflicting includes doesn't seem possible - Removed MASTER_ALC and bcm_alc

[PATCH v3 6/7] arm64: dts: qcom: sm8150: add interconnect nodes

2020-07-27 Thread Jonathan Marek
Add the interconnect dts nodes for sm8150. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 82 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index

[PATCH v3 7/7] arm64: dts: qcom: sm8250: add interconnect nodes

2020-07-27 Thread Jonathan Marek
Add the interconnect dts nodes for sm8250. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 82 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index

[PATCH v3 2/7] dt-bindings: interconnect: Add Qualcomm SM8150 DT bindings

2020-07-27 Thread Jonathan Marek
The Qualcomm SM8150 platform has several bus fabrics that could be controlled and tuned dynamically according to the bandwidth demand. Signed-off-by: Jonathan Marek Reviewed-by: Rob Herring --- .../bindings/interconnect/qcom,rpmh.yaml | 11 ++ .../dt-bindings/interconnect/qcom,sm8150.h

[PATCH v3 3/7] dt-bindings: interconnect: Add Qualcomm SM8250 DT bindings

2020-07-27 Thread Jonathan Marek
The Qualcomm SM8250 platform has several bus fabrics that could be controlled and tuned dynamically according to the bandwidth demand. Signed-off-by: Jonathan Marek Reviewed-by: Rob Herring --- .../bindings/interconnect/qcom,rpmh.yaml | 11 ++ .../dt-bindings/interconnect/qcom,sm8250.h

[PATCH v3 5/7] interconnect: qcom: Add SM8250 interconnect provider driver

2020-07-27 Thread Jonathan Marek
Add driver for the Qualcomm interconnect buses found in SM8250 based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-slave pairs. Based on SC7180 driver and generated from downstream dts.

[PATCH] xtensa: fix closing endif comment

2020-07-27 Thread Max Filippov
Commit 8f74afa22d9b ("xtensa: switch to generic version of pte allocation") introduced the following build warning for xtensa arch/xtensa/include/asm/pgalloc.h:67:8: warning: extra tokens at end of #endif directive [-Wendif-labels] Fix #endif comment. Cc: Mike Rapoport Reviewed-by: Mike

Re: [RESEND PATCH v5 08/11] ppc64/kexec_file: setup backup region for kdump kernel

2020-07-27 Thread Thiago Jung Bauermann
Hari Bathini writes: > Though kdump kernel boots from loaded address, the first 64KB of it is > copied down to real 0. So, setup a backup region and let purgatory > copy the first 64KB of crashed kernel into this backup region before > booting into kdump kernel. Update reserve map with backup

Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-27 Thread Francisco Jerez
"Rafael J. Wysocki" writes: > On Tuesday, July 21, 2020 1:20:14 AM CEST Francisco Jerez wrote: > > [cut] > >> > >> > However, in the active mode the only updater of hwp_req_cached is >> > intel_pstate_hwp_set() and this patch doesn't introduce any >> > differences in behavior in that case. >> >

Re: [PATCH v2 4/5] powerpc/mm: Remove custom stack expansion checking

2020-07-27 Thread Michael Ellerman
Daniel Axtens writes: > Hi Michael, > > I tested v1 of this. I ran the test from the bug with a range of stack > sizes, in a loop, for several hours and didn't see any crashes/signal > delivery failures. > > I retested v2 for a few minutes just to be sure, and I ran stress-ng's > stack, stackmmap

Re: [RESEND PATCH v5 00/11] ppc64: enable kdump support for kexec_file_load syscall

2020-07-27 Thread piliu
On 07/27/2020 03:36 AM, Hari Bathini wrote: > Sorry! There was a gateway issue on my system while posting v5, due to > which some patches did not make it through. Resending... > > This patch series enables kdump support for kexec_file_load system > call (kexec -s -p) on PPC64. The changes are

[Linux-kernel-mentees] [PATCH net] xdp: Prevent kernel-infoleak in xsk_getsockopt()

2020-07-27 Thread Peilin Ye
xsk_getsockopt() is copying uninitialized stack memory to userspace when `extra_stats` is `false`. Fix it by initializing `stats` with memset(). Cc: sta...@vger.kernel.org Fixes: 8aa5a33578e9 ("xsk: Add new statistics") Suggested-by: Dan Carpenter Signed-off-by: Peilin Ye --- net/xdp/xsk.c | 2

Re: [PATCH v2 4/9] mfd: mt6360: Combine mt6360 pmic/ldo resouces into mt6360 regulator resources

2020-07-27 Thread Gene Chen
Lee Jones 於 2020年7月27日 週一 下午7:29寫道: > > On Fri, 17 Jul 2020, Gene Chen wrote: > > > From: Gene Chen > > > > Combine mt6360 pmic/ldo resouces into mt6360 regulator resources > > to simplify the similar resources object. > > Do the sub-devices actually share these resources, or are you doing >

RE: [PATCH] ASoC: Intel: Atom: use hardware counter to update hw_ptr

2020-07-27 Thread Lu, Brent
> > All the Atom firmware assumes data chunks in multiples of 1ms (typically 5, > 10 or 20ms). I have never seen anyone use 256 frames, that's asking for > trouble really. > > it's actually the same with Skylake and SOF in most cases. > > Is this a 'real' problem or a problem detected by the

[PATCH -next] powerpc: use for_each_child_of_node() macro

2020-07-27 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- arch/powerpc/platforms/pasemi/misc.c | 3 +-- arch/powerpc/platforms/powermac/low_i2c.c| 6 ++ arch/powerpc/platforms/powermac/pfunc_base.c | 4 ++--

[PATCH -next] sparc: use for_each_child_of_node() macro

2020-07-27 Thread Qinglang Miao
Use for_each_child_of_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- arch/sparc/kernel/pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 5d45b6d76..9c2b720bf 100644 ---

[PATCH -next] ARM: s3c: fix return value check in s3c_usb_otgphy_init()

2020-07-27 Thread Qinglang Miao
the function clk_get() returns ERR_PTR() in case of error and never returns NULL. So there's no need to test whether xusbxti is NULL, just remove the redundant part in the return value check. Signed-off-by: Qinglang Miao --- arch/arm/mach-s3c64xx/setup-usb-phy.c | 2 +- 1 file changed, 1

[PATCH -next] m68k/amiga: missing platform_device_unregister() on error in amiga_init_devices()

2020-07-27 Thread Qinglang Miao
Add the missing platform_device_unregister() before return from amiga_init_devices() in the error handling case. Signed-off-by: Qinglang Miao --- arch/m68k/amiga/platform.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/m68k/amiga/platform.c

[PATCH -next] ARM: zx: remove redundant dev_err call in zx296702_pd_probe()

2020-07-27 Thread Qinglang Miao
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Qinglang Miao --- arch/arm/mach-zx/zx296702-pm-domain.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-zx/zx296702-pm-domain.c

Re: [PATCH v9 6/7] x86: Add support for ZSTD compressed kernel

2020-07-27 Thread Arvind Sankar
On Mon, Jul 27, 2020 at 04:06:05PM -0700, Nick Terrell wrote: > From: Nick Terrell > > * Define __DISABLE_EXPORTS in misc.c ... > __DISABLE_EXPORTS is defined in misc.c instead of the Makefile because > kaslr.c defines __DISABLE_EXPORTS, and defining it in the Makefile gives > duplicate

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

2020-07-27 Thread Stephen Rothwell
Hi Sergey, On Tue, 28 Jul 2020 10:54:08 +0900 Sergey Senozhatsky wrote: > >> Sorry about that. This will be fixed for tomorrow's build. The problems > is that we have commit dependency between printk and locking tree. So I > pulled the >

Re: [PATCH 2/4] printk: store instead of processing cont parts

2020-07-27 Thread Sergey Senozhatsky
On (20/07/21 08:40), Linus Torvalds wrote: > On Tue, Jul 21, 2020 at 7:42 AM Sergey Senozhatsky > wrote: > > > > OK, so basically, extending printk_caller_id() so that for IRQ/NMI > > we will have more info than just "0x8000 + raw_smp_processor_id()". > > I think it's really preempt_count()

Re: [PATCH][next] ACPICA: Use fallthrough pseudo-keyword

2020-07-27 Thread Joe Perches
On Mon, 2020-07-27 at 17:23 -0500, Gustavo A. R. Silva wrote: > Hi, > > > This is a macro pseudo-keyword, which expands to /* fallthrough */ > for compilers that don't support the attribute __fallthrough__. See: Not really. It expands to do {} while (0) for compilers that do not

[PATCH -next] ARM: uniphier: use for_each_matching_node() macro

2020-07-27 Thread Qinglang Miao
Use for_each_matching_node() macro instead of open coding it. Signed-off-by: Qinglang Miao --- arch/arm/mm/cache-uniphier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/cache-uniphier.c b/arch/arm/mm/cache-uniphier.c index ff2881458..112f19cb3 100644 ---

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

2020-07-27 Thread Stephen Rothwell
Hi Herbert, On Tue, 28 Jul 2020 11:51:19 +1000 Herbert Xu wrote: > > This patch depends on two patches in the tips tree. I presume > this build test was done without the tips tree, right? Of course it was ... Each tree merged into linux-next should really be standalone (in case e.g. Linus

Re: [PATCH v6 3/8] scsi: ufs-qcom: Fix schedule while atomic error in ufs_qcom_dump_dbg_regs

2020-07-27 Thread Can Guo
Hi Avri, On 2020-07-27 21:05, Avri Altman wrote: Dumping testbus registers needs to sleep a bit intermittently as there are too many of them. Skip them for those contexts where sleep is not allowed. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufs-qcom.c | 15 +-- 1 file

[PATCH net 2/5] net: hns3: fix a TX timeout issue

2020-07-27 Thread Huazhong Tan
From: Yonglong Liu When the queue depth and queue parameters are modified, there is a low probability that TX timeout occurs. The two operations cause the link to be down or up when the watchdog is still working. All queues are stopped when the link is down. After the carrier is on, all queues

[PATCH net 3/5] net: hns3: add reset check for VF updating port based VLAN

2020-07-27 Thread Huazhong Tan
From: Jian Shen Currently hclgevf_update_port_base_vlan_info() may be called when VF is resetting, which may cause hns3_nic_net_open() being called twice unexpectedly. So fix it by adding a reset check for it, and extend critical region for rntl_lock in hclgevf_update_port_base_vlan_info().

[PATCH net 5/5] net: hns3: fix for VLAN config when reset failed

2020-07-27 Thread Huazhong Tan
From: Guojia Liao When device is resetting or reset failed, firmware is unable to handle mailbox. VLAN should not be configured in this case. Fixes: fe4144d47eef ("net: hns3: sync VLAN filter entries when kill VLAN ID failed") Signed-off-by: Guojia Liao Signed-off-by: Huazhong Tan ---

[PATCH net 4/5] net: hns3: fix aRFS FD rules leftover after add a user FD rule

2020-07-27 Thread Huazhong Tan
From: Guojia Liao When user had created a FD rule, all the aRFS rules should be clear up. HNS3 process flow as below: 1.get spin lock of fd_ruls_list 2.clear up all aRFS rules 3.release lock 4.get spin lock of fd_ruls_list 5.creat a rules 6.release lock; There is a short period of time between

[PATCH net 0/5] net: hns3: fixes for -net

2020-07-27 Thread Huazhong Tan
There are some bugfixes for the HNS3 ethernet driver. patch#1 fixes a desc filling bug, patch#2 fixes a false TX timeout issue, and patch#3~#5 fixes some bugs related to VLAN and FD. Guojia Liao (2): net: hns3: fix aRFS FD rules leftover after add a user FD rule net: hns3: fix for VLAN config

[PATCH net 1/5] net: hns3: fix desc filling bug when skb is expanded or lineared

2020-07-27 Thread Huazhong Tan
From: Yunsheng Lin The linear and frag data part may be changed when the skb is expanded or lineared in skb_cow_head() or skb_checksum_help(), which is called by hns3_fill_skb_desc(), so the linear len return by skb_headlen() before the calling of hns3_fill_skb_desc() is unreliable. Move

Re: [RESEND PATCH v5 07/11] ppc64/kexec_file: enable early kernel's OPAL calls

2020-07-27 Thread Thiago Jung Bauermann
Hari Bathini writes: > Kernel built with CONFIG_PPC_EARLY_DEBUG_OPAL enabled expects r8 & r9 > to be filled with OPAL base & entry addresses respectively. Setting > these registers allows the kernel to perform OPAL calls before the > device tree is parsed. > > Signed-off-by: Hari Bathini

Re: [PATCH v2 1/9] mfd: mt6360: Rearrange include file

2020-07-27 Thread Gene Chen
Lee Jones 於 2020年7月27日 週一 下午7:08寫道: > > On Fri, 17 Jul 2020, Gene Chen wrote: > > > From: Gene Chen > > > > Rearrange include file without sorting by alphabet. > > Why are you making this change? > Personal coding style references from upstream code. I can discard this change if it doesn't make

[PATCH] Staging : media : atomisp : Fixed a brace coding sytle issue

2020-07-27 Thread Ankit Baluni
Fixing coding style issue by removing the braces that are not required. Signed-off-by: Ankit Baluni --- drivers/staging/media/atomisp/pci/atomisp_ioctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c

[tip:master] BUILD SUCCESS ce2273c556389b9cc1dfda36965bf7f86bedd556

2020-07-27 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: ce2273c556389b9cc1dfda36965bf7f86bedd556 Merge branch 'x86/cpu' elapsed time: 721m configs tested: 53 configs skipped: 1 The following configs have been built successfully. More configs may be tested

Re: [PATCH V3fix ghak120] audit: initialize context values in case of mandatory events

2020-07-27 Thread Paul Moore
On Mon, Jul 27, 2020 at 5:30 PM Richard Guy Briggs wrote: > > Issue ghak120 enabled syscall records to accompany required records when > no rules are present to trigger the storage of syscall context. A > reported issue showed that the cwd was not always initialized. That > issue was already

[tip:x86/mm] BUILD SUCCESS 2b32ab031e82a109e2c5b0d30ce563db0fe286b4

2020-07-27 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig x86_64 randconfig-a005-20200727 x86_64 randconfig-a004-20200727 x86_64 randconfig

Re: mmotm 2020-07-27-18-18 uploaded

2020-07-27 Thread Stephen Rothwell
Hi Andrew, On Mon, 27 Jul 2020 18:19:14 -0700 Andrew Morton wrote: > > * > mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-2.patch These syscall patches have been a pain, sorry. I have corrected the above to this: From: Andrew Morton Date: Tue, 28 Jul 2020

[PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check

2020-07-27 Thread Gaurav Singh
Add return to fix build issue. Haven't reproduced this issue at my end. My hypothesis is this: In function: ip6_xmit(), we have const struct ipv6_pinfo *np = inet6_sk(sk); which returns NULL. Further down the function, there's a check: if (np) hlimit = hp->htop_limit Further, we have a call

Re: [RESEND PATCH v5 06/11] ppc64/kexec_file: restrict memory usage of kdump kernel

2020-07-27 Thread Thiago Jung Bauermann
Hari Bathini writes: > Kdump kernel, used for capturing the kernel core image, is supposed > to use only specific memory regions to avoid corrupting the image to > be captured. The regions are crashkernel range - the memory reserved > explicitly for kdump kernel, memory used for the tce-table,

[PATCH v6 06/11] bus: mhi: core: Introduce helper function to check device state

2020-07-27 Thread Bhaumik Bhatt
Introduce a helper function to determine whether the device is in a powered ON state and resides in one of the active MHI states. This will allow for some use cases where access can be pre-determined. Signed-off-by: Bhaumik Bhatt Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam ---

[PATCH v6 11/11] bus: mhi: core: Introduce sysfs entries for MHI

2020-07-27 Thread Bhaumik Bhatt
Introduce sysfs entries to enable userspace clients the ability to read the serial number and the OEM PK Hash values obtained from BHI. OEMs need to read these device-specific hardware information values through userspace for factory testing purposes and cannot be exposed via degbufs as it may

[PATCH v6 07/11] bus: mhi: core: Introduce counters to track MHI device state transitions

2020-07-27 Thread Bhaumik Bhatt
Use counters to track MHI device state transitions such as those to M0, M2, or M3 states. This can help in better debug, allowing the user to see the number of transitions to a certain MHI state when queried using debugfs entries or via other mechanisms. Signed-off-by: Bhaumik Bhatt ---

[PATCH v6 02/11] bus: mhi: core: Abort suspends due to outgoing pending packets

2020-07-27 Thread Bhaumik Bhatt
Add the missing check to abort suspends if a client driver has pending outgoing packets to send to the device. This allows better utilization of the MHI bus wherein clients on the host are not left waiting for longer suspend or resume cycles to finish for data transfers. Signed-off-by: Bhaumik

[PATCH v6 08/11] bus: mhi: core: Introduce debugfs entries for MHI

2020-07-27 Thread Bhaumik Bhatt
Introduce debugfs entries to show state, register, channel, device, and event rings information. Allow the host to dump registers, issue device wake, and change the MHI timeout to help in debug. Signed-off-by: Bhaumik Bhatt --- drivers/bus/mhi/Kconfig | 8 +

[PATCH v6 04/11] bus: mhi: core: Trigger host resume if suspended during mhi_device_get()

2020-07-27 Thread Bhaumik Bhatt
It is possible that the host may be suspending or suspended and may not allow an outgoing device wake assert immediately if a client has requested for it. Ensure that the host wakes up and allows for it so the client does not have to wait for an external trigger or an outgoing packet to be queued

[PATCH v6 05/11] bus: mhi: core: Use generic name field for an MHI device

2020-07-27 Thread Bhaumik Bhatt
An MHI device is not necessarily associated with only channels as we can have one associated with the controller itself. Hence, the chan_name field within the mhi_device structure should instead be replaced with a generic name to accurately reflect any type of MHI device. Signed-off-by: Bhaumik

[PATCH v6 00/11] Introduce features and debugfs/sysfs entries for MHI

2020-07-27 Thread Bhaumik Bhatt
Save hardware information from BHI. Allow reading and modifying some MHI variables for debug, test, and informational purposes using debugfs. Read values for device specific hardware information to be used by OEMs in factory testing such as serial number and PK hash using sysfs. This set of

[PATCH v6 09/11] bus: mhi: core: Read and save device hardware information from BHI

2020-07-27 Thread Bhaumik Bhatt
Device hardware specific information such as serial number and the OEM PK hash can be read using BHI and saved on host to identify the endpoint. Signed-off-by: Bhaumik Bhatt Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/core/boot.c | 17 -

[PATCH v6 01/11] bus: mhi: core: Remove double occurrence for mhi_ctrl_ev_task() declaration

2020-07-27 Thread Bhaumik Bhatt
mhi_ctrl_ev_task() in the internal header file occurred twice. Remove one of the occurrences for clean-up. Signed-off-by: Bhaumik Bhatt Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/core/internal.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/bus/mhi/core/internal.h

[PATCH v6 03/11] bus: mhi: core: Use helper API to trigger a non-blocking host resume

2020-07-27 Thread Bhaumik Bhatt
Autonomous low power mode support requires the MHI host to resume from multiple places and post a wakeup source to exit system suspend. This needs to be done in a non-blocking manner. Introduce a helper API to trigger the host resume for data transfers and other non-blocking use cases while

[PATCH v6 10/11] bus: mhi: core: Introduce APIs to allocate and free the MHI controller

2020-07-27 Thread Bhaumik Bhatt
Client devices should use the APIs provided to allocate and free the MHI controller structure. This will help ensure that the structure is zero-initialized and there are no false positives with respect to reading any values such as the serial number or the OEM PK hash. Signed-off-by: Bhaumik

[PATCH v2] MAINTAINERS: Fix email typo and correct name of Tianshu

2020-07-27 Thread Bingbu Cao
Fix the typo in email address of Tianshu Qiu and correct the name. Reported-by: Bjorn Helgaas Signed-off-by: Tianshu Qiu Signed-off-by: Bingbu Cao --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH v9 7/7] .gitignore: add ZSTD-compressed files

2020-07-27 Thread Masahiro Yamada
On Tue, Jul 28, 2020 at 8:11 AM Nick Terrell wrote: > > From: Adam Borowski > > For now, that's arch/x86/boot/compressed/vmlinux.bin.zst but probably more > will come, thus let's be consistent with all other compressors. > > Tested-by: Sedat Dilek > Reviewed-by: Kees Cook > Signed-off-by: Nick

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

2020-07-27 Thread Sergey Senozhatsky
On (20/07/28 11:49), Stephen Rothwell wrote: [..] > Caused by commit > > b4a461e72bcb ("printk: Make linux/printk.h self-contained") > > This *may* be interacting with other include file changes in linux-next. > > I have reverted that commit for today. Hi Stephen, Sorry about that. This

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