[PATCH v8 08/14] PCI/AER: Extend AER error handling to RCECs

2020-10-02 Thread Sean V Kelley
From: Jonathan Cameron Currently the kernel does not handle AER errors for Root Complex integrated End Points (RCiEPs)[0]. These devices sit on a root bus within the Root Complex (RC). AER handling is performed by a Root Complex Event Collector (RCEC) [1] which is a effectively a type of RCiEP

[PATCH v8 02/14] PCI/RCEC: Bind RCEC devices to the Root Port driver

2020-10-02 Thread Sean V Kelley
From: Qiuxu Zhuo If a Root Complex Integrated Endpoint (RCiEP) is implemented, errors may optionally be sent to a corresponding Root Complex Event Collector (RCEC). Each RCiEP must be associated with no more than one RCEC. Interface errors are reported to the OS by RCECs. For an RCEC

[PATCH v8 04/14] PCI/ERR: Rename reset_link() to reset_subordinate_device()

2020-10-02 Thread Sean V Kelley
From: Sean V Kelley reset_link() appears to be misnamed. The point is to really reset any devices below a given bridge. So rename it to reset_subordinate_devices() to make it clear that we are passing a bridge with the intent to reset the devices below it. Suggested-by: Bjorn Helgaas

[PATCH v8 05/14] PCI/ERR: Use "bridge" for clarity in pcie_do_recovery()

2020-10-02 Thread Sean V Kelley
From: Sean V Kelley A generic term such as "bridge" may be used for something with a subordinate bus. The mix of ports would benefit from a use of the term. Further clarity can be had in pcie_do_recovery() with use of pci_upstream_bridge() in place of dev->bus->self. Reverse the

[PATCH v8 12/14] PCI/AER: Add pcie_walk_rcec() to RCEC AER handling

2020-10-02 Thread Sean V Kelley
From: Sean V Kelley Root Complex Event Collectors (RCEC) appear as peers to Root Ports and also have the AER capability. In addition, actions need to be taken for associated RCiEPs. In such cases the RCECs will need to be walked in order to find and act upon their respective RCiEPs. Extend the

[PATCH v8 11/14] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR

2020-10-02 Thread Sean V Kelley
From: Qiuxu Zhuo When attempting error recovery for an RCiEP associated with an RCEC device, there needs to be a way to update the Root Error Status, the Uncorrectable Error Status and the Uncorrectable Error Severity of the parent RCEC. In some non-native cases in which there is no OS visible

[PATCH v8 00/14] Add RCEC handling to PCI/AER

2020-10-02 Thread Sean V Kelley
From: Sean V Kelley Changes since v7 [1]: - No functional changes. - Reword bridge patch. - Noted testing below for #non-native/no RCEC case (Jonathan Cameron) - Separate out pci_walk_bus() into pci_walk_bridge() change. - Put remaining dev to bridge name changes in the separate patch from

[PATCH v8 01/14] PCI/RCEC: Add RCEC class code and extended capability

2020-10-02 Thread Sean V Kelley
From: Qiuxu Zhuo A PCIe Root Complex Event Collector (RCEC) has the base class 0x08, sub-class 0x07, and programming interface 0x00. Add the class code 0x0807 to identify RCEC devices and add the defines for the RCEC Endpoint Association Extended Capability. See PCI Express Base Specification,

[PATCH v8 03/14] PCI/RCEC: Cache RCEC capabilities in pci_init_capabilities()

2020-10-02 Thread Sean V Kelley
From: Sean V Kelley Extend support for Root Complex Event Collectors by decoding and caching the RCEC Endpoint Association Extended Capabilities when enumerating. Use that cached information for later error source reporting. See PCI Express Base Specification, version 5.0-1, section 7.9.10.

[PATCH v8 06/14] PCI/ERR: Add pci_walk_bridge() to pcie_do_recovery()

2020-10-02 Thread Sean V Kelley
From: Sean V Kelley Consolidate subordinate bus checks with pci_walk_bus() into pci_walk_bridge() for walking below potentially AER affected bridges. Suggested-by: Bjorn Helgaas Signed-off-by: Sean V Kelley --- drivers/pci/pcie/err.c | 29 ++--- 1 file changed, 22

5.9-rc7 oops in nvkm_udevice_info() w/ GA100

2020-10-02 Thread dann frazier
hey, I'm seeing an Oops when nouveau loads (see below). I've verified that this is because both device->chip and device->name are NULL prior to the strncpy()s at the end of nvkm_udevice_info(). Bisect shows that this started happening after: commit 24d5ff40a732633dceab68c6559ba723784f4a68

Re: [PATCH] arm64: dts: meson: add SM1 soundcard name to VIM3L

2020-10-02 Thread Kevin Hilman
Christian Hewitt writes: >> On 2 Oct 2020, at 6:44 pm, Jerome Brunet wrote: >> >> On Fri 02 Oct 2020 at 16:16, Christian Hewitt >> wrote: >> >>> VIM3L now inherits the sound node from the VIM3 common dtsi but is >>> an SM1 device, so label it as such, and stop users blaming future >>>

Re: [PATCH v4 1/2] system_data_types.7: Add 'void *'

2020-10-02 Thread Alejandro Colomar
Hi Paul, On 2020-10-02 18:53, Paul Eggert wrote: > On 10/2/20 8:14 AM, Alejandro Colomar wrote: > >> +.I void * > > GNU style is a space between "void" and "*", so this should be '.I > "void\ *"', both here and elsewhere. The backslash prevents a line break. .I void * renders with a space in

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

2020-10-02 Thread Alan Stern
On Fri, Oct 02, 2020 at 10:08:17AM -0700, Doug Anderson wrote: > As a more similar example of single device that is listed in more than > one location in the device tree, we can also look at embedded SDIO > BT/WiFi combo cards. This single device often provides WiFi under an > SDIO bus and BT

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Grygorii Strashko
hi Saravana, On 02/10/2020 21:27, Laurent Pinchart wrote: Hi Saravana, On Fri, Oct 02, 2020 at 10:58:55AM -0700, Saravana Kannan wrote: On Fri, Oct 2, 2020 at 10:55 AM Laurent Pinchart wrote: On Fri, Oct 02, 2020 at 10:51:51AM -0700, Saravana Kannan wrote: On Fri, Oct 2, 2020 at 7:08 AM Rob

Re: [v5] mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged

2020-10-02 Thread Mike Kravetz
On 10/2/20 4:25 AM, Michal Hocko wrote: > On Wed 30-09-20 15:03:11, Mike Kravetz wrote: >> On 9/30/20 1:47 PM, Vijay Balakrishna wrote: >>> On 9/30/2020 11:20 AM, Mike Kravetz wrote: On 9/29/20 9:49 AM, Vijay Balakrishna wrote: Sorry for jumping in so late. Should we use this as an

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-10-02 Thread Sean Christopherson
On Fri, Oct 02, 2020 at 11:38:54AM -0400, Vivek Goyal wrote: > On Thu, Oct 01, 2020 at 03:33:20PM -0700, Sean Christopherson wrote: > > Alternatively, what about adding a new KVM request type to handle this? > > E.g. when the APF comes back with -EFAULT, snapshot the GFN and make a > > request.

Re: [PATCH RESEND v1] ARM: dts: meson8: remove two invalid interrupt lines from the GPU node

2020-10-02 Thread Kevin Hilman
Martin Blumenstingl writes: > Hi Kevin, > > On Mon, Aug 24, 2020 at 11:16 PM Kevin Hilman wrote: > [...] >> Applied, thanks! >> >> [1/1] ARM: dts: meson8: remove two invalid interrupt lines from the GPU node >> commit: b468412409c0e5752ad3396b147cac563ff8dd3b > this one still seems to be

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Laurent Pinchart
Hi Saravana, On Fri, Oct 02, 2020 at 10:58:55AM -0700, Saravana Kannan wrote: > On Fri, Oct 2, 2020 at 10:55 AM Laurent Pinchart wrote: > > On Fri, Oct 02, 2020 at 10:51:51AM -0700, Saravana Kannan wrote: > > > On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > > > On Thu, Oct 1, 2020 at 5:59

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Jann Horn
On Fri, Oct 2, 2020 at 4:23 PM Dmitry Vyukov wrote: > On Fri, Oct 2, 2020 at 9:54 AM Jann Horn wrote: > > On Fri, Oct 2, 2020 at 8:33 AM Jann Horn wrote: > > > On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > > > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a >

Re: [PATCH v3 00/21] spi: dw: Add full Baikal-T1 SPI Controllers support

2020-10-02 Thread Andy Shevchenko
On Fri, Oct 2, 2020 at 3:56 PM Mark Brown wrote: > On Fri, Oct 02, 2020 at 01:24:44PM +0300, Andy Shevchenko wrote: > > On Fri, Oct 02, 2020 at 01:28:08AM +0300, Serge Semin wrote: > > > > the subject. Though some of them are mere cleanups or weakly related with > > > the subject fixes, but we

Re: [PATCH v3 02/21] spi: dw: Add DWC SSI capability

2020-10-02 Thread Andy Shevchenko
On Fri, Oct 2, 2020 at 8:18 PM Serge Semin wrote: > > On Fri, Oct 02, 2020 at 01:19:29PM +0300, Andy Shevchenko wrote: > > On Fri, Oct 02, 2020 at 01:28:10AM +0300, Serge Semin wrote: > > > Currently DWC SSI core is supported by means of setting up the > > > core-specific update_cr0() callback.

Re: [PATCH v3 03/21] spi: dw: Detach SPI device specific CR0 config method

2020-10-02 Thread Andy Shevchenko
On Fri, Oct 2, 2020 at 8:47 PM Serge Semin wrote: > On Fri, Oct 02, 2020 at 01:22:46PM +0300, Andy Shevchenko wrote: > > On Fri, Oct 02, 2020 at 01:28:11AM +0300, Serge Semin wrote: > > > + /* > > > +* Update CR0 data each time the setup callback is invoked since > > > +* the device

Re: [PATCH v2 0/5] usb: dwc-meson-g12a: Add support for USB on S400 board

2020-10-02 Thread Kevin Hilman
Neil Armstrong writes: > Hi Kevin, > > On 17/09/2020 08:59, Neil Armstrong wrote: >> The Amlogic AXG is close to the GXL Glue but with a single OTG PHY. >> >> It needs the same init sequence as GXL & GXM, but it seems it doesn't need >> the host disconnect bit. >> >> The Glue driver reuses the

Re: [PATCH 1/2] mm/frame-vec: Drop gup_flags from get_vaddr_frames()

2020-10-02 Thread Tomasz Figa
On Fri, Oct 2, 2020 at 7:53 PM Daniel Vetter wrote: > > FOLL_WRITE | FOLL_FORCE is really the only reasonable thing to do for > simple dma device that can't guarantee write protection. Which is also > what all the callers are using. > > So just simplify this. > > Signed-off-by: Daniel Vetter >

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Dmitry Osipenko
02.10.2020 21:01, Nicolin Chen пишет: > On Fri, Oct 02, 2020 at 05:23:14PM +0300, Dmitry Osipenko wrote: >> 02.10.2020 09:08, Nicolin Chen пишет: >>> static struct iommu_device *tegra_smmu_probe_device(struct device *dev) >>> { >>> - struct device_node *np = dev->of_node; >>> - struct

Re: [PATCH 2/2] mm/frame-vec: use FOLL_LONGTERM

2020-10-02 Thread Daniel Vetter
On Fri, Oct 2, 2020 at 8:06 PM Jason Gunthorpe wrote: > On Fri, Oct 02, 2020 at 07:53:03PM +0200, Daniel Vetter wrote: > > For $reasons I've stumbled over this code and I'm not sure the change > > to the new gup functions in 55a650c35fea ("mm/gup: frame_vector: > > convert get_user_pages() -->

Re: [DISCUSSION PATCH 00/41] random: possible ways towards NIST SP800-90B compliance

2020-10-02 Thread Theodore Y. Ts'o
On Fri, Oct 02, 2020 at 03:39:35PM +, Van Leeuwen, Pascal wrote: > > Then your company can not contribute in Linux kernel development, as > > this is obviously not allowed by such a footer. > > > Interesting, this has never been raised as a problem until today ... > Going back through my mail

Re: [PATCH v4 2/2] Add hardware monitoring driver for Moortec MR75203 PVT controller

2020-10-02 Thread Andy Shevchenko
On Fri, Oct 02, 2020 at 09:11:35PM +0300, Andy Shevchenko wrote: > On Fri, Oct 02, 2020 at 03:04:27PM +0800, Rahul Tanwar wrote: ... > > + case hwmon_in: > > + if (attr == hwmon_in_input) > > + return 0444; > > > + return 0; > > > + default: > > > +

Re: [WARNING] kernel/rcu/tree.c:1058 rcu_irq_enter+0x15/0x20

2020-10-02 Thread Peter Zijlstra
On Fri, Oct 02, 2020 at 01:56:44PM -0400, Steven Rostedt wrote: > On Wed, 30 Sep 2020 20:13:23 +0200 > Peter Zijlstra wrote: > > > Blergh, IIRC there's header hell that way. The sane fix is killing off > > that trace_*_rcuidle() disease. > > > > But I think this will also cure it. > > I guess

Re: [PATCH v4 2/2] Add hardware monitoring driver for Moortec MR75203 PVT controller

2020-10-02 Thread Andy Shevchenko
On Fri, Oct 02, 2020 at 03:04:27PM +0800, Rahul Tanwar wrote: > PVT controller (MR75203) is used to configure & control > Moortec embedded analog IP which contains temprature > sensor(TS), voltage monitor(VM) & process detector(PD) > modules. Add hardware monitoring driver to support > MR75203 PVT

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Grygorii Strashko
On 02/10/2020 20:48, Saravana Kannan wrote: On Fri, Oct 2, 2020 at 8:03 AM 'Grygorii Strashko' via kernel-team wrote: On 02/10/2020 14:40, Grygorii Strashko wrote: On 02/10/2020 02:19, Laurent Pinchart wrote: Hi Saravana, Thank you for the patch. On Thu, Oct 01, 2020 at 03:59:51PM

[PATCH v7 0/3] Move recovery/coredump configuration to sysfs

2020-10-02 Thread Rishabh Bhatnagar
>From Android R onwards Google has restricted access to debugfs in user and user-debug builds. This restricts access to most of the features exposed through debugfs. 'Coredump' and 'Recovery' are critical interfaces that are required for remoteproc to work on Qualcomm Chipsets. This patch series

[PATCH v7 1/3] remoteproc: Change default dump configuration to "disabled"

2020-10-02 Thread Rishabh Bhatnagar
Currently "default" configuration option means coredumps are enabled. To avoid confusion rename the "default" configuration option to "enabled" and disable collection of dumps by default as doing so makes sense for production devices. Signed-off-by: Rishabh Bhatnagar ---

[PATCH v7 3/3] remoteproc: Add recovery configuration to the sysfs interface

2020-10-02 Thread Rishabh Bhatnagar
Add recovery configuration to the sysfs interface. This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 +

[PATCH v7 2/3] remoteproc: Add coredump as part of sysfs interface

2020-10-02 Thread Rishabh Bhatnagar
Add coredump as part of the sysfs interface. This will allow usage of this configuration feature in production devices where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 +

Re: [PATCH net-next v2 5/6] bonding: update Documentation for port/bond terminology

2020-10-02 Thread Andrew Lunn
On Fri, Oct 02, 2020 at 01:40:00PM -0400, Jarod Wilson wrote: > Point users to the new interface names instead of the old ones, where > appropriate. Userspace bits referenced still include use of master/slave, > but those can't be altered until userspace changes too, ideally after > these changes

Re: [PATCH ] scsi: page warning: 'page' may be used uninitialized

2020-10-02 Thread John Donnelly
> On Oct 2, 2020, at 1:01 PM, Mike Christie wrote: > > On 9/23/20 7:19 PM, john.p.donne...@oracle.com wrote: >> From: John Donnelly >> >> corrects: drivers/target/target_core_user.c:688:6: warning: 'page' may be >> used >> uninitialized >> >> Fixes: 3c58f737231e ("scsi: target: tcmu:

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:23:14PM +0300, Dmitry Osipenko wrote: > 02.10.2020 09:08, Nicolin Chen пишет: > > static struct iommu_device *tegra_smmu_probe_device(struct device *dev) > > { > > - struct device_node *np = dev->of_node; > > - struct tegra_smmu *smmu = NULL; > > - struct

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-02 Thread Rob Clark
On Fri, Oct 2, 2020 at 4:01 AM Qais Yousef wrote: > > On 09/30/20 14:17, Rob Clark wrote: > > From: Rob Clark > > > > The android userspace treats the display pipeline as a realtime problem. > > And arguably, if your goal is to not miss frame deadlines (ie. vblank), > > it is. (See

Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi"

2020-10-02 Thread Mark Brown
On Fri, Oct 02, 2020 at 10:48:32AM -0700, Stephen Boyd wrote: > Quoting Mark Brown (2020-10-02 09:03:24) > > ...and doing this in the dev_name() should help other diagnostic users > > (like dev_printk() for example). > Don't thinks like dev_printk() prefix the bus name? See >

Re: [PATCH 2/2] mm/frame-vec: use FOLL_LONGTERM

2020-10-02 Thread Jason Gunthorpe
On Fri, Oct 02, 2020 at 07:53:03PM +0200, Daniel Vetter wrote: > For $reasons I've stumbled over this code and I'm not sure the change > to the new gup functions in 55a650c35fea ("mm/gup: frame_vector: > convert get_user_pages() --> pin_user_pages()") was entirely correct. > > This here is used

Re: [PATCH] ftrace: Fix some typos in comment

2020-10-02 Thread Steven Rostedt
On Fri, 2 Oct 2020 22:31:26 +0800 Qiujun Huang wrote: > s/coorditate/coordinate/ > s/emty/empty/ > s/preeptive/preemptive/ > s/succes/success/ > s/carefule/careful/ > > Signed-off-by: Qiujun Huang > --- > kernel/trace/ftrace.c | 10 +- > 1 file changed, 5 insertions(+), 5

Re: [PATCH v2] net: qrtr: ns: Fix the incorrect usage of rcu_read_lock()

2020-10-02 Thread Doug Anderson
Hi, On Fri, Oct 2, 2020 at 10:06 AM Manivannan Sadhasivam wrote: > > The rcu_read_lock() is not supposed to lock the kernel_sendmsg() API > since it has the lock_sock() in qrtr_sendmsg() which will sleep. Hence, > fix it by excluding the locking for kernel_sendmsg(). > > While at it, let's also

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > This patch simply adds support for PCI devices. > > Signed-off-by: Nicolin Chen > --- Reviewed-by: Dmitry Osipenko

Re: [PATCH] mm: Remove src/dst mm parameter in copy_page_range()

2020-10-02 Thread Peter Xu
On Fri, Oct 02, 2020 at 02:28:58PM -0300, Jason Gunthorpe wrote: > On Fri, Oct 02, 2020 at 01:14:29PM -0400, Peter Xu wrote: > > On Fri, Oct 02, 2020 at 08:43:12AM -0300, Jason Gunthorpe wrote: > > > > -static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct > > > > *src_mm, > > > >

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Dmitry Osipenko
02.10.2020 20:45, Nicolin Chen пишет: > On Fri, Oct 02, 2020 at 05:35:24PM +0300, Dmitry Osipenko wrote: >> 02.10.2020 09:08, Nicolin Chen пишет: >>> @@ -865,7 +866,11 @@ static struct iommu_group >>> *tegra_smmu_device_group(struct device *dev) >>> group->smmu = smmu; >>> group->soc =

Re: [RFC PATCH 0/7] RAS/CEC: Extend CEC for errors count check on short time period

2020-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2020 at 06:33:17PM +0100, James Morse wrote: > > I think adding the CPU error collection to the kernel > > has the following advantages, > > 1. The CPU error collection and isolation would not be active if the > > rasdaemon stopped running or not running on a machine.

Re: [PATCH v4] block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg()

2020-10-02 Thread Jens Axboe
On 10/2/20 8:22 AM, Peilin Ye wrote: > scsi_put_cdrom_generic_arg() is copying uninitialized stack memory to > userspace, since the compiler may leave a 3-byte hole in the middle of > `cgc32`. Fix it by adding a padding field to `struct > compat_cdrom_generic_command`. Applied, thanks. -- Jens

Re: [PATCH ] scsi: page warning: 'page' may be used uninitialized

2020-10-02 Thread Mike Christie
On 9/23/20 7:19 PM, john.p.donne...@oracle.com wrote: > From: John Donnelly > > corrects: drivers/target/target_core_user.c:688:6: warning: 'page' may be used > uninitialized > > Fixes: 3c58f737231e ("scsi: target: tcmu: Optimize use of > flush_dcache_page") > > To: linux-s...@vger.kernel.org

Re: [PATCH v2 0/6] kselftest: arm64/mte: Tests for user-space MTE

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 05:26:24PM +0530, Amit Daniel Kachhap wrote: > Amit Daniel Kachhap (6): > kselftest/arm64: Add utilities and a test to validate mte memory > kselftest/arm64: Verify mte tag inclusion via prctl > kselftest/arm64: Check forked child mte memory accessibility >

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Saravana Kannan
On Fri, Oct 2, 2020 at 10:55 AM Laurent Pinchart wrote: > > Hi Saravana, > > On Fri, Oct 02, 2020 at 10:51:51AM -0700, Saravana Kannan wrote: > > On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > > On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan > > > wrote: > > > > > > > > When commit

Re: [WARNING] kernel/rcu/tree.c:1058 rcu_irq_enter+0x15/0x20

2020-10-02 Thread Steven Rostedt
On Wed, 30 Sep 2020 20:13:23 +0200 Peter Zijlstra wrote: > Blergh, IIRC there's header hell that way. The sane fix is killing off > that trace_*_rcuidle() disease. > > But I think this will also cure it. I guess you still don't build modules ;-). I had to add a EXPORT_SYMBOL(lockdep_recursion)

Re: [kbuild-all] Re: [PATCH] mm: memcg/slab: fix slab statistics in !SMP configuration

2020-10-02 Thread Roman Gushchin
On Fri, Oct 02, 2020 at 01:34:06PM +0800, Philip Li wrote: > On Thu, Oct 01, 2020 at 05:55:59PM -0700, Roman Gushchin wrote: > > On Fri, Oct 02, 2020 at 08:08:40AM +0800, kbuild test robot wrote: > > > Hi Roman, > > > > > > Thank you for the patch! Yet something to improve: > > > > > > [auto

Re: [PATCH 1/1] docs: admin-guide: fdt and initrd load in EFI stub

2020-10-02 Thread Heinrich Schuchardt
On 02.10.20 19:21, Ard Biesheuvel wrote: > Hi Heinrich, > > Thanks for documenting this. > > > On Fri, 2 Oct 2020 at 19:11, Heinrich Schuchardt wrote: >> >> Describe how a device tree and an initial RAM disk can be passed to the EFI >> Boot Stub. >> >> Signed-off-by: Heinrich Schuchardt >> ---

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-02 Thread Rob Clark
On Fri, Oct 2, 2020 at 4:05 AM Ville Syrjälä wrote: > > On Fri, Oct 02, 2020 at 01:52:56PM +0300, Ville Syrjälä wrote: > > On Thu, Oct 01, 2020 at 05:25:55PM +0200, Daniel Vetter wrote: > > > On Thu, Oct 1, 2020 at 5:15 PM Rob Clark wrote: > > > > > > > > On Thu, Oct 1, 2020 at 12:25 AM Daniel

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Laurent Pinchart
Hi Saravana, On Fri, Oct 02, 2020 at 10:51:51AM -0700, Saravana Kannan wrote: > On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan wrote: > > > > > > When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when > > > adding all top level

[PATCH 1/2] mm/frame-vec: Drop gup_flags from get_vaddr_frames()

2020-10-02 Thread Daniel Vetter
FOLL_WRITE | FOLL_FORCE is really the only reasonable thing to do for simple dma device that can't guarantee write protection. Which is also what all the callers are using. So just simplify this. Signed-off-by: Daniel Vetter Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park

[PATCH 2/2] mm/frame-vec: use FOLL_LONGTERM

2020-10-02 Thread Daniel Vetter
For $reasons I've stumbled over this code and I'm not sure the change to the new gup functions in 55a650c35fea ("mm/gup: frame_vector: convert get_user_pages() --> pin_user_pages()") was entirely correct. This here is used for long term buffers (not just quick I/O) like RDMA, and John notes this

Re: Linux 5.9-rc7 / VmallocTotal wrongly reported | Patch OK

2020-10-02 Thread Roman Gushchin
On Fri, Oct 02, 2020 at 09:01:14AM +0200, Bastian Bittorf wrote: > On Thu, Oct 01, 2020 at 01:39:31PM -0700, Roman Gushchin wrote: > > > # Processor type and features > > > # > > > # CONFIG_ZONE_DMA is not set > > > # CONFIG_SMP is not set > > > > Yes, here is the deal. > > > > The SMP-version

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Saravana Kannan
On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan wrote: > > > > When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when > > adding all top level devices") optimized the fwnode parsing when all top > > level devices are added, it

Re: [PATCH] mm: optionally disable brk()

2020-10-02 Thread David Hildenbrand
On 02.10.20 19:19, Topi Miettinen wrote: > The brk() system call allows to change data segment size (heap). This > is mainly used by glibc for memory allocation, but it can use mmap() > and that results in more randomized memory mappings since the heap is > always located at fixed offset to

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:35:24PM +0300, Dmitry Osipenko wrote: > 02.10.2020 09:08, Nicolin Chen пишет: > > @@ -865,7 +866,11 @@ static struct iommu_group > > *tegra_smmu_device_group(struct device *dev) > > group->smmu = smmu; > > group->soc = soc; > > > > - group->group =

Re: [RFC PATCH v1 15/26] docs: reporting-bugs: make readers test mainline, but leave a loophole

2020-10-02 Thread Randy Dunlap
On 10/1/20 1:39 AM, Thorsten Leemhuis wrote: > Now that the document described all preparatory steps tell users to > install the latest kernel. Try pretty hard to motivate them installing a > mainline kernel, as that is best for reporting issues. Mention the > latest stable kernel as an acceptable

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

2020-10-02 Thread Tomasz Figa
Hi Christoph, On Wed, Sep 30, 2020 at 06:09:17PM +0200, Christoph Hellwig wrote: > 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

[GIT PULL] io_uring fixes for 5.9-rc

2020-10-02 Thread Jens Axboe
Hi Linus, - Fix for async buffered reads if read-ahead is fully disabled (Hao) - double poll match fix - ->show_fdinfo() potential ABBA deadlock complaint fix Please pull! The following changes since commit f38c7e3abfba9a9e180b34f642254c43782e7ffe: io_uring: ensure async buffered

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Saravana Kannan
On Fri, Oct 2, 2020 at 8:03 AM 'Grygorii Strashko' via kernel-team wrote: > > > > On 02/10/2020 14:40, Grygorii Strashko wrote: > > > > > > On 02/10/2020 02:19, Laurent Pinchart wrote: > >> Hi Saravana, > >> > >> Thank you for the patch. > >> > >> On Thu, Oct 01, 2020 at 03:59:51PM -0700,

Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi"

2020-10-02 Thread Stephen Boyd
Quoting Mark Brown (2020-10-02 09:03:24) > On Thu, Oct 01, 2020 at 05:45:00PM -0700, David Collins wrote: > > > The SPMI regmap debugfs files are used extensively for testing and debug > > purposes internally at Qualcomm and by our customers. It would be helpful > > if the more verbose naming

Re: [PATCH v3 03/21] spi: dw: Detach SPI device specific CR0 config method

2020-10-02 Thread Serge Semin
On Fri, Oct 02, 2020 at 01:22:46PM +0300, Andy Shevchenko wrote: > On Fri, Oct 02, 2020 at 01:28:11AM +0300, Serge Semin wrote: > > Indeed there is no point in detecting the SPI peripheral device parameters > > and initializing the CR0 register fields each time an SPI transfer is > > executed.

[PATCH v5 16/16] test_firmware: Test partial read support

2020-10-02 Thread Kees Cook
From: Scott Branden Add additional hooks to test_firmware to pass in support for partial file read using request_firmware_into_buf(): buf_size: size of buffer to request firmware into partial: indicates that a partial file request is being made file_offset: to indicate

Re: [git pull] epoll fixes

2020-10-02 Thread Linus Torvalds
On Fri, Oct 2, 2020 at 10:20 AM Al Viro wrote: > > Several race fixes in epoll. Fudge. I screwed up the commit message due to a cut-and-paste error (don't ask - sometimes google chrome and gnome-terminal seem to stop agreeing about the normal X paste buffer) And I extra stupidly pushed

Re: [PATCH v2 4/4] arm: dts: add 8devices Habanero DVK

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > 8devices Habanero DVK is a dual-band SoM development kit based on Qualcomm > IPQ4019 + QCA8075 platform. > > Specs are: > CPU: QCA IPQ4019 > RAM: DDR3L 512MB > Storage: 32MB SPI-NOR and optional Parallel SLC NAND(Some boards ship with it >

[PATCH net-next v2 5/6] bonding: update Documentation for port/bond terminology

2020-10-02 Thread Jarod Wilson
Point users to the new interface names instead of the old ones, where appropriate. Userspace bits referenced still include use of master/slave, but those can't be altered until userspace changes too, ideally after these changes propagate to the community at large. Cc: Jay Vosburgh Cc: Veaceslav

[PATCH net-next v2 4/6] bonding: rename bonding_sysfs_slave.c to _port.c

2020-10-02 Thread Jarod Wilson
Now that use of "slave" has been replaced by "port", rename this file too. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Thomas Davis Cc: net...@vger.kernel.org Signed-off-by: Jarod Wilson --- drivers/net/bonding/Makefile

[PATCH net-next v2 6/6] bonding: make Kconfig toggle to disable legacy interfaces

2020-10-02 Thread Jarod Wilson
By default, enable retaining all user-facing API that includes the use of master and slave, but add a Kconfig knob that allows those that wish to remove it entirely do so in one shot. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: "David S. Miller" Cc: Jakub Kicinski Cc:

[PATCH net-next v2 2/6] bonding: replace use of the term master where possible

2020-10-02 Thread Jarod Wilson
Simply refer to what was the bonding "master" as the "bond" or bonding device, depending on context. However, do retain compat code for the bonding_masters sysfs interface to avoid breaking userspace. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: "David S. Miller" Cc: Jakub

Re: [PATCH v2 2/4] arm: dts: add 8devices Jalapeno

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > 8devices Jalapeno is a dual-band SoM, based on Qualcomm > IPQ4018 + QCA8072 platform. > > Specification: > QCA IPQ4018, Quad core ARM v7 Cortex A7 717MHz > 256 MB of DDR3 RAM > 8 MB of SPI NOR flash > 128 MB of Winbond SPI NAND flash > WLAN1:

[PATCH net-next v2 0/6] bonding: rename bond components

2020-10-02 Thread Jarod Wilson
The bonding driver's use of master and slave, while largely understood in technical circles, poses a barrier for inclusion to some potential members of the development and user community, due to the historical context of masters and slaves, particularly in the United States. This is a first full

Re: [PATCH v2 3/4] arm: dts: add Alfa Network AP120C-AC

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > ALFA Network AP120C-AC is a dual-band ceiling AP, based on Qualcomm > IPQ4018 + QCA8075 platform. > > Specification: > > - Qualcomm IPQ4018 (717 MHz) > - 256 MB of RAM (DDR3) > - 16 MB (SPI NOR) + 128 or 512 MB (SPI NAND) of flash > - 2x Gbps

[PATCH net-next v2 1/6] bonding: rename 802.3ad's struct port to ad_port

2020-10-02 Thread Jarod Wilson
The intention is to reuse "port" in place of "slave" in the bonding driver after making this change, as port is consistent with the bridge and team drivers, and allows us to remove socially problematic language from the bonding driver. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek

[PATCH v5 05/16] fs/kernel_read_file: Remove redundant size argument

2020-10-02 Thread Kees Cook
In preparation for refactoring kernel_read_file*(), remove the redundant "size" argument which is not needed: it can be included in the return code, with callers adjusted. (VFS reads already cannot be larger than INT_MAX.) Signed-off-by: Kees Cook Reviewed-by: Mimi Zohar Reviewed-by: Luis

Re: [PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-02 Thread Doug Anderson
Hi, On Fri, Oct 2, 2020 at 9:40 AM Lukasz Luba wrote: > > On 10/2/20 4:47 PM, Doug Anderson wrote: > > Hi, > > > > On Fri, Oct 2, 2020 at 8:13 AM Lukasz Luba wrote: > >> > >> Hi Doug, > >> > >> On 10/2/20 3:31 PM, Doug Anderson wrote: > >>> Hi, > >>> > >>> On Fri, Oct 2, 2020 at 4:45 AM Lukasz

[PATCH v5 08/16] LSM: Introduce kernel_post_load_data() hook

2020-10-02 Thread Kees Cook
There are a few places in the kernel where LSMs would like to have visibility into the contents of a kernel buffer that has been loaded or read. While security_kernel_post_read_file() (which includes the buffer) exists as a pairing for security_kernel_read_file(), no such hook exists to pair with

[PATCH v5 03/16] fs/kernel_read_file: Split into separate include file

2020-10-02 Thread Kees Cook
From: Scott Branden Move kernel_read_file* out of linux/fs.h to its own linux/kernel_read_file.h include file. That header gets pulled in just about everywhere and doesn't really need functions not related to the general fs interface. Suggested-by: Christoph Hellwig Signed-off-by: Scott

Re: [PATCH][next] net: phy: dp83869: fix unsigned comparisons against less than zero values

2020-10-02 Thread Andrew Lunn
On Fri, Oct 02, 2020 at 12:26:49PM -0500, Dan Murphy wrote: > Colin > > On 10/2/20 11:54 AM, Colin King wrote: > > From: Colin Ian King > > > > Currently the comparisons of u16 integers value and sopass_val with > > less than zero for error checking is always false because the values > > are

[PATCH v5 12/16] IMA: Add support for file reads without contents

2020-10-02 Thread Kees Cook
From: Scott Branden When the kernel_read_file LSM hook is called with contents=false, IMA can appraise the file directly, without requiring a filled buffer. When such a buffer is available, though, IMA can continue to use it instead of forcing a double read here. Signed-off-by: Scott Branden

[PATCH v5 06/16] fs/kernel_read_file: Switch buffer size arg to size_t

2020-10-02 Thread Kees Cook
In preparation for further refactoring of kernel_read_file*(), rename the "max_size" argument to the more accurate "buf_size", and correct its type to size_t. Add kerndoc to explain the specifics of how the arguments will be used. Note that with buf_size now size_t, it can no longer be negative

[PATCH v5 07/16] fs/kernel_read_file: Add file_size output argument

2020-10-02 Thread Kees Cook
In preparation for adding partial read support, add an optional output argument to kernel_read_file*() that reports the file size so callers can reason more easily about their reading progress. Signed-off-by: Kees Cook Reviewed-by: Mimi Zohar Reviewed-by: Luis Chamberlain Reviewed-by: James

[PATCH v5 02/16] fs/kernel_read_file: Remove FIRMWARE_EFI_EMBEDDED enum

2020-10-02 Thread Kees Cook
The "FIRMWARE_EFI_EMBEDDED" enum is a "where", not a "what". It should not be distinguished separately from just "FIRMWARE", as this confuses the LSMs about what is being loaded. Additionally, there was no actual validation of the firmware contents happening. Fixes: e4c2c0ff00ec ("firmware: Add

[PATCH v5 01/16] fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enum

2020-10-02 Thread Kees Cook
FIRMWARE_PREALLOC_BUFFER is a "how", not a "what", and confuses the LSMs that are interested in filtering between types of things. The "how" should be an internal detail made uninteresting to the LSMs. Fixes: a098ecd2fa7d ("firmware: support loading into a pre-allocated buffer") Fixes:

Re: [PATCH v2 1/4] arm: dts: qcom: ipq4019: add more labels

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > Lets add labels to more commonly used nodes for easier modification in board > DTS files. > > Signed-off-by: Robert Marko > Cc: Luka Perkov > --- > Changes since v1: > * Drop include that does not exist > >

Re: [PATCH v8] ARM: dts: qcom: ipq4019: add USB devicetree nodes

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 6:38 PM Robert Marko wrote: > > From: John Crispin > > Since we now have driver for the USB PHY, and USB controller is already > supported by the DWC3 driver lets add the necessary nodes to DTSI. > > Signed-off-by: John Crispin > Signed-off-by: Robert Marko > Cc: Luka

[PATCH v5 11/16] LSM: Add "contents" flag to kernel_read_file hook

2020-10-02 Thread Kees Cook
As with the kernel_load_data LSM hook, add a "contents" flag to the kernel_read_file LSM hook that indicates whether the LSM can expect a matching call to the kernel_post_read_file LSM hook with the full contents of the file. With the coming addition of partial file read support for

[PATCH v5 15/16] firmware: Add request_partial_firmware_into_buf()

2020-10-02 Thread Kees Cook
From: Scott Branden Add request_partial_firmware_into_buf() to allow for portions of a firmware file to be read into a buffer. This is needed when large firmware must be loaded in portions from a file on memory constrained systems. Signed-off-by: Scott Branden Co-developed-by: Kees Cook

[PATCH v5 10/16] module: Call security_kernel_post_load_data()

2020-10-02 Thread Kees Cook
Now that there is an API for checking loaded contents for modules loaded without a file, call into the LSM hooks. Signed-off-by: Kees Cook Reviewed-by: KP Singh Acked-by: Jessica Yu --- kernel/module.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git

[PATCH v5 09/16] firmware_loader: Use security_post_load_data()

2020-10-02 Thread Kees Cook
Now that security_post_load_data() is wired up, use it instead of the NULL file argument style of security_post_read_file(), and update the security_kernel_load_data() call to indicate that a security_kernel_post_load_data() call is expected. Wire up the IMA check to match earlier logic. Perhaps

[PATCH v5 04/16] fs/kernel_read_file: Split into separate source file

2020-10-02 Thread Kees Cook
These routines are used in places outside of exec(2), so in preparation for refactoring them, move them into a separate source file, fs/kernel_read_file.c. Signed-off-by: Kees Cook Reviewed-by: Mimi Zohar Reviewed-by: Luis Chamberlain Acked-by: Scott Branden --- fs/Makefile | 3

[PATCH v5 14/16] firmware: Store opt_flags in fw_priv

2020-10-02 Thread Kees Cook
Instead of passing opt_flags around so much, store it in the private structure so it can be examined by internals without needing to add more arguments to functions. Co-developed-by: Scott Branden Signed-off-by: Scott Branden Signed-off-by: Kees Cook ---

[PATCH v5 13/16] fs/kernel_file_read: Add "offset" arg for partial reads

2020-10-02 Thread Kees Cook
To perform partial reads, callers of kernel_read_file*() must have a non-NULL file_size argument and a preallocated buffer. The new "offset" argument can then be used to seek to specific locations in the file to fill the buffer to, at most, "buf_size" per call. Where possible, the LSM hooks can

Re: [PATCH] arm: dts: IPQ4019: add SDHCI VQMMC LDO node

2020-10-02 Thread Robert Marko
On Mon, Sep 7, 2020 at 12:19 PM Robert Marko wrote: > > Since we now have driver for the SDHCI VQMMC LDO needed > for I/0 voltage levels lets introduce the necessary node for it. > > Signed-off-by: Robert Marko > Cc: Luka Perkov > --- > arch/arm/boot/dts/qcom-ipq4019.dtsi | 10 ++ > 1

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