[PATCH 2/3] gcov: simplify buffer allocation

2021-03-15 Thread Johannes Berg
From: Johannes Berg Use just a single vmalloc() with struct_size() instead of a separate kmalloc() for the iter struct. Signed-off-by: Johannes Berg --- kernel/gcov/fs.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/kernel/gcov/fs.c

[PATCH 3/3] gcov: use kvmalloc()

2021-03-15 Thread Johannes Berg
From: Johannes Berg Using vmalloc() in gcov is really quite wasteful, many of the objects allocated are really small (e.g. I've seen 24 bytes.) Use kvmalloc() to automatically pick the better of kmalloc() or vmalloc() depending on the size. Signed-off-by: Johannes Berg --- kernel/gcov/clang.c

[PATCH 1/3] gcov: combine common code

2021-03-15 Thread Johannes Berg
From: Johannes Berg There's a lot of duplicated code between gcc and clang implementations, move it over to fs.c to simplify the code, there's no reason to believe that for small data like this one would not just implement the simple convert_to_gcda() function. Signed-off-by: Johannes Berg ---

Re: [PATCH v2 10/27] perf parse-events: Create two hybrid cache events

2021-03-15 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:25PM +0800, Jin Yao wrote: SNIP > + config_terms, pmu); > + if (ret) > + return ret; > + } > + > + return 0; > +} > + > int parse_events_add_cache(struct list_head *list, int *idx,

Re: [PATCH tip/core/rcu 1/3] rcu: Provide polling interfaces for Tree RCU grace periods

2021-03-15 Thread Paul E. McKenney
On Fri, Mar 12, 2021 at 01:26:47PM +0100, Frederic Weisbecker wrote: > On Wed, Mar 03, 2021 at 04:26:30PM -0800, paul...@kernel.org wrote: > > /** > > + * start_poll_state_synchronize_rcu - Snapshot and start RCU grace period > > + * > > + * Returns a cookie that is used by a later call to

Re: [PATCH v2 1/2] usb: gadget: uvc: Updating bcdUVC field to 0x0110

2021-03-15 Thread Peter Chen
On 21-03-15 07:59:25, Pawel Laszczak wrote: > From: Pawel Laszczak > > Command Verifier during UVC Descriptor Tests (Class Video Control > Interface Descriptor Test Video) complains about: > > Video Control Interface Header bcdUVC is 0x0100. USB Video Class > specification 1.0 has been replaced

Re: [RFC v2] net: sched: implement TCQ_F_CAN_BYPASS for lockless qdisc

2021-03-15 Thread Yunsheng Lin
On 2021/3/16 2:53, Jakub Kicinski wrote: > On Mon, 15 Mar 2021 11:10:18 +0800 Yunsheng Lin wrote: >> @@ -606,6 +623,11 @@ static const u8 prio2band[TC_PRIO_MAX + 1] = { >> */ >> struct pfifo_fast_priv { >> struct skb_array q[PFIFO_FAST_BANDS]; >> + >> +/* protect against data race

Re: [PATCH v4 1/2] mm: huge_memory: a new debugfs interface for splitting THP tests.

2021-03-15 Thread Zi Yan
On 15 Mar 2021, at 20:36, kernel test robot wrote: > Hi Zi, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on kselftest/next] > [also build test WARNING on linux/master linus/master v5.12-rc3] > [cannot apply to hnaz-linux-mm

Re: [PATCH v5 1/2] erofs: avoid memory allocation failure during rolling decompression

2021-03-15 Thread Chao Yu
On 2021/3/5 17:58, Huang Jianan via Linux-erofs wrote: Currently, err would be treated as io error. Therefore, it'd be better to ensure memory allocation during rolling decompression to avoid such io error. In the long term, we might consider adding another !Uptodate case for such case.

Re: [PATCH v2 11/27] perf parse-events: Support hardware events inside PMU

2021-03-15 Thread Jin, Yao
Hi Jiri, On 3/16/2021 1:37 AM, Jiri Olsa wrote: On Mon, Mar 15, 2021 at 10:28:12AM +0800, Jin, Yao wrote: Hi Jiri, On 3/13/2021 3:15 AM, Jiri Olsa wrote: On Thu, Mar 11, 2021 at 03:07:26PM +0800, Jin Yao wrote: On hybrid platform, some hardware events are only available on a specific pmu.

[PATCH 04/13] lib: introduce BITS_{FIRST,LAST} macro

2021-03-15 Thread Yury Norov
BITMAP_{LAST,FIRST}_WORD_MASK() in linux/bitmap.h duplicates the functionality of GENMASK(). The scope of BITMAP* macros is wider than just bitmaps. This patch defines 4 new macros: BITS_FIRST(), BITS_LAST(), BITS_FIRST_MASK() and BITS_LAST_MASK() in linux/bits.h on top of GENMASK() and replaces

[PATCH 01/13] tools: disable -Wno-type-limits

2021-03-15 Thread Yury Norov
GENMASK(h, l) may be passed with unsigned types. In such case, type-limits warning is generated for example in case of GENMASK(h, 0). Signed-off-by: Yury Norov --- tools/scripts/Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/scripts/Makefile.include

[PATCH 08/13] lib: inline _find_next_bit() wrappers

2021-03-15 Thread Yury Norov
lib/find_bit.c declares five single-line wrappers for _find_next_bit(). We may turn those wrappers to inline functions. It eliminates unneeded function calls and opens room for compile-time optimizations. Signed-off-by: Yury Norov --- include/asm-generic/bitops/find.h | 28

[PATCH 05/13] tools: sync BITS_MASK macros with the kernel

2021-03-15 Thread Yury Norov
Remove BITMAP_{FIRST,LAST}_WORD_MASK and introduce BITS_{FIRST,LAST}{,_MASK} as per kernel implementation. Signed-off-by: Yury Norov --- tools/include/linux/bitmap.h | 20 ++-- tools/include/linux/bits.h| 6 ++ tools/lib/bitmap.c| 6 +++---

[PATCH 10/13] lib: add fast path for find_next_*_bit()

2021-03-15 Thread Yury Norov
Similarly to bitmap functions, find_next_*_bit() users will benefit if we'll handle a case of bitmaps that fit into a single word inline. In the very best case, the compiler may replace a function call with a few instructions. This is the quite typical find_next_bit() user: unsigned int

[PATCH 12/13] tools: sync lib/find_bit implementation

2021-03-15 Thread Yury Norov
Add fast paths to find_*_bit() functions as per kernel implementation. Signed-off-by: Yury Norov --- tools/include/asm-generic/bitops/find.h | 58 +++-- tools/lib/find_bit.c| 4 +- 2 files changed, 57 insertions(+), 5 deletions(-) diff --git

[PATCH 02/13] tools: bitmap: sync function declarations with the kernel

2021-03-15 Thread Yury Norov
Some functions in tools/include/linux/bitmap.h declare nbits as int. In the kernel nbits is declared as unsigned int. Signed-off-by: Yury Norov --- tools/include/linux/bitmap.h | 8 tools/lib/bitmap.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 2/2] Bug Fix for last patch

2021-03-15 Thread Jiuyang Liu
Sorry for the noise, Andrew gave me feedbacks, and pointed two bugs in last patch. 1. asid should be thread safe, which is not the intent. 2. asid extracting logic was wrong. This patch fixes these bugs. Signed-off-by: Jiuyang Liu --- arch/riscv/include/asm/tlbflush.h | 8 ++-- 1 file

[PATCH 07/13] tools: sync small_const_nbits() macro with the kernel

2021-03-15 Thread Yury Norov
Move the macro from tools/include/asm-generic/bitsperlong.h to tools/include/linux/bitmap.h Signed-off-by: Yury Norov --- tools/include/asm-generic/bitsperlong.h | 3 +++ tools/include/linux/bitmap.h| 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 11/13] lib: add fast path for find_first_*_bit() and find_last_bit()

2021-03-15 Thread Yury Norov
Similarly to bitmap functions, users would benefit if we'll handle a case of small-size bitmaps that fit into a single word. While here, move the find_last_bit() declaration to bitops/find.h where other find_*_bit() functions sit. Signed-off-by: Yury Norov --- include/asm-generic/bitops/find.h

[PATCH 13/13] MAINTAINERS: Add entry for the bitmap API

2021-03-15 Thread Yury Norov
Add myself as maintainer for bitmap API and Andy and Rasmus as reviewers. I'm an author of current implementation of lib/find_bit and an active contributor to lib/bitmap. It was spotted that there's no maintainer for bitmap API. I'm willing to maintain it. Signed-off-by: Yury Norov Acked-by:

[PATCH 03/13] arch: rearrange headers inclusion order in asm/bitops for m68k and sh

2021-03-15 Thread Yury Norov
m68k and sh include bitmap/{find,le}.h prior to ffs/fls headers. New fast-path implementation in find.h requires ffs/fls. Reordering the headers inclusion sequence helps to prevent compile-time implicit function declaration error. Signed-off-by: Yury Norov Acked-by: Geert Uytterhoeven ---

[PATCH 09/13] tools: sync find_next_bit implementation

2021-03-15 Thread Yury Norov
Sync the implementation with recent kernel changes. Signed-off-by: Yury Norov --- tools/include/asm-generic/bitops/find.h | 27 ++--- tools/lib/find_bit.c| 52 ++--- 2 files changed, 42 insertions(+), 37 deletions(-) diff --git

Re: [PATCH v4] docs: usbip: Fix major fields and descriptions in protocol

2021-03-15 Thread Randy Dunlap
On 3/15/21 2:15 PM, Hongren Zheng (Zenithal) wrote: > > Co-developed-by: Alexandre Demers > Co-developed-by: Randy Dunlap No, I'm not in the Co-developed-by loop here. And then you can add: Reviewed-by: Randy Dunlap > Signed-off-by: Hongren Zheng > --- >

[PATCH v4 00/13] lib/find_bit: fast path for small bitmaps

2021-03-15 Thread Yury Norov
Bitmap operations are much simpler and faster in case of small bitmaps which fit into a single word. In linux/bitmap.c we have a machinery that allows compiler to replace actual function call with a few instructions if bitmaps passed into the function are small and their size is known at compile

[PATCH 06/13] lib: extend the scope of small_const_nbits() macro

2021-03-15 Thread Yury Norov
find_bit would also benefit from small_const_nbits() optimizations. Signed-off-by: Yury Norov --- include/asm-generic/bitsperlong.h | 9 + include/linux/bitmap.h| 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/asm-generic/bitsperlong.h

Re: [PATCH v7] i2c: virtio: add a virtio i2c frontend driver

2021-03-15 Thread Jie Deng
On 2021/3/15 15:52, Arnd Bergmann wrote: On Mon, Mar 15, 2021 at 6:54 AM Jie Deng wrote: On 2021/3/15 11:13, Jason Wang wrote: On 2021/3/15 9:14 上午, Jie Deng wrote: On 2021/3/12 16:58, Arnd Bergmann wrote: Then do you think it is necessary to mark the virtio bufs with

Re: [PATCH 2/9] watchdog: of_xilinx_wdt: Used BIT macro

2021-03-15 Thread Guenter Roeck
On 3/15/21 3:46 AM, Srinivas Neeli wrote: > From: Srinivas Goud > > Used BIT macro instead of mask value. > > Signed-off-by: Srinivas Goud > Signed-off-by: Michal Simek > Signed-off-by: Srinivas Neeli > --- > drivers/watchdog/of_xilinx_wdt.c | 8 > 1 file changed, 4 insertions(+),

Re: [PATCH 3/9] watchdog: of_xilinx_wdt: Used dev_dbg()

2021-03-15 Thread Guenter Roeck
On 3/15/21 3:46 AM, Srinivas Neeli wrote: > From: Srinivas Goud > > This patch removes pr_info in stop function and adds dev_dbg() > in start/stop function to display device specific debug info. > > Signed-off-by: Srinivas Goud > Signed-off-by: Michal Simek > Signed-off-by: Srinivas Neeli >

[PATCH v5 1/3] dt-bindings: Add vendor prefix for reMarkable

2021-03-15 Thread Alistair Francis
reMarkable AS produces eInk tablets Signed-off-by: Alistair Francis --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH v5 2/3] dt-bindings: arm: fsl: Add the reMarkable 2 e-Ink tablet

2021-03-15 Thread Alistair Francis
Signed-off-by: Alistair Francis --- 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/fsl.yaml index 297c87f45db8..d139440c86b6 100644 ---

[PATCH v5 3/3] ARM: imx7d-remarkable2.dts: Initial device tree for reMarkable2

2021-03-15 Thread Alistair Francis
The reMarkable2 (https://remarkable.com) is an e-ink tablet based on the imx7d SoC. This commit is based on the DTS provide by reMarkable but ported to the latest kernel (instead of 4.14). I have removed references to non-upstream devices and have changed the UART so that the console can be

[PATCH 2/2] hwmon: (pmbus): Add driver for BluTek BPA-RS600

2021-03-15 Thread Chris Packham
The BPA-RS600 is a compact 600W AC to DC removable power supply module. Signed-off-by: Chris Packham --- Documentation/hwmon/bpa-rs600.rst | 74 drivers/hwmon/pmbus/Kconfig | 10 ++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/bpa-rs600.c | 179

[PATCH 1/2] dt-bindings: Add vendor prefix and trivial device for BluTek BPA-RS600

2021-03-15 Thread Chris Packham
Add vendor prefix "blutek" for BluTek Power. Add trivial device entry for BPA-RS600. Signed-off-by: Chris Packham --- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git

[PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-15 Thread Jie Deng
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. The device specification can be found on https://lists.oasis-open.org/archives/virtio-comment/202101/msg8.html. By

Re: [PATCH 12/13] rcu/nocb: Prepare for finegrained deferred wakeup

2021-03-15 Thread Paul E. McKenney
On Tue, Feb 23, 2021 at 01:10:10AM +0100, Frederic Weisbecker wrote: > Provide a way to tune the deferred wakeup level we want to perform from > a safe wakeup point. Currently those sites are: > > * nocb_timer > * user/idle/guest entry > * CPU down > * softirq/rcuc > > All of these sites perform

Re: [PATCH v11 1/2] scsi: ufs: Enable power management for wlun

2021-03-15 Thread Asutosh Das (asd)
On 3/15/2021 7:29 AM, Adrian Hunter wrote: On 12/03/21 12:19 am, Asutosh Das wrote: During runtime-suspend of ufs host, the scsi devices are already suspended and so are the queues associated with them. But the ufs host sends SSU to wlun during its runtime-suspend. During the process

Re: [PATCH 2/2] Bug Fix for last patch

2021-03-15 Thread Yixun Lan
Hi Jiuyang On Tue, Mar 16, 2021 at 1:56 AM Jiuyang Liu wrote: > > Sorry for the noise, Andrew gave me feedbacks, and pointed two bugs in > last patch. > 1. asid should be thread safe, which is not the intent. > 2. asid extracting logic was wrong. > > This patch fixes these bugs. > >

[PATCH] Insert SFENCE.VMA in function set_pte_at for RISCV

2021-03-15 Thread Jiuyang Liu
This patch inserts SFENCE.VMA after modifying PTE based on RISC-V specification. arch/riscv/include/asm/pgtable.h: 1. implement pte_user, pte_global and pte_leaf to check correspond attribute of a pte_t. 2. insert SFENCE.VMA in set_pte_at based on RISC-V Volume 2, Privileged Spec v. 20190608

[mm, net-next v2] mm: net: memcg accounting for TCP rx zerocopy

2021-03-15 Thread Arjun Roy
From: Arjun Roy TCP zerocopy receive is used by high performance network applications to further scale. For RX zerocopy, the memory containing the network data filled by the network driver is directly mapped into the address space of high performance applications. To keep the TLB cost low, these

Re: [PATCH 3/6] clk: actions: Fix bisp_factor_table based clocks on Owl S500 SoC

2021-03-15 Thread Manivannan Sadhasivam
On Mon, Mar 08, 2021 at 07:18:28PM +0200, Cristian Ciocaltea wrote: > The following clocks of the Actions Semi Owl S500 SoC have been defined > to use a shared clock factor table 'bisp_factor_table[]': DE[1-2], VCE, > VDE, BISP, SENSOR[0-1] > > There are several issues involved in this approach:

RE: [PATCH net-next 1/1] net: stmmac: add per-queue TX & RX coalesce ethtool support

2021-03-15 Thread Ong, Boon Leong
>> +if (queue < tx_cnt) { >> +ec->tx_coalesce_usecs = priv->tx_coal_timer[queue]; >> +ec->tx_max_coalesced_frames = priv->tx_coal_frames[queue]; >> +} else { >> +ec->tx_coalesce_usecs = -1; >> +ec->tx_max_coalesced_frames = -1; >> +} >> +

Re: [PATCH v1 10/14] mm: multigenerational lru: core

2021-03-15 Thread Yu Zhao
On Tue, Mar 16, 2021 at 10:08:51AM +0800, Huang, Ying wrote: > Yu Zhao writes: > [snip] > > > +/* Main function used by foreground, background and user-triggered aging. > > */ > > +static bool walk_mm_list(struct lruvec *lruvec, unsigned long next_seq, > > +struct

[PATCH] docs: virt: kvm: Trivial typo fix in the file timekeeping.rst

2021-03-15 Thread Bhaskar Chowdhury
s/extremal/external/ Signed-off-by: Bhaskar Chowdhury --- But...Paolo,is it also "extreme"? I am in a catch-22? Documentation/virt/kvm/timekeeping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/virt/kvm/timekeeping.rst

Re: [PATCH] Insert SFENCE.VMA in function set_pte_at for RISCV

2021-03-15 Thread Anup Patel
+Alex On Tue, Mar 16, 2021 at 9:20 AM Jiuyang Liu wrote: > > This patch inserts SFENCE.VMA after modifying PTE based on RISC-V > specification. > > arch/riscv/include/asm/pgtable.h: > 1. implement pte_user, pte_global and pte_leaf to check correspond > attribute of a pte_t. Adding pte_user(),

Re: [PATCH] pinctrl: add lock in mtk_rmw function.

2021-03-15 Thread Sean Wang
Hi Zhiyong, On Fri, Mar 12, 2021 at 2:35 PM Zhiyong Tao wrote: > > When multiple threads operate on the same register resource > which include multiple pin, It will make the register resource > wrong to control. So we add lock to avoid the case. > > Signed-off-by: Zhiyong Tao > --- >

[PATCH 2/2] dt-bindings: spi: add compatible entry for imx8mp in FlexSPI controller

2021-03-15 Thread Heiko Schocher
add compatible entry "nxp,imx8mp-fspi" in NXP FlexSPI controller Signed-off-by: Heiko Schocher --- Changes in v3: - no changes, rebased against git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next 144c79ef33536 Merge tag 'perf-tools-fixes-for-v5.12-2020-03-07' of

[PATCH v10] sched/fair: select idle cpu from idle cpumask for task wakeup

2021-03-15 Thread Aubrey Li
From: Aubrey Li Add idle cpumask to track idle cpus in sched domain. Every time a CPU enters idle, the CPU is set in idle cpumask to be a wakeup target. And if the CPU is not in idle, the CPU is cleared in idle cpumask during scheduler tick to ratelimit idle cpumask update. When a task wakes up

Re: [PATCH] usb: host: Mundane spello fix in the file sl811_cs.c

2021-03-15 Thread Randy Dunlap
On 3/15/21 9:52 PM, Bhaskar Chowdhury wrote: > > s/seting/setting/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/usb/host/sl811_cs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/sl811_cs.c

Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files

2021-03-15 Thread Frank Rowand
On 3/15/21 5:12 PM, Laurent Pinchart wrote: > Hi Yamada-san, > > On Tue, Mar 16, 2021 at 02:43:45AM +0900, Masahiro Yamada wrote: >> On Mon, Mar 15, 2021 at 3:40 PM Viresh Kumar wrote: >>> On 14-03-21, 20:16, Frank Rowand wrote: On 3/12/21 11:11 PM, Frank Rowand wrote: > On 3/12/21 1:13

Re: [PATCH v1 3/5] dt-bindings: arm: Add cpu-idle-states to Tegra194 CPU nodes

2021-03-15 Thread Sudeep Holla
+Lorenzo Hi Sowjanya, Sorry for the delayed response. I am still in vacation ο˜‰ On Thu, Mar 11, 2021 at 01:11:37PM -0800, Sowjanya Komatineni wrote: > > On 3/10/21 6:52 PM, Sudeep Holla wrote: > > On Mon, Mar 08, 2021 at 10:32:17AM -0800, Sowjanya Komatineni wrote: > > > On 3/7/21 8:37 PM,

Re: [PATCH 4/6] clk: actions: Fix AHPPREDIV-H-AHB clock chain on Owl S500 SoC

2021-03-15 Thread Manivannan Sadhasivam
On Mon, Mar 08, 2021 at 07:18:29PM +0200, Cristian Ciocaltea wrote: > There are a few issues with the setup of the Actions Semi Owl S500 SoC's > clock chain involving AHPPREDIV, H and AHB clocks: > > * AHBPREDIV clock is defined as a muxer only, although it also acts as > a divider. > * H clock

Re: [PATCH 5.10 113/290] net: dsa: implement a central TX reallocation procedure

2021-03-15 Thread gre...@linuxfoundation.org
On Mon, Mar 15, 2021 at 07:56:02PM +, Vladimir Oltean wrote: > +Andrew, Vivien, > > On Mon, Mar 15, 2021 at 02:53:26PM +0100, gre...@linuxfoundation.org wrote: > > From: Greg Kroah-Hartman > > > > From: Vladimir Oltean > > > > [ Upstream commit a3b0b6479700a5b0af2c631cb2ec0fb7a0d978f2 ] > >

RE: [PATCH v9 2/7] arm64: hyperv: Add Hyper-V hypercall and register access utilities

2021-03-15 Thread Sunil Muthuswamy
> +static inline u64 hv_get_register(unsigned int reg) > +{ > + return hv_get_vpreg(reg); > +} > + > +/* SMCCC hypercall parameters */ > +#define HV_SMCCC_FUNC_NUMBER 1 > +#define HV_FUNC_ID ARM_SMCCC_CALL_VAL( \ > + ARM_SMCCC_STD_CALL,

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

2021-03-15 Thread Stephen Rothwell
Hi all, After merging the opp tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: In file included from include/linux/devfreq.h:15, from drivers/base/power/main.c:36: include/linux/pm_opp.h:341:1: warning: 'devm_pm_opp_register_set_opp_helper'

Re: [PATCH 2/2] usb: cdns3: Optimize DMA request buffer allocation

2021-03-15 Thread Peter Chen
On 21-03-15 15:51:04, Sanket Parmar wrote: > > > + > > > priv_req->flags |= REQUEST_UNALIGNED; > > > trace_cdns3_prepare_aligned_request(priv_req); > > > > > > @@ -3088,11 +3113,11 @@ static void cdns3_gadget_exit(struct cdns > > *cdns) > > > struct cdns3_aligned_buf *buf; > > > > >

Re: [PATCH v5 1/2] erofs: avoid memory allocation failure during rolling decompression

2021-03-15 Thread Gao Xiang
On Tue, Mar 16, 2021 at 09:11:02AM +0800, Chao Yu wrote: > On 2021/3/5 17:58, Huang Jianan via Linux-erofs wrote: > > Currently, err would be treated as io error. Therefore, it'd be > > better to ensure memory allocation during rolling decompression > > to avoid such io error. > > > > In the long

Re: [PATCH v2] hugetlb_cgroup: fix imbalanced css_get and css_put pair for shared mappings

2021-03-15 Thread Miaohe Lin
On 2021/3/16 2:42, Mike Kravetz wrote: > On 3/12/21 7:11 PM, Miaohe Lin wrote: >> On 2021/3/13 3:09, Mike Kravetz wrote: >>> On 3/1/21 4:05 AM, Miaohe Lin wrote: The current implementation of hugetlb_cgroup for shared mappings could have different behavior. Consider the following two

Re: [PATCH 00/30] [Set 2] Rid W=1 warnings in SCSI

2021-03-15 Thread Martin K. Petersen
Lee, > 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. Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH net-next 2/3] net: ipa: fix another QMI message definition

2021-03-15 Thread Manivannan Sadhasivam
On Mon, Mar 15, 2021 at 10:21:11AM -0500, Alex Elder wrote: > The ipa_init_modem_driver_req_ei[] encoding array for the > INIT_MODEM_DRIVER request message has some errors in it. > > First, the tlv_type associated with the hw_stats_quota_size field is > wrong; it duplicates the valiue used for

[PATCH] include/linux: Fix typo issue

2021-03-15 Thread zuoqilin1
From: zuoqilin Change 'bufer' to 'buffer'. Signed-off-by: zuoqilin --- include/linux/mpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mpi.h b/include/linux/mpi.h index 3e5358f..6e6b15a 100644 --- a/include/linux/mpi.h +++ b/include/linux/mpi.h @@ -267,7

Re: [PATCH 2/2] hwmon: (pmbus): Add driver for BluTek BPA-RS600

2021-03-15 Thread Chris Packham
On 16/03/21 4:35 pm, Guenter Roeck wrote: > On 3/15/21 8:30 PM, Chris Packham wrote: >> On 16/03/21 3:35 pm, Chris Packham wrote: >>> The BPA-RS600 is a compact 600W AC to DC removable power supply module. >>> >>> Signed-off-by: Chris Packham >>> >>> +static const struct of_device_id

Re: [PATCH 2/6] clk: actions: Fix SD clocks factor table on Owl S500 SoC

2021-03-15 Thread Manivannan Sadhasivam
On Mon, Mar 08, 2021 at 07:18:27PM +0200, Cristian Ciocaltea wrote: > Drop the unsupported entries in the factor table used for the SD[0-2] > clocks definitions on the Actions Semi Owl S500 SoC. > > Fixes: ed6b4795ece4 ("clk: actions: Add clock driver for S500 SoC") > Signed-off-by: Cristian

Re: [PATCH v1 09/14] mm: multigenerational lru: mm_struct list

2021-03-15 Thread Yu Zhao
On Tue, Mar 16, 2021 at 10:07:36AM +0800, Huang, Ying wrote: > Rik van Riel writes: > > > On Sat, 2021-03-13 at 00:57 -0700, Yu Zhao wrote: > > > >> +/* > >> + * After pages are faulted in, they become the youngest generation. > >> They must > >> + * go through aging process twice before they

Re: [PATCH 2/4] KVM: arm64: Use find_vma_intersection()

2021-03-15 Thread Keqian Zhu
Hi Gavin, On 2021/3/16 11:52, Gavin Shan wrote: > Hi Keqian, > > On 3/15/21 8:42 PM, Gavin Shan wrote: >> On 3/15/21 7:04 PM, Keqian Zhu wrote: >>> On 2021/3/15 12:18, Gavin Shan wrote: find_vma_intersection() has been existing to search the intersected vma. This uses the function

Re: [mm, net-next v2] mm: net: memcg accounting for TCP rx zerocopy

2021-03-15 Thread Arjun Roy
On Mon, Mar 15, 2021 at 9:16 PM Arjun Roy wrote: > > From: Arjun Roy > > TCP zerocopy receive is used by high performance network applications > to further scale. For RX zerocopy, the memory containing the network > data filled by the network driver is directly mapped into the address > space of

[PATCH] x86: events: intel: A letter change in a word to make it sound right,in the file bts.c

2021-03-15 Thread Bhaskar Chowdhury
s/kernal/kernel/ Signed-off-by: Bhaskar Chowdhury --- arch/x86/events/intel/bts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/intel/bts.c b/arch/x86/events/intel/bts.c index 731dd8d0dbb1..6320d2cfd9d3 100644 --- a/arch/x86/events/intel/bts.c +++

Re: [PATCH v15 0/4] Adding the Sparx5 Serdes driver

2021-03-15 Thread Vinod Koul
Hello Steen, On 15-03-21, 16:04, Steen Hegelund wrote: > Hi Kishon, Vinod, Andrew, Jacub, and David, > > I just wanted to know if you think that the Generic PHY subsystem might > not be the right place for this Ethernet SerDes PHY driver after all. > > Originally I chose this subsystem for

Re: [PATCH] samples: bpf: Fix a spelling typo in do_hbm_test.sh

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 15 Mar 2021 21:44:54 +0900 you wrote: > This patch fixes a spelling typo in do_hbm_test.sh > > Signed-off-by: Masanari Iida > --- > samples/bpf/do_hbm_test.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 5.10 000/290] 5.10.24-rc1 review

2021-03-15 Thread Naresh Kamboju
On Mon, 15 Mar 2021 at 19:27, wrote: > > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.10.24 release. > There are 290 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH] x86: events: intel: A letter change in a word to make it sound right,in the file bts.c

2021-03-15 Thread Randy Dunlap
On 3/15/21 9:19 PM, Bhaskar Chowdhury wrote: > > s/kernal/kernel/ > > Signed-off-by: Bhaskar Chowdhury > --- > arch/x86/events/intel/bts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/events/intel/bts.c b/arch/x86/events/intel/bts.c > index

Re: [PATCH] bpf: selftests: remove unused 'nospace_err' in tests for batched ops in array maps

2021-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 15 Mar 2021 14:29:51 +0100 you wrote: > This seems to be a reminiscent from the hashmap tests. > > Signed-off-by: Pedro Tammela > --- > tools/testing/selftests/bpf/map_tests/array_map_batch_ops.c | 5 - > 1

[PATCH v2 05/12] docs: path-lookup: remove filename_mountpoint

2021-03-15 Thread Fox Chen
No filename_mountpoint any more see commit: commit 161aff1d93ab ("LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()") Without filename_mountpoint and path_mountpoint(), the numbers should be four & three: "These four correspond roughly to the three path_*() functions"

[PATCH v2 04/12] docs: path-lookup: update do_last() part

2021-03-15 Thread Fox Chen
traling_symlink() was merged into lookup_last, do_last(). do_last() has later been split into open_last_lookups() and do_open(). see related commit: commit c5971b8c6354 ("take post-lookup part of do_last() out of loop") Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst |

[PATCH v2 06/12] docs: path-lookup: Add macro name to symlink limit description

2021-03-15 Thread Fox Chen
Add macro name MAXSYMLINKS to the symlink limit description, so that it is consistent with path name length description above. Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 07/12] docs: path-lookup: i_op->follow_link replaced with i_op->get_link

2021-03-15 Thread Fox Chen
follow_link has been replaced by get_link() which can be called in RCU mode. see commit: commit 6b2553918d8b ("replace ->follow_link() with new method that could stay in RCU mode") Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 12 +--- 1 file changed, 5

[PATCH v2 12/12] docs: path-lookup: update symlink description

2021-03-15 Thread Fox Chen
instead of lookup_real()/vfs_create(), i_op->lookup() and i_op->create() will be called directly. update vfs_open() logic should_follow_link is merged into lookup_last() or open_last_lookup() which returns symlink name instead of an integer. Signed-off-by: Fox Chen ---

[PATCH v2 10/12] docs: path-lookup: update WALK_GET, WALK_PUT desc

2021-03-15 Thread Fox Chen
WALK_GET is changed to WALK_TRAILING with a different meaning. Here it should be WALK_NOFOLLOW. WALK_PUT dosn't exist, we have WALK_MORE. WALK_PUT == !WALK_MORE And there is not should_follow_link(). Related commits: commit 8c4efe22e7c4 ("namei: invert the meaning of WALK_FOLLOW") commit

Re: [PATCH] platform/x86: pmc_atom: use callback for all dmi quirk entries

2021-03-15 Thread Henning Schild
Hoi Hans, on a slighly different but also related topic. Did you ever come across SMSC SCH5347? Seems to be pretty similar to 56xx, only with spec non public ... and probably less often in use Maybe you happen to have code, or know the differences. We already have it working with a modified copy

[PATCH v2 08/12] docs: path-lookup: update i_op->put_link and cookie description

2021-03-15 Thread Fox Chen
No inode->put_link operation anymore. We use delayed_call to deal with link destruction. Cookie has been replaced with struct delayed_call. Related commit: commit fceef393a538 ("switch ->get_link() to delayed_call, kill ->put_link()") Signed-off-by: Fox Chen ---

[PATCH v2 09/12] docs: path-lookup: no get_link()

2021-03-15 Thread Fox Chen
no get_link() anymore. we have step_into() and pick_link(). walk_component() will call step_into(), in turn call pick_link, and return symlink name. Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff

[PATCH v2 00/12] docs: path-lookup: Update pathlookup docs

2021-03-15 Thread Fox Chen
The Path lookup is a very complex subject in VFS. The path-lookup document provides a very detailed guidance to help people understand how path lookup works in the kernel. This document was originally written based on three lwn articles five years ago. As times goes by, some of the content is

[PATCH v2 02/12] docs: path-lookup: update path_to_nameidata() part

2021-03-15 Thread Fox Chen
No path_to_namei() anymore, step_into() will be called. Related commit: commit c99687a03a78 ("fold path_to_nameidata() into its only remaining caller") Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-03-15 Thread Fox Chen
No follow_managed() anymore, handle_mounts(), traverse_mounts(), will do the job. see commit 9deed3ebca24 ("new helper: traverse_mounts()") Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2 03/12] docs: path-lookup: update path_mountpoint() part

2021-03-15 Thread Fox Chen
path_mountpoint() doesn't exist anymore. Have been folded into path_lookup_at when flag is set with LOOKUP_MOUNTPOINT. Check commit: commit 161aff1d93abf0e ("LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()") Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst

[PATCH v2 11/12] docs: path-lookup: update get_link() ->follow_link description

2021-03-15 Thread Fox Chen
get_link() is merged into pick_link(). i_op->follow_link is replaced with i_op->get_link(). get_link() can return ERR_PTR(0) which equals NULL. Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

Re: [PATCH] mm: memcontrol: switch to rstat fix

2021-03-15 Thread Shakeel Butt
On Mon, Mar 15, 2021 at 4:41 PM Johannes Weiner wrote: > > Fix a sleep in atomic section problem: wb_writeback() takes a spinlock > and calls wb_over_bg_thresh() -> mem_cgroup_wb_stats, but the regular > rstat flushing function called from in there does lockbreaking and may > sleep. Switch to the

Re: [PATCH net-next 1/2] net: stmmac: EST interrupts handling and error reporting

2021-03-15 Thread Jakub Kicinski
On Tue, 16 Mar 2021 06:14:08 +0800 mohammad.athari.ism...@intel.com wrote: > From: Voon Weifeng > > Enabled EST related interrupts as below: > 1) Constant Gate Control Error (CGCE) > 2) Head-of-Line Blocking due to Scheduling (HLBS) > 3) Head-of-Line Blocking due to Frame Size (HLBF). > 4) Base

Re: [PATCH v2 04/27] perf pmu: Save pmu name

2021-03-15 Thread Jin, Yao
Hi Jiri, On 3/16/2021 7:03 AM, Jiri Olsa wrote: On Thu, Mar 11, 2021 at 03:07:19PM +0800, Jin Yao wrote: On hybrid platform, one event is available on one pmu (such as, available on cpu_core or on cpu_atom). This patch saves the pmu name to the pmu field of struct perf_pmu_alias. Then next we

Re: [RFC v2 2/2] cgroup: sev: Miscellaneous cgroup documentation.

2021-03-15 Thread Jacob Pan
Hi Tejun, On Mon, 15 Mar 2021 19:54:36 -0400, Tejun Heo wrote: > Hello, > > On Mon, Mar 15, 2021 at 04:40:12PM -0700, Jacob Pan wrote: > > 2. then we want to move/migrate Process1 to cg_B. so we need uncharge > > 10 of cg_A, charge 10 of cg_B > > So, what I don't get is why this migration

Re: [PATCH 9/9] watchdog: of_xilinx_wdt: Skip printing pointer value

2021-03-15 Thread Guenter Roeck
On 3/15/21 3:46 AM, Srinivas Neeli wrote: > "%p" is not printing the pointer value. > In driver, printing pointer value is not useful so avoiding print. > > Signed-off-by: Srinivas Neeli Reviewed-by: Guenter Roeck > --- > drivers/watchdog/of_xilinx_wdt.c | 4 ++-- > 1 file changed, 2

Re: [PATCH 8/9] watchdog: of_xilinx_wdt: Remove passing null pointer

2021-03-15 Thread Guenter Roeck
On 3/15/21 3:46 AM, Srinivas Neeli wrote: > clk is an optional property, if clock not defined, > calling clk_prepare_enable() and devm_add_action_or_reset() > are not useful. > so calling these two apis only when clock is present. > > Addresses-Coverity:"FORWARD_NULL" > > Signed-off-by: Srinivas

[PATCH v2] staging: rtl8192u: remove extra lines

2021-03-15 Thread zhaoxiao
Remove extra lines in many functions in r8192U_wx.c. Signed-off-by: zhaoxiao --- drivers/staging/rtl8192u/r8192U_wx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_wx.c b/drivers/staging/rtl8192u/r8192U_wx.c index

[PATCH v2] task_work: kasan: record task_work_add() call stack

2021-03-15 Thread Walter Wu
Why record task_work_add() call stack? Syzbot reports many use-after-free issues for task_work, see [1]. After see the free stack and the current auxiliary stack, we think they are useless, we don't know where register the work, this work may be the free call stack, so that we miss the root cause

Re: [PATCH v2 5/5] mm/hugetlb: avoid calculating fault_mutex_hash in truncate_op case

2021-03-15 Thread Mike Kravetz
On 3/15/21 7:27 PM, Miaohe Lin wrote: > The fault_mutex hashing overhead can be avoided in truncate_op case > because page faults can not race with truncation in this routine. So > calculate hash for fault_mutex only in !truncate_op case to save some cpu > cycles. > > Reviewed-by: Mike Kravetz

Re: [PATCH] scsi: Fix a double free in myrs_cleanup

2021-03-15 Thread Martin K. Petersen
On Wed, 10 Mar 2021 22:30:05 -0800, Lv Yunlong wrote: > In myrs_cleanup, cs->mmio_base will be freed twice by > iounmap(). Applied to 5.12/scsi-fixes, thanks! [1/1] scsi: Fix a double free in myrs_cleanup https://git.kernel.org/mkp/scsi/c/2bb817712e2f -- Martin K. Petersen Oracle

Re: [PATCH] ibmvfc: free channel_setup_buf during device tear down

2021-03-15 Thread Martin K. Petersen
On Wed, 10 Mar 2021 19:22:12 -0600, Tyrel Datwyler wrote: > The buffer for negotiating channel setup is DMA allocated at device > probe time. However, the remove path fails to free this allocation which > will prevent the hypervisor from releasing the virtual device in the > case of a hotplug

Re: [PATCH] scsi: Fix a use after free in st_open

2021-03-15 Thread Martin K. Petersen
On Wed, 10 Mar 2021 22:46:36 -0800, Lv Yunlong wrote: > In st_open, if STp->in_use is true, STp will be freed by > scsi_tape_put(). However, STp is still used by DEBC_printk() > after. It is better to DEBC_printk() before scsi_tape_put(). Applied to 5.12/scsi-fixes, thanks! [1/1] scsi: Fix a

[PATCH v6 2/2] erofs: decompress in endio if possible

2021-03-15 Thread Huang Jianan
z_erofs_decompressqueue_endio may not be executed in the atomic context, for example, when dm-verity is turned on. In this scenario, data can be decompressed directly to get rid of additional kworker scheduling overhead. Also, it makes no sense to apply synchronous decompression for such case.

Re: [PATCH] drivers: scsi: qla4xxx: Fix a spello in the file qla4xxx/ql4_os.c

2021-03-15 Thread Martin K. Petersen
On Mon, 1 Mar 2021 18:47:36 +0530, Bhaskar Chowdhury wrote: > s/circuting/circuiting/ Applied to 5.13/scsi-queue, thanks! [1/1] drivers: scsi: qla4xxx: Fix a spello in the file qla4xxx/ql4_os.c https://git.kernel.org/mkp/scsi/c/014ace23a5ec -- Martin K. Petersen Oracle Linux

  1   2   3   4   5   6   7   8   9   10   >