Re: [RFC PATCH 0/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Steven Rostedt
On Fri, 25 Sep 2020 12:08:05 -0700 Axel Rasmussen wrote: > Hi Steven and Tom, > > In this thread: https://lkml.org/lkml/2020/9/17/1015 we discussed how to plumb > dynamic strings into synthetic events. Tom, you proposed adding a new dynamic > string type to synthetic event definition like "char

Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 11:45:05AM -0500, YiFei Zhu wrote: > On Thu, Sep 24, 2020 at 10:04 PM YiFei Zhu wrote: > > > Why do the prepare here instead of during attach? (And note that it > > > should not be written to fail.) > > > > Right. > > During attach a spinlock (current->sighand->siglock) is

[RFC PATCH 3/3] selftests: Add VRF route leaking tests

2020-09-25 Thread Mathieu Desnoyers
From: Michael Jeanson The objective of the tests is to check that ICMP errors generated while crossing between VRFs are properly routed back to the source host. The first ttl test sends a ping with a ttl of 1 from h1 to h2 and parses the output of the command to check that a ttl expired error is

[RFC PATCH 2/3] ipv6/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)

2020-09-25 Thread Mathieu Desnoyers
As per RFC4443, the destination address field for ICMPv6 error messages is copied from the source address field of the invoking packet. In configurations with Virtual Routing and Forwarding tables, looking up which routing table to use for sending ICMPv6 error messages is currently done by using t

Re: [PATCH v2 0/7] KVM: x86: hyper-v: make KVM_GET_SUPPORTED_HV_CPUID more useful

2020-09-25 Thread Paolo Bonzini
On 24/09/20 16:57, Vitaly Kuznetsov wrote: > Changes since v1: > - Rebased to kvm/queue [KVM_CAP_SYS_HYPERV_CPUID -> 188] > > QEMU series using the feature: > https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg02017.html > > Original description: > > KVM_GET_SUPPORTED_HV_CPUID was initiall

Re: [PATCH v3 2/2] KVM: x86/MMU: Recursively zap nested TDP SPs when zapping last/only parent

2020-09-25 Thread Paolo Bonzini
On 24/09/20 01:29, Ben Gardon wrote: > Reviewed-by: Ben Gardon > (I don't know if my review is useful here, but the rebase of this > patch looks correct! Thank you for preventing these from becoming > undead, Sean.) It is; I had your patch on my todo list in case Sean didn't get to it, but of cou

Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 12:51:20PM -0700, Andy Lutomirski wrote: > > > > On Sep 25, 2020, at 12:42 PM, Kees Cook wrote: > > > > On Fri, Sep 25, 2020 at 11:45:05AM -0500, YiFei Zhu wrote: > >> On Thu, Sep 24, 2020 at 10:04 PM YiFei Zhu wrote: > Why do the prepare here instead of during at

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Ard Biesheuvel
On Fri, 25 Sep 2020 at 22:28, Kees Cook wrote: > > On Fri, Sep 25, 2020 at 08:33:59PM +0530, Pintu Agarwal wrote: > > This is regarding the KASLR feature support on ARM for the kernel > > version 4.9 and 4.14. > > > > Is KASLR supported on ARM-32 Linux 4.9 and above ? > > Sorry, this feature did n

Re: [PATCH 0/4] KVM: x86/mmu: Page fault handling cleanups

2020-09-25 Thread Paolo Bonzini
On 24/09/20 00:04, Sean Christopherson wrote: > Cleanups for page fault handling that were encountered during early TDX > enabling, but are worthwhile on their own. Specifically, patch 4 fixes an > issue where KVM doesn't detect a spurious page fault (due to the fault > being fixed by a different

Re: [PATCH 07/13] x86: Secure Launch kernel early boot stub

2020-09-25 Thread Arvind Sankar
On Fri, Sep 25, 2020 at 10:56:43AM -0400, Ross Philipson wrote: > On 9/24/20 1:38 PM, Arvind Sankar wrote: > > On Thu, Sep 24, 2020 at 10:58:35AM -0400, Ross Philipson wrote: > > > >> diff --git a/arch/x86/boot/compressed/head_64.S > >> b/arch/x86/boot/compressed/head_64.S > >> index 97d37f0..420

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Shakeel Butt
On Fri, Sep 25, 2020 at 10:58 AM Shakeel Butt wrote: > [snip] > > I don't think you can ignore the flushing. The __free_once() in > ___cache_free() assumes there is a space available. > > BTW do_drain() also have the same issue. > > Why not move slabs_destroy() after we update ac->avail and memmov

Re: [PATCH v2] x86/mce: Add Skylake quirk for patrol scrub reported errors

2020-09-25 Thread Borislav Petkov
On Fri, Aug 28, 2020 at 01:21:50PM -0700, Luck, Tony wrote: > +static void adjust_mce_log(struct mce *m) > +{ > + struct cpuinfo_x86 *c = &boot_cpu_data; > + > + if (c->x86_vendor == X86_VENDOR_INTEL && c->x86 == 6 && > + c->x86_model == INTEL_FAM6_SKYLAKE_X && c->x86_stepping >= 4)

Re: [PATCH v6 1/9] kernel: Support TIF_SYSCALL_INTERCEPT flag

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 12:15:54PM -0400, Gabriel Krisman Bertazi wrote: > Thomas Gleixner writes: > > > On Wed, Sep 23 2020 at 13:49, Kees Cook wrote: > >> On Wed, Sep 23, 2020 at 04:18:26PM -0400, Gabriel Krisman Bertazi wrote: > >>> Kees Cook writes: > >>> Yes, we can, and I'm happy to follow

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 25, 2020 at 11:36:15AM -0700, Andi Kleen escreveu: > > Thanks, it now works, but then... You forgot to add the Cc: entries for > > all the people in your actual e-mail Cc: list, and also the > > Reviewed-by: from Andy, I had to do it all manually, so when I applied > > your attachments

Re: [RFC PATCH v2] tools/x86: add kcpuid tool to show raw CPU features

2020-09-25 Thread Arvind Sankar
On Fri, Sep 25, 2020 at 10:17:07PM +0200, Borislav Petkov wrote: > On Fri, Sep 25, 2020 at 03:48:04PM -0400, Arvind Sankar wrote: > > Ok. Another suggestion: while designing the format for the cpuid.txt > > file, would it be possible to include enough information for > > cpufeatures.h to be auto-ge

Re: [PATCH] ASoC: fsl_sai: Instantiate snd_soc_dai_driver

2020-09-25 Thread Mark Brown
On Fri, 18 Sep 2020 18:26:00 +0800, Shengjiu Wang wrote: > Instantiate snd_soc_dai_driver for independent symmetric control. > Otherwise the symmetric setting may be overwritten by other > instance. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks!

Re: [PATCH 1/3] ASoC: cs4234: Add dtschema binding document

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 11:59:06 +0100, Richard Fitzgerald wrote: > Document the bindings for the CS4234 ASoC codec driver. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] MAINTAINERS: Update Cirrus Logic Codecs maintainers commit: 6bf28e

Re: [PATCH 0/2] Enable runtime PM for SOF device

2020-09-25 Thread Mark Brown
On Thu, 24 Sep 2020 18:15:16 +0300, Daniel Baluta wrote: > This enables runtime PM for SOF device. Next patchseries will > provide PM suspend/resume handlers for i.MX8 specific devices. > > Daniel Baluta (2): > ASoC: SOF: Activate runtime PM with SOF OF device > ASoC: SOF: Add .prepare/.comple

Re: [PATCH] fsl: imx-audmix : Replace seq_printf with seq_puts

2020-09-25 Thread Mark Brown
On Wed, 16 Sep 2020 06:14:20 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". Applied to https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] dt-bindings: tas2770: Mark ti,asi-format to deprecated

2020-09-25 Thread Mark Brown
On Thu, 24 Sep 2020 09:26:41 -0500, Dan Murphy wrote: > Mark the property ti,asi-format to deprecated as it is no longer > supported. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] dt-bindings: tas2770: Mark ti,asi-format to deprecated

Re: [PATCH v2] spi: spi-mtk-nor: fix timeout calculation overflow

2020-09-25 Thread Mark Brown
On Tue, 22 Sep 2020 19:49:02 +0800, Chuanhong Guo wrote: > CLK_TO_US macro is used to calculate potential transfer time for various > timeout handling. However it overflows on transfer bigger than 512 bytes > because it first did (len * 8 * 100). > This controller typically operates at 45MHz. T

Re: [PATCH v2 0/2] ASoC: qdsp6: fix some warnings when build without CONFIG_OF

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 17:35:50 +0100, Srinivas Kandagatla wrote: > Here are fixes for two warnings types discovered while building qdsp6 drivers > without CONFIG_OF and with W=1 > > One of them was reported by Intel kernel test robot on q6afe-clocks patch, > which > equally applies to rest of the q

Re: [PATCH] Asoc: qcom: lpass-cpu: Enable MI2S BCLK and LRCLK together

2020-09-25 Thread Mark Brown
On Fri, 18 Sep 2020 22:24:33 +0530, Srinivasa Rao Mandadapu wrote: > Update lpass-cpu.c to enable I2S BCLK and LRCLK together. > Remove BCLK enable in lpass_cpu_daiops_startup and > add in lpass_cpu_daiops_trigger API. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.gi

Re: [PATCH] fsl: imx-audmix : Use devm_kcalloc() instead of devm_kzalloc()

2020-09-25 Thread Mark Brown
On Mon, 21 Sep 2020 01:59:18 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". Applied to https://git.kernel.org/pub/scm/linux/kernel/git

[PATCH] x86/dumpstack: Fix misleading instruction pointer error message

2020-09-25 Thread Mark Mossberg
Unconditionally printing "Bad RIP value" if copy_code() fails can be misleading for userspace pointers, since copy_code() can fail if the instruction pointer is valid, but the code is paged out. This is because copy_code() calls copy_from_user_nmi() for userspace pointers, which disables page faul

Re: [PATCH 1/2] ASoC: cs47l15: Fix EPOUT->HPOUT1 Mono Mux routing

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 10:18:29 +0100, Richard Fitzgerald wrote: > EPOUT is always mono so should have a permanent routing through the > HPOUT1 Mono Mux. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: cs47l15: Fix EPOUT->HPOUT1 Mono Mux

Re: [PATCH 0/2] ASoC: qdsp6: fix some warnings when build without CONFIG_OF

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 09:49:23 +0100, Srinivas Kandagatla wrote: > Here are fixes for two warnings types discovered while building qdsp6 drivers > without CONFIG_OF and with W=1 > > One of them was reported by Intel kernel test robot on q6afe-clocks patch, > which > equally applies to rest of the q

[PATCH v5 01/17] device-dax: make pgmap optional for instance creation

2020-09-25 Thread Dan Williams
The passed in dev_pagemap is only required in the pmem case as the libnvdimm core may have reserved a vmem_altmap for dev_memremap_pages() to place the memmap in pmem directly. In the hmem case there is no agent reserving an altmap so it can all be handled by a core internal default. Pass the res

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Ian Rogers
On Fri, Sep 25, 2020 at 11:36 AM Andi Kleen wrote: > > > Thanks, it now works, but then... You forgot to add the Cc: entries for > > all the people in your actual e-mail Cc: list, and also the > > Reviewed-by: from Andy, I had to do it all manually, so when I applied > > your attachments with 'git

[PATCH 1/2] ext4/xfs: add page refcount helper

2020-09-25 Thread Ralph Campbell
There are several places where ZONE_DEVICE struct pages assume a reference count == 1 means the page is idle and free. Instead of open coding this, add a helper function to hide this detail. Signed-off-by: Ralph Campbell --- fs/dax.c| 8 fs/ext4/inode.c | 2 +- fs/xfs/xf

[PATCH v5 08/17] drivers/base: make device_find_child_by_name() compatible with sysfs inputs

2020-09-25 Thread Dan Williams
Use sysfs_streq() in device_find_child_by_name() to allow it to use a sysfs input string that might contain a trailing newline. The other "device by name" interfaces, {bus,driver,class}_find_device_by_name(), already account for sysfs strings. Link: https://lkml.kernel.org/r/159643102106.4062302

[PATCH v5 13/17] device-dax: introduce 'mapping' devices

2020-09-25 Thread Dan Williams
In support of interrogating the physical address layout of a device with dis-contiguous ranges, introduce a sysfs directory with 'start', 'end', and 'page_offset' attributes. The alternative is trying to parse /proc/iomem, and that file will not reflect the extent layout until the device is enable

[PATCH 2/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-25 Thread Ralph Campbell
ZONE_DEVICE struct pages have an extra reference count that complicates the code for put_page() and several places in the kernel that need to check the reference count to see that a page is not being used (gup, compaction, migration, etc.). Clean up the code so the reference count doesn't need to b

Re: [RFC] openprom: Fix 'opiocnextprop'; ensure integer conversions; use string size

2020-09-25 Thread David Miller
From: Michael Witten Date: Fri, 25 Sep 2020 20:20:20 - > Are we trying to improve the code or not? Do you want me to apply your patch or not? I want to see the most minimal code change necessary to fix the bug, so we can easily backport it to -stable releases etc. If you want to perform a

[PATCH v5 02/17] device-dax/kmem: introduce dax_kmem_range()

2020-09-25 Thread Dan Williams
Towards removing the mode specific @dax_kmem_res attribute from the generic 'struct dev_dax', and preparing for multi-range support, teach the driver to calculate the hotplug range from the device range. The hotplug range is the trivially calculated memory-block-size aligned version of the device r

[PATCH v5 11/17] mm/memremap_pages: support multiple ranges per invocation

2020-09-25 Thread Dan Williams
In support of device-dax growing the ability to front physically dis-contiguous ranges of memory, update devm_memremap_pages() to track multiple ranges with a single reference counter and devm instance. Convert all [devm_]memremap_pages() users to specify the number of ranges they are mapping in t

[PATCH v5 10/17] mm/memremap_pages: convert to 'struct range'

2020-09-25 Thread Dan Williams
The 'struct resource' in 'struct dev_pagemap' is only used for holding resource span information. The other fields, 'name', 'flags', 'desc', 'parent', 'sibling', and 'child' are all unused wasted space. This is in preparation for introducing a multi-range extension of devm_memremap_pages(). The

Re: [PATCH 0/4] KVM: x86/mmu: Page fault handling cleanups

2020-09-25 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 10:38:02PM +0200, Paolo Bonzini wrote: > On 24/09/20 00:04, Sean Christopherson wrote: > > Cleanups for page fault handling that were encountered during early TDX > > enabling, but are worthwhile on their own. Specifically, patch 4 fixes an > > issue where KVM doesn't detec

[PATCH v5 07/17] device-dax: introduce 'seed' devices

2020-09-25 Thread Dan Williams
Add a seed device concept for dynamic dax regions to be able to split the region amongst multiple sub-instances. The seed device, similar to libnvdimm seed devices, is a device that starts with zero capacity allocated and unbound to a driver. In contrast to libnvdimm seed devices explicit 'create

[RFC PATCH v2 0/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-25 Thread Ralph Campbell
Matthew Wilcox, Ira Weiny, and others have complained that ZONE_DEVICE struct page reference counting is ugly because they are "free" when the reference count is one instead of zero. This leads to explicit checks for ZONE_DEVICE pages in places like put_page(), GUP, THP splitting, and page migratio

Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect()

2020-09-25 Thread Dave Hansen
On 9/25/20 12:43 PM, Sean Christopherson wrote: >> That means that the intent argument (SGX_PROT_*) is currently unused. > No, the intent argument is used (eventually) by SGX's ->mprotect() > implementation, i.e. sgx_mprotect() enforces that the actual protections are a > subset of the declared/int

[PATCH v5 17/17] device-dax: add a range mapping allocation attribute

2020-09-25 Thread Dan Williams
From: Joao Martins Add a sysfs attribute which denotes a range from the dax region to be allocated. It's an write only @mapping sysfs attribute in the format of '-' to allocate a range. @start and @end use hexadecimal values and the @pgoff is implicitly ordered wrt to previous writes to @mappin

[PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Dan Williams
Changes since v4 [1]: - Rebased on device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch in -mm [2]. I.e. patches that did not need fixups from v4 are not included. - Folded all fixes - Replaced "device-dax: kill dax_kmem_res" with: device-dax/kmem: introduce dax_

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 10:37:01PM +0200, Ard Biesheuvel wrote: > On Fri, 25 Sep 2020 at 22:28, Kees Cook wrote: > > > > On Fri, Sep 25, 2020 at 08:33:59PM +0530, Pintu Agarwal wrote: > > > This is regarding the KASLR feature support on ARM for the kernel > > > version 4.9 and 4.14. > > > > > > Is

[PATCH] sched,fair: use list_for_each_entry() in print_cfs_stats()

2020-09-25 Thread Hui Su
Macro for_each_leaf_cfs_rq_safe() use list_for_each_entry_safe(), which can against removal of list entry, but we only print the cfs_rq data and won't remove the list entry in print_cfs_stats(). Thus, add macro for_each_leaf_cfs_rq() based on list_for_each_entry(), and use for_each_leaf_cfs_rq() i

Re: [RFC V2 0/9] x86/mmu:Introduce parallel memory virtualization to boost performance

2020-09-25 Thread Paolo Bonzini
On 25/09/20 19:30, Ben Gardon wrote: > Oh, thank you for explaining that. I didn't realize the goal here was > to improve LM performance. I was under the impression that this was to > give VMs a better experience on startup for fast scaling or something. > In your testing with live migration how ha

Re: [PATCH 1/2] ext4/xfs: add page refcount helper

2020-09-25 Thread Dan Williams
On Fri, Sep 25, 2020 at 1:45 PM Ralph Campbell wrote: > > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add a helper function to hide this detail. > > Signed-off-by: Ralph Campbell > --- > f

Re: [PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Joao Martins
Hey Dan, On 9/25/20 8:11 PM, Dan Williams wrote: > Changes since v4 [1]: > - Rebased on > device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch > in -mm [2]. I.e. patches that did not need fixups from v4 are not > included. > > - Folded all fixes > Hmm, perhaps you mis

Re: [PATCH v8 6/7] scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map()

2020-09-25 Thread Martin K. Petersen
Coly, > In iscsci driver, iscsi_tcp_segment_map() uses the following code to > check whether the page should or not be handled by sendpage: > if (!recv && page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg))) > > The "page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg)" part is to > make

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Roman Gushchin
On Fri, Sep 25, 2020 at 12:19:02PM -0700, Shakeel Butt wrote: > On Fri, Sep 25, 2020 at 10:58 AM Shakeel Butt > wrote: > > > [snip] > > > > I don't think you can ignore the flushing. The __free_once() in > > ___cache_free() assumes there is a space available. > > > > BTW do_drain() also have the s

Re: [PATCH 2/2] venus: venc: fix handlig of S_SELECTION and G_SELECTION

2020-09-25 Thread Tomasz Figa
Hi Dikshita, Stanimir, On Thu, Sep 24, 2020 at 7:31 PM Dikshita Agarwal wrote: > > From: Stanimir Varbanov > > - return correct width and height for G_SELECTION > - if requested rectangle wxh doesn't match with capture port wxh > adjust the rectangle to supported wxh. > > Signed-off-by: Dikshi

Re: [RFC PATCH 0/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Axel Rasmussen
On Fri, Sep 25, 2020 at 12:48 PM Tom Zanussi wrote: > > Hi Axel, > > On Fri, 2020-09-25 at 12:08 -0700, Axel Rasmussen wrote: > > Hi Steven and Tom, > > > > In this thread: https://lkml.org/lkml/2020/9/17/1015 we discussed how > > to plumb > > dynamic strings into synthetic events. Tom, you propos

Re: [RFC PATCH v2] tools/x86: add kcpuid tool to show raw CPU features

2020-09-25 Thread Borislav Petkov
On Fri, Sep 25, 2020 at 04:40:47PM -0400, Arvind Sankar wrote: > They're not the same, but aren't there going to be quite a few common > flags between the definitions in cpufeatures.h and the definitions in > cpuid.txt? If they're both living in the kernel repo, it would be nice > for them to not d

[RFC PATCH 1/3] ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)

2020-09-25 Thread Mathieu Desnoyers
As per RFC792, ICMP errors should be sent to the source host. However, in configurations with Virtual Routing and Forwarding tables, looking up which routing table to use is currently done by using the destination net_device. commit 9d1a6c4ea43e ("net: icmp_route_lookup should use rt dev to deter

[RFC PATCH 0/3] l3mdev icmp error route lookup fixes

2020-09-25 Thread Mathieu Desnoyers
Hi, Here is an updated series of fixes for ipv4 and ipv6 which which ensure the route lookup is performed on the right routing table in VRF configurations when sending TTL expired icmp errors (useful for traceroute). It includes tests for both ipv4 and ipv6. These fixes address specifically addr

Re: [PATCH v2 2/3] Input: atmel_mxt_ts - implement I2C retries for mXT1368

2020-09-25 Thread Dmitry Osipenko
25.09.2020 16:52, Jiada Wang пишет: > According to datasheet, mXT1386 chip has a WAKE line, it is used > to wake the chip up from deep sleep mode before communicating with > it via the I2C-compatible interface. > > if the WAKE line is connected to a GPIO line, the line must be > asserted 25 ms bef

Re: [PATCH v2 1/3] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-25 Thread Dmitry Osipenko
25.09.2020 16:52, Jiada Wang пишет: > Document the mXT1386 compatible string. > > Signed-off-by: Jiada Wang > --- > Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt > b

Re: [PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Dan Williams
On Fri, Sep 25, 2020 at 1:52 PM Joao Martins wrote: > > Hey Dan, > > On 9/25/20 8:11 PM, Dan Williams wrote: > > Changes since v4 [1]: > > - Rebased on > > device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch > > in -mm [2]. I.e. patches that did not need fixups from v4 ar

Re: [PATCH v2 3/3] ARM: tegra: add mXT1386 compatible

2020-09-25 Thread Dmitry Osipenko
25.09.2020 16:52, Jiada Wang пишет: > Add mXT1386 compatible for "touchscreen@4c". > > Signed-off-by: Jiada Wang > --- > arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts > b/

Re: [PATCH 1/2] perf stat: Fix segfault when counting armv8_pmu events

2020-09-25 Thread Jiri Olsa
On Thu, Sep 24, 2020 at 11:36:23PM +0900, Namhyung Kim wrote: > On Wed, Sep 23, 2020 at 10:19:00PM +0200, Jiri Olsa wrote: > > On Wed, Sep 23, 2020 at 11:15:06PM +0900, Namhyung Kim wrote: > > > I think the problem is that armv8_pmu has a cpumask, > > > and the user requested per-task events. > > >

[PATCH v5 05/17] device-dax: add an allocation interface for device-dax instances

2020-09-25 Thread Dan Williams
;In preparation for a facility that enables dax regions to be sub-divided, introduce infrastructure to track and allocate region capacity. The new dax_region/available_size attribute is only enabled for volatile hmem devices, not pmem devices that are defined by nvdimm namespace boundaries. This

Re: [PATCH] [v2] blk-mq: add cond_resched() in __blk_mq_alloc_rq_maps()

2020-09-25 Thread Jens Axboe
On 9/17/20 2:13 AM, Xianting Tian wrote: > We found it takes more time of blk_mq_alloc_rq_maps() in kernel space when > testing nvme hot-plugging. The test and anlysis as below. > > Debug code, > 1, blk_mq_alloc_rq_maps(): > u64 start, end; > depth = set->queue_depth; > sta

Re: [PATCH 0/2] iommu/iova: Solve longterm IOVA issue

2020-09-25 Thread Cong Wang
On Fri, Sep 25, 2020 at 2:56 AM John Garry wrote: > > This series contains a patch to solve the longterm IOVA issue which > leizhen originally tried to address at [0]. > > I also included the small optimisation from Cong Wang, which never seems > to be have been accepted [1]. There was some debate

Re: [RFC PATCH 0/3] KVM: Introduce "VM bugged" concept

2020-09-25 Thread Paolo Bonzini
On 25/09/20 18:32, Marc Zyngier wrote: > I'm quite like the idea. However, I wonder whether preventing the > vcpus from re-entering the guest is enough. When something goes really > wrong, is it safe to allow the userspace process to terminate normally > and free the associated memory? And is it st

Re: [PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Joao Martins
On 9/25/20 10:01 PM, Dan Williams wrote: > On Fri, Sep 25, 2020 at 1:52 PM Joao Martins > wrote: >> >> Hey Dan, >> >> On 9/25/20 8:11 PM, Dan Williams wrote: >>> Changes since v4 [1]: >>> - Rebased on >>> device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch >>> in -mm [2]

Re: [RFC PATCH 3/3] KVM: x86: Use KVM_BUG/KVM_BUG_ON to handle bugs that are fatal to the VM

2020-09-25 Thread Paolo Bonzini
On 25/09/20 19:12, Sean Christopherson wrote: >> Do we actually want to prevent *all* ioctls? E.g. when 'vm bugged' >> condition is triggered userspace may want to extract some information to >> assist debugging but even things like KVM_GET_[S]REGS will just return >> -EIO. I'm not sure it is gener

Re: [PATCH 0/2] KVM: VMX: Super early file refactor for TDX

2020-09-25 Thread Paolo Bonzini
On 23/09/20 20:31, Sean Christopherson wrote: > Rename vmx/ops.h to vmx/vmx_ops.h, and move VMX's posted interrupt support > to dedicated files in preparation for future Trust Domain Extensions (TDX) > enabling. > > These changes are somewhat premature, as full TDX enabling is months away, > but t

Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned

2020-09-25 Thread Linus Torvalds
On Fri, Sep 25, 2020 at 12:56 PM Linus Torvalds wrote: > > And honestly, since this is all getting fairly late in the rc, and it > took longer than I thought, I think we should do the GFP_ATOMIC > approach for now - not great, but since it only triggers for this case > that really should never hap

Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent

2020-09-25 Thread Andy Lutomirski
On Fri, Sep 25, 2020 at 1:37 PM Kees Cook wrote: > > On Fri, Sep 25, 2020 at 12:51:20PM -0700, Andy Lutomirski wrote: > > > > > > > On Sep 25, 2020, at 12:42 PM, Kees Cook wrote: > > > > > > On Fri, Sep 25, 2020 at 11:45:05AM -0500, YiFei Zhu wrote: > > >> On Thu, Sep 24, 2020 at 10:04 PM YiFei

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Ard Biesheuvel
On Fri, 25 Sep 2020 at 22:47, Kees Cook wrote: > > On Fri, Sep 25, 2020 at 10:37:01PM +0200, Ard Biesheuvel wrote: > > On Fri, 25 Sep 2020 at 22:28, Kees Cook wrote: > > > > > > On Fri, Sep 25, 2020 at 08:33:59PM +0530, Pintu Agarwal wrote: > > > > This is regarding the KASLR feature support on A

[PATCH v5 06/17] device-dax: introduce 'struct dev_dax' typed-driver operations

2020-09-25 Thread Dan Williams
In preparation for introducing seed devices the dax-bus core needs to be able to intercept ->probe() and ->remove() operations. Towards that end arrange for the bus and drivers to switch from raw 'struct device' driver operations to 'struct dev_dax' typed operations. Cc: Jason Yan Cc: Vishal Verm

[GIT PULL] MIPS fixes for v5.9

2020-09-25 Thread Thomas Bogendoerfer
The following changes since commit b959b97860d0fee8c8f6a3e641d3c2ad76eab6be: MIPS: SNI: Fix spurious interrupts (2020-09-16 22:40:58 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/ tags/mips_fixes_5.9_3 for you to fetch changes u

Re: [PATCH net-next v2] net: vlan: Avoid using BUG() in vlan_proto_idx()

2020-09-25 Thread David Miller
From: Florian Fainelli Date: Thu, 24 Sep 2020 17:27:44 -0700 > While we should always make sure that we specify a valid VLAN protocol > to vlan_proto_idx(), killing the machine when an invalid value is > specified is too harsh and not helpful for debugging. All callers are > capable of dealing wi

Re: [PATCH] pci: meson: build as module by default

2020-09-25 Thread Rob Herring
On Fri, Sep 18, 2020 at 11:12:51AM -0700, Kevin Hilman wrote: > Enable pci-meson to build as a module whenever ARCH_MESON is enabled. > > Cc: Yue Wang > Signed-off-by: Kevin Hilman > --- > Tested on Khadas VIM3 and Khadas VIM3 using NVMe SSD devices. > > drivers/pci/controller/dwc/Kconfig

Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned

2020-09-25 Thread Peter Xu
On Fri, Sep 25, 2020 at 12:56:05PM -0700, Linus Torvalds wrote: > So I think we can simply add a > > if (page_mapcount(page) != 1) > return false; > > to page_maybe_dma_pinned(), and that very naturally protects against > the "is the page count perhaps elevated due to a lo

Re: [PATCH v6 04/10] PCI/AER: Extend AER error handling to RCECs

2020-09-25 Thread Bjorn Helgaas
[+cc Sinan, who's been reviewing changes in this area (thanks, Sinan!)] On Tue, Sep 22, 2020 at 02:38:53PM -0700, Sean V Kelley wrote: > From: Jonathan Cameron > > Currently the kernel does not handle AER errors for Root Complex > integrated End Points (RCiEPs)[0]. These devices sit on a root bu

[PATCH v5 14/17] device-dax: make align a per-device property

2020-09-25 Thread Dan Williams
From: Joao Martins Introduce @align to struct dev_dax. When creating a new device, we still initialize to the default dax_region @align. Child devices belonging to a region may wish to keep a different alignment property instead of a global region-defined one. Link: https://lkml.kernel.org/r/

Re: [PATCHv5 kselftest next] selftests/run_kselftest.sh: make each test individually selectable

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 01:51:53PM +0530, Naresh Kamboju wrote: > On Mon, 14 Sep 2020 at 07:53, Hangbin Liu wrote: > > > > Currently, after generating run_kselftest.sh, there is no way to choose > > which test we could run. All the tests are listed together and we have > > to run all every time. T

[PATCH 0/3 v2] tracing/mm: Add tracepoint_enabled() helper function for headers

2020-09-25 Thread Steven Rostedt
Tracepoints are not safe to be called directly from header files as they may be included by C code that has CREATE_TRACE_POINTS defined, and this would cause side effects and possibly break the build in hard to debug ways. Not to mention it also will bloat the code being in commonly used inline fun

Re: [PATCH 1/2] ext4/xfs: add page refcount helper

2020-09-25 Thread Ralph Campbell
On 9/25/20 1:51 PM, Dan Williams wrote: On Fri, Sep 25, 2020 at 1:45 PM Ralph Campbell wrote: There are several places where ZONE_DEVICE struct pages assume a reference count == 1 means the page is idle and free. Instead of open coding this, add a helper function to hide this detail. Signed

[PATCH] arm64: dts: amlogic: meson-g12: use the G12A specific dwmac compatible

2020-09-25 Thread Martin Blumenstingl
We have a dedicated "amlogic,meson-g12a-dwmac" compatible string for the Ethernet controller since commit 3efdb92426bf4 ("dt-bindings: net: dwmac-meson: Add a compatible string for G12A onwards"). Using the AXG compatible string worked fine so far because the dwmac-meson8b driver doesn't handle the

[PATCH 1/3 v2] tracepoints: Add helper to test if tracepoint is enabled in a header

2020-09-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As tracepoints are discouraged from being added in a header because it can cause side effects if other tracepoints are in headers, as well as bloat the kernel as the trace_() function is not a small inline, the common workaround is to add a function call that calls

[PATCH 2/3 v2] mm/page_ref: Convert the open coded tracepoint enabled to the new helper

2020-09-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" As more use cases of checking if a tracepoint is enabled in a header are coming to fruition, a helper macro, tracepoint_enabled(), has been added to check if a tracepoint is enabled or not, and can be used with minimal header requirements (avoid "include hell"). Co

[PATCH 3/3 v2] x86: Use tracepoint_enabled() for msr tracepoints instead of open coding it

2020-09-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" 7f47d8cc039f ("x86, tracing, perf: Add trace point for MSR accesses") added tracing of msr read and write, but because of complexity in having tracepoints in headers, and even more so for a core header like msr.h, not to mention the bloat a tracepoint adds to inlin

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Shakeel Butt
On Fri, Sep 25, 2020 at 1:56 PM Roman Gushchin wrote: > > On Fri, Sep 25, 2020 at 12:19:02PM -0700, Shakeel Butt wrote: > > On Fri, Sep 25, 2020 at 10:58 AM Shakeel Butt > > wrote: > > > > > [snip] > > > > > > I don't think you can ignore the flushing. The __free_once() in > > > ___cache_free() a

Re: [PATCH net-next v2] net: vlan: Avoid using BUG() in vlan_proto_idx()

2020-09-25 Thread Vladimir Oltean
On Fri, Sep 25, 2020 at 02:12:34PM -0700, David Miller wrote: > From: Florian Fainelli > Date: Thu, 24 Sep 2020 17:27:44 -0700 > > Applied, thanks Florian. Uh-oh, that 'negative value stored in unsigned variable' issue that the build bot reported was on v2, wasn't it?

Re: [PATCH 5.8 00/56] 5.8.12-rc1 review

2020-09-25 Thread Jeffrin Jose T
On Fri, 2020-09-25 at 14:47 +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.8.12 release. > There are 56 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, > please > let me know. > >

[PATCH 01/22] kvm: mmu: Separate making SPTEs from set_spte

2020-09-25 Thread Ben Gardon
Separate the functions for generating leaf page table entries from the function that inserts them into the paging structure. This refactoring will facilitate changes to the MMU sychronization model to use atomic compare / exchanges (which are not guaranteed to succeed) instead of a monolithic MMU l

[PATCH 05/22] kvm: mmu: Add functions to handle changed TDP SPTEs

2020-09-25 Thread Ben Gardon
The existing bookkeeping done by KVM when a PTE is changed is spread around several functions. This makes it difficult to remember all the stats, bitmaps, and other subsystems that need to be updated whenever a PTE is modified. When a non-leaf PTE is marked non-present or becomes a leaf PTE, page t

[PATCH 00/22] Introduce the TDP MMU

2020-09-25 Thread Ben Gardon
Over the years, the needs for KVM's x86 MMU have grown from running small guests to live migrating multi-terabyte VMs with hundreds of vCPUs. Where we previously depended on shadow paging to run all guests, we now have two dimensional paging (TDP). This patch set introduces a new implementation of

[PATCH 06/22] kvm: mmu: Make address space ID a property of memslots

2020-09-25 Thread Ben Gardon
Save address space ID as a field in each memslot so that functions that do not use rmaps (which implicitly encode the id) can handle multiple address spaces correctly. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no new failures. This seri

[PATCH 08/22] kvm: mmu: Separate making non-leaf sptes from link_shadow_page

2020-09-25 Thread Ben Gardon
The TDP MMU page fault handler will need to be able to create non-leaf SPTEs to build up the paging structures. Rather than re-implementing the function, factor the SPTE creation out of link_shadow_page. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series in

[PATCH 14/22] kvm: mmu: Add access tracking for tdp_mmu

2020-09-25 Thread Ben Gardon
In order to interoperate correctly with the rest of KVM and other Linux subsystems, the TDP MMU must correctly handle various MMU notifiers. The main Linux MM uses the access tracking MMU notifiers for swap and other features. Add hooks to handle the test/flush HVA (range) family of MMU notifiers.

[PATCH 09/22] kvm: mmu: Remove disallowed_hugepage_adjust shadow_walk_iterator arg

2020-09-25 Thread Ben Gardon
In order to avoid creating executable hugepages in the TDP MMU PF handler, remove the dependency between disallowed_hugepage_adjust and the shadow_walk_iterator. This will open the function up to being used by the TDP MMU PF handler in a future patch. Tested by running kvm-unit-tests and KVM selft

[PATCH 02/22] kvm: mmu: Introduce tdp_iter

2020-09-25 Thread Ben Gardon
The TDP iterator implements a pre-order traversal of a TDP paging structure. This iterator will be used in future patches to create an efficient implementation of the KVM MMU for the TDP case. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no

[PATCH 17/22] kvm: mmu: Support dirty logging for the TDP MMU

2020-09-25 Thread Ben Gardon
Dirty logging is a key feature of the KVM MMU and must be supported by the TDP MMU. Add support for both the write protection and PML dirty logging modes. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no new failures. This series can be vie

[PATCH 22/22] kvm: mmu: Don't clear write flooding count for direct roots

2020-09-25 Thread Ben Gardon
Direct roots don't have a write flooding count because the guest can't affect that paging structure. Thus there's no need to clear the write flooding count on a fast CR3 switch for direct roots. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced

[PATCH 12/22] kvm: mmu: Allocate struct kvm_mmu_pages for all pages in TDP MMU

2020-09-25 Thread Ben Gardon
Attach struct kvm_mmu_pages to every page in the TDP MMU to track metadata, facilitate NX reclaim, and enable inproved parallelism of MMU operations in future patches. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no new failures. This seri

[PATCH 21/22] kvm: mmu: Support MMIO in the TDP MMU

2020-09-25 Thread Ben Gardon
In order to support MMIO, KVM must be able to walk the TDP paging structures to find mappings for a given GFN. Support this walk for the TDP MMU. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no new failures. This series can be viewed in Ge

[PATCH 15/22] kvm: mmu: Support changed pte notifier in tdp MMU

2020-09-25 Thread Ben Gardon
In order to interoperate correctly with the rest of KVM and other Linux subsystems, the TDP MMU must correctly handle various MMU notifiers. Add a hook and handle the change_pte MMU notifier. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no

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