Re: [PATCH 2/2] bfq: amend the function name of bfq_may_expire_for_budg_timeout()

2021-02-10 Thread Oleksandr Natalenko
On Wed, Feb 10, 2021 at 12:13:59PM +0100, Paolo Valente wrote: > > > > Il giorno 29 gen 2021, alle ore 11:51, Chunguang Xu > > ha scritto: > > > > From: Chunguang Xu > > > > The function name bfq_may_expire_for_budg_timeout() may be misspelled, > > try to fix it. > > > > Ok for me to make

Re: drm/nouneau: 5.11 cycle regression bisected to 461619f5c324 "drm/nouveau: switch to new allocator"

2021-02-10 Thread Mike Galbraith
On Wed, 2021-02-10 at 16:34 +0100, Christian König wrote: > Any objections that I add a Reported-and-tested-by: Mike Galbraith > ? Fine by me. -Mike

Re: [PATCH v2 2/7] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg

2021-02-10 Thread Mark Brown
On Wed, Feb 10, 2021 at 02:35:29PM +0800, Shengjiu Wang wrote: > On Wed, Feb 10, 2021 at 6:30 AM Mark Brown wrote: > > Like I say I'd actually recommend moving this control to DAPM. > I may understand your point, you suggest to use the .set_bias_level > interface. But in my case I need to enable

Re: [PATCH v4 3/3] vsprintf: dump full information of page flags in pGp

2021-02-10 Thread Yafang Shao
On Wed, Feb 10, 2021 at 8:51 PM Petr Mladek wrote: > > On Wed 2021-02-10 00:21:37, Yafang Shao wrote: > > On Tue, Feb 9, 2021 at 9:53 PM Petr Mladek wrote: > > > > > > On Tue 2021-02-09 18:56:13, Yafang Shao wrote: > > > > Currently the pGp only shows the names of page flags, rather than > > > >

Re: [PATCH] arm64: dts: ls1028a: add interrupt to Root Complex Event Collector

2021-02-10 Thread Vladimir Oltean
On Tue, Feb 09, 2021 at 01:52:59AM +0100, Michael Walle wrote: > The legacy interrupt INT_A is hardwired to the event collector. RCEC is > bascially supported starting with v5.11. Having a correct interrupt, will > make RCEC at least probe correctly. > > There are still issues with how RCEC is imp

Re: [PATCH v1 7/7] ACPI: property: Allow counting a single value as an array of 1 element

2021-02-10 Thread Andy Shevchenko
On Wed, Feb 10, 2021 at 04:01:16PM +0100, Rafael J. Wysocki wrote: > On Wed, Feb 10, 2021 at 3:48 PM Andy Shevchenko > wrote: > > On Wed, Feb 10, 2021 at 02:48:09PM +0100, Rafael J. Wysocki wrote: > > > On Wednesday, February 10, 2021 2:31:48 PM CET Rafael J. Wysocki wrote: > > > > On Wednesday, F

[gustavoars-linux:testing/drm/vega10_pptable] BUILD SUCCESS 52f22637cd181836877c11b1f9d9a69ad8e03bca

2021-02-10 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/drm/vega10_pptable branch HEAD: 52f22637cd181836877c11b1f9d9a69ad8e03bca drm/amd/pm: Replace one-element array with flexible-array in struct _ATOM_Vega10_GFXCLK_Dependency_Table elapsed time: 1148m conf

[gustavoars-linux:testing/uapi/nfsd/nfsfh] BUILD REGRESSION d28670226e028e65b0de5e6744c5df188fc2728b

2021-02-10 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/uapi/nfsd/nfsfh branch HEAD: d28670226e028e65b0de5e6744c5df188fc2728b UAPI: linux: nfsd: nfsfh.h: Replace one-element array with flexible-array Error/Warning reports: https://lore.kernel.org/lkml/2021021

Re: [PATCH v1 7/7] ACPI: property: Allow counting a single value as an array of 1 element

2021-02-10 Thread Rafael J. Wysocki
On Wed, Feb 10, 2021 at 4:42 PM Andy Shevchenko wrote: > > On Wed, Feb 10, 2021 at 04:01:16PM +0100, Rafael J. Wysocki wrote: > > On Wed, Feb 10, 2021 at 3:48 PM Andy Shevchenko > > wrote: > > > On Wed, Feb 10, 2021 at 02:48:09PM +0100, Rafael J. Wysocki wrote: > > > > On Wednesday, February 10,

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-10 Thread Eli Cohen
On Wed, Feb 10, 2021 at 12:59:03AM -0800, Si-Wei Liu wrote: > > > On 2/9/2021 7:53 PM, Jason Wang wrote: > > > > On 2021/2/10 上午10:30, Si-Wei Liu wrote: > > > > > > > > > On 2/8/2021 10:37 PM, Jason Wang wrote: > > > > > > > > On 2021/2/9 下午2:12, Eli Cohen wrote: > > > > > On Tue, Feb 09, 202

Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses

2021-02-10 Thread Tetsuo Handa
On 2021/02/10 14:18, Timur Tabi wrote: > [accidentally sent from the wrong email address, so resending] > > [The list of email addresses on CC: is getting quite lengthy, > so I hope I've included everyone.] > > Although hashing addresses printed via printk does make the > kernel more secure, it i

Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller

2021-02-10 Thread Dave Stevenson
Hi Marc. On Wed, 10 Feb 2021 at 15:30, Marc Zyngier wrote: > > Hi Maxime, > > On 2021-02-10 14:40, Maxime Ripard wrote: > > Hi Dave, > > > > On Tue, Feb 09, 2021 at 09:49:05AM +, Dave Stevenson wrote: > >> On Mon, 11 Jan 2021 at 14:23, Maxime Ripard wrote: > >> > > >> > The BSC controllers u

Re: [PATCH v5 0/4] perf vendor events: Support PMU events for A64FX

2021-02-10 Thread John Garry
On 10/02/2021 15:34, nakamura.s...@fujitsu.com wrote: Hi, John So my series is now on remotes/origin/tmp.perf/core in Arnaldo's acme git, so you could resend against that. https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git Or again, put my series on perf/core and se

Re: [PATCH 1/2] bfq: remove some useless logic of bfq_update_next_in_service()

2021-02-10 Thread Paolo Valente
> Il giorno 10 feb 2021, alle ore 16:21, Jens Axboe ha > scritto: > > On 2/10/21 8:20 AM, Oleksandr Natalenko wrote: >> On Wed, Feb 10, 2021 at 12:13:29PM +0100, Paolo Valente wrote: >>> >>> Il giorno 29 gen 2021, alle ore 11:51, Chunguang Xu ha scritto: From: Chungua

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

2021-02-10 Thread kernel test robot
us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Miaohe-Lin/hugetlb_cgroup-fix-imbalanced-css_get-and-css_put-pair-for-shared-mappings/20210210-1

Re: [PATCH] locking/arch: Move qrwlock.h include after qspinlock.h

2021-02-10 Thread Waiman Long
On 2/10/21 10:05 AM, Guenter Roeck wrote: On 2/10/21 6:45 AM, Waiman Long wrote: The queued rwlock code has a dependency on the current spinlock implementation (likely to be qspinlock), but not vice versa. Including qrwlock.h before qspinlock.h can be problematic when expanding qrwlock functiona

Re: [PATCH] nbd: Convert to DEFINE_SHOW_ATTRIBUTE

2021-02-10 Thread Josef Bacik
On 2/6/21 2:10 AM, winnd...@163.com wrote: From: Liao Pingfang Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Liao Pingfang Reviewed-by: Josef Bacik Thanks, Josef

[PATCH net-next RFC] net: hdlc_x25: Queue outgoing LAPB frames

2021-02-10 Thread Xie He
When sending packets, we will first hand over the (L3) packets to the LAPB module, then the LAPB module will hand over the corresponding LAPB (L2) frames back to us for us to transmit. The LAPB module can also emit LAPB (L2) frames at any time without an (L3) packet currently being sent, when it i

Re: [PATCH 4/5] ath10k: detect conf_mutex held ath10k_drain_tx() calls

2021-02-10 Thread Shuah Khan
On 2/10/21 1:25 AM, Kalle Valo wrote: Shuah Khan writes: ath10k_drain_tx() must not be called with conf_mutex held as workers can use that also. Add check to detect conf_mutex held calls. Signed-off-by: Shuah Khan The commit log does not answer to "Why?". How did you find this? What actual

Re: [PATCH] kgdb: Remove kgdb_schedule_breakpoint()

2021-02-10 Thread Doug Anderson
Hi, On Wed, Feb 10, 2021 at 6:25 AM Daniel Thompson wrote: > > To the very best of my knowledge there has never been any in-tree > code that calls this function. It exists largely to support an > out-of-tree driver that provides kgdb-over-ethernet using the > netpoll API. > > kgdboe has been out-

Re: [PATCH v3] mm: cma: support sysfs

2021-02-10 Thread Minchan Kim
On Wed, Feb 10, 2021 at 12:05:48AM -0800, John Hubbard wrote: > On 2/9/21 11:55 PM, Minchan Kim wrote: > > Since CMA is getting used more widely, it's more important to > > keep monitoring CMA statistics for system health since it's > > directly related to user experience. > > > > This patch intro

Re: [PATCH] mm: remove lru_add_drain_all in alloc_contig_range

2021-02-10 Thread Minchan Kim
On Wed, Feb 10, 2021 at 01:17:33PM +0100, Vlastimil Babka wrote: > On 2/9/21 8:03 PM, Oscar Salvador wrote: > > On Tue, Feb 09, 2021 at 07:17:59PM +0100, David Hildenbrand wrote: > >> I was expecting some magical reason why this is still required but I am not > >> able to find a compelling one. May

Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap

2021-02-10 Thread Paul Gortmaker
[Re: [PATCH 6/8] lib: bitmap: support "N" as an alias for size of bitmap] On 09/02/2021 (Tue 15:16) Yury Norov wrote: > On Tue, Feb 9, 2021 at 3:01 PM Paul Gortmaker > wrote: [...] > > > > -static const char *bitmap_getnum(const char *str, unsigned int *num) > > +static const char *bitmap_getn

[PATCH] KVM: nSVM: call nested_svm_load_cr3 on nested state load

2021-02-10 Thread Maxim Levitsky
While KVM's MMU should be fully reset by loading of nested CR0/CR3/CR4 by KVM_SET_SREGS, we are not in nested mode yet when we do it and therefore only root_mmu is reset. On regular nested entries we call nested_svm_load_cr3 which both updates the guest's CR3 in the MMU when it is needed, and it a

Re: [PATCH v6 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-02-10 Thread Nicolas Dufresne
Le jeudi 04 février 2021 à 11:05 +0100, Hans Verkuil a écrit : > On 04/02/2021 06:01, diksh...@codeaurora.org wrote: > > On 2021-02-01 16:50, Hans Verkuil wrote: > > > On 25/01/2021 06:51, Dikshita Agarwal wrote: > > > > Long Term Reference (LTR) frames are the frames that are encoded > > > > somet

Re: [RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest

2021-02-10 Thread Steven Price
On 08/02/2021 17:31, Peter Maydell wrote: On Fri, 5 Feb 2021 at 13:58, Steven Price wrote: The VMM may not wish to have it's own mapping of guest memory mapped with PROT_MTE because this causes problems if the VMM has tag checking enabled (the guest controls the tags in physical RAM and it's u

re: mt76: mt7921: add MCU support

2021-02-10 Thread Colin Ian King
Hi, Static analysis with Coverity on linux-next has found an issue with the following commit: commit 1c099ab44727c8e42fe4de4d91b53cec3ef02860 Author: Sean Wang Date: Thu Jan 28 03:33:39 2021 +0800 mt76: mt7921: add MCU support The analysis is as follows: 390 static void 391 mt7921_mcu_t

[stable 4.4, 4.9, 4.14, 4.19 LTS] Missing fix "memcg: fix a crash in wb_workfn when a device disappears"

2021-02-10 Thread Mathieu Desnoyers
Hi, While reconciling the lttng-modules writeback instrumentation with its counterpart within the upstream Linux kernel, I notice that the following commit introduced in 5.6 is present in stable branches 5.4 and 5.5, but is missing from LTS stable branches for 4.4, 4.9, 4.14, 4.19: commit 68f2

[PATCH v2] mm: remove lru_add_drain_all in alloc_contig_range

2021-02-10 Thread Minchan Kim
__alloc_contig_migrate_range already has lru_add_drain_all call via migrate_prep. It's necessary to move LRU taget pages into LRU list to be able to isolated. However, lru_add_drain_all call after __alloc_contig_migrate_range is pointless since it has changed source page freeing from putback_lru_pa

KASAN: invalid-free in ieee80211_ibss_leave

2021-02-10 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:b75dba7f Merge tag 'libnvdimm-fixes-5.11-rc7' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1570c95f50 kernel config: https://syzkaller.appspot.com/x/.config?x=e83e68d0a6aba5f6 das

Re: [PATCH v18 1/7] arm/arm64: Probe for the presence of KVM hypervisor

2021-02-10 Thread Steven Price
On 08/02/2021 13:40, Marc Zyngier wrote: From: Will Deacon Although the SMCCC specification provides some limited functionality for describing the presence of hypervisor and firmware services, this is generally applicable only to functions designated as "Arm Architecture Service Functions" and

Re: [RFC][PATCH] objtool: WARN about ENDBR instructions

2021-02-10 Thread Josh Poimboeuf
On Wed, Feb 10, 2021 at 09:39:53AM +0100, Peter Zijlstra wrote: > > > Given all the ENDBR fun we recently had, do we want the below? Until > someone comes and fixes up kprobes/ftrace/livepatch etc.. having them is > a giant pain and we'd better warn about it. Meh... Is there a point in doing th

Re: [PATCH v2 08/14] x86/fault: Skip erratum #93 workaround on new CPUs

2021-02-10 Thread Andy Lutomirski
On Wed, Feb 10, 2021 at 5:29 AM Borislav Petkov wrote: > > On Tue, Feb 09, 2021 at 10:06:02PM -0800, Andy Lutomirski wrote: > > On Tue, Feb 9, 2021 at 6:33 PM Andy Lutomirski wrote: > > > > > > Erratum #93 applies to the first generation of AMD K8 CPUs. Skip the > > > workaround on newer CPUs. >

Re: [BUG REPORT] media: coda: mpeg4 decode corruption on i.MX6qp only

2021-02-10 Thread Nicolas Dufresne
Hi Sven, Le mercredi 03 février 2021 à 11:33 -0500, Sven Van Asbroeck a écrit : > From: Sven Van Asbroeck > > We have observed that under certain repeatable circumstances, the CODA > mem2mem device consistently generates corrupted frames. This happens only > on an i.MX6qp (Plus) - the classic im

Re: [PATCH] video: use getter/setter functions

2021-02-10 Thread Lee Jones
On Wed, 10 Feb 2021, Daniel Vetter wrote: > On Wed, Feb 10, 2021 at 08:23:41AM +, Lee Jones wrote: > > On Tue, 09 Feb 2021, Julia Lawall wrote: > > > > > Use getter and setter functions, for platform_device structures and a > > > spi_device structure. > > > > > > Signed-off-by: Julia Lawall

Re: [PATCH 5/5] ath10k: reduce invalid ht params rate message noise

2021-02-10 Thread Shuah Khan
On 2/10/21 1:28 AM, Kalle Valo wrote: Wen Gong writes: On 2021-02-10 08:42, Shuah Khan wrote: ath10k_mac_get_rate_flags_ht() floods dmesg with the following messages, when it fails to find a match for mcs=7 and rate=1440. supported_ht_mcs_rate_nss2: {7, {1300, 2700, 1444, 3000} } ath10k_pc

Re: [PATCH] arch: x86: entry: vdso: Fix the spelling postive to positive in the file vsgx.S

2021-02-10 Thread Randy Dunlap
On 2/10/21 12:46 AM, Bhaskar Chowdhury wrote: > > > s/postive/positive/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/x86/entry/vdso/vsgx.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/entry/vdso/vsgx.S b/arch/x86/entry/vdso/v

[PATCH 2/2] MIPS: Simplify EVA cache handling

2021-02-10 Thread Thomas Bogendoerfer
protected_cache_op is only used for flushing user addresses, so we only need to define protected_cache_op different in EVA mode and be done with it. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/r4kcache.h | 67 ++-- 1 file changed, 11 insertions(+), 56

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

2021-02-10 Thread Jessica Yu
+++ Stephen Rothwell [10/02/21 23:21 +1100]: Hi Jessica, On Wed, 10 Feb 2021 09:06:48 +0100 Jessica Yu wrote: Sorry, by "feature" I meant CONFIG_TRIM_UNUSED_KSYMS. This config option was introduced around v4.7. If simply enabling it produces these compilation errors I was wondering if it ever

Re: [PATCH] drivers: iio: proximity: Fix a spelling postive to positive in the file sx9500.c

2021-02-10 Thread Randy Dunlap
On 2/10/21 12:57 AM, Bhaskar Chowdhury wrote: > > s/postive/positive/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/iio/proximity/sx9500.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/prox

[PATCH 1/2] Revert "MIPS: kernel: {ftrace,kgdb}: Set correct address limit for cache flushes"

2021-02-10 Thread Thomas Bogendoerfer
This reverts commit 6ebda44f366478d1eea180d93154e7d97b591f50. All icache flushes in this code paths are done via flush_icache_range(), which only uses normal cache instruction. And this is the correct thing for EVA mode, too. So no need to do set_fs(KERNEL_DS) here. Signed-off-by: Thomas Bogendoe

[PATCH] clk: qcom: gcc-sm8350: add gdsc

2021-02-10 Thread Vinod Koul
Add the GDSC found in GCC for SM8350 SoC Signed-off-by: Vinod Koul --- drivers/clk/qcom/gcc-sm8350.c | 100 include/dt-bindings/clock/qcom,gcc-sm8350.h | 12 +++ 2 files changed, 112 insertions(+) diff --git a/drivers/clk/qcom/gcc-sm8350.c b/drivers/clk/qcom/

Re: [PATCH] module: potential uninitialized return in module_kallsyms_on_each_symbol()

2021-02-10 Thread Jessica Yu
+++ Dan Carpenter [10/02/21 13:57 +0300]: Smatch complains that: kernel/module.c:4472 module_kallsyms_on_each_symbol() error: uninitialized symbol 'ret'. This warning looks like it could be correct if the &modules list is empty. Fixes: 013c1667cf78 ("kallsyms: refactor {,module_

Re: [PATCH v2 1/8] cxl/mem: Introduce a driver for CXL-2.0-Type-3 endpoints

2021-02-10 Thread Jonathan Cameron
On Tue, 9 Feb 2021 16:02:52 -0800 Ben Widawsky wrote: > From: Dan Williams > > The CXL.mem protocol allows a device to act as a provider of "System > RAM" and/or "Persistent Memory" that is fully coherent as if the memory > was attached to the typical CPU memory controller. > > With the CXL-2.

Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses

2021-02-10 Thread Steven Rostedt
On Thu, 11 Feb 2021 00:46:15 +0900 Tetsuo Handa wrote: > Oh, I was wishing > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c > index 3b53c73580c5..34c7e145ac3c 100644 > --- a/lib/vsprintf.c > +++ b/lib/vsprintf.c > @@ -802,7 +802,7 @@ static char *ptr_to_id(char *buf, char *end, const void > *pt

Re: [PATCH] locking/arch: Move qrwlock.h include after qspinlock.h

2021-02-10 Thread Thomas Bogendoerfer
On Wed, Feb 10, 2021 at 09:45:56AM -0500, Waiman Long wrote: > The queued rwlock code has a dependency on the current spinlock > implementation (likely to be qspinlock), but not vice versa. Including > qrwlock.h before qspinlock.h can be problematic when expanding qrwlock > functionality. > > If b

Re: [PATCH v18 3/7] ptp: Reorganize ptp_kvm.c to make it arch-independent

2021-02-10 Thread Andre Przywara
On Mon, 8 Feb 2021 13:40:25 + Marc Zyngier wrote: > From: Jianyong Wu > > Currently, the ptp_kvm module contains a lot of x86-specific code. > Let's move this code into a new arch-specific file in the same directory, > and rename the arch-independent file to ptp_kvm_common.c. > > Signed-o

Re: [PATCH 1/5] ath10k: fix conf_mutex lock assert in ath10k_debug_fw_stats_request()

2021-02-10 Thread Shuah Khan
On 2/10/21 1:09 AM, Kalle Valo wrote: Shuah Khan wrote: ath10k_debug_fw_stats_request() is called ath10k_sta_statistics() without holding conf_mutex. ath10k_debug_fw_stats_request() simply returns when CONFIG_ATH10K_DEBUGFS is disabled. When CONFIG_ATH10K_DEBUGFS is enabled, ath10k_debug_fw_s

Re: [PATCH] mm: page-writeback: simplify memcg handling in test_clear_page_writeback()

2021-02-10 Thread Hugh Dickins
On Tue, 9 Feb 2021, Hugh Dickins wrote: > On Tue, 9 Feb 2021, Johannes Weiner wrote: > > > Page writeback doesn't hold a page reference, which allows truncate to > > free a page the second PageWriteback is cleared. This used to require > > special attention in test_clear_page_writeback(), where we

Re: [PATCH] clk: at91: Fix the declaration of the clocks

2021-02-10 Thread Rob Herring
On Wed, Feb 10, 2021 at 10:00:14AM +0100, Greg Kroah-Hartman wrote: > On Wed, Feb 10, 2021 at 09:51:14AM +0100, Geert Uytterhoeven wrote: > > Hi Saravana, > > > > On Wed, Feb 10, 2021 at 1:57 AM Saravana Kannan > > wrote: > > > On Tue, Feb 9, 2021 at 4:54 PM Stephen Boyd wrote: > > > > Quoting

Re: [PATCH 2/5] ath10k: fix WARNING: suspicious RCU usage

2021-02-10 Thread Shuah Khan
On 2/10/21 1:13 AM, Kalle Valo wrote: Shuah Khan wrote: ieee80211_find_sta_by_ifaddr() must be called under the RCU lock and the resulting pointer is only valid under RCU lock as well. Fix ath10k_wmi_tlv_parse_peer_stats_info() to hold RCU lock before it calls ieee80211_find_sta_by_ifaddr() a

Re: [PATCH v18 5/7] clocksource: Add clocksource id for arm arch counter

2021-02-10 Thread Andre Przywara
On Mon, 8 Feb 2021 13:40:27 + Marc Zyngier wrote: > From: Jianyong Wu > > Add clocksource id to the ARM generic counter so that it can be easily > identified from callers such as ptp_kvm. > > Cc: Mark Rutland > Signed-off-by: Jianyong Wu > Signed-off-by: Marc Zyngier > Link: https://lo

[PATCH] pinctrl/sunxi: adding input-debounce-ns property

2021-02-10 Thread Marjan Pascolo
On Allwinner SoC interrupt debounce can be controlled by two oscillator (32KHz and 24MHz) and a prescale divider. Oscillator and prescale divider are set through device tree property "input-debounce" which have 1uS accuracy. For acheive nS precision a new device tree poperty is made named "input-d

Re: [PATCH 6/7] x86/boot/compressed/64: Check SEV encryption in 32-bit boot-path

2021-02-10 Thread Dave Hansen
On 2/10/21 2:21 AM, Joerg Roedel wrote: > +1: rdrand %eax > + jnc 1b > +2: rdrand %ebx > + jnc 2b > + > + /* Store to memory and keep it in the registers */ > + movl%eax, rva(sev_check_data)(%ebp) > + movl%ebx, rva(sev_check_data+4)(%ebp) > + > + /* Ena

Re: bcm2711_thermal: Kernel panic - not syncing: Asynchronous SError Interrupt

2021-02-10 Thread Robin Murphy
On 2021-02-10 13:15, Nicolas Saenz Julienne wrote: [ Add Robin, Catalin and Florian in case they want to chime in ] Hi Juerg, thanks for the report! On Wed, 2021-02-10 at 11:48 +0100, Juerg Haefliger wrote: Trying to dump the BCM2711 registers kills the kernel: # cat /sys/kernel/debug/regmap/

Re: [PATCH v5 1/2] nbd: Fix NULL pointer in flush_workqueue

2021-02-10 Thread Josef Bacik
On 2/5/21 1:56 AM, Sun Ke wrote: Open /dev/nbdX first, the config_refs will be 1 and the pointers in nbd_device are still null. Disconnect /dev/nbdX, then reference a null recv_workq. The protection by config_refs in nbd_genl_disconnect is useless. [ 656.366194] BUG: kernel NULL pointer derefer

[PATCH] dma-buf: system_heap: do not warn for costly allocation

2021-02-10 Thread Minchan Kim
Linux VM is not hard to support PAGE_ALLOC_COSTLY_ODER allocation so normally expects driver passes __GFP_NOWARN in that case if they has fallback options. system_heap in dmabuf is the case so do not flood into demsg with the warning for recording more precious information logs. (below is ION warn

[PATCH RFC] input/elants_i2c: Detect enum overflow

2021-02-10 Thread Josh Poimboeuf
If an enum value were to get added without updating this switch statement, the unreachable() annotation would trigger undefined behavior, causing execution to fall through the end of the function, into the next one. Make the error handling more robust for an unexpected enum value, by doing BUG() i

Re: [PATCH v4 0/8] support for bitmap (and hence CPU) list "N" abbreviation

2021-02-10 Thread Andy Shevchenko
On Tue, Feb 09, 2021 at 05:58:59PM -0500, Paul Gortmaker wrote: > The basic objective here was to add support for "nohz_full=8-N" and/or > "rcu_nocbs="4-N" -- essentially introduce "N" as a portable reference > to the last core, evaluated at boot for anything using a CPU list. I thought we kinda a

[PATCH v4 net-next 00/11] skbuff: introduce skbuff_heads bulking and reusing

2021-02-10 Thread Alexander Lobakin
Currently, all sorts of skb allocation always do allocate skbuff_heads one by one via kmem_cache_alloc(). On the other hand, we have percpu napi_alloc_cache to store skbuff_heads queued up for freeing and flush them by bulks. We can use this cache not only for bulk-wiping, but also to obtain heads

Re: [PATCH 2/8] lib: test_bitmap: add tests to trigger ERANGE case.

2021-02-10 Thread Andy Shevchenko
On Tue, Feb 09, 2021 at 05:59:01PM -0500, Paul Gortmaker wrote: > Add tests that specify a valid range, but one that is outside the > width of the bitmap for which it is to be applied to. These should > trigger an -ERANGE response from the code. Reviewed-by: Andy Shevchenko > Cc: Yury Norov >

[PATCH v4 net-next 01/11] skbuff: move __alloc_skb() next to the other skb allocation functions

2021-02-10 Thread Alexander Lobakin
In preparation before reusing several functions in all three skb allocation variants, move __alloc_skb() next to the __netdev_alloc_skb() and __napi_alloc_skb(). No functional changes. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 284 +++--- 1

[PATCH v4 net-next 02/11] skbuff: simplify kmalloc_reserve()

2021-02-10 Thread Alexander Lobakin
Eversince the introduction of __kmalloc_reserve(), "ip" argument hasn't been used. _RET_IP_ is embedded inside kmalloc_node_track_caller(). Remove the redundant macro and rename the function after it. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 7 ++- 1 file changed, 2 insertion

Re: [PATCH V2 4/8] mm/highmem: Add VM_BUG_ON() to mem*_page() calls

2021-02-10 Thread Ira Weiny
On Wed, Feb 10, 2021 at 12:55:02PM +, Christoph Hellwig wrote: > On Tue, Feb 09, 2021 at 10:22:17PM -0800, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Add VM_BUG_ON bounds checks to ensure the newly lifted and created page > > memory operations do not result in corrupted data in ne

[PATCH v4 net-next 03/11] skbuff: make __build_skb_around() return void

2021-02-10 Thread Alexander Lobakin
__build_skb_around() can never fail and always returns passed skb. Make it return void to simplify and optimize the code. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c

Re: [PATCH 4/8] lib: bitmap: move ERANGE check from set_region to check_region

2021-02-10 Thread Andy Shevchenko
On Tue, Feb 09, 2021 at 05:59:03PM -0500, Paul Gortmaker wrote: > It makes sense to do all the checks in check_region() and not 1/2 > in check_region and 1/2 in set_region. > > Since set_region is called immediately after check_region, the net > effect on runtime is zero, but it gets rid of an if

[PATCH v4 net-next 06/11] skbuff: remove __kfree_skb_flush()

2021-02-10 Thread Alexander Lobakin
This function isn't much needed as NAPI skb queue gets bulk-freed anyway when there's no more room, and even may reduce the efficiency of bulk operations. It will be even less needed after reusing skb cache on allocation path, so remove it and this way lighten network softirqs a bit. Suggested-by:

[PATCH v4 net-next 04/11] skbuff: simplify __alloc_skb() a bit

2021-02-10 Thread Alexander Lobakin
Use unlikely() annotations for skbuff_head and data similarly to the two other allocation functions and remove totally redundant goto. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/core/skbuff.c b/net/co

Re: [GIT PULL] fscache: I/O API modernisation and netfs helper library

2021-02-10 Thread David Howells
Linus Torvalds wrote: > The PG_fscache bit waiting functions are completely crazy. The comment > about "this will wake up others" is actively wrong, and the waiting > function looks insane, because you're mixing the two names for > "fscache" which makes the code look totally incomprehensible. Why

[PATCH v4 net-next 08/11] skbuff: introduce {,__}napi_build_skb() which reuses NAPI cache heads

2021-02-10 Thread Alexander Lobakin
Instead of just bulk-flushing skbuff_heads queued up through napi_consume_skb() or __kfree_skb_defer(), try to reuse them on allocation path. If the cache is empty on allocation, bulk-allocate the first 16 elements, which is more efficient than per-skb allocation. If the cache is full on freeing, b

[PATCH v4 net-next 07/11] skbuff: move NAPI cache declarations upper in the file

2021-02-10 Thread Alexander Lobakin
NAPI cache structures will be used for allocating skbuff_heads, so move their declarations a bit upper. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 90 +++ 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/net/core/skbuff.c b

[PATCH v4 net-next 09/11] skbuff: allow to optionally use NAPI cache from __alloc_skb()

2021-02-10 Thread Alexander Lobakin
Reuse the old and forgotten SKB_ALLOC_NAPI to add an option to get an skbuff_head from the NAPI cache instead of inplace allocation inside __alloc_skb(). This implies that the function is called from softirq or BH-off context, not for allocating a clone or from a distant node. Signed-off-by: Alexa

[PATCH v4 net-next 05/11] skbuff: use __build_skb_around() in __alloc_skb()

2021-02-10 Thread Alexander Lobakin
Just call __build_skb_around() instead of open-coding it. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 88566de26cd1..1c6f6ef70339 100644 --- a/net/core/skb

Re: [PATCH V2 4/8] mm/highmem: Add VM_BUG_ON() to mem*_page() calls

2021-02-10 Thread Ira Weiny
On Wed, Feb 10, 2021 at 06:57:30AM +, Chaitanya Kulkarni wrote: > On 2/9/21 22:25, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Add VM_BUG_ON bounds checks to ensure the newly lifted and created page > > memory operations do not result in corrupted data in neighbor pages and > > to m

[PATCH v4 net-next 11/11] skbuff: queue NAPI_MERGED_FREE skbs into NAPI cache instead of freeing

2021-02-10 Thread Alexander Lobakin
napi_frags_finish() and napi_skb_finish() can only be called inside NAPI Rx context, so we can feed NAPI cache with skbuff_heads that got NAPI_MERGED_FREE verdict instead of immediate freeing. Replace __kfree_skb() with __kfree_skb_defer() in napi_skb_finish() and move napi_skb_free_stolen_head() t

[PATCH v4 net-next 10/11] skbuff: allow to use NAPI cache from __napi_alloc_skb()

2021-02-10 Thread Alexander Lobakin
{,__}napi_alloc_skb() is mostly used either for optional non-linear receive methods (usually controlled via Ethtool private flags and off by default) and/or for Rx copybreaks. Use __napi_build_skb() here for obtaining skbuff_heads from NAPI cache instead of inplace allocations. This includes both k

[PATCH 1/4] dt-bindings: net: Add DT bindings for Toshiba Visconti TMPV7700 SoC

2021-02-10 Thread Nobuhiro Iwamatsu
Add device tree bindings for ethernet controller of Toshiba Visconti TMPV7700 SoC series. Signed-off-by: Nobuhiro Iwamatsu --- .../bindings/net/toshiba,visconti-dwmac.yaml | 87 +++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/toshi

[PATCH 2/4] net: stmmac: Add Toshiba Visconti SoCs glue driver

2021-02-10 Thread Nobuhiro Iwamatsu
Add dwmac-visconti to the stmmac driver in Toshiba Visconti ARM SoCs. This patch contains only the basic function of the device. There is no clock control, PM, etc. yet. These will be added in the future. Signed-off-by: Nobuhiro Iwamatsu --- drivers/net/ethernet/stmicro/stmmac/Kconfig | 8 +

[PATCH 3/4] MAINTAINERS: Add entries for Toshiba Visconti ethernet controller

2021-02-10 Thread Nobuhiro Iwamatsu
Add entries for Toshiba Visconti ethernet controller binding and driver. Signed-off-by: Nobuhiro Iwamatsu --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index cbf4b94f89d4..6be4bdaabf32 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2641,8 +2641,1

[PATCH 4/4] arm: dts: visconti: Add DT support for Toshiba Visconti5 ethernet controller

2021-02-10 Thread Nobuhiro Iwamatsu
Add the ethernet controller node in Toshiba Visconti5 SoC-specific DT file. And enable this node in TMPV7708 RM main board's board-specific DT file. Signed-off-by: Nobuhiro Iwamatsu --- .../boot/dts/toshiba/tmpv7708-rm-mbrc.dts | 18 ++ arch/arm64/boot/dts/toshiba/tmpv7708.dtsi

[PATCH 0/4] net: stmmac: Add Toshiba Visconti SoCs glue driver

2021-02-10 Thread Nobuhiro Iwamatsu
Hi, This series is the ethernet driver for Toshiba's ARM SoC, Visconti[0]. This provides DT binding documentation, device driver, MAINTAINER files, and updates to DT files. Best regards, Nobuhiro [0]: https://toshiba.semicon-storage.com/ap-en/semiconductor/product/image-recognition-processor

Re: [PATCH 5/8] lib: bitmap: pair nbits value with region struct

2021-02-10 Thread Andy Shevchenko
On Tue, Feb 09, 2021 at 05:59:04PM -0500, Paul Gortmaker wrote: > A region is a standalone entity to some degree, but it needs to > be paired with a bitmap width in order to set context and determine > if the region even fits into the width of the bitmap. > > This will reduce parameter passing and

Re: [GIT PULL] fscache: I/O API modernisation and netfs helper library

2021-02-10 Thread David Howells
> Linus Torvalds wrote: > > > The PG_fscache bit waiting functions are completely crazy. The comment > > about "this will wake up others" is actively wrong, and the waiting > > function looks insane, because you're mixing the two names for > > "fscache" which makes the code look totally incompreh

Re: [PATCH] misc: fastrpc: fix incorrect usage of dma_map_sgtable

2021-02-10 Thread Srinivas Kandagatla
On 08/02/2021 20:04, Jonathan Marek wrote: dma_map_sgtable() returns 0 on success, which is the opposite of what this code was doing. Fixes: 7cd7edb89437 ("misc: fastrpc: fix common struct sg_table related issues") Signed-off-by: Jonathan Marek --- Reviewed-by: Srinivas Kandagatla dri

[PATCH 1/2] coresight: etm-perf: Support PID tracing for kernel at EL2

2021-02-10 Thread Mathieu Poirier
From: Suzuki K Poulose When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. Thus we should trace the VMID with VMIDOPT set to trace CONTEXTIDR_EL2 instead of CONTEXTIDR_EL1. Given that we have an existing confi

[PATCH 0/2] coresight: Patches for v5.12 (part 2)

2021-02-10 Thread Mathieu Poirier
Hi Greg, Please see if you can add these 2 patches to your 5.12 tally. No worries if you think it is too close to the merge window, I'll simply queue them for the next one. Thanks, Mathieu Leo Yan (1): Documentation: coresight: Add PID tracing description Suzuki K Poulose (1): coresight: e

Re: [GIT PULL] fscache: I/O API modernisation and netfs helper library

2021-02-10 Thread David Howells
Linus Torvalds wrote: > Does the code not hold a refcount already? The attached patch will do that. Note that it's currently based on top of the patch that drops the PG_fscache alias, so it refers to PG_private_2. I've run all three patches through xfstests over afs, both with and without a ca

Re: [PATCH v5 0/4] perf vendor events: Support PMU events for A64FX

2021-02-10 Thread nakamura.s...@fujitsu.com
Hi, John >> I will resend based on tmp.perf/core. > > Actually it is now on perf/core, so that is a better baseline. I will resend based on perf/core. > > I will send it in HTML format. > > Hmmm, that's not better. I think that the mail servers reject html. > > Please consult Documentation/proc

[PATCH 2/2] Documentation: coresight: Add PID tracing description

2021-02-10 Thread Mathieu Poirier
From: Leo Yan After support the PID tracing for the kernel in EL1 or EL2, the usage gets more complicated. This patch gives description for the PMU formats of contextID configs, this can help users to understand how to control the knobs for PID tracing when the kernel is in different ELs. Signe

Re: [PATCH v2 0/9] Introduce vfio-pci-core subsystem

2021-02-10 Thread Alex Williamson
On Wed, 10 Feb 2021 09:34:52 -0400 Jason Gunthorpe wrote: > On Wed, Feb 10, 2021 at 07:52:08AM +, Tian, Kevin wrote: > > > This subsystem framework will also ease on adding vendor specific > > > functionality to VFIO devices in the future by allowing another module > > > to provide the pci_dr

Re: [PATCH] nbd: Convert to DEFINE_SHOW_ATTRIBUTE

2021-02-10 Thread Jens Axboe
On 2/6/21 12:10 AM, winnd...@163.com wrote: > From: Liao Pingfang > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Applied, thanks. -- Jens Axboe

Re: [RFC][PATCH v6 1/7] drm: Add a sharable drm page-pool implementation

2021-02-10 Thread Suren Baghdasaryan
On Wed, Feb 10, 2021 at 5:06 AM Daniel Vetter wrote: > > On Tue, Feb 09, 2021 at 12:16:51PM -0800, Suren Baghdasaryan wrote: > > On Tue, Feb 9, 2021 at 12:03 PM Daniel Vetter wrote: > > > > > > On Tue, Feb 9, 2021 at 6:46 PM Christian König > > > wrote: > > > > > > > > > > > > > > > > Am 09.02.

Re: [PATCH v2 1/2] dt-bindings: phy: add Amlogic G12A Analog MIPI D-PHY bindings

2021-02-10 Thread Rob Herring
On Wed, 10 Feb 2021 09:07:35 +0100, Neil Armstrong wrote: > The Amlogic G12A SoCs embeds an Analog MIPI D-PHY to communicate with DSI > panels, this adds the bindings. > > This Analog D-PHY works with a separate Digital MIPI D-PHY. > > Signed-off-by: Neil Armstrong > --- > .../phy/amlogic,g12a-

Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses

2021-02-10 Thread Tetsuo Handa
On 2021/02/11 1:18, Steven Rostedt wrote: > The point of this exercise is to be able to debug the *same* kernel that > someone is having issues with. And this is to facilitate that debugging. That's too difficult to use. If a problem is not reproducible, we will have no choice but always specify "

Re: [PATCH V2 4/8] mm/highmem: Add VM_BUG_ON() to mem*_page() calls

2021-02-10 Thread Christoph Hellwig
On Wed, Feb 10, 2021 at 08:29:01AM -0800, Ira Weiny wrote: > On Wed, Feb 10, 2021 at 12:55:02PM +, Christoph Hellwig wrote: > > On Tue, Feb 09, 2021 at 10:22:17PM -0800, ira.we...@intel.com wrote: > > > From: Ira Weiny > > > > > > Add VM_BUG_ON bounds checks to ensure the newly lifted and cre

Re: [v7 PATCH 09/12] mm: vmscan: use per memcg nr_deferred of shrinker

2021-02-10 Thread Yang Shi
On Wed, Feb 10, 2021 at 6:37 AM Kirill Tkhai wrote: > > On 10.02.2021 04:52, Yang Shi wrote: > > On Tue, Feb 9, 2021 at 5:27 PM Roman Gushchin wrote: > >> > >> On Tue, Feb 09, 2021 at 09:46:43AM -0800, Yang Shi wrote: > >>> Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's >

Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses

2021-02-10 Thread Steven Rostedt
On Thu, 11 Feb 2021 01:39:41 +0900 Tetsuo Handa wrote: > On 2021/02/11 1:18, Steven Rostedt wrote: > > The point of this exercise is to be able to debug the *same* kernel that > > someone is having issues with. And this is to facilitate that debugging. > > That's too difficult to use. If a pro

Re: [PATCH 6/7] x86/boot/compressed/64: Check SEV encryption in 32-bit boot-path

2021-02-10 Thread Joerg Roedel
On Wed, Feb 10, 2021 at 08:25:11AM -0800, Dave Hansen wrote: > This is all very cute. But, if this fails, it means that the .data > section is now garbage, right?. I guess failing here is less > entertaining than trying to run the kernel with random garbage in .data, > but it doesn't make it very

Re: [PATCH 6/7] x86/boot/compressed/64: Check SEV encryption in 32-bit boot-path

2021-02-10 Thread Dave Hansen
On 2/10/21 2:21 AM, Joerg Roedel wrote: > + /* Store to memory and keep it in the registers */ > + movl%eax, rva(sev_check_data)(%ebp) > + movl%ebx, rva(sev_check_data+4)(%ebp) > + > + /* Enable paging to see if encryption is active */ > + movl%cr0, %edx /* Back

Re: [PATCH 01/20] net: phy: realtek: Fix events detection failure in LPI mode

2021-02-10 Thread Serge Semin
On Tue, Feb 09, 2021 at 10:56:46AM +, Russell King - ARM Linux admin wrote: > On Tue, Feb 09, 2021 at 11:37:29AM +0100, Heiner Kallweit wrote: > > Right, adding something like a genphy_{read,write}_mmd() doesn't make > > too much sense for now. What I meant is just exporting mmd_phy_indirect().

<    3   4   5   6   7   8   9   10   11   12   >