Re: [PATCH 18/18] arm64: lto: Strengthen READ_ONCE() to acquire when CLANG_LTO=y

2020-07-06 Thread Paul E. McKenney
On Mon, Jul 06, 2020 at 05:00:23PM +0100, Dave Martin wrote: > On Thu, Jul 02, 2020 at 08:23:02AM +0100, Will Deacon wrote: > > On Wed, Jul 01, 2020 at 06:07:25PM +0100, Dave P Martin wrote: > > > On Tue, Jun 30, 2020 at 06:37:34PM +0100, Will Deacon wrote: > > > > When building with LTO, there is

Re: [PATCH v3 03/13] bus/fsl-mc: add support for 'driver_override' in the mc-bus

2020-07-06 Thread Diana Craciun OSS
Hi Andrew, I apologize, I somehow missed you previous comment. OK, I see that there are a number of drivers using the same code. In case we share the code, probably we need to store the driver_override value in the struct device (not in the particular driver device structure as it is done now

Re: [PATCH 1/3] iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()

2020-07-06 Thread Ardelean, Alexandru
On Mon, 2020-07-06 at 14:02 +0300, Alexandru Ardelean wrote: > [External] > > There are 2 exit paths where the lock isn't held, but try to unlock the > mutex when exiting. In these places we should just return from the > function. > > A neater approach would be to cleanup the ad5592r_read_raw(),

Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only

2020-07-06 Thread Bjorn Helgaas
On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > The "ExternalFacing" devices (root ports) are still internal devices that > sit on the internal system fabric and thus trusted. Currently they were > being marked untrusted. > > This patch uses the platform flag to identify the external

[PATCH v2 3/4] arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040

2020-07-06 Thread Marc Zyngier
ARM64_WORKAROUND_1418040 requires that AArch32 EL0 accesses to the virtual counter register are trapped and emulated by the kernel. This makes the vdso pretty pointless, and in some cases livelock prone. Provide a workaround entry that limits the vdso to 64bit tasks. Cc: sta...@vger.kernel.org Si

[PATCH v2 2/4] arm64: arch_timer: Allow an workaround descriptor to disable compat vdso

2020-07-06 Thread Marc Zyngier
As we are about to disable the vdso for compat tasks in some circumstances, let's allow a workaround descriptor to express exactly that. Cc: sta...@vger.kernel.org Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 1 + drivers/clocksource/arm_arch_timer.c | 3 +++ 2 files ch

[PATCH v2 4/4] arm64: Rework ARM_ERRATUM_1414080 handling

2020-07-06 Thread Marc Zyngier
The current handling of erratum 1414080 has the side effect that cntkctl_el1 can get changed for both 32 and 64bit tasks. This isn't a problem so far, but if we ever need to mitigate another of these errata on the 64bit side, we'd better keep the messing with cntkctl_el1 local to 32bit tasks. For

[PATCH v2 1/4] arm64: Introduce a way to disable the 32bit vdso

2020-07-06 Thread Marc Zyngier
We have a class of errata (grouped under the ARM64_WORKAROUND_1418040 banner) that force the trapping of counter access from 32bit EL0. We would normally disable the whole vdso for such defect, except that it would disable it for 64bit userspace as well, which is a shame. Instead, add a new vdso_

[PATCH v2 0/4] arm64: Allow the compat vdso to be disabled at runtime

2020-07-06 Thread Marc Zyngier
The relatively recent introduction of the compat vdso on arm64 has overlooked its interactions with some of the interesting errata workarounds, such as ARM64_ERRATUM_1418040 (and its older 1188873 incarnation). This erratum requires the 64bit kernel to trap 32bit accesses to the virtual counter an

Re: [PATCH v5 4/7] pidfd: Replace open-coded partial fd_install_received()

2020-07-06 Thread Christian Brauner
On Mon, Jul 06, 2020 at 06:12:47PM +0200, Christian Brauner wrote: > On Mon, Jul 06, 2020 at 08:34:06AM -0700, Kees Cook wrote: > > On Mon, Jul 06, 2020 at 03:07:13PM +0200, Christian Brauner wrote: > > > On Wed, Jun 17, 2020 at 03:03:24PM -0700, Kees Cook wrote: > > > > The sock counting (sock_upd

Re: [PATCH v2 5/6] devres: provide devm_krealloc()

2020-07-06 Thread Bartosz Golaszewski
On Thu, Jul 2, 2020 at 3:11 PM Bartosz Golaszewski wrote: > > On Thu, Jul 2, 2020 at 2:42 PM Greg Kroah-Hartman > wrote: > > > > On Mon, Jun 29, 2020 at 08:50:07AM +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > Implement the managed variant of krealloc(). This func

Re: [PATCH v2 5/6] devres: provide devm_krealloc()

2020-07-06 Thread Greg Kroah-Hartman
On Mon, Jul 06, 2020 at 06:38:10PM +0200, Bartosz Golaszewski wrote: > On Thu, Jul 2, 2020 at 3:11 PM Bartosz Golaszewski wrote: > > > > On Thu, Jul 2, 2020 at 2:42 PM Greg Kroah-Hartman > > wrote: > > > > > > On Mon, Jun 29, 2020 at 08:50:07AM +0200, Bartosz Golaszewski wrote: > > > > From: Bart

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-06 Thread Alan Stern
On Tue, Jun 30, 2020 at 20:49:58PM -0400, Alan Stern wrote: > On Tue, Jun 30, 2020 at 04:31:58PM -0700, Bart Van Assche wrote: > > On 2020-06-30 12:38, Alan Stern wrote: > > > Assume that BLK_MQ_REQ_PREEMPT is set in flags. Then where exactly > > > does blk_queue_enter(q, flags) call blk_pm_reque

Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only

2020-07-06 Thread Bjorn Helgaas
On Tue, Jun 30, 2020 at 09:55:54AM +0200, Greg Kroah-Hartman wrote: > On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > > The "ExternalFacing" devices (root ports) are still internal devices that > > sit on the internal system fabric and thus trusted. Currently they were > > being marke

[PATCH] x86/alternatives: Let __text_poke() acquire the pte lock with enabled interrupts

2020-07-06 Thread Sebastian Andrzej Siewior
The pte lock is never acquired from an IRQ-off region so it does not require the interrupts to be disabled. RT complains here because the spinlock_t must not be acquired with disabled interrupts. use_temporary_mm() expects interrupts to be off because it invokes switch_mm_irqs_off() and uses per-C

[PATCH] can: mcba_usb: remove redundant initialization of variable err

2020-07-06 Thread Colin King
From: Colin Ian King The variable err is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/can/usb/mcba_usb.c

Re: [PATCH v2 3/7] PCI/ACS: Enable PCI_ACS_TB for untrusted/external-facing devices

2020-07-06 Thread Bjorn Helgaas
On Mon, Jun 29, 2020 at 09:49:39PM -0700, Rajat Jain wrote: > When enabling ACS, enable translation blocking for external facing ports > and untrusted devices. > > Signed-off-by: Rajat Jain > --- > v2: Commit log change > > drivers/pci/pci.c| 4 > drivers/pci/quirks.c | 11 ++

Re: [PATCH 4/4] interconnect: qcom: Fix small BW votes being truncated to zero

2020-07-06 Thread kernel test robot
Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc4 next-20200706] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in

Re: [PATCH tick-sched] Clarify "NOHZ: local_softirq_pending" warning

2020-07-06 Thread Qian Cai
On Fri, Jun 26, 2020 at 02:05:06PM -0700, Paul E. McKenney wrote: > Currently, can_stop_idle_tick() prints "NOHZ: local_softirq_pending HH" > (where "HH" is the hexadecimal softirq vector number) when one or more > non-RCU softirq handlers are still enablded when checking to stop the > scheduler-ti

Re: Kernel crash due to memory corruption with v5.4.26-rt17 and PowerPC e500

2020-07-06 Thread Sebastian Andrzej Siewior
On 2020-05-29 18:37:22 [+0200], To Mark Marshall wrote: > On 2020-05-29 18:15:18 [+0200], To Mark Marshall wrote: > > In order to get it back into the RT queue I need to understand why it is > > required. What exactly is it fixing. Let me stare at for a little… > > it used to be local_irq_disable(

Re: [PATCH v4 3/3] ARM: dts: bcm2711: Add HDMI DVP

2020-07-06 Thread Nicolas Saenz Julienne
On Thu, 2020-06-11 at 11:23 +0200, Maxime Ripard wrote: > Now that we have a driver for the DVP, let's add its DT node. > > Signed-off-by: Maxime Ripard > --- Applied for-next, Thanks, Nicolas signature.asc Description: This is a digitally signed message part

Re: linux-next: Tree for Jul 6 (thermal/thermal_netlink.c)

2020-07-06 Thread Randy Dunlap
On 7/6/20 12:40 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200703: > on i386 or x86_64: when CONFIG_NET is not set/enabled: thermal_netlink.c:(.text+0x34): undefined reference to `nla_put' thermal_netlink.c:(.text+0x76): undefined reference to `nla_put' thermal_netlink.c:(.text+

Re: [RFC PATCH v2 11/18] media: tegra-video: Add support for external sensor capture

2020-07-06 Thread Sowjanya Komatineni
On 7/6/20 2:10 AM, Hans Verkuil wrote: Hi Sowjanya, As promised, here is the review of this remaining patch. I've now reviewed and tested the whole series. I have some more patches pending for the imx274 but some of that needs a bit more testing. I hope to be able to post those soon. Thanks

Re: linux-next: Tree for Jul 6 (thermal/thermal_netlink.c)

2020-07-06 Thread Daniel Lezcano
Hi, thanks for reporting that, I'll fix it. On 06/07/2020 18:53, Randy Dunlap wrote: > On 7/6/20 12:40 AM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20200703: >> > > on i386 or x86_64: > > when CONFIG_NET is not set/enabled: > > thermal_netlink.c:(.text+0x34): undefined referenc

Re: [PATCH v2 2/4] arm64: arch_timer: Allow an workaround descriptor to disable compat vdso

2020-07-06 Thread Mark Rutland
On Mon, Jul 06, 2020 at 05:38:00PM +0100, Marc Zyngier wrote: > As we are about to disable the vdso for compat tasks in some circumstances, > let's allow a workaround descriptor to express exactly that. > > Cc: sta...@vger.kernel.org > Signed-off-by: Marc Zyngier Acked-by: Mark Rutland Mark.

Re: [PATCH v2 3/4] arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040

2020-07-06 Thread Mark Rutland
On Mon, Jul 06, 2020 at 05:38:01PM +0100, Marc Zyngier wrote: > ARM64_WORKAROUND_1418040 requires that AArch32 EL0 accesses to > the virtual counter register are trapped and emulated by the kernel. > This makes the vdso pretty pointless, and in some cases livelock > prone. > > Provide a workaround

[PATCH] bpf: lsm: Disable or enable BPF LSM at boot time

2020-07-06 Thread Lorenzo Fontana
This option adds a kernel parameter 'bpf_lsm', which allows the BPF LSM to be disabled at boot. The purpose of this option is to allow a single kernel image to be distributed with the BPF LSM built in, but not necessarily enabled. Signed-off-by: Lorenzo Fontana --- Documentation/admin-guide/kern

Re: [PATCH net-next] hinic: add firmware update support

2020-07-06 Thread Jakub Kicinski
On Mon, 6 Jul 2020 22:54:06 +0800 Luo bin wrote: > add support to update firmware with with "ethtool -f" cmd > > Signed-off-by: Luo bin drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:1996:44: warning: missing braces around initializer drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:1996:44

Re: linux-next: Tree for Jul 6 (mm/memory_failure.c)

2020-07-06 Thread Randy Dunlap
On 7/6/20 12:40 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200703: > on i386: when CONFIG_MIGRATION is not set/enabled: ../mm/memory-failure.c: In function ‘new_page’: ../mm/memory-failure.c:1688:9: error: implicit declaration of function ‘alloc_migration_target’; did you mean

[PATCH bpf-next V2 1/2] selftests/bpf: test_progs use another shell exit on non-actions

2020-07-06 Thread Jesper Dangaard Brouer
This is a follow up adjustment to commit 6c92bd5cd465 ("selftests/bpf: Test_progs indicate to shell on non-actions"), that returns shell exit indication EXIT_FAILURE (value 1) when user selects a non-existing test. The problem with using EXIT_FAILURE is that a shell script cannot tell the differen

[PATCH bpf-next V2 2/2] selftests/bpf: test_progs avoid minus shell exit codes

2020-07-06 Thread Jesper Dangaard Brouer
There are a number of places in test_progs that use minus-1 as the argument to exit(). This improper use as a process exit status is masked to be a number between 0 and 255 as defined in man exit(3). This patch use two different positive exit codes instead, to allow a shell script to tell the two

[PATCH bpf-next V2 0/2] BPF selftests test runner 'test_progs' use proper shell exit codes

2020-07-06 Thread Jesper Dangaard Brouer
This patchset makes it easier to use test_progs from shell scripts, by using proper shell exit codes. The process's exit status should be a number between 0 and 255 as defined in man exit(3) else it will be masked to comply. Shell exit codes used by programs should be below 127. As 127 and above a

Re: [PATCH 25/32] usb: early: ehci-dbgp: Remove set but never checked variable 'ret'

2020-07-06 Thread Eric W. Biederman
Lee Jones writes: > 'ret' hasn't been checked since the driver's inception in 2009. Minor quibble the inception was in 5c05917e7fe3 ("x86: usb debug port early console, v4") in July of 2008. Acked-by: "Eric W. Biederman" > Fixes the following W=1 kernel build warning(s): > > drivers/usb/ear

Re: [PATCH] drm/hisilicon/hibmc: Move drm_fbdev_generic_setup() down to avoid the splat

2020-07-06 Thread Thomas Zimmermann
Hi Am 06.07.20 um 16:47 schrieb Zenghui Yu: > The HiSilicon hibmc driver triggers a splat at boot time as below > > [ 14.137806] [ cut here ] > [ 14.142405] hibmc-drm :0a:00.0: Device has not been registered. > [ 14.148661] WARNING: CPU: 0 PID: 496 at > drivers/

Re: [PATCH 18/18] arm64: lto: Strengthen READ_ONCE() to acquire when CLANG_LTO=y

2020-07-06 Thread Dave Martin
On Mon, Jul 06, 2020 at 09:34:55AM -0700, Paul E. McKenney wrote: > On Mon, Jul 06, 2020 at 05:00:23PM +0100, Dave Martin wrote: > > On Thu, Jul 02, 2020 at 08:23:02AM +0100, Will Deacon wrote: > > > On Wed, Jul 01, 2020 at 06:07:25PM +0100, Dave P Martin wrote: > > > > On Tue, Jun 30, 2020 at 06:3

Re: [PATCH tick-sched] Clarify "NOHZ: local_softirq_pending" warning

2020-07-06 Thread Paul E. McKenney
On Mon, Jul 06, 2020 at 12:48:16PM -0400, Qian Cai wrote: > On Fri, Jun 26, 2020 at 02:05:06PM -0700, Paul E. McKenney wrote: > > Currently, can_stop_idle_tick() prints "NOHZ: local_softirq_pending HH" > > (where "HH" is the hexadecimal softirq vector number) when one or more > > non-RCU softirq ha

Re: [PATCH v2 3/7] PCI/ACS: Enable PCI_ACS_TB for untrusted/external-facing devices

2020-07-06 Thread Bjorn Helgaas
On Mon, Jun 29, 2020 at 09:49:39PM -0700, Rajat Jain wrote: > When enabling ACS, enable translation blocking for external facing ports > and untrusted devices. > > Signed-off-by: Rajat Jain > --- > v2: Commit log change > > drivers/pci/pci.c| 4 > drivers/pci/quirks.c | 11 ++

Re: [PATCH 3/3] Documentation: arm64/sve: drop duplicate words

2020-07-06 Thread Dave Martin
On Fri, Jul 03, 2020 at 01:51:10PM -0700, Randy Dunlap wrote: > Drop the doubled word "for". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-ker...@lists.infradead.org > Cc: Dave Martin Thanks! Ack

Re: [PATCH v4 0/3] Drivers: hv: vmbus: vmbus_requestor data structure for VMBus hardening

2020-07-06 Thread Wei Liu
On Tue, Jun 30, 2020 at 08:12:18PM -0400, Andres Beltran wrote: > Currently, VMbus drivers use pointers into guest memory as request IDs > for interactions with Hyper-V. To be more robust in the face of errors > or malicious behavior from a compromised Hyper-V, avoid exposing > guest memory address

[GIT PULL 1/1] bcm2835-dt-next-2020-07-06

2020-07-06 Thread Nicolas Saenz Julienne
Hi Florian, The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/nsaenz/linux-rpi.git tags/bcm2835-dt-next-2020-07-06 for you to fetch

Re: [PATCH v2 4/4] arm64: Rework ARM_ERRATUM_1414080 handling

2020-07-06 Thread Mark Rutland
On Mon, Jul 06, 2020 at 05:38:02PM +0100, Marc Zyngier wrote: > The current handling of erratum 1414080 has the side effect that > cntkctl_el1 can get changed for both 32 and 64bit tasks. > > This isn't a problem so far, but if we ever need to mitigate another > of these errata on the 64bit side,

RE: [PATCH v4 3/3] prctl: Allow ptrace capable processes to change /proc/self/exe

2020-07-06 Thread Nicolas Viennot
> > This is scary. But I believe it is safe. > > > > Reviewed-by: Serge Hallyn > > > > I am a bit curious about the implications of the selinux patch. > > IIUC you are using the permission of the tracing process to execute > > the file without transition, so this is a way to work around the > > p

[GIT PULL] KVM changes for Linux 5.8-rc5

2020-07-06 Thread Paolo Bonzini
Linus, The following changes since commit e4553b4976d1178c13da295cb5c7b21f55baf8f9: KVM: VMX: Remove vcpu_vmx's defunct copy of host_pkru (2020-06-23 06:01:29 -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 cha

[PATCH] arm64: tegra: Re-order PCIe aperture mappings

2020-07-06 Thread Vidya Sagar
Re-order Tegra194's PCIe aperture mappings to have IO window moved to 64-bit aperture and have the entire 32-bit aperture used for accessing the configuration space. This makes it to use the entire 32MB of the 32-bit aperture for ECAM purpose while booting through ACPI. Signed-off-by: Vidya Sagar

Re: [PATCH v2 26/30] misc: eeprom: at24: Tell the compiler that ACPI functions may not be used

2020-07-06 Thread Bartosz Golaszewski
On Wed, Jul 1, 2020 at 11:36 AM Lee Jones wrote: > > ... as is the case when !CONFIG_ACPI. > > Fixes the following W=1 kernel build warning: > > drivers/misc/eeprom/at24.c:228:36: warning: ‘at24_acpi_ids’ defined but not > used [-Wunused-const-variable=] > > Signed-off-by: Lee Jones > --- > - R

Re: [PATCH] drm/i915: Fix spelling mistake in i915_reg.h

2020-07-06 Thread Chris Wilson
Quoting Flavio Suligoi (2020-07-03 13:50:46) > Fix typo: "TRIGER" --> "TRIGGER" > > The two misplelled macros: > > 1) OAREPORTTRIG1_EDGE_LEVEL_TRIGER_SELECT_MASK > 2) OAREPORTTRIG5_EDGE_LEVEL_TRIGER_SELECT_MASK > > are not used in any other sources of the kernel, > so this change can be consider

Re: [GIT PULL] s390 updates for 5.8-rc5

2020-07-06 Thread pr-tracker-bot
The pull request you sent on Mon, 6 Jul 2020 17:44:17 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-5.8-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5c82ec00dd00c7a2b02d4b42cf59ae87592cb75f Thank you! -- Deet-doot-dot, I am a bo

[RFC PATCH v2 0/5] mm: extend memfd with ability to create "secret" memory areas

2020-07-06 Thread Mike Rapoport
From: Mike Rapoport Hi, This is a second version of "secret" mappings implementation backed by a file descriptor. The file descriptor is created using memfd_create() syscall with a new MFD_SECRET flag. The file descriptor should be configured using ioctl() to define the desired protection and

[RFC PATCH v2 2/5] mmap: make mlock_future_check() global

2020-07-06 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 9886db20d94f..af0a92f8f6bc 10064

[RFC PATCH v2 1/5] mm: make HPAGE_PxD_{SHIFT,MASK,SIZE} always available

2020-07-06 Thread Mike Rapoport
From: Mike Rapoport The definitions of shift, mask and size for the second and the third level of the leaf pages are available only when CONFIG_TRANSPARENT_HUGEPAGE is set. Otherwise they evaluate to BUILD_BUG(). There is no explanation neither in the code nor in the changelog why the usage of,

[RFC PATCH v2 3/5] mm: extend memfd with ability to create "secret" memory areas

2020-07-06 Thread Mike Rapoport
From: Mike Rapoport Extend memfd_create() system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The user will create a file descriptor using the memfd_create system c

[RFC PATCH v2 4/5] mm: secretmem: use PMD-size pages to amortize direct map fragmentation

2020-07-06 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add a

[RFC PATCH v2 5/5] mm: secretmem: add ability to reserve memory at boot

2020-07-06 Thread Mike Rapoport
From: Mike Rapoport Taking pages out from the direct map and bringing them back may create undesired fragmentation and usage of the smaller pages in the direct mapping of the physical memory. This can be avoided if a significantly large area of the physical memory would be reserved for secretmem

Re: [PATCH] input/synaptics: enable InterTouch for ThinkPad X1E 1st gen

2020-07-06 Thread Lyude Paul
FWIW it's not placebo, it's why I always immediately notice when starting up a new ThinkPad sample from lenovo if RMI4 is enabled or not :). Anyway thank you for the patch, assuming you double-checked that clicking with the clickpad still works (I made this mistake last time when trying to enable

drivers/gpu/drm/exynos/exynos_drm_gem.c:62:36: sparse: sparse: incorrect type in assignment (different address spaces)

2020-07-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 commit: 9940d9d93406f41ad4dc69fa2cda1e059a7ca108 drm/exynos: gem: Get rid of the internal 'pages' array date: 7 weeks ago config: arm64-randconfig-s03

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-06 Thread Dave Martin
On Sat, Jul 04, 2020 at 04:02:46PM +0200, Greg Kroah-Hartman wrote: > Here is a tiny new syscall, readfile, that makes it simpler to read > small/medium sized files all in one shot, no need to do open/read/close. > This is especially helpful for tools that poke around in procfs or > sysfs, making a

drivers/net/phy/mdio-cavium.c:21:16: note: in expansion of macro 'oct_mdio_readq'

2020-07-06 Thread kernel test robot
: 11 months ago config: m68k-randconfig-r015-20200706 (attached as .config) compiler: m68k-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

[RFC PATCH v2 04/11] RISC-V: Add early ioremap support

2020-07-06 Thread Atish Patra
UEFI uses early IO or memory mappings for runtime services before normal ioremap() is usable. Add the necessary fixmap bindings and pmd mappings for generic ioremap support to work. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/Kbuild | 1 + arc

[RFC PATCH v2 10/11] efi: Rename arm-init to efi-init common for all arch

2020-07-06 Thread Atish Patra
arm-init is responsible for setting up efi runtime and doesn't actually do any ARM specific stuff. RISC-V can use the same source code as it is. Rename it to efi-init so that RISC-V can use it. Signed-off-by: Atish Patra --- drivers/firmware/efi/Makefile | 2 +- drivers/firmwa

[RFC PATCH v2 08/11] RISC-V: Add PE/COFF header for EFI stub

2020-07-06 Thread Atish Patra
Linux kernel Image can appear as an EFI application With appropriate PE/COFF header fields in the beginning of the Image header. An EFI application loader can directly load a Linux kernel Image and an EFI stub residing in kernel can boot Linux kernel directly. Add the necessary PE/COFF header. Si

[RFC PATCH v2 02/11] RISC-V: Move DT mapping outof fixmap

2020-07-06 Thread Atish Patra
From: Anup Patel Currently, RISC-V reserves 1MB of fixmap memory for device tree. However, it maps only single PMD (2MB) space for fixmap which leaves only < 1MB space left for other kernel features such as early ioremap which requires fixmap as well. The fixmap size can be increased by another 2

[RFC PATCH v2 05/11] RISC-V: Set maximum number of mapped pages correctly

2020-07-06 Thread Atish Patra
Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to a wrong value if there are multiple memblocks defined in kernel (e.g. with efi run

[RFC PATCH v2 09/11] RISC-V: Add EFI stub support.

2020-07-06 Thread Atish Patra
Add a RISC-V architecture specific stub code that actually copies the actual kernel image to a valid address and jump to it after boot services are terminated. Enable UEFI related kernel configs as well for RISC-V. Signed-off-by: Atish Patra Link: https://lore.kernel.org/r/2020042106.9663-4-a

[RFC PATCH v2 01/11] efi/libstub: Move the function prototypes to header file

2020-07-06 Thread Atish Patra
The prototype of the functions handle_kernel_image & efi_enter_kernel are defined in efi-stub.c which may result in a compiler warnings if -Wmissing-prototypes is set in gcc compiler. Move the prototype to efistub.h to make the compiler happy. Signed-off-by: Atish Patra --- drivers/firmware/efi

[RFC PATCH v2 06/11] riscv: Parse all memory blocks to remove unusable memory

2020-07-06 Thread Atish Patra
Currently, maximum physical memory allowed is equal to -PAGE_OFFSET. That's why we remove any memory blocks spanning beyond that size. However, it is done only for memblock containing linux kernel which will not work if there are multiple memblocks. Process all memory blocks to figure out how much

[RFC PATCH v2 00/11] Add UEFI support for RISC-V

2020-07-06 Thread Atish Patra
This series adds UEFI support for RISC-V. Linux kernel: 5.8-rc4 U-Boot: master OpenSBI: master Patch 1-6 are preparatory patches that fixes some of the geric efi and riscv issues. Patch 7-9 adds the efi stub support for RISC-V which was reviewed few months back. https://www.spinics.net/lists/l

[RFC PATCH v2 07/11] include: pe.h: Add RISC-V related PE definition

2020-07-06 Thread Atish Patra
Define RISC-V related machine types. Signed-off-by: Atish Patra Reviewed-by: Palmer Dabbelt Link: https://lore.kernel.org/r/20200415195422.19866-3-atish.pa...@wdc.com Signed-off-by: Ard Biesheuvel --- include/linux/pe.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pe.h

[RFC PATCH v2 11/11] RISC-V: Add EFI runtime services

2020-07-06 Thread Atish Patra
This patch adds EFI runtime service support for RISC-V. Signed-off-by: Atish Patra --- arch/riscv/Kconfig | 2 + arch/riscv/include/asm/efi.h| 20 arch/riscv/include/asm/mmu.h| 2 + arch/riscv/include/asm/pgalloc.h| 12 ++ arch/risc

[RFC PATCH v2 03/11] RISC-V: Setup exception vector early

2020-07-06 Thread Atish Patra
The trap vector is set only in trap_init which may be too late in some cases. Early ioremap/efi spits many warning messages which may be useful. Setup the trap vector early so that any warning/bug can be handled before generic code invokes trap_init. Signed-off-by: Atish Patra --- arch/riscv/ke

Re: [PATCH 2/3] Linux: Use rseq in sched_getcpu if available (v9)

2020-07-06 Thread Mathieu Desnoyers
- On Jul 6, 2020, at 10:49 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Jul 6, 2020, at 9:59 AM, Florian Weimer fwei...@redhat.com wrote: > >> * Mathieu Desnoyers: >> >>> When available, use the cpu_id field from __rseq_abi on Linux to >>> implement sched_getcpu().

[PATCH 1/3] dt-bindings: vendor-prefixes: add Seeed Studio

2020-07-06 Thread Marcin Sloniewski
Add the "seeed" vendor prefix for Seeed Technology Co., Ltd Website: https://www.seeedstudio.com/ Signed-off-by: Marcin Sloniewski --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.ya

[PATCH 2/3] dt-bindings: arm: stm32: document Odyssey compatible

2020-07-06 Thread Marcin Sloniewski
Document device tree bindings of Seeed SoM and carrier board. Signed-off-by: Marcin Sloniewski --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Documentation/devicetree/bindi

[PATCH 3/3] ARM: dts: stm32: add initial support for stm32mp157-odyssey board

2020-07-06 Thread Marcin Sloniewski
Add support for Seeed Studio's stm32mp157c odyssey board. Board consists of SoM with stm32mp157c with 4GB eMMC and 512 MB DDR3 RAM and carrier board with USB and ETH interfaces, SD card connector, wifi and BT chip AP6236. In this patch only basic kernel boot is supported and interfacing SD card an

Re: [PATCH 18/18] arm64: lto: Strengthen READ_ONCE() to acquire when CLANG_LTO=y

2020-07-06 Thread Paul E. McKenney
On Mon, Jul 06, 2020 at 06:05:57PM +0100, Dave Martin wrote: > On Mon, Jul 06, 2020 at 09:34:55AM -0700, Paul E. McKenney wrote: > > On Mon, Jul 06, 2020 at 05:00:23PM +0100, Dave Martin wrote: > > > On Thu, Jul 02, 2020 at 08:23:02AM +0100, Will Deacon wrote: > > > > On Wed, Jul 01, 2020 at 06:07:

Re: [RFC PATCH 06/16] sched: Add core wide task selection and scheduling.

2020-07-06 Thread Joel Fernandes
Hi Vineeth, On Mon, Jul 06, 2020 at 10:38:27AM -0400, Vineeth Remanan Pillai wrote: > On Mon, Jul 6, 2020 at 10:09 AM Joel Fernandes wrote: > > > > > I am not sure if this can happen. If the other sibling sets core_pick, it > > > will be under the core wide lock and it should set the core_sched_s

Re: [qemu] boot failed: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000

2020-07-06 Thread Naresh Kamboju
ptr or error ptr. Sorry I missed that. > > > Vinod, > It looks like the only fix for dmaengine for the patch is where Arnd pointed > out > as far as I can tell after auditing it. Let me know how you want to handle > this. > Thanks! This proposed fix patch applied on top of li

[PATCH v3] dm crypt: add flags to optionally bypass dm-crypt workqueues

2020-07-06 Thread Ignat Korchagin
Changes from v2: * dropped nobacklog boolean - ciphers are OK to backlog requests * moved some conditionals inline dropping the extra local variables * renamed "noresched" -> "atomic" This is a follow up from [1]. Consider the following script: sudo modprobe brd rd_nr=1 rd_size=4194304 ech

[PATCH] Replace HTTP links with HTTPS ones: IPv*

2020-07-06 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH] Replace HTTP links with HTTPS ones: QNX4

2020-07-06 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH] dt-bindings: mmc: Convert sdhci-sirf to json-schema

2020-07-06 Thread Kangmin Park
Convert the sdhci-sirf binding to DT schema format using json-schema. At the same time, fix unit address to match the first address specified in the reg property of the node. Signed-off-by: Kangmin Park --- .../devicetree/bindings/mmc/sdhci-sirf.txt| 18 - .../devicetree/bindings/mm

Re: [PATCH v4 3/3] prctl: Allow ptrace capable processes to change /proc/self/exe

2020-07-06 Thread Christian Brauner
On Mon, Jul 06, 2020 at 05:13:35PM +, Nicolas Viennot wrote: > > > This is scary. But I believe it is safe. > > > > > > Reviewed-by: Serge Hallyn > > > > > > I am a bit curious about the implications of the selinux patch. > > > IIUC you are using the permission of the tracing process to execu

Re: [PATCH v6 2/3] remoteproc: Add inline coredump functionality

2020-07-06 Thread Mathieu Poirier
On Mon, Jun 29, 2020 at 01:02:12PM -0700, Rishabh Bhatnagar wrote: > The current coredump implementation uses vmalloc area to copy > all the segments. But this might put strain on low memory targets > as the firmware size sometimes is in tens of MBs. The situation > becomes worse if there are multi

Re: [PATCH 2/3] Linux: Use rseq in sched_getcpu if available (v9)

2020-07-06 Thread Florian Weimer
* Mathieu Desnoyers: > Now we need to discuss how we introduce that fix in a way that will > allow user-space to trust the __rseq_abi.cpu_id field's content. I don't think that's necessary. We can mention it in the glibc distribution notes on the wiki. > The usual approach to kernel bug fixing

[PATCH] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Chu Lin
Per max6581, reg 4d and reg 4e is used for temperature read offset. This patch will let the user specify the temperature read offset for max6581. This patch is tested on max6581 and only applies to max6581. Testing: echo 16250 > temp2_offset cat temp2_offset 16250 echo 17500 > temp3_offset cat te

Re: [dm-devel] [PATCH v2] dm crypt: add flags to optionally bypass dm-crypt workqueues

2020-07-06 Thread Ignat Korchagin
On Mon, Jul 6, 2020 at 3:28 PM Bob Liu wrote: > > Hi Ignat, > > On 6/27/20 5:03 AM, Ignat Korchagin wrote: > > This is a follow up from [1]. Consider the following script: > > > > sudo modprobe brd rd_nr=1 rd_size=4194304 > > > > Did you test null_blk device? I didn't get result as expected using

[PATCH v5 00/13] Add support for Kontron sl28cpld

2020-07-06 Thread Michael Walle
The Kontron sl28cpld is a board management chip providing gpio, pwm, fan monitoring and an interrupt controller. For now this controller is used on the Kontron SMARC-sAL28 board. But because of its flexible nature, it might also be used on other boards in the future. The individual blocks (like gpi

[PATCH v5 01/13] regmap-irq: use fwnode instead of device node in add_irq_chip()

2020-07-06 Thread Michael Walle
Convert the argument to the newer fwnode_handle instead a device tree node. Fortunately, there are no users for now. So this is an easy change. Signed-off-by: Michael Walle --- Mark, after this patch is reviewed, could already pick it, so it is less likely, others will use the old regmap_add_irq_

[PATCH v5 08/13] gpio: add support for the sl28cpld GPIO controller

2020-07-06 Thread Michael Walle
Add support for the GPIO controller of the sl28 board management controller. This driver is part of a multi-function device. A controller has 8 lines. There are three different flavors: full-featured GPIO with interrupt support, input-only and output-only. Signed-off-by: Michael Walle --- Change

[PATCH v5 09/13] hwmon: add support for the sl28cpld hardware monitoring controller

2020-07-06 Thread Michael Walle
Add support for the hardware monitoring controller of the sl28cpld board management controller. This driver is part of a multi-function device. Signed-off-by: Michael Walle Acked-by: Guenter Roeck --- Changes since v4: - update copyright year - remove #include , suggested by Andy. - use PTR_E

[PATCH v5 11/13] arm64: dts: freescale: sl28: map GPIOs to input events

2020-07-06 Thread Michael Walle
Now that we have support for GPIO lines of the SMARC connector, map the sleep, power and lid switch signals to the corresponding keys using the gpio-keys and gpio-keys-polled drivers. The power and sleep signals have dedicated interrupts, thus we use these ones. The lid switch is just mapped to a G

Re: [PATCH 25/32] usb: early: ehci-dbgp: Remove set but never checked variable 'ret'

2020-07-06 Thread Lee Jones
On Mon, 06 Jul 2020, Eric W. Biederman wrote: > Lee Jones writes: > > > 'ret' hasn't been checked since the driver's inception in 2009. > > Minor quibble the inception was in 5c05917e7fe3 ("x86: usb debug port > early console, v4") in July of 2008. I'm only going back as far as the inception

[PATCH v5 12/13] arm64: dts: freescale: sl28: enable LED support

2020-07-06 Thread Michael Walle
Now that we have support for GPIO lines of the SMARC connector, enable LED support on the KBox A-230-LS. There are two LEDs without fixed functions, one is yellow and one is green. Unfortunately, it is just one multi-color LED, thus while it is possible to enable both at the same time it is hard to

[PATCH v5 02/13] mfd: add simple regmap based I2C driver

2020-07-06 Thread Michael Walle
There are I2C devices which contain several different functions but doesn't require any special access functions. For these kind of drivers an I2C regmap should be enough. Create an I2C driver which creates an I2C regmap and enumerates its children. If a device wants to use this as its MFD core dr

[PATCH v5 10/13] arm64: dts: freescale: sl28: enable sl28cpld

2020-07-06 Thread Michael Walle
Add the board management controller node. Signed-off-by: Michael Walle --- Changes since v4: - none Changes since v3: - see cover letter .../freescale/fsl-ls1028a-kontron-sl28.dts| 102 ++ 1 file changed, 102 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-l

[PATCH v5 13/13] arm64: dts: freescale: sl28: enable fan support

2020-07-06 Thread Michael Walle
Add a pwm-fan mapped to the PWM channel 0 which is connected to the fan connector of the carrier. Signed-off-by: Michael Walle --- Changes since v4: - none Changes since v3: - see cover letter .../dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts | 9 + 1 file changed, 9 insertion

[PATCH v5 06/13] watchdog: add support for sl28cpld watchdog

2020-07-06 Thread Michael Walle
Add support for the watchdog of the sl28cpld board management controller. This is part of a multi-function device driver. Signed-off-by: Michael Walle Acked-by: Guenter Roeck --- Changes since v4: - update copyright year - remove #include , suggested by Andy. - slightly reworked the error cod

[PATCH v5 05/13] irqchip: add sl28cpld interrupt controller support

2020-07-06 Thread Michael Walle
Add support for the interrupt controller inside the sl28 CPLD management controller. The interrupt controller can handle at most 8 interrupts and is really simplistic and consists only of an interrupt mask and an interrupt pending register. Signed-off-by: Michael Walle --- Changes since v4: - u

[PATCH v5 04/13] mfd: simple-mfd-i2c: add sl28cpld support

2020-07-06 Thread Michael Walle
Add the core support for the board management controller found on the SMARC-sAL28 board. At the moment, this controller is used on the Kontron SMARC-sAL28 board. Signed-off-by: Michael Walle --- Changes since v4: - new patch drivers/mfd/simple-mfd-i2c.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v5 03/13] dt-bindings: mfd: Add bindings for sl28cpld

2020-07-06 Thread Michael Walle
Add a device tree bindings for the board management controller found on the Kontron SMARC-sAL28 board. Signed-off-by: Michael Walle --- Changes since v4: - fix the regex of the unit-address Changes since v3: - see cover letter .../bindings/gpio/kontron,sl28cpld-gpio.yaml | 54 +++ .../

[PATCH v5 07/13] pwm: add support for sl28cpld PWM controller

2020-07-06 Thread Michael Walle
Add support for the PWM controller of the sl28cpld board management controller. This is part of a multi-function device driver. The controller has one PWM channel and can just generate four distinct frequencies. Signed-off-by: Michael Walle --- Changes since v4: - update copyright year - remov

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