[PATCH] mmc: core: don't set limits.discard_granularity as 0

2020-09-30 Thread Coly Li
In mmc_queue_setup_discard() the mmc driver queue's discard_granularity might be set as 0 (when card->pref_erase > max_discard) while the mmc device still declares to support discard operation. This is buggy and triggered the following kernel warning message, WARNING: CPU: 0 PID: 135 at __blkdev_i

[PATCH 4/8] dma-direct: use __GFP_ZERO in dma_direct_alloc_pages

2020-09-30 Thread Christoph Hellwig
Prepare for supporting the DMA_ATTR_NO_KERNEL_MAPPING flag in dma_alloc_pages. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index b5f20781d3a96f..b5d56810130b22 1006

[PATCH 7/8] dma-iommu: remove __iommu_dma_mmap

2020-09-30 Thread Christoph Hellwig
The function has a single caller, so open code it there and take advantage of the precalculated page count variable. Signed-off-by: Christoph Hellwig --- drivers/iommu/dma-iommu.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/iommu/dma-iommu.c b/dr

dma_alloc_pages / dma_alloc_noncoherent fixups

2020-09-30 Thread Christoph Hellwig
Hi all, this series has a bunch of fixups for the noncoherent DMA allocator rework that recently landed in linux-next. I think the most important part is that the idea of vmap()ing non-contiguous allocations in dma_alloc_noncoherent doesn't work very well after all. It means we can't just rely o

[PATCH 2/8] dma-mapping: document dma_{alloc,free}_pages

2020-09-30 Thread Christoph Hellwig
Document the new dma_alloc_pages and dma_free_pages APIs, and fix up the documentation for dma_alloc_noncoherent and dma_free_noncoherent. Reported-by: Robin Murphy Signed-off-by: Christoph Hellwig --- Documentation/core-api/dma-api.rst | 45 ++ 1 file changed, 40 in

[PATCH 3/8] dma-direct check for highmem pages in dma_direct_alloc_pages

2020-09-30 Thread Christoph Hellwig
Check for highmem pages from CMA, just like in the dma_direct_alloc path. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 121a9c1969dd3a..b5f20781d3a96f 100644 --- a/kernel/d

[PATCH 8/8] WIP: add a dma_alloc_contiguous API

2020-09-30 Thread Christoph Hellwig
Add a new API that returns a virtually non-contigous array of pages and dma address. This API is only implemented for dma-iommu and will not be implemented for non-iommu DMA API instances that have to allocate contiguous memory. It is up to the caller to check if the API is available. The intent

[PATCH 1/8] dma-mapping: remove the {alloc,free}_noncoherent methods

2020-09-30 Thread Christoph Hellwig
It turns out allowing non-contigous allocations here was a rather bad idea, as we'll now need to define ways to get the pages for mmaping or dma_buf sharing. Revert this change and stick to the original concept. A different API for the use case of non-contigous allocations will be added back late

[PATCH 5/8] dma-direct: factor out a dma_direct_alloc_from_pool helper

2020-09-30 Thread Christoph Hellwig
This ensures dma_direct_alloc_pages will use the right gfp mask, as well as keeping the code for that common. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/kernel/dma/direct

[PATCH 6/8] dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING handling

2020-09-30 Thread Christoph Hellwig
Use and entirely separate code path for the DMA_ATTR_NO_KERNEL_MAPPING path. This avoids any confusion about the ret type, and avoids lots of attr checks and helpers that can be significantly simplified now. It also ensures that common handling is applied to architetures still using the arch allo

Re: How to use an ACPI declared GPIO in a userspace ...

2020-09-30 Thread Andy Shevchenko
On Wed, Sep 30, 2020 at 6:54 PM Andy Shevchenko wrote: > On Wed, Sep 30, 2020 at 6:39 PM Flavio Suligoi wrote: > > > I guess you simply didn't get. The "gpio-line-names" property of GPIO > > > *controller* (provider!) and you are trying to do something with the > > > *consumer* > > > if I got it

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Thierry Reding
On Wed, Sep 30, 2020 at 06:36:52PM +0300, Dmitry Osipenko wrote: > I'... > >> + struct tegra_mc *mc = devm_tegra_get_memory_controller(dev); > >> + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); > > > > It looks to me like the only reason why you need this new global API is > > becaus

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 03:33:13PM +0200, Paul Cercueil wrote: > One thing missing for remap_pfn_range(), I have no alternative for this: > > vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, > DMA_ATTR_NON_CONSISTENT); > > So I have to do: > > vma->vm_page_prot = pgprot_noncached(vma->vm_pag

Re: [PATCH v9 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-09-30 Thread Dan Williams
On Tue, Sep 29, 2020 at 3:25 AM Borislav Petkov wrote: > > On Wed, Sep 23, 2020 at 09:41:33AM -0700, Dan Williams wrote: > > The rename replaces a single top-level memcpy_mcsafe() with either > > copy_mc_to_user(), or copy_mc_to_kernel(). > > What is "copy_mc" supposed to mean? Especially if it is

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

2020-09-30 Thread David Hildenbrand
On 25.09.20 21:11, Dan Williams wrote: > 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 me

Re: [PATCH v3 1/3] memory: tegra: Add devm_tegra_get_memory_controller()

2020-09-30 Thread Thierry Reding
On Wed, Sep 30, 2020 at 07:06:27PM +0300, Dmitry Osipenko wrote: > 30.09.2020 19:03, Thierry Reding пишет: > > On Wed, Sep 30, 2020 at 06:53:06PM +0300, Dmitry Osipenko wrote: > >> 30.09.2020 18:23, Thierry Reding пишет: > >>> On Wed, Sep 30, 2020 at 01:42:56AM -0700, Nicolin Chen wrote: > Fro

Re: [Linux-kernel-mentees] KMSAN: uninit-value in rt2500usb_probe_hw

2020-09-30 Thread Dmitry Vyukov
On Wed, Sep 30, 2020 at 5:57 PM Anant Thazhemadam wrote: > On 26/09/20 12:27 pm, Greg KH wrote: > > On Sat, Sep 26, 2020 at 08:53:07AM +0200, Dmitry Vyukov via > > Linux-kernel-mentees wrote: > >> On Sat, Sep 26, 2020 at 5:25 AM syzbot > >> wrote: > >>> Hello, > >>> > >>> syzbot has tested the p

Re: general protection fault in perf_misc_flags

2020-09-30 Thread Borislav Petkov
Hi, one more thing I just spotted. The default install of syzkaller here runs the guest with this on the kernel command line: 2020/09/30 17:56:18 running command: qemu-system-x86_64 []string{"-m", "2048", "-smp", "2", "-display", ... "-append", "earlyprintk=serial oops=panic ... nmi_watchdog=pan

Re: RFC: sort out get_gendisk abuses

2020-09-30 Thread Tejun Heo
Hello, Christoph. On Fri, Sep 25, 2020 at 06:14:45PM +0200, Christoph Hellwig wrote: > this series tries to remove two abuses of the get_gendisk API. > The first one is fairly straigt forward and switched the blk-cgroup > configuration API to properly open the block device, but I'd love to see > i

Re: [PATCH v4 04/17] x86/acrn: Introduce hypercall interfaces

2020-09-30 Thread Segher Boessenkool
Hi! On Wed, Sep 30, 2020 at 01:16:12PM +0200, Peter Zijlstra wrote: > On Sun, Sep 27, 2020 at 08:38:03AM -0700, Dave Hansen wrote: > > On 9/27/20 3:51 AM, Greg Kroah-Hartman wrote: > > >> +static inline long acrn_hypercall0(unsigned long hcall_id) > > >> +{ > > >> +register long r8 asm("r8

Re: [PATCH v2 0/3] Extract run_kselftest.sh and generate stand-alone test list

2020-09-30 Thread Naresh Kamboju
On Tue, 29 Sep 2020 at 01:56, Kees Cook wrote: > > v2: > - update documentation > - include SPDX line in extracted script > v1: > https://lore.kernel.org/linux-kselftest/20200925234527.1885234-1-keesc...@chromium.org/ > > > Hi! > > I really like Hangbin Liu's intent[1] but I think we need to be a

Re: [RESEND PATCH 1/2] mtd: spi-nor: do not touch TB bit without SPI_NOR_HAS_TB

2020-09-30 Thread Ivan Mikhaylov
On Wed, 2020-09-30 at 19:30 +0530, Vignesh Raghavendra wrote: > > On 9/30/20 6:37 PM, Ivan Mikhaylov wrote: > > On Wed, 2020-09-30 at 15:06 +0530, Vignesh Raghavendra wrote: > > > On 9/21/20 4:54 PM, Ivan Mikhaylov wrote: > > > > Some chips like macronix don't have TB(Top/Bottom protection) > > >

Re: [PATCH v2 5/6] can: usb: etas_es58X: add support for ETAS ES58X CAN USB interfaces

2020-09-30 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 11:45:32PM +0900, Vincent Mailhol wrote: > + num_element = > + es58x_msg_num_element(es58x_dev->dev, > + bulk_rx_loopback_msg->rx_loopback_msg, > + msg_len); > + if (unlikely(num_element <= 0)) > +

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

2020-09-30 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:49PM -0700, Ben Gardon wrote: > 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 handle

Re: [PATCH v5 03/17] device-dax/kmem: move resource name tracking to drvdata

2020-09-30 Thread David Hildenbrand
On 25.09.20 21:11, Dan Williams wrote: > Towards removing the mode specific @dax_kmem_res attribute from the > generic 'struct dev_dax', and preparing for multi-range support, move > resource name tracking to driver data. The memory for the resource name > needs to have its own lifetime separate f

BUG: soft lockup in mac80211_hwsim_beacon

2020-09-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:00e8c44a bpf, selftests: Fix cast to smaller integer type .. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=17b48a8790 kernel config: https://syzkaller.appspot.com/x/.config?x=d44e1360b76d34dc das

Re: [Linux-kernel-mentees] KMSAN: uninit-value in rt2500usb_probe_hw

2020-09-30 Thread Anant Thazhemadam
On 30/09/20 9:46 pm, Dmitry Vyukov wrote: > On Wed, Sep 30, 2020 at 5:57 PM Anant Thazhemadam > wrote: >> On 26/09/20 12:27 pm, Greg KH wrote: >>> On Sat, Sep 26, 2020 at 08:53:07AM +0200, Dmitry Vyukov via >>> Linux-kernel-mentees wrote: On Sat, Sep 26, 2020 at 5:25 AM syzbot wrote:

Re: [PATCH v4 35/52] docs: fs: fscrypt.rst: get rid of :c:type: tags

2020-09-30 Thread Eric Biggers
On Wed, Sep 30, 2020 at 03:24:58PM +0200, Mauro Carvalho Chehab wrote: > The :c:type: tag has problems with Sphinx 3.x, as structs > there should be declared with c:struct. > > So, remove them, relying at automarkup.py extension to > convert them into cross-references. > > Signed-off-by: Mauro Ca

RE: [PATCH v16 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings

2020-09-30 Thread Ben Levinsky
Hi Rob, > -Original Message- > From: Rob Herring > Sent: Tuesday, September 29, 2020 11:36 AM > To: Ben Levinsky > Cc: Stefano Stabellini ; Michal Simek > ; michael.auch...@ni.com; devicet...@vger.kernel.org; > mathieu.poir...@linaro.org; Ed T. Mooring ; linux- > remotep...@vger.kernel.o

Re: [PATCH] docs: programming-languages: refresh blurb on clang support

2020-09-30 Thread Nathan Chancellor
On Tue, Sep 29, 2020 at 02:19:35PM -0700, Nick Desaulniers wrote: > Building the kernel with Clang doesn't rely on third party patches, and > has not for a few years now. > > Signed-off-by: Nick Desaulniers > --- Modulo Randy's nit: Reviewed-by: Nathan Chancellor > Documentation/process/prog

Re: [PATCH 4.19 196/245] nvme: fix possible deadlock when I/O is blocked

2020-09-30 Thread Pavel Machek
Hi! > [ Upstream commit 3b4b19721ec652ad2c4fe51dfbe5124212b5f581 ] > > Revert fab7772bfbcf ("nvme-multipath: revalidate nvme_ns_head gendisk > in nvme_validate_ns") > > When adding a new namespace to the head disk (via nvme_mpath_set_live) > we will see partition scan which triggers I/O on the m

Re: [PATCH v5 04/17] device-dax/kmem: replace release_resource() with release_mem_region()

2020-09-30 Thread David Hildenbrand
On 25.09.20 21:12, Dan Williams wrote: > Towards removing the mode specific @dax_kmem_res attribute from the > generic 'struct dev_dax', and preparing for multi-range support, change > the kmem driver to use the idiomatic release_mem_region() to pair with > the initial request_mem_region(). This al

Re: [PATCH v9 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-09-30 Thread Borislav Petkov
On Wed, Sep 30, 2020 at 08:49:42AM -0700, Dan Williams wrote: > There's been a paucity of response on these after converging on the > feedback from Linus. They missed v5.9, and I started casting about for > what could be done to make sure they did not also miss v5.10 if the > quiet continued. The p

Re: general protection fault in perf_misc_flags

2020-09-30 Thread Dmitry Vyukov
On Wed, Sep 30, 2020 at 6:17 PM Borislav Petkov wrote: > > Hi, > > one more thing I just spotted. The default install of syzkaller here > runs the guest with this on the kernel command line: > > 2020/09/30 17:56:18 running command: qemu-system-x86_64 []string{"-m", "2048", > "-smp", "2", "-display

Re: [PATCH] drm/msm/dp: add voltage corners voting support base on dp link rate

2020-09-30 Thread Rajendra Nayak
On 9/30/2020 1:54 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2020-09-29 10:10:26) Set link rate by using OPP set rate api so that CX level will be set accordingly base on the link rate. s/base/based/ Signed-off-by: Kuogee Hsieh --- diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drive

[PATCH] regulator: qcom: labibb: Constify static structs

2020-09-30 Thread Rikard Falkeborn
The only usage of qcom_labibb_ops is to assign it to the ops field in the regulator_desc struct, which is a const pointer. The only usage of pmi8998_lab_desc and pmi8998_ibb_desc is to assign their address to the desc field in the labibb_regulator_data struct which can be made const, since it is on

Re: [PATCH v3 1/3] memory: tegra: Add devm_tegra_get_memory_controller()

2020-09-30 Thread Dmitry Osipenko
30.09.2020 19:15, Thierry Reding пишет: > On Wed, Sep 30, 2020 at 07:06:27PM +0300, Dmitry Osipenko wrote: >> 30.09.2020 19:03, Thierry Reding пишет: >>> On Wed, Sep 30, 2020 at 06:53:06PM +0300, Dmitry Osipenko wrote: 30.09.2020 18:23, Thierry Reding пишет: > On Wed, Sep 30, 2020 at 01:42

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Dmitry Osipenko
30.09.2020 19:06, Thierry Reding пишет: > On Wed, Sep 30, 2020 at 06:36:52PM +0300, Dmitry Osipenko wrote: >> I'... + struct tegra_mc *mc = devm_tegra_get_memory_controller(dev); + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); >>> >>> It looks to me like the only reason why

Re: [PATCH] export.h: fix section name for CONFIG_TRIM_UNUSED_KSYMS for Clang

2020-09-30 Thread Nathan Chancellor
On Tue, Sep 29, 2020 at 12:07:00PM -0700, Nick Desaulniers wrote: > When enabling CONFIG_TRIM_UNUSED_KSYMS, the linker will warn about the > orphan sections: > (".discard.ksym") is being placed in '".discard.ksym"' > repeatedly when linking vmlinux. This is because the stringification > operator, `

Re: [PATCH v2] srcu: avoid escaped section names

2020-09-30 Thread Nathan Chancellor
On Tue, Sep 29, 2020 at 12:25:49PM -0700, 'Nick Desaulniers' via Clang Built Linux wrote: > The stringification operator, `#`, in the preprocessor escapes strings. > For example, `# "foo"` becomes `"\"foo\""`. GCC and Clang differ in how > they treat section names that contain \". > > The portab

Re: [PATCH v2] of: address: Work around missing device_type property in pcie nodes

2020-09-30 Thread Niklas Söderlund
Hi Marc, I'm afraid this commit breaks booting my rk3399 device. I bisected the problem to this patch merged as [1]. I'm testing on a Scarlet device and I'm using the unmodified upstream rk3399-gru-scarlet-inx.dtb for my tests. The problem I'm experience is a black screen after the bootloader

Re: [net-next PATCH v1 7/7] net/fsl: Use _ADR ACPI object to register PHYs

2020-09-30 Thread Andrew Lunn
Hi Calvin > priv->has_a011043 = device_property_read_bool(&pdev->dev, > "fsl,erratum-a011043"); > - > - ret = of_mdiobus_register(bus, np); > - if (ret) { > - dev_err(&pdev->dev, "cannot register MDIO bus\n"); > + if

Re: [PATCH] MAINTAINERS: exclude char maintainers from things they do not maintain

2020-09-30 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 08:36:56AM -0500, Corey Minyard wrote: > On Wed, Sep 30, 2020 at 02:10:07PM +0200, Greg Kroah-Hartman wrote: > > There are a number of subdirectories and files in drivers/char/ that > > have their own maintainers and developers and ways of getting patches to > > Linus. This

Re: [PATCH] MAINTAINERS: exclude char maintainers from things they do not maintain

2020-09-30 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 03:19:09PM +0200, Arnd Bergmann wrote: > On Wed, Sep 30, 2020 at 2:10 PM Greg Kroah-Hartman > wrote: > > > > There are a number of subdirectories and files in drivers/char/ that > > have their own maintainers and developers and ways of getting patches to > > Linus. This in

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Dmitry Osipenko
... >> Secondly, I'm already about to use the new tegra_get_memory_controller() >> API for all the T20/30/124/210 EMC and devfreq drivers. > > Also, this really proves the point I was trying to make about how this > is going to proliferate... Sorry, I'm probably totally missing yours point.. "wha

Re: [PATCH] pwm: sysfs: Set class on pwm devices

2020-09-30 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 05:03:02PM +0200, Uwe Kleine-König wrote: > On Wed, Sep 30, 2020 at 04:13:52PM +0200, Lars Poeschel wrote: > > On Wed, Sep 30, 2020 at 01:51:06PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Sep 30, 2020 at 01:27:20PM +0200, Lars Poeschel wrote: > > > > On Wed, Sep 30, 202

Re: general protection fault in perf_misc_flags

2020-09-30 Thread Dmitry Vyukov
On Wed, Sep 30, 2020 at 6:23 PM Dmitry Vyukov wrote: > > Hi, > > > > one more thing I just spotted. The default install of syzkaller here > > runs the guest with this on the kernel command line: > > > > 2020/09/30 17:56:18 running command: qemu-system-x86_64 []string{"-m", > > "2048", > > "-smp",

Re: general protection fault in perf_misc_flags

2020-09-30 Thread Borislav Petkov
On Wed, Sep 30, 2020 at 06:23:44PM +0200, Dmitry Vyukov wrote: > Here is the answer: > https://github.com/google/syzkaller/blob/master/tools/create-gce-image.sh#L189 > > # rodata=n: mark_rodata_ro becomes very slow with KASAN (lots of PGDs) > > I have some vague memory that there was some debug d

Re: [PATCH v2] pinctrl: mediatek: Free eint data on failure

2020-09-30 Thread Sean Wang
On Wed, Sep 30, 2020 at 1:47 AM Linus Walleij wrote: > > On Sun, Sep 27, 2020 at 7:57 PM Sean Wang wrote: > > > v2 seems the same with v1 or I was missing something. > > > > I just thought we call devm_ioremap_release to explicitly to free > > resource when a certain failure occurs after > > devm

Re: [PATCH 4.19 000/244] 4.19.149-rc2 review

2020-09-30 Thread Guenter Roeck
On Wed, Sep 30, 2020 at 09:26:48PM +0530, Naresh Kamboju wrote: > On Tue, 29 Sep 2020 at 19:59, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 4.19.149 release. > > There are 244 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH v4 23/52] docs: trace-uses.rst: remove bogus c-domain tags

2020-09-30 Thread Steven Rostedt
On Wed, 30 Sep 2020 15:24:46 +0200 Mauro Carvalho Chehab wrote: > There are some c-domain tags that are wrong. While this won't > cause problems with Sphinx < 3.0, this cause troubles with > newer versions, as the C parser won't recognize the contents > of the tag, and will drop it from the outpu

Re: [PATCH v9 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-09-30 Thread Linus Torvalds
On Wed, Sep 30, 2020 at 9:24 AM Borislav Petkov wrote: > > Ok, I'll try to queue them but pls respin soonish. That is, if Linus > cuts -rc8 we have plenty of time but he didn't sound 100% on the -rc8 > thing. Oh, it's pretty much 100%. I can't imagine what would make me skip an rc8 at this point

Re: [net-next PATCH v1 3/7] net: phy: Introduce fwnode_get_phy_id()

2020-09-30 Thread Andrew Lunn
> +/* Extract the phy ID from the compatible string of the form > + * ethernet-phy-id.. > + */ > +int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id) > +{ > + unsigned int upper, lower; > + const char *cp; > + int ret; > + > + ret = fwnode_property_read_string(f

Re: [net-next PATCH v1 1/7] Documentation: ACPI: DSD: Document MDIO PHY

2020-09-30 Thread Rafael J. Wysocki
On Wed, Sep 30, 2020 at 6:05 PM Calvin Johnson wrote: > > Introduce ACPI mechanism to get PHYs registered on a MDIO bus and > provide them to be connected to MAC. > > Describe properties "phy-handle" and "phy-mode". > > Signed-off-by: Calvin Johnson > --- > > Documentation/firmware-guide/acpi/ds

[PATCH 1/2] Platform integrity information in sysfs (version 9)

2020-09-30 Thread Daniel Gutson
This patch provides a driver and an API for exporting information about the platform integrity firmware configuration in the sysfs filesystem. The goal is that the attributes are avilable to fwupd. Signed-off-by: Daniel Gutson --- .../ABI/stable/sysfs-class-platform-integrity | 23 MA

[PATCH 0/2] Platform integrity information in sysfs (version 9)

2020-09-30 Thread Daniel Gutson
This patch serie adds a misc kernel module and extends the intel-spi drivers to publish platform integrity data in the sys-fs. Please check the comments in the following patches of this serie for further details. Daniel Gutson (2): Platform integrity information in sysfs (version 9) This patch

Re: [PATCH 10/22] kvm: mmu: Add TDP MMU PF handler

2020-09-30 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:50PM -0700, Ben Gardon wrote: > @@ -4113,8 +4088,9 @@ static int direct_page_fault(struct kvm_vcpu *vcpu, > gpa_t gpa, u32 error_code, > if (page_fault_handle_page_track(vcpu, error_code, gfn)) > return RET_PF_EMULATE; > > - if (fast_page_fau

[PATCH 2/2] Platform integrity information in sysfs (version 9)

2020-09-30 Thread Daniel Gutson
This patch exports the BIOS Write Enable (bioswe), BIOS Lock Enable (biosle), and the SMM BIOS Write Protect (SMM_BIOSWP) fields of the BIOS Control register using the platform-integrity misc kernel module. The idea is to keep adding more flags, not only from the BC but also from other registers in

[PATCH 1/2] dt-bindings: tas2764: Add the TAS2764 binding doc

2020-09-30 Thread Dan Murphy
Add the binding for the TAS2764 Smart Amplifier. Signed-off-by: Dan Murphy --- .../devicetree/bindings/sound/tas2764.yaml| 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/tas2764.yaml diff --git a/Documentation/devicetree/

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-09-30 Thread Nathan Chancellor
On Wed, Sep 30, 2020 at 04:07:58PM +0200, Maxime Ripard wrote: > Hi Nathan, > > On Tue, Sep 29, 2020 at 03:15:26PM -0700, Nathan Chancellor wrote: > > On Thu, Sep 03, 2020 at 10:01:52AM +0200, Maxime Ripard wrote: > > > Now that all the drivers have been adjusted for it, let's bring in the > > > n

Re: [PATCH v3 1/3] memory: tegra: Add devm_tegra_get_memory_controller()

2020-09-30 Thread Thierry Reding
On Wed, Sep 30, 2020 at 07:26:00PM +0300, Dmitry Osipenko wrote: > 30.09.2020 19:15, Thierry Reding пишет: > > On Wed, Sep 30, 2020 at 07:06:27PM +0300, Dmitry Osipenko wrote: > >> 30.09.2020 19:03, Thierry Reding пишет: > >>> On Wed, Sep 30, 2020 at 06:53:06PM +0300, Dmitry Osipenko wrote: >

Re: [PATCH v9 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-09-30 Thread Borislav Petkov
On Wed, Sep 30, 2020 at 09:28:33AM -0700, Linus Torvalds wrote: > Oh, it's pretty much 100%. Oh good. > I can't imagine what would make me skip an rc8 at this point. > Everything looks good right now (but not rc7, we had a stupid bug), > but I'd rather wait a week than fins another silly bug the

[PATCH 2/2] ASoC: tas2764: Add the driver for the TAS2764

2020-09-30 Thread Dan Murphy
Introduce the Texas Instruments TAS2764 amplifier driver with I/V sense for loud speaker applications. Signed-off-by: Dan Murphy --- sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/tas2764.c | 683 + sound/soc/codecs/ta

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Paul Cercueil
Le mer. 30 sept. 2020 à 18:11, Christoph Hellwig a écrit : On Wed, Sep 30, 2020 at 03:33:13PM +0200, Paul Cercueil wrote: One thing missing for remap_pfn_range(), I have no alternative for this: vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, DMA_ATTR_NON_CONSISTENT); So I hav

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 06:39:18PM +0200, Paul Cercueil wrote: >> dma_alloc_pages gives you cached memory, so you can't just use an >> uncached protection for the userspace mmap here. If you want uncached >> memory you need to use dma_alloc_coherent paired with dma_mmap_coherent. >> Or dma_alloc_w

Re: [PATCH v2] srcu: avoid escaped section names

2020-09-30 Thread Sedat Dilek
On Tue, Sep 29, 2020 at 9:25 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > The stringification operator, `#`, in the preprocessor escapes strings. > For example, `# "foo"` becomes `"\"foo\""`. GCC and Clang differ in how > they treat section names that contain \". > > The portable soluti

Re: [PATCH 0/2] Platform integrity information in sysfs (version 9)

2020-09-30 Thread Daniel Gutson
Sorry, I forgot to restore Tested-by: Richard Hughes which I removed for experimenting purposes with git-send-email. On Wed, Sep 30, 2020 at 1:37 PM Daniel Gutson wrote: > > This patch serie adds a misc kernel module and extends the intel-spi drivers > to publish platform integrity data in the s

[net PATCH v2 0/4] Fix bugs in Octeontx2 netdev driver

2020-09-30 Thread Geetha sowjanya
In existing Octeontx2 network drivers code has issues like stale entries in broadcast replication list, missing L3TYPE for IPv6 frames, running tx queues on error and race condition in mbox reset. This patch set fixes the above issues. Geethe sowjanya (1): octeontx2-pf: Fix TCP/UDP checksum off

[net PATCH v2 1/4] octeontx2-af: Fix enable/disable of default NPC entries

2020-09-30 Thread Geetha sowjanya
From: Subbaraya Sundeep Packet replication feature present in Octeontx2 is a hardware linked list of PF and its VF interfaces so that broadcast packets are sent to all interfaces present in the list. It is driver job to add and delete a PF/VF interface to/from the list when the interface is broug

Re: [PATCH] export.h: fix section name for CONFIG_TRIM_UNUSED_KSYMS for Clang

2020-09-30 Thread Sedat Dilek
On Tue, Sep 29, 2020 at 9:07 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > When enabling CONFIG_TRIM_UNUSED_KSYMS, the linker will warn about the > orphan sections: > (".discard.ksym") is being placed in '".discard.ksym"' > repeatedly when linking vmlinux. This is because the stringificat

[net PATCH v2 2/4] octeontx2-pf: Fix TCP/UDP checksum offload for IPv6 frames

2020-09-30 Thread Geetha sowjanya
For TCP/UDP checksum offload feature in Octeontx2 expects L3TYPE to be set irrespective of IP header checksum is being offloaded or not. Currently for IPv6 frames L3TYPE is not being set resulting in packet drop with checksum error. This patch fixes this issue. Fixes: 3ca6c4c88 ("octeontx2-pf: Add

[net PATCH v2 3/4] octeontx2-pf: Fix the device state on error

2020-09-30 Thread Geetha sowjanya
From: Hariprasad Kelam Currently in otx2_open on failure of nix_lf_start transmit queues are not stopped which are already started in link_event. Since the tx queues are not stopped network stack still try's to send the packets leading to driver crash while access the device resources. Fixes: 50

Re: [REGRESSION] hwmon: (applesmc) avoid overlong udelay()

2020-09-30 Thread Guenter Roeck
On Wed, Sep 30, 2020 at 10:54:42AM +0200, Andreas Kemnade wrote: > Hi, > > after the $subject patch I get lots of errors like this: For reference, this refers to commit fff2d0f701e6 ("hwmon: (applesmc) avoid overlong udelay()"). > [ 120.378614] applesmc: send_byte(0x00, 0x0300) fail: 0x40 > [

[net PATCH v2 4/4] octeontx2-pf: Fix synchnorization issue in mbox

2020-09-30 Thread Geetha sowjanya
From: Hariprasad Kelam Mbox implementation in octeontx2 driver has three states alloc, send and reset in mbox response. VF allocate and sends message to PF for processing, PF ACKs them back and reset the mbox memory. In some case we see synchronization issue where after msgs_acked is incremented

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Paul Cercueil
Le mer. 30 sept. 2020 à 18:40, Christoph Hellwig a écrit : On Wed, Sep 30, 2020 at 06:39:18PM +0200, Paul Cercueil wrote: dma_alloc_pages gives you cached memory, so you can't just use an uncached protection for the userspace mmap here. If you want uncached memory you need to use dma_a

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-09-30 Thread Michal Hocko
On Wed 30-09-20 15:39:54, Uladzislau Rezki wrote: > On Wed, Sep 30, 2020 at 02:44:13PM +0200, Michal Hocko wrote: > > On Wed 30-09-20 14:35:35, Uladzislau Rezki wrote: > > > On Wed, Sep 30, 2020 at 11:27:32AM +0200, Michal Hocko wrote: > > > > On Tue 29-09-20 18:25:14, Uladzislau Rezki wrote: > > >

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-30 Thread Thierry Reding
On Wed, Sep 30, 2020 at 07:25:41PM +0300, Dmitry Osipenko wrote: > 30.09.2020 19:06, Thierry Reding пишет: > > On Wed, Sep 30, 2020 at 06:36:52PM +0300, Dmitry Osipenko wrote: > >> I'... > +struct tegra_mc *mc = devm_tegra_get_memory_controller(dev); > +struct iommu_fwspe

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-09-30 Thread Michal Hocko
On Wed 30-09-20 11:25:17, Joel Fernandes wrote: > On Fri, Sep 25, 2020 at 05:47:41PM +0200, Michal Hocko wrote: > > On Fri 25-09-20 17:31:29, Uladzislau Rezki wrote: > > > > > > > > > > > > > > All good points! > > > > > > > > > > > > > > On the other hand, duplicating a portion of the allocator

Re: [PATCH v4 38/52] docs: block: typec_bus.rst: get rid of :c:type

2020-09-30 Thread André Almeida
On 9/30/20 10:25 AM, Mauro Carvalho Chehab wrote: > The :c:type macros are not used properly there, as reported > by Sphinx 3: > > ./Documentation/block/blk-mq.rst:112: WARNING: Unparseable C > cross-reference: 'hctx->dispatch' > Invalid C declaration: Expected end of definition. [err

Re: [PATCH 1/3] mfd: intel_pmt: Add OOBMSM device ID

2020-09-30 Thread David E. Box
On Wed, 2020-09-30 at 08:12 +0100, Lee Jones wrote: > On Tue, 29 Sep 2020, David E. Box wrote: > > > On Tue, 2020-09-29 at 10:51 +0100, Lee Jones wrote: > > > On Fri, 11 Sep 2020, David E. Box wrote: > > > > > > > Add Out of Band Management Services Module device ID to Intel > > > > PMT > > > > d

Re: [PATCH v4] tools lib traceevent: Hide non API functions

2020-09-30 Thread Steven Rostedt
On Wed, 30 Sep 2020 14:07:33 +0300 "Tzvetomir Stoyanov (VMware)" wrote: > There are internal library functions, which are not declared as a static. > They are used inside the library from different files. Hide them from > the library users, as they are not part of the API. > These functions are m

Re: [PATCH v4 22/52] docs: get rid of :c:type explicit declarations for structs

2020-09-30 Thread André Almeida
On 9/30/20 10:24 AM, Mauro Carvalho Chehab wrote: > The :c:type:`foo` only works properly with structs before > Sphinx 3.x. > > On Sphinx 3.x, structs should now be declared using the > .. c:struct, and referenced via :c:struct tag. > > As we now have the automarkup.py macro, that automatically >

Re: [PATCH 1/3] configs: aspeed: enable UHCI driver in defconfig

2020-09-30 Thread Tao Ren
On Wed, Sep 30, 2020 at 12:08:21PM +0800, Ryan Chen wrote: > Enable UHCI driver in aspeed_g5_defconfig. > > Signed-off-by: Ryan Chen Reviewed-by: Tao Ren

Re: [PATCH rdma-next v4 4/4] RDMA/umem: Move to allocate SG table from pages

2020-09-30 Thread Leon Romanovsky
On Wed, Sep 30, 2020 at 12:14:06PM -0300, Jason Gunthorpe wrote: > On Wed, Sep 30, 2020 at 06:05:15PM +0300, Maor Gottlieb wrote: > > This is right only for the last iteration. E.g. in the first iteration in > > case that there are more pages (left_pages), then we allocate > > SG_MAX_SINGLE_ALLOC. 

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Christoph Hellwig
On Wed, Sep 30, 2020 at 06:45:02PM +0200, Paul Cercueil wrote: >> We don't have such a thing in the Linux API at all. > > dma_pgprot(dev, vma->vm_page_prot, DMA_ATTR_NON_CONSISTENT); > > That was giving me non-coherent cached memory, and now I don't have an > alternative. Looking at Linux 5.9-rc

Re: [PATCH 2/3] usb: host: add uhci compatible support for ast2600-uhci

2020-09-30 Thread Tao Ren
On Wed, Sep 30, 2020 at 12:08:22PM +0800, Ryan Chen wrote: > Add support for AST2600 SOC UHCI driver. > > Signed-off-by: Ryan Chen Reviewed-by: Tao Ren

Re: [PATCH v4 35/52] docs: fs: fscrypt.rst: get rid of :c:type: tags

2020-09-30 Thread Mauro Carvalho Chehab
Hi Eric, Em Wed, 30 Sep 2020 09:21:44 -0700 Eric Biggers escreveu: > On Wed, Sep 30, 2020 at 03:24:58PM +0200, Mauro Carvalho Chehab wrote: > > The :c:type: tag has problems with Sphinx 3.x, as structs > > there should be declared with c:struct. > > > > So, remove them, relying at automarkup.py

Re: [PATCH 3/3] ARM: dts: add ehci uhci enable in evb dts

2020-09-30 Thread Tao Ren
On Wed, Sep 30, 2020 at 12:08:23PM +0800, Ryan Chen wrote: > Add EHCI UHCI enable build in aspeed-ast2600-evb.dts > > Signed-off-by: Ryan Chen Reviewed-by: Tao Ren

Re: [PATCH -next for tip:x86/pti] x86/tlb: drop unneeded local vars in enable_l1d_flush_for_task()

2020-09-30 Thread Lukas Bulwahn
On Wed, 30 Sep 2020, Thomas Gleixner wrote: > On Tue, Sep 29 2020 at 10:37, Peter Zijlstra wrote: > > Here, I fixed it.. > > Well, no. What Balbir is trying to do here is to establish whether a > task runs on a !SMT core. sched_smt_active() is system wide, but their > setup is to have a bunch

Re: [PATCH 10/22] kvm: mmu: Add TDP MMU PF handler

2020-09-30 Thread Paolo Bonzini
On 30/09/20 18:37, Sean Christopherson wrote: >> + >> +if (WARN_ON(!VALID_PAGE(vcpu->arch.mmu->root_hpa))) >> +return RET_PF_RETRY; > I feel like we should kill off these silly WARNs in the existing code instead > of adding more. If they actually fired, I'm pretty sure that they wo

[PATCH v2] tee: add support for application-based session login methods

2020-09-30 Thread Elvira Khabirova
GP TEE Client API in addition to login methods already supported in the kernel also defines several application-based methods: TEEC_LOGIN_APPLICATION, TEEC_LOGIN_USER_APPLICATION, and TEEC_LOGIN_GROUP_APPLICATION. It specifies credentials generated for TEEC_LOGIN_APPLICATION as only depending on t

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-09-30 Thread Stefan Wahren
Hi, Am 30.09.20 um 18:38 schrieb Nathan Chancellor: > On Wed, Sep 30, 2020 at 04:07:58PM +0200, Maxime Ripard wrote: >> Hi Nathan, >> >> On Tue, Sep 29, 2020 at 03:15:26PM -0700, Nathan Chancellor wrote: >>> On Thu, Sep 03, 2020 at 10:01:52AM +0200, Maxime Ripard wrote: Now that all the drive

Re: [PATCH 03/22] kvm: mmu: Init / Uninit the TDP MMU

2020-09-30 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:43PM -0700, Ben Gardon wrote: > diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c > new file mode 100644 > index 0..8241e18c111e6 > --- /dev/null > +++ b/arch/x86/kvm/mmu/tdp_mmu.c > @@ -0,0 +1,34 @@ > +/* SPDX-License-Identifier: GPL-2.0

RE: [PATCH v2] PCI: Cadence: Add quirk for Gen2 controller to do autonomous speed change.

2020-09-30 Thread Athani Nadeem Ladkhan
Hi Rob, > -Original Message- > From: Rob Herring > Sent: Thursday, September 24, 2020 1:16 AM > To: Athani Nadeem Ladkhan > Cc: Tom Joseph ; Lorenzo Pieralisi > ; Bjorn Helgaas ; PCI > ; linux-kernel@vger.kernel.org; Kishon Vijay > Abraham I ; Milind Parab ; > Swapnil Kashinath Jakhade

Re: KASAN: use-after-free Read in btrfs_scan_one_device

2020-09-30 Thread David Sterba
On Sun, Sep 20, 2020 at 07:12:14AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:eb5f95f1 Merge tag 's390-5.9-6' of git://git.kernel.org/pu.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=10a0a8bb90 > kernel

Re: [PATCH -next for tip:x86/pti] x86/tlb: drop unneeded local vars in enable_l1d_flush_for_task()

2020-09-30 Thread Peter Zijlstra
On Wed, Sep 30, 2020 at 05:40:08PM +0200, Thomas Gleixner wrote: > On Tue, Sep 29 2020 at 10:37, Peter Zijlstra wrote: > > Here, I fixed it.. > > Well, no. What Balbir is trying to do here is to establish whether a > task runs on a !SMT core. sched_smt_active() is system wide, but their > setup is

Re: [PATCH 13/22] kvm: mmu: Support invalidate range MMU notifier for TDP MMU

2020-09-30 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:53PM -0700, Ben Gardon wrote: > In order to interoperate correctly with the rest of KVM and other Linux > subsystems, the TDP MMU must correctly handle various MMU notifiers. Add > hooks to handle the invalidate range family of MMU notifiers. > > Tested by running kvm

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-09-30 Thread Joel Fernandes
On Wed, Sep 30, 2020 at 12:48 PM Michal Hocko wrote: > > On Wed 30-09-20 11:25:17, Joel Fernandes wrote: > > On Fri, Sep 25, 2020 at 05:47:41PM +0200, Michal Hocko wrote: > > > On Fri 25-09-20 17:31:29, Uladzislau Rezki wrote: > > > > > > > > > > > > > > > > All good points! > > > > > > > > > > >

Re: [PATCH v2 2/4] mm/fork: Pass new vma pointer into copy_page_range()

2020-09-30 Thread Peter Xu
On Wed, Sep 30, 2020 at 04:30:55PM +0300, Kirill A. Shutemov wrote: > > int copy_page_range(struct mm_struct *dst, struct mm_struct *src, > > - struct vm_area_struct *vma); > > + struct vm_area_struct *vma, struct vm_area_struct *new); > > It makes dst/src mm_struc

Re: [PATCH v4 35/52] docs: fs: fscrypt.rst: get rid of :c:type: tags

2020-09-30 Thread Eric Biggers
On Wed, Sep 30, 2020 at 06:53:33PM +0200, Mauro Carvalho Chehab wrote: > Hi Eric, > > Em Wed, 30 Sep 2020 09:21:44 -0700 > Eric Biggers escreveu: > > > On Wed, Sep 30, 2020 at 03:24:58PM +0200, Mauro Carvalho Chehab wrote: > > > The :c:type: tag has problems with Sphinx 3.x, as structs > > > the

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