Re: forkat(int pidfd), execveat(int pidfd), other awful things?

2021-02-01 Thread Casey Schaufler
On 2/1/2021 9:47 AM, Jason A. Donenfeld wrote: > Hi Andy & others, > > I was reversing some NT stuff recently and marveling over how wild and > crazy things are over in Windows-land. A few things related to process > creation caught my interest: > > - It's possible to create a new process with an *

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-02-01 Thread Daniel Vetter
On Thu, Jan 28, 2021 at 1:03 PM Sumit Semwal wrote: > > On Thu, 28 Jan 2021 at 17:23, Christian König > wrote: > > > > Am 28.01.21 um 12:00 schrieb Sumit Semwal: > > > Hi Hridya, > > > > > > On Wed, 27 Jan 2021 at 17:36, Greg KH wrote: > > >> On Tue, Jan 26, 2021 at 12:42:36PM -0800, Hridya Vals

Re: [RFC PATCH v2 07/26] KVM: arm64: Introduce a BSS section for use at Hyp

2021-02-01 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:05PM +, Quentin Perret wrote: > Currently, the hyp code cannot make full use of a bss, as the kernel > section is mapped read-only. > > While this mapping could simply be changed to read-write, it would > intermingle even more the hyp and kernel state than they cu

Re: [PATCH v10 00/17] Implement NTB Controller using multiple PCI EP

2021-02-01 Thread Lorenzo Pieralisi
On Fri, Jan 29, 2021 at 06:12:56PM +0530, Kishon Vijay Abraham I wrote: > This series is about implementing SW defined Non-Transparent Bridge (NTB) > using multiple endpoint (EP) instances. This series has been tested using > 2 endpoint instances in J7 connected to J7 board on one end and DRA7 boar

Re: [PATCH net-next 9/9] net: ipa: don't disable NAPI in suspend

2021-02-01 Thread Alex Elder
On 2/1/21 8:47 AM, Willem de Bruijn wrote: - I will begin some long testing later today without this last patch applied --> But I think testing without the IRQ ordering patch would be more promising, and I'd like to hear your opinion on that Either test depends on whe

Re: [PATCH 0/4 v2] tracing: Merge irqflags + preempt counter.

2021-02-01 Thread Steven Rostedt
On Mon, 1 Feb 2021 19:23:45 +0100 Sebastian Andrzej Siewior wrote: > On 2021-01-25 20:45:07 [+0100], To linux-kernel@vger.kernel.org wrote: > > The merge irqflags + preempt counter, v2. > > > > v1…v2: > > - Helper functions renamed. > > - Added patch #2 which inlines the helper functions. > >

[PATCH 13/31] coresight: etm4x: Add sysreg access helpers

2021-02-01 Thread Mathieu Poirier
From: Suzuki K Poulose ETM architecture defines the system instructions for accessing via register accesses. Add basic support for accessing a given register via system instructions. We split the list of registers as : 1) Accessible only from memory mapped interface 2) Accessible from system r

[PATCH 09/31] coresight: etm4x: Always read the registers on the host CPU

2021-02-01 Thread Mathieu Poirier
From: Suzuki K Poulose As we are about to add support for sysreg access to ETM4.4+ components, make sure that we read the registers only on the host CPU. Cc: Mike Leach Signed-off-by: Suzuki K Poulose Link: https://lore.kernel.org/r/20210110224850.1880240-8-suzuki.poul...@arm.com Signed-off-by

Re: [RFC PATCH v2 06/26] KVM: arm64: Factor memory allocation out of pgtable.c

2021-02-01 Thread Will Deacon
On Mon, Feb 01, 2021 at 06:32:52PM +, Quentin Perret wrote: > On Monday 01 Feb 2021 at 18:16:08 (+), Will Deacon wrote: > > On Fri, Jan 08, 2021 at 12:15:04PM +, Quentin Perret wrote: > > > +static struct kvm_pgtable_mm_ops kvm_s2_mm_ops = { > > > + .zalloc_page= stage2_memc

Re: [RFC PATCH v2 08/26] KVM: arm64: Make kvm_call_hyp() a function call at Hyp

2021-02-01 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:06PM +, Quentin Perret wrote: > kvm_call_hyp() has some logic to issue a function call or a hypercall > depending the EL at which the kernel is running. However, all the code > compiled under __KVM_NVHE_HYPERVISOR__ is guaranteed to run only at EL2, > and in this c

[PATCH 19/31] coresight: etm4x: Handle ETM architecture version

2021-02-01 Thread Mathieu Poirier
From: Suzuki K Poulose We are about to rely on TRCDEVARCH for detecting the ETM and its architecture version, falling back to TRCIDR1 if the former is not implemented (in older broken implementations). Also, we use the architecture version information to make some decisions. Streamline the archi

Re: [PATCH v2] ext4: Enable code path when DX_DEBUG is set

2021-02-01 Thread Vinicius Tinti
On Mon, Feb 1, 2021 at 2:13 PM Theodore Ts'o wrote: > > On Mon, Feb 01, 2021 at 01:15:29PM -0300, Vinicius Tinti wrote: > > On Mon, Feb 1, 2021 at 9:49 AM Christoph Hellwig wrote: > > > > > > DX_DEBUG is completely dead code, so either kill it off or make it an > > > actual CONFIG_* symbol throug

Re: [RFC PATCH v2 09/26] KVM: arm64: Allow using kvm_nvhe_sym() in hyp code

2021-02-01 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:07PM +, Quentin Perret wrote: > In order to allow the usage of code shared by the host and the hyp in > static inline library function, allow the usage of kvm_nvhe_sym() at el2 typo: functions > by defaulting to the raw symbol name. > > Signed-off-by: Quentin Pe

Re: [PATCH 8/9] vfio/pci: use x86 naming instead of igd

2021-02-01 Thread Alex Williamson
On Mon, 1 Feb 2021 12:49:12 -0500 Matthew Rosato wrote: > On 2/1/21 12:14 PM, Cornelia Huck wrote: > > On Mon, 1 Feb 2021 16:28:27 + > > Max Gurtovoy wrote: > > > >> This patch doesn't change any logic but only align to the concept of > >> vfio_pci_core extensions. Extensions that are rel

Re: [PATCH] mm/page_io: Use pr_alert_ratelimited for swap read/write errors

2021-02-01 Thread Minchan Kim
On Mon, Feb 01, 2021 at 04:20:55PM +0200, Georgi Djakov wrote: > If there are errors during swap read or write, they can easily fill > the log buffer and remove any previous messages that might be useful > for debugging, especially on systems that rely for logging only on > the kernel ring-buffer.

Re: [PATCH v1 00/10] mfd, x86: remove msic driver and leftovers

2021-02-01 Thread Andy Shevchenko
On Tue, Jan 26, 2021 at 12:39:59PM +0200, Andy Shevchenko wrote: > On Tue, Jan 26, 2021 at 08:21:01AM +, Lee Jones wrote: > > On Mon, 25 Jan 2021, Andy Shevchenko wrote: > > > > > This is a second part of the Intel MID outdated platforms removal. > > > First part is available as immutable bran

Re: [PATCH V3 00/14] arm64: coresight: Enable ETE and TRBE

2021-02-01 Thread Mathieu Poirier
On Wed, Jan 27, 2021 at 02:25:24PM +0530, Anshuman Khandual wrote: > This series enables future IP trace features Embedded Trace Extension (ETE) > and Trace Buffer Extension (TRBE). This series depends on the ETM system > register instruction support series [0] which is available here [1]. This > s

Re: [PATCH v1 2/5] ACPI: battery: Clean up printing messages

2021-02-01 Thread Rafael J. Wysocki
On Mon, Feb 1, 2021 at 7:37 PM Joe Perches wrote: > > On Mon, 2021-02-01 at 19:16 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Replace the ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() instances > > in battery.c with acpi_handle_debug() and acpi_handle_info() calls, > > respectiv

Re: [PATCH net-next v2 0/7] net: ipa: don't disable NAPI in suspend

2021-02-01 Thread Willem de Bruijn
On Mon, Feb 1, 2021 at 12:28 PM Alex Elder wrote: > > This is version 2 of a series that reworks the order in which things > happen during channel stop and suspend (and start and resume), in > order to address a hang that has been observed during suspend. > The introductory message on the first ve

Re: [PATCH] crypto: caam -Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-01 Thread Horia Geantă
On 2/1/2021 10:20 AM, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/crypto/caam/debugfs.c:23:0-23: WARNING: caam_fops_u64_ro > should be defined with DEFINE_DEBUGFS_ATTRIBUTE. > > ./drivers/crypto/caam/debugfs.c:22:0-23: WARNING: caam_fops_u32_ro > should be defined w

Re: [PATCH v1 00/10] mfd, x86: remove msic driver and leftovers

2021-02-01 Thread Rafael J. Wysocki
On Mon, Feb 1, 2021 at 7:45 PM Andy Shevchenko wrote: > > On Tue, Jan 26, 2021 at 12:39:59PM +0200, Andy Shevchenko wrote: > > On Tue, Jan 26, 2021 at 08:21:01AM +, Lee Jones wrote: > > > On Mon, 25 Jan 2021, Andy Shevchenko wrote: > > > > > > > This is a second part of the Intel MID outdated

Re: PCI MSI issue with reinserting a driver

2021-02-01 Thread Marc Zyngier
Hi John, On Mon, 01 Feb 2021 18:34:59 +, John Garry wrote: > > Just a heads-up, by chance I noticed that I can't re-insert a specific > driver on v5.11-rc6: > > [ 64.356023] hisi_dma :7b:00.0: Adding to iommu group 31 > [ 64.368627] hisi_dma :7b:00.0: enabling device ( -> 00

Re: [PATCH v2 3/3] vsprintf: dump full information of page flags in pGp

2021-02-01 Thread Joe Perches
On Mon, 2021-02-01 at 14:15 +, Matthew Wilcox wrote: > On Mon, Feb 01, 2021 at 07:56:10PM +0800, Yafang Shao wrote: > > - Before the patch, > > [ 6343.396602] Slab 0x4382e02b objects=33 used=3 > > fp=0x9ae06ffc flags=0x17c0010200(slab|head) > > > > - After the patch, > > [

Re: [PATCH 1/2] vdpa/mlx5: Avoid unnecessary query virtqueue

2021-02-01 Thread Si-Wei Liu
On Thu, Jan 28, 2021 at 5:46 AM Eli Cohen wrote: > > suspend_vq should only suspend the VQ on not save the current available > index. This is done when a change of map occurs when the driver calls > save_channel_info(). Hmmm, suspend_vq() is also called by teardown_vq(), the latter of which doesn

Re: [PATCH] r8169: Add support for another RTL8168FP

2021-02-01 Thread Heiner Kallweit
On 01.02.2021 17:47, Kai-Heng Feng wrote: > According to the vendor driver, the new chip with XID 0x54b is > essentially the same as the one with XID 0x54a, but it doesn't need the > firmware. > > So add support accordingly. > > Signed-off-by: Kai-Heng Feng > --- > drivers/net/ethernet/realtek/

Re: [PATCH v2] PCI: dwc: Change size to u64 for EP outbound iATU

2021-02-01 Thread Lorenzo Pieralisi
On Wed, 6 Jan 2021 16:15:00 +0530, Shradha Todi wrote: > Since outbound iATU permits size to be greater than 4GB for which the > support is also available, allow EP function to send u64 size instead of > truncating to u32. Applied to pci/dwc, thanks! [1/1] PCI: dwc: Change size to u64 for EP outb

Re: Very slow unlockall()

2021-02-01 Thread Vlastimil Babka
On 2/1/21 7:00 PM, Milan Broz wrote: > On 01/02/2021 14:08, Vlastimil Babka wrote: >> On 1/8/21 3:39 PM, Milan Broz wrote: >>> On 08/01/2021 14:41, Michal Hocko wrote: On Wed 06-01-21 16:20:15, Milan Broz wrote: > Hi, > > we use mlockall(MCL_CURRENT | MCL_FUTURE) / munlockall() in

Re: [PATCH 08/10] clocksource/drivers/hyper-v: Handle sched_clock differences inline

2021-02-01 Thread Wei Liu
On Wed, Jan 27, 2021 at 12:23:43PM -0800, Michael Kelley wrote: [...] > +/* > + * Reference to pv_ops must be inline so objtool > + * detection of noinstr violations can work correctly. > + */ > +static __always_inline void hv_setup_sched_clock(void *sched_clock) sched_clock_register is not trivia

Re: [PATCH v2 13/15] dt-binding: display: bcm2711-hdmi: Add CEC and hotplug interrupts

2021-02-01 Thread Rob Herring
On Mon, Jan 11, 2021 at 8:27 AM Maxime Ripard wrote: > > The CEC and hotplug interrupts were missing when that binding was > introduced, let's add them in now that we've figured out how it works. > > Signed-off-by: Maxime Ripard > --- > .../bindings/display/brcm,bcm2711-hdmi.yaml | 20

Re: [PATCH V2 3/3] Adding device_dma_parameters->offset_preserve_mask to NVMe driver.

2021-02-01 Thread Andy Shevchenko
On Mon, Feb 01, 2021 at 10:30:17AM -0800, Jianxiong Gao wrote: > NVMe driver relies on the address offset to function properly. > This patch adds the offset preserve mask to NVMe driver when mapping > via dma_map_sg_attrs and unmapping via nvme_unmap_sg. The mask > depends on the page size defined

Re: [PATCH v2] PCI: dwc: Add upper limit address for outbound iATU

2021-02-01 Thread Lorenzo Pieralisi
On Wed, Jan 06, 2021 at 04:20:10PM +0530, Shradha Todi wrote: > The size parameter is unsigned long type which can accept size > 4GB. In > that case, the upper limit address must be programmed. Add support to > program the upper limit address and set INCREASE_REGION_SIZE in case size > > 4GB. > >

[PATCH] x86/split_lock: Enable the split lock feature on another Alder Lake CPU

2021-02-01 Thread Fenghua Yu
Add Alder Lake mobile processor to CPU list to enumerate and enable the split lock feature. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/intel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 59a1e3

Re: [PATCH v2 3/3] vsprintf: dump full information of page flags in pGp

2021-02-01 Thread Matthew Wilcox
On Mon, Feb 01, 2021 at 10:51:03AM -0800, Joe Perches wrote: > On Mon, 2021-02-01 at 14:15 +, Matthew Wilcox wrote: > > On Mon, Feb 01, 2021 at 07:56:10PM +0800, Yafang Shao wrote: > > > - Before the patch, > > > [ 6343.396602] Slab 0x4382e02b objects=33 used=3 > > > fp=0x9ae06

Re: [PATCH v5] x86/mce: Avoid infinite loop for copy from user recovery

2021-02-01 Thread Luck, Tony
On Thu, Jan 28, 2021 at 06:57:35PM +0100, Borislav Petkov wrote: > Crazy idea: if you still can reproduce on -rc3, you could bisect: i.e., > if you apply the patch on -rc3 and it explodes and if you apply the same > patch on -rc5 and it works, then that could be a start... Yeah, don't > have a bett

Re: [RFC PATCH v2 10/26] KVM: arm64: Introduce an early Hyp page allocator

2021-02-01 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:08PM +, Quentin Perret wrote: > diff --git a/arch/arm64/kvm/hyp/nvhe/early_alloc.c > b/arch/arm64/kvm/hyp/nvhe/early_alloc.c > new file mode 100644 > index ..de4c45662970 > --- /dev/null > +++ b/arch/arm64/kvm/hyp/nvhe/early_alloc.c > @@ -0,0 +1,60 @@

Re: [PATCH 08/14] taint: add taint for direct hardware access

2021-02-01 Thread Dan Williams
On Mon, Feb 1, 2021 at 10:35 AM Ben Widawsky wrote: > > On 21-02-01 13:18:45, Konrad Rzeszutek Wilk wrote: > > On Fri, Jan 29, 2021 at 04:24:32PM -0800, Ben Widawsky wrote: > > > For drivers that moderate access to the underlying hardware it is > > > sometimes desirable to allow userspace to bypas

Re: [PATCH v15 09/10] arm64: Call kmalloc() to allocate DTB buffer

2021-02-01 Thread Thiago Jung Bauermann
Joe Perches writes: > On Thu, 2021-01-28 at 00:52 -0300, Thiago Jung Bauermann wrote: >> The problem is that this patch implements only part of the suggestion, >> which isn't useful in itself. So the patch series should either drop >> this patch or consolidate the FDT allocation between the arc

Re: [PATCH] ceph: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-01 Thread Jeff Layton
On Mon, 2021-02-01 at 15:52 +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./fs/ceph/debugfs.c:347:0-23: WARNING: congestion_kb_fops should be > defined with DEFINE_DEBUGFS_ATTRIBUTE. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- >  fs/ceph/debugfs.c

Re: [PATCH] Revert "bfq: Fix computation of shallow depth"

2021-02-01 Thread Paolo Valente
> Il giorno 29 gen 2021, alle ore 12:18, Lin Feng ha scritto: > > This reverts commit 6d4d273588378c65915acaf7b2ee74e9dd9c130a. > > bfq.limit_depth passes word_depths[] as shallow_depth down to sbitmap core > sbitmap_get_shallow, which uses just the number to limit the scan depth of > each bi

Re: [PATCH] Revert "bfq: Fix computation of shallow depth"

2021-02-01 Thread Paolo Valente
> Il giorno 1 feb 2021, alle ore 08:32, Lin Feng ha scritto: > > Hi, it seems that this patch was blocked by linux mailist servers, so ping > again. > > Based on > https://patchwork.kernel.org/project/linux-block/patch/20201210094433.25491-1-j...@suse.cz/, > it looks like we have made a con

Re: [RFC PATCH v2 11/26] KVM: arm64: Stub CONFIG_DEBUG_LIST at Hyp

2021-02-01 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:09PM +, Quentin Perret wrote: > In order to use the kernel list library at EL2, introduce stubs for the > CONFIG_DEBUG_LIST out-of-lines calls. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/hyp/nvhe/Makefile | 2 +- > arch/arm64/kvm/hyp/nvhe/stub.c

Re: [PATCH v3 2/2] thermal: Move therm_throt there from x86/mce

2021-02-01 Thread Srinivas Pandruvada
On Mon, 2021-02-01 at 15:27 +0100, Borislav Petkov wrote: > From: Borislav Petkov > > This functionality has nothing to do with MCE, move it to the thermal > framework and untangle it from MCE. > > [...] > /* > * Used by APEI to report memory error via /dev/mcelog > */ > diff --git a/arc

Re: [RFC v3 net-next] net: core: devlink: add 'dropped' stats field for DROP trap action

2021-02-01 Thread Ido Schimmel
I missed this patch. Please Cc me on future versions given I commented on previous versions. On Mon, Jan 25, 2021 at 02:38:56PM +0200, Oleksandr Mazur wrote: > Whenever query statistics is issued for trap with DROP action, > devlink subsystem would also fill-in statistics 'dropped' field. > In cas

[PATCH] rtc: mc146818: Dont test for bit 0-5 in Register D

2021-02-01 Thread Thomas Gleixner
The recent change to validate the RTC turned out to be overly tight. While it cures the problem on the reporters machine it breaks machines with Intel chipsets which use bit 0-5 of the D register. So check only for bit 6 being 0 which is the case on these Intel machines as well. Fixes: 211e5db19d

Re: [PATCH] ARM: kexec: Fix panic after TLB are invalidated

2021-02-01 Thread Giancarlo Ferrari
Hi, On Mon, Feb 01, 2021 at 03:30:12PM +, Mark Rutland wrote: > Hi, > > On Mon, Feb 01, 2021 at 02:39:46PM +, Giancarlo Ferrari wrote: > > On Mon, Feb 01, 2021 at 12:47:20PM +, Mark Rutland wrote: > > > On Mon, Feb 01, 2021 at 12:44:56AM +, Giancarlo Ferrari wrote: > > > > machine

Re: [RFC][PATCH 05/13] mm/numa: automatically generate node migration order

2021-02-01 Thread Dave Hansen
On 1/29/21 12:46 PM, Yang Shi wrote: ... >> int next_demotion_node(int node) >> { >> - return node_demotion[node]; >> + /* >> +* node_demotion[] is updated without excluding >> +* this function from running. READ_ONCE() avoids >> +* reading multiple, inconsist

Re: [PATCH v2] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-02-01 Thread Oliver Graute
On 01/02/21, Marco Felsch wrote: > Hi Oliver, > > thanks for the patch :) > > On 21-01-29 20:09, Oliver Graute wrote: > > Add support for the Solomon Goldentek Display Model: GKTW70SDAD1SD > > to panel-simple. > > > > The panel spec from Variscite can be found at: > > https://www.variscite.com/w

Re: [PATCH v3 0/2] Move ...mce/therm_throt.c to drivers/thermal/

2021-02-01 Thread Srinivas Pandruvada
On Mon, 2021-02-01 at 15:27 +0100, Borislav Petkov wrote: > From: Borislav Petkov > > Hi, > > I know I already committed those but > > https://lkml.kernel.org/r/20210201032427.GB12524@xsang-OptiPlex-9020 > > made me look at the IRQ handler registration. And it does happen per > CPU > which is

[PATCH] media: uvc: limit max bandwidth for HDMI capture

2021-02-01 Thread Mauro Carvalho Chehab
This device: 534d:2109 MacroSilicon Announces that it supports several frame intervals for their resolutions for MJPEG compression: VideoStreaming Interface Descriptor: bLength46 bDescriptorType36 bDescriptorS

Re: [PATCH 04/14] cxl/mem: Implement polled mode mailbox

2021-02-01 Thread Ben Widawsky
On 21-02-01 12:54:00, Konrad Rzeszutek Wilk wrote: > > +#define cxl_doorbell_busy(cxlm) > > \ > > + (cxl_read_mbox_reg32(cxlm, CXLDEV_MB_CTRL_OFFSET) &\ > > +CXLDEV_MB_CTRL_DOORBELL) > > + > > +#define CXL_MAILBOX_TIMEOUT_US

[PATCH v1 1/5] dt-bindings: usb: convert rockchip,dwc3.txt to yaml

2021-02-01 Thread Johan Jonker
In the past Rockchip dwc3 usb nodes were manually checked. With the conversion of snps,dwc3.yaml as common document we now can convert rockchip,dwc3.txt to yaml as well. Added properties for rk3399 are: resets reset-names Generic properties that are now also filtered: "#address-cells" "#s

[PATCH v1 4/5] arm64: dts: rockchip: add rk3328 dwc3 usb controller node

2021-02-01 Thread Johan Jonker
From: Cameron Nemo RK3328 SoCs have one USB 3.0 OTG controller which uses DWC_USB3 core's general architecture. It can act as static xHCI host controller, static device controller, USB 3.0/2.0 OTG basing on ID of USB3.0 PHY. Signed-off-by: William Wu Signed-off-by: Heiko Stuebner Signed-off-by

[PATCH v1 2/5] dt-bindings: usb: dwc3: add description for rk3328

2021-02-01 Thread Johan Jonker
Add description for "rockchip,rk3328-dwc3". Signed-off-by: Johan Jonker --- Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,d

[PATCH v1 5/5] dts64: rockchip: enable dwc3 usb for A95X Z2

2021-02-01 Thread Johan Jonker
Enable dwc3 usb for A95X Z2. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts b/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts index 30c73ef25..b26c653c6

[PATCH v1 3/5] usb: dwc3: of-simple: add compatible for rk3328

2021-02-01 Thread Johan Jonker
From: Cameron Nemo Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future and old device trees must remain compatible with newer kernels. Signed-off-by: Cameron Nemo Si

Re: [PATCH 1/2] vdpa/mlx5: Avoid unnecessary query virtqueue

2021-02-01 Thread Si-Wei Liu
On Mon, Feb 1, 2021 at 10:51 AM Si-Wei Liu wrote: > > On Thu, Jan 28, 2021 at 5:46 AM Eli Cohen wrote: > > > > suspend_vq should only suspend the VQ on not save the current available > > index. This is done when a change of map occurs when the driver calls > > save_channel_info(). > > Hmmm, suspe

Re: Very slow unlockall()

2021-02-01 Thread Milan Broz
On 01/02/2021 19:55, Vlastimil Babka wrote: > On 2/1/21 7:00 PM, Milan Broz wrote: >> On 01/02/2021 14:08, Vlastimil Babka wrote: >>> On 1/8/21 3:39 PM, Milan Broz wrote: On 08/01/2021 14:41, Michal Hocko wrote: > On Wed 06-01-21 16:20:15, Milan Broz wrote: >> Hi, >> >> we use

[PATCH V2] rtc: mc146818: Dont test for bit 0-5 in Register D

2021-02-01 Thread Thomas Gleixner
The recent change to validate the RTC turned out to be overly tight. While it cures the problem on the reporters machine it breaks machines with Intel chipsets which use bit 0-5 of the D register. So check only for bit 6 being 0 which is the case on these Intel machines as well. Fixes: 211e5db19d

Re: [PATCH v3 7/9] userfaultfd: add UFFDIO_CONTINUE ioctl

2021-02-01 Thread Peter Xu
On Thu, Jan 28, 2021 at 02:48:17PM -0800, Axel Rasmussen wrote: > diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h > index f94a35296618..79e1f0155afa 100644 > --- a/include/linux/hugetlb.h > +++ b/include/linux/hugetlb.h > @@ -135,11 +135,14 @@ void hugetlb_show_meminfo(void); > unsi

Re: [GIT PULL for v5.11-rc7] media fixes

2021-02-01 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Feb 2021 16:56:09 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > tags/media/v5.11-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/88bb507a74ea7d75fa49edd421eaa710a7d80598 Thank you! -- Deet-doot-dot

Re: [PATCH 09/14] cxl/mem: Add a "RAW" send command

2021-02-01 Thread Ben Widawsky
On 21-02-01 13:24:00, Konrad Rzeszutek Wilk wrote: > On Fri, Jan 29, 2021 at 04:24:33PM -0800, Ben Widawsky wrote: > > The CXL memory device send interface will have a number of supported > > commands. The raw command is not such a command. Raw commands allow > > userspace to send a specified opcod

Re: [PATCH 04/14] cxl/mem: Implement polled mode mailbox

2021-02-01 Thread Dan Williams
On Mon, Feb 1, 2021 at 11:13 AM Ben Widawsky wrote: > > On 21-02-01 12:54:00, Konrad Rzeszutek Wilk wrote: > > > +#define cxl_doorbell_busy(cxlm) > > > \ > > > + (cxl_read_mbox_reg32(cxlm, CXLDEV_MB_CTRL_OFFSET) & > > > \ > > >

Re: [PATCH V2] rtc: mc146818: Dont test for bit 0-5 in Register D

2021-02-01 Thread Linus Torvalds
On Mon, Feb 1, 2021 at 11:24 AM Thomas Gleixner wrote: > > While it cures the problem on the reporters machine it breaks machines > with Intel chipsets which use bit 0-5 of the D register. So check only > for bit 6 being 0 which is the case on these Intel machines as well. This looks fine, but it

Re: [PATCH v3 9/9] userfaultfd/selftests: add test exercising minor fault handling

2021-02-01 Thread Peter Xu
On Thu, Jan 28, 2021 at 02:48:19PM -0800, Axel Rasmussen wrote: > Fix a dormant bug in userfaultfd_events_test(), where we did > `return faulting_process(0)` instead of `exit(faulting_process(0))`. > This caused the forked process to keep running, trying to execute any > further test cases after th

Re: [PATCH 1/3] smp: Process pending softirqs in flush_smp_call_function_from_idle()

2021-02-01 Thread Sebastian Andrzej Siewior
On 2021-01-23 21:10:25 [+0100], To linux-bl...@vger.kernel.org wrote: > send_call_function_single_ipi() may wake an idle CPU without sending an > IPI. The woken up CPU will process the SMP-functions in > flush_smp_call_function_from_idle(). Any raised softirq from within the > SMP-function call wil

Re: [PATCH 09/14] cxl/mem: Add a "RAW" send command

2021-02-01 Thread Konrad Rzeszutek Wilk
On Mon, Feb 01, 2021 at 11:27:08AM -0800, Ben Widawsky wrote: > On 21-02-01 13:24:00, Konrad Rzeszutek Wilk wrote: > > On Fri, Jan 29, 2021 at 04:24:33PM -0800, Ben Widawsky wrote: > > > The CXL memory device send interface will have a number of supported > > > commands. The raw command is not such

Re: [PATCH V2 3/3] Adding device_dma_parameters->offset_preserve_mask to NVMe driver.

2021-02-01 Thread Jianxiong Gao
On Mon, Feb 1, 2021 at 10:56 AM Andy Shevchenko wrote: > > On Mon, Feb 01, 2021 at 10:30:17AM -0800, Jianxiong Gao wrote: > > NVMe driver relies on the address offset to function properly. > > This patch adds the offset preserve mask to NVMe driver when mapping > > via dma_map_sg_attrs and unmappi

Re: [PATCH V2] rtc: mc146818: Dont test for bit 0-5 in Register D

2021-02-01 Thread Alexandre Belloni
On 01/02/2021 20:24:17+0100, Thomas Gleixner wrote: > The recent change to validate the RTC turned out to be overly tight. > > While it cures the problem on the reporters machine it breaks machines > with Intel chipsets which use bit 0-5 of the D register. So check only > for bit 6 being 0 which i

Re: [PATCH V2] rtc: mc146818: Dont test for bit 0-5 in Register D

2021-02-01 Thread Thomas Gleixner
On Mon, Feb 01 2021 at 11:32, Linus Torvalds wrote: > On Mon, Feb 1, 2021 at 11:24 AM Thomas Gleixner wrote: >> >> While it cures the problem on the reporters machine it breaks machines >> with Intel chipsets which use bit 0-5 of the D register. So check only >> for bit 6 being 0 which is the case

[PATCH v1 1/5] dt-bindings: usb: convert rockchip,dwc3.txt to yaml

2021-02-01 Thread Johan Jonker
In the past Rockchip dwc3 usb nodes were manually checked. With the conversion of snps,dwc3.yaml as common document we now can convert rockchip,dwc3.txt to yaml as well. Added properties for rk3399 are: resets reset-names Generic properties that are now also filtered: "#address-cells" "#s

[PATCH v1 3/5] usb: dwc3: of-simple: add compatible for rk3328

2021-02-01 Thread Johan Jonker
From: Cameron Nemo Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future and old device trees must remain compatible with newer kernels. Signed-off-by: Cameron Nemo Si

[PATCH v1 2/5] dt-bindings: usb: dwc3: add description for rk3328

2021-02-01 Thread Johan Jonker
Add description for "rockchip,rk3328-dwc3". Signed-off-by: Johan Jonker --- Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,d

[PATCH v1 4/5] arm64: dts: rockchip: add rk3328 dwc3 usb controller node

2021-02-01 Thread Johan Jonker
From: Cameron Nemo RK3328 SoCs have one USB 3.0 OTG controller which uses DWC_USB3 core's general architecture. It can act as static xHCI host controller, static device controller, USB 3.0/2.0 OTG basing on ID of USB3.0 PHY. Signed-off-by: William Wu Signed-off-by: Heiko Stuebner Signed-off-by

[PATCH 0/3 v2] arm64/ptrace: allow to get all registers on syscall traps

2021-02-01 Thread Andrei Vagin
Right now, ip/r12 for AArch32 and x7 for AArch64 is used to indicate whether or not the stop has been signalled from syscall entry or syscall exit. This means that: - Any writes by the tracer to this register during the stop are ignored/discarded. - The actual value of the register is not avail

[PATCH v1 5/5] dts64: rockchip: enable dwc3 usb for A95X Z2

2021-02-01 Thread Johan Jonker
Enable dwc3 usb for A95X Z2. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts b/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts index 30c73ef25..b26c653c6

[PATCH 2/3] arm64/ptrace: introduce PTRACE_O_ARM64_RAW_REGS

2021-02-01 Thread Andrei Vagin
We have some ABI weirdness in the way that we handle syscall exit stops because we indicate whether or not the stop has been signalled from syscall entry or syscall exit by clobbering a general purpose register (ip/r12 for AArch32, x7 for AArch64) in the tracee and restoring its old value after the

[PATCH 1/3] arm64/ptrace: don't clobber task registers on syscall entry/exit traps

2021-02-01 Thread Andrei Vagin
ip/r12 for AArch32 and x7 for AArch64 is used to indicate whether or not the stop has been signalled from syscall entry or syscall exit. This means that: - Any writes by the tracer to this register during the stop are ignored/discarded. - The actual value of the register is not available during

[PATCH 3/3] selftest/arm64/ptrace: add tests for PTRACE_O_ARM64_RAW_REGS

2021-02-01 Thread Andrei Vagin
Test output: TAP version 13 1..2 # selftests: arm64/ptrace: ptrace_syscall_raw_regs_test # 1..2 # ok 1 x7: 686920776f726c64 # ok 2 The child exited with code 0. # # Totals: pass:2 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: arm64/ptrace: ptrace_syscall_raw_regs_test # selftests:

Re: [PATCH] pmbus:max31785: Support revision "B"

2021-02-01 Thread Guenter Roeck
On 2/1/21 8:50 AM, Matthew Barth wrote: > There was an issue in how the tach feedbacks of dual rotor fans were > reported during any change in fan speeds with revision "A" of the > MAX31785. When the fan speeds would transition to a new target speed, > the rotor not wired to the TACH input when TAC

Re: [PATCH] arm64: dts: mediatek: mt8183: evb: Add domain supply for mfg

2021-02-01 Thread kernel test robot
ly-for-mfg/20210201-173309 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm64-allyesconfig (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/

[PATCH 01/12] kasan, mm: don't save alloc stacks twice

2021-02-01 Thread Andrey Konovalov
Currently KASAN saves allocation stacks in both kasan_slab_alloc() and kasan_kmalloc() annotations. This patch changes KASAN to save allocation stacks for slab objects from kmalloc caches in kasan_kmalloc() only, and stacks for other slab objects in kasan_slab_alloc() only. This change requires __

[PATCH 03/12] kasan: optimize large kmalloc poisoning

2021-02-01 Thread Andrey Konovalov
Similarly to kasan_kmalloc(), kasan_kmalloc_large() doesn't need to unpoison the object as it as already unpoisoned by alloc_pages() (or by ksize() for krealloc()). This patch changes kasan_kmalloc_large() to only poison the redzone. Signed-off-by: Andrey Konovalov --- mm/kasan/common.c | 20 ++

[PATCH 04/12] kasan: clean up setting free info in kasan_slab_free

2021-02-01 Thread Andrey Konovalov
Put kasan_stack_collection_enabled() check and kasan_set_free_info() calls next to each other. The way this was previously implemented was a minor optimization that relied of the the fact that kasan_stack_collection_enabled() is always true for generic KASAN. The confusion that this brings outweig

[PATCH 05/12] kasan: unify large kfree checks

2021-02-01 Thread Andrey Konovalov
Unify checks in kasan_kfree_large() and in kasan_slab_free_mempool() for large allocations as it's done for small kfree() allocations. With this change, kasan_slab_free_mempool() starts checking that the first byte of the memory that's being freed is accessible. Signed-off-by: Andrey Konovalov -

[PATCH 07/12] kasan, mm: remove krealloc side-effect

2021-02-01 Thread Andrey Konovalov
Currently, if krealloc() is called on a freed object with KASAN enabled, it allocates and returns a new object, but doesn't copy any memory from the old one as ksize() returns 0. This makes a caller believe that krealloc() succeeded (KASAN report is printed though). This patch adds an accessibilit

[PATCH 06/12] kasan: rework krealloc tests

2021-02-01 Thread Andrey Konovalov
This patch reworks KASAN-KUnit tests for krealloc() to: 1. Check both slab and page_alloc based krealloc() implementations. 2. Allow at least one full granule to fit between old and new sizes for each KASAN mode, and check accesses to that granule accordingly. Signed-off-by: Andrey Konovalov

[PATCH 09/12] kasan: ensure poisoning size alignment

2021-02-01 Thread Andrey Konovalov
A previous changes d99f6a10c161 ("kasan: don't round_up too much") attempted to simplify the code by adding a round_up(size) call into kasan_poison(). While this allows to have less round_up() calls around the code, this results in round_up() being called multiple times. This patch removes round_u

[PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-01 Thread Andrey Konovalov
This change provides a simpler implementation of mte_get_mem_tag(), mte_get_random_tag(), and mte_set_mem_tag_range(). Simplifications include removing system_supports_mte() checks as these functions are onlye called from KASAN runtime that had already checked system_supports_mte(). Besides that,

[PATCH 11/12] kasan: always inline HW_TAGS helper functions

2021-02-01 Thread Andrey Konovalov
Mark all static functions in common.c and kasan.h that are used for hardware tag-based KASAN as __always_inline to avoid unnecessary function calls. Signed-off-by: Andrey Konovalov --- mm/kasan/common.c | 13 +++-- mm/kasan/kasan.h | 6 +++--- 2 files changed, 10 insertions(+), 9 delet

[PATCH 08/12] kasan, mm: optimize krealloc poisoning

2021-02-01 Thread Andrey Konovalov
Currently, krealloc() always calls ksize(), which unpoisons the whole object including the redzone. This is inefficient, as kasan_krealloc() repoisons the redzone for objects that fit into the same buffer. This patch changes krealloc() instrumentation to use uninstrumented __ksize() that doesn't u

Re: [PATCH v1 1/3] usb: typec: tcpm: Add Callback to Usb Communication capable partner

2021-02-01 Thread Guenter Roeck
On 2/1/21 8:38 AM, Greg Kroah-Hartman wrote: > On Mon, Feb 01, 2021 at 06:09:25PM +0200, Heikki Krogerus wrote: >> On Mon, Feb 01, 2021 at 04:19:38PM +0100, Greg Kroah-Hartman wrote: >>> On Mon, Feb 01, 2021 at 05:12:53PM +0200, Heikki Krogerus wrote: On Mon, Feb 01, 2021 at 01:53:07AM -0800,

Re: Migration to trusted keys: sealing user-provided key?

2021-02-01 Thread Mimi Zohar
On Mon, 2021-02-01 at 17:38 +0100, Jan Lübbe wrote: > On Mon, 2021-02-01 at 11:11 -0500, Mimi Zohar wrote: > > On Mon, 2021-02-01 at 16:31 +0100, Jan Lübbe wrote: > > > On Sun, 2021-01-31 at 09:29 -0500, Mimi Zohar wrote: > > > > > Usage:: > > > > > > > > keyctl add encrypted name "new [forma

[PATCH v7 2/6] tracing: Rework synthetic event command parsing

2021-02-01 Thread Tom Zanussi
Now that command parsing has been delegated to the create functions and we're no longer constrained by argv_split(), we can modify the synthetic event command parser to better match the higher-level structure of the synthetic event commands, which is basically an event name followed by a set of sem

[PATCH v7 4/6] tracing: Add a backward-compatibility check for synthetic event creation

2021-02-01 Thread Tom Zanussi
The synthetic event parsing rework now requires semicolons between synthetic event fields. That requirement breaks existing users who might already have used the old synthetic event command format, so this adds an inner loop that can parse more than one field, if present, between semicolons. For

[PATCH v7 0/6] tracing: More synthetic event error fixes

2021-02-01 Thread Tom Zanussi
Hi, This is v7 of the synthetic event error fix patchset. This version addresses the comments from v6: - moved check_command() from '[PATCH v6 3/6] tracing: Update synth command errors' to '[PATCH v6 2/6] tracing: Rework synthetic event command parsing'. - in __create_synth_event(),

[PATCH v7 1/6] tracing/dynevent: Delegate parsing to create function

2021-02-01 Thread Tom Zanussi
From: Masami Hiramatsu Delegate command parsing to each create function so that the command syntax can be customized. This requires changes to the kprobe/uprobe/synthetic event handling, which are also included here. Signed-off-by: Masami Hiramatsu [ zanu...@kernel.org: added synthetic event m

Re: [PATCH v4 07/15] x86/paravirt: switch time pvops functions to use static_call()

2021-02-01 Thread Borislav Petkov
On Wed, Jan 20, 2021 at 02:55:47PM +0100, Juergen Gross wrote: > The time pvops functions are the only ones left which might be > used in 32-bit mode and which return a 64-bit value. > > Switch them to use the static_call() mechanism instead of pvops, as > this allows quite some simplification of

Re: [PATCH] PCI: endpoint: Explain NTB in PCI_EPF_NTB help text

2021-02-01 Thread Kishon Vijay Abraham I
Hi Geert, On 29/01/21 6:37 pm, Geert Uytterhoeven wrote: > The help text for the PCI_EPF_NTB config symbol uses the acronym "NTB". > However, this acronym is not explained there. > Expand the acronym to make it easier for users to decide if they need to > enable the PCI_EPF_NTB option or not. > >

[PATCH v7 5/6] selftests/ftrace: Update synthetic event syntax errors

2021-02-01 Thread Tom Zanussi
Some of the synthetic event errors and positions have changed in the code - update those and add several more tests. Also add a runtime check to ensure that the kernel supports dynamic strings in synthetic events, which these tests require. Fixes: 81ff92a93d95 (selftests/ftrace: Add test case for

[PATCH v7 3/6] tracing: Update synth command errors

2021-02-01 Thread Tom Zanussi
Since array types are handled differently, errors referencing them also need to be handled differently. Add and use a new INVALID_ARRAY_SPEC error. Also add INVALID_CMD and INVALID_DYN_CMD to catch and display the correct form for badly-formed commands, which can also be used in place of CMD_INCO

<    5   6   7   8   9   10   11   12   13   14   >