RE: [PATCH] sched/rt: Print curr when RT throttling activated

2020-12-08 Thread Tianxianting
Thanks, We met an issue that a normal thread can't get cpu, And at this moment, we found 'sched: RT throttling activated' log. So I think this patch is useful for such issue. Could I get more comments? Thanks in advance -Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org

[PATCH] docs: clean up sysctl/kernel: titles, version

2020-12-08 Thread Stephen Kitt
This cleans up a few titles with extra colons, and removes the reference to kernel 2.2. The docs don't yet cover *all* of 5.10 or 5.11, but I think they're close enough. Most entries are documented, and have been checked against current kernels. Signed-off-by: Stephen Kitt --- Documentation/admi

Re: [patch 3/3] tick: Annotate tick_do_timer_cpu data races

2020-12-08 Thread Peter Zijlstra
On Mon, Dec 07, 2020 at 07:19:51PM +0100, Marco Elver wrote: > On Mon, 7 Dec 2020 at 18:46, Thomas Gleixner wrote: > > On Mon, Dec 07 2020 at 13:09, Peter Zijlstra wrote: > > > On Sun, Dec 06, 2020 at 10:12:56PM +0100, Thomas Gleixner wrote: > > >> +if (data_race(tick_do_timer_cpu) ==

Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name

2020-12-08 Thread Krzysztof Kozlowski
On Tue, Dec 08, 2020 at 03:16:35AM +, S.j. Wang wrote: > Hi > > > > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski wrote: > > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > > > > Error log: > > > > sysfs: cannot create duplicate filename > > '/bus/platform

[PATCH 0/3] mfd: bd9571mwv: Add support for BD9574MWF

2020-12-08 Thread Yoshihiro Shimoda
Add BD574MWF support into bd9571mwv mfd driver. Latest Ebisu-4D boards has this chip instead of BD9571MWV so that we need this patch. Khiem Nguyen (2): mfd: bd9571mwv: Make the driver more generic mfd: bd9571mwv: Add support for BD9574MWF Yoshihiro Shimoda (1): mfd: bd9571mwv: Use the SPDX

[PATCH 3/3] mfd: bd9571mwv: Add support for BD9574MWF

2020-12-08 Thread Yoshihiro Shimoda
From: Khiem Nguyen The new PMIC BD9574MWF inherits features from BD9571MWV. Add the support of new PMIC to existing bd9571mwv driver. Signed-off-by: Khiem Nguyen [shimoda: rebase and refactor] Signed-off-by: Yoshihiro Shimoda --- drivers/mfd/bd9571mwv.c | 92

[PATCH 1/3] mfd: bd9571mwv: Use the SPDX license identifier

2020-12-08 Thread Yoshihiro Shimoda
Use the SPDX license identifier instead of a local description. Signed-off-by: Yoshihiro Shimoda --- drivers/mfd/bd9571mwv.c | 10 +- include/linux/mfd/bd9571mwv.h | 10 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/drivers/mfd/bd9571mwv.c b/drivers/mfd

RE: [PATCH v1 3/3] scsi: ufs: Make UPIU trace easier differentiate among CDB, OSF, and TM

2020-12-08 Thread Avri Altman
> > On Mon, 7 Dec 2020 16:40:51 + > Avri Altman wrote: > > > > > > > On Mon, 7 Dec 2020 07:57:27 + > > > Avri Altman wrote: > > > > > > > > > > > > > TP_printk( > > > > > - "%s: %s: HDR:%s, CDB:%s", > > > > > + "%s: %s: HDR:%s, %s:%s", > > > > >

Re: [PATCH] drm/bridge: ti-sn65dsi86: Implement the pwm_chip

2020-12-08 Thread Uwe Kleine-König
Hello, On Mon, Dec 07, 2020 at 10:40:22PM -0600, Bjorn Andersson wrote: > The SN65DSI86 provides the ability to supply a PWM signal on GPIO 4, > with the primary purpose of controlling the backlight of the attached > panel. Add an implementation that exposes this using the standard PWM > framework

[PATCH 2/3] mfd: bd9571mwv: Make the driver more generic

2020-12-08 Thread Yoshihiro Shimoda
From: Khiem Nguyen Since the driver supports BD9571MWV PMIC only, this patch makes the functions and data structure become more generic so that it can support other PMIC variants as well. Signed-off-by: Khiem Nguyen [shimoda: rebase and refactor] Signed-off-by: Yoshihiro Shimoda --- drivers/m

Re: [PATCH 1/2] dt-bindings: vendor-prefixes: Add an entry for AmpereComputing.com

2020-12-08 Thread Krzysztof Kozlowski
On Tue, 8 Dec 2020 at 05:41, Joel Stanley wrote: > > Hello Rob, > > On Tue, 8 Dec 2020 at 04:37, Quan Nguyen wrote: > > > > Add "ampere" entry for Ampere Computing LLC: amperecomputing.com > > > > Reviewed-by: Andrew Jeffery > > Reviewed-by: Joel Stanley > > Signed-off-by: Quan Nguyen > > Sign

Re: [PATCH 065/141] airo: Fix fall-through warnings for Clang

2020-12-08 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva

Re: [PATCH 2/2] ARM: dts: aspeed: Add device tree for Ampere's Mt. Jade BMC

2020-12-08 Thread Krzysztof Kozlowski
On Tue, 8 Dec 2020 at 05:42, Joel Stanley wrote: > > On Tue, 8 Dec 2020 at 04:37, Quan Nguyen wrote: > > > > The Mt. Jade BMC is an ASPEED AST2500-based BMC for the Mt. Jade > > hardware reference platform with Ampere's Altra Processor Family. > > > > Reviewed-by: Andrew Jeffery > > Reviewed-by:

Re: [patch 3/3] tick: Annotate tick_do_timer_cpu data races

2020-12-08 Thread Peter Zijlstra
On Mon, Dec 07, 2020 at 11:44:06AM -0800, Paul E. McKenney wrote: > Also, in this particular case, why data_race() rather than READ_ONCE()? > Do we really expect the compiler to be able to optimize this case > significantly without READ_ONCE()? It's about intent and how the code reads. READ_ONCE(

Re: [PATCH 00/20] ethernet: ucc_geth: assorted fixes and simplifications

2020-12-08 Thread Rasmus Villemoes
On 08/12/2020 04.07, Qiang Zhao wrote: > On 06/12/2020 05:12, Rasmus Villemoes wrote: > >> I think patch 2 is a bug fix as well, but I'd like someone from NXP to >> comment. > > It 's ok for me. I was hoping for something a bit more than that. Can you please go check with the people who made

Re: [PATCH -V6 RESEND 2/3] NOT kernel/man-pages: man2/set_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING

2020-12-08 Thread Huang, Ying
Hi, Alex, Sorry for late, I just notice this email today. "Alejandro Colomar (mailing lists; readonly)" writes: > Hi Huang Ying, > > Please see a few fixes below. > > Michael, as always, some question for you too ;) > > Thanks, > > Alex > > On 12/2/20 9:42 AM, Huang Ying wrote: >> Signed-off-by

Re: [PATCH 4/4] dt-bindings: hwmon: convert AD ADM1275 bindings to dt-schema

2020-12-08 Thread Krzysztof Kozlowski
On Mon, Dec 07, 2020 at 04:19:16PM -0800, Guenter Roeck wrote: > On Mon, Dec 07, 2020 at 03:12:59PM -0600, Rob Herring wrote: > > On Tue, Nov 17, 2020 at 11:08:07PM +0100, Krzysztof Kozlowski wrote: > > > Convert the Analog Devices ADM1275 bindings to dt-schema. > > > > > > Signed-off-by: Krzyszto

Re: [PATCH v1 bpf-next 03/11] tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.

2020-12-08 Thread Martin KaFai Lau
On Tue, Dec 08, 2020 at 03:27:14PM +0900, Kuniyuki Iwashima wrote: > From: Martin KaFai Lau > Date: Mon, 7 Dec 2020 12:14:38 -0800 > > On Sun, Dec 06, 2020 at 01:03:07AM +0900, Kuniyuki Iwashima wrote: > > > From: Martin KaFai Lau > > > Date: Fri, 4 Dec 2020 17:42:41 -0800 > > > > On Tue,

[PATCH 3/3] f2fs-tools:sload.f2fs compress: Fixed automake

2020-12-08 Thread Robin Hsu
From: Robin Hsu Fixed automake for sload.f2fs compression support ./configure automatcally compile in liblzo2 (for sload to support -a LZO) and liblz4 (for sload to support -a LZ4), whhen the libraries present. Signed-off-by: Robin Hsu --- configure.ac | 12 fsck/Makefile.am

[PATCH v3 0/3] f2fs-tools: sload compression support

2020-12-08 Thread Robin Hsu
From: Robin Hsu * 3 patch set: #1: added some #ifdef for easier support #2: main code change #3: automake changes v2 fix (from v1): fixed a bug and a more elegant error handling flow. v3 fix (from v2): ./configure (automake) automatically determine to compile in lzo and/or lz4 compression

[PATCH 2/3] f2fs-tools:sload.f2fs compression support

2020-12-08 Thread Robin Hsu
From: Robin Hsu Add F2FS compression support for sload * Support file extension filter, either default-accept or default-deny policy * Support choice of compression algorithm, LZO (version 2) or LZ4 (default) * Support custom log of cluster size * Support minimum number of compressed blocks p

Re: [PATCH 03/11] mm: don't pass "enum lru_list" to lru list addition functions

2020-12-08 Thread Alex Shi
在 2020/12/8 上午6:09, Yu Zhao 写道: > > __count_vm_events(PGACTIVATE, nr_pages); > @@ -543,14 +542,14 @@ static void lru_deactivate_file_fn(struct page *page, > struct lruvec *lruvec) >* It can make readahead confusing. But race window >* is _really_

[PATCH 1/3] f2fs-tools: Added #ifdef WITH_func

2020-12-08 Thread Robin Hsu
From: Robin Hsu Add proprocessor defines (options) 'WITH_func', where func = DUMP, DEFRAG, RESIZE, or SLOAD Signed-off-by: Robin Hsu --- fsck/main.c | 16 1 file changed, 16 insertions(+) diff --git a/fsck/main.c b/fsck/main.c index e70048b..b20498f 100644 --- a/fsck/main.c +

[PATCH v3 2/3] f2fs-tools:sload.f2fs compression support

2020-12-08 Thread Robin Hsu
From: Robin Hsu Add F2FS compression support for sload * Support file extension filter, either default-accept or default-deny policy * Support choice of compression algorithm, LZO (version 2) or LZ4 (default) * Support custom log of cluster size * Support minimum number of compressed blocks p

Re: [PATCH v2 1/3] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-12-08 Thread Chao Yu
On 2020/12/7 9:23, Gao Xiang wrote: Previously, we played around with magical page->mapping for short-lived temporary pages since we need to identify different types of pages in the same pcluster but both invalidated and short-lived temporary pages can have page->mapping == NULL. It was considere

[PATCH v3 3/3] f2fs-tools:sload.f2fs compress: Fixed automake

2020-12-08 Thread Robin Hsu
From: Robin Hsu Fixed automake for sload.f2fs compression support ./configure automatcally compile in liblzo2 (for sload to support -a LZO) and liblz4 (for sload to support -a LZ4), whhen the libraries present. Signed-off-by: Robin Hsu --- configure.ac | 12 fsck/Makefile.am

Re: [PATCH v2 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-08 Thread Jiaxun Yang
在 2020/12/8 15:44, Qing Zhang 写道: add spi and amd node support. Hi Qing, Thanks for your patch. What is AMD node? Also given that different boards may have different flash, is it a wise idea to hardcode here? Thanks. - Jiaxun Signed-off-by: Qing Zhang --- v2: - Add spi about pci

[PATCH v3 0/3] f2fs-tools: sload compression support

2020-12-08 Thread Robin Hsu
From: Robin Hsu * 3 patch set: #1: added some #ifdef for easier support #2: main code change #3: automake changes v2 fix (from v1): fixed a bug and a more elegant error handling flow. v3 fix (from v2): ./configure (automake) automatically determine to compile in lzo and/or lz4 compression

Re: [PATCH v1 bpf-next 03/11] tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.

2020-12-08 Thread Kuniyuki Iwashima
From: Martin KaFai Lau Date: Mon, 7 Dec 2020 23:34:41 -0800 > On Tue, Dec 08, 2020 at 03:31:34PM +0900, Kuniyuki Iwashima wrote: > > From: Martin KaFai Lau > > Date: Mon, 7 Dec 2020 12:33:15 -0800 > > > On Thu, Dec 03, 2020 at 11:14:24PM +0900, Kuniyuki Iwashima wrote: > > > > From: Eri

[PATCH v3 1/3] f2fs-tools: Added #ifdef WITH_func

2020-12-08 Thread Robin Hsu
From: Robin Hsu Add proprocessor defines (options) 'WITH_func', where func = DUMP, DEFRAG, RESIZE, or SLOAD Signed-off-by: Robin Hsu --- fsck/main.c | 16 1 file changed, 16 insertions(+) diff --git a/fsck/main.c b/fsck/main.c index e70048b..b20498f 100644 --- a/fsck/main.c +

Re: [PATCH v4 1/6] cpufreq: sun50i: add efuse_xlate to get efuse version.

2020-12-08 Thread Maxime Ripard
Hi, On Tue, Dec 08, 2020 at 03:19:28PM +0800, Shuosheng Huang wrote: > It's better to use efuse_xlate to extract the differentiated part > regarding different SoC. > > Signed-off-by: Shuosheng Huang Please wait a bit for reviews before sending a new version. You've sent three versions in a day,

Re: [PATCH 03/11] mm: don't pass "enum lru_list" to lru list addition functions

2020-12-08 Thread Alex Shi
在 2020/12/8 上午6:09, Yu Zhao 写道: > The "enum lru_list" parameter to add_page_to_lru_list() and > add_page_to_lru_list_tail() is redundant in the sense that it can > be extracted from the "struct page" parameter by page_lru(). > > A caveat is that we need to make sure PageActive() or > PageUnevic

Kannst du mir helfen?

2020-12-08 Thread Mrs. Cristina Campbell
Lieber geliebter, Bitte lesen Sie dies langsam und sorgfältig durch, da dies möglicherweise eine der wichtigsten E-Mails ist, die Sie jemals erhalten. Ich bin Frau Cristina Campbell, ich war mit dem verstorbenen Edward Campbell verheiratet. Er arbeitete früher bei der Shell Petroleum Development C

Re: [PATCH v2 1/3] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-12-08 Thread Gao Xiang
Hi Chao, On Tue, Dec 08, 2020 at 04:15:59PM +0800, Chao Yu wrote: > On 2020/12/7 9:23, Gao Xiang wrote: > > Previously, we played around with magical page->mapping for short-lived > > temporary pages since we need to identify different types of pages in > > the same pcluster but both invalidated a

Re: [PATCH -next] fs/ntfs: fix set but not used variable 'log_page_mask'

2020-12-08 Thread Anton Altaparmakov
Hi Andrew, Can you please apply this? Thanks a lot in advance! Hi Zheng, Thank you for the patch! Best regards, Anton > On 12 Mar 2020, at 04:13, Zheng Zengkai wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > fs/ntfs/logfile.c: In function ntfs_check_logfile: > fs/ntf

Re: [RFC PATCH v1 3/4] KVM: arm64: GICv4.1: Restore VLPI's pending state to physical side

2020-12-08 Thread Shenming Lu
On 2020/12/1 20:15, Shenming Lu wrote: > On 2020/12/1 19:50, Marc Zyngier wrote: >> On 2020-12-01 11:40, Shenming Lu wrote: >>> On 2020/12/1 18:55, Marc Zyngier wrote: On 2020-11-30 07:23, Shenming Lu wrote: Hi Shenming, > We are pondering over this problem these days, but s

[PATCH 2/2] PCI/ASPM: Use capability to override ASPM via sysfs

2020-12-08 Thread Kai-Heng Feng
If we are to use sysfs to change ASPM settings, we may want to override the default ASPM policy. So use ASPM capability, instead of default policy, to be able to use all possible ASPM states. Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/aspm.c | 3 +-- 1 file changed, 1 insertion(+), 2 del

Re: [PATCH v2] ath10k: skip the wait for completion to recovery in shutdown path

2020-12-08 Thread Sai Prakash Ranjan
On Thu, Nov 26, 2020 at 9:16 AM Youghandhar Chintala wrote: > --- a/drivers/net/wireless/ath/ath10k/snoc.c > +++ b/drivers/net/wireless/ath/ath10k/snoc.c > @@ -1790,9 +1790,6 @@ static int ath10k_snoc_remove(struct platform_device > *pdev) > > reinit_completion(&ar->driver_recovery); > >

[PATCH 1/2] PCI/ASPM: Store disabled ASPM states

2020-12-08 Thread Kai-Heng Feng
If we use sysfs to disable L1 ASPM, then enable one L1 ASPM substate again, all other substates will also be enabled too: link# grep . * clkpm:1 l0s_aspm:1 l1_1_aspm:1 l1_1_pcipm:1 l1_2_aspm:1 l1_2_pcipm:1 l1_aspm:1 link# echo 0 > l1_aspm link# grep . * clkpm:1 l0s_aspm:1 l1_1_aspm:0 l1_1_pcipm:

Re: linux-next: Fixes tag needs some work in the pinctrl tree

2020-12-08 Thread Linus Walleij
On Mon, Dec 7, 2020 at 12:39 AM Andrew Jeffery wrote: > On Mon, 7 Dec 2020, at 06:46, Stephen Rothwell wrote: > > Maybe you meant > > > > Fixes: 9b92f5c51e9a ("pinctrl: aspeed: Fix GPI only function problem.") > > Right, looks like I accidentally grabbed 6726fbff19bf from the 5.9 stable > tree.

Please ignore "sload compression support" patches without "v3"

2020-12-08 Thread Robin Hsu
From: Robin Hsu Hi, All, Due to my mistakes, patches for sload compression support were sent without "v3" (version 3). That was corrected by resending them again, with the correct subject (with "v3"). Please ignore those emails without "v3". I apologize for the inconvenience. Best regards, R

Re: Why the auxiliary cipher in gss_krb5_crypto.c?

2020-12-08 Thread Ard Biesheuvel
On Mon, 7 Dec 2020 at 15:15, David Howells wrote: > > Ard Biesheuvel wrote: > > > > I wonder if it would help if the input buffer and output buffer didn't > > > have to correspond exactly in usage - ie. the output buffer could be used > > > at a slower rate than the input to allow for buffering i

Re: [PATCH v2 1/3] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-12-08 Thread Gao Xiang
On Tue, Dec 08, 2020 at 04:15:59PM +0800, Chao Yu wrote: > On 2020/12/7 9:23, Gao Xiang wrote: ... > > } > > -static inline bool z_erofs_put_stagingpage(struct list_head *pagepool, > > - struct page *page) > > +static inline bool z_erofs_put_shortlivedpage(

Re: [PATCH v1 1/4] cpufreq: schedutil: Add util to struct sg_cpu

2020-12-08 Thread Viresh Kumar
On 07-12-20, 17:28, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Instead of passing util and max between functions while computing the > utilization and capacity, store the former in struct sg_cpu (along > with the latter and bw_dl). > > This will allow the current utilization value to

Re: [PATCH net] net: ll_temac: Fix potential NULL dereference in temac_probe()

2020-12-08 Thread Esben Haabendal
Zhang Changzhong writes: > platform_get_resource() may fail and in this case a NULL dereference > will occur. > > Fix it to use devm_platform_ioremap_resource() instead of calling > platform_get_resource() and devm_ioremap(). > > This is detected by Coccinelle semantic patch. > > @@ > expression

[PATCH] perf: Break deadlock involving exec_update_mutex

2020-12-08 Thread Peter Zijlstra
On Mon, Dec 07, 2020 at 10:40:11AM -0800, Linus Torvalds wrote: > On Mon, Dec 7, 2020 at 1:10 AM Peter Zijlstra wrote: > > > > > PeterZ, is there something I'm missing? > > > > Like this? > > > > > > https://lkml.kernel.org/r/20200828123720.gz1362...@hirez.programming.kicks-ass.net > > Yes, ex

Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name

2020-12-08 Thread Krzysztof Kozlowski
On Tue, Dec 08, 2020 at 09:03:34AM +0100, Krzysztof Kozlowski wrote: > On Tue, Dec 08, 2020 at 03:16:35AM +, S.j. Wang wrote: > > Hi > > > > > > > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski wrote: > > > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > >

Re: [PATCH] userfaultfd: prevent non-cooperative events vs mcopy_atomic races

2020-12-08 Thread Mike Rapoport
On Sun, Dec 06, 2020 at 08:31:39PM -0800, Nadav Amit wrote: > > Whenever I run into a non-standard and non-trivial synchronization algorithm > in the kernel (and elsewhere), I become very confused and concerned. I > raised my question since I wanted to modify the code and could not figure > out ho

Re: [PATCH -next] panic: complete the flush of the hard deadlock log messages to the serial port

2020-12-08 Thread xuqiang (M)
在 2020/11/24 11:22, xuqiang (M) 写道: 在 2020/11/24 3:52, Andrew Morton 写道: On Mon, 23 Nov 2020 13:13:59 + Xu Qiang wrote: when hardlockup_all_cpu_backtrace is on, and there are a large number of cores in the system, it takes a long time to output the hard deadlock logs of all cores to t

[PATCH] psi: fix monitor for root cgroup

2020-12-08 Thread Odin Ugedal
Fix NULL pointer dereference when adding new psi monitor to the root cgroup. PSI files for root cgroup was introduced in df5ba5be742 by using system wide psi struct when reading, but file write/monitor was not properly fixed. Since the PSI config for the root cgroup isn't initialized, the current i

RE: [PATCH v1 3/3] scsi: ufs: Make UPIU trace easier differentiate among CDB, OSF, and TM

2020-12-08 Thread Avri Altman
> > On Mon, 2020-12-07 at 07:57 +, Avri Altman wrote: > > > TP_printk( > > > - "%s: %s: HDR:%s, CDB:%s", > > > + "%s: %s: HDR:%s, %s:%s", > > > __get_str(str), __get_str(dev_name), > > > __print_hex(__entry->hdr, sizeof(__e

Re: memory leak in generic_parse_monolithic [+PATCH]

2020-12-08 Thread David Howells
Randy Dunlap wrote: > Otherwise please look at the patch below. The patch won't help, since it's not going through sys_fsconfig() - worse, it introduces two new errors. > fc->source = param->string; > - param->string = NULL; This will cause the string now attached to

Re: [PATCH 0/2] SCMI performance protocol power scale interface

2020-12-08 Thread Lukasz Luba
On 12/8/20 4:48 AM, Viresh Kumar wrote: On 07-12-20, 12:43, Viresh Kumar wrote: On 24-11-20, 10:43, Lukasz Luba wrote: Hi all, The Energy Model (EM) supports power values expressed in an abstract scale via new API. The SCMI performance protocol provides the information about power scale. Th

[PATCH v3 1/5] powerpc/book3s64/kuap: Improve error reporting with KUAP

2020-12-08 Thread Christophe Leroy
From: Aneesh Kumar K.V This partially reverts commit eb232b162446 ("powerpc/book3s64/kuap: Improve error reporting with KUAP") and update the fault handler to print [ 55.022514] Kernel attempted to access user page (7e6725b7) - exploit attempt? (uid: 0) [ 55.022528] BUG: Unable to handl

[PATCH v3 4/5] powerpc/fault: Avoid heavy search_exception_tables() verification

2020-12-08 Thread Christophe Leroy
search_exception_tables() is an heavy operation, we have to avoid it. When KUAP is selected, we'll know the fault has been blocked by KUAP. Otherwise, it behaves just as if the address was already in the TLBs and no fault was generated. Signed-off-by: Christophe Leroy Reviewed-by: Nicholas Piggin

[PATCH v3 2/5] powerpc/mm: sanity_check_fault() should work for all, not only BOOK3S

2020-12-08 Thread Christophe Leroy
The verification and message introduced by commit 374f3f5979f9 ("powerpc/mm/hash: Handle user access of kernel address gracefully") applies to all platforms, it should not be limited to BOOK3S. Make the BOOK3S version of sanity_check_fault() the one for all, and bail out earlier if not BOOK3S. Fi

[PATCH v3 5/5] powerpc/fault: Perform exception fixup in do_page_fault()

2020-12-08 Thread Christophe Leroy
Exception fixup doesn't require the heady full regs saving, do it from do_page_fault() directly. For that, split bad_page_fault() in two parts. As bad_page_fault() can also be called from other places than handle_page_fault(), it will still perform exception fixup and fallback on __bad_page_fault

[PATCH v3 3/5] powerpc/fault: Unnest definition of page_fault_is_write() and page_fault_is_bad()

2020-12-08 Thread Christophe Leroy
To make it more readable, separate page_fault_is_write() and page_fault_is_bad() to avoir several levels of #ifdefs Reviewed-by: Nicholas Piggin Signed-off-by: Christophe Leroy --- arch/powerpc/mm/fault.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/m

Re: linux-next: Fixes tag needs some work in the clk tree

2020-12-08 Thread Geert Uytterhoeven
Hi Stephen, On Mon, Dec 7, 2020 at 11:06 PM Stephen Rothwell wrote: > In commit > > c3f207f6d23d ("clk: renesas: r8a779a0: Make > rcar_r8a779a0_cpg_clk_register() static") > > Fixes tag > > Fixes: c07439dea94050b6 ("clk: renesas: cpg-mssr: Add support for R-Car > V3U") > > has these problem

Re: [RFC PATCH v3.1 21/27] mmc: sdhci-uhs2: add irq() and others

2020-12-08 Thread Adrian Hunter
On 8/12/20 9:37 am, AKASHI Takahiro wrote: > On Tue, Dec 01, 2020 at 06:46:39PM +0200, Adrian Hunter wrote: >> On 6/11/20 4:27 am, AKASHI Takahiro wrote: >>> This is a UHS-II version of sdhci's request() operation. >>> It handles UHS-II related command interrupts and errors. >>> >>> Signed-off-by:

Re: [RFC V2 3/3] s390/mm: Define arch_get_mappable_range()

2020-12-08 Thread David Hildenbrand
>> >> Both changes only make sense with an in-tree user. I'm planning on using >> this functionality in virtio-mem code. I can pickup your patches, drop >> the superfluous checks, and use it from virtio-mem code. Makese sense >> (BTW, looks like we'll see aarch64 support for virtio-mem soon)? > >

Re: [PATCH v2 2/4] spi: Add devicetree bindings documentation for Loongson SPI

2020-12-08 Thread Sergei Shtylyov
Hello! On 08.12.2020 10:44, Qing Zhang wrote: Add spi-ls7a binding documentation. Signed-off-by: Qing Zhang --- Documentation/devicetree/bindings/spi/spi-ls7a.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-ls

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Johannes Thumshirn
On 07/12/2020 20:27, Javier González wrote: > Good point. We can share some performance data on how Simple Copy scales > in terms of bw / latency and the CPU usage. Do you have anything else in > mind? > With an emulation in the kernel, we could make the usd "backend" implementation configurable

Re: [PATCH 1/3] drivers: gpio: bt8xx: prefer dev_err()/dev_warn() over of raw printk

2020-12-08 Thread Linus Walleij
On Thu, Dec 3, 2020 at 7:24 PM Enrico Weigelt, metux IT consult wrote: > For logging in device contexts, dev_*() functions are preferred over > raw printk(), which also print out device name. > > Signed-off-by: Enrico Weigelt, metux IT consult All three patches applied. Thanks for tidying this

Re: [PATCH v2 1/3] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-12-08 Thread Chao Yu
Hi Xiang, On 2020/12/8 16:23, Gao Xiang wrote: Hi Chao, On Tue, Dec 08, 2020 at 04:15:59PM +0800, Chao Yu wrote: On 2020/12/7 9:23, Gao Xiang wrote: Previously, we played around with magical page->mapping for short-lived temporary pages since we need to identify different types of pages in th

Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name

2020-12-08 Thread S.j. Wang
> > > > > > > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski wrote: > > > > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > > > > > > Error log: > > > > > > sysfs: cannot create duplicate filename > > > > '/bus/platform/devices/3000.bus' > > > > > > > > > > >

Re: [PATCH 04/11] mm: don't pass "enum lru_list" to trace_mm_lru_insertion()

2020-12-08 Thread Alex Shi
Reviewed-by: Alex Shi 在 2020/12/8 上午6:09, Yu Zhao 写道: > The parameter is redundant in the sense that it can be extracted > from the "struct page" parameter by page_lru() correctly. > > Signed-off-by: Yu Zhao > --- > include/trace/events/pagemap.h | 11 --- > mm/swap.c

Re: [PATCH v2 4/4] soc: samsung: exynos-chipid: convert to driver and merge exynos-asv

2020-12-08 Thread 'Krzysztof Kozlowski'
On Tue, Dec 08, 2020 at 12:31:23PM +0530, Pankaj Dubey wrote: > > > > -Original Message- > > From: Krzysztof Kozlowski > > Sent: Tuesday, December 8, 2020 12:35 AM > > To: Krzysztof Kozlowski ; linux-arm- > > ker...@lists.infradead.org; linux-samsung-...@vger.kernel.org; linux- > > ker..

Re: [PATCH] mm/page_alloc: simplify kmem cgroup charge/uncharge code

2020-12-08 Thread Hui Su
On Mon, Dec 07, 2020 at 09:28:46AM -0800, Shakeel Butt wrote: > On Mon, Dec 7, 2020 at 6:22 AM Hui Su wrote: > > The reason to keep __memcg_kmem_[un]charge_page functions is that they > were called in the very hot path. Can you please check the performance > impact of your change and if the gener

Re: [RFC PATCH v3.1 00/27] Add support UHS-II for GL9755

2020-12-08 Thread Adrian Hunter
On 8/12/20 9:58 am, AKASHI Takahiro wrote: > Adrian, > > On Thu, Dec 03, 2020 at 11:55:23AM +0200, Adrian Hunter wrote: >> On 1/12/20 5:09 am, AKASHI Takahiro wrote: >>> Adrian, >>> >>> Thank you for your review comments. >>> >>> On Thu, Nov 26, 2020 at 10:18:55AM +0200, Adrian Hunter wrote:

Re: [PATCH v2 1/3] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-12-08 Thread Gao Xiang
On Tue, Dec 08, 2020 at 04:44:12PM +0800, Chao Yu wrote: > Hi Xiang, ... > > > > I discussed this case in the original thread, > > https://lore.kernel.org/r/20200519100612.GA3687@hsiangkao-HP-ZHAN-66-Pro-G1 > > > > The previous conclusion is that for EROFS case (see Matthew's reply) this > > pa

Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name

2020-12-08 Thread Krzysztof Kozlowski
On Tue, Dec 08, 2020 at 08:44:51AM +, S.j. Wang wrote: > > > > > > > > > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski wrote: > > > > > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > > > > > > > Error log: > > > > > > > sysfs: cannot create duplicate filena

Re: timers: Move clearing of base::timer_running under base::lock

2020-12-08 Thread Sebastian Andrzej Siewior
On 2020-12-07 08:06:48 [-0800], Paul E. McKenney wrote: > > Yes, but it triggers frequently. Like `rcuc' is somehow is aligned with > > the timeout. > > Given that a lot of RCU processing is event-driven based on timers, > and given that the scheduling-clock interrupts are synchronized for > energ

linux-next: build failure after merge of the wireless-drivers-next tree

2020-12-08 Thread Stephen Rothwell
Hi all, After merging the wireless-drivers-next tree, today's linux-next build (powerpc allyesconfig) failed like this: ld: drivers/net/wireless/realtek/rtw88/rtw8822ce.o:(.rodata.rtw_pm_ops+0x0): multiple definition of `rtw_pm_ops'; drivers/net/wireless/realtek/rtw88/rtw8822be.o:(.rodata.rtw_p

Re: [PATCH v2 2/3] erofs: insert to managed cache after adding to pcl

2020-12-08 Thread Chao Yu
On 2020/12/7 9:23, Gao Xiang wrote: Previously, it could be some concern to call add_to_page_cache_lru() with page->mapping == Z_EROFS_MAPPING_STAGING (!= NULL). In contrast, page->private is used instead now, so partially revert commit 5ddcee1f3a1c ("erofs: get rid of __stagingpage_alloc helper

[PATCH] net: 8021q: vlan: reduce noise in driver initialization

2020-12-08 Thread Enrico Weigelt, metux IT consult
If drivers work properly, they should be silent. Thus remove the unncessary noise von initialization. Signed-off-by: Enrico Weigelt, metux IT consult --- net/8021q/vlan.c | 5 - 1 file changed, 5 deletions(-) diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index f292e0267bb9..9f4b1b9a37e4

Re: [PATCH v1 2/4] cpufreq: schedutil: Adjust utilization instead of frequency

2020-12-08 Thread Viresh Kumar
On 07-12-20, 17:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > When avoiding reduction of the frequency after the target CPU has > been busy since the previous frequency update, adjust the utilization > instead of adjusting the frequency, because doing so is more prudent > (it is done

Re: [PATCH 1/7] net: 8021q: remove unneeded MODULE_VERSION() usage

2020-12-08 Thread Enrico Weigelt, metux IT consult
On 05.12.20 16:53, Greg KH wrote: >> How do we feel about deleting this not really informative message >> altogether in a future patch? > > It too should be removed. If drivers are working properly, they are > quiet. Just sent a separate patch for removing this message. I'll rebase my patch queu

[PATCH] tracing: Disable ftrace selftests when any tracer is running

2020-12-08 Thread Masami Hiramatsu
Disable ftrace selftests when any tracer (kernel command line options like ftrace=, trace_events=, kprobe_events=, and boot-time tracing) starts running because selftest can disturb it. Currently ftrace= and trace_events= are checked, but kprobe_events has a different flag, and boot-time tracing d

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

2020-12-08 Thread Kalle Valo
Stephen Rothwell writes: > After merging the wireless-drivers-next tree, today's linux-next build > (powerpc allyesconfig) failed like this: > > ld: drivers/net/wireless/realtek/rtw88/rtw8822ce.o:(.rodata.rtw_pm_ops+0x0): > multiple definition of `rtw_pm_ops'; > drivers/net/wireless/realtek/rtw

Re: [PATCH] drm/ttm: fix unused function warning

2020-12-08 Thread Martin Peres
On 04/12/2020 18:51, Arnd Bergmann wrote: From: Arnd Bergmann ttm_pool_type_count() is not used when debugfs is disabled: drivers/gpu/drm/ttm/ttm_pool.c:243:21: error: unused function 'ttm_pool_type_count' [-Werror,-Wunused-function] static unsigned int ttm_pool_type_count(struct ttm_pool_typ

Re: [RFC PATCH v2 1/6] power: supply: add cap2ocv batinfo helper

2020-12-08 Thread Linus Walleij
On Fri, Dec 4, 2020 at 1:41 PM Matti Vaittinen wrote: > The power-supply core supports concept of OCV (Open Circuit Voltage) => > SOC (State Of Charge) conversion tables. Usually these tables are used > to estimate SOC based on OCV. Some systems use so called "Zero Adjust" > where at the near end

Re: [PATCH sl-b 1/6] mm: Add kmem_last_alloc() to return last allocation for memory block

2020-12-08 Thread Joonsoo Kim
On Mon, Dec 07, 2020 at 09:25:54AM -0800, Paul E. McKenney wrote: > On Mon, Dec 07, 2020 at 06:02:53PM +0900, Joonsoo Kim wrote: > > Hello, Paul. > > > > On Fri, Dec 04, 2020 at 04:40:52PM -0800, paul...@kernel.org wrote: > > > From: "Paul E. McKenney" > > > > > > There are kernel facilities suc

Re: [PATCH] userfaultfd: prevent non-cooperative events vs mcopy_atomic races

2020-12-08 Thread Nadav Amit
> On Dec 8, 2020, at 12:34 AM, Mike Rapoport wrote: > > On Sun, Dec 06, 2020 at 08:31:39PM -0800, Nadav Amit wrote: >> Whenever I run into a non-standard and non-trivial synchronization algorithm >> in the kernel (and elsewhere), I become very confused and concerned. I >> raised my question since

[PATCH v3 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2020-12-08 Thread Vinod Koul
Add device tree binding Documentation details for Qualcomm SM8350 pinctrl driver. Signed-off-by: Vinod Koul --- Changes since v1: - Fix pins pattern - Fix example indent .../bindings/pinctrl/qcom,sm8350-pinctrl.yaml | 151 ++ 1 file changed, 151 insertions(+) create mode 1

[PATCH v3 2/2] pinctrl: qcom: Add SM8350 pinctrl driver

2020-12-08 Thread Vinod Koul
From: Raghavendra Rao Ananta This adds pincontrol driver for tlmm block found in SM8350 SoC Signed-off-by: Raghavendra Rao Ananta Signed-off-by: Jeevan Shriram [vkoul: rebase and tidy up for upstream] Signed-off-by: Vinod Koul --- Changes since v1: - remove reserved gpios Changes since v2:

Re: [PATCH v2] powerpc/powermac: Fix low_sleep_handler with CONFIG_VMAP_STACK

2020-12-08 Thread Giuseppe Sacco
Hello Christophe, Il giorno mar, 08/12/2020 alle 05.24 +, Christophe Leroy ha scritto: > low_sleep_handler() can't restore the context from standard > stack because the stack can hardly be accessed with MMU OFF. > > Store everything in a global storage area instead of storing > a pointer to t

Re: [PATCH] arm64: dts: imx8mn: Fix duplicate node name

2020-12-08 Thread S.j. Wang
> On Tue, Dec 08, 2020 at 08:44:51AM +, S.j. Wang wrote: > > > > > > > > > > > > On Mon, Dec 07, 2020 at 02:21:40PM +0100, Krzysztof Kozlowski > wrote: > > > > > > > On Mon, Dec 07, 2020 at 02:53:24PM +0800, Shengjiu Wang wrote: > > > > > > > > Error log: > > > > > > > > sysfs: cannot create du

Re: [PATCH v1 3/4] cpufreq: Add special-purpose fast-switching callback for drivers

2020-12-08 Thread Viresh Kumar
On 07-12-20, 17:35, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > First off, some cpufreq drivers (eg. intel_pstate) can pass hints > beyond the current target frequency to the hardware and there are no > provisions for doing that in the cpufreq framework. In particular, > today the dri

Re: [PATCH] EDAC/mv64x60: Remove orphan mv64x60 driver

2020-12-08 Thread Michael Ellerman
Borislav Petkov writes: > On Mon, Dec 07, 2020 at 03:02:53PM +1100, Michael Ellerman wrote: >> The mv64x60 EDAC driver depends on CONFIG_MV64X60. But that symbol is >> not user-selectable, and the last code that selected it was removed >> with the C2K board support in 2018, see: >> >> 92c8c16f3

Re: [PATCH v1 bpf-next 03/11] tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.

2020-12-08 Thread Kuniyuki Iwashima
From: Martin KaFai Lau Date: Tue, 8 Dec 2020 00:13:28 -0800 > On Tue, Dec 08, 2020 at 03:27:14PM +0900, Kuniyuki Iwashima wrote: > > From: Martin KaFai Lau > > Date: Mon, 7 Dec 2020 12:14:38 -0800 > > > On Sun, Dec 06, 2020 at 01:03:07AM +0900, Kuniyuki Iwashima wrote: > > > > From: Mar

Re: [PATCH 08/11] mm: fold page_lru_base_type() into its sole caller

2020-12-08 Thread Alex Shi
Reviewed-by: Alex Shi 在 2020/12/8 上午6:09, Yu Zhao 写道: > We've removed all other references to this function. > > Signed-off-by: Yu Zhao > --- > include/linux/mm_inline.h | 27 ++- > 1 file changed, 6 insertions(+), 21 deletions(-) > > diff --git a/include/linux/mm_inli

Re: [PATCH 0/4] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2020-12-08 Thread Guido Günther
Hi Liu, On Fri, Dec 04, 2020 at 03:33:40PM +0800, Liu Ying wrote: > Hi, > > This series adds i.MX8qxp LVDS PHY mode support for the Mixel PHY in the > Freescale i.MX8qxp SoC. This looks good to me from the NWL and actual phy driver part. I'll comment in the individual patches but leave comments o

[PATCH v3 01/20] dmaengine: ti: k3-udma: Correct normal channel offset when uchan_cnt is not 0

2020-12-08 Thread Peter Ujfalusi
According to different sections of the TRM, the hchan_cnt of CAP3 includes the number of uchan in UDMA, thus the start offset of the normal channels are hchan_cnt. Fixes: daf4ad0499aa4 ("dmaengine: ti: k3-udma: Query throughput level information from hardware") Signed-off-by: Peter Ujfalusi ---

[PATCH v3 06/20] dmaengine: ti: k3-udma-glue: Configure the dma_dev for rings

2020-12-08 Thread Peter Ujfalusi
Rings in RING mode should be using the DMA device for DMA API as in this mode the ringacc will not access the ring memory in any ways, but the DMA is. Fix up the ring configuration and set the dma_dev unconditionally and let the ringacc driver to select the correct device to use for DMA API. Sign

[PATCH v3 07/20] dmaengine: of-dma: Add support for optional router configuration callback

2020-12-08 Thread Peter Ujfalusi
Additional configuration for the DMA event router might be needed for a channel which can not be done during device_alloc_chan_resources callback since the router information is not yet present for the drivers. If there is a need for additional configuration for the channel if DMA router is in use

[PATCH v3 12/20] dt-bindings: dma: ti: Add document for K3 PKTDMA

2020-12-08 Thread Peter Ujfalusi
New binding document for Texas Instruments K3 Packet DMA (PKTDMA). PKTDMA is introduced as part of AM64. Signed-off-by: Peter Ujfalusi --- .../devicetree/bindings/dma/ti/k3-pktdma.yaml | 172 ++ 1 file changed, 172 insertions(+) create mode 100644 Documentation/devicetree/bindi

[PATCH v3 02/20] dmaengine: ti: k3-udma: Wait for peer teardown completion if supported

2020-12-08 Thread Peter Ujfalusi
Set the TDTYPE if it is supported on the platform (j721e) which will cause UDMAP to wait for the remote peer to finish the teardown before returning the teardown completed message. Signed-off-by: Peter Ujfalusi Tested-by: Keerthy Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 12

[PATCH v3 05/20] dmaengine: ti: k3-udma-glue: Get the ringacc from udma_dev

2020-12-08 Thread Peter Ujfalusi
If of_xudma_dev_get() returns with the valid udma_dev then the driver already got the ringacc, there is no need to execute of_k3_ringacc_get_by_phandle() for each channel via the glue layer. Signed-off-by: Peter Ujfalusi --- drivers/dma/ti/k3-udma-glue.c| 6 +- drivers/dma/ti/k3-udma-pri

[PATCH v3 16/20] soc: ti: k3-ringacc: add AM64 DMA rings support.

2020-12-08 Thread Peter Ujfalusi
From: Grygorii Strashko The DMAs in AM64 have built in rings compared to AM654/J721e/J7200 where a separate and generic ringacc is used. The ring SW interface is similar to ringacc with some major architectural differences, like They are part of the DMA (BCDMA or PKTDMA). They are dual mode ri

  1   2   3   4   5   6   7   8   9   10   >