Re: [PATCH bpf-next v1 3/8] bpf: Introduce help function to validate ksym's type.

2020-08-22 Thread Hao Luo
Ah, I see bpf_core_types_are_compat() after sync'ing my local repo. It seems the perfect fit for my use case. I only found the btf_equal_xxx() defined in btf.c when posting these patches. I can test and use bpf_core_types_are_compat() in v2. Thanks for pointing it out and explaining the public APIs

Re: [Cocci] coccinelle: Convert comma to semicolons (was Re: [PATCH] checkpatch: Add test for comma use that should be semicolon)

2020-08-22 Thread Julia Lawall
On Fri, 21 Aug 2020, Joe Perches wrote: > On Fri, 2020-08-21 at 23:35 -0400, Valdis Klētnieks wrote: > > On Fri, 21 Aug 2020 18:08:08 -0700, Joe Perches said: > > > (forwarding on to kernel-janitors/mentees and kernelnewbies) > > > > > > Just fyi for anyone that cares: > > > > > > A janitorial t

Re: PATCH: rtsx_pci driver - don't disable the rts5229 card reader on Intel NUC boxes

2020-08-22 Thread Chris Clayton
Hi Ricky. On 05/08/2020 13:48, Chris Clayton wrote: > Hi Ricky >> >> Ah, OK. I'll prepare the patch and send it to you once I've tested it. >> > > Please see the patch included below. As you suggested, it removes the code > that does the OC power down on card readers > that are not members o

Re: [PATCH bpf-next v1 5/8] bpf/selftests: ksyms_btf to test typed ksyms

2020-08-22 Thread Hao Luo
On Fri, Aug 21, 2020 at 4:03 PM Andrii Nakryiko wrote: > > On Thu, Aug 20, 2020 at 10:32 AM Yonghong Song wrote: > > > > > > > > On 8/19/20 3:40 PM, Hao Luo wrote: > > > Selftests for typed ksyms. Tests two types of ksyms: one is a struct, > > > the other is a plain int. This tests two paths in t

Re: linux-next: Signed-off-by missing for commit in the mips-fixes tree

2020-08-22 Thread Thomas Bogendoerfer
On Sat, Aug 22, 2020 at 10:17:06AM +1000, Stephen Rothwell wrote: > Hi all, > > Commit > > 1697ee6e540a ("Revert "MIPS: op_model_mipsxx: Fix non-executable code bug"") > > is missing a Signed-off-by from its author and committer. > > Reverts are commits too. d'oh, it's fixed now. Thomas. -

Re: KASAN: use-after-free Write in vcs_read

2020-08-22 Thread syzbot
syzbot has bisected this issue to: commit b1c32fcfadf5593ab7a63261cc8a5747c36e627e Author: Jiri Slaby Date: Tue Aug 18 08:57:05 2020 + vc_screen: extract vcs_read_buf_header bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13259dee90 start commit: 494d311a Add linux-

Re: KASAN: use-after-free Write in vcs_read

2020-08-22 Thread Jiri Slaby
On 22. 08. 20, 9:31, syzbot wrote: > syzbot has bisected this issue to: > > commit b1c32fcfadf5593ab7a63261cc8a5747c36e627e > Author: Jiri Slaby > Date: Tue Aug 18 08:57:05 2020 + > > vc_screen: extract vcs_read_buf_header It's like 7th e-mail about the very same issue. Can it be susp

Re: [PATCH bpf-next v1 5/8] bpf/selftests: ksyms_btf to test typed ksyms

2020-08-22 Thread Andrii Nakryiko
On Sat, Aug 22, 2020 at 12:27 AM Hao Luo wrote: > > On Fri, Aug 21, 2020 at 4:03 PM Andrii Nakryiko > wrote: > > > > On Thu, Aug 20, 2020 at 10:32 AM Yonghong Song wrote: > > > > > > > > > > > > On 8/19/20 3:40 PM, Hao Luo wrote: > > > > Selftests for typed ksyms. Tests two types of ksyms: one i

drivers/video/fbdev/wmt_ge_rops.c:41:6: warning: no previous prototype for 'wmt_ge_fillrect'

2020-08-22 Thread kernel test robot
months ago config: ia64-randconfig-r035-20200822 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

Re: [PATCH bpf-next v1 6/8] bpf: Introduce bpf_per_cpu_ptr()

2020-08-22 Thread Hao Luo
On Fri, Aug 21, 2020 at 8:31 PM Andrii Nakryiko wrote: > > On Fri, Aug 21, 2020 at 8:26 PM Andrii Nakryiko > wrote: > > > > On Wed, Aug 19, 2020 at 3:42 PM Hao Luo wrote: > > > > > > Add bpf_per_cpu_ptr() to help bpf programs access percpu vars. > > > bpf_per_cpu_ptr() has the same semantic as p

[rcu:rcu/next] BUILD SUCCESS 72cc80705122926b2717ad420abc6e135c453768

2020-08-22 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: 72cc80705122926b2717ad420abc6e135c453768 rcu: Remove unused "cpu" parameter from rcu_report_qs_rdp() elapsed time: 721m configs tested: 69 configs skipped: 2 The following configs have be

Re: [PATCH 0/9] platform/x86: panasonic-laptop: add optical drive, brightness and battery charging threshold

2020-08-22 Thread Harald Welte
Dear Keneth and Linux kernel developers, as I have discontinued maintenance of the panasonic-laptop driver (and recently sent a related MAINTAINERS update to that fact), I would like to suggest Kenneth as the new maintainer for this driver. Regards, Harald -- - Harald Welteht

Re: [PATCH bpf-next v1 6/8] bpf: Introduce bpf_per_cpu_ptr()

2020-08-22 Thread Andrii Nakryiko
On Sat, Aug 22, 2020 at 12:49 AM Hao Luo wrote: > > On Fri, Aug 21, 2020 at 8:31 PM Andrii Nakryiko > wrote: > > > > On Fri, Aug 21, 2020 at 8:26 PM Andrii Nakryiko > > wrote: > > > > > > On Wed, Aug 19, 2020 at 3:42 PM Hao Luo wrote: > > > > > > > > Add bpf_per_cpu_ptr() to help bpf programs a

[PATCH] MIPS: Paravirt: remove remaining pieces of paravirt

2020-08-22 Thread Thomas Bogendoerfer
Commit 35546aeede8e ("MIPS: Retire kvm paravirt") removed kvm paravirt support, but missed arch/mips/include/mach-paravirt. Remove it as well. Signed-off-by: Thomas Bogendoerfer --- .../asm/mach-paravirt/cpu-feature-overrides.h | 35 --- arch/mips/include/asm/mach-paravirt/irq.h

[PATCH] MIPS: Remove PNX833x alias NXP_STB22x

2020-08-22 Thread Thomas Bogendoerfer
Remove another unused MIPS platform. Signed-off-by: Thomas Bogendoerfer --- arch/mips/Kbuild.platforms | 1 - arch/mips/Kconfig| 30 --- arch/mips/configs/pnx8335_stb225_defconfig | 77 -- arch/mips/include/asm/mach-pnx833x/gpio

[GIT PULL] KVM changes for Linux 5.9-rc2

2020-08-22 Thread Paolo Bonzini
Linus, The following changes since commit e792415c5d3e0eb52527cce228a72e4392f8cae2: KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup (2020-08-11 07:19:41 -0400) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch

[PATCH v3 03/11] usb: pci-quirks: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Mathias Nyman Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/host/pci-quirks.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c

[PATCH v3 01/11] usb: early: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Lu Baolu Cc: Mathias Nyman Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/early/xhci-dbc.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/earl

[PATCH v3 09/11] usb: phy: phy-mv-usb: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v3: re-align argument of log suggested by Sergei v2: udelay 10us instead of 20us according to kerneldoc --- drivers/usb/phy/phy-mv-usb.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) di

[PATCH v3 11/11] iopoll: update kerneldoc of read_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Arguments description of read_poll_timeout_atomic() is out of date, update it. Cc: Alan Stern Signed-off-by: Chunfeng Yun --- v3: fix typo in commit message suggested by Sergei v2: new patch, suggested by Alan --- include/linux/iopoll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v3 10/11] usb: udc: net2280: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Alan Stern Cc: Felipe Balbi Signed-off-by: Chunfeng Yun Acked-by: Alan Stern --- v3: no changes v2: add Acked-by Alan --- drivers/usb/gadget/udc/net2280.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff

[PATCH v3 07/11] usb: isp1760-hcd: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/isp1760/isp1760-hcd.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.

[PATCH v3 05/11] usb: oxu210hp-hcd: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/host/oxu210hp-hcd.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c ind

[PATCH] net: dccp: Convert to use the preferred fallthrough macro

2020-08-22 Thread Miaohe Lin
Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Miaohe Lin --- net/dccp/ccids/ccid3.c | 2 +- net/dccp/feat.c| 3 ++- net/dccp/input.c | 10 +- net/dccp/options.c | 2 +- net/dccp/output.c | 8 net/dccp/proto.c | 8

[PATCH v3 04/11] usb: xhci-rcar: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Mathias Nyman Cc: Yoshihiro Shimoda Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/host/xhci-rcar.c | 43 --- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/drivers/

[PATCH v3 06/11] usb: fotg210-hcd: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/host/fotg210-hcd.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 19

[PATCH v3 02/11] usb: early: ehci-dbgp: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: "Eric W. Biederman" Cc: Petr Mladek Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/early/ehci-dbgp.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/usb/early/ehci-dbgp.c b/driv

[PATCH v3 08/11] usb: phy-ulpi-viewport: convert to readl_poll_timeout_atomic()

2020-08-22 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- drivers/usb/phy/phy-ulpi-viewport.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-ulpi-viewport.c b/drivers/usb/phy/phy-ulpi-viewport.c i

Re: [PATCH] io_uring: Convert to use the fallthrough macro

2020-08-22 Thread linmiaohe
Friendly ping :) >From: Miaohe Lin > >Convert the uses of fallthrough comments to fallthrough macro. > >Signed-off-by: Hongxiang Lou >Signed-off-by: Miaohe Lin >--- > fs/io_uring.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/fs/io_uring.c b/fs/io_uring.c index 2a3af95

Re: [PATCH 0/9] platform/x86: panasonic-laptop: add optical drive, brightness and battery charging threshold

2020-08-22 Thread Andy Shevchenko
On Sat, Aug 22, 2020 at 10:53 AM Harald Welte wrote: > > Dear Keneth and Linux kernel developers, > > as I have discontinued maintenance of the panasonic-laptop driver (and > recently sent a related MAINTAINERS update to that fact), I would like > to suggest Kenneth as the new maintainer for this

[PATCH] sunrpc: Convert to use the preferred fallthrough macro

2020-08-22 Thread Miaohe Lin
Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Miaohe Lin --- net/sunrpc/auth_gss/gss_krb5_wrap.c | 2 +- net/sunrpc/clnt.c | 22 +++--- net/sunrpc/xprt.c | 2 +- net/sunrpc/xprtrdma/verbs.c | 2 +- net

ERROR: modpost: "min_low_pfn" undefined!

2020-08-22 Thread kernel test robot
config: microblaze-randconfig-r021-20200822 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

[PATCH] net: wireless: Convert to use the preferred fallthrough macro

2020-08-22 Thread Miaohe Lin
Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Miaohe Lin --- net/wireless/chan.c| 4 ++-- net/wireless/mlme.c| 2 +- net/wireless/nl80211.c | 20 ++-- net/wireless/scan.c| 2 +- net/wireless/sme.c | 4 ++-- n

[PATCH] gpu: amd: Remove duplicate semicolons at the end of line

2020-08-22 Thread Youling Tang
Remove duplicate semicolons at the end of line. Signed-off-by: Youling Tang --- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +- drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vc

drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c:932:2: warning: 'strncpy' specified bound 128 equals destination size

2020-08-22 Thread kernel test robot
weeks ago config: ia64-randconfig-r035-20200822 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-22 Thread Segher Boessenkool
Hi Arvind, On Fri, Aug 21, 2020 at 11:55:52PM -0400, Arvind Sankar wrote: > Cc Segher. > > Segher, we were looking at gcc PR82602, where IRA could reorder volatile > asm's (reported on ARM). The fix was backported to gcc-6. I know ;-) > Do you know if > there is any reason the problem couldn't

Re: [PATCH v2] hv_utils: drain the timesync packets on onchannelcallback

2020-08-22 Thread Wei Liu
On Fri, Aug 21, 2020 at 03:28:49PM +, Vineeth Pillai wrote: > There could be instances where a system stall prevents the timesync > packaets to be consumed. And this might lead to more than one packet Typo "packaet". No need to resend. I can fix this while committing this patch. Wei.

Re: [PATCH v2 2/2] x86/resctrl: Enable user to view thread or core throttling mode

2020-08-22 Thread Borislav Petkov
On Fri, Aug 21, 2020 at 11:25:17AM -0700, Fenghua Yu wrote: > Early Intel hardware implementations of Memory Bandwidth Allocation (MBA) > could only control bandwidth at the processor core level. This meant that > when two processes with different bandwidth allocations ran simultaneously > on the s

[PATCH] swap: rename SWP_FS to SWAP_FS_OPS to avoid ambiguity

2020-08-22 Thread Gao Xiang
SWP_FS is used to make swap_{read,write}page() go through the filesystem, and it's only used for swap files over NFS for now. Otherwise it will directly submit IO to blockdev according to swapfile extents reported by filesystems in advance. As Matthew pointed out [1], SWP_FS naming is somewhat con

Re: [PATCH v2 5/9] iommu/ioasid: Introduce ioasid_set private ID

2020-08-22 Thread kernel test robot
-base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jacob-Pan/IOASID-extensions-for-guest-SVA/20200822-123111 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: mips-randconfig-r015-20200822 (a

Re: [PATCH v2 5/9] iommu/ioasid: Introduce ioasid_set private ID

2020-08-22 Thread kernel test robot
-base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jacob-Pan/IOASID-extensions-for-guest-SVA/20200822-123111 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: ia64-randconfig-r003-20200822 (a

Re: [PATCH 1/3] drm/bridge: ps8640: Return an error for incorrect attach flags

2020-08-22 Thread Sam Ravnborg
Hi Enric. On Mon, Jun 15, 2020 at 10:53:18PM +0200, Enric Balletbo i Serra wrote: > Bridge drivers that implement the new model only shall return an error > from their attach() handler when the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag > is not set. So make sure we return an error because only the new >

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-22 Thread Sedat Dilek
On Sat, Aug 22, 2020 at 10:42 AM Segher Boessenkool wrote: > > Hi Arvind, > > On Fri, Aug 21, 2020 at 11:55:52PM -0400, Arvind Sankar wrote: > > Cc Segher. > > > > Segher, we were looking at gcc PR82602, where IRA could reorder volatile > > asm's (reported on ARM). The fix was backported to gcc-6.

Re: [PATCH 2/3] drm/bridge: ps8640: Print an error if VDO control fails

2020-08-22 Thread Sam Ravnborg
On Mon, Jun 15, 2020 at 10:53:19PM +0200, Enric Balletbo i Serra wrote: > Print an error message inside ps8640_bridge_vdo_control() function when > it fails so we can simplify a bit the callers, they will only need to > check the error code. > > Signed-off-by: Enric Balletbo i Serra Reviewed-by:

Re: [PATCH v9 2/2] Add PWM fan controller driver for LGM SoC

2020-08-22 Thread Andy Shevchenko
On Sat, Aug 22, 2020 at 8:25 AM Tanwar, Rahul wrote: > On 21/8/2020 6:56 pm, Andy Shevchenko wrote: > > On Fri, Aug 21, 2020 at 05:32:11PM +0800, Rahul Tanwar wrote: ... > >> +#include > >> +#include > >> +#include > >> +#include > > We haven't settle this yet... > > I investigated more abou

Re: [PATCH] genirq/proc: Show percpu irq affinity

2020-08-22 Thread Yunfeng Ye
On 2020/8/13 16:27, Thomas Gleixner wrote: > Yunfeng Ye writes: > >> When the "affinity=" cmdline parameter is configured, > > There is no such parameter. > >> the interrupt affinity displayed in the proc directory does not match >> with that of the the percu interrupt, and the percu interru

Re: [PATCH v4 2/2] staging: android: Remove BUG from ion_system_heap.c

2020-08-22 Thread Tomer Samara
On Fri, Aug 21, 2020 at 09:25:26AM -0700, Randy Dunlap wrote: > On 8/21/20 8:28 AM, Tomer Samara wrote: > > Remove BUG() from ion_sytem_heap.c > > > > this fix the following checkpatch issue: > > Avoid crashing the kernel - try using WARN_ON & > > recovery code ratherthan BUG() or BUG_ON(). > > >

Re: [PATCH v1 01/10] powerpc/pseries/iommu: Replace hard-coded page shift

2020-08-22 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > Some functions assume IOMMU page size can only be 4K (pageshift == 12). > Update them to accept any page size passed, so we can use 64K pages. > > In the process, some defines like TCE_SHIFT were made obsolete, and then > removed. TCE_RPN_MASK was upd

Re: [PATCH 3/3] drm/bridge: ps8640: Rework power state handling

2020-08-22 Thread Sam Ravnborg
On Mon, Jun 15, 2020 at 10:53:20PM +0200, Enric Balletbo i Serra wrote: > The get_edid() callback can be triggered anytime by an ioctl, i.e > > drm_mode_getconnector (ioctl) > -> drm_helper_probe_single_connector_modes >-> drm_bridge_connector_get_modes > -> ps8640_bridge_g

Re: [PATCH v2 0/5] PCIe aardvark controller improvements

2020-08-22 Thread Pali Rohár
On Tuesday 04 August 2020 13:57:42 Pali Rohár wrote: > Hi, > > we have some more improvements for PCIe aardvark controller (Armada 3720 > SOC - EspressoBIN and Turris MOX). > > The main improvement is that with these patches the driver can be compiled > as a module, and can be reloaded at runtime

Re: [PATCH 3/3] drm/bridge: ps8640: Rework power state handling

2020-08-22 Thread Sam Ravnborg
Hi Enric. On Fri, Aug 21, 2020 at 01:38:09PM +0200, Sam Ravnborg wrote: > Hi Enric. > > > > > Let me reformulate the question for if it was not clear. > > > > What I did is be able to read the EDID every time userspace asks for it (so > > kernel enables all the required) and Sam is proposing to

Re: [PATCH 0/4] mmc: sdio: Export CISTPL_VERS_1 attributes to userspace

2020-08-22 Thread Pali Rohár
Hello Ulf! I would like to remind you this SDIO patch series. Could you please look and review it? On Monday 27 July 2020 15:38:33 Pali Rohár wrote: > CISTPL_VERS_1 structure contains useful information for identification > of SDIO cards. It contains revision number according to which standard > i

[tip: x86/misc] x86/msr: Make source of unrecognised MSR writes unambiguous

2020-08-22 Thread tip-bot2 for Chris Down
The following commit has been merged into the x86/misc branch of tip: Commit-ID: c31feed8461fb8648075ba9b53d9e527d530972f Gitweb: https://git.kernel.org/tip/c31feed8461fb8648075ba9b53d9e527d530972f Author:Chris Down AuthorDate:Fri, 21 Aug 2020 13:10:35 +01:00 Committer:

[tip: x86/misc] x86/msr: Prevent userspace MSR access from dominating the console

2020-08-22 Thread tip-bot2 for Chris Down
The following commit has been merged into the x86/misc branch of tip: Commit-ID: 1f35c9c0ce3888405fc813afedaff79de433cf27 Gitweb: https://git.kernel.org/tip/1f35c9c0ce3888405fc813afedaff79de433cf27 Author:Chris Down AuthorDate:Fri, 21 Aug 2020 13:10:24 +01:00 Committer:

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-22 Thread Sedat Dilek
On Sat, Aug 22, 2020 at 11:23 AM Sedat Dilek wrote: > > On Sat, Aug 22, 2020 at 10:42 AM Segher Boessenkool > wrote: > > > > Hi Arvind, > > > > On Fri, Aug 21, 2020 at 11:55:52PM -0400, Arvind Sankar wrote: > > > Cc Segher. > > > > > > Segher, we were looking at gcc PR82602, where IRA could reord

[PATCH] mm/hugetlb: Fix a race between hugetlb sysctl handlers

2020-08-22 Thread Muchun Song
There is a race between the assignment of `table->data` and write value to the pointer of `table->data` in the __do_proc_doulongvec_minmax(). Fix this by duplicating the `table`, and only update the duplicate of it. And introduce a helper of proc_hugetlb_doulongvec_minmax() to simplify the code. T

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-22 Thread Prashant Malani
Hi Rajmohan, On Fri, Aug 21, 2020 at 09:05:06PM -0700, Rajmohan Mani wrote: > Input Output Manager (IOM) is part of the Tiger Lake SoC that > configures the Type-C Sub System (TCSS). IOM is a micro controller > that handles Type-C topology, configuration and PM functions of > various Type-C device

Re: [PATCH v1 02/10] powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE on iommu_*_coherent()

2020-08-22 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > Both iommu_alloc_coherent() and iommu_free_coherent() assume that once > size is aligned to PAGE_SIZE it will be aligned to IOMMU_PAGE_SIZE. The only case when it is not aligned is when IOMMU_PAGE_SIZE > PAGE_SIZE which is unlikely but not impossible,

Re: [PATCH v1 03/10] powerpc/kernel/iommu: Use largepool as a last resort when !largealloc

2020-08-22 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > As of today, doing iommu_range_alloc() only for !largealloc (npages <= 15) > will only be able to use 3/4 of the available pages, given pages on > largepool not being available for !largealloc. > > This could mean some drivers not being able to fully

[PATCH] stackleak: Fix a race between stack erasing sysctl handlers

2020-08-22 Thread Muchun Song
There is a race between the assignment of `table->data` and write value to the pointer of `table->data` in the __do_proc_doulongvec_minmax(). Fix this by duplicating the `table`, and only update the duplicate of it. Fixes: 964c9dff0091 ("stackleak: Allow runtime disabling of kernel stack erasing"

[git pull] habanalabs fixes pull request for kernel 5.9-rc2/3

2020-08-22 Thread Oded Gabbay
Hello Greg, This is the pull request for habanalabs driver fixes for 5.9-rc2/3. Mostly security fixes but also some functionality fixes. More details are in the tag. Thanks, Oded The following changes since commit 51072c0f5b5e98a035c6f63b83ba2afedbb7accd: mei: hdcp: fix mei_hdcp_verify_mprime

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-22 Thread Segher Boessenkool
On Sat, Aug 22, 2020 at 11:51:56AM +0200, Sedat Dilek wrote: > On Sat, Aug 22, 2020 at 11:23 AM Sedat Dilek wrote: > > > > On Sat, Aug 22, 2020 at 10:42 AM Segher Boessenkool > > wrote: > > > > > > Hi Arvind, > > > > > > On Fri, Aug 21, 2020 at 11:55:52PM -0400, Arvind Sankar wrote: > > > > Cc Se

Re: [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec

2020-08-22 Thread Jonathan Cameron
On Tue, 18 Aug 2020 21:30:17 +0200 Rikard Falkeborn wrote: > On Sun, May 31, 2020 at 02:47:15PM +0100, Jonathan Cameron wrote: > > On Wed, 27 May 2020 04:50:46 + > > "Ardelean, Alexandru" wrote: > > > > > On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > > > > [External] > >

Re: [RFC PATCH 0/5] KVM: arm64: Add pvtime LPT support

2020-08-22 Thread Marc Zyngier
Hi Steven, On Wed, 19 Aug 2020 09:54:40 +0100, Steven Price wrote: > > On 18/08/2020 15:41, Marc Zyngier wrote: > > On 2020-08-17 09:41, Keqian Zhu wrote: > >> Hi all, > >> > >> This patch series picks up the LPT pvtime feature originally developed > >> by Steven Price: https://patchwork.kernel

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-22 Thread Arnd Bergmann
On Sat, Aug 22, 2020 at 12:26 PM Segher Boessenkool wrote: > [ There is GCC 4.9.4, no one should use an older 4.9. ] > > I mentioned 5 for a reason: the whole function this patch is to did not > exist before then! That does not mean the bug existed or did not exist > before GCC 5, but it does for

Re: [PATCH v1 04/10] powerpc/kernel/iommu: Add new iommu_table_in_use() helper

2020-08-22 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > Having a function to check if the iommu table has any allocation helps > deciding if a tbl can be reset for using a new DMA window. > > It should be enough to replace all instances of !bitmap_empty(tbl...). > > iommu_table_in_use() skips reserved mem

Re: [PATCH v5 09/15] iio: sx9310: Update copyright

2020-08-22 Thread Jonathan Cameron
On Mon, 17 Aug 2020 19:45:59 -0600 Daniel Campello wrote: > On Mon, Aug 3, 2020 at 5:58 PM Daniel Campello wrote: > > > > Fixes wrong copyright year. > > > > Signed-off-by: Daniel Campello > > --- > > > > Changes in v5: None > > Changes in v4: None > > Changes in v3: None > > Changes in v2: Non

Re: [PATCH for-5.9] iio: adc: meson-saradc: Use the parent device to look up the calib data

2020-08-22 Thread Jonathan Cameron
On Sat, 15 Aug 2020 20:13:55 +0200 Martin Blumenstingl wrote: > On the older-gen 32-bit SoCs the meson-saradc driver is used to read the > SoC temperature. This requires reading calibration data from the eFuse. > > Looking up the calibration data nvmem-cell requires the OF device_node > pointer

Re: [PATCH] iio: adc: adi-axi-adc: Use kobj_to_dev() instead of container_of()

2020-08-22 Thread Jonathan Cameron
On Thu, 20 Aug 2020 16:07:04 +0300 Andy Shevchenko wrote: > On Thu, Aug 20, 2020 at 4:05 PM Andy Shevchenko > wrote: > > On Thu, Aug 20, 2020 at 12:10 PM Alexandru Ardelean > > wrote: > > > On Thu, Aug 20, 2020 at 6:04 AM Tian Tao wrote: > > > > > - struct device *dev = container_of

Re: [PATCH] drm/omap: Fix runtime PM imbalance in dsi_runtime_get

2020-08-22 Thread Laurent Pinchart
Hi Tomi, On Fri, Aug 21, 2020 at 03:06:59PM +0300, Tomi Valkeinen wrote: > On 21/08/2020 10:45, Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter > > even when it returns an error code. However, users of > > dsi_runtime_get(), a direct wrapper of pm_runtime_get_s

Re: [PATCH] iio: Fixed IIO_VAL_FRACTIONAL calcuation for negative values

2020-08-22 Thread Jonathan Cameron
On Thu, 20 Aug 2020 11:09:44 -0700 Anand Ashok Dumbre wrote: > This patch fixes IIO_VAL_FRACTIONAL calculation for negative > values where the exponent is 0. > > Signed-off-by: Anand Ashok Dumbre Hi, I would thrown in an example for this description. Also useful to know if there is a existing

[PATCH v2 rebased] swap: rename SWP_FS to SWAP_FS_OPS to avoid ambiguity

2020-08-22 Thread Gao Xiang
SWP_FS is used to make swap_{read,write}page() go through the filesystem, and it's only used for swap files over NFS for now. Otherwise it will directly submit IO to blockdev according to swapfile extents reported by filesystems in advance. As Matthew pointed out [1], SWP_FS naming is somewhat con

Re: [PATCH v2] mm: Track page table modifications in __apply_to_page_range()

2020-08-22 Thread Chris Wilson
Quoting Chris Wilson (2020-08-22 00:39:09) > Quoting Andrew Morton (2020-08-21 23:34:12) > > On Fri, 21 Aug 2020 14:37:46 +0200 Joerg Roedel wrote: > > > > > The __apply_to_page_range() function is also used to change and/or > > > allocate page-table pages in the vmalloc area of the address space

Re: [PATCH] genirq/proc: Show percpu irq affinity

2020-08-22 Thread Thomas Gleixner
On Sat, Aug 22 2020 at 17:33, Yunfeng Ye wrote: > On 2020/8/13 16:27, Thomas Gleixner wrote: > For example, the cmdline "irqaffinity=0,1,126,127" on the 128 cores system: > > [root@localhost ~]# cat /proc/irq/4/smp_affinity_list > 0-1,126-127 > > The irq 4 is "arch_timer" interrupt, which is a perc

[PATCHv2 2/3] ext4: Extend ext4_overwrite_io() for dax path

2020-08-22 Thread Ritesh Harjani
DAX uses ->iomap_begin path which gets called to map/allocate extents. In order to avoid starting journal txn where extent allocation is not required, we need to check if ext4_map_blocks() has returned any mapped extent entry. Signed-off-by: Ritesh Harjani --- fs/ext4/ext4.h | 2 ++ fs/ext4/fil

[PATCHv2 3/3] ext4: Optimize ext4 DAX overwrites

2020-08-22 Thread Ritesh Harjani
Currently in case of DAX, we are starting a journal txn everytime for IOMAP_WRITE case. This can be optimized away in case of an overwrite (where the blocks were already allocated). This could give a significant performance boost for multi-threaded writes specially random writes. On PPC64 VM with

[PATCHv2 0/3] Optimize ext4 DAX overwrites

2020-08-22 Thread Ritesh Harjani
Hello, RFC -> v2 1. Addressed comments from Jan. 2. Added xfstests results in cover letter. In case of dax writes, currently we start a journal txn irrespective of whether it's an overwrite or not. In case of an overwrite we don't need to start a jbd2 txn since the blocks are already allocated. S

[PATCHv2 1/3] ext4: Refactor ext4_overwrite_io() to take ext4_map_blocks as argument

2020-08-22 Thread Ritesh Harjani
Refactor ext4_overwrite_io() to take struct ext4_map_blocks as it's function argument with m_lblk and m_len filled from caller There should be no functionality change in this patch. Signed-off-by: Ritesh Harjani --- fs/ext4/file.c | 22 +++--- 1 file changed, 11 insertions(+), 1

Re: [PATCH v2] memory: brcmstb_dpfe: fix array index out of bounds

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 09:52:21AM -0700, Markus Mayer wrote: > We would overrun the error_text array if we hit a TIMEOUT condition, > because we were using the error code "ETIMEDOUT" (which is 110) as an > array index. > > We fix the problem by correcting the array index and by providing a > func

Re: [PATCH v2 1/9] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath()

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:13:53PM +0200, Łukasz Stelmach wrote: > This and the next patch fix issues with DMA transfers bigger than Just: "Fix issues with DMA transfers..." The order of patches could change when applying and backporting. Reviewed-by: Krzysztof Kozlowski Best regards, Krzyszto

Re: [PATCH v2 2/9] spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:13:54PM +0200, Łukasz Stelmach wrote: > This and the previous patch fix issues with DMA transfers bigger than "Fix issues with DMA..." Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof > 512 bytes on Exynos3250. Without the patches such transfers fail. > > T

Re: [PATCH v2 3/9] spi: spi-s3c64xx: Report more information when errors occur

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:13:55PM +0200, Łukasz Stelmach wrote: > Report amount of pending data when a transfer stops due to errors. > > Report if DMA was used to transfer data and print the status code. > > Signed-off-by: Łukasz Stelmach I already reviewed v1. Include tags you receive on resu

Re: [PATCH] ARM: dts: imx6dl-yapp4: Add ethernet aliases

2020-08-22 Thread Shawn Guo
On Thu, Jul 30, 2020 at 12:13:46PM +0200, Michal Vokáč wrote: > Add aliases for ethernet switch ports to allow bootloader to fix > MAC addresses to the ones stored in onboard configuration EEPROM. > > Ursa has only one ethernet port populated (eth2) so alias for > the first port has to be removed

Re: [PATCH 1/2] ARM: dts: imx27: Change nand node name to nand-controller

2020-08-22 Thread Shawn Guo
On Thu, Jul 30, 2020 at 09:04:05PM +0800, Anson Huang wrote: > Change i.MX27 nand node name from "nand" to "nand-controller" to > be compliant with yaml schema, it requires the nodename to be > "nand-controller". > > Signed-off-by: Anson Huang Applied both, thanks.

Re: [PATCH] tools/power turbostat: fix output formatting for ACPI CST enumeration

2020-08-22 Thread David Arcari
Hi Len, Thanks for the quick turn around. My apologies for not checking the tree before sending a follow-up email. If you decide you prefer to change intel_idle - I'd be happy to do the work if you'd like. Just let me know. Thanks, -Dave On 8/21/20 2:23 PM, Len Brown wrote: Hi Dave,

RE: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches

2020-08-22 Thread David Laight
> For more context for folks at home eating popcorn and enjoying the > show: > https://github.com/ClangBuiltLinux/linux/issues/876#issuecomment-613049480. > And that was specifically with KASAN enabled and doesn't appear to be > common behavior in clang otherwise (higher threshold). Why the > heur

Re: [PATCH 1/3] dt-bindings: arm: fsl: Add Y Soft IOTA Orion board

2020-08-22 Thread Shawn Guo
On Fri, Jul 31, 2020 at 02:00:06PM +0200, Michal Vokáč wrote: > Add devicetree binding for Orion - new board variant in the Y Soft > IOTA family. > > Signed-off-by: Michal Vokáč Applied all, thanks.

Re: [PATCH] ARM: dts: imx7ulp: Correct gpio ranges

2020-08-22 Thread Shawn Guo
On Mon, Aug 03, 2020 at 04:01:24PM +0800, Anson Huang wrote: > Correct gpio ranges according to i.MX7ULP pinctrl driver: > > gpio_ptc: ONLY pin 0~19 are available; > gpio_ptd: ONLY pin 0~11 are available; > gpio_pte: ONLY pin 0~15 are available; > gpio_ptf: ONLY pin 0~19 are available; > > Fixes:

Re: [PATCH v2 5/9] spi: spi-s3c64xx: Fix doc comment for struct s3c64xx_spi_driver_data

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:13:57PM +0200, Łukasz Stelmach wrote: > Remove descriptions for non-existent fields and fix indentation. > > Signed-off-by: Łukasz Stelmach > --- > drivers/spi/spi-s3c64xx.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) Reviewed-by: Krzysztof Kozlowski

[PATCH v2] zstd compressed firmware loading

2020-08-22 Thread Rene Rebe
Now with zstd compressed kernel & initrd upstream, we would rather compress everything with one type of compressor, so I added support for zstd compressed firmware loading, too. Tested on x86-64, sparc64 and mips64. Signed-off-by: René Rebe diff --git a/drivers/base/firmware_loader/Kconfig b

Re: [BUG RT] dump-capture kernel not executed for panic in interrupt context

2020-08-22 Thread peterz
On Fri, Aug 21, 2020 at 05:03:34PM -0400, Steven Rostedt wrote: > > Sigh. Is it too hard to make mutex_trylock() usable from interrupt > > context? > > > That's a question for Thomas and Peter Z. You should really know that too, the TL;DR answer is it's fundamentally buggered, can't work. The

[GIT PULL] s390 updates for 5.9-rc2

2020-08-22 Thread Vasily Gorbik
Hello Linus, please pull s390 changes for 5.9-rc2. Thank you, Vasily The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git

Re: [PATCH v2 6/9] spi: spi-s3c64xx: Check return values

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:13:58PM +0200, Łukasz Stelmach wrote: > Check return values in prepare_dma() and s3c64xx_spi_config() and > propagate errors upwards. > > Signed-off-by: Łukasz Stelmach > --- > drivers/spi/spi-s3c64xx.c | 47 --- > 1 file changed, 39

Re: [PATCH] clk: imx: Explicitly include bits.h

2020-08-22 Thread Shawn Guo
On Wed, Aug 05, 2020 at 07:17:29AM +0800, Anson Huang wrote: > It is better to explicitly include the required header file rather > then get it through some recursive include. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH] ARM: dts: imx6qdl-sabresd: Support headphone and microphone detection

2020-08-22 Thread Shawn Guo
On Wed, Aug 05, 2020 at 06:39:04PM +0800, Shengjiu Wang wrote: > Add "DMIC" rounting, headphone and microphone detect gpio for sound > card, then output sound can switch between headphone and speaker. > input sound can switch between DMIC and AMIC. > > Signed-off-by: Shengjiu Wang Applied, thank

Re Greetings.

2020-08-22 Thread Lawrence Pierre
am indeed glad to be in contact with you even though this medium of communication (internet) has been grossly abused by criminal minded people making it difficult for people with genuine intention to correspond and exchange views without skepticism. I am Lawrence Pierre , financial assistant to

Re: [PATCH v2 7/9] spi: spi-s3c64xx: Ensure cur_speed holds actual clock value

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:13:59PM +0200, Łukasz Stelmach wrote: > cur_speed is used to calculate transfer timeout and needs to be > set to the actual value of (half) the clock speed for precise > calculations. If you need this only for timeout calculation just divide it in s3c64xx_wait_for_dma().

Re: [PATCH v2 8/9] spi: spi-s3c64xx: Increase transfer timeout

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:14:00PM +0200, Łukasz Stelmach wrote: > Increase timeout by 30 ms for some wiggle and set the minimum value to > 100 ms. This ensures a non-zero value for short transfers which > may take less than 1 ms. The timeout value does not affect > performance because it is used w

Re: [PATCH v2 9/9] spi: spi-s3c64xx: Turn on interrupts upon resume

2020-08-22 Thread Krzysztof Kozlowski
On Fri, Aug 21, 2020 at 06:14:01PM +0200, Łukasz Stelmach wrote: > s3c64xx_spi_hwinit() disables interrupts. In s3c64xx_spi_probe() after > calling s3c64xx_spi_hwinit() they are enabled with the following call. > > Signed-off-by: Łukasz Stelmach > --- > drivers/spi/spi-s3c64xx.c | 4 > 1 fi

Re: [PATCHv1] ARM: dts/imx6q-bx50v3: Add IRQ support for internal switch

2020-08-22 Thread Shawn Guo
On Wed, Aug 05, 2020 at 03:58:17PM +0200, Sebastian Reichel wrote: > This adds missing interrupt support for the internal Marvell > switch, so that the kernel does not have to keep polling the > PHYs on the bit-banged MDIO bus all the time. > > Signed-off-by: Sebastian Reichel Changed subject pr

  1   2   3   4   >