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

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

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

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

[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 +

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

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 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 > > >

[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

[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

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

[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 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

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 > --- > >

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

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

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 =

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.

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 > >

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

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", > >

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,

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..

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.

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

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(>dev, > "fsl,erratum-a011043"); > - > - ret = of_mdiobus_register(bus, np); > - if (ret) { > - dev_err(>dev, "cannot register MDIO bus\n"); > + if

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

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

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 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

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

[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

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

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",

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

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

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

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 >

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

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- >

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

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

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

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

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 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

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

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 >

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 ...

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

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: >

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

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

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 =

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 > >

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

[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

[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

[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

[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

[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

[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 ---

[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

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

[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

[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

[net-next PATCH v1 6/7] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2020-09-30 Thread Calvin Johnson
Modify dpaa2_mac_connect() to support ACPI along with DT. Modify dpaa2_mac_get_node() to get the dpmac fwnode from either DT or ACPI. Replace of_get_phy_mode with fwnode_get_phy_mode to get phy-mode for a dpmac_node. Use helper function phylink_fwnode_phy_connect() to find phy_dev and connect to

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

2020-09-30 Thread Dmitry Osipenko
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: From: Dmitry Osipenko Multiple Tegra drivers need to retrieve

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

2020-09-30 Thread Calvin Johnson
PHYs on an mdio bus has address which can be obtained from ACPI DSDT table using the _ADR object. DSDT Eg: PHYs connected to MDI0 bus. - Scope(\_SB.MDI0) { Device(PHY1) { Name (_ADR, 0x1) } // end of PHY1 Device(PHY2) { Name (_ADR, 0x2) } // end of PHY2 }

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 > >

[net-next PATCH v1 5/7] phylink: introduce phylink_fwnode_phy_connect()

2020-09-30 Thread Calvin Johnson
Define phylink_fwnode_phy_connect() to connect phy specified by a fwnode to a phylink instance. Signed-off-by: Calvin Johnson --- drivers/net/phy/phylink.c | 51 +++ include/linux/phylink.h | 3 +++ 2 files changed, 54 insertions(+) diff --git

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

2020-09-30 Thread Calvin Johnson
Extract phy_id from compatible string. This will be used by fwnode_mdiobus_register_phy() to create phy device using the phy_id. Signed-off-by: Calvin Johnson --- drivers/net/phy/phy_device.c | 32 +++- include/linux/phy.h | 5 + 2 files changed, 36

[net-next PATCH v1 2/7] net: phy: Introduce phy related fwnode functions

2020-09-30 Thread Calvin Johnson
Define fwnode_phy_find_device() to iterate an mdiobus and find the phy device of the provided phy fwnode. Additionally define device_phy_find_device() to find phy device of provided device. Define fwnode_get_phy_node() to get phy_node using named reference. Signed-off-by: Calvin Johnson ---

Re: [PATCH v4 06/29] tracing: move function tracer options to Kconfig

2020-09-30 Thread Sami Tolvanen
On Tue, Sep 29, 2020 at 5:13 PM Steven Rostedt wrote: > > On Tue, 29 Sep 2020 14:46:08 -0700 > Sami Tolvanen wrote: > > > +++ b/kernel/trace/Kconfig > > @@ -595,6 +595,22 @@ config FTRACE_MCOUNT_RECORD > > depends on DYNAMIC_FTRACE > > depends on HAVE_FTRACE_MCOUNT_RECORD > > > >

[net-next PATCH v1 0/7] ACPI support for dpaa2 driver

2020-09-30 Thread Calvin Johnson
This patch set provides ACPI support to DPAA2 network drivers. It also introduces new fwnode based APIs to support phylink and phy layers Following functions are defined: phylink_fwnode_phy_connect() fwnode_mdiobus_register_phy() fwnode_get_phy_id() fwnode_phy_find_device()

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

2020-09-30 Thread Calvin Johnson
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/dsd/phy.rst | 78 +++ 1 file changed, 78 insertions(+)

[net-next PATCH v1 4/7] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2020-09-30 Thread Calvin Johnson
Introduce fwnode_mdiobus_register_phy() to register PHYs on the mdiobus. From the compatible string, identify whether the PHY is c45 and based on this create a PHY device instance which is registered on the mdiobus. Signed-off-by: Calvin Johnson --- drivers/net/phy/mdio_bus.c | 40

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 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: > >> From: Dmitry Osipenko > >> > >> Multiple Tegra drivers need to retrieve Memory Controller and hence there > >> is quite

Re: [PATCH][next][resend] lib/mpi: fix off-by-one check on index "no"

2020-09-30 Thread Ard Biesheuvel
On Wed, 30 Sep 2020 at 16:36, Ondrej Mosnáček wrote: > > st 30. 9. 2020 o 15:04 Colin King napísal(a): > > > > From: Colin Ian King > > > > There is an off-by-one range check on the upper limit of > > index "no". Fix this by changing the > comparison to >= > > Note that this doesn't completely

Re: [PATCH] cgroup: remove redundant kernfs_activate in cgroup_setup_root()

2020-09-30 Thread Tejun Heo
On Fri, Sep 25, 2020 at 05:11:10PM +0800, Wei Yang wrote: > This step is already done in rebind_subsystems(). > > Not necessary to do it again. > > Signed-off-by: Wei Yang Applied to cgroup/for-5.10. Thanks. -- tejun

RE: Keyboard regression by intel-vbtn

2020-09-30 Thread Limonciello, Mario
> -Original Message- > From: Hans de Goede > Sent: Wednesday, September 30, 2020 10:37 > To: Limonciello, Mario; Barnabás Pőcze; Andy Shevchenko > Cc: platform-driver-...@vger.kernel.org; linux-kernel@vger.kernel.org; Takashi > Iwai > Subject: Re: Keyboard regression by intel-vbtn > > >

[PATCH v4] coccinelle: api: add kvmalloc script

2020-09-30 Thread Denis Efremov
Suggest kvmalloc, kvfree instead of opencoded patterns. Signed-off-by: Denis Efremov --- Changes in v2: - binary operator cmp added - NULL comparisions simplified - "T x" case added to !patch mode Changes in v3: - kvfree rules added Changes in v4: - pattern updated to match only

Re: [PATCH V6 1/2] percpu_ref: reduce memory footprint of percpu_ref in fast path

2020-09-30 Thread Tejun Heo
On Wed, Sep 30, 2020 at 04:26:56PM +0800, Ming Lei wrote: > diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h > index 87d8a38bdea1..1d6ed9ca23dd 100644 > --- a/include/linux/percpu-refcount.h > +++ b/include/linux/percpu-refcount.h > @@ -92,18 +92,23 @@ enum { >

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

2020-09-30 Thread Anant Thazhemadam
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 proposed patch and the reproducer did not trigger any >>> issue: >>>

[LTP] [ANNOUNCE] The Linux Test Project has been released for SEPTEMBER 2020

2020-09-30 Thread Cyril Hrubis
of the test-suite contains 3000+ tests for the Linux and can be downloaded at: https://github.com/linux-test-project/ltp/releases/tag/20200930 The project pages as well as GIT repository are hosted on GitHub: https://github.com/linux-test-project/ltp http://linux-test-project.github.io/ If you

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

2020-09-30 Thread Naresh Kamboju
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 anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH v4 49/52] workqueue: fix a kernel-doc warning

2020-09-30 Thread Tejun Heo
On Wed, Sep 30, 2020 at 03:25:12PM +0200, Mauro Carvalho Chehab wrote: > As warned by Sphinx: > > ./Documentation/core-api/workqueue:400: ./kernel/workqueue.c:1218: > WARNING: Unexpected indentation. > > the return code table is currently not recognized, as it lacks > markups. > >

Re: [PATCH v3] kthread_worker: Prevent queuing delayed work from timer_fn when it is being canceled

2020-09-30 Thread Tejun Heo
On Sun, Sep 27, 2020 at 01:54:49PM +0800, qiang.zh...@windriver.com wrote: > From: Zqiang > > There is a small race window when a delayed work is being canceled and > the work still might be queued from the timer_fn: > > CPU0CPU1 >

Re: [GIT PULL] devfreq next for v5.10

2020-09-30 Thread Rafael J. Wysocki
On Tue, Sep 29, 2020 at 10:56 AM Chanwoo Choi wrote: > > Dear Rafael, > > This is devfreq-next pull request for v5.10-rc1. I add detailed description of > this pull request on the following tag. Please pull devfreq with following > updates. > - tag name : devfreq-next-for-5.10 Pulled, thanks!

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

2020-09-30 Thread Andy Shevchenko
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 right. > > > > And of course GPIO line, which has name, has no

Re: For review: seccomp_user_notif(2) manual page

2020-09-30 Thread Jann Horn
On Wed, Sep 30, 2020 at 1:07 PM Michael Kerrisk (man-pages) wrote: > I knew it would be a big ask, but below is kind of the manual page > I was hoping you might write [1] for the seccomp user-space notification > mechanism. Since you didn't (and because 5.9 adds various new pieces > such as

Re: [PATCH 11/30] spi: dw: Add DWC SSI capability

2020-09-30 Thread Serge Semin
On Wed, Sep 30, 2020 at 04:41:49PM +0100, Mark Brown wrote: > On Wed, Sep 30, 2020 at 06:03:12PM +0300, Serge Semin wrote: > > On Wed, Sep 30, 2020 at 01:17:37AM +0300, Serge Semin wrote: > > > > > > - /* > > > > > - * SPI mode (SCPOL|SCPH) > > > > > - * CTRLR0[ 8] Serial Clock

Re: KMSAN: kernel-infoleak in scsi_cmd_ioctl

2020-09-30 Thread Anant Thazhemadam
#syz fix: ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info()

[RESEND PATCH] media: siano: fix memory leak of debugfs members in smsdvb_hotplug

2020-09-30 Thread Keita Suzuki
When dvb_create_media_graph fails, the debugfs kept inside client should be released. However, the current implementation does not release them. Fix this by adding a new goto label to call smsdvb_debugfs_release. Fixes: 0d3ab8410dcb ("[media] dvb core: must check dvb_create_media_graph()")

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

2020-09-30 Thread Dmitry Osipenko
30.09.2020 18:23, Thierry Reding пишет: > On Wed, Sep 30, 2020 at 01:42:56AM -0700, Nicolin Chen wrote: >> From: Dmitry Osipenko >> >> Multiple Tegra drivers need to retrieve Memory Controller and hence there >> is quite some duplication of the retrieval code among the drivers. Let's >> add a new

Re: [PATCH 0/4] kvfree_rcu() and _LOCK_NESTING/_PREEMPT_RT

2020-09-30 Thread Joel Fernandes
On Fri, Sep 18, 2020 at 09:48:13PM +0200, Uladzislau Rezki (Sony) wrote: > Hello, folk! > > This is another iteration of fixing kvfree_rcu() issues related > to CONFIG_PROVE_RAW_LOCK_NESTING and CONFIG_PREEMPT_RT configs. > > The first discussion is here https://lkml.org/lkml/2020/8/9/195. > >

Re: [PATCH v12 2/6] x86: Support Generic Initiator only proximity domains

2020-09-30 Thread Borislav Petkov
On Wed, Sep 30, 2020 at 10:05:43PM +0800, Jonathan Cameron wrote: > In common with memoryless domains only register GI domains > if the proximity node is not online. If a domain is already > a memory containing domain, or a memoryless domain there is > nothing to do just because it also contains a

[RESEND PATCH v2] scsi: hpsa: fix memory leak in hpsa_init_one

2020-09-30 Thread Keita Suzuki
When hpsa_scsi_add_host fails, h->lastlogicals is leaked since it lacks free in the error handler. Fix this by adding free when hpsa_scsi_add_host fails. This patch also renames the numbered labels to detailed names. Fixes: cf47723763a7 ("hpsa: correct initialization order issue")

Re: [PATCH] ACPI / NUMA: Add stub function for pxm_to_node

2020-09-30 Thread Rafael J. Wysocki
On Wed, Sep 30, 2020 at 11:07 AM Hanjun Guo wrote: > > On 2020/9/29 3:45, Nathan Chancellor wrote: > > After commit 01feba590cd6 ("ACPI: Do not create new NUMA domains from > > ACPI static tables that are not SRAT"): > > > > $ scripts/config --file arch/x86/configs/x86_64_defconfig -d NUMA -e >

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