[PATCH] mm: Few spelling fixes

2021-03-17 Thread Bhaskar Chowdhury
Few spelling fixes throughout the file. Signed-off-by: Bhaskar Chowdhury --- include/linux/pgtable.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 5e772392a379..4fcefd553a5c 100644 --- a/include/linux/pgta

[PATCH v1] usb: typec: tcpm: PD3.0 sinks can send Discover Identity even in device mode

2021-03-17 Thread Badhri Jagan Sridharan
>From 6.4.4.2 Structured VDM: • Either Port May be an Initiator of Structured VDMs except for the Enter Mode and Exit Mode Commands which Shall only be initiated by the DFP." The above implies that when PD3.0 link is established PD3.0 sinks can send out discover identity command/AMS once PD negoti

RE: [PATCH net-next 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-17 Thread Wong, Vee Khee
> -Original Message- > From: Heiner Kallweit > Sent: Wednesday, March 17, 2021 4:15 PM > To: Wong, Vee Khee ; Andrew Lunn > ; Russell King ; David S . Miller > ; Jakub Kicinski > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > sta...@vger.kernel.org; Voon Weifeng ; Ong, > Boon

Re: [PATCH v3 0/2] x86/setup: consolidate early memory reservations

2021-03-17 Thread Mike Rapoport
Another gentle ping. On Wed, Mar 10, 2021 at 07:52:13PM +0200, Mike Rapoport wrote: > Any comments on these? > > On Tue, Mar 02, 2021 at 12:04:04PM +0200, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Hi, > > > > David noticed that we do some of memblock_reserve() calls after allocation

Re: NULL deref in integrity_inode_get

2021-03-17 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 3:18 AM Mimi Zohar wrote: > > Hi Dmitry, > > On Mon, 2021-03-15 at 14:07 +0100, Dmitry Vyukov wrote: > > On Mon, Mar 15, 2021 at 1:41 PM Mimi Zohar wrote: > > > > > > On Mon, 2021-03-15 at 11:58 +0100, Dmitry Vyukov wrote: > > > > Hi, > > > > > > > > I am trying to boot 5.

[PATCH net] net: sched: fix packet stuck problem for lockless qdisc

2021-03-17 Thread Yunsheng Lin
Lockless qdisc has below concurrent problem: cpu0 cpu1 . . q->enqueue . . . qdisc_run_begin(). . . dequeue_skb() . .

Re: linux-next: manual merge of the drm tree with the drm-misc-fixes tree

2021-03-17 Thread Tomi Valkeinen
On 18/03/2021 03:02, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/omapdrm/dss/dsi.c between commit: 690911544275 ("drm/omap: dsi: fix unsigned expression compared with zero") from the drm-misc-fixes tree and commit: bbd

Re:

2021-03-17 Thread Jarvis Jiang
jarvis.w.ji...@gmail.com On Thu, Mar 18, 2021 at 2:49 PM Jarvis Jiang wrote: > subscribe linex-kernel jarvis.w.ji...@gmail.com

[PATCH v1] usb: typec: tcpm: Skip sink_cap query only when VDM sm is busy

2021-03-17 Thread Badhri Jagan Sridharan
When port partner responds "Not supported" to the DiscIdentity command, VDM state machine can remain in NVDM_STATE_ERR_TMOUT and this causes querying sink cap to be skipped indefinitely. Hence check for vdm_sm_running instead of checking for VDM_STATE_DONE. Fixes: 8dc4bd073663f ("usb: typec: tcpm:

[PATCH] x86/mm: Fixed couple of typos

2021-03-17 Thread Bhaskar Chowdhury
s/compied/compiled/ s/preseve/preserve/ Signed-off-by: Bhaskar Chowdhury --- arch/x86/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index dd694fb93916..0212e831d388 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/ini

[PATCH v4 2/2] drm: bridge: cdns-mhdp8546: Enable HDCP

2021-03-17 Thread Parshuram Thombare
This patch enable HDCP in MHDP driver. Signed-off-by: Parshuram Thombare Reviewed-by: Robert Foss --- drivers/gpu/drm/bridge/cadence/Makefile | 2 +- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 113 +++- .../drm/bridge/cadence/cdns-mhdp8546-core.h | 21 + .../drm/bridge/cadence/c

RE: [PATCH v2] phy: zynqmp: Handle the clock enable/disable properly

2021-03-17 Thread Manish Narani
Gentle Ping! > -Original Message- > From: Manish Narani > Sent: Tuesday, March 9, 2021 4:48 PM > To: laurent.pinch...@ideasonboard.com; kis...@ti.com; vk...@kernel.org; > Michal Simek > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; git > ; Manish Narani > Subje

[PATCH v4 1/2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for HDCP

2021-03-17 Thread Parshuram Thombare
Add binding changes for HDCP in the MHDP8546 DPI/DP bridge binding. Signed-off-by: Parshuram Thombare --- .../display/bridge/cdns,mhdp8546.yaml | 24 +++ 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/cdns

[PATCH v4 0/2] enable HDCP in Cadence MHDP bridge driver

2021-03-17 Thread Parshuram Thombare
This patch series enables HDCP in Cadence MHDP DPI/DP bridge driver. Changes since v1: - Move sapb reg block right after apb reg block - Corresponding changes in binding and example Changes since v2: - Revert reg resource sequence in binding and use resource mapping by name - Remove hdcp_confi

Re: [RFC 2/2] selftest/cpuidle: Add support for cpuidle latency measurement

2021-03-17 Thread Pratik Sampat
Hi Doug, Thanks for trying these patches out. On 18/03/21 2:30 am, Doug Smythies wrote: Hi Pratik, It just so happens that I have been trying Artem's version this last week, so I tried yours. On Mon, Mar 15, 2021 at 4:49 AM Pratik Rajesh Sampat wrote: ... To run this test specifically: $ mak

Re: linux-next: build warning after merge of the rust tree

2021-03-17 Thread Stephen Rothwell
Hi Miguel, On Thu, 18 Mar 2021 07:29:21 +0100 Miguel Ojeda wrote: > > On Thu, Mar 18, 2021 at 7:24 AM Stephen Rothwell > wrote: > > > > After merging the rust tree, today's linux-next build (htmldocs) produced > > this warning: > > > > Documentation/rust/coding.rst:24: WARNING: Unexpected inde

[PATCH v2] exfat: speed up iterate/lookup by fixing start point of traversing cluster chain

2021-03-17 Thread Hyeongseok Kim
When directory iterate and lookup is called, there's a buggy rewinding of start point for traversing cluster chain to the parent directory entry's first cluster. This caused repeated cluster chain traversing from the first entry of the parent directory that would show worse performance if huge amou

[no subject]

2021-03-17 Thread Jarvis Jiang
subscribe linux-kernel

[PATCH bpf-next v2] bpf: Simplify expression for identify bpf mem type

2021-03-17 Thread Jianlin Lv
Added BPF_LD_ST_SIZE_MASK macro as mask of size modifier that help to reduce the evaluation of expressions in if statements, and remove BPF_SIZE_MASK in netronome driver. Signed-off-by: Jianlin Lv --- v2: Move the bpf_LD_ST_SIZE_MASK macro definition to include/linux/bpf.h --- drivers/net/ethern

Re: [PATCH 3/4] locking/ww_mutex: Treat ww_mutex_lock() like a trylock

2021-03-17 Thread Boqun Feng
On Wed, Mar 17, 2021 at 10:54:17PM -0400, Waiman Long wrote: > On 3/17/21 10:24 PM, Boqun Feng wrote: > > Hi Waiman, > > > > Just a question out of curiosity: how does this problem hide so long? > > ;-) Because IIUC, both locktorture and ww_mutex_lock have been there for > > a while, so why didn't

Re: [vdpa_sim_net] 79991caf52: net/ipv4/ipmr.c:#RCU-list_traversed_in_non-reader_section

2021-03-17 Thread Oliver Sang
Hi Joe and Dongli, On Mon, Feb 08, 2021 at 08:10:21AM -0800, Joe Jin wrote: > On 2/7/21 12:15 PM, Dongli Zhang wrote: > > Is it possible that the issue is not due to this change? > > Looks this issue does not related your change, from dmesg output, when issue > occurred, virtio was not loaded: >

Re: linux-next: build warning after merge of the rust tree

2021-03-17 Thread Miguel Ojeda
On Thu, Mar 18, 2021 at 7:24 AM Stephen Rothwell wrote: > > Hi all, > > After merging the rust tree, today's linux-next build (htmldocs) produced > this warning: > > Documentation/rust/coding.rst:24: WARNING: Unexpected indentation. Ah, so docs are built in -next too? That is very nice. I'll fix

Re: [PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc

2021-03-17 Thread Miguel Ojeda
On Thu, Mar 18, 2021 at 7:03 AM Valdis Klētnieks wrote: > > Or declare that gcc6 is the minimum for building the kernel. Cc'ing some interested people in raising GCC's version for one reason or another, so that we put this as another one in the pile of reasons :-) https://lore.kernel.org/lkml/CA

[PATCH] drm/msm/dp: Fixed couple of typos

2021-03-17 Thread Bhaskar Chowdhury
s/modueles/modules/ two different places Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/msm/dp/dp_power.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_power.h b/drivers/gpu/drm/msm/dp/dp_power.h index 7d0327bbc0d5..e3f959ffae12 1006

linux-next: build warning after merge of the rust tree

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the rust tree, today's linux-next build (htmldocs) produced this warning: Documentation/rust/coding.rst:24: WARNING: Unexpected indentation. Introduced by commit c77c8025525c ("Rust support") -- Cheers, Stephen Rothwell pgpFIwTxwetbP.pgp Description: OpenPGP digital

linux-next: build warnings after merge of the net-next tree

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (htmldocs) produced these warnings: Documentation/networking/tipc:66: /home/sfr/next/next/net/tipc/name_table.c:558: WARNING: Unexpected indentation. Documentation/networking/tipc:66: /home/sfr/next/next/net/tipc/name_table.c:559

[PATCH] arm64: dts: mt8173: fix wrong power-domain phandle of pmic

2021-03-17 Thread Chunfeng Yun
Due to power domain controller is added, the power domain's phanle is also changed from 'scpsys' to 'spm', but forget to modify pmic node's Fixes: 8b6562644df9 ("arm64: dts: mediatek: Add mt8173 power domain controller") Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts

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

2021-03-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: mm/memcontrol.c between commit: 06d69d4c8669 ("mm: Charge active memcg when no mm is set") from the block tree and commit: 674788258a66 ("memcg: charge before adding to swapcache on swapin") from the akpm-curr

[PATCH] x86/platform/intel-quark: Fix a typo

2021-03-17 Thread Bhaskar Chowdhury
s/secton/section/ Signed-off-by: Bhaskar Chowdhury --- arch/x86/platform/intel-quark/imr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/intel-quark/imr.c b/arch/x86/platform/intel-quark/imr.c index 0286fe1b14b5..122e0f37b1f5 100644 --- a/arch/x86/platf

Re: [RESEND PATCH v6 1/2] procfs: Allow reading fdinfo with PTRACE_MODE_READ

2021-03-17 Thread Kalesh Singh
On Wed, Mar 17, 2021 at 10:55 PM Kees Cook wrote: > > On Mon, Mar 08, 2021 at 05:06:40PM +, Kalesh Singh wrote: > > Android captures per-process system memory state when certain low memory > > events (e.g a foreground app kill) occur, to identify potential memory > > hoggers. In order to measu

Re: [PATCH v6] perf annotate: Fix sample events lost in stdio mode

2021-03-17 Thread Namhyung Kim
Hello, On Wed, Mar 17, 2021 at 6:44 PM Yang Jihong wrote: > > In hist__find_annotations function, since different hist_entry may point to > same > symbol, we free notes->src to signal already processed this symbol in stdio > mode; > when annotate, entry will skipped if notes->src is NULL to avo

Re: [PATCH v2] smp: kernel/panic.c - silence warnings

2021-03-17 Thread Christophe Leroy
Le 18/03/2021 à 03:56, heying (H) a écrit : 在 2021/3/18 4:09, Ingo Molnar 写道: * Peter Zijlstra wrote: Now, the C people figured that distinction was useless and allowed sloppiness. But I still think there's merrit to that. And as mentioned earlier, it is consistent with variable declarati

Re: [PATCH v2 3/3] perf-test: add a test for perf-stat --bpf-counters option

2021-03-17 Thread Namhyung Kim
On Wed, Mar 17, 2021 at 6:18 AM Song Liu wrote: > > Add a test to compare the output of perf-stat with and without option > --bpf-counters. If the difference is more than 10%, the test is considered > as failed. > > For stable results between two runs (w/ and w/o --bpf-counters), the test > progra

[PATCH v2 0/6] Add SiFive FU740 PCIe host controller driver support

2021-03-17 Thread Greentime Hu
This patchset includes SiFive FU740 PCIe host controller driver. We also add pcie_aux clock and pcie_power_on_reset controller to prci driver for PCIe driver to use it. This is tested with e1000e: Intel(R) PRO/1000 Network Card, AMD Radeon R5 230 graphics card and SP M.2 PCIe Gen 3 SSD in SiFive U

Re: [PATCH 01/10] alpha: use libata instead of the legacy ide driver

2021-03-17 Thread Christoph Hellwig
On Thu, Mar 18, 2021 at 05:54:55AM +, Al Viro wrote: > On Thu, Mar 18, 2021 at 05:56:57AM +0100, Christoph Hellwig wrote: > > Switch the alpha defconfig from the legacy ide driver to libata. > > Umm... I don't have an IDE alpha box in a usable shape (fans on > CPU module shat themselves), and

Re: [PATCH 4.14 00/95] 4.14.226-rc1 review

2021-03-17 Thread Guenter Roeck
On 3/17/21 10:54 PM, Samuel Zou wrote: > > > On 2021/3/17 23:36, Greg KH wrote: >> On Tue, Mar 16, 2021 at 02:35:36PM +0800, Samuel Zou wrote: >>> >>> >>> On 2021/3/15 21:56, gre...@linuxfoundation.org wrote: From: Greg Kroah-Hartman This is the start of the stable review cycle fo

Re: [PATCH 10/10] arm64: dts: Add Mediatek SoC MT8195 and evaluation board dts and Makefile

2021-03-17 Thread Seiya Wang
On Thu, 2021-03-18 at 10:57 +0800, Chunfeng Yun wrote: > On Tue, 2021-03-16 at 19:14 +0800, Seiya Wang wrote: > > Add basic chip support for Mediatek MT8195 > > > > Signed-off-by: Seiya Wang > > --- > > arch/arm64/boot/dts/mediatek/Makefile | 1 + > > arch/arm64/boot/dts/mediatek/mt8195-

[PATCH v2 3/6] MAINTAINERS: Add maintainers for SiFive FU740 PCIe driver

2021-03-17 Thread Greentime Hu
Here add maintainer information for SiFive FU740 PCIe driver. Signed-off-by: Greentime Hu --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index bfc1b86e3e73..4da888be6e80 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13592,6 +13592,14 @@ S:

[PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC

2021-03-17 Thread Greentime Hu
Signed-off-by: Greentime Hu --- arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi index d1bb22b11920..d0839739b425 100644 --- a/arch/riscv/

[PATCH v2 4/6] dt-bindings: PCI: Add SiFive FU740 PCIe host controller

2021-03-17 Thread Greentime Hu
Add PCIe host controller DT bindings of SiFive FU740. Signed-off-by: Greentime Hu --- .../bindings/pci/sifive,fu740-pcie.yaml | 119 ++ 1 file changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml diff --git a/Documenta

[PATCH v2 5/6] PCI: fu740: Add SiFive FU740 PCIe host controller driver

2021-03-17 Thread Greentime Hu
From: Paul Walmsley Add driver for the SiFive FU740 PCIe host controller. This controller is based on the DesignWare PCIe core. Signed-off-by: Paul Walmsley Co-developed-by: Henry Styles Signed-off-by: Henry Styles Co-developed-by: Erik Danie Signed-off-by: Erik Danie Co-developed-by: Green

[PATCH v2 2/6] clk: sifive: Use reset-simple in prci driver for PCIe driver

2021-03-17 Thread Greentime Hu
We use reset-simple in this patch so that pcie driver can use devm_reset_control_get() to get this reset data structure and use reset_control_deassert() to deassert pcie_power_up_rst_n. Reviewed-by: Philipp Zabel Signed-off-by: Greentime Hu --- drivers/clk/sifive/Kconfig | 2 ++ drivers/

[PATCH v2 1/6] clk: sifive: Add pcie_aux clock in prci driver for PCIe driver

2021-03-17 Thread Greentime Hu
We add pcie_aux clock in this patch so that pcie driver can use clk_prepare_enable() and clk_disable_unprepare() to enable and disable pcie_aux clock. Signed-off-by: Greentime Hu --- drivers/clk/sifive/fu740-prci.c | 11 + drivers/clk/sifive/fu740-prci.h | 2 +-

Re: [PATCH 01/10] alpha: use libata instead of the legacy ide driver

2021-03-17 Thread Al Viro
On Thu, Mar 18, 2021 at 05:56:57AM +0100, Christoph Hellwig wrote: > Switch the alpha defconfig from the legacy ide driver to libata. Umm... I don't have an IDE alpha box in a usable shape (fans on CPU module shat themselves), and it would take a while to resurrect it, but I remember the joy it u

Re: [PATCH 08/10] dt-bindings: phy: Add compatible for Mediatek MT8195

2021-03-17 Thread Seiya Wang
On Thu, 2021-03-18 at 10:19 +0800, Chunfeng Yun wrote: > On Tue, 2021-03-16 at 19:14 +0800, Seiya Wang wrote: > > This commit adds dt-binding documentation of UFS M-Phy for Mediatek MT8195 > > SoC > > Platform. > > > > Signed-off-by: Seiya Wang > > --- > > Documentation/devicetree/bindings/phy/

Re: [PATCH v2] smp: kernel/panic.c - silence warnings

2021-03-17 Thread Christophe Leroy
Le 17/03/2021 à 21:09, Ingo Molnar a écrit : * Peter Zijlstra wrote: Now, the C people figured that distinction was useless and allowed sloppiness. But I still think there's merrit to that. And as mentioned earlier, it is consistent with variable declarations. Fully agreed, and my other

Re: [PATCH 4.14 00/95] 4.14.226-rc1 review

2021-03-17 Thread Greg KH
On Thu, Mar 18, 2021 at 01:54:34PM +0800, Samuel Zou wrote: > > > On 2021/3/17 23:36, Greg KH wrote: > > On Tue, Mar 16, 2021 at 02:35:36PM +0800, Samuel Zou wrote: > > > > > > > > > On 2021/3/15 21:56, gre...@linuxfoundation.org wrote: > > > > From: Greg Kroah-Hartman > > > > > > > > This is

[PATCH] ethernet: sun: Fix a typo

2021-03-17 Thread Bhaskar Chowdhury
s/serisouly/seriously/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/ethernet/sun/sungem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c index 58f142ee78a3..b4ef6f095975 100644 --- a/drivers/net/eth

Re: [PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc

2021-03-17 Thread Valdis Klētnieks
On Wed, 17 Mar 2021 22:52:56 -0700, Kees Cook said: > On Mon, Mar 08, 2021 at 03:40:21AM -0500, Valdis Klētnieks wrote: > > It turns out that older gcc (4.9 and 5.4) have gnu++11 support, but > > due to a gcc bug fixed in gcc6, throw errors during the build. > > The relevant gcc bug is https://gcc

[char-misc-next] mei: allow map and unmap of client dma buffer only for disconnected client

2021-03-17 Thread Tomas Winkler
Allow map and unmap of the client dma buffer only when the client is not connected. The functions return -EPROTO if the client is already connected. This is to fix the race when traffic may start or stop when buffer is not available. Cc: #v5.11+ Signed-off-by: Tomas Winkler --- drivers/misc/mei

Re: [PATCH v2] Adding i2c-cp2615: i2c support for Silicon Labs' CP2615 Digital Audio Bridge

2021-03-17 Thread Wolfram Sang
Hi Bence, > You are right, sorry, I am still familiarizing myself with `git send-email` No worries, the progress from your first to your second version was really great! You can add such information e.g. using the "--annotate" parameter og git-send-email. > GPLv2 or later is fine by me. If I cha

Re: [RESEND PATCH v6 1/2] procfs: Allow reading fdinfo with PTRACE_MODE_READ

2021-03-17 Thread Kees Cook
On Mon, Mar 08, 2021 at 05:06:40PM +, Kalesh Singh wrote: > Android captures per-process system memory state when certain low memory > events (e.g a foreground app kill) occur, to identify potential memory > hoggers. In order to measure how much memory a process actually consumes, > it is neces

Re: [PATCH v2 1/3] perf-stat: introduce bperf, share hardware PMCs with BPF

2021-03-17 Thread Namhyung Kim
On Wed, Mar 17, 2021 at 6:18 AM Song Liu wrote: > +static int bperf_check_target(struct evsel *evsel, > + struct target *target, > + enum bperf_filter_type *filter_type, > + __u32 *filter_entry_cnt) > +{ > +

Re: [PATCH 4.14 00/95] 4.14.226-rc1 review

2021-03-17 Thread Samuel Zou
On 2021/3/17 23:36, Greg KH wrote: On Tue, Mar 16, 2021 at 02:35:36PM +0800, Samuel Zou wrote: On 2021/3/15 21:56, gre...@linuxfoundation.org wrote: From: Greg Kroah-Hartman This is the start of the stable review cycle for the 4.14.226 release. There are 95 patches in this series, all wi

Re: [RESEND PATCH v6 2/2] procfs/dmabuf: Add inode number to /proc/*/fdinfo

2021-03-17 Thread Kees Cook
On Mon, Mar 08, 2021 at 05:06:41PM +, Kalesh Singh wrote: > And 'ino' field to /proc//fdinfo/ and > /proc//task//fdinfo/. > > The inode numbers can be used to uniquely identify DMA buffers > in user space and avoids a dependency on /proc//fd/* when > accounting per-process DMA buffer sizes. >

[PATCH 4/4] Fix spelling of achieving

2021-03-17 Thread qiumibaozi_1
From: ganjisheng Signed-off-by: ganjisheng --- drivers/mfd/ab3100-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index ee71ae0..f424c2a 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c @@ -15

linux-next: build warning after merge of the scsi tree

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the scsi tree, today's linux-next build (htmldocs) produced this warning: Documentation/driver-api/target:19: drivers/target/target_core_transport.c:1661: WARNING: Block quote ends without a blank line; unexpected unindent. Introduced by commit 750a1d93f905 ("scsi: tar

Re: [PATCH v2] smp: kernel/panic.c - silence warnings

2021-03-17 Thread Christophe Leroy
Le 17/03/2021 à 18:37, Peter Zijlstra a écrit : On Wed, Mar 17, 2021 at 06:17:26PM +0100, Christophe Leroy wrote: Le 17/03/2021 à 13:23, Peter Zijlstra a écrit : On Wed, Mar 17, 2021 at 12:00:29PM +0100, Christophe Leroy wrote: What do you mean ? 'extern' prototype is pointless for functi

[PATCH] sched/rt: use DIV_ROUND_UP to calculate sysctl_sched_rr_timeslice

2021-03-17 Thread Hongchen Zhang
When HZ is 300, the value of sysctl_sched_rr_timeslice is different from the actual value. Therefore, replace with DIV_ROUND_UP to calculate sysctl_sched_rr_timeslice. Signed-off-by: Hongchen Zhang --- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/s

Re: [PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc

2021-03-17 Thread Kees Cook
On Mon, Mar 08, 2021 at 03:40:21AM -0500, Valdis Klētnieks wrote: > It turns out that older gcc (4.9 and 5.4) have gnu++11 support, but > due to a gcc bug fixed in gcc6, throw errors during the build. > The relevant gcc bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 > > Version the opti

Re: [PATCH char-misc v1] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-03-17 Thread Greg KH
On Wed, Mar 17, 2021 at 05:14:34PM -0400, min.li...@renesas.com wrote: > +static int > +rsmu_open(struct inode *iptr, struct file *fptr) > +{ > + struct rsmu_cdev *rsmu; > + > + rsmu = container_of(iptr->i_cdev, struct rsmu_cdev, rsmu_cdev); > + if (!rsmu) > + return -EAGAIN

Re: [PATCH] mm/slub: Add slub_debug option to panic on memory corruption

2021-03-17 Thread Kees Cook
On Tue, Mar 09, 2021 at 07:18:32PM +0100, Vlastimil Babka wrote: > On 3/9/21 7:14 PM, Georgi Djakov wrote: > > Hi Vlastimil, > > > > Thanks for the comment! > > > > On 3/9/21 17:09, Vlastimil Babka wrote: > >> On 3/9/21 2:47 PM, Georgi Djakov wrote: > >>> Being able to stop the system immediately

Re: [v8,3/7] PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192

2021-03-17 Thread Jianjun Wang
On Thu, 2021-03-18 at 01:02 +0100, Pali Rohár wrote: > On Saturday 13 March 2021 15:43:14 Jianjun Wang wrote: > > On Thu, 2021-03-11 at 13:38 +0100, Pali Rohár wrote: > > > On Wednesday 24 February 2021 14:11:28 Jianjun Wang wrote: > > > > +static int mtk_pcie_startup_port(struct mtk_pcie_port *por

Re: [PATCH] scsi: ufs: Add selector to ufshcd_query_flag* APIs

2021-03-17 Thread Can Guo
On 2021-03-17 11:31, Daejun Park wrote: Unlike other query APIs in UFS, ufshcd_query_flag has a fixed selector as 0. This patch allows ufshcd_query_flag API to choose selector value by parameter. Signed-off-by: Daejun Park Reviewed-by: Can Guo --- drivers/scsi/ufs/ufs-sysfs.c | 2 +- dri

linux-next: build warning after merge of the net-next tree

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (htmldocs) produced this warning: net/tipc/subscr.h:73: warning: Function parameter or member 's' not described in 'tipc_subscription' Introduced by commit 429189acac53 ("tipc: add host-endian copy of user subscription to stru

Re: Errant readings on LM81 with T2080 SoC

2021-03-17 Thread Wolfram Sang
> Probably depends on the device implementation. I've got multiple other > I2C/SMBUS devices and the LM81 seems to be the one that objects. For the recored, there was just a similar case with a DA9063, but that one luckily had a bit to switch from SMBus to I2C mode, i.e. no timeout handling:

Re: [PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot"

2021-03-17 Thread Kai-Heng Feng
On Thu, Mar 18, 2021 at 1:25 AM Josef Bacik wrote: [snipped] > "shutdown now" works fine with and without your patch. Thanks, Rafael, Please revert the patch while we are working on it. Josef, Can you please test the following patch: diff --git a/kernel/reboot.c b/kernel/reboot.c index eb1b158

[v5,1/2] drm/mediatek: mtk_dpi: Add check for max clock rate in mode_valid

2021-03-17 Thread Rex-BC Chen
Add per-platform max clock rate check in mtk_dpi_bridge_mode_valid. Signed-off-by: Pi-Hsun Shih Signed-off-by: Rex-BC Chen Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c

[v5,2/2] drm/mediatek: mtk_dpi: Add dpi config for mt8192

2021-03-17 Thread Rex-BC Chen
add dpi config setting and compatible for MT8192 Signed-off-by: Rex-BC Chen Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dpi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 0b427ad0cd9b..8

[v5,0/2] Add check for max clock rate in mode_valid

2021-03-17 Thread Rex-BC Chen
Changes in v5: fix build error Changes in v4: add Author and add patch description Rex-BC Chen (2): drm/mediatek: mtk_dpi: Add check for max clock rate in mode_valid drm/mediatek: mtk_dpi: Add dpi config for mt8192 drivers/gpu/drm/mediatek/mtk_dpi.c | 27 +++ 1 f

Re: Errant readings on LM81 with T2080 SoC

2021-03-17 Thread Wolfram Sang
> The polling code is from pre-git times. Like 2005 and earlier. > I'd say it is about time to get rid of it. Any out-of-tree users > had more than 15 years to upstream their code, after all. Parts of the polling mode might be interesting for the atomic_xfer mode maybe? Which is not implemented y

Re: [PATCH] mm/gup: check page posion status for coredump.

2021-03-17 Thread Aili Yao
On Thu, 18 Mar 2021 04:46:00 + Matthew Wilcox wrote: > On Wed, Mar 17, 2021 at 10:12:02AM +0100, David Hildenbrand wrote: > > > + if (IS_ENABLED(CONFIG_MEMORY_FAILURE) && ret == 1) { > > > + if (unlikely(PageHuge(page) && > > > PageHWPoison(compound_head(page > > > +

mmotm 2021-03-17-22-24 uploaded

2021-03-17 Thread akpm
The mm-of-the-moment snapshot 2021-03-17-22-24 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH 0/5] Handle seccomp notification preemption

2021-03-17 Thread Sargun Dhillon
This patchset addresses a race condition we've dealt with recently with seccomp. Specifically programs interrupting syscalls while they're in progress. This was exacerbated by Golang's recent adoption of "async preemption", in which they try to interrupt any syscall that's been running for more t

[PATCH 1/5] seccomp: Refactor notification handler to prepare for new semantics

2021-03-17 Thread Sargun Dhillon
This refactors the user notification code to have a do / while loop around the completion condition. This has a small change in semantic, in that previously we ignored addfd calls upon wakeup if the notification had been responded to, but instead with the new change we check for an outstanding addf

[PATCH 2/5] seccomp: Add wait_killable semantic to seccomp user notifier

2021-03-17 Thread Sargun Dhillon
The user notifier feature allows for filtering of seccomp notifications in userspace. While the user notifier is handling the syscall, the notifying process can be preempted, thus ending the notification. This has become a growing problem, as Golang has adopted signal based async preemption[1]. In

[PATCH 3/5] selftests/seccomp: Add test for wait killable notifier

2021-03-17 Thread Sargun Dhillon
This adds a test for the positive case of the wait killable notifier, in testing that when the feature is activated the process acts as expected -- in not terminating on a non-fatal signal, and instead queueing it up. There is already a test case for normal handlers and preemption. Signed-off-by:

[PATCH 4/5] seccomp: Support atomic "addfd + send reply"

2021-03-17 Thread Sargun Dhillon
From: Rodrigo Campos Alban Crequy reported a race condition userspace faces when we want to add some fds and make the syscall return them[1] using seccomp notify. The problem is that currently two different ioctl() calls are needed by the process handling the syscalls (agent) for another userspa

[PATCH 5/5] selftests/seccomp: Add test for atomic addfd+send

2021-03-17 Thread Sargun Dhillon
This just adds a test to verify that when using the new introduced flag to ADDFD, a valid fd is added and returned as the syscall result. Signed-off-by: Rodrigo Campos Signed-off-by: Sargun Dhillon --- tools/testing/selftests/seccomp/seccomp_bpf.c | 38 +++ 1 file changed, 38 in

[tip:locking/urgent] BUILD SUCCESS bee645788e07eea63055d261d2884ea45c2ba857

2021-03-17 Thread kernel test robot
allnoconfig x86_64 randconfig-a006-20210317 x86_64 randconfig-a001-20210317 x86_64 randconfig-a005-20210317 x86_64 randconfig-a004-20210317 x86_64 randconfig-a003-20210317 x86_64 randconfig-a002

[PATCH 0/5] Handle seccomp notification preemption

2021-03-17 Thread Sargun Dhillon
This patchset addresses a race condition we've dealt with recently with seccomp. Specifically programs interrupting syscalls while they're in progress. This was exacerbated by Golang's recent adoption of "async preemption", in which they try to interrupt any syscall that's been running for more t

[PATCH 2/2] drivers/clocksource/mediatek: Ack and disable interrupts on shutdown

2021-03-17 Thread Evan Benn
set_state_shutdown is called during system suspend after interrupts have been disabled. If the timer has fired in the meantime, there will be a pending IRQ. So we ack that now and disable the timer. Without this ARM trusted firmware will abort the suspend due to the pending interrupt. Now always d

[PATCH 1/2] drivers/clocksource/mediatek: Split mediatek drivers into 2 files

2021-03-17 Thread Evan Benn
mtk_gpt and mtk_syst drivers for mt6577 and mt6765 devices were not sharing any code. So split them into separate files. Signed-off-by: Evan Benn --- arch/arm/mach-mediatek/Kconfig| 3 +- arch/arm64/Kconfig.platforms | 3 +- drivers/clocksource/Kconfig

Re: linux-next: manual merge of the rust tree with the kbuild tree

2021-03-17 Thread Miguel Ojeda
On Thu, Mar 18, 2021 at 5:37 AM Stephen Rothwell wrote: > > I fixed it up (see below - I think I got this right ...) and can carry > the fix as necessary. This is now fixed as far as linux-next is > concerned, but any non trivial conflicts should be mentioned to your > upstream maintainer when you

[PATCH 09/10] m68k: use libata instead of the legacy ide driver

2021-03-17 Thread Christoph Hellwig
Switch the m68 defconfigs from the deprecated ide subsystem to use libata instead. The gayle and buddha and falcon drivers are enabled for libata, while support for the q40 and macide drivers is lost. Signed-off-by: Christoph Hellwig --- arch/m68k/configs/amiga_defconfig | 10 +- arch/m

[PATCH 08/10] MIPS: disable CONFIG_IDE in malta*_defconfig

2021-03-17 Thread Christoph Hellwig
Various malta defconfigs enable CONFIG_IDE for the tc86c001 ide driver, hich is a Toshiba plug in card that does not make much sense to use on bigsur platforms. For all other ATA cards libata support is already enabled. Signed-off-by: Christoph Hellwig --- arch/mips/configs/malta_kvm_defconfig

[PATCH 07/10] MIPS: disable CONFIG_IDE in bigsur_defconfig

2021-03-17 Thread Christoph Hellwig
bigsur_defconfig enables CONFIG_IDE for the tc86c001 ide driver, which is a Toshiba plug in card that does not make much sense to use on bigsur platforms. For all other ATA cards libata support is already enabled. Signed-off-by: Christoph Hellwig --- arch/mips/configs/bigsur_defconfig | 4

[PATCH 06/10] MIPS: disable CONFIG_IDE in rbtx49xx_defconfig

2021-03-17 Thread Christoph Hellwig
rbtx49xx_defconfig enables CONFIG_IDE for the tx4938 and tx4939 ide drivers, but those aren't actually used by the last known remaining user: https://lore.kernel.org/lkml/20210107.101729.1936921832901251107.an...@mba.ocn.ne.jp/ Signed-off-by: Christoph Hellwig --- arch/mips/configs/rbtx49xx_def

[PATCH 05/10] MIPS: switch workpad_defconfig from legacy IDE to libata

2021-03-17 Thread Christoph Hellwig
Use libata instead of the deprecated legacy ide driver in workpad_defconfig. Signed-off-by: Christoph Hellwig --- arch/mips/configs/workpad_defconfig | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/mips/configs/workpad_defconfig b/arch/mips/configs/workpad_defc

[PATCH 04/10] MIPS: disable CONFIG_IDE in sb1250_swarm_defconfig

2021-03-17 Thread Christoph Hellwig
sb1250_swarm_defconfig enables CONFIG_IDE but no actual host controller driver, so just drop CONFIG_IDE, CONFIG_BLK_DEV_IDECD and CONFIG_BLK_DEV_IDETAPE as they are useless. Signed-off-by: Christoph Hellwig --- arch/mips/configs/sb1250_swarm_defconfig | 3 --- 1 file changed, 3 deletions(-) dif

[PATCH 03/10] ARM: disable CONFIG_IDE in pxa_defconfig

2021-03-17 Thread Christoph Hellwig
pxa_defconfig already enables libata including the pata_pcmcia driver, so drop the legacy ide driver and idecs host driver. Signed-off-by: Christoph Hellwig --- arch/arm/configs/pxa_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/configs/pxa_defconfig b/arch/arm/configs/p

[PATCH 02/10] ARM: disable CONFIG_IDE in footbridge_defconfig

2021-03-17 Thread Christoph Hellwig
footbridge_defconfig enables CONFIG_IDE but no actual host controller driver, so just drop it. Signed-off-by: Christoph Hellwig --- arch/arm/configs/footbridge_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/footbridge_defconfig b/arch/arm/configs/footbridge_defcon

[PATCH 01/10] alpha: use libata instead of the legacy ide driver

2021-03-17 Thread Christoph Hellwig
Switch the alpha defconfig from the legacy ide driver to libata. Signed-off-by: Christoph Hellwig --- arch/alpha/configs/defconfig | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/alpha/configs/defconfig b/arch/alpha/configs/defconfig index 724c4075df408e..d

remove the legacy ide driver

2021-03-17 Thread Christoph Hellwig
Hi all, we've been trying to get rid of the legacy ide driver for a while now, and finally scheduled a removal for 2021, which is three month old now. In general distros and most defconfigs have switched to libata long ago, but there are a few exceptions. This series first switches over all rema

Re: [PATCH 2/3] mm, dax, pmem: Introduce dev_pagemap_failure()

2021-03-17 Thread Dave Chinner
On Wed, Mar 17, 2021 at 09:08:23PM -0700, Dan Williams wrote: > Jason wondered why the get_user_pages_fast() path takes references on a > @pgmap object. The rationale was to protect against accessing a 'struct > page' that might be in the process of being removed by the driver, but > he rightly poi

Re: [PATCH v4 1/3] mm/slub: Introduce two counters for partial objects

2021-03-17 Thread Xunlei Pang
On 3/18/21 2:45 AM, Vlastimil Babka wrote: > On 3/17/21 8:54 AM, Xunlei Pang wrote: >> The node list_lock in count_partial() spends long time iterating >> in case of large amount of partial page lists, which can cause >> thunder herd effect to the list_lock contention. >> >> We have HSF RT(High-spe

Re: [PATCH v29 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-17 Thread Can Guo
On 2021-03-18 10:02, Daejun Park wrote: On 2021-03-17 09:42, Daejun Park wrote: On 2021-03-15 15:23, Can Guo wrote: On 2021-03-15 15:07, Daejun Park wrote: This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-17 Thread Sergey Senozhatsky
On (21/03/17 08:58), Ricardo Ribalda Delgado wrote: [..] > > > > GET_CUR? > yep > > > > > > https://www.kernel.org/doc/html/v4.13/media/uapi/v4l/vidioc-g-selection.html?highlight=vidioc_s_selection > > > On success the struct v4l2_rect r field contains the adjusted > > > rectangle. > > > > What is

Re: [PATCH] mm/gup: check page posion status for coredump.

2021-03-17 Thread Matthew Wilcox
On Wed, Mar 17, 2021 at 10:12:02AM +0100, David Hildenbrand wrote: > > + if (IS_ENABLED(CONFIG_MEMORY_FAILURE) && ret == 1) { > > + if (unlikely(PageHuge(page) && > > PageHWPoison(compound_head(page > > + ret = 0; > > + else if (unlikely(PageHWPoison(pag

RE: A problem of Intel IOMMU hardware ?

2021-03-17 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi guys, I provide more information, please see below > -Original Message- > From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Thursday, March 18, 2021 10:59 AM > To: Alex Williamson > Cc: baolu...@linux.intel.com; Longpeng (Mike, Cloud Infrastructure Service > Product > Dept.) ;

  1   2   3   4   5   6   7   8   9   10   >