Re: For review: seccomp_user_notif(2) manual page

2020-09-30 Thread Tycho Andersen
On Wed, Sep 30, 2020 at 01:07:38PM +0200, Michael Kerrisk (man-pages) wrote: >2. In order that the supervisor process can obtain notifications > using the listening file descriptor, (a duplicate of) that > file descriptor must be passed from the target process to t

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

2020-09-30 Thread Dmitry Osipenko
... > static int tegra_smmu_attach_dev(struct iommu_domain *domain, >struct device *dev) > { > + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); > struct tegra_smmu *smmu = dev_iommu_priv_get(dev); > struct tegra_smmu_as *as = to_smmu_as(do

RE: Keyboard regression by intel-vbtn

2020-09-30 Thread Limonciello, Mario
> -Original Message- > From: Hans de Goede > Sent: Wednesday, September 30, 2020 8:28 > 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 > > > [

Re: [PATCH v6 5/6] mm: secretmem: use PMD-size pages to amortize direct map fragmentation

2020-09-30 Thread James Bottomley
On Wed, 2020-09-30 at 16:45 +0200, David Hildenbrand wrote: > On 30.09.20 16:39, James Bottomley wrote: > > On Wed, 2020-09-30 at 13:27 +0300, Mike Rapoport wrote: > > > On Tue, Sep 29, 2020 at 05:15:52PM +0200, Peter Zijlstra wrote: > > > > On Tue, Sep 29, 2020 at 05:58:13PM +0300, Mike Rapoport w

Re: [RFC PATCH v2 1/2] objtool: x86 instruction decoder and big endian cross compiles

2020-09-30 Thread Josh Poimboeuf
On Wed, Sep 30, 2020 at 02:24:19PM +0200, Vasily Gorbik wrote: > From: Martin Schwidefsky > > Make the x86 instruction decoder of the objtool usable on big endian > machines. This is useful for compile tests on non x86, big endian > hardware. > > Co-developed-by: Vasily Gorbik > [ gor: more end

[PATCH v3 seccomp 1/5] x86: Enable seccomp architecture tracking

2020-09-30 Thread YiFei Zhu
From: Kees Cook Provide seccomp internals with the details to calculate which syscall table the running kernel is expecting to deal with. This allows for efficient architecture pinning and paves the way for constant-action bitmaps. Signed-off-by: Kees Cook [YiFei: Removed x32, added macro for n

Re: [patch V2 00/46] x86, PCI, XEN, genirq ...: Prepare for device MSI

2020-09-30 Thread Thomas Gleixner
On Wed, Sep 30 2020 at 08:43, Jason Gunthorpe wrote: > On Wed, Sep 30, 2020 at 08:41:48AM +0200, Thomas Gleixner wrote: >> On Tue, Sep 29 2020 at 16:03, Megha Dey wrote: >> > On 8/26/2020 4:16 AM, Thomas Gleixner wrote: >> >> #9is obviously just for the folks interested in IMS >> >> >> > >>

Re: [PATCH v2 2/6] can: dev: add a helper function to get the correct length of Classical frames

2020-09-30 Thread Marc Kleine-Budde
On 9/30/20 4:45 PM, Vincent Mailhol wrote: > In classical CAN, the length of the data (i.e. CAN payload) is not > always equal to the DLC! If the frame is a Remote Transmission Request > (RTR), data length is always zero regardless of DLC value and else, if > the DLC is greater than 8, the length i

RE: [PATCH v2 1/2] devfreq: qcom: Add L2 Krait Cache devfreq scaling driver

2020-09-30 Thread ansuelsmth
> On Wed, Sep 30, 2020 at 01:56:01PM +0200, ansuels...@gmail.com > wrote: > > > Subject: Re: [PATCH v2 1/2] devfreq: qcom: Add L2 Krait Cache devfreq > > > scaling driver > > > > > > On Tue, Sep 29, 2020 at 06:29:24PM +0200, Ansuel Smith wrote: > > > > Qcom L2 Krait CPUs use the generic cpufreq-dt

[PATCH v3 seccomp 2/5] seccomp/cache: Add "emulator" to check if filter is constant allow

2020-09-30 Thread YiFei Zhu
From: YiFei Zhu SECCOMP_CACHE_NR_ONLY will only operate on syscalls that do not access any syscall arguments or instruction pointer. To facilitate this we need a static analyser to know whether a filter will return allow regardless of syscall arguments for a given architecture number / syscall nu

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

2020-09-30 Thread Dmitry Osipenko
30.09.2020 17:45, Krzysztof Kozlowski пишет: > On Wed, 30 Sep 2020 at 16:41, Dmitry Osipenko wrote: >> >> ... >>> +struct tegra_mc *devm_tegra_get_memory_controller(struct device *dev) >>> +{ >>> + struct platform_device *pdev; >>> + struct device_node *np; >>> + struct tegra_mc *mc; >

[PATCH v3 seccomp 3/5] seccomp/cache: Lookup syscall allowlist for fast path

2020-09-30 Thread YiFei Zhu
From: YiFei Zhu The fast (common) path for seccomp should be that the filter permits the syscall to pass through, and failing seccomp is expected to be an exceptional case; it is not expected for userspace to call a denylisted syscall over and over. This first finds the current allow bitmask by

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 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 common helper for the retrieval of the MC. >

Re: [PATCH next v2 1/2] printk: avoid and/or handle record truncation

2020-09-30 Thread Joe Perches
On Wed, 2020-09-30 at 11:07 +0206, John Ogness wrote: > If a reader provides a buffer that is smaller than the message text, > the @text_len field of @info will have a value larger than the buffer > size. If readers blindly read @text_len bytes of data without > checking the size, they will read be

Re: [PATCH v6 5/6] mm: secretmem: use PMD-size pages to amortize direct map fragmentation

2020-09-30 Thread David Hildenbrand
On 30.09.20 17:17, James Bottomley wrote: > On Wed, 2020-09-30 at 16:45 +0200, David Hildenbrand wrote: >> On 30.09.20 16:39, James Bottomley wrote: >>> On Wed, 2020-09-30 at 13:27 +0300, Mike Rapoport wrote: On Tue, Sep 29, 2020 at 05:15:52PM +0200, Peter Zijlstra wrote: > On Tue, Sep 29,

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

2020-09-30 Thread Joel Fernandes
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 > > > > > > functionality > > > > > > within RCU increases

[PATCH v3 seccomp 4/5] selftests/seccomp: Compare bitmap vs filter overhead

2020-09-30 Thread YiFei Zhu
From: Kees Cook As part of the seccomp benchmarking, include the expectations with regard to the timing behavior of the constant action bitmaps, and report inconsistencies better. Example output with constant action bitmaps on x86: $ sudo ./seccomp_benchmark 1 Current BPF sysctl setting

Re: [PATCH] memcg: introduce per-memcg reclaim interface

2020-09-30 Thread Shakeel Butt
Hi Johannes, On Mon, Sep 28, 2020 at 2:03 PM Johannes Weiner wrote: > > Hello, > > I apologize for the late reply. The proposed interface has been an > ongoing topic and area of experimentation within Facebook as well, > which makes it a bit difficult to respond with certainty here. > > I agree w

Re: [PATCH v8 5/7] ASoC: qcom: Add support for lpass hdmi driver

2020-09-30 Thread Srinivas Kandagatla
On 30/09/2020 07:39, Srinivasa Rao Mandadapu wrote: +} + +static bool lpass_hdmi_regmap_volatile(struct device *dev, unsigned int reg) +{ + return true; +} I did ask this question in multiple reviews, but never got an answer! Are all the dp/hdmi port register range really volatile!?

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

[PATCH v3 seccomp 5/5] seccomp/cache: Report cache data through /proc/pid/seccomp_cache

2020-09-30 Thread YiFei Zhu
From: YiFei Zhu Currently the kernel does not provide an infrastructure to translate architecture numbers to a human-readable name. Translating syscall numbers to syscall names is possible through FTRACE_SYSCALL infrastructure but it does not provide support for compat syscalls. This will create

Re: [PATCH v4 1/2] dt-bindings: usb: Add binding for discrete onboard USB hubs

2020-09-30 Thread Doug Anderson
Hi, On Wed, Sep 30, 2020 at 7:44 AM Rob Herring wrote: > > On Wed, Sep 30, 2020 at 7:49 AM Matthias Kaehlcke wrote: > > > > Hi Alan, > > > > On Tue, Sep 29, 2020 at 09:32:29PM -0400, Alan Stern wrote: > > > On Tue, Sep 29, 2020 at 03:09:12PM -0700, Matthias Kaehlcke wrote: > > > > Hi Rob, > > >

[PATCH v3 seccomp 0/5] seccomp: Add bitmap cache of constant allow filter results

2020-09-30 Thread YiFei Zhu
From: YiFei Zhu Alternative: https://lore.kernel.org/lkml/20200923232923.3142503-1-keesc...@chromium.org/T/ Major differences from the linked alternative by Kees: * No x32 special-case handling -- not worth the complexity * No caching of denylist -- not worth the complexity * No seccomp arch pi

Re: [PATCH v4 0/6] kasan: add workqueue and timer stack for generic KASAN

2020-09-30 Thread Thomas Gleixner
On Thu, Sep 24 2020 at 12:01, Walter Wu wrote: > Syzbot reports many UAF issues for workqueue or timer, see [1] and [2]. > In some of these access/allocation happened in process_one_work(), > we see the free stack is useless in KASAN report, it doesn't help > programmers to solve UAF on workqueue.

Re: [PATCH v6 2/3] MAINTAINERS: Add Purism Librem 5 section to the list

2020-09-30 Thread Joe Perches
On Wed, 2020-09-30 at 12:50 +0200, Krzysztof Kozlowski wrote: > On Sun, 30 Aug 2020 at 15:15, Shawn Guo wrote: > > On Fri, Aug 21, 2020 at 02:17:54PM +0200, Martin Kepplinger wrote: > > > Add development information for the devicetree files for hardware > > > by Purism SPC. > > > > > > Signed-off

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 01:42:57AM -0700, Nicolin Chen wrote: > Previously the driver relies on bus_set_iommu() in .probe() to call > in .probe_device() function so each client can poll iommus property > in DTB to configure fwspec via tegra_smmu_configure(). According to > the comments in .probe(),

Re: [PATCH] mm: Fix potential memory leak in sys_swapon

2020-09-30 Thread Darrick J. Wong
On Wed, Sep 30, 2020 at 06:18:03AM -0400, Miaohe Lin wrote: > If we failed to drain inode, we would forget to free the swap address space > allocated by init_swap_address_space() above. > > Fixes: dc617f29dbe5 ("vfs: don't allow writes to swap files") > Signed-off-by: Miaohe Lin LGTM, Reviewed-b

Re: [PATCH V9 0/4] fuse: Add support for passthrough read/write

2020-09-30 Thread Miklos Szeredi
On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > The first benchmarks were done by running FIO (fio-3.21) with: > - bs=4Ki; > - file size: 50Gi; > - ioengine: sync; > - fsync_on_close: true. > The target file has been chosen large enough to avoid it to be entirely > loaded into the page c

[PATCH v7 00/18] Implement NTB Controller using multiple PCI EP

2020-09-30 Thread Kishon Vijay Abraham I
This series is about implementing SW defined Non-Transparent Bridge (NTB) using multiple endpoint (EP) instances. This series has been tested using 2 endpoint instances in J7 connected to J7 board on one end and DRA7 board on the other end. However there is nothing platform specific for the NTB fun

[PATCH v7 02/18] PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

2020-09-30 Thread Kishon Vijay Abraham I
pci_epc_get_first_free_bar() uses only "reserved_bar" member in epc_features to get the first unreserved BAR. However if the reserved BAR is also a 64-bit BAR, then the next BAR shouldn't be returned (since 64-bit BAR uses two BARs). Make pci_epc_get_first_free_bar() take into account 64 bit BAR w

[PATCH v7 01/18] Documentation: PCI: Add specification for the *PCI NTB* function device

2020-09-30 Thread Kishon Vijay Abraham I
Add specification for the *PCI NTB* function device. The endpoint function driver and the host PCI driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/index.rst | 1 + .../PCI/endpoint/pci-ntb-function.rst

[PATCH v7 05/18] PCI: endpoint: Remove unused pci_epf_match_device()

2020-09-30 Thread Kishon Vijay Abraham I
Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf-core

[PATCH v7 06/18] PCI: endpoint: Add support to associate secondary EPC with EPF

2020-09-30 Thread Kishon Vijay Abraham I
In the case of standard endpoint functions, only one endpoint controller (EPC) will be associated with an endpoint function (EPF). However for providing NTB (non transparent bridge) functionality, two EPCs should be associated with a single EPF. Add support to associate secondary EPC with EPF. This

Re: [PATCH v6 4/4] KVM: nSVM: implement on demand allocation of the nested state

2020-09-30 Thread Maxim Levitsky
On Mon, 2020-09-28 at 22:15 -0700, Sean Christopherson wrote: > On Wed, Sep 23, 2020 at 12:10:25AM +0300, Maxim Levitsky wrote: > > This way we don't waste memory on VMs which don't use nesting > > virtualization even when the host enabled it for them. > > > > Signed-off-by: Maxim Levitsky > > --

[PATCH v7 03/18] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2020-09-30 Thread Kishon Vijay Abraham I
Add an API to get the next unreserved BAR starting from a given BAR number that can be used by the endpoint function. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 26 ++ include/linux/pci-epc.h | 2 ++ 2 files changed, 24 in

[PATCH v7 07/18] PCI: endpoint: Add support in configfs to associate two EPCs with EPF

2020-09-30 Thread Kishon Vijay Abraham I
Now that PCI endpoint core supports to add secondary endpoint controller (EPC) with endpoint function (EPF), Add support in configfs to associate two EPCs with EPF. This creates "primary" and "secondary" directory inside the directory created by users for EPF device. Users have to add a symlink of

[PATCH v7 04/18] PCI: endpoint: Make *_free_bar() to return error codes on failure

2020-09-30 Thread Kishon Vijay Abraham I
Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to return error values if there are no free BARs available. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/pci-epf-test.c | 2 ++ drivers/pci/endpoint/pci-epc-core.c | 12 ++-- includ

[PATCH v7 08/18] PCI: endpoint: Add pci_epc_ops to map MSI irq

2020-09-30 Thread Kishon Vijay Abraham I
Add pci_epc_ops to map physical address to MSI address and return MSI data. The physical address is an address in the outbound region. This is required to implement doorbell functionality of NTB (non transparent bridge) wherein EPC on either side of the interface (primary and secondary) can directl

Re: [PATCH v6 0/4] KVM: nSVM: ondemand nested state allocation

2020-09-30 Thread Maxim Levitsky
On Wed, 2020-09-23 at 00:10 +0300, Maxim Levitsky wrote: > This is the next version of this patch series. > > In V5 I adopted Sean Christopherson's suggestion to make .set_efer return > a negative error (-ENOMEM in this case) which in most cases in kvm > propagates to the userspace. > > I noticed

Re: Keyboard regression by intel-vbtn

2020-09-30 Thread Hans de Goede
Hi, On 9/30/20 5:12 PM, Limonciello, Mario wrote: -Original Message- From: Hans de Goede Sent: Wednesday, September 30, 2020 8:28 To: Limonciello, Mario; Barnabás Pőcze; Andy Shevchenko Cc: platform-driver-...@vger.kernel.org; linux-kernel@vger.kernel.org; Takashi Iwai Subject: Re: Keyb

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

2020-09-30 Thread Dmitry Osipenko
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 > because PCI devices may not have a device tree node with a phandle to > the IOM

[PATCH v7 09/18] PCI: endpoint: Add pci_epf_ops for epf drivers to expose function specific attrs

2020-09-30 Thread Kishon Vijay Abraham I
In addition to the attributes that are generic across function drivers documented in Documentation/PCI/endpoint/pci-endpoint-cfs.rst, there could be function specific attributes that has to be exposed by the function driver to be configured by the user. Add ->add_cfs() in pci_epf_ops to be populate

[PATCH v7 11/18] PCI: cadence: Implement ->msi_map_irq() ops

2020-09-30 Thread Kishon Vijay Abraham I
Implement ->msi_map_irq() ops in order to map physical address to MSI address and return MSI data. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/drivers/pci/controller/cadence/pcie-

[PATCH v7 10/18] PCI: endpoint: Allow user to create sub-directory of 'EPF Device' directory

2020-09-30 Thread Kishon Vijay Abraham I
Documentation/PCI/endpoint/pci-endpoint-cfs.rst explains how a user has to create a directory in-order to create a 'EPF Device' that can be configured/probed by 'EPF Driver'. Allow user to create a sub-directory of 'EPF Device' directory for any function specific attributes that has to be exposed

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

2020-09-30 Thread Joel Fernandes
On Wed, Sep 30, 2020 at 04:39:53PM +0200, Vlastimil Babka wrote: > On 9/30/20 12:07 AM, Uladzislau Rezki wrote: > > On Tue, Sep 29, 2020 at 12:15:34PM +0200, Vlastimil Babka wrote: > >> On 9/18/20 9:48 PM, Uladzislau Rezki (Sony) wrote: > >> > >> After reading all the threads and mulling over this

[PATCH v7 12/18] PCI: cadence: Configure LM_EP_FUNC_CFG based on epc->function_num_map

2020-09-30 Thread Kishon Vijay Abraham I
The number of functions supported by the endpoint controller is configured in LM_EP_FUNC_CFG based on func_no member of struct pci_epf. Now that an endpoint function can be associated with two endpoint controllers (primary and secondary), just using func_no will not suffice as that will take into a

[PATCH v7 16/18] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge

2020-09-30 Thread Kishon Vijay Abraham I
Invoke ntb_link_enable() to enable the NTB/PCIe link on the local or remote side of the bridge. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/test/ntb_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index b7bf3f863d79..

[PATCH v7 17/18] Documentation: PCI: Add configfs binding documentation for pci-ntb endpoint function

2020-09-30 Thread Kishon Vijay Abraham I
Add binding documentation for pci-ntb endpoint function that helps in adding and configuring pci-ntb endpoint function. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/function/binding/pci-ntb.rst | 38 +++ Documentation/PCI/endpoint/index.rst | 1 + 2 files

[PATCH v7 13/18] PCI: endpoint: Add EP function driver to provide NTB functionality

2020-09-30 Thread Kishon Vijay Abraham I
Add a new endpoint function driver to provide NTB functionality using multiple PCIe endpoint instances. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/Kconfig | 12 + drivers/pci/endpoint/functions/Makefile |1 + drivers/pci/endpoint/functions/pci-epf-n

[PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-30 Thread Kishon Vijay Abraham I
Add support for EPF PCI-Express Non-Transparent Bridge (NTB) device. This driver is platform independent and could be used by any platform which have multiple PCIe endpoint instances configured using the pci-epf-ntb driver. The driver connnects to the standard NTB sub-system interface. The EPF NTB

[PATCH v7 18/18] Documentation: PCI: Add userguide for PCI endpoint NTB function

2020-09-30 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-ntb function driver and existing host side NTB infrastructure for NTB functionality. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Randy Dunlap --- Documentation/PCI/endpoint/index.rst | 1 + Documentation/PCI/endpoint/pci-ntb-howto.rst

[PATCH v7 14/18] PCI: Add TI J721E device to pci ids

2020-09-30 Thread Kishon Vijay Abraham I
Add TI J721E device to the pci id database. Since this device has a configurable PCIe endpoint, it could be used with different drivers. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 1 - include/linux/pci_ids.h | 1 + 2 files changed, 1 insertion(+), 1 de

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

2020-09-30 Thread Flavio Suligoi
Hi Andy, > 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 difference in use from > another > w/o name assigned. You w

Re: [PATCH 04/22] kvm: mmu: Allocate and free TDP MMU roots

2020-09-30 Thread Sean Christopherson
On Wed, Sep 30, 2020 at 08:26:28AM +0200, Paolo Bonzini wrote: > On 30/09/20 08:06, Sean Christopherson wrote: > >> +static struct kvm_mmu_page *get_tdp_mmu_vcpu_root(struct kvm_vcpu *vcpu) > >> +{ > >> + struct kvm_mmu_page *root; > >> + union kvm_mmu_page_role role; > >> + > >> + role = vcpu->

Re: [PATCH 4.19 054/245] scsi: ufs: Make ufshcd_add_command_trace() easier to read

2020-09-30 Thread Pavel Machek
Hi! > From: Bart Van Assche > > [ Upstream commit e4d2add7fd5bc64ee3e388eabe6b9e081cb42e11 ] > > Since the lrbp->cmd expression occurs multiple times, introduce a new local > variable to hold that pointer. This patch does not change any > functionality. This is just a cleanup, AFAICT, and ther

Re: [PATCH] compiler.h: avoid escaped section names

2020-09-30 Thread Joe Perches
On Tue, 2020-09-29 at 13:25 -0700, Nick Desaulniers wrote: > And I don't remember what ever happened to Joe's script for treewide > conversion of __section. Nor do I but here (attached) is the script. My recollection is there was some problem with mscros with ## concatenation in some converted us

Re: [PATCH 5.8 35/99] tools/libbpf: Avoid counting local symbols in ABI check

2020-09-30 Thread Justin Forbes
On Wed, Sep 30, 2020 at 12:02 AM Tony Ambardar wrote: > > [adding Michael Ellerman, linux-ppc maintainer] > > Hello Justin, > > On Tue, 29 Sep 2020 at 14:54, Justin Forbes wrote: > > > > On Tue, Sep 29, 2020 at 6:53 AM Greg Kroah-Hartman > > wrote: > > > > > > From: Tony Ambardar > > > > > > [

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

2020-09-30 Thread Maor Gottlieb
On 9/30/2020 6:14 PM, 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.  We don't know how many pages

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

2020-09-30 Thread Thomas Gleixner
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 of SMT enabled cores and cores where SMT is off because the

Re: [PATCH] Documentation: PM: Fix a reStructuredText syntax error

2020-09-30 Thread Rafael J. Wysocki
On Tue, Sep 29, 2020 at 10:43 PM Yoann Congal wrote: > > Fix a reStructuredText syntax error in the cpuidle PM admin-guide > documentation: the ``...'' quotation marks are parsed as partial ''...'' > reStructuredText markup and break the output formatting. > > This change them to "...". > > Signed

Re: [PATCH] PCI: layerscape: Change back to the default error response behavior

2020-09-30 Thread Kishon Vijay Abraham I
Hi, On 30/09/20 8:37 pm, Rob Herring wrote: > On Wed, Sep 30, 2020 at 8:29 AM Kishon Vijay Abraham I wrote: >> >> Hi Hou, >> >> On 29/09/20 6:43 pm, Zhiqiang Hou wrote: >>> From: Hou Zhiqiang >>> >>> In the current error response behavior, it will send a SLVERR response >>> to device's internal

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

2020-09-30 Thread Mark Brown
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 Phase > > > > -* CTRLR0[ 9] Serial Clock Polarity > > > > -

Re: [PATCH] memcg: introduce per-memcg reclaim interface

2020-09-30 Thread Shakeel Butt
On Tue, Sep 29, 2020 at 2:55 PM Johannes Weiner wrote: > > On Tue, Sep 29, 2020 at 05:04:44PM +0200, Michal Hocko wrote: > > On Mon 28-09-20 17:02:16, Johannes Weiner wrote: > > [...] > > > My take is that a proactive reclaim feature, whose goal is never to > > > thrash or punish but to keep the L

Re: [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume

2020-09-30 Thread Rafael J. Wysocki
On Fri, Sep 25, 2020 at 6:15 PM Christoph Hellwig wrote: > > get_gendisk grabs a reference on the disk and file operation, so this > code will leak both of them while having absolutely no use for the > gendisk itself. > > This effectively reverts commit 2df83fa4bce421f > ("PM / Hibernate: Use get_

Re: [PATCH V9 1/4] fuse: Definitions and ioctl() for passthrough

2020-09-30 Thread Miklos Szeredi
On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > Introduce the new FUSE passthrough ioctl(), which allows userspace to > specify a direct connection between a FUSE file and a lower file system > file. > Such ioctl() requires userspace to specify: > - the file descriptor of one of its ope

Re: [PATCH 1/2] docs: Clarify abstract scale usage for power values in Energy Model

2020-09-30 Thread Rajendra Nayak
On 9/30/2020 7:34 PM, Lukasz Luba wrote: On 9/30/20 11:55 AM, Rajendra Nayak wrote: On 9/30/2020 1:55 PM, Lukasz Luba wrote: Hi Douglas, On 9/30/20 12:53 AM, Doug Anderson wrote: Hi, On Tue, Sep 29, 2020 at 5:16 AM Lukasz Luba wrote: The Energy Model (EM) can store power values in mi

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

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

2020-09-30 Thread Dan Williams
On Tue, Sep 29, 2020 at 10:05 PM Borislav Petkov wrote: > > On Tue, Sep 29, 2020 at 03:32:07PM -0700, Dan Williams wrote: > > Given that Linus was the primary source of review feedback on these > > patches and a version of them have been soaking in -next with only a > > minor conflict report with

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") Signed-off-by:

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: 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()") Signed

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

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 SECCOM

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 dif

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

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

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

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

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

[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 GFP_KERNEL/_

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

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

[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() device_phy_

[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(+) cr

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

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

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

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

[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 a/drivers/n

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

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 Memor

[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

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