Re: [PATCH 05/13] cpufreq/arch: powerpc: pasemi: Move prototypes to shared header

2020-07-14 Thread Viresh Kumar
On 14-07-20, 20:49, Olof Johansson wrote: > On Tue, Jul 14, 2020 at 8:07 PM Viresh Kumar wrote: > > > > On 14-07-20, 15:50, Lee Jones wrote: > > > If function callers and providers do not share the same prototypes the > > > compiler complains of missing prototypes. Fix this by moving the > > >

Re: [PATCH v3 05/12] powerpc/drmem: make lmb walk a bit more flexible

2020-07-14 Thread Thiago Jung Bauermann
Hari Bathini writes: > @@ -534,7 +537,7 @@ static int __init early_init_dt_scan_memory_ppc(unsigned > long node, > #ifdef CONFIG_PPC_PSERIES > if (depth == 1 && > strcmp(uname, "ibm,dynamic-reconfiguration-memory") == 0) { > - walk_drmem_lmbs_early(node,

Re: [PATCH 05/13] cpufreq/arch: powerpc: pasemi: Move prototypes to shared header

2020-07-14 Thread Olof Johansson
On Tue, Jul 14, 2020 at 8:07 PM Viresh Kumar wrote: > > On 14-07-20, 15:50, Lee Jones wrote: > > If function callers and providers do not share the same prototypes the > > compiler complains of missing prototypes. Fix this by moving the > > already existing prototypes out to a mutually

RE: [PATCH v4 08/10] net: eth: altera: add support for ptp and timestamping

2020-07-14 Thread Ooi, Joyce
> -Original Message- > From: Richard Cochran > Sent: Thursday, July 9, 2020 7:31 PM > To: Ooi, Joyce > Cc: Thor Thayer ; David S . Miller > ; Jakub Kicinski ; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Dalon Westergreen > ; Tan, Ley Foon > ; See, Chin Liang ; > Nguyen, Dinh

Re: [RFC 0/3] kunit: add support to use modules

2020-07-14 Thread David Gow
On Wed, Jul 15, 2020 at 11:11 AM Vitor Massaru Iha wrote: > > Currently, KUnit does not allow the use of tests as a module. > This prevents the implementation of tests that require userspace. If this is what I think it is, thanks! I'll hopefully get a chance to play with it over the next few

Re: [PATCH 1/4] dma-mapping: Add bounced DMA ops

2020-07-14 Thread Claire Chang
On Tue, Jul 14, 2020 at 7:01 PM Christoph Hellwig wrote: > > On Mon, Jul 13, 2020 at 12:55:43PM +0100, Robin Murphy wrote: > > On 2020-07-13 10:12, Claire Chang wrote: > >> The bounced DMA ops provide an implementation of DMA ops that bounce > >> streaming DMA in and out of a specially allocated

Re: [PATCH] mm/hugetlb: hide nr_nodes in the internal of for_each_node_mask_to_[alloc|free]

2020-07-14 Thread Wei Yang
On Tue, Jul 14, 2020 at 02:12:03PM -0700, Mike Kravetz wrote: >On 7/14/20 3:02 AM, Vlastimil Babka wrote: >> On 7/14/20 11:57 AM, Wei Yang wrote: >>> On Tue, Jul 14, 2020 at 11:22:03AM +0200, Vlastimil Babka wrote: On 7/14/20 11:13 AM, Vlastimil Babka wrote: > On 7/14/20 9:34 AM, Wei Yang

Re: [PATCH] cpufreq: imx: Select NVMEM_IMX_OCOTP

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:43, Walter Lozano wrote: > When probing cpufreq for iMX6 the values in the efuse needs to be > read which requires NVMEM_IMX_OCOTP. If this option is not enabled, > the probe will be deferred forever and cpufreq won't be available. > > This patch forces the selection of the

Re: [PATCH 0/4] Bounced DMA support

2020-07-14 Thread Claire Chang
On Mon, Jul 13, 2020 at 7:40 PM Robin Murphy wrote: > > On 2020-07-13 10:12, Claire Chang wrote: > > This series implements mitigations for lack of DMA access control on > > systems without an IOMMU, which could result in the DMA accessing the > > system memory at unexpected times and/or

Re: [PATCH RFC 1/5] f2fs: introduce inmem curseg

2020-07-14 Thread Chao Yu
On 2020/7/7 11:51, Jaegeuk Kim wrote: > On 07/07, Chao Yu wrote: >> On 2020/7/7 11:21, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> Do you have any brief design doc to present the idea? >> >> Hi Jaegeuk, >> >> You mean this whole patchset, right? >> >> I can add a brief design description in patch 0/5.

Re: Re: [PATCH v10 00/17] mtd: spi-nor: add xSPI Octal DTR support

2020-07-14 Thread Tudor.Ambarus
On 7/14/20 10:19 PM, Mark Brown wrote: > On Mon, Jul 13, 2020 at 06:34:12AM +, tudor.amba...@microchip.com wrote: > >> These four patches are looking good, I had just few minor comments. >> If you too think that they are ok, would you take them through the >> SPI tree? If so, I would need an

Re: [PATCH v7 2/8] cpufreq: mediatek: Enable clock and regulator

2020-07-14 Thread Viresh Kumar
On 14-07-20, 21:18, andrew-sh.cheng wrote: > On Mon, 2020-07-13 at 15:09 +0530, Viresh Kumar wrote: > > On 10-07-20, 10:31, Andrew-sh.Cheng wrote: > > > From: "Andrew-sh.Cheng" > > > > > > Need to enable regulator, > > > so that the max/min requested value will be recorded > > > even it is not

Re: [PATCH 00/13] Rid W=1 warnings in CPUFreq

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > After these patches are applied, the build system no longer > complains about any W=0 nor W=1 level

Re: [PATCH 6/6] exec: use force_uaccess_begin during exec and exit

2020-07-14 Thread Eric W. Biederman
Christoph Hellwig writes: > Both exec and exit want to ensure that the uaccess routines actually do > access user pointers. Use the newly added force_uaccess_begin helper > instead of an open coded set_fs for that to prepare for kernel builds > where set_fs() does not exist. Acked-by: "Eric W.

Re: [PATCH 09/13] cpufreq: acpi-cpufreq: Remove unused ID structs

2020-07-14 Thread Viresh Kumar
On 15-07-20, 08:54, Viresh Kumar wrote: > On 14-07-20, 22:03, Lee Jones wrote: > > On Tue, 14 Jul 2020, Rafael J. Wysocki wrote: > > > > > On Tue, Jul 14, 2020 at 4:51 PM Lee Jones wrote: > > > > > > > > Can't see them being used anywhere and the compiler doesn't complain > > > > that they're

[PATCH] arch/x86/boot: Don't add the EFI stub to targets

2020-07-14 Thread Arvind Sankar
vmlinux-objs-y is added to targets, which currently means that the EFI stub gets added to the targets as well. It shouldn't be added since it is built elsewhere. This confuses Makefile.build which interprets the EFI stub as a target $(obj)/$(objtree)/drivers/firmware/efi/libstub/lib.a and

Re: [PATCH 05/13] cpufreq/arch: powerpc: pasemi: Move prototypes to shared header

2020-07-14 Thread Olof Johansson
On Tue, Jul 14, 2020 at 7:50 AM Lee Jones wrote: > > If function callers and providers do not share the same prototypes the > compiler complains of missing prototypes. Fix this by moving the > already existing prototypes out to a mutually convenient location. > > Fixes the following W=1 kernel

Re: [PATCH 09/13] cpufreq: acpi-cpufreq: Remove unused ID structs

2020-07-14 Thread Viresh Kumar
On 14-07-20, 22:03, Lee Jones wrote: > On Tue, 14 Jul 2020, Rafael J. Wysocki wrote: > > > On Tue, Jul 14, 2020 at 4:51 PM Lee Jones wrote: > > > > > > Can't see them being used anywhere and the compiler doesn't complain > > > that they're missing, so ... > > > > Aren't they needed for

Re: [PATCH] riscv: Select ARCH_HAS_DEBUG_VM_PGTABLE

2020-07-14 Thread Anshuman Khandual
On 07/15/2020 02:56 AM, Emil Renner Berthing wrote: > This allows the pgtable tests to be built. > > Signed-off-by: Emil Renner Berthing > --- > > The tests seem to succeed both in Qemu and on the HiFive Unleashed > > Both with and without the recent additions in >

[PATCH -next] drm/i915: Remove unused inline function drain_delayed_work()

2020-07-14 Thread YueHaibing
It is not used since commit 058179e72e09 ("drm/i915/gt: Replace hangcheck by heartbeats") Signed-off-by: YueHaibing --- drivers/gpu/drm/i915/i915_utils.h | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h

[PATCH] powerpc: Fix inconsistent function names

2020-07-14 Thread YueHaibing
The stub helpers name should be consistent with prototypes. mm_context_add_vas_windows() --> mm_context_add_vas_window() mm_context_remove_vas_windows() --> mm_context_remove_vas_window() Fixes: c420644c0a8f ("powerpc: Use mm_context vas_windows counter to issue CP_ABORT") Signed-off-by:

[PATCH] tools/bpftool: Fix error return code in do_skeleton()

2020-07-14 Thread YueHaibing
The error return code should be PTR_ERR(obj) other than PTR_ERR(NULL). Fixes: 5dc7a8b21144 ("bpftool, selftests/bpf: Embed object file inside skeleton") Signed-off-by: YueHaibing --- tools/bpf/bpftool/gen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3 2/2] riscv: Enable per-task stack canaries

2020-07-14 Thread cooper
On 2020/7/15 上午5:37, Palmer Dabbelt wrote: On Fri, 10 Jul 2020 09:19:58 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren This enables the use of per-task stack canary values if GCC has support for emitting the stack canary reference relative to the value of tp, which holds the task

[PATCH -next] USB: musb: Remove unused inline function

2020-07-14 Thread YueHaibing
It is never used, so can remove it. Signed-off-by: YueHaibing --- drivers/usb/musb/musb_host.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/musb/musb_host.h b/drivers/usb/musb/musb_host.h index 32336571f05c..4804d4d85c15 100644 --- a/drivers/usb/musb/musb_host.h +++

Re: ioremap and dma cleanups and fixes for superh (2nd resend)

2020-07-14 Thread Rich Felker
On Wed, Jul 15, 2020 at 01:12:33AM +0200, John Paul Adrian Glaubitz wrote: > Hello! > > I have applied Christoph's full series on top of Linus' tree and I can > confirm that > the kernel boots fine on my SH-7785LCR board. > > Thus, for the whole series of patches: > > Tested-by: John Paul

[RFC 3/3] lib: Convert test_user_copy to KUnit test

2020-07-14 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_user_copy fuctions, from `lib/test_user_copy.c`to KUnit tests. Signed-off-by: Vitor Massaru Iha --- lib/Kconfig.debug | 17 ++ lib/Makefile| 2 +- lib/{test_user_copy.c =>

[RFC 0/3] kunit: add support to use modules

2020-07-14 Thread Vitor Massaru Iha
Currently, KUnit does not allow the use of tests as a module. This prevents the implementation of tests that require userspace. This patchset makes this possible by introducing the use of the root filesystem in KUnit. And it allows the use of tests that can be compiled as a module Vitor Massaru

[RFC 2/3] lib: Allows to borrow mm in userspace on KUnit

2020-07-14 Thread Vitor Massaru Iha
Signed-off-by: Vitor Massaru Iha --- include/kunit/test.h | 1 + lib/kunit/try-catch.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/kunit/test.h b/include/kunit/test.h index 59f3144f009a..49c38bdcb93e 100644 --- a/include/kunit/test.h +++

[RFC 1/3] kunit: tool: Add support root filesystem in kunit-tool

2020-07-14 Thread Vitor Massaru Iha
This makes it possible to use KUnit tests as modules. And with that the tests can run in userspace. The filesystem was created using debootstrap: sudo debootstrap buster buster_rootfs And change the owner of the root filesystem files for your user: sudo chown -R $USER:$USER buster_rootfs

[PATCH -next] powerpc/smp: Remove unused inline functions

2020-07-14 Thread YueHaibing
commit 441c19c8a290 ("powerpc/kvm/book3s_hv: Rework the secondary inhibit code") left behind this, remove it. Signed-off-by: YueHaibing --- arch/powerpc/include/asm/smp.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h index

Re: [PATCH 07/13] cpufreq: powernv-cpufreq: Fix a bunch of kerneldoc related issues

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > Repair problems with formatting and missing attributes/parameters, and > demote header comments which do not meet the required standards > applicable to kerneldoc. > > Fixes the following W=1 kernel build warning(s): > >

Re: [PATCH -next] scsi: sd_zbc: Remove unused inline functions

2020-07-14 Thread Damien Le Moal
On 2020/07/15 11:56, YueHaibing wrote: > They are never used, so can remove it. > > Signed-off-by: YueHaibing > --- > drivers/scsi/sd.h | 6 -- > 1 file changed, 6 deletions(-) > > diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h > index 3a74f4b45134..27c0f4e9b1d4 100644 > ---

Re: [PATCH 06/13] cpufreq: powernv-cpufreq: Functions only used in call-backs should be static

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/cpufreq/powernv-cpufreq.c:669:6: warning: no previous prototype for > ‘gpstate_timer_handler’ [-Wmissing-prototypes] > drivers/cpufreq/powernv-cpufreq.c:902:6: warning: no previous prototype for

Re: [PATCH 05/13] cpufreq/arch: powerpc: pasemi: Move prototypes to shared header

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > If function callers and providers do not share the same prototypes the > compiler complains of missing prototypes. Fix this by moving the > already existing prototypes out to a mutually convenient location. > > Fixes the following W=1 kernel build

ext4: fix spelling typos in ext4_mb_initialize_context

2020-07-14 Thread brookxu
Fix spelling typos in ext4_mb_initialize_context. Signed-off-by: Chunguang Xu ---  fs/ext4/mballoc.c | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index c0a331e..6dc2c6c 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -4399,7

[PATCH 01/13 net-next] net: nl80211.h: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
Drop doubled words in several comments. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/uapi/linux/nl80211.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) --- linux-next-20200714.orig/include/

[PATCH 06/13 net-next] net: 9p: drop duplicate word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "not" in a comment. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/net/9p/transport.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/net/9p/transp

[PATCH 10/13 net-next] net: ip6_fib.h: drop duplicate word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "the" in a comment. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/net/ip6_fib.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/net/ip6_fib.h +++

[PATCH 11/13 net-next] net: mac80211.h: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
Drop doubled words "are" and "by" in comments. Change doubled "to to" to "to the". Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/net/mac80211.h |6 +++--- 1 file changed, 3 inse

[PATCH 08/13 net-next] net: cfg80211.h: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
insertions(+), 2 deletions(-) --- linux-next-20200714.orig/include/net/cfg80211.h +++ linux-next-20200714/include/net/cfg80211.h @@ -423,7 +423,7 @@ struct ieee80211_edmg { * This structure describes a frequency band a wiphy * is able to operate in. * - * @channels: Array of channels the hard

[PATCH 13/13 net-next] net: sctp: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
Drop doubled words in several comments. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/net/sctp/sctp.h|2 +- include/net/sctp/structs.h |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) --- linux-nex

[PATCH 07/13 net-next] net: caif: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
es changed, 3 insertions(+), 3 deletions(-) --- linux-next-20200714.orig/include/net/caif/caif_layer.h +++ linux-next-20200714/include/net/caif/caif_layer.h @@ -156,7 +156,7 @@ struct cflayer { * CAIF packets upwards in the stack. * Packet handling rules: *

[PATCH 02/13 net-next] net: wireless.h: drop duplicate word in comments

2020-07-14 Thread Randy Dunlap
Drop doubled word "threshold" in a comment. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/uapi/linux/wireless.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/u

[PATCH 12/13 net-next] net: regulatory.h: drop duplicate word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "of" in a comment. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/net/regulatory.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/net/regulat

[PATCH 09/13 net-next] net: dsa.h: drop duplicate word in comment

2020-07-14 Thread Randy Dunlap
Drop doubled word "to" in a comment. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/net/dsa.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200714.orig/include/net/dsa.h +++ linux-n

[PATCH 05/13 net-next] net: wimax: fix duplicate words in comments

2020-07-14 Thread Randy Dunlap
deletions(-) --- linux-next-20200714.orig/include/linux/wimax/debug.h +++ linux-next-20200714/include/linux/wimax/debug.h @@ -184,8 +184,8 @@ do { \ /* - * CPP sintatic sugar to generate A_B like symbol names when one of - * the

[PATCH 03/13 net-next] net: qed: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
s(-) --- linux-next-20200714.orig/include/linux/qed/qed_chain.h +++ linux-next-20200714/include/linux/qed/qed_chain.h @@ -130,7 +130,7 @@ struct qed_chain { } pbl_sp; /* Address of first page of the chain - the address is required -* for fastpath operation [consu

[PATCH 04/13 net-next] net: skbuff.h: drop duplicate words in comments

2020-07-14 Thread Randy Dunlap
Drop doubled words in several comments. Signed-off-by: Randy Dunlap Cc: "David S. Miller" Cc: Jakub Kicinski Cc: net...@vger.kernel.org --- include/linux/skbuff.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200714.orig/include/linux/skbuff.h +++

Re: [PATCH 04/13] cpufreq: sti-cpufreq: Fix some formatting and misspelling issues

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > Kerneldoc format for attribute descriptions should be '@.*: '. > > Fixes the following W=1 kernel build warning(s): > > drivers/cpufreq/sti-cpufreq.c:49: warning: cannot understand function > prototype: 'struct sti_cpufreq_ddata ' > > Cc: Patrice Chotard

[PATCH -next] scsi: sd_zbc: Remove unused inline functions

2020-07-14 Thread YueHaibing
They are never used, so can remove it. Signed-off-by: YueHaibing --- drivers/scsi/sd.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index 3a74f4b45134..27c0f4e9b1d4 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h @@ -229,17 +229,11 @@

Re: [PATCH 09/17] dma: sun4i-dma: Demote obvious misuse of kerneldoc to standard comment blocks

2020-07-14 Thread Chen-Yu Tsai
On Tue, Jul 14, 2020 at 7:16 PM Lee Jones wrote: > > No attempt has been made to document any of the demoted functions here. > > Fixes the following W=1 kernel build warning(s): > > drivers/dma/sun4i-dma.c:321: warning: Function parameter or member 'priv' > not described in

Re: [PATCH 03/13] cpufreq: cpufreq_governor: Demote store_sampling_rate() header to standard comment block

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > There is no need for this to be denoted as kerneldoc. > > Fixes the following W=1 kernel build warning(s): > > drivers/cpufreq/cpufreq_governor.c:46: warning: Function parameter or member > 'attr_set' not described in 'store_sampling_rate' >

[PATCH net-next] netpoll: Remove unused inline function netpoll_netdev_init()

2020-07-14 Thread YueHaibing
commit d565b0a1a9b6 ("net: Add Generic Receive Offload infrastructure") left behind this, remove it. Signed-off-by: YueHaibing --- include/linux/netpoll.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index f47af135bd56..e6a2d72e0dc7

[PATCH -next] powerpc/xive: Remove unused inline function xive_kexec_teardown_cpu()

2020-07-14 Thread YueHaibing
commit e27e0a94651e ("powerpc/xive: Remove xive_kexec_teardown_cpu()") left behind this, remove it. Signed-off-by: YueHaibing --- arch/powerpc/include/asm/xive.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/xive.h b/arch/powerpc/include/asm/xive.h index

Re: [PATCH net-next] netpoll: Remove unused inline function netpoll_netdev_init()

2020-07-14 Thread Yuehaibing
Pls ignore this. On 2020/7/15 10:41, YueHaibing wrote: > commit d565b0a1a9b6 ("net: Add Generic Receive Offload infrastructure") > left behind this, remove it. > > Signed-off-by: YueHaibing > --- > include/linux/netpoll.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git

Re: [PATCH 02/13] cpufreq: cpufreq: Demote lots of function headers unworthy of kerneldoc status

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > -/** > +/* > * cpufreq_remove_dev - remove a CPU device Because cpufreq_add_dev() is part of kernel doc, we better keep it. > * > * Removes the cpufreq interface for a CPU device. > @@ -2373,6 +2374,7 @@ EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);

[PATCH -next] soc: integrator: Drop pointless static qualifier in integrator_soc_init()

2020-07-14 Thread YueHaibing
There is no need to have the 'struct regmap *syscon_regmap' variable static since new value always be assigned before use it. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/soc/versatile/soc-integrator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Robbie Ko
Kirill A. Shutemov 於 2020/7/14 下午6:19 寫道: On Tue, Jul 14, 2020 at 11:46:12AM +0200, Vlastimil Babka wrote: On 7/13/20 3:57 AM, Robbie Ko wrote: Vlastimil Babka 於 2020/7/10 下午11:31 寫道: On 7/9/20 4:48 AM, robbieko wrote: From: Robbie Ko When a migrate page occurs, we first create a

Re: [PATCH 01/13] cpufreq: freq_table: Demote obvious misuse of kerneldoc to standard comment blocks

2020-07-14 Thread Viresh Kumar
On 14-07-20, 15:50, Lee Jones wrote: > No attempt has been made to document any of the demoted functions here. > > Fixes the following W=1 kernel build warning(s): > > drivers/cpufreq/freq_table.c:229: warning: Function parameter or member > 'policy' not described in 'show_available_freqs' >

RE: [PATCH 1/3] gpio: mxc: Support module build

2020-07-14 Thread Anson Huang
Hi, Linus > Subject: RE: [PATCH 1/3] gpio: mxc: Support module build > > Hi, Linus > > > Subject: Re: [PATCH 1/3] gpio: mxc: Support module build > > > > On Wed, Jul 8, 2020 at 1:28 AM Anson Huang > > wrote: > > > > > subsys_initcall(gpio_mxc_init); > > > + > > > +MODULE_AUTHOR("Shawn Guo ");

[PATCH net-next] netpoll: Remove unused inline function netpoll_netdev_init()

2020-07-14 Thread YueHaibing
commit d565b0a1a9b6 ("net: Add Generic Receive Offload infrastructure") left behind this, remove it. Signed-off-by: YueHaibing --- include/linux/netpoll.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index f47af135bd56..e6a2d72e0dc7

Re: [PATCH v3 04/12] ppc64/kexec_file: avoid stomping memory used by special regions

2020-07-14 Thread Thiago Jung Bauermann
Hari Bathini writes: > diff --git a/arch/powerpc/include/asm/crashdump-ppc64.h > b/arch/powerpc/include/asm/crashdump-ppc64.h > new file mode 100644 > index 000..90deb46 > --- /dev/null > +++ b/arch/powerpc/include/asm/crashdump-ppc64.h > @@ -0,0 +1,10 @@ > +/* SPDX-License-Identifier:

Re: [PATCH] hwmon: corsair-cpro: Change to hid driver

2020-07-14 Thread Guenter Roeck
On Tue, Jul 14, 2020 at 12:52:30PM +0200, Marius Zachmann wrote: > I found a project which uses hidraw to communicate with the device. > Because I do not want to break any existing userspace code, I > changed this to a hid driver, so hidraw can still be used. > Do I need to include the hid

Re: [PATCH v2] PCI: loongson: Use DECLARE_PCI_FIXUP_EARLY for bridge_class_quirk()

2020-07-14 Thread Tiezhu Yang
On 07/14/2020 11:08 PM, Lorenzo Pieralisi wrote: On Tue, Jul 14, 2020 at 03:37:51PM +0800, Tiezhu Yang wrote: On 06/12/2020 09:30 AM, Tiezhu Yang wrote: Use DECLARE_PCI_FIXUP_EARLY instead of DECLARE_PCI_FIXUP_HEADER for bridge_class_quirk() in pci-loongson.c, otherwise the fixup has no

[PATCH net-next] mptcp: Remove unused inline function mptcp_rcv_synsent()

2020-07-14 Thread YueHaibing
commit 263e1201a2c3 ("mptcp: consolidate synack processing.") left behind this, remove it. Signed-off-by: YueHaibing --- include/net/mptcp.h | 4 1 file changed, 4 deletions(-) diff --git a/include/net/mptcp.h b/include/net/mptcp.h index 46d0487d2b22..02158c257bd4 100644 ---

Re: [RFC PATCH 2/4] rseq: Allow extending struct rseq

2020-07-14 Thread Chris Kennelly
On Tue, Jul 14, 2020 at 2:33 PM Peter Oskolkov wrote: > > On Tue, Jul 14, 2020 at 10:43 AM Mathieu Desnoyers > wrote: > > > > - On Jul 14, 2020, at 1:24 PM, Peter Oskolkov p...@posk.io wrote: > > > > > At Google, we actually extended struct rseq (I will post the patches > > > here once they

[PATCH v1 2/3] perf arm_arch_timer: Convert between counter and timestamp

2020-07-14 Thread Leo Yan
This patch introduces two new APIs, one is to calculate from converting counter to timestamp and provides a reverse flow to convert timestamp to counter. Signed-off-by: Leo Yan --- tools/perf/util/Build| 1 + tools/perf/util/arm_arch_timer.c | 28

[PATCH v1 3/3] perf arm-spe: Enable timestamp with arch timer counter

2020-07-14 Thread Leo Yan
Since the arch timer's counter is used for SPE tracing data, and now it's ready to use arch timer for sample's timestamp in Perf tool, this patch is to enable timestamp by convert the arch timer counter value to the time. After enabling timestamp for Arm SPE with this patch, we can see the

[PATCH v1 1/3] perf tools: Support Arm arch timer counter

2020-07-14 Thread Leo Yan
The Arm arch timer can be used to calculate timestamp, the basic idea is the arch timer's counter value can be recorded in the hardware tracing data, e.g. the arch timer's counter value can be used for Arm CoreSight (not now but might be implemented later) and Arm SPE. So we need a way to convert

[PATCH v1 0/3] Perf tool: Enable Arm arch timer counter and arm-spe's timestamp

2020-07-14 Thread Leo Yan
This patch set is to enable Arm arch timer counter and Arm SPE is the first customer to use arch timer counter for its timestamp. The patch 01 is to retrieve arch timer's parameters from mmaped page; patch 02 provides APIs for the conversion between arch timer's counter and time; patch 03 is to

[PATCH net-next] net: flow: Remove unused inline function

2020-07-14 Thread YueHaibing
It is not used since commit 09c7570480f7 ("xfrm: remove flow cache") Signed-off-by: YueHaibing --- include/net/flow.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/include/net/flow.h b/include/net/flow.h index a50fb77a0b27..929d3ca614d0 100644 --- a/include/net/flow.h

Re: [PATCH net-next] cipso: Remove unused inline functions

2020-07-14 Thread Paul Moore
On Tue, Jul 14, 2020 at 10:21 PM YueHaibing wrote: > > They are not used any more since commit b1edeb102397 ("netlabel: Replace > protocol/NetLabel linking with refrerence counts") > > Signed-off-by: YueHaibing > --- > include/net/cipso_ipv4.h | 12 > 1 file changed, 12

Re: [PATCH 5.4 026/109] drm/sun4i: mixer: Call of_dma_configure if theres an IOMMU

2020-07-14 Thread Chen-Yu Tsai
Hi Greg, On Wed, Jul 15, 2020 at 3:11 AM Greg Kroah-Hartman wrote: > > From: Maxime Ripard > > [ Upstream commit 842ec61f4006a6477a9deaedd69131e9f46e4cb5 ] > > The main DRM device is actually a virtual device so it doesn't have the > iommus property, which is instead on the DMA masters, in this

Re: [RFC PATCH 00/35] Move all PCIBIOS* definitions into arch/x86

2020-07-14 Thread Benjamin Herrenschmidt
On Tue, 2020-07-14 at 18:46 -0500, Bjorn Helgaas wrote: > Yes. I have no problem with that. There are a few cases where it's > important to check for errors, e.g., we read a status register and do > something based on a bit being set. A failure will return all bits > set, and we may do the

Re: [PATCH v3 00/15] HWPOISON: soft offline rework

2020-07-14 Thread Qian Cai
On Tue, Jul 14, 2020 at 12:08:46PM +0200, Oscar Salvador wrote: > On Tue, Jun 30, 2020 at 01:08:03AM -0400, Qian Cai wrote: > > Even after applied the compling fix, > > > > https://lore.kernel.org/linux-mm/20200628065409.GA546944@u2004/ > > > > madvise(MADV_SOFT_OFFLINE) will fail with EIO with

[PATCH net-next] cipso: Remove unused inline functions

2020-07-14 Thread YueHaibing
They are not used any more since commit b1edeb102397 ("netlabel: Replace protocol/NetLabel linking with refrerence counts") Signed-off-by: YueHaibing --- include/net/cipso_ipv4.h | 12 1 file changed, 12 deletions(-) diff --git a/include/net/cipso_ipv4.h b/include/net/cipso_ipv4.h

Re: [PATCH v2] blk-rq-qos: remove redundant finish_wait to rq_qos_wait.

2020-07-14 Thread Stephen Rothwell
Hi all, On Tue, 14 Jul 2020 19:21:24 -0400 Qian Cai wrote: > > On Sun, Jun 28, 2020 at 09:56:25AM -0400, Guo Xuenan wrote: > > It is no need do finish_wait twice after acquiring inflight. > > > > Signed-off-by: Guo Xuenan > > --- > > block/blk-rq-qos.c | 2 -- > > 1 file changed, 2

Re: [PATCH v3 2/9] powerpc/watchpoint: Fix DAWR exception constraint

2020-07-14 Thread Jordan Niethe
On Wed, Jul 8, 2020 at 2:52 PM Ravi Bangoria wrote: > > Pedro Miraglia Franco de Carvalho noticed that on p8, DAR value is > inconsistent with different type of load/store. Like for byte,word > etc. load/stores, DAR is set to the address of the first byte of > overlap between watch range and real

Re: [PATCH v3] mm/percpu: fix 'defined but not used' warning

2020-07-14 Thread Bixuan Cui
On 2020/7/15 9:50, Stephen Rothwell wrote: > I have added this patch to linux-next today. thanks.

Re: [RFC PATCH 00/35] Move all PCIBIOS* definitions into arch/x86

2020-07-14 Thread Benjamin Herrenschmidt
On Tue, 2020-07-14 at 23:02 +0200, Kjetil Oftedal wrote: > > > > > For b), it might be nice to also change other aspects of the > > > interface, e.g. passing a pci_host_bridge pointer plus bus number > > > instead of a pci_bus pointer, or having the callback in the > > > pci_host_bridge

Re: [RFC PATCH 00/35] Move all PCIBIOS* definitions into arch/x86

2020-07-14 Thread Benjamin Herrenschmidt
On Tue, 2020-07-14 at 13:45 -0500, Bjorn Helgaas wrote: > > > fail for valid arguments on a valid pci_device* ? > > I really like this idea. > > pci_write_config_*() has one return value, and only 100ish of 2500 > callers check for errors. It's sometimes possible for config > accessors to

linux-next: build failure after merge of the block tree

2020-07-14 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this: block/blk-timeout.c: In function 'blk_round_jiffies': block/blk-timeout.c:96:14: error: 'CONFIG_HZ_ROUGH_MASK' undeclared (first use in this function) 96 | return (j +

回复: [PATCH v2] tipc: Don't using smp_processor_id() in preemptible code

2020-07-14 Thread Zhang, Qiang
发件人: Eric Dumazet 发送时间: 2020年7月14日 22:15 收件人: Zhang, Qiang; jma...@redhat.com; da...@davemloft.net; k...@kernel.org; tuong.t.l...@dektech.com.au; eric.duma...@gmail.com; Xue, Ying 抄送: net...@vger.kernel.org; tipc-discuss...@lists.sourceforge.net;

[PATCH v2 5/6] arm64: perf: Add cap_user_time_short

2020-07-14 Thread Leo Yan
From: Peter Zijlstra This completes the ARM64 cap_user_time support. Signed-off-by: Peter Zijlstra (Intel) --- arch/arm64/kernel/perf_event.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c index

[PATCH v2 4/6] perf: Add perf_event_mmap_page::cap_user_time_short ABI

2020-07-14 Thread Leo Yan
From: Peter Zijlstra In order to support short clock counters, provide an ABI extension. As a whole: u64 time, delta, cyc = read_cycle_counter(); + if (cap_user_time_short) + cyc = time_cycle + ((cyc - time_cycle) & time_mask); delta = mul_u64_u32_shr(cyc, time_mult,

[PATCH v2 0/6] arm64: perf: Proper cap_user_time* support

2020-07-14 Thread Leo Yan
This patch set is rebased for Peter's patch set to support cap_user_time/cap_user_time_short ABI for Arm64, and export Arm arch timer counter related parameters from kernel to Perf tool. In this version, there have two changes comparing to Peter's original patch set [1]: The first change is for

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Robbie Ko
Vlastimil Babka 於 2020/7/14 下午5:46 寫道: On 7/13/20 3:57 AM, Robbie Ko wrote: Vlastimil Babka 於 2020/7/10 下午11:31 寫道: On 7/9/20 4:48 AM, robbieko wrote: From: Robbie Ko When a migrate page occurs, we first create a migration entry to replace the original pte, and then go to

[PATCH v2 1/6] sched_clock: Expose struct clock_read_data

2020-07-14 Thread Leo Yan
From: Peter Zijlstra In order to support perf_event_mmap_page::cap_time features, an architecture needs, aside from a userspace readable counter register, to expose the exact clock data so that userspace can convert the counter register into a correct timestamp. Provide struct clock_read_data

[PATCH v2 2/6] arm64: perf: Implement correct cap_user_time

2020-07-14 Thread Leo Yan
From: Peter Zijlstra As reported by Leo; the existing implementation is broken when the clock and counter don't intersect at 0. Use the sched_clock's struct clock_read_data information to correctly implement cap_user_time and cap_user_time_zero. Note that the ARM64 counter is architecturally

[PATCH v2 3/6] arm64: perf: Only advertise cap_user_time for arch_timer

2020-07-14 Thread Leo Yan
From: Peter Zijlstra When sched_clock is running on anything other than arch_timer, don't advertise cap_user_time*. Requested-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- arch/arm64/kernel/perf_event.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-)

[PATCH v2 6/6] tools headers UAPI: Update tools's copy of linux/perf_event.h

2020-07-14 Thread Leo Yan
To get the changes in the commit: "perf: Add perf_event_mmap_page::cap_user_time_short ABI" This update is a prerequisite to add support for short clock counters related ABI extension. Signed-off-by: Leo Yan --- tools/include/uapi/linux/perf_event.h | 23 --- 1 file

RE: [PATCH] exfat: retain 'VolumeFlags' properly

2020-07-14 Thread Namjae Jeon
> Thanks for your reply. > > > > Also, rename ERR_MEDIUM to MED_FAILURE. > > I think that MEDIA_FAILURE looks better. > > I think so too. > If so, should I change VOL_DIRTY to VOLUME_DIRTY? Yes, maybe. > > > > -int exfat_set_vol_flags(struct super_block *sb, unsigned short > > > new_flag) > > >

Re: [PATCH] leds: add NCT6795D driver

2020-07-14 Thread Alexandre Courbot
Hi Pavel, On Wed, Jul 15, 2020 at 7:33 AM Pavel Machek wrote: > > Hi! > > > Add support for the LED feature of the NCT6795D chip found on some > > motherboards, notably MSI ones. The LEDs are typically used using a > > RGB connector so this driver creates one LED device for each color > >

[PATCH v2] fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins.

2020-07-14 Thread Tetsuo Handa
syzbot is reporting general protection fault in bitfill_aligned() [1] caused by integer underflow in bit_clear_margins(). The cause of this problem is when and how do_vc_resize() updates vc->vc_{cols,rows}. If vc_do_resize() fails (e.g. kzalloc() fails) when var.xres or var.yres is going to

Re: [PATCH v3] mm/percpu: fix 'defined but not used' warning

2020-07-14 Thread Stephen Rothwell
Hi all, On Wed, 15 Jul 2020 08:25:19 +0800 Bixuan Cui wrote: > > Gcc report the following warning without CONFIG_MEMCG_KMEM: > > mm/percpu-internal.h:145:29: warning: 'pcpu_chunk_type' defined > but not used [-Wunused-function] > static enum pcpu_chunk_type pcpu_chunk_type(struct pcpu_chunk

Re: [PATCH v5 0/7] x86/boot: Remove run-time relocations from compressed kernel

2020-07-14 Thread Sedat Dilek
On Wed, Jul 15, 2020 at 2:41 AM Arvind Sankar wrote: > > The compressed kernel currently contains bogus run-time relocations in > the startup code in head_{32,64}.S, which are generated by the linker, > but must not actually be processed at run-time. > > This generates warnings when linking with

Re: [PATCH] userfaultfd: avoid the duplicated release for userfaultfd_ctx

2020-07-14 Thread Xu, Yanfei
Add maintainer Alexander Viro :) On 7/15/20 12:12 AM, yanfei...@windriver.com wrote: From: Yanfei Xu when get_unused_fd_flags gets failure, userfaultfd_ctx_cachep will be freed by userfaultfd_fops's release function which is the userfaultfd_release. So we could return directly after fput().

Re: [PATCH v4 70/75] x86/head/64: Don't call verify_cpu() on starting APs

2020-07-14 Thread Kees Cook
On Tue, Jul 14, 2020 at 02:09:12PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The APs are not ready to handle exceptions when verify_cpu() is called > in secondary_startup_64. Eek, no. MSR_IA32_MISC_ENABLE_XD_DISABLE needs to be cleared very early during CPU startup; this can't just be

Re: [PATCH v4 34/75] x86/head/64: Build k/head64.c with -fno-stack-protector

2020-07-14 Thread Kees Cook
On Tue, Jul 14, 2020 at 02:08:36PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The code inserted by the stack protector does not work in the early > boot environment because it uses the GS segment, at least with memory > encryption enabled. Make sure the early code is compiled without

Re: [PATCH v4 29/75] x86/idt: Move two function from k/idt.c to i/a/desc.h

2020-07-14 Thread Kees Cook
On Tue, Jul 14, 2020 at 02:08:31PM +0200, Joerg Roedel wrote: > From: Joerg Roedel I'm not a huge fan of the Subject. :) Maybe: x86/idt: Make IDT init functions static inlines > > Move these two functions from kernel/idt.c to include/asm/desc.h: > > * init_idt_data() > *

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