[PATCH v2 1/4] dt-bindings: bus: Add Baikal-T1 AXI-bus binding

2020-05-07 Thread Serge Semin
AXI3-bus is the main communication bus connecting all high-speed peripheral IP-cores with RAM controller and with MIPS P5600 cores on Baikal-T1 SoC. This binding describes the DW AMBA 3 AXI Inteconnect and Errors Handler Block synthesized on top of it, which are responsible for the AXI-bus traffic

[PATCH v2 3/4] bus: Add Baikal-T1 AXI-bus driver

2020-05-07 Thread Serge Semin
AXI3-bus is the main communication bus connecting all high-speed peripheral IP-cores with RAM controller and MIPS P5600 cores on Baikal-T1 SoC. Bus traffic arbitration is done by means of DW AMBA 3 AXI Interconnect (so called AXI Main Interconnect) routing IO requests from one SoC block to

[PATCH v2 2/4] dt-bindings: bus: Add Baikal-T1 APB-bus binding

2020-05-07 Thread Serge Semin
Baikal-T1 CPU or DMAC MMIO requests are handled by the AMBA 3 AXI Interconnect which routes them to the AXI-APB bridge, which in turn serializes accesses and routes them to the corresponding APB slave device. This binding describes the AXI-APB bridge considered as the APB-bus. It is supposed to be

[PATCH v2 0/4] bus: Add Baikal-T1 SoC APB/AXI bus drivers

2020-05-07 Thread Serge Semin
Baikal-T1 SoC CPU is based on two MIPS Warrior P5600 cores. Their main memory Non-Coherent IO interface is connected to the OCP2AXI bridge, which in turn is then connected to the DW AMBA 3 AXI Interconnect (so called Main Interconnect) with nine masters and four slaves ports. Main Interconnect is

[PATCH v2 4/4] bus: Add Baikal-T1 APB-bus driver

2020-05-07 Thread Serge Semin
Baikal-T1 AXI-APB bridge is used to access the SoC subsystem CSRs. IO requests are routed to this bus by means of the DW AMBA 3 AXI Interconnect. In case if an attempted APB transaction stays with no response for a pre-defined time an interrupt occurs and the bus gets freed for a next operation.

Re: [PATCH 2/4] usb: typec: mux: intel_pmc_mux: Support for static SBU/HSL orientation

2020-05-07 Thread Prashant Malani
Hi Heikki, Thanks for the patches. On Thu, May 07, 2020 at 06:08:58PM +0300, Heikki Krogerus wrote: > The SBU and HSL orientation may be fixed/static from the mux > PoW. Apparently the retimer may take care of the orientation > of these lines. Handling the static SBU (AUX) and HSL > orientation

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-07 Thread Haitao Huang
On Thu, 07 May 2020 14:34:59 -0500, Sean Christopherson wrote: On Thu, May 07, 2020 at 12:49:15PM -0400, Nathaniel McCallum wrote: On Thu, May 7, 2020 at 1:03 AM Haitao Huang wrote: > > On Wed, 06 May 2020 17:14:22 -0500, Sean Christopherson > wrote: > > > On Wed, May 06, 2020 at

Re: [PATCH v2 0/3] vfio-pci: Block user access to disabled device MMIO

2020-05-07 Thread Alex Williamson
On Thu, 7 May 2020 17:59:08 -0400 Peter Xu wrote: > On Tue, May 05, 2020 at 03:54:36PM -0600, Alex Williamson wrote: > > v2: > > > > Locking in 3/ is substantially changed to avoid the retry scenario > > within the fault handler, therefore a caller who does not allow retry > > will no longer

Re: [PATCH v2 8/9] KVM: x86, SVM: isolate vcpu->arch.dr6 from vmcb->save.dr6

2020-05-07 Thread Paolo Bonzini
On 07/05/20 21:28, Peter Xu wrote: >> -svm->vcpu.arch.dr6 = dr6; >> +WARN_ON(svm->vcpu.arch.switch_db_regs & KVM_DEBUGREG_WONT_EXIT); >> +svm->vcpu.arch.dr6 &= ~(DR_TRAP_BITS | DR6_RTM); >> +svm->vcpu.arch.dr6 |= dr6 & ~DR6_FIXED_1; > I failed to figure out what the above

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-07 Thread Haitao Huang
On Thu, 07 May 2020 11:49:15 -0500, Nathaniel McCallum wrote: On Thu, May 7, 2020 at 1:03 AM Haitao Huang wrote: On Wed, 06 May 2020 17:14:22 -0500, Sean Christopherson wrote: > On Wed, May 06, 2020 at 05:42:42PM -0400, Nathaniel McCallum wrote: >> Tested on Enarx. This requires a

Re: [PATCH 5/7] mm: move zone iterator outside of deferred_init_maxorder()

2020-05-07 Thread Daniel Jordan
On Thu, May 07, 2020 at 02:18:42PM -0700, Alexander Duyck wrote: > The idea behind merging ranges it to address possible cases where a > range is broken up such that there is a hole in a max order block as a > result. Gah, yes, you're right, there could be multiple ranges in a max order block, so

Re: [PATCH] x86: bitops: fix build regression

2020-05-07 Thread Nick Desaulniers
On Thu, May 7, 2020 at 12:19 PM Nick Desaulniers wrote: > > On Thu, May 7, 2020 at 7:00 AM Brian Gerst wrote: > > > > This change will make sparse happy and allow these cleanups: > > #define CONST_MASK(nr) ((u8)1 << ((nr) & 7)) > > yep, this is more elegant, IMO. Will send a v3

Re: [PATCH] mm: vmscan: consistent update to pgsteal and pgscan

2020-05-07 Thread Roman Gushchin
On Thu, May 07, 2020 at 01:49:13PM -0700, Shakeel Butt wrote: > One way to measure the efficiency of memory reclaim is to look at the > ratio (pgscan+pfrefill)/pgsteal. However at the moment these stats are > not updated consistently at the system level and the ratio of these are > not very

Re: [PATCH 1/1] Smack:- Remove redundant inode_smack cache since now new cache is being used for inode_smack structure allocations

2020-05-07 Thread Casey Schaufler
On 4/26/2020 9:12 PM, Vishal Goel wrote: > Signed-off-by: Vishal Goel I've taken this after adding a commit message. Please include a commit message, even if you believe the "subject line says it all" in the future. > --- > security/smack/smack_lsm.c | 9 + > 1 file changed, 1

Re: [PATCH v3 06/19] mm: memcg/slab: obj_cgroup API

2020-05-07 Thread Roman Gushchin
On Thu, May 07, 2020 at 05:03:14PM -0400, Johannes Weiner wrote: > On Wed, Apr 22, 2020 at 01:46:55PM -0700, Roman Gushchin wrote: > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -257,6 +257,78 @@ struct cgroup_subsys_state *vmpressure_to_css(struct > > vmpressure *vmpr) > > } > > >

Re: [PATCH v2] kernel: add panic_on_taint

2020-05-07 Thread Luis Chamberlain
On Thu, May 07, 2020 at 06:06:06PM -0400, Rafael Aquini wrote: > On Thu, May 07, 2020 at 08:33:40PM +, Luis Chamberlain wrote: > > I *think* that a cmdline route to enable this would likely remove the > > need for the kernel config for this. But even with Vlastimil's work > > merged, I think

Re: [PATCH] fs/io_uring: fix O_PATH fds in openat, openat2, statx

2020-05-07 Thread Jens Axboe
On 5/7/20 4:06 PM, Al Viro wrote: > On Thu, May 07, 2020 at 02:53:30PM -0600, Jens Axboe wrote: > >> I think the patch is correct as-is, I took a good look at how we're >> currently handling it. None of those three ops should fiddle with >> the fd at all, and all of them do forbid the use of

Re: [PATCH v4 00/11] livepatch,module: Remove .klp.arch and module_disable_ro()

2020-05-07 Thread Jiri Kosina
On Wed, 29 Apr 2020, Josh Poimboeuf wrote: > v4: > - Fixed rebase bisection regression [Miroslav] > - Made module_enable_ro() static [Jessica] > - Added Acked-by's > > v3: > - klp: split klp_write_relocations() into object/section specific > functions [joe] > - s390: fix plt/got writes [joe] >

Re: [PATCH v2 2/3] vfio-pci: Fault mmaps to enable vma tracking

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 04:03:34PM -0600, Alex Williamson wrote: > On Thu, 7 May 2020 17:47:44 -0400 > Peter Xu wrote: > > > Hi, Alex, > > > > On Tue, May 05, 2020 at 03:54:53PM -0600, Alex Williamson wrote: > > > +/* > > > + * Zap mmaps on open so that we can fault them in on access and

[PATCH] umh: fix memory leak on execve failure

2020-05-07 Thread Vincent Minet
If a UMH process created by fork_usermode_blob() fails to execute, a pair of struct file allocated by umh_pipe_setup() will leak. Under normal conditions, the caller (like bpfilter) needs to manage the lifetime of the UMH and its two pipes. But when fork_usermode_blob() fails, the caller doesn't

Re: [PATCH] kernel: add panic_on_taint

2020-05-07 Thread Rafael Aquini
On Thu, May 07, 2020 at 06:05:27PM -0400, Qian Cai wrote: > > > > On May 7, 2020, at 4:42 PM, Rafael Aquini wrote: > > > > On Wed, May 06, 2020 at 10:50:19PM -0400, Qian Cai wrote: > >> > >> > >>> On May 6, 2020, at 6:28 PM, Rafael Aquini wrote: > >>> > >>> Analogously to the introduction

Re: [PATCH v2 7/9] KVM: SVM: keep DR6 synchronized with vcpu->arch.dr6

2020-05-07 Thread Paolo Bonzini
On 07/05/20 20:22, Peter Xu wrote: >> -svm->vmcb->save.dr6 = nested_vmcb->save.dr6; >> +svm->vcpu.arch.dr6 = nested_vmcb->save.dr6; > The rest looks very sane to me, but here I failed to figure out how arch.dr6 > finally applied to save.dr6. I saw it is applied in svm_vcpu_run() in the

Re: [PATCH v3] PCI/ASPM: Enable ASPM for bridge-to-bridge link

2020-05-07 Thread Bjorn Helgaas
On Wed, May 06, 2020 at 01:34:21AM +0800, Kai-Heng Feng wrote: > The TI PCIe-to-PCI bridge prevents the Intel SoC from entering power > state deeper than PC3 due to disabled ASPM, consumes lots of unnecessary > power. On Windows ASPM L1 is enabled on the device and its upstream > bridge, so it can

Re: [PATCH 3/3] mm/swapfile.c: count won't be bigger than SWAP_MAP_MAX

2020-05-07 Thread Wei Yang
On Wed, May 06, 2020 at 04:22:54PM +0800, Huang, Ying wrote: >Wei Yang writes: > >> On Fri, May 01, 2020 at 03:48:53PM -0700, Andrew Morton wrote: >>>On Fri, 1 May 2020 01:52:59 + Wei Yang >>>wrote: >>> When the condition is true, there are two possibilities: >>> >>>I'm struggling

[tip:x86/timers] BUILD SUCCESS cec5f268cd02d25d2d74807843d8ae0292fe0fb7

2020-05-07 Thread kbuild test robot
randconfig-a005-20200507 i386 randconfig-a004-20200507 i386 randconfig-a001-20200507 i386 randconfig-a002-20200507 i386 randconfig-a003-20200507 i386 randconfig-a006-20200507 x86_64 randconfig-a015

Re: [PATCH v4 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-05-07 Thread Mathieu Poirier
On Fri, Apr 24, 2020 at 10:36:10AM -0700, Ben Levinsky wrote: > R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this > remotproc driver, we can boot the R5 sub-system in different > configurations. > > Acked-by: Stefano Stabellini > Acked-by: Ben Levinsky > Reviewed-by: Radhey Shyam

[tip:x86/platform] BUILD SUCCESS 2981cf836127c2d2d68399d456d2c22688d520b2

2020-05-07 Thread kbuild test robot
allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20200507 x86_64 randconfig-a006-20200507 x86_64 randconfig-a002-20200507 i386 randconfig-a005-20200507 i386 randconfig-a004-20200507

Re: [PATCH] kernel: add panic_on_taint

2020-05-07 Thread Qian Cai
> On May 7, 2020, at 4:42 PM, Rafael Aquini wrote: > > On Wed, May 06, 2020 at 10:50:19PM -0400, Qian Cai wrote: >> >> >>> On May 6, 2020, at 6:28 PM, Rafael Aquini wrote: >>> >>> Analogously to the introduction of panic_on_warn, this patch >>> introduces a kernel option named

Re: [PATCH] fs/io_uring: fix O_PATH fds in openat, openat2, statx

2020-05-07 Thread Al Viro
On Thu, May 07, 2020 at 02:53:30PM -0600, Jens Axboe wrote: > I think the patch is correct as-is, I took a good look at how we're > currently handling it. None of those three ops should fiddle with > the fd at all, and all of them do forbid the use of fixed files (the > descriptor table

[PATCH] platform/x86: asus_wmi: remove redundant initialization of variable status

2020-05-07 Thread Colin King
From: Colin Ian King The variable status is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH v2] kernel: add panic_on_taint

2020-05-07 Thread Rafael Aquini
On Thu, May 07, 2020 at 08:33:40PM +, Luis Chamberlain wrote: > On Thu, May 07, 2020 at 02:47:05PM -0400, Rafael Aquini wrote: > > On Thu, May 07, 2020 at 02:43:16PM -0400, Rafael Aquini wrote: > > > On Thu, May 07, 2020 at 06:22:57PM +, Luis Chamberlain wrote: > > > > On Thu, May 07, 2020

[PATCH v3] perf c2c: fix '-e list'

2020-05-07 Thread Ian Rogers
When the event is passed as list, the default events should be listed as per 'perf mem record -e list'. Previous behavior is: $ perf c2c record -e list failed: event 'list' not found, use '-e list' to get list of available events Usage: perf c2c record [] [] or: perf c2c record [] -- []

Re: [PATCH net 11/16] net: ethernet: marvell: mvneta: fix fixed-link phydev leaks

2020-05-07 Thread Naresh Kamboju
On Thu, 7 May 2020 at 16:43, Greg Kroah-Hartman wrote: > > > > > > > Greg, 3f65047c853a ("of_mdio: add helper to deregister fixed-link > > > PHYs") needs to be backported as well for these. > > > > > > Original series can be found here: > > > > > > > > >

[PATCH] ASoC: Intel: Boards: Support headset button function for nau88l25max and nau88l25ssm

2020-05-07 Thread Radoslaw Biernacki
Map the buttons from the Android reference headset to KEY_PLAYPAUSE, KEY_VOICECOMMAND, KEY_VOLUMEUP, and KEY_VOLUMEDOWN. KEY_PLAYPAUSE is used instead of KEY_MEDIA for BTN_0 as it is more logical and have much broader userspace support. Like Chrome OS use it to play/pause of video and audio.

Re: [PATCH v2 2/3] vfio-pci: Fault mmaps to enable vma tracking

2020-05-07 Thread Alex Williamson
On Thu, 7 May 2020 17:47:44 -0400 Peter Xu wrote: > Hi, Alex, > > On Tue, May 05, 2020 at 03:54:53PM -0600, Alex Williamson wrote: > > +/* > > + * Zap mmaps on open so that we can fault them in on access and therefore > > + * our vma_list only tracks mappings accessed since last zap. > > + */ >

[PATCH] media: dvb-frontends: remove redundant initialization of variable status

2020-05-07 Thread Colin King
From: Colin Ian King The variable status is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[PATCH] mm, compaction: Indicate when compaction is manually triggered by sysctl

2020-05-07 Thread Guilherme G. Piccoli
Currently we have no way to determine if compaction was triggered by sysctl write, but this is an interesting information to have, specially in systems with high uptime that presents lots of fragmented memory. There's no statistic indicating if compaction was triggered manually or ran by Linux

[RFC 0/3] Re-introduce TX FIFO resize for larger EP bursting

2020-05-07 Thread Wesley Cheng
Currently, there is no functionality to allow for resizing the TXFIFOs, and relying on the HW default setting for the TXFIFO depth. In most cases, the HW default is probably sufficient, but for USB compositions that contain multiple functions that require EP bursting, the default settings might

[RFC 2/3] arm64: boot: dts: qcom: sm8150: Enable dynamic TX FIFO resize logic

2020-05-07 Thread Wesley Cheng
Enable the flexible TX FIFO resize logic on SM8150. Using a larger TX FIFO SZ can help account for situations when system latency is greater than the USB bus transmission latency. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 1 + 1 file changed, 1 insertion(+) diff

[RFC 1/3] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2020-05-07 Thread Wesley Cheng
Some devices have USB compositions which may require multiple endpoints that support EP bursting. HW defined TX FIFO sizes may not always be sufficient for these compositions. By utilizing flexible TX FIFO allocation, this allows for endpoints to request the required FIFO depth to achieve higher

[RFC 3/3] dt-bindings: usb: dwc3: Add entry for tx-fifo-resize

2020-05-07 Thread Wesley Cheng
Re-introduce the comment for the tx-fifo-resize setting for the DWC3 controller. Signed-off-by: Wesley Cheng --- Documentation/devicetree/bindings/usb/dwc3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt

[PATCH v2] usb: typec: tps6598x: Add USB role switching logic

2020-05-07 Thread Bryan O'Donoghue
This patch adds USB role switch support to the tps6598x. The setup to initiate or accept a data-role switch is both assumed and currently required to be baked-into the firmware as described in TI's document here. Link: https://www.ti.com/lit/an/slva843a/slva843a.pdf With this change its

[PATCH v2 0/1] Add USB role switch to tps6598x

2020-05-07 Thread Bryan O'Donoghue
V2: - Updates the git commit to include a link to the TI document which describes firmware configuration - Andy - Pads out the description a bit to include information on baking the data-role into the firmware with the referenced utility. V1: This patch - adds USB role switching to the TI

Re: [PATCH v2 0/3] vfio-pci: Block user access to disabled device MMIO

2020-05-07 Thread Peter Xu
On Tue, May 05, 2020 at 03:54:36PM -0600, Alex Williamson wrote: > v2: > > Locking in 3/ is substantially changed to avoid the retry scenario > within the fault handler, therefore a caller who does not allow retry > will no longer receive a SIGBUS on contention. IOMMU invalidations > are still

Re: [PATCH] audit: Replace zero-length array with flexible-array

2020-05-07 Thread Richard Guy Briggs
On 2020-05-07 13:50, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct

Re: [PATCH 0/4] qoriq: Add platform dependencies

2020-05-07 Thread Li Yang
On Thu, May 7, 2020 at 6:31 AM Geert Uytterhoeven wrote: > > Hi all, > > Several QorIQ blocks are only present on Freescale or NXP SoCs. > This series adds platform dependencies to the corresponding config > ymbols, to avoid asking the user about them when configuring a kernel > without

[PATCH net/master] net: ethernet: ti: cpts: Fix linker issue when TI_CPTS is defined

2020-05-07 Thread Dan Murphy
Fix build issue when CONFIG_TI_CPTS is defined in the defconfig but CONFIG_TI_CPTS_MOD is not set. arm-none-linux-gnueabihf-ld: drivers/net/ethernet/ti/cpsw.o: in function `cpsw_ndo_stop': drivers/net/ethernet/ti/cpsw.c:886: undefined reference to `cpts_unregister' arm-none-linux-gnueabihf-ld:

Re: [PATCH 6/7] exec: Move most of setup_new_exec into flush_old_exec

2020-05-07 Thread Eric W. Biederman
Kees Cook writes: > On Tue, May 05, 2020 at 02:45:33PM -0500, Eric W. Biederman wrote: >> >> The current idiom for the callers is: >> >> flush_old_exec(bprm); >> set_personality(...); >> setup_new_exec(bprm); >> >> In 2010 Linus split flush_old_exec into flush_old_exec and >> setup_new_exec.

Re: [PATCH v8 4/4] USB: pci-quirks: Add Raspberry Pi 4 quirk

2020-05-07 Thread Rob Herring
On Tue, 5 May 2020 18:13:17 +0200, Nicolas Saenz Julienne wrote: > On the Raspberry Pi 4, after a PCI reset, VL805's firmware may either be > loaded directly from an EEPROM or, if not present, by the SoC's > VideoCore. Inform VideoCore that VL805 was just reset. > > Also, as this creates a

Re: [PATCH v2 RESEND] MAINTAINERS: correct typo in new NXP LAYERSCAPE GEN4

2020-05-07 Thread Rob Herring
On Wed, 6 May 2020 07:21:30 +0200, Lukas Bulwahn wrote: > Commit 3edeb49525bb ("dt-bindings: PCI: Add NXP Layerscape SoCs PCIe Gen4 > controller") includes a new entry in MAINTAINERS, but slipped in a typo in > one of the file entries. > > Hence, since then, ./scripts/get_maintainer.pl

[PATCH] kernel/watchdog.c: convert {soft/hard}lockup boot parameters to sysctl aliases

2020-05-07 Thread Guilherme G. Piccoli
After a recent change introduced by Vlastimil's series [0], kernel is able now to handle sysctl parameters on kernel command line; also, the series introduced a simple infrastructure to convert legacy boot parameters (that duplicate sysctls) into sysctl aliases. This patch converts the watchdog

Re: [PATCH v8 3/4] PCI: brcmstb: Wait for Raspberry Pi's firmware when present

2020-05-07 Thread Rob Herring
On Tue, 5 May 2020 18:13:16 +0200, Nicolas Saenz Julienne wrote: > xHCI's PCI fixup, run at the end of pcie-brcmstb's probe, depends on > RPi4's VideoCore firmware interface to be up and running. It's possible > for both initializations to race, so make sure it's available prior to > starting. >

Re: [PATCH v8 1/4] soc: bcm2835: Add notify xHCI reset property

2020-05-07 Thread Rob Herring
On Tue, 5 May 2020 18:13:14 +0200, Nicolas Saenz Julienne wrote: > The property is needed in order to trigger VL805's firmware load. Note > that gap between the property introduced and the previous one is due to > the properties not being defined. > > Signed-off-by: Nicolas Saenz Julienne >

Re: [RFC PATCH bpf-next 1/3] arm64: insn: Fix two bugs in encoding 32-bit logical immediates

2020-05-07 Thread Luke Nelson
Hi everyone, Thanks for the comments! Responses below: > It's a bit grotty spreading the checks out now. How about we tweak things > slightly along the lines of: > > > diff --git a/arch/arm64/kernel/insn.c b/arch/arm64/kernel/insn.c > index 4a9e773a177f..60ec788eaf33 100644 > ---

Re: [PATCH v8 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-05-07 Thread Rob Herring
On Tue, 5 May 2020 18:13:15 +0200, Nicolas Saenz Julienne wrote: > The Raspberry Pi 4 gets its USB functionality from VL805, a PCIe chip > that implements xHCI. After a PCI reset, VL805's firmware may either be > loaded directly from an EEPROM or, if not present, by the SoC's > co-processor,

Re: [PATCH v2 2/3] vfio-pci: Fault mmaps to enable vma tracking

2020-05-07 Thread Peter Xu
Hi, Alex, On Tue, May 05, 2020 at 03:54:53PM -0600, Alex Williamson wrote: > +/* > + * Zap mmaps on open so that we can fault them in on access and therefore > + * our vma_list only tracks mappings accessed since last zap. > + */ > +static void vfio_pci_mmap_open(struct vm_area_struct *vma) > +{

[PATCH] block/drbd: remove redundant initialization to variable rv

2020-05-07 Thread Colin King
From: Colin Ian King The variable rv is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/block/drbd/drbd_main.c

Re: [PATCH v2 1/3] vfio/type1: Support faulting PFNMAP vmas

2020-05-07 Thread Alex Williamson
On Thu, 7 May 2020 17:24:43 -0400 Peter Xu wrote: > On Tue, May 05, 2020 at 03:54:44PM -0600, Alex Williamson wrote: > > With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on > > the range being faulted into the vma. Add support to manually provide > > that, in the same way as

[PATCH v2 2/2] usb: typec: tps6598x: Add OF probe binding

2020-05-07 Thread Bryan O'Donoghue
Adds a MODULE_DEVICE_TABLE() to allow probing of this driver from a DTS setting. Cc: Heikki Krogerus Cc: Greg Kroah-Hartman Cc: Nikolaus Voss Cc: Andy Shevchenko Cc: Gustavo A. R. Silva Cc: Kees Cook Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Bryan

[PATCH v2 0/2] Add TI tps6598x DT binding and probe

2020-05-07 Thread Bryan O'Donoghue
V2: - Put myself down as sole schema maintainer as suggested - Andy - Fixed whitespace typo - Andy - Removed ifdef and of_match_ptr() - Andy V1: This simple series adds DT binding yaml and a DT lookup table for the tps6598x. Its possible to use i2c id_table to match the 'compatible =

Re: [PATCH v2 3/4] clk: Add Baikal-T1 CCU PLLs driver

2020-05-07 Thread Serge Semin
On Wed, May 06, 2020 at 03:27:57PM -0700, Randy Dunlap wrote: > Hi, > > Typo(s): > > On 5/6/20 3:22 PM, Serge Semin wrote: > > diff --git a/drivers/clk/baikal-t1/Kconfig b/drivers/clk/baikal-t1/Kconfig > > new file mode 100644 > > index ..e1257af9f49e > > --- /dev/null > > +++

Re: [RFC PATCH 0/7] Share events between metrics

2020-05-07 Thread Andi Kleen
> > - without this change events within a metric may get scheduled > > together, after they may appear as part of a larger group and be > > multiplexed at different times, lowering accuracy - however, less > > multiplexing may compensate for this. > > I agree the heuristic in this patch set

[PATCH v2 1/2] dt-bindings: usb: Add TI tps6598x device tree binding documentation

2020-05-07 Thread Bryan O'Donoghue
Add device tree binding documentation for the Texas Instruments tps6598x Type-C chip driver. Cc: Rob Herring Cc: Heikki Krogerus Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Bryan O'Donoghue ---

[RFC PATCH V3 07/10] ntfs: replace attach_page_buffers with attach_page_private

2020-05-07 Thread Guoqing Jiang
Call the new function since attach_page_buffers will be removed. Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3: no change RFC -> RFC V2 1. change the name of new function to attach_page_private. fs/ntfs/aops.c | 2 +-

[RFC PATCH V3 02/10] md: remove __clear_page_buffers and use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
After introduce attach/detach_page_private in pagemap.h, we can remove the duplicat code and call the new functions. Cc: Song Liu Cc: linux-r...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1. change the

Re: [PATCH] PCI: endpoint: functions/pci-epf-test: Support slave DMA transfer

2020-05-07 Thread Rob Herring
On Fri, May 01, 2020 at 05:29:12PM -0700, Alan Mikhak wrote: > From: Alan Mikhak > > Modify pci_epf_test_data_transfer() to also support slave DMA transfers. > Adds a direction parameter so caller can specify one of the supported DMA > transfer directions: DMA_MEM_TO_MEM, DMA_MEM_TO_DEV, and

[RFC PATCH V3 03/10] btrfs: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in btrfs. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1.

[RFC PATCH V3 05/10] f2fs: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in f2fs.h. Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-de...@lists.sourceforge.net Acked-by: Chao Yu Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC

[RFC PATCH V3 08/10] orangefs: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in orangefs. Cc: Mike Marshall Cc: Martin Brandenburg Cc: de...@lists.orangefs.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1. change the

[RFC PATCH V3 01/10] include/linux/pagemap.h: introduce attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
The logic in attach_page_buffers and __clear_page_buffers are quite paired, but 1. they are located in different files. 2. attach_page_buffers is implemented in buffer_head.h, so it could be used by other files. But __clear_page_buffers is static function in buffer.c and other potential

[RFC PATCH V3 04/10] fs/buffer.c: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in buffer.c. Cc: Alexander Viro Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1. change the name of new functions to attach/clear_page_private.

[RFC PATCH V3 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-07 Thread Guoqing Jiang
We can cleanup code a little by call detach_page_private here. Cc: Andrew Morton Cc: linux...@kvack.org Signed-off-by: Guoqing Jiang --- Added since RFC V3. mm/migrate.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index

[RFC PATCH V3 06/10] iomap: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in iomap. Cc: Christoph Hellwig Cc: "Darrick J. Wong" Cc: linux-...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1. change the

[RFC PATCH V3 09/10] buffer_head.h: remove attach_page_buffers

2020-05-07 Thread Guoqing Jiang
All the callers have replaced attach_page_buffers with the new function attach_page_private, so remove it. Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- No change since RFC. include/linux/buffer_head.h | 8

[RFC PATCH V3 0/9] Introduce attach/detach_page_private to cleanup code

2020-05-07 Thread Guoqing Jiang
Hi, Based on the previous thread [1], this patchset introduces attach_page_private and detach_page_private to replace attach_page_buffers and __clear_page_buffers. Thanks a lot for the constructive suggestions and comments from Christoph, Matthew and Dave. And sorry for cross post to different

[PATCH] media: mantis_dvb: remove redundant initialization to variable result

2020-05-07 Thread Colin King
From: Colin Ian King The variable result is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH] PCI: endpoint: functions/pci-epf-test: Enable picking DMA channel by name

2020-05-07 Thread Rob Herring
On Fri, May 01, 2020 at 09:20:08AM -0700, Alan Mikhak wrote: > From: Alan Mikhak > > Modify pci_epf_test_init_dma_chan() to call dma_request_channel() with a > filter function to pick DMA channel by name, if desired. > > Add a new filter function pci_epf_test_pick_dma_chan() which takes a name

Re: [PATCH 1/2] IB/sa: Resolving use-after-free in ib_nl_send_msg.

2020-05-07 Thread Mark Bloch
On 5/7/2020 13:16, Wan, Kaike wrote: > > >> -Original Message- >> From: Mark Bloch >> Sent: Thursday, May 07, 2020 3:36 PM >> To: Divya Indi ; linux-kernel@vger.kernel.org; linux- >> r...@vger.kernel.org; Jason Gunthorpe ; Wan, Kaike >> >> Cc: Gerd Rausch ; Håkon Bugge >> ; Srinivas

Re: [PATCH v2 2/2] dt-bindings: drm/bridge: ti-sn65dsi86: Improve the yaml validation

2020-05-07 Thread Doug Anderson
Hi, On Wed, May 6, 2020 at 2:03 PM Douglas Anderson wrote: > > This patch adds the following checks to the yaml: > - Remapping of the eDP output lanes is now limited to the subset of > remappings that the hardware supports. > - No more additional properties can be added under 'ports'. > > This

Re: [PATCH v2 05/20] mips: cm: Add L2 ECC/parity errors reporting

2020-05-07 Thread Serge Semin
On Thu, May 07, 2020 at 01:17:53PM +0200, Thomas Bogendoerfer wrote: > On Wed, May 06, 2020 at 08:42:23PM +0300, sergey.se...@baikalelectronics.ru > wrote: > > From: Serge Semin > > > > According to the MIPS32 InterAptiv software manual error codes 24 - 26 > > of CM2 indicate L2 ECC/parity

Re: [PATCH v2] net: ethernet: ti: Remove TI_CPTS_MOD workaround

2020-05-07 Thread Arnd Bergmann
On Wed, May 6, 2020 at 10:57 PM Grygorii Strashko wrote: > On 06/05/2020 09:51, Clay McClure wrote: > > On Tue, May 05, 2020 at 10:41:26AM +0300, Grygorii Strashko wrote: > > > > Ok. After some thinking and hence you commit b6d49cab44b5 ("net: Make > PTP-specific drivers depend on

[PATCH v5 5/6] dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd

2020-05-07 Thread Douglas Anderson
The ti-sn65dsi86 MIPI DSI to eDP bridge chip has a dedicated hardware HPD (Hot Plug Detect) pin on it, but it's mostly useless for eDP because of excessive debouncing in hardware. Specifically there is no way to disable the debouncing and for eDP debouncing hurts you because HPD is just used for

[PATCH v5 2/6] dt-bindings: display: Add hpd-gpios to panel-common bindings

2020-05-07 Thread Douglas Anderson
In the cases where there is no connector in a system there's no great place to put "hpd-gpios". As per discussion [1] the best place to put it is in the panel. Add this to the device tree bindings. [1] https://lore.kernel.org/r/20200417180819.ge5...@pendragon.ideasonboard.com Signed-off-by:

[PATCH v5 1/6] drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Linux

2020-05-07 Thread Douglas Anderson
The ti-sn65dsi86 MIPI DSI to eDP bridge chip has 4 pins on it that can be used as GPIOs in a system. Each pin can be configured as input, output, or a special function for the bridge chip. These are: - GPIO1: SUSPEND Input - GPIO2: DSIA VSYNC - GPIO3: DSIA HSYNC or VSYNC - GPIO4: PWM Let's

[PATCH v5 3/6] drm/panel-simple: Support hpd-gpios for delaying prepare()

2020-05-07 Thread Douglas Anderson
People use panel-simple when they have panels that are builtin to their device. In these cases the HPD (Hot Plug Detect) signal isn't really used for hotplugging devices but instead is used for power sequencing. Panel timing diagrams (especially for eDP panels) usually have the HPD signal in

[PATCH v5 6/6] arm64: dts: sdm845: Add "no-hpd" to sn65dsi86 on cheza

2020-05-07 Thread Douglas Anderson
We don't have the HPD line hooked up to the bridge chip. Add it as suggested in the patch ("dt-bindings: drm/bridge: ti-sn65dsi86: Document no-hpd"). NOTE: this patch isn't expected to have any effect but just keeps us cleaner for the future. Currently the driver in Linux just assumes that

[PATCH v5 4/6] dt-bindings: drm/bridge: ti-sn65dsi86: Convert to yaml

2020-05-07 Thread Douglas Anderson
This moves the bindings over, based a lot on toshiba,tc358768.yaml. Unless there's someone known to be better, I've set the maintainer in the yaml as the first person to submit bindings. Signed-off-by: Douglas Anderson --- I removed Stephen's review tag on v5 since I squashed in a bunch of other

[PATCH v5 0/6] drm: Prepare to use a GPIO on ti-sn65dsi86 for Hot Plug Detect

2020-05-07 Thread Douglas Anderson
As talked about in commit c2bfc223882d ("drm/bridge: ti-sn65dsi86: Remove the mystery delay"), the normal HPD pin on ti-sn65dsi86 is kinda useless, at least for embedded DisplayPort (eDP). However, despite the fact that the actual HPD pin on the bridge is mostly useless for eDP, the concept of

[PATCH] dlm: remove BUG() before panic()

2020-05-07 Thread Arnd Bergmann
Building a kernel with clang sometimes fails with an objtool error in dlm: fs/dlm/lock.o: warning: objtool: revert_lock_pc()+0xbd: can't find jump dest instruction at .text+0xd7fc The problem is that BUG() never returns and the compiler knows that anything after it is unreachable, however the

[PATCH] ASoC: cros_ec_codec: allocate shash_desc dynamically

2020-05-07 Thread Arnd Bergmann
The wov_hotword_model_put() function has multiple large variables on its stack, the largest of which is the result of SHASH_DESC_ON_STACK(). In total, this exceeds the warning limit for 32-bit architectures: sound/soc/codecs/cros_ec_codec.c:776:12: error: stack frame size of 1152 bytes in

Re: [PATCH 00/14] Modularize schedutil

2020-05-07 Thread Valentin Schneider
(+Ionela) Hi Quentin, Apologies for sidetracking this a bit. On 07/05/20 19:09, Quentin Perret wrote: > Android is trying very hard to use a single kernel image (commonly > called Generic Kernel Image, or GKI), closely aligned with mainline, to > run on all Android devices regardless of the

[PATCH] media: cxusb-analog: fix V4L2 dependency

2020-05-07 Thread Arnd Bergmann
CONFIG_DVB_USB_CXUSB_ANALOG is a 'bool' symbol with a dependency on the tristate CONFIG_VIDEO_V4L2, which means it can be enabled as =y even when its dependency is =m. This leads to a link failure: drivers/media/usb/dvb-usb/cxusb-analog.o: In function `cxusb_medion_analog_init':

Re: [PATCH v2 04/20] mips: cm: Fix an invalid error code of INTVN_*_ERR

2020-05-07 Thread Serge Semin
On Thu, May 07, 2020 at 01:10:07PM +0200, Thomas Bogendoerfer wrote: > On Wed, May 06, 2020 at 08:42:22PM +0300, sergey.se...@baikalelectronics.ru > wrote: > > From: Serge Semin > > > > Commit 3885c2b463f6 ("MIPS: CM: Add support for reporting CM cache > > errors") adds cm2_causes[] array with

[PATCH] greybus: audio: remove unused code

2020-05-07 Thread Alexandre Belloni
GREYBUS_AUDIO_MSM8994 is not an existing configuration option and as reported in September 2016, it depends on an "out-of-tree qualcomm audio driver". This driver never made it upstream. https://lore.kernel.org/lkml/20160921073905.ga31...@kroah.com/ Moreover, there doesn't seem to be any

Re: [PATCH v2 1/3] vfio/type1: Support faulting PFNMAP vmas

2020-05-07 Thread Peter Xu
On Tue, May 05, 2020 at 03:54:44PM -0600, Alex Williamson wrote: > With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on > the range being faulted into the vma. Add support to manually provide > that, in the same way as done on KVM with hva_to_pfn_remapped(). > > Signed-off-by:

Re: [PATCH v4 09/12] dt-bindings: PCI: aardvark: Describe new properties

2020-05-07 Thread Rob Herring
On Thu, 30 Apr 2020 10:06:22 +0200, =?UTF-8?q?Pali=20Roh=C3=A1r?= wrote: > From: Marek Behún > > Document the possibility to reference a PHY and reset-gpios and to set > max-link-speed property. > > Signed-off-by: Marek Behún > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > --- >

Re: [RFC][PATCH 3/3] x86/entry, ORC: Teach objtool/unwind_orc about stack irq swizzles

2020-05-07 Thread Thomas Gleixner
Josh Poimboeuf writes: > On Thu, May 07, 2020 at 07:38:09PM +0200, Peter Zijlstra wrote: >> On Thu, May 07, 2020 at 06:10:23PM +0200, Peter Zijlstra wrote: >> Much simpler, also works. > > Doing the stack switch in inline asm is just nasty. Matter of personal preference :) > Also, a frame

Re: [PATCH v4 08/12] PCI: aardvark: Replace custom macros by standard linux/pci_regs.h macros

2020-05-07 Thread Rob Herring
On Thu, 30 Apr 2020 10:06:21 +0200, =?UTF-8?q?Pali=20Roh=C3=A1r?= wrote: > PCI-E capability macros are already defined in linux/pci_regs.h. > Remove their reimplementation in pcie-aardvark. > > Signed-off-by: Pali Rohár > --- > drivers/pci/controller/pci-aardvark.c | 41

Re: [PATCH v4 07/12] PCI: aardvark: Add PHY support

2020-05-07 Thread Rob Herring
On Thu, 30 Apr 2020 10:06:20 +0200, =?UTF-8?q?Pali=20Roh=C3=A1r?= wrote: > From: Marek Behún > > With recent proposed changes for U-Boot it is possible that bootloader > won't initialize the PHY for this controller (currently the PHY is > initialized regardless whether PCI is used in U-Boot, but

Re: [PATCH] ACPI: Drop rcu usage for MMIO mappings

2020-05-07 Thread Dan Williams
On Thu, May 7, 2020 at 9:43 AM Rafael J. Wysocki wrote: > > On 5/7/2020 1:39 AM, Dan Williams wrote: > > Recently a performance problem was reported for a process invoking a > > non-trival ASL program. The method call in this case ends up > > repetitively triggering a call path like: > > > >

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