Re: [PATCH v5] arch/x86: Update config and kernel doc for MPK feature on AMD

2020-05-13 Thread Dave Hansen
On 5/13/20 3:39 PM, Babu Moger wrote: > AMD's next generation of EPYC processors support the MPK (Memory > Protection Keys) feature. > > Add a generic X86_MEMORY_PROTECTION_KEYS config shadowing > X86_INTEL_MEMORY_PROTECTION_KEYS and update the kernel > documentation. > > No functional changes.

Re: [PATCH v4 4/5] MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO

2020-05-13 Thread Maciej W. Rozycki
On Tue, 28 Apr 2020, Nathan Chancellor wrote: > Before this patch, LD=ld.lld did nothing: > > $ llvm-readelf -p.comment arch/mips/vdso/vdso.so.dbg | sed 's/(.*//' > String dump of section '.comment': > [ 0] ClangBuiltLinux clang version 11.0.0 What does it mean "did nothing", is `arch/mips/

Re: [PATCH v4 4/5] MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO

2020-05-13 Thread Maciej W. Rozycki
On Tue, 28 Apr 2020, Fangrui Song wrote: > Sigh... -G 0. This is an option ignored by LLD. GCC devs probably should > have used the long option --gpsize rather than take the short option -G. > Even better, -z gpsize= or similar if this option is specific to ELF. Well, the `-G' option is some 30

Re: [PATCH 11/11] rcu: constify sysrq_key_op

2020-05-13 Thread Paul E. McKenney
On Wed, May 13, 2020 at 10:43:51PM +0100, Emil Velikov wrote: > With earlier commits, the API no longer discards the const-ness of the > sysrq_key_op. As such we can add the notation. > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: linux-kernel@vger.kernel.org > Cc: "Paul E. McKenney" > Cc: J

Re: [PATCH v3 3/4] MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO

2020-05-13 Thread Maciej W. Rozycki
On Mon, 27 Apr 2020, Nathan Chancellor wrote: > > Can you actually record in the change description what the difference in > > the relevant link command is, as shown where `V=1' has been used with > > `make' invocation? > > That will be rather unweildy to put in the commit message since > curr

Re: [PATCH v5] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-13 Thread Maciej W. Rozycki
On Thu, 23 Apr 2020, Jiaxun Yang wrote: > > Alternatively, have you made any attempt to verify if actually replacing > >the setting for VMLINUX_LOAD_ADDRESS would be safe? Glancing over its use > >there do not appear to be many places. > > Limited experiments showed it should be fine... > > B

[PATCH v5] arch/x86: Update config and kernel doc for MPK feature on AMD

2020-05-13 Thread Babu Moger
AMD's next generation of EPYC processors support the MPK (Memory Protection Keys) feature. Add a generic X86_MEMORY_PROTECTION_KEYS config shadowing X86_INTEL_MEMORY_PROTECTION_KEYS and update the kernel documentation. No functional changes. Signed-off-by: Babu Moger --- v5: - Just submiting t

Re: [PATCH v3 3/4] MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO

2020-05-13 Thread Maciej W. Rozycki
On Sun, 26 Apr 2020, Nathan Chancellor wrote: > > this causes build errors for me when (cross) compiling a big endian target: > > > > target is little endian > > mips64-linux-gnu-ld: arch/mips/vdso/elf.o: endianness incompatible with > > that of the selected emulation > > mips64-linux-gnu-ld: fa

Re: [PATCH v5] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-13 Thread Maciej W. Rozycki
On Wed, 22 Apr 2020, Jiaxun Yang wrote: > Reviewed-by: Maciej W. Rozycki Hmm, that was for an earlier version of the patch, and reviews obviously do not automatically carry over to subsequent versions, as it cannot be claimed that they are as good in the reviewer's eyes as the actual version

Re: [PATCH 11/18] maccess: remove strncpy_from_unsafe

2020-05-13 Thread Daniel Borkmann
On 5/13/20 9:28 PM, Christoph Hellwig wrote: On Wed, May 13, 2020 at 12:11:27PM -0700, Linus Torvalds wrote: On Wed, May 13, 2020 at 9:01 AM Christoph Hellwig wrote: +static void bpf_strncpy(char *buf, long unsafe_addr) +{ + buf[0] = 0; + if (strncpy_from_kernel_nofault(buf, (void

Re: [PATCH -next 0/2] sparc: use snprintf() in show() methods

2020-05-13 Thread David Miller
From: Chen Zhou Date: Sat, 9 May 2020 17:18:47 +0800 > snprintf() returns the number of bytes that would be written, > which may be greater than the the actual length to be written. > > show() methods should return the number of bytes printed into the > buffer. This is the return value

Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-13 Thread Bjorn Helgaas
[+cc Alan; please cc authors of relevant commits, updated Andrew's email address] On Thu, May 14, 2020 at 12:38:55AM +0530, Vidya Sagar wrote: > commit 9e73fa02aa009 ("PCI: dwc: Warn if MEM resource size exceeds max for > 32-bits") enables warning for MEM resources of size >4GB but prefetchable >

Re: [PATCH v2 2/2] powerpc/rtas: Implement reentrant rtas call

2020-05-13 Thread kbuild test robot
27; option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Leonardo-Bras/powerpc-rtas-Move-type-struct-definitions-from-rtas-h-into-rtas-types-h/20200513-134244 base: https://git.kernel.org/pub/scm/li

Re: [RESEND PATCH 0/4] Rework sparc32 page-table layout

2020-05-13 Thread David Miller
From: Will Deacon Date: Tue, 14 Apr 2020 22:40:07 +0100 > This is a reposting of the patch series I sent previously to rework the > sparc32 page-table layout so that 'pmd_t' can be used safely with > READ_ONCE(): > > https://lore.kernel.org/lkml/20200324104005.11279-1-w...@kernel.org > > This i

Re: [PATCH 3/3] remoteproc/k3-dsp: Add support for L2RAM loading on C66x DSPs

2020-05-13 Thread Suman Anna
Hi Mathieu, On 4/28/20 3:09 PM, Mathieu Poirier wrote: On Tue, 28 Apr 2020 at 13:58, Mathieu Poirier wrote: On Wed, Mar 25, 2020 at 03:18:39PM -0500, Suman Anna wrote: The resets for the DSP processors on K3 SoCs are managed through the Power and Sleep Controller (PSC) module. Each DSP typic

Re: remove a few uses of ->queuedata

2020-05-13 Thread Dan Williams
On Tue, May 12, 2020 at 1:08 AM Christoph Hellwig wrote: > > On Sat, May 09, 2020 at 08:07:14AM -0700, Dan Williams wrote: > > > which are all used in the I/O submission path (generic_make_request / > > > generic_make_request_checks). This is mostly a prep cleanup patch to > > > also remove the p

[PATCH] platform/x86: ISST: Increase timeout

2020-05-13 Thread Srinivas Pandruvada
Fix timeout issue on some Ice Lake servers, where mail box command is timing out before the response, Signed-off-by: Srinivas Pandruvada --- .../x86/intel_speed_select_if/isst_if_mbox_pci.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/platform/x86/

Re: [RFC PATCH v2 0/3] Prefer working VT console over SPCR and device-tree chosen stdout-path

2020-05-13 Thread Benjamin Herrenschmidt
On Wed, 2020-05-13 at 16:37 +0200, Petr Mladek wrote: > The only common rules are: > >+ The last console on the command line should always be the > preferred one when defined. > >+ Consoles defined by the device (SPCR, device tree) are used > when there is no commandline. With

Re: [PATCH v2 bpf-next 0/7] bpf, printk: add BTF-based type printing

2020-05-13 Thread Alexei Starovoitov
On Tue, May 12, 2020 at 06:56:38AM +0100, Alan Maguire wrote: > The printk family of functions support printing specific pointer types > using %p format specifiers (MAC addresses, IP addresses, etc). For > full details see Documentation/core-api/printk-formats.rst. > > This patchset proposes intr

Re: [PATCH] mm, page_alloc: reset the zone->watermark_boost early

2020-05-13 Thread Andrew Morton
On Wed, 13 May 2020 15:16:53 +0530 Charan Teja Kalla wrote: > So, yes, this problem is got fixed with the changes made in this patch. OK, thanks. Could you please prepare a v2 with a changelog which includes the additional info in your two replies?

Re: [PATCH v4] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-13 Thread Maciej W. Rozycki
On Mon, 13 Apr 2020, Fangrui Song wrote: > >> > diff --git a/arch/mips/kernel/vmlinux.lds.S > >> > b/arch/mips/kernel/vmlinux.lds.S index a5f00ec73ea6..5226cd8e4bee > >> > 100644 --- a/arch/mips/kernel/vmlinux.lds.S > >> > +++ b/arch/mips/kernel/vmlinux.lds.S > >> > @@ -55,7 +55,7 @@ SECTIONS > >>

Re: [PATCH v4] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-13 Thread Maciej W. Rozycki
On Mon, 13 Apr 2020, Jiaxun Yang wrote: > > > diff --git a/arch/mips/kernel/vmlinux.lds.S > > > b/arch/mips/kernel/vmlinux.lds.S index a5f00ec73ea6..5226cd8e4bee > > > 100644 --- a/arch/mips/kernel/vmlinux.lds.S > > > +++ b/arch/mips/kernel/vmlinux.lds.S > > > @@ -55,7 +55,7 @@ SECTIONS > > > /*

Re: [PATCH v2 00/10] drivers, provide a way to add sysfs groups easily

2020-05-13 Thread Emil Velikov
Hi Greg, On Fri, 2 Aug 2019 at 11:46, Greg Kroah-Hartman wrote: > > I have now done this with patch 1/10. Here's the pull info if any > subsystem maintainer wants to suck this into their tree to provide the > ability for drivers to add/remove attribute groups easily. > > This is part of my driv

Re: gcc-10: kernel stack is corrupted and fails to boot

2020-05-13 Thread Borislav Petkov
On Wed, May 13, 2020 at 11:49:49PM +0200, Arnd Bergmann wrote: > Right, in particular since Linus started building with gcc-10 already and > would likely soon run into that problem if he hasn't already ;-) Oh noo, we don't want Linus' kernel broken. ;-) We will send him the fix this weekend. Loo

Re: [PATCH][next] sfc: fix dereference of table before it is null checked

2020-05-13 Thread David Miller
From: Colin King Date: Tue, 12 May 2020 18:13:55 +0100 > From: Colin Ian King > > Currently pointer table is being dereferenced on a null check of > table->must_restore_filters before it is being null checked, leading > to a potential null pointer dereference issue. Fix this by null > checking

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-13 Thread Jarkko Sakkinen
On Thu, 2020-05-14 at 01:14 +0300, Jarkko Sakkinen wrote: > On Wed, 2020-05-06 at 17:42 -0400, Nathaniel McCallum wrote: > > Tested on Enarx. This requires a patch[0] for v29 support. > > > > Tested-by: Nathaniel McCallum > > Thank you. Update in my tree. > > Sean, I'll fixed that whitespace is

Re: next/master bisection: baseline.login on jetson-tk1

2020-05-13 Thread Guillaume Tucker
On 12/05/2020 16:16, Joerg Roedel wrote: > Hi Guillaume, > > thanks for the report! > > On Tue, May 12, 2020 at 07:05:13AM +0100, Guillaume Tucker wrote: >>> Summary: >>> Start: 4b20e7462caa6 Add linux-next specific files for 20200511 >>> Plain log: >>> https://storage.kernelci.org/nex

Re: [PATCH v3 05/16] mfd: Add support for Kontron sl28cpld management controller

2020-05-13 Thread Michael Walle
Am 2020-05-12 23:59, schrieb Rob Herring: On Mon, May 11, 2020 at 4:45 PM Michael Walle wrote: Am 2020-05-11 23:13, schrieb Rob Herring: > On Thu, Apr 23, 2020 at 07:45:32PM +0200, Michael Walle wrote: >> +#define SL28CPLD_VERSION0x03 >> +#define SL28CPLD_WATCHDOG_BASE 0x04 >> +#defin

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-13 Thread Jarkko Sakkinen
On Wed, 2020-05-06 at 17:42 -0400, Nathaniel McCallum wrote: > Tested on Enarx. This requires a patch[0] for v29 support. > > Tested-by: Nathaniel McCallum Thank you. Update in my tree. Sean, I'll fixed that whitespace issue too in my tree. General question: maybe it would be easiest that I is

Re: [PATCH V5 5/5] rpmsg: glink: unregister rpmsg device during endpoint destroy

2020-05-13 Thread Mathieu Poirier
On Wed, May 13, 2020 at 10:40:06AM +0530, Arun Kumar Neelakantam wrote: > Rpmsg device unregister is not happening if channel close is triggered > from local side and causing re-registration of device failures. > > Unregister rpmsg device for local close in endpoint destroy path. > > Signed-off-b

Re: [PATCH v5 1/7] fs: introduce kernel_pread_file* support

2020-05-13 Thread Mimi Zohar
On Wed, 2020-05-13 at 21:28 +, Luis Chamberlain wrote: > On Wed, May 13, 2020 at 05:20:14PM -0400, Mimi Zohar wrote: > > On Wed, 2020-05-13 at 12:41 -0700, Scott Branden wrote: > > > > > > On 2020-05-13 12:39 p.m., Mimi Zohar wrote: > > > > On Wed, 2020-05-13 at 12:18 -0700, Scott Branden wrot

[PATCH] x86/api/uv: Remove code for unused distributed GRU mode

2020-05-13 Thread Steve Wahl
Distributed GRU mode appeared in only one generation of UV hardware, and no version of the BIOS has shipped with this feature enabled, and we have no plans to ever change that. The gru.s3.mode check has always been and will continue to be false. So remove this dead code. Signed-off-by: Steve Wah

[PATCH v2] perf parse-events: Make add PMU verbose output clearer

2020-05-13 Thread Ian Rogers
On a CPU like skylakex an uncore_iio_0 PMU may alias with uncore_iio_free_running_0. The latter PMU doesn't support fc_mask as a parameter and so pmu_config_term fails. Typically parse_events_add_pmu is called in a loop where if one alias succeeds errors are ignored, however, if multiple errors occ

Re: [PATCH net-next 1/4] net: ethernet: validate pause autoneg setting

2020-05-13 Thread Doug Berger
On 5/13/2020 6:49 AM, Andrew Lunn wrote: >> So, I think consistency of implementation is more important than fixing >> this; the current behaviour has been established for many years now. > > Hi Russell, Doug > > With netlink ethtool we have the possibility of adding a new API to > control this.

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-05-13 Thread Sebastian Andrzej Siewior
On 2020-05-08 23:30:45 [+0200], Stephen Berman wrote: > > Can you log the output on the serial console? > > How do I do that? The spec for your mainboard says "serial port header". You would need to connect a cable there to another computer and log its output. The alternative would be to delay th

[PATCH] drm/etnaviv: Fix the pm_domain lookup

2020-05-13 Thread Lubomir Rintel
On a GC860 (both 3D and 2D capable) GPU, kmscube crashes: # strace -f ~lkundrak/src/kmscube/build/kmscube ... ioctl(6, DRM_IOCTL_ETNAVIV_PM_QUERY_DOM, 0xbe92b720) = 0 ioctl(6, DRM_IOCTL_ETNAVIV_PM_QUERY_SIG ) = ? +++ killed by SIGSEGV +++ Segmentation fault (core dumped) And triggers

Re: [PATCH 3/5] exec: Remove recursion from search_binary_handler

2020-05-13 Thread Eric W. Biederman
Rob Landley writes: > On 5/11/20 9:33 AM, Eric W. Biederman wrote: >> What I do see is that interp_data is just a parameter that is smuggled >> into the call of search binary handler. And the next binary handler >> needs to be binfmt_elf for it to make much sense, as only binfmt_elf >> (and binf

Re: [PATCH 07/11] sparc64: constify sysrq_key_op

2020-05-13 Thread David Miller
From: Emil Velikov Date: Wed, 13 May 2020 22:43:47 +0100 > With earlier commits, the API no longer discards the const-ness of the > sysrq_key_op. As such we can add the notation. > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: linux-kernel@vger.kernel.org > Cc: "David S. Miller" > Cc: sparc

Re: [PATCH net-next 4/4] net: bcmgenet: add support for ethtool flow control

2020-05-13 Thread Doug Berger
On 5/13/2020 2:52 AM, Russell King - ARM Linux admin wrote: > On Mon, May 11, 2020 at 05:24:10PM -0700, Doug Berger wrote: >> diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c >> b/drivers/net/ethernet/broadcom/genet/bcmmii.c >> index 511d553a4d11..788da1ecea0c 100644 >> --- a/drivers/net/

[PATCH v6 1/3] drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Linux

2020-05-13 Thread Douglas Anderson
The ti-sn65dsi86 MIPI DSI to eDP bridge chip has 4 pins on it that can be used as GPIOs in a system. Each pin can be configured as input, output, or a special function for the bridge chip. These are: - GPIO1: SUSPEND Input - GPIO2: DSIA VSYNC - GPIO3: DSIA HSYNC or VSYNC - GPIO4: PWM Let's expos

[PATCH v6 0/3] drm: Prepare to use a GPIO on ti-sn65dsi86 for Hot Plug Detect

2020-05-13 Thread Douglas Anderson
As talked about in commit c2bfc223882d ("drm/bridge: ti-sn65dsi86: Remove the mystery delay"), the normal HPD pin on ti-sn65dsi86 is kinda useless, at least for embedded DisplayPort (eDP). However, despite the fact that the actual HPD pin on the bridge is mostly useless for eDP, the concept of H

[PATCH v6 3/3] dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd

2020-05-13 Thread Douglas Anderson
The ti-sn65dsi86 MIPI DSI to eDP bridge chip has a dedicated hardware HPD (Hot Plug Detect) pin on it, but it's mostly useless for eDP because of excessive debouncing in hardware. Specifically there is no way to disable the debouncing and for eDP debouncing hurts you because HPD is just used for k

[PATCH v6 2/3] dt-bindings: drm/bridge: ti-sn65dsi86: Convert to yaml

2020-05-13 Thread Douglas Anderson
This moves the bindings over, based a lot on toshiba,tc358768.yaml. Unless there's someone known to be better, I've set the maintainer in the yaml as the first person to submit bindings. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd --- I removed Stephen's review tag on v5 since I sq

Re: [PATCH V5 3/5] rpmsg: glink: Add support for rpmsg glink chrdev

2020-05-13 Thread Mathieu Poirier
On Wed, May 13, 2020 at 10:40:04AM +0530, Arun Kumar Neelakantam wrote: > From: Chris Lew > > RPMSG provides a char device interface to userspace. Probe the rpmsg > chrdev channel to enable the rpmsg_ctrl device creation on glink > transports. > > Signed-off-by: Chris Lew > Signed-off-by: Arun

Re: [PATCH 4.19 41/48] x86/unwind/orc: Prevent unwinding before ORC initialization

2020-05-13 Thread Pavel Machek
Hi! > From: Josh Poimboeuf > > commit 98d0c8ebf77e0ba7c54a9ae05ea588f0e9e3f46e upstream. > > If the unwinder is called before the ORC data has been initialized, > orc_find() returns NULL, and it tries to fall back to using frame > pointers. This can cause some unexpected warnings during boot.

Re: [PATCH v5 24/38] drm: v3d: fix common struct sg_table related issues

2020-05-13 Thread Eric Anholt
On Wed, May 13, 2020 at 6:33 AM Marek Szyprowski wrote: > > The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function > returns the number of the created entries in the DMA address space. > However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and > dma_unmap_sg must b

Re: gcc-10: kernel stack is corrupted and fails to boot

2020-05-13 Thread Arnd Bergmann
On Wed, May 13, 2020 at 11:41 PM Borislav Petkov wrote: > > On Wed, May 13, 2020 at 11:28:09PM +0200, Arnd Bergmann wrote: > > I see the patch in linux-next but not in mainline. I suppose we want > > it in v5.7 and backported to stable kernels so they can boot when > > built with gcc-10? > > It is

[PATCH 08/11] drm: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: dri-de...@lists.freedesktop.org Signed

[PATCH 09/11] kdb: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: Jason Wessel Cc: Daniel Thompson Cc: kgdb-bugrep...@lists.sourceforge.net Signed-off-by: Emil Velikov

[PATCH 04/11] alpha: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-al...@vger.kernel.org Signed-off-by:

[PATCH 10/11] kernel/power: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: linux...@vger.kernel.org Signed-off-by: Emil Velikov --- Pleas

[PATCH 07/11] sparc64: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Emil Velikov --- Please keep me in th

[PATCH 01/11] tty/sysrq: alpha: export and use __sysrq_get_key_op()

2020-05-13 Thread Emil Velikov
Export a pointer to the sysrq_get_key_op(). This way we can cleanly unregister it, instead of the current solutions of modifuing it inplace. Since __sysrq_get_key_op() is no longer used externally, let's make it a static function. This patch will allow us to limit access to each and every sysrq o

[PATCH 06/11] powerpc/xmon: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@lists.ozlabs.org Sig

[PATCH 11/11] rcu: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: "Paul E. McKenney" Cc: Josh Triplett Cc: r...@vger.kernel.org Signed-off-by: Emil Velikov --- Please

[PATCH 05/11] MIPS: constify sysrq_key_op

2020-05-13 Thread Emil Velikov
With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: Thomas Bogendoerfer Cc: linux-m...@vger.kernel.org Signed-off-by: Emil Velikov --- Please keep me in

[PATCH] mm/hmm/test: destroy xa_array instead of looping

2020-05-13 Thread Ralph Campbell
The test driver uses an xa_array to store virtual to physical address translations for a simulated hardware device. The MMU notifier invalidation callback is used to keep the table consistent with the CPU page table and is frequently called only for a page or two. However, if the test process exits

Re: [PATCH 4.19 37/48] x86/entry/64: Fix unwind hints in register clearing code

2020-05-13 Thread Pavel Machek
On Wed 2020-05-13 11:45:03, Greg Kroah-Hartman wrote: > From: Josh Poimboeuf > > commit 06a9750edcffa808494d56da939085c35904e618 upstream. > > The PUSH_AND_CLEAR_REGS macro zeroes each register immediately after > pushing it. If an NMI or exception hits after a register is cleared, > but before

[PATCH 02/11] tty/sysrq: constify the sysrq API

2020-05-13 Thread Emil Velikov
The user is not supposed to thinker with the underlying sysrq_key_op. Make that explicit by adding a handful of const notations. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Signed-off-by: Emil Velikov --- Please keep me in the CC list, as I'm not subscribed to the lis

[PATCH 03/11] tty/sysrq: constify the the sysrq_key_op(s)

2020-05-13 Thread Emil Velikov
All the users threat them as immutable - annotate them as such. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Signed-off-by: Emil Velikov --- Please keep me in the CC list, as I'm not subscribed to the list. IMHO it would be better if this gets merged this via the tty

Re: [patch V5 06/38] x86/entry: Provide helpers for execute on irqstack

2020-05-13 Thread Josh Poimboeuf
On Tue, May 12, 2020 at 11:01:05PM +0200, Thomas Gleixner wrote: > Device interrupt handlers and system vector handlers are executed on the > interrupt stack. The stack switch happens in the low level assembly entry > code. This conflicts with the efforts to consolidate the exit code in C to > ensu

Re: [PATCH 8/9] fs/ext4: Introduce DAX inode flag

2020-05-13 Thread Ira Weiny
On Wed, May 13, 2020 at 04:47:06PM +0200, Jan Kara wrote: > On Tue 12-05-20 22:43:23, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Add a flag to preserve FS_XFLAG_DAX in the ext4 inode. > > > > Set the flag to be user visible and changeable. Set the flag to be > > inherited. Allow ap

Re: gcc-10: kernel stack is corrupted and fails to boot

2020-05-13 Thread Borislav Petkov
On Wed, May 13, 2020 at 11:28:09PM +0200, Arnd Bergmann wrote: > I see the patch in linux-next but not in mainline. I suppose we want > it in v5.7 and backported to stable kernels so they can boot when > built with gcc-10? It is queued for 5.8. For a good reason, if you read the whole thread Arvin

Re: [PATCH v29 14/20] x86/sgx: ptrace() support for the SGX driver

2020-05-13 Thread Jarkko Sakkinen
On Wed, May 06, 2020 at 02:50:48PM -0700, Sean Christopherson wrote: > On Wed, Apr 22, 2020 at 12:53:10AM +0300, Jarkko Sakkinen wrote: > > Add VMA callbacks for ptrace() that can be used with debug enclaves. > > With debug enclaves data can be read and write the memory word at a time > > by using

Re: [PATCH RESEND] tpm: eventlog: Replace zero-length array with flexible-array member

2020-05-13 Thread Jarkko Sakkinen
On Wed, May 06, 2020 at 11:09:12PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced i

RE: [RFC PATCH] kunit: Support skipped tests

2020-05-13 Thread Bird, Tim
> -Original Message- > From: David Gow > > This is a proof-of-concept to support "skipping" tests. > > The kunit_mark_skipped() macro marks the current test as "skipped", with > the provided reason. The kunit_skip() macro will mark the test as > skipped, and abort the test. > > The TAP

Re: [PATCH net-next 3/4] net: ethernet: introduce phy_set_pause

2020-05-13 Thread Doug Berger
On 5/13/2020 2:42 AM, Russell King - ARM Linux admin wrote: > On Mon, May 11, 2020 at 05:24:09PM -0700, Doug Berger wrote: >> This commit introduces the phy_set_pause function to the phylib as >> a helper to support the set_pauseparam ethtool method. >> >> It is hoped that the new behavior introduc

Re: [PATCH] mm/compaction: avoid VM_BUG_ON(PageSlab()) in page_mapcount()

2020-05-13 Thread Vlastimil Babka
On 5/13/20 9:28 PM, Konstantin Khlebnikov wrote: > On 13/05/2020 21.32, Andrew Morton wrote: >> On Wed, 13 May 2020 17:05:25 +0300 Konstantin Khlebnikov >> wrote: >> >>> Function isolate_migratepages_block() runs some checks out of lru_lock >>> when choose pages for migration. After checking Pag

Re: [PATCH v3 1/2] timer: make deferrable cpu unbound timers really not bound to a cpu

2020-05-13 Thread Thomas Gleixner
Prasad, psoda...@codeaurora.org writes: > On 2020-05-13 13:28, Thomas Gleixner wrote: >> psoda...@codeaurora.org writes: >>> It is not clear to me how to avoid #ifdef's in this case. Could you >>> please share an example here? >> >> The answer is further down already: > > I think, you are referri

Re: [PATCH] irqchip/sifive-plic: Remove incorrect requirement about number of irq contexts

2020-05-13 Thread Palmer Dabbelt
On Tue, 12 May 2020 10:26:36 PDT (-0700), Atish Patra wrote: From: "Wesley W. Terpstra" A PLIC may not be connected to all the cores. In that case, nr_contexts may be less than num_possible_cpus. This requirement is only valid a single PLIC is the only interrupt controller for the whole system.

Re: [PATCH] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

2020-05-13 Thread Marcelo Ricardo Leitner
On Wed, May 13, 2020 at 10:11:05PM +0200, Jonas Falkevik wrote: > On Wed, May 13, 2020 at 6:01 PM Marcelo Ricardo Leitner > wrote: > > > > On Wed, May 13, 2020 at 04:52:16PM +0200, Jonas Falkevik wrote: > > > Do not generate SCTP_ADDR_{MADE_PRIM,ADDED} events for SCTP_FUTURE_ASSOC > > > assocs. >

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Brendan Higgins
On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del() that doe

Re: linux-next: Fixes tag needs some work in the sound-asoc-fixes tree

2020-05-13 Thread Dan Murphy
Stephen On 5/13/20 4:12 PM, Stephen Rothwell wrote: Hi all, In commit 0e36f32f6b6c ("ASoC: tlv320adcx140: Fix bias config values") Fixes tag Fixes: 37bde5acf040 ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec has these problem(s): - Target SHA1 does not exist Mabe you meant F

[PATCH v3] perf test: Improve pmu event metric testing

2020-05-13 Thread Ian Rogers
Break pmu-events test into 2 and add a test to verify that all pmu metric expressions simply parse. Try to parse all metric ids/events, skip/warn if metrics for the current architecture fail to parse. To support warning for a skip, and an ability for a subtest to describe why it skips. Tested on p

Re: [PATCH net-next 1/4] net: ethernet: validate pause autoneg setting

2020-05-13 Thread Doug Berger
On 5/13/2020 2:20 AM, Russell King - ARM Linux admin wrote: > On Wed, May 13, 2020 at 06:34:05AM +0100, Russell King - ARM Linux admin > wrote: >> On Tue, May 12, 2020 at 08:48:22PM -0700, Doug Berger wrote: >>> On 5/12/2020 11:55 AM, Russell King - ARM Linux admin wrote: On Tue, May 12, 2020

Re: [PATCH v5 1/7] fs: introduce kernel_pread_file* support

2020-05-13 Thread Luis Chamberlain
On Wed, May 13, 2020 at 05:20:14PM -0400, Mimi Zohar wrote: > On Wed, 2020-05-13 at 12:41 -0700, Scott Branden wrote: > > > > On 2020-05-13 12:39 p.m., Mimi Zohar wrote: > > > On Wed, 2020-05-13 at 12:18 -0700, Scott Branden wrote: > > >> On 2020-05-13 12:03 p.m., Mimi Zohar wrote: > > >>> On Wed,

Re: gcc-10: kernel stack is corrupted and fails to boot

2020-05-13 Thread Arnd Bergmann
On Wed, May 13, 2020 at 5:48 PM Arvind Sankar wrote: > > On Wed, May 13, 2020 at 09:50:03AM +0300, Kalle Valo wrote: > > And now I have a problem :) I first noticed that my x86 testbox is not > > booting when I compile the kernel with GCC 10.1.0 from crosstool. I > > didn't get any error messages

Re: [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args

2020-05-13 Thread John Paul Adrian Glaubitz
Hi Tony! On 5/13/20 11:19 PM, Luck, Tony wrote: >> I tried my very best to test this patch including installing Debian 3 >> and 4 to try and get my hands on a gcc version that would allow >> cross-compiling for ia64. But no, even that wasn't possible let alone a >> working qemu for ia64. So this i

Re: [PATCH] perf tools: Replace zero-length array with flexible-array

2020-05-13 Thread Gustavo A. R. Silva
On Wed, May 13, 2020 at 02:03:56PM -0700, Ian Rogers wrote: > On Tue, May 12, 2020 at 10:59 AM Gustavo A. R. Silva > wrote: > > > > On Tue, May 12, 2020 at 10:06:07AM +0200, Peter Zijlstra wrote: > > > On Mon, May 11, 2020 at 07:04:04PM -0500, Gustavo A. R. Silva wrote: > > > > On Mon, May 11, 202

[PATCH v3 0/5] Add support for PinePhone LCD panel

2020-05-13 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v3: - Panel driver

[PATCH v3 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-05-13 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pineph

[PATCH v3 1/5] dt-bindings: vendor-prefixes: Add Xingbangda

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/vendor-prefi

[PATCH v3 2/5] dt-bindings: panel: Add binding for Xingbangda XBD599 panel

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller. Add its device tree binding. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- .../display/panel/sitronix,st7703.yaml| 63 +++ 1 fi

Re: [PATCH net-next 1/4] net: ethernet: validate pause autoneg setting

2020-05-13 Thread Doug Berger
On 5/12/2020 10:34 PM, Russell King - ARM Linux admin wrote: > On Tue, May 12, 2020 at 08:48:22PM -0700, Doug Berger wrote: >> On 5/12/2020 11:55 AM, Russell King - ARM Linux admin wrote: >>> On Tue, May 12, 2020 at 11:31:39AM -0700, Doug Berger wrote: This was intended as a fix, but I thought

Re: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen

2020-05-13 Thread Will Deacon
On Wed, May 13, 2020 at 08:54:03PM +0200, Marco Elver wrote: > On Wed, 13 May 2020 at 19:47, Will Deacon wrote: > > On Wed, May 13, 2020 at 07:32:58PM +0200, Marco Elver wrote: > > > - We do *not* want the call to __read_once_word_nocheck if we have > > > __no_sanitize_or_inline. AFAIK that's the

[PATCH v3 4/5] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Backlight levels curve was optimized by Martijn Braam using a lux meter. Add its device nodes. Signed-off-by: Icenowy Zheng Signed-off-by: Martijn Braam Signed-off-by: Ondrej Jirman --- .../allwin

[PATCH v3 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller)

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by Xingbangda, which is used on PinePhone final assembled phones. It is based on Sitronix ST7703 LCD controller. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- drivers/gp

Re: [PATCH] arm64: dts: qcom: msm8916: Disable coresight by default

2020-05-13 Thread Bjorn Andersson
On Wed 13 May 11:47 PDT 2020, michael.s...@seznam.cz wrote: > From: Michael Srba > > On some msm8916 devices, attempts at initializing coresight cause the boot to > fail. This was fixed by disabling the coresight-related nodes in the board dts > files. However, a cleaner approach was chosen for

Re: [PATCH] ath11k: Fix some resource leaks in error path in 'ath11k_thermal_register()'

2020-05-13 Thread Rajkumar Manoharan
On 2020-05-13 13:14, Christophe JAILLET wrote: If 'thermal_cooling_device_register()' fails, we must undo what has been allocated so far. So we must go to 'err_thermal_destroy' instead of returning directly In case of error in 'ath11k_thermal_register()', the previous 'thermal_cooling_device_re

Re: [PATCH 1/5] spi: dt-bindings: sifive: Add missing 2nd register region

2020-05-13 Thread Paul Walmsley
On Tue, 12 May 2020, Rob Herring wrote: > The 'reg' description and example have a 2nd register region for memory > mapped flash, but the schema says there is only 1 region. Fix this. > > Cc: Mark Brown > Cc: Palmer Dabbelt > Cc: Paul Walmsley > Cc: linux-...@vger.kernel.org > Cc: linux-ri...@

Re: [PATCH] timers: use set_current_state macro

2020-05-13 Thread Thomas Gleixner
Xianting, Xianting Tian writes: thanks for your patch. Can you please fix your mail client to have proper mail headers? It provides: Content-Type: text/plain Content-Transfer-Encoding: quoted-printable but it fails to provide the charset information. That causes the footer to become unrea

RE: [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args

2020-05-13 Thread Luck, Tony
> I tried my very best to test this patch including installing Debian 3 > and 4 to try and get my hands on a gcc version that would allow > cross-compiling for ia64. But no, even that wasn't possible let alone a > working qemu for ia64. So this is largely untested but hopefully a > straightforward

Re: [PATCH v5 1/7] fs: introduce kernel_pread_file* support

2020-05-13 Thread Mimi Zohar
On Wed, 2020-05-13 at 12:41 -0700, Scott Branden wrote: > > On 2020-05-13 12:39 p.m., Mimi Zohar wrote: > > On Wed, 2020-05-13 at 12:18 -0700, Scott Branden wrote: > >> On 2020-05-13 12:03 p.m., Mimi Zohar wrote: > >>> On Wed, 2020-05-13 at 11:53 -0700, Scott Branden wrote: > >> Even if the kernel

[PATCH] seccomp: Report number of loaded filters in /proc/$pid/status

2020-05-13 Thread Kees Cook
A common question asked when debugging seccomp filters is "how many filters are attached to your process?" A common mistake for process launchers is applying filters before fork, instead of after, which means each progressive child has an extra redundant filter added, which will slowly increase sys

Re: [PATCH 01/10] riscv: Fix unmet direct dependencies built based on SOC_VIRT

2020-05-13 Thread Palmer Dabbelt
On Sun, 10 May 2020 19:19:52 PDT (-0700), wangkefeng.w...@huawei.com wrote: Fix unmet direct dependencies Warning and fix Kconfig indent. WARNING: unmet direct dependencies detected for POWER_RESET_SYSCON Depends on [n]: POWER_RESET [=n] && OF [=y] && HAS_IOMEM [=y] Selected by [y]: - SOC_

Re: [PATCH 05/10] riscv: Disable ARCH_HAS_DEBUG_WX if NOMMU

2020-05-13 Thread Palmer Dabbelt
On Sun, 10 May 2020 19:19:56 PDT (-0700), wangkefeng.w...@huawei.com wrote: DEBUG_WX is only useful when MMU enabled, diable it if nommu and fix the build error. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [PATCH 07/10] riscv: Make SYS_SUPPORTS_HUGETLBFS depends on MMU

2020-05-13 Thread Palmer Dabbelt
On Sun, 10 May 2020 19:19:58 PDT (-0700), wangkefeng.w...@huawei.com wrote: HUGETLBFS only used when MMU enabled, add the dependence. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/K

Re: [PATCH] vfs: keep inodes with page cache off the inode shrinker LRU

2020-05-13 Thread Andrew Morton
On Tue, 12 May 2020 17:29:36 -0400 Johannes Weiner wrote: > > ... > > Solution > > This patch fixes the aging inversion described above on > !CONFIG_HIGHMEM systems, without reintroducing the problems associated > with excessive shrinker LRU rotations, by keeping populated inodes off > the shri

Re: [PATCH 09/10] timer-riscv: Fix undefined riscv_time_val

2020-05-13 Thread Palmer Dabbelt
On Sun, 10 May 2020 19:20:00 PDT (-0700), wangkefeng.w...@huawei.com wrote: ERROR: modpost: "riscv_time_val" [crypto/tcrypt.ko] undefined! Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/clocksource/timer-riscv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clock

Re: [PATCH 00/10] riscv: make riscv build happier

2020-05-13 Thread Palmer Dabbelt
On Sun, 10 May 2020 19:19:51 PDT (-0700), wangkefeng.w...@huawei.com wrote: When add RISCV arch to huawei build test, there are some build issue, let's fix them to make riscv build happier :) Those patches is rebased on next-20200508. Kefeng Wang (10): riscv: Fix unmet direct dependencies bui

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