[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

[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

[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 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 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 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

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 > --- >

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.

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 -next 1/5] block: add disk sequence number

2021-03-15 Thread JeffleXu
On 3/16/21 4:02 AM, Matteo Croce wrote: > From: Matteo Croce > > Add a sequence number to the disk devices. This number is put in the > uevent so userspace can correlate events when a driver reuses a device, > like the loop one. > > Signed-off-by: Matteo Croce > --- > block/genhd.c

[RFC v2] KVM: x86: Support KVM VMs sharing SEV context

2021-03-15 Thread Nathan Tempelman
Add a capability for userspace to mirror SEV encryption context from one vm to another. On our side, this is intended to support a Migration Helper vCPU, but it can also be used generically to support other in-guest workloads scheduled by the host. The intention is for the primary guest and the

[tip:x86/misc] BUILD SUCCESS 2d4177c01b4e7496c7d47b31865f8c85bffb3604

2021-03-15 Thread kernel test robot
tinyconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a006-20210315 x86_64

[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 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: [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 bpf-next 2/5] bpf: Add a bpf_snprintf helper

2021-03-15 Thread Andrii Nakryiko
On Wed, Mar 10, 2021 at 2:02 PM Florent Revest wrote: > > The implementation takes inspiration from the existing bpf_trace_printk > helper but there are a few differences: > > To allow for a large number of format-specifiers, parameters are > provided in an array, like in bpf_seq_printf. > >

[PATCH v4] perf tools: perf_event_paranoid and kptr_restrict may crash on 'perf top'

2021-03-15 Thread Jackie Liu
After install the libelf-dev package and compiling perf, kptr_restrict=2 and perf_event_paranoid=3 will cause perf top to crash, because the value of /proc/kallsyms cannot be obtained, which leads to info->jited_ksyms == NULL. In order to solve this problem, Add a judgment before use. v3->v4: Fix

[PATCH v3 2/3] binder: use EINTR for interrupted wait for work

2021-03-15 Thread Li Li
From: Marco Ballesio when interrupted by a signal, binder_wait_for_work currently returns -ERESTARTSYS. This error code isn't propagated to user space, but a way to handle interruption due to signals must be provided to code using this API. Replace this instance of -ERESTARTSYS with -EINTR,

[PATCH v3 0/3] Binder: Enable App Freezing Capability

2021-03-15 Thread Li Li
From: Li Li To improve the user experience when switching between recently used applications, the background applications which are not currently needed are cached in the memory. Normally, a well designed application will not consume valuable CPU resources in the background. However, it's

[PATCH v3 3/3] binder: BINDER_GET_FROZEN_INFO ioctl

2021-03-15 Thread Li Li
From: Marco Ballesio User space needs to know if binder transactions occurred to frozen processes. Introduce a new BINDER_GET_FROZEN ioctl and keep track of transactions occurring to frozen proceses. Signed-off-by: Marco Ballesio Signed-off-by: Li Li --- drivers/android/binder.c|

[PATCH v3 1/3] binder: BINDER_FREEZE ioctl

2021-03-15 Thread Li Li
From: Marco Ballesio Frozen tasks can't process binder transactions, so a way is required to inform transmitting ends of communication failures due to the frozen state of their receiving counterparts. Additionally, races are possible between transitions to frozen state and binder transactions

[PATCH v3 3/3] arm64: dts: qcom: sc7180: Add CoachZ rev3

2021-03-15 Thread Matthias Kaehlcke
CoachZ rev3 uses a 100k NTC thermistor for the charger temperatures, instead of the 47k NTC that is stuffed in earlier revisions. Add .dts files for rev3. The 47k NTC currently isn't supported by the PM6150 ADC driver. Disable the charger thermal zone for rev1 and rev2 to avoid the use of bogus

[PATCH v3 1/3] arm64: dts: qcom: sc7180: lazor: Simplify disabling of charger thermal zone

2021-03-15 Thread Matthias Kaehlcke
Commit f73558cc83d1 ("arm64: dts: qcom: sc7180: Disable charger thermal zone for lazor") disables the charger thermal zone for specific lazor revisions due to an unsupported thermistor type. The initial idea was to disable the thermal zone for older revisions and leave it enabled for newer ones

[PATCH v3 2/3] arm64: dts: qcom: sc7180: Add pompom rev3

2021-03-15 Thread Matthias Kaehlcke
The only kernel visible change with respect to rev2 is that pompom rev3 changed the charger thermistor from a 47k to a 100k NTC to use a thermistor which is supported by the PM6150 ADC driver. Disable the charger thermal zone for pompom rev1 and rev2 to avoid the use of bogus temperature values

[PATCH v3 0/3] arm64: dts: qcom: sc7180: Disable the charger thermal zone on more trogdor boards

2021-03-15 Thread Matthias Kaehlcke
We already disabled the charger thermal zone for lazor to avoid bogus temperature readings from an unsupported thermistor. Some revisions of other trogdor boards that are added by Doug's 'arm64: dts: qcom: Update sc7180-trogdor variants from downstream' series have the same problem. Disable the

Re: [PATCH v2 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-03-15 Thread Sean Christopherson
On Tue, Mar 16, 2021, Jarkko Sakkinen wrote: > On Tue, Mar 16, 2021 at 01:05:05AM +0200, Jarkko Sakkinen wrote: > > The way I've understood it is that given that KVM can support SGX > > without FLC, vEPC should be available even if driver cannot be > > enabled. > > > > This is also exactly what

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 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 bpf-next 1/5] bpf: Add a ARG_PTR_TO_CONST_STR argument type

2021-03-15 Thread Andrii Nakryiko
On Wed, Mar 10, 2021 at 2:02 PM Florent Revest wrote: > > This type provides the guarantee that an argument is going to be a const > pointer to somewhere in a read-only map value. It also checks that this > pointer is followed by a NULL character before the end of the map value. > >

Re: [PATCH v2 1/3] binder: BINDER_FREEZE ioctl

2021-03-15 Thread Li Li
On Fri, Mar 12, 2021 at 4:00 PM Todd Kjos wrote: > > On Thu, Mar 11, 2021 at 10:46 AM Li Li wrote: > > > > From: Marco Ballesio > > > > Frozen tasks can't process binder transactions, so a way is required to > > inform transmitting ends of communication failures due to the frozen > > state of

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: [PATCH] mm: memcontrol: switch to rstat fix

2021-03-15 Thread Singh, Balbir
On 16/3/21 10:41 am, 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 atomic

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] MIPS: ralink: select WEAK_REORDERING_BEYOND_LLSC on MT7621

2021-03-15 Thread Ilya Lipnitskiy
Hi Thomas, On Fri, Mar 12, 2021 at 2:34 AM Thomas Bogendoerfer wrote: > > On Sun, Mar 07, 2021 at 11:08:06AM -0800, Ilya Lipnitskiy wrote: > > Upstream a long-standing OpenWrt patch for RALINK MT7621 SoC. Selecting > > WEAK_REORDERING_BEYOND_LLSC fixes random kernel hangs. This bug and fix > >

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

2021-03-15 Thread kernel test robot
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/master next-20210315] [If your patch is applied to the wrong git tree, kindly drop us a note

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 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: arm64: kernel/sys.c - silence initialization warnings.

2021-03-15 Thread Valdis Klētnieks
On Mon, 15 Mar 2021 19:23:00 -, Christoph Hellwig said: > On Mon, Mar 15, 2021 at 11:14:34AM +, Catalin Marinas wrote: > > We do similar initialisation in arch/arm64/kernel/sys32.c and > > arch/arm64/kernel/traps.c for example. It's a pretty common pattern > > throughout the kernel. > > >

Re: [PATCH 2/3] tty: serial: meson: retrieve port FIFO size from DT

2021-03-15 Thread Kevin Hilman
Neil Armstrong writes: > Now the DT bindings has a property to get the FIFO size for a particular port, > retrieve it and use to setup the FIFO interrupts threshold. > > Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman

Re: [PATCH v4 2/2] usb: webcam: Invalid size of Processing Unit Descriptor

2021-03-15 Thread Peter Chen
On 21-03-15 08:17:48, Pawel Laszczak wrote: > From: Pawel Laszczak > > According with USB Device Class Definition for Video Device the > Processing Unit Descriptor bLength should be 12 (10 + bmControlSize), > but it has 11. > > Invalid length caused that Processing Unit Descriptor Test Video

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'

drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c:233 igt_fill_blt_thread() error: 'ce' dereferencing possible ERR_PTR()

2021-03-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 commit: 03c62d886dd6d3dfebf59d385a37245fe667fe90 drm/i915: Make GEM errors non-fatal by default date: 8 weeks ago config: x86_64-randconfig-m001-20210316 (attached

Re: [PATCH] powerpc/vdso32: Add missing _restgpr_31_x to fix build failure

2021-03-15 Thread Segher Boessenkool
On Mon, Mar 15, 2021 at 04:38:52PM +, David Laight wrote: > From: Rasmus Villemoes > > Sent: 15 March 2021 16:24 > > On 12/03/2021 03.29, Segher Boessenkool wrote: > > > On Tue, Mar 09, 2021 at 06:19:30AM +, Christophe Leroy wrote: > > >> With some defconfig including

Re: [PATCH 10/13] rcu/nocb: Delete bypass_timer upon nocb_gp wakeup

2021-03-15 Thread Paul E. McKenney
On Mon, Mar 15, 2021 at 11:56:33PM +0100, Frederic Weisbecker wrote: > On Mon, Mar 15, 2021 at 10:53:36PM +0800, Boqun Feng wrote: > > On Wed, Mar 10, 2021 at 11:17:02PM +0100, Frederic Weisbecker wrote: > > > On Tue, Mar 02, 2021 at 05:24:56PM -0800, Paul E. McKenney wrote: > > > > On Tue, Feb

Re: [PATCH 05/13] rcu/nocb: Use the rcuog CPU's ->nocb_timer

2021-03-15 Thread Paul E. McKenney
On Wed, Mar 10, 2021 at 11:05:07PM +0100, Frederic Weisbecker wrote: > On Tue, Mar 02, 2021 at 05:15:57PM -0800, Paul E. McKenney wrote: > > The first question is of course: Did you try this with lockdep enabled? ;-) > > Yep I always do. But I may miss some configs on my testings. I usually >

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: [RFC v2 2/2] cgroup: sev: Miscellaneous cgroup documentation.

2021-03-15 Thread Tejun Heo
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 is necessary. This isn't supported as a usage pattern and no one, at least in terms

Re: [PATCH] powerpc/vdso32: Add missing _restgpr_31_x to fix build failure

2021-03-15 Thread Segher Boessenkool
On Mon, Mar 15, 2021 at 05:23:44PM +0100, Rasmus Villemoes wrote: > On 12/03/2021 03.29, Segher Boessenkool wrote: > > On Tue, Mar 09, 2021 at 06:19:30AM +, Christophe Leroy wrote: > >> With some defconfig including CONFIG_CC_OPTIMIZE_FOR_SIZE, > >> (for instance mvme5100_defconfig and

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-15 Thread Kai Huang
On Tue, 16 Mar 2021 00:59:31 +0200 Jarkko Sakkinen wrote: > On Tue, Mar 16, 2021 at 09:29:34AM +1300, Kai Huang wrote: > > On Mon, 15 Mar 2021 15:19:32 +0200 Jarkko Sakkinen wrote: > > > On Mon, Mar 15, 2021 at 03:18:16PM +0200, Jarkko Sakkinen wrote: > > > > On Mon, Mar 15, 2021 at 08:12:36PM

[tip:x86/cpu 2/3] arch/x86/kernel/alternative.c:96:10: warning: Undefined behaviour, pointer arithmetic 'x86nops+10' is out of bounds.

2021-03-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu head: 301cddc21a157a3072d789a3097857202e550a24 commit: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 [2/3] x86: Remove dynamic NOP selection compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following

Re: [PATCH v2 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-03-15 Thread Kai Huang
On Tue, 16 Mar 2021 01:08:44 +0200 Jarkko Sakkinen wrote: > On Tue, Mar 16, 2021 at 01:05:05AM +0200, Jarkko Sakkinen wrote: > > On Tue, Mar 16, 2021 at 09:48:59AM +1300, Kai Huang wrote: > > > On Mon, 15 Mar 2021 15:51:17 +0200 Jarkko Sakkinen wrote: > > > > On Mon, Mar 15, 2021 at 03:04:59PM

Re: [GIT PULL] afs: Fix oops and confusion from metadata xattrs

2021-03-15 Thread pr-tracker-bot
The pull request you sent on Mon, 15 Mar 2021 17:24:53 +: > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > tags/afs-fixes-20210315 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1a4431a5db2bf800c647ee0ed87f2727b8d6c29c Thank you! --

Re: [PATCH v3] fs/buffer.c: Revoke LRU when trying to drop buffers

2021-03-15 Thread Matthew Wilcox
On Mon, Mar 15, 2021 at 04:41:38PM -0700, Andrew Morton wrote: > > When a buffer is added to the LRU list, a reference is taken which is > > not dropped until the buffer is evicted from the LRU list. This is the > > correct behavior, however this LRU reference will prevent the buffer > > from

Re: [PATCH net-next] net: sched: remove unnecessay lock protection for skb_bad_txq/gso_skb

2021-03-15 Thread David Miller
From: Yunsheng Lin Date: Mon, 15 Mar 2021 17:30:10 +0800 > Currently qdisc_lock(q) is taken before enqueuing and dequeuing > for lockless qdisc's skb_bad_txq/gso_skb queue, qdisc->seqlock is > also taken, which can provide the same protection as qdisc_lock(q). > > This patch removes the

Re: [PATCH v3] fs/buffer.c: Revoke LRU when trying to drop buffers

2021-03-15 Thread Andrew Morton
On Wed, 13 Jan 2021 13:17:30 -0800 Chris Goldsworthy wrote: > From: Laura Abbott > > When a buffer is added to the LRU list, a reference is taken which is > not dropped until the buffer is evicted from the LRU list. This is the > correct behavior, however this LRU reference will prevent the

[PATCH] mm: memcontrol: switch to rstat fix

2021-03-15 Thread Johannes Weiner
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 atomic variant, cgroup_rstat_irqsafe(). To be consistent with

TREAT AS URGENT

2021-03-15 Thread LEGAL EDGE
Business Trustee Needed Urgently. Compliment of the day. I will like to discuss a Long-Term Business Opportunity with you. Kindly contact me back for more details and information. It’s a lucrative Mutual Business Venture. I await your prompt response. Regards, LEGAL EDGE Sheather Artemia

[PATCH v3 4/4] KVM: x86/mmu: Store the address space ID in the TDP iterator

2021-03-15 Thread Ben Gardon
From: Sean Christopherson Store the address space ID in the TDP iterator so that it can be retrieved without having to bounce through the root shadow page. This streamlines the code and fixes a Sparse warning about not properly using rcu_dereference() when grabbing the ID from the root on the

[PATCH v3 1/4] KVM: x86/mmu: Fix RCU usage in handle_removed_tdp_mmu_page

2021-03-15 Thread Ben Gardon
The pt passed into handle_removed_tdp_mmu_page does not need RCU protection, as it is not at any risk of being freed by another thread at that point. However, the implicit cast from tdp_sptep_t to u64 * dropped the __rcu annotation without a proper rcu_derefrence. Fix this by passing the pt as a

[PATCH v3 3/4] KVM: x86/mmu: Factor out tdp_iter_return_to_root

2021-03-15 Thread Ben Gardon
In tdp_mmu_iter_cond_resched there is a call to tdp_iter_start which causes the iterator to continue its walk over the paging structure from the root. This is needed after a yield as paging structure could have been freed in the interim. The tdp_iter_start call is not very clear and something of

[PATCH v3 2/4] KVM: x86/mmu: Fix RCU usage when atomically zapping SPTEs

2021-03-15 Thread Ben Gardon
Fix a missing rcu_dereference in tdp_mmu_zap_spte_atomic. Reported-by: kernel test robot Signed-off-by: Ben Gardon --- arch/x86/kvm/mmu/tdp_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c index

[PATCH v3 0/4] Fix RCU warnings in TDP MMU

2021-03-15 Thread Ben Gardon
The Linux Test Robot found a few RCU warnings in the TDP MMU: https://www.spinics.net/lists/kernel/msg3845500.html https://www.spinics.net/lists/kernel/msg3845521.html Fix these warnings and cleanup a hack in tdp_mmu_iter_cond_resched. Tested by compiling as suggested in the test robot report

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

2021-03-15 Thread Jacob Pan
Hi Tejun, On Mon, 15 Mar 2021 18:19:35 -0400, Tejun Heo wrote: > Hello, > > On Mon, Mar 15, 2021 at 03:11:55PM -0700, Jacob Pan wrote: > > > Migration itself doesn't have restrictions but all resources are > > > distributed on the same hierarchy, so the controllers are supposed to > > > follow

Re: [PATCH 2/3] KVM: x86: guest debug: don't inject interrupts while single stepping

2021-03-15 Thread Sean Christopherson
On Tue, Mar 16, 2021, Maxim Levitsky wrote: > This change greatly helps with two issues: > > * Resuming from a breakpoint is much more reliable. > > When resuming execution from a breakpoint, with interrupts enabled, more > often > than not, KVM would inject an interrupt and make the CPU

[PATCH v11 5/5] fpga: m10bmc-sec: add max10 get_hw_errinfo callback func

2021-03-15 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include a function that returns 64 bits of additional HW specific data for errors that require additional information. This callback function enables the hw_errinfo sysfs node in the Intel Security Manager class driver. Signed-off-by: Russ Weight ---

[PATCH v11 2/5] fpga: m10bmc-sec: expose max10 flash update count

2021-03-15 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide a sysfs file to expose the flash update count for the FPGA user image. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v11: - No change v10: - Changed the path expression in the sysfs documentation to replace the n3000 reference

[PATCH v11 3/5] fpga: m10bmc-sec: expose max10 canceled keys in sysfs

2021-03-15 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide sysfs files to expose the canceled code signing key (CSK) bit vectors. These use the standard bitmap list format (e.g. 1,2-6,9). Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v11: - No change v10: - Changed the path expressions in

[PATCH v11 4/5] fpga: m10bmc-sec: add max10 secure update functions

2021-03-15 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include the functions that enable secure updates of BMC images, FPGA images, etc. Signed-off-by: Russ Weight --- v11: - No change v10: - No change v9: - No change v8: - Previously patch 5/6, otherwise no change v7: - No change v6: -

[PATCH v11 1/5] fpga: m10bmc-sec: create max10 bmc secure update driver

2021-03-15 Thread Russ Weight
Create a platform driver that can be invoked as a sub driver for the Intel MAX10 BMC in order to support secure updates. This sub-driver will invoke an instance of the FPGA Security Manager class driver in order to expose sysfs interfaces for managing and monitoring secure updates to FPGA and BMC

[PATCH v11 0/5] Intel MAX10 BMC Secure Update Driver

2021-03-15 Thread Russ Weight
The Intel MAX10 BMC Secure Update driver instantiates the FPGA Security Manager class driver and provides the callback functions required to support secure updates on Intel n3000 PAC devices. This driver is implemented as a sub-driver of the Intel MAX10 BMC mfd driver. Future instances of the

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: [kbuild-all] Re: [PATCH] gcov: fail build on gcov_info size mismatch

2021-03-15 Thread Linus Torvalds
On Mon, Mar 15, 2021 at 4:10 PM Herbert Xu wrote: > > The quoting on "!" doesn't help I'm afraid. Even though [ is a > built-in it is not allowed to look at the quoting because it's > supposed to behave in the same way whether you get the builtin [ > or the one from /usr/bin. > > So when it gets

Re: [PATCH 4/4] tools/perf: Support pipeline stage cycles for powerpc

2021-03-15 Thread Jiri Olsa
On Mon, Mar 15, 2021 at 01:22:09PM +0530, Athira Rajeev wrote: SNIP > + > +static char *setup_dynamic_sort_keys(char *str) > +{ > + unsigned int j; > + > + if (sort__mode == SORT_MODE__MEMORY) > + for (j = 0; j < ARRAY_SIZE(dynamic_sort_keys_mem); j++) > +

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-15 Thread Jarkko Sakkinen
On Tue, Mar 16, 2021 at 09:29:34AM +1300, Kai Huang wrote: > On Mon, 15 Mar 2021 15:19:32 +0200 Jarkko Sakkinen wrote: > > On Mon, Mar 15, 2021 at 03:18:16PM +0200, Jarkko Sakkinen wrote: > > > On Mon, Mar 15, 2021 at 08:12:36PM +1300, Kai Huang wrote: > > > > On Sat, 13 Mar 2021 12:45:53 +0200

Re: [PATCH v3 3/9] dt-bindings: pinctrl: stm32: Add stm32h750 pinctrl

2021-03-15 Thread dillon min
On Tue, Mar 16, 2021 at 12:26 AM Rob Herring wrote: > > On Mon, 15 Mar 2021 17:43:50 +0800, dillon.min...@gmail.com wrote: > > From: dillon min > > > > This patch intend to add pinctrl configuration support for > > stm32h750 value line > > > > The datasheet of stm32h750 value line can be found

Re: [PATCH tip/core/rcu 06/10] softirq: Don't try waking ksoftirqd before it has been spawned

2021-03-15 Thread Paul E. McKenney
On Fri, Mar 12, 2021 at 12:36:41PM +0100, Frederic Weisbecker wrote: > On Wed, Mar 03, 2021 at 04:00:15PM -0800, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > If there is heavy softirq activity, the softirq system will attempt > > to awaken ksoftirqd and will stop the

Re: [PATCH v3 2/9] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-15 Thread dillon min
On Tue, Mar 16, 2021 at 12:26 AM Rob Herring wrote: > > On Mon, 15 Mar 2021 17:43:49 +0800, dillon.min...@gmail.com wrote: > > From: dillon min > > > > Art-pi based on stm32h750xbh6, with following resources: > > > > -8MiB QSPI flash > > -16MiB SPI flash > > -32MiB SDRAM > > -AP6212 wifi, bt, fm

Re: [kbuild-all] Re: [PATCH] gcov: fail build on gcov_info size mismatch

2021-03-15 Thread Herbert Xu
On Mon, Mar 15, 2021 at 01:57:58PM -0700, Linus Torvalds wrote: > > $ [ "!" = ".size" -a "b" = ".LPBX0," ] > > causes > > dash: 6: [: =: unexpected operator > > because for some reason that "-a" ends up (wild handwaving here about > what is going on) re-parsing the first expression,

Re: [PATCH v2 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-03-15 Thread Jarkko Sakkinen
On Tue, Mar 16, 2021 at 01:05:05AM +0200, Jarkko Sakkinen wrote: > On Tue, Mar 16, 2021 at 09:48:59AM +1300, Kai Huang wrote: > > On Mon, 15 Mar 2021 15:51:17 +0200 Jarkko Sakkinen wrote: > > > On Mon, Mar 15, 2021 at 03:04:59PM +0200, Jarkko Sakkinen wrote: > > > > On Mon, Mar 15, 2021 at

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 v2 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-03-15 Thread Jarkko Sakkinen
On Tue, Mar 16, 2021 at 09:48:59AM +1300, Kai Huang wrote: > On Mon, 15 Mar 2021 15:51:17 +0200 Jarkko Sakkinen wrote: > > On Mon, Mar 15, 2021 at 03:04:59PM +0200, Jarkko Sakkinen wrote: > > > On Mon, Mar 15, 2021 at 04:13:17PM +1300, Kai Huang wrote: > > > > On Sun, 14 Mar 2021 17:27:18 +0200

Re: [PATCH v2 09/27] perf parse-events: Create two hybrid hardware events

2021-03-15 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:24PM +0800, Jin Yao wrote: > For hardware events, they have pre-defined configs. The kernel > needs to know where the event comes from (e.g. from cpu_core pmu > or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE' > can't carry pmu information. > > So the

Re: [PATCH v2 17/27] perf evsel: Adjust hybrid event and global event mixed group

2021-03-15 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:32PM +0800, Jin Yao wrote: > A group mixed with hybrid event and global event is allowed. For example, > group leader is 'cpu-clock' and the group member is 'cpu_atom/cycles/'. > > e.g. > perf stat -e '{cpu-clock,cpu_atom/cycles/}' -a > > The challenge is their

Re: [PATCH 4.9 00/78] 4.9.262-rc1 review

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:51:23 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.9.262 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, s390x, sparc64. No problems detected. Tested-by:

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

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:56:30 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.14.226 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, s390x, sparc64. No problems detected. Tested-by:

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

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:51:33 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.10.24 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, riscv64, s390x, sparc64. No problems detected.

Re: [PATCH 4.19 000/120] 4.19.181-rc1 review

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:55:51 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.19.181 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, riscv64, s390x, sparc64. No problems detected.

Re: [PATCH 5.11 000/306] 5.11.7-rc1 review

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:51:03 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.11.7 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, riscv64, s390x, sparc64. No problems detected.

Re: [PATCH 4.4 00/75] 4.4.262-rc1 review

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:51:14 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.4.262 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, s390x, sparc64. No problems detected. Tested-by:

Re: [PATCH 5.4 000/168] 5.4.106-rc1 review

2021-03-15 Thread Jason Self
On Mon, 15 Mar 2021 14:53:52 +0100 gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.4.106 release. Tested on amd64, arm64, armhf, i386, m68k, or1k, powerpc, ppc64, ppc64el, riscv64, s390x, sparc64. No problems detected.

Re: [PATCH v2 08/27] perf stat: Uniquify hybrid event name

2021-03-15 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:23PM +0800, Jin Yao wrote: > It would be useful to tell user the pmu which the event belongs to. > perf-stat has supported '--no-merge' option and it can print the pmu > name after the event name, such as: > > "cycles [cpu_core]" > > Now this option is enabled by

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

2021-03-15 Thread Jiri Olsa
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 can know the pmu which the event can be

Re: [PATCH v2 16/27] perf evlist: Warn as events from different hybrid PMUs in a group

2021-03-15 Thread Jiri Olsa
On Thu, Mar 11, 2021 at 03:07:31PM +0800, Jin Yao wrote: SNIP > goto try_again; > } > + > + if (errno == EINVAL && perf_pmu__hybrid_exist()) > + evlist__warn_hybrid_group(evlist); >

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,

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-15 Thread Jarkko Sakkinen
On Tue, Mar 16, 2021 at 09:29:34AM +1300, Kai Huang wrote: > On Mon, 15 Mar 2021 15:19:32 +0200 Jarkko Sakkinen wrote: > > On Mon, Mar 15, 2021 at 03:18:16PM +0200, Jarkko Sakkinen wrote: > > > On Mon, Mar 15, 2021 at 08:12:36PM +1300, Kai Huang wrote: > > > > On Sat, 13 Mar 2021 12:45:53 +0200

Re: [PATCH 10/13] rcu/nocb: Delete bypass_timer upon nocb_gp wakeup

2021-03-15 Thread Frederic Weisbecker
On Mon, Mar 15, 2021 at 10:53:36PM +0800, Boqun Feng wrote: > On Wed, Mar 10, 2021 at 11:17:02PM +0100, Frederic Weisbecker wrote: > > On Tue, Mar 02, 2021 at 05:24:56PM -0800, Paul E. McKenney wrote: > > > On Tue, Feb 23, 2021 at 01:10:08AM +0100, Frederic Weisbecker wrote: > > > > A NOCB-gp wake

[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 ---

[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

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