[PATCH 5/6] xen/xenbus: use apply_to_page_range directly in xenbus_map_ring_pv

2020-09-18 Thread Christoph Hellwig
Replacing alloc_vm_area with get_vm_area_caller + apply_page_range allows to fill put the phys_addr values directly instead of doing another loop over all addresses. Signed-off-by: Christoph Hellwig --- drivers/xen/xenbus/xenbus_client.c | 30 -- 1 file changed, 16 in

Re: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code

2020-09-18 Thread Ray Jui
On 9/17/2020 8:08 PM, Liu Shixin wrote: > module_bcma_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pcie-iproc-bcma.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-) > > diff --git a/drive

[PATCH 6/6] x86/xen: open code alloc_vm_area in arch_gnttab_valloc

2020-09-18 Thread Christoph Hellwig
Open code alloc_vm_area in the last remaining caller. Signed-off-by: Christoph Hellwig --- arch/x86/xen/grant-table.c | 27 +++-- include/linux/vmalloc.h| 5 +--- mm/nommu.c | 7 -- mm/vmalloc.c | 48 --

Re: [PATCH 2/2] dt: bindings: ath10k: Document qcom, ath10k-pre-calibration-data-mtd

2020-09-18 Thread Christian Lamparter
On 2020-09-18 18:29, Ansuel Smith wrote: Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to define from where the driver will load the pre-cal data in the defined mtd partition. Signed-off-by: Ansuel Smith Q: Doesn't mtd now come with nvmem support from the get go? So the M

[RFC PATCH 2/7] firmware: arm_scmi: Document that max_msg is a per channel type limit

2020-09-18 Thread Peter Hilber
From: Igor Skalkin struct scmi_desc.max_msg specifies a limit for the pending messages. This limit is a per SCMI channel type (tx, rx) limit. State that explicitly in the inline documentation. The following patch will add an op to override the limit per channel type. Co-developed-by: Peter Hilbe

Re: [PATCH v5 03/10] fs/ntfs3: Add bitmap

2020-09-18 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 04:35:11PM +, Konstantin Komarov wrote: > > That was only just renamed. More concerningly, the documentation is > > quite unambiguous: > > > > * This function is for filesystems to call when they want to start > > * readahead beyond a file's stated i_size. This is a

[RFC PATCH 3/7] firmware: arm_scmi: Add op to override max message #

2020-09-18 Thread Peter Hilber
From: Igor Skalkin The number of messages that the upcoming scmi-virtio transport can support depends on the virtio device (SCMI platform) and can differ for each channel. (The scmi-virtio transport does only have one tx and at most 1 rx channel.) Add an optional transport op so that scmi-virtio

Re: [dm-devel] [PATCH v2] dm: Call proper helper to determine dax support

2020-09-18 Thread Dan Williams
On Fri, Sep 18, 2020 at 8:31 AM Darrick J. Wong wrote: > > On Thu, Sep 17, 2020 at 10:30:03PM -0700, Dan Williams wrote: > > From: Jan Kara > > > > DM was calling generic_fsdax_supported() to determine whether a device > > referenced in the DM table supports DAX. However this is a helper for > >

[RFC PATCH 4/7] firmware: arm_scmi: Add per message transport data

2020-09-18 Thread Peter Hilber
From: Igor Skalkin The virtio transport in this patch series can be simplified by using the scmi_xfer tx/rx buffers for data exchange with the virtio device, and for saving the message state. But the virtio transport requires prepending a transport-specific header. Also, for data exchange using v

[PATCH] pm: runtime: fix timer_expires on 32bits arch

2020-09-18 Thread Grygorii Strashko
The commit 8234f6734c5d ("PM-runtime: Switch autosuspend over to using hrtimers") switched PM runtime autosuspend to use hrtimers and all related time accounting in ns, but missed update the struct dev_pm_info->timer_expires to u64. This causes timer_expires value to be truncated on 32bits architec

[RFC PATCH 5/7] firmware: arm_scmi: Add xfer_init_buffers transport op

2020-09-18 Thread Peter Hilber
From: Igor Skalkin The virtio transport in this patch series can be simplified by using the scmi_xfer tx/rx buffers for data exchange with the virtio device, and for saving the message state. But the virtio transport requires prepending a transport-specific header. Also, for data exchange using v

[RFC PATCH 6/7] dt-bindings: arm: Add virtio transport for SCMI

2020-09-18 Thread Peter Hilber
From: Igor Skalkin Document the properties for arm,scmi-virtio compatible nodes. The backing virtio SCMI device is described in patch [1]. [1] https://lists.oasis-open.org/archives/virtio-comment/202005/msg00096.html Co-developed-by: Peter Hilber Signed-off-by: Peter Hilber Signed-off-by: Igo

[RFC PATCH 7/7] firmware: arm_scmi: Add virtio transport

2020-09-18 Thread Peter Hilber
From: Igor Skalkin This transport enables accessing an SCMI platform as a virtio device. Implement an SCMI virtio driver according to the virtio SCMI device spec patch v5 [1]. Virtio device id 32 has been reserved for the SCMI device [2]. The virtio transport has one tx channel (virtio cmdq, A2

[PATCH v2] arm64: dts: ti: k3-j721e: Rename mux header and update macro names

2020-09-18 Thread Roger Quadros
We intend to use one header file for SERDES MUX for all TI SoCs so rename the header file. The exsting macros are too generic. Prefix them with SoC name. While at that, add the missing configurations for completeness. Reported-by: Peter Rosin Fixes: b766e3b0d5f6 ("arm64: dts: ti: k3-j721e-main:

Re: [PATCH v3 1/4] arm64: dts: ti: k3-j7200: add DMA support

2020-09-18 Thread Suman Anna
Hi Grygorii, On 9/18/20 10:38 AM, Grygorii Strashko wrote: > From: Peter Ujfalusi > > Add the intr, inta, ringacc and udmap nodes for main and mcu NAVSS. Need to update the changelog, intr and inta are not part of this revised series. > > Signed-off-by: Peter Ujfalusi > Signed-off-by: Grygor

[PATCH] s390/vfio-ap: fix unregister GISC when KVM is already gone results in OOPS

2020-09-18 Thread Tony Krowiak
Attempting to unregister Guest Interruption Subclass (GISC) when the link between the matrix mdev and KVM has been removed results in the following: "Kernel panic -not syncing: Fatal exception: panic_on_oops" This patch fixes this bug by verifying the matrix mdev and KVM are still linked prior

Re: [PATCH v10 06/16] s390/vfio-ap: introduce shadow APCB

2020-09-18 Thread Tony Krowiak
On 9/17/20 10:22 AM, Cornelia Huck wrote: On Fri, 21 Aug 2020 15:56:06 -0400 Tony Krowiak wrote: The APCB is a field within the CRYCB that provides the AP configuration to a KVM guest. Let's introduce a shadow copy of the KVM guest's APCB and maintain it for the lifespan of the guest. Sign

[PATCH] Asoc: qcom: lpass-cpu: Enable MI2S BCLK and LRCLK together

2020-09-18 Thread Srinivasa Rao Mandadapu
From: vsujithk Update lpass-cpu.c to enable I2S BCLK and LRCLK together. Remove BCLK enable in lpass_cpu_daiops_startup and add in lpass_cpu_daiops_trigger API. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-cpu.c | 16 1 f

Re: [PATCH v10 07/16] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-09-18 Thread Tony Krowiak
On 9/17/20 10:34 AM, Cornelia Huck wrote: On Fri, 21 Aug 2020 15:56:07 -0400 Tony Krowiak wrote: The matrix of adapters and domains configured in a guest's CRYCB may differ from the matrix of adapters and domains assigned to the matrix mdev, so this patch introduces a sysfs attribute to dis

Re: [PATCH v1 2/3] bus: mhi: core: Introduce debugfs entries for MHI

2020-09-18 Thread bbhatt
On 2020-09-17 16:36, Randy Dunlap wrote: On 9/17/20 3:19 PM, Bhaumik Bhatt wrote: diff --git a/drivers/bus/mhi/Kconfig b/drivers/bus/mhi/Kconfig index a8bd9bd..ae68347 100644 --- a/drivers/bus/mhi/Kconfig +++ b/drivers/bus/mhi/Kconfig @@ -12,3 +12,11 @@ config MHI_BUS communication prot

Re: [PATCH] fgraph: Convert ret_stack tasklist scanning to rcu

2020-09-18 Thread Steven Rostedt
[ Back from my PTO and still digging out emails ] On Mon, 7 Sep 2020 13:43:02 +0200 Oleg Nesterov wrote: > On 09/06, Davidlohr Bueso wrote: > > > > Here tasklist_lock does not protect anything other than the list > > against concurrent fork/exit. And considering that the whole thing > > is cappe

[GIT PULL] sound fixes for 5.9-rc6

2020-09-18 Thread Takashi Iwai
Linus, please pull sound fixes for v5.9-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.9-rc6 The topmost commit is 8949b6660c3c7947a9b696c97eb85a32abe4a2d7 sound fixes for 5.9-rc6 Here is

Re: [PATCH v5 0/5] cpufreq: improve frequency invariance support

2020-09-18 Thread Rafael J. Wysocki
On Fri, Sep 4, 2020 at 6:39 AM Viresh Kumar wrote: > > On 03-09-20, 14:32, Ionela Voinescu wrote: > > Hi Rafael, Viresh, > > > > Would it be okay for you to apply this series, as the majority of > > changes are in cpufreq? For arch_topology and arm64 changes, they have > > been reviewed and acked-

Re: [PATCH] scsi: arcmsr: Remove the superfluous break

2020-09-18 Thread Joe Perches
On Fri, 2020-09-18 at 09:56 -0500, Gustavo A. R. Silva wrote: > On Fri, Sep 18, 2020 at 05:32:30PM +0800, Jing Xiangfeng wrote: > > Remove the superfluous break, as there is a 'return' before it. > > > > Apparently, the change is correct. Please, just add a proper Fixes tag by > yourself this tim

Re: [PATCH leds v1 10/10] leds: ns2: refactor and use struct led_init_data

2020-09-18 Thread Marek Behun
On Fri, 18 Sep 2020 15:02:06 +0200 Simon Guinot wrote: > On Thu, Sep 17, 2020 at 01:16:50AM +0200, Marek Behún wrote: > > Hi Marek, > > > By using struct led_init_data when registering we do not need to parse > > `label` DT property nor `linux,default-trigger` property. > > > > Also, move forw

Re: [PATCH v4 0/3] Move recovery/coredump configuration to sysfs

2020-09-18 Thread rishabhb
On 2020-09-17 16:40, Randy Dunlap wrote: On 9/17/20 11:56 AM, Rishabh Bhatnagar wrote: 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. This patch series removes the recovery/core

Re: [PATCH 1/4] mm: Trial do_wp_page() simplification

2020-09-18 Thread Linus Torvalds
On Fri, Sep 18, 2020 at 9:40 AM Peter Xu wrote: > > Firstly in the draft patch mm->has_pinned is introduced and it's written to 1 > as long as FOLL_GUP is called once. It's never reset after set. That's fine. That was what I was expecting you to do. It only needs to be cleared at mm creation tim

Re: [PATCH] scsi: arcmsr: Remove the superfluous break

2020-09-18 Thread Jens Axboe
On 9/18/20 11:13 AM, Joe Perches wrote: > On Fri, 2020-09-18 at 09:56 -0500, Gustavo A. R. Silva wrote: >> On Fri, Sep 18, 2020 at 05:32:30PM +0800, Jing Xiangfeng wrote: >>> Remove the superfluous break, as there is a 'return' before it. >>> >> >> Apparently, the change is correct. Please, just ad

Re: [PATCH v1 1/3] bus: mhi: core: Remove warnings for missing MODULE_LICENSE()

2020-09-18 Thread Manivannan Sadhasivam
On Fri, Sep 18, 2020 at 09:49:05AM -0700, bbh...@codeaurora.org wrote: > On 2020-09-18 07:27, Jeffrey Hugo wrote: > > On 9/17/2020 4:19 PM, Bhaumik Bhatt wrote: > > > When building MHI as a module, missing MODULE_LICENSE() warnings > > > are seen. Avoid them by adding the license and description >

Re: [PATCH AUTOSEL 4.19 059/206] ext4: make dioread_nolock the default

2020-09-18 Thread Theodore Y. Ts'o
On Thu, Sep 17, 2020 at 07:58:59PM -0700, Eric Biggers wrote: > On Thu, Sep 17, 2020 at 10:05:35PM -0400, Sasha Levin wrote: > > From: Theodore Ts'o > > > > [ Upstream commit 244adf6426ee31a83f397b700d964cff12a247d3 ] > > > > This fixes the direct I/O versus writeback race which can reveal stale

Re: [PATCH v3 2/2] docs: trace: ring-buffer-design.rst: use the new SPDX tag

2020-09-18 Thread Steven Rostedt
On Wed, 9 Sep 2020 07:14:33 +0200 Mauro Carvalho Chehab wrote: > SPDX v3.10 gained support for GFDL-1.2 with no invariant sections: > > https://spdx.org/licenses/GFDL-1.2-no-invariants-only.html > > Let's use it, instead of keeping a license text for this file. Acked-by: Steven Rostedt

Re: [PATCH v1 1/2] dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver

2020-09-18 Thread Rob Herring
On Tue, Sep 15, 2020 at 03:31:04PM -0400, Jim Quinlan wrote: > Bindings are added. Only one interrupt is needed because > we do not yet employ the SCMI p2a channel. > > Signed-off-by: Jim Quinlan > --- > .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++ > 1 file changed, 3

Re: [PATCH leds v2 15/50] leds: lm3697: cosmetic change: use helper variable, reverse christmas tree

2020-09-18 Thread Marek Behun
On Fri, 18 Sep 2020 06:47:20 -0500 Dan Murphy wrote: > > Reviewed-by: Dan Murphy > > Dan, could you also review patch 14/50? That one is also lm3697 and this one depends on it. Marek

[PATCH v5 1/2] remoteproc: Move coredump configuration to sysfs

2020-09-18 Thread Rishabh Bhatnagar
Move coredump configuration from debugfs to sysfs.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 +++ drivers/remoteproc/remoteproc_

[PATCH v5 2/2] remoteproc: Move recovery configuration to sysfs

2020-09-18 Thread Rishabh Bhatnagar
Move recovery configuration from debugfs to sysfs.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 ++ drivers/remoteproc/remoteproc_d

[PATCH v5 0/2] Move recovery/coredump configuration to sysfs

2020-09-18 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. This patch series removes the recovery/coredump entries from debugfs and moves them to sysfs. 'Coredump' and 'Recovery' are critical

Re: [PATCH 2/2] ASoC: dt-bindings: fsl_xcvr: Add document for XCVR

2020-09-18 Thread Rob Herring
On Wed, 16 Sep 2020 12:17:56 +0300, Viorel Suman (OSS) wrote: > From: Viorel Suman > > XCVR (Audio Transceiver) is a new IP module found on i.MX8MP. > > Signed-off-by: Viorel Suman > --- > .../devicetree/bindings/sound/fsl,xcvr.yaml| 104 > + > 1 file changed, 104

Re: [GIT PULL] percpu fix for v5.9-rc6

2020-09-18 Thread Linus Torvalds
On Fri, Sep 18, 2020 at 9:17 AM Gustavo A. R. Silva wrote: > > This bug could have been prevented by either adopting better > coding practices or through the use[3] of the recent struct_size() helper. Well, my unspoken point was that coding practices are just theoretical. Coding practices don't h

Re: [PATCH v9 0/7] IOMMU user API enhancement

2020-09-18 Thread Jacob Pan
Hi Joerg, On Fri, 18 Sep 2020 12:02:36 +0200, Joerg Roedel wrote: > Hi Jacob, > > On Fri, Sep 11, 2020 at 02:57:49PM -0700, Jacob Pan wrote: > > IOMMU user API header was introduced to support nested DMA translation > > and related fault handling. The current UAPI data structures consist of > >

sched: rq->nr_iowait transiently going negative after the recent p->on_cpu optimization

2020-09-18 Thread Tejun Heo
Hello, Peter, I noticed /proc/stat::procs_blocked going U64_MAX transiently once in the blue moon without any other persistent issues. After looking at the code with Rik for a bit, the culprit seems to be c6e7bd7afaeb ("sched/core: Optimize ttwu() spinning on p->on_cpu") - it changed where ttwu de

Re: [PATCH v1 1/6] dt_bindings: mfd: Add ROHM BD9576MUF and BD9573MUF PMICs

2020-09-18 Thread Rob Herring
On Thu, Sep 17, 2020 at 11:01:52AM +0300, Matti Vaittinen wrote: > Add bindings for ROHM BD9576MUF and BD9573MUF PMICs. These > PMICs are primarily intended to be used to power the R-Car series > processors. They provide 6 power outputs, safety features and a > watchdog with two functional modes. >

Re: [PATCH 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml

2020-09-18 Thread Rob Herring
On Thu, 17 Sep 2020 12:18:17 +0200, Alban Bedel wrote: > In order to automate the verification of DT nodes convert lm75.txt to > lm75.yaml. > > Signed-off-by: Alban Bedel > --- > .../devicetree/bindings/hwmon/lm75.txt| 39 - > .../devicetree/bindings/hwmon/lm75.yaml | 5

Re: [PATCH 2/4] dt-bindings: clock: Add support for LPASS Always ON Controller

2020-09-18 Thread Rob Herring
On Thu, 17 Sep 2020 14:28:48 +0100, Srinivas Kandagatla wrote: > Always ON Clock controller is a block inside LPASS which controls > 1 Glitch free muxes to LPASS codec Macros. > > Signed-off-by: Srinivas Kandagatla > --- > .../bindings/clock/qcom,aoncc-sm8250.yaml | 58 +++ >

Re: [PATCH 0/4] sched/fair: Improve fairness between cfs tasks

2020-09-18 Thread Phil Auld
On Fri, Sep 18, 2020 at 12:39:28PM -0400 Phil Auld wrote: > Hi Peter, > > On Mon, Sep 14, 2020 at 01:42:02PM +0200 pet...@infradead.org wrote: > > On Mon, Sep 14, 2020 at 12:03:36PM +0200, Vincent Guittot wrote: > > > Vincent Guittot (4): > > > sched/fair: relax constraint on task's load during

Re: [PATCH 1/4] dt-bindings: clock: Add support for LPASS Audio Clock Controller

2020-09-18 Thread Rob Herring
On Thu, 17 Sep 2020 14:28:47 +0100, Srinivas Kandagatla wrote: > Audio Clock controller is a block inside LPASS which controls > 2 Glitch free muxes to LPASS codec Macros. > > Signed-off-by: Srinivas Kandagatla > --- > .../bindings/clock/qcom,audiocc-sm8250.yaml | 58 +++ > ...

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

2020-09-18 Thread Rob Herring
On Thu, 17 Sep 2020 11:46:21 -0700, Matthias Kaehlcke wrote: > Onboard USB hubs need to be powered and may require initiaization of > other resources (like GPIOs or clocks) to work properly. This adds > a device tree binding for these hubs. > > Signed-off-by: Matthias Kaehlcke > --- > > Changes

Re: [PATCH v2] dt-bindings: power: rockchip: Convert to json-schema

2020-09-18 Thread Rob Herring
On Fri, 18 Sep 2020 11:32:29 +0200, Enric Balletbo i Serra wrote: > Convert the soc/rockchip/power_domain.txt binding document to json-schema > and move to the power bindings directory. > > Signed-off-by: Enric Balletbo i Serra > --- > > Changes in v2: > - Fixed a warning that says that 'syscon'

Re: [PATCH 1/4] mm: Trial do_wp_page() simplification

2020-09-18 Thread Jason Gunthorpe
On Fri, Sep 18, 2020 at 12:40:32PM -0400, Peter Xu wrote: > Firstly in the draft patch mm->has_pinned is introduced and it's written to 1 > as long as FOLL_GUP is called once. It's never reset after set. Worth thinking about also adding FOLL_LONGTERM here, at last as long as it is not a counter.

[PATCH v4] arm64: dts: qcom: sc7180: Add lpass cpu node for I2S driver

2020-09-18 Thread Srinivasa Rao Mandadapu
From: Ajit Pandey Add the I2S controller node to sc7180 dtsi. Add pinmux for primary and secondary I2S. Signed-off-by: Ajit Pandey Signed-off-by: Cheng-Yi Chiang Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- Changes since v3: -- The typo error fix Changes

Re: [PATCH net-next] net: hns3: Supply missing hclge_dcb.h include file

2020-09-18 Thread Saeed Mahameed
On Fri, 2020-09-18 at 21:06 +0800, Wang Hai wrote: > If the header file containing a function's prototype isn't included > by > the sourcefile containing the associated function, the build system > complains of missing prototypes. > > Fixes the following W=1 kernel build warning(s): > > drivers/n

Re: [PATCH net-next] liquidio: Fix -Wmissing-prototypes warnings for liquidio

2020-09-18 Thread Saeed Mahameed
On Fri, 2020-09-18 at 21:02 +0800, Wang Hai wrote: > If the header file containing a function's prototype isn't included > by > the sourcefile containing the associated function, the build system > complains of missing prototypes. > > Fixes the following W=1 kernel build warning(s): > > drivers/n

[GIT PULL] arch/sh important regression fixes 5.9

2020-09-18 Thread Rich Felker
The following changes since commit 856deb866d16e29bd65952e0289066f6078af773: Linux 5.9-rc5 (2020-09-13 16:06:00 -0700) are available in the Git repository at: git://git.libc.org/linux-sh tags/sh-for-5.9-part2 for you to fetch changes up to b0cfc315ff38c423a5ce9ce159bd5baa4135e688: sh: fi

[tip: objtool/urgent] objtool: Fix noreturn detection for ignored functions

2020-09-18 Thread tip-bot2 for Josh Poimboeuf
The following commit has been merged into the objtool/urgent branch of tip: Commit-ID: db6c6a0df840e3f52c84cc302cc1a08ba11a4416 Gitweb: https://git.kernel.org/tip/db6c6a0df840e3f52c84cc302cc1a08ba11a4416 Author:Josh Poimboeuf AuthorDate:Thu, 10 Sep 2020 10:24:57 -05:00 Com

Re: [PATCH v6 4/4] bus: mhi: Add userspace client interface driver

2020-09-18 Thread Hemant Kumar
Hi Greg, On 9/17/20 9:40 AM, Greg KH wrote: On Wed, Sep 16, 2020 at 12:56:07PM -0700, Hemant Kumar wrote: +/** + * struct uci_dev - MHI uci device + * @minor: uci device node minor number + * @mhi_dev: associated mhi device object + * @chan: MHI channel name + * @lock: mutex lock + * @ul_chan:

[PATCH] tee: optee: replace might_sleep with cond_resched

2020-09-18 Thread Rouven Czerwinski
On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force rescheduling, replace it with a resched check and cond_resched. Fixes the following stall: [ 572.945146] rcu: INFO: rcu_sched self-detected stall on CPU [ 572.949275] rcu: 0-: (2099 ticks this GP) idle=572/1/0x4

Re: [PATCH v2] mmc: sdhci: Don't enable presets while tuning

2020-09-18 Thread Raul Rangel
On Tue, Sep 1, 2020 at 4:54 AM Adrian Hunter wrote: > > On 24/08/20 9:21 pm, Raul E Rangel wrote: > > SDHCI presets are not currently used for eMMC HS/HS200/HS400, but are > > used for DDR52. The HS400 retuning sequence is: > > > > HS400->DDR52->HS->HS200->Perform Tuning->HS->HS400 > > > > Thi

Re: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev"

2020-09-18 Thread Saeed Mahameed
On Tue, 2020-09-01 at 17:02 +0200, Geert Uytterhoeven wrote: > This reverts commit 124eee3f6955f7aa19b9e6ff5c9b6d37cb3d1e2c. > > Inami-san reported that this commit breaks bridge support in a Xen > environment, and that reverting it fixes this. > > During system resume, bridge ports are no longer

Re: [PATCH v2 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-18 Thread Paul E. McKenney
On Fri, Sep 18, 2020 at 07:44:24PM +0800, Hou Tao wrote: > When do locktorture for exclusive lock which doesn't have readlock > support, the following module parameters will be considered as valid: > > torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1 > > But locktorture will do nothin

Re: [Intel-gfx] [PATCH] i915: Introduce quirk for shifting eDP brightness.

2020-09-18 Thread Kevin Chowski
Apologies once again, some of my emails were bouncing for some addresses yesterday. Hopefully it was a temporary condition; I'll continue trying to dig into it on my end if it happens again for this email. Since there's evidence that some models want lsb and some (well, at least one) want msb, my

RE: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-09-18 Thread Ben Levinsky
Hi Michael, Punit, > -Original Message- > From: Michael Auchter > Sent: Friday, September 18, 2020 9:07 AM > To: Ben Levinsky > Cc: devicet...@vger.kernel.org; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Subject: Re: RE: [PATC

Re: [PATCH] scsi: arcmsr: Remove the superfluous break

2020-09-18 Thread Dan Carpenter
Smatch just ignores these because they're often done deliberately. regards, dan carpenter

Re: the "read" syscall sees partial effects of the "write" syscall

2020-09-18 Thread Linus Torvalds
On Fri, Sep 18, 2020 at 6:13 AM Jan Kara wrote: > > Yes, but no Linux filesystem (except for XFS AFAIK) follows the POSIX spec > in this regard. Yeah, and we never have. As you say, performance sucks, and nobody has ever cared. So the standard in this case is just something that we'll never foll

Re: [PATCH] scsi: arcmsr: Remove the superfluous break

2020-09-18 Thread Colin Ian King
On 18/09/2020 19:00, Dan Carpenter wrote: > Smatch just ignores these because they're often done deliberately. > > regards, > dan carpenter > And I ignore fixing them when coverity reports them because life is too short. Colin

R: [PATCH 2/2] dt: bindings: ath10k: Document qcom, ath10k-pre-calibration-data-mtd

2020-09-18 Thread ansuelsmth
> -Messaggio originale- > Da: Christian Lamparter > Inviato: venerdì 18 settembre 2020 18:54 > A: Ansuel Smith ; Kalle Valo > > Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linux- > wirel...@vger.kernel.org; linux-kernel@vger.kernel.org; > ath...@lists.infradead.org; David S

[PATCH v2 1/2] ath10k: Introduce download cal from mtd

2020-09-18 Thread Ansuel Smith
Most of routers that have the ath10k wifi chip integrated in the Soc have the pre-cal data stored in the art (or equivalent) mtd partition. Introduce a new function to directly extract and use it based on what is set in the dt if the system have mtd support. Pre-cal file have still priority to ever

[PATCH v2 2/2] dt: bindings: ath10k: Document qcom,ath10k-pre-calibration-data-mtd

2020-09-18 Thread Ansuel Smith
Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to define from where the driver will load the pre-cal data in the defined mtd partition. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +--- 1 file changed, 9 insertions(+), 3 d

[PATCH] pci: meson: build as module by default

2020-09-18 Thread Kevin Hilman
Enable pci-meson to build as a module whenever ARCH_MESON is enabled. Cc: Yue Wang Signed-off-by: Kevin Hilman --- Tested on Khadas VIM3 and Khadas VIM3 using NVMe SSD devices. drivers/pci/controller/dwc/Kconfig | 3 ++- drivers/pci/controller/dwc/pci-meson.c | 8 +++- 2 files changed,

Re: [PATCH v6 4/4] bus: mhi: Add userspace client interface driver

2020-09-18 Thread Hemant Kumar
Hi Greg, On 9/17/20 9:44 AM, Greg KH wrote: On Wed, Sep 16, 2020 at 12:56:07PM -0700, Hemant Kumar wrote: ... ... + +static int mhi_uci_open(struct inode *inode, struct file *filp) +{ + struct uci_dev *udev = NULL; + unsigned int minor = iminor(inode); + int ret = -EIO; +

Re: [Intel-gfx] [PATCH] i915: Introduce quirk for shifting eDP brightness.

2020-09-18 Thread Puthikorn Voravootivat
I'll defer to Ville & Lyude. I dug up more on the bug report and found that both Thinkpad and Galaxy Chromebook use the same Samsung OLED. So my 2 vs 1 argument is actually not valid. On Fri, Sep 18, 2020 at 10:59 AM Kevin Chowski wrote: > > Apologies once again, some of my emails were bouncing

Re: [PATCH 1/2] ASoC: tas2770: Fix calling reset in probe

2020-09-18 Thread Dan Murphy
All On 9/18/20 11:18 AM, Dan Murphy wrote: tas2770_reset is called during i2c probe. The reset calls the snd_soc_component_write which depends on the tas2770->component being available. The component pointer is not set until codec_probe so move the reset to the codec_probe after the pointer is s

[RFC PATCH v2 1/3] ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)

2020-09-18 Thread Mathieu Desnoyers
As per RFC792, ICMP errors should be sent to the source host. However, in configurations with Virtual Routing and Forwarding tables, looking up which routing table to use is currently done by using the destination net_device. commit 9d1a6c4ea43e ("net: icmp_route_lookup should use rt dev to deter

[RFC PATCH v2 3/3] selftests: Add VRF icmp error route lookup test

2020-09-18 Thread Mathieu Desnoyers
From: Michael Jeanson The objective is to check that the incoming vrf routing table is selected to send an ICMP error back to the source. We test two scenarios: when the ttl of a packet reaches 1 while it is forwarded between different vrfs and when a packet is bigger than the mtu of the second i

[RFC PATCH v2 2/3] ipv6/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)

2020-09-18 Thread Mathieu Desnoyers
As per RFC4443, the destination address field for ICMPv6 error messages is copied from the source address field of the invoking packet. In configurations with Virtual Routing and Forwarding tables, looking up which routing table to use for sending ICMPv6 error messages is currently done by using t

[RFC PATCH v2 0/3] l3mdev icmp error route lookup fixes

2020-09-18 Thread Mathieu Desnoyers
Hi, Here is an updated series of fixes for ipv4 and ipv6 which which ensure the route lookup is performed on the right routing table in VRF configurations when sending TTL expired icmp errors (useful for traceroute). It includes tests for both ipv4 and ipv6. These fixes address specifically addr

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-18 Thread Qian Cai
On Thu, 2020-09-17 at 09:27 -0400, Qian Cai wrote: > On Wed, 2020-09-16 at 10:35 +0300, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Hi, > > > > This is an implementation of "secret" mappings backed by a file descriptor. > > I've dropped the boot time reservation patch for now as it is

Re: [PATCH v6 05/10] fs/ntfs3: Add attrib operations

2020-09-18 Thread Mark Harmstone
Could I suggest that system.ntfs_security be renamed to security.NTACL? That's what WinBtrfs uses, and it means you'd be able to create a working Btrfs copy of a Windows installation just by using rsync. IIRC Samba also understands xattrs called security.NTACL, when you've put it in the right mode.

R: [PATCH 2/2] dt: bindings: ath10k: Document qcom, ath10k-pre-calibration-data-mtd

2020-09-18 Thread ansuelsmth
> -Messaggio originale- > Da: Christian Lamparter > Inviato: venerdì 18 settembre 2020 18:54 > A: Ansuel Smith ; Kalle Valo > > Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linux- > wirel...@vger.kernel.org; linux-kernel@vger.kernel.org; > ath...@lists.infradead.org; David S

[RFC v1 00/12] kunit: introduce class mocking support.

2020-09-18 Thread Daniel Latypov
# Background KUnit currently lacks any first-class support for mocking. For an overview and discussion on the pros and cons, see https://martinfowler.com/articles/mocksArentStubs.html This patch set introduces the basic machinery needed for mocking: setting and validating expectations, setting def

[RFC v1 02/12] kunit: test: add kunit_stream a std::stream like logger

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins A lot of the expectation and assertion infrastructure prints out fairly complicated test failure messages, so add a C++ style log library for for logging test results called `struct kunit_stream`. kunit_stream allows us to construct a message before we know whether we want

[RFC v1 11/12] kunit: mock: add struct param matcher

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Add parameter matcher builder for matching struct values. Signed-off-by: Brendan Higgins Signed-off-by: Daniel Latypov --- include/kunit/mock.h | 58 +++ lib/kunit/common-mocks.c | 117 +++ lib/kunit/mock-test.c

[RFC v1 03/12] kunit: test: add concept of post conditions

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Add a way to specify that certain conditions must be met at the end of a test case. Signed-off-by: Brendan Higgins Signed-off-by: Daniel Latypov --- include/kunit/test.h | 6 ++ lib/kunit/test.c | 11 +++ 2 files changed, 17 insertions(+) diff --git a/i

[RFC v1 04/12] checkpatch: add support for struct MOCK(foo) syntax

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins KUnit will soon add macros for generating mocks from types, the generated mock types are named like `struct MOCK(foo)` (where the base type is struct foo). Add `struct MOCK(foo)` as a NonptrType so that it is recognized correctly in declarations. Signed-off-by: Brendan Hig

[RFC v1 05/12] kunit: mock: add parameter list manipulation macros

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Add macros for parsing and manipulating parameter lists needed for generating mocks. Signed-off-by: Brendan Higgins Signed-off-by: Daniel Latypov --- include/kunit/params.h | 305 lib/kunit/Makefile | 3 +- lib/kunit/m

[RFC v1 01/12] Revert "kunit: move string-stream.h to lib/kunit"

2020-09-18 Thread Daniel Latypov
This reverts commit 109fb06fdc6f6788df7dfbc235f7636a38e28fd4. string-stream will be used by kunit mocking code to print messages about mock expectations. It makes the code signifcantly simpler if string-stream objects can be part of structs declared in mocking headers. Signed-off-by: Daniel Latyp

[RFC v1 10/12] kunit: mock: add class mocking support

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Introduce basic class mocking, the ability to automatically generate a Linux C-style class implementation whose behavior is controlled by test cases, which can also set expectations on when and how mocks are called. Co-developed-by: Daniel Latypov Signed-off-by: Daniel Lat

[RFC v1 12/12] kunit: mock: implement nice, strict and naggy mock distinctions

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Nice mocks only fail when there is an expectation on a method, but none match a given call. Strict mocks only pass when there is a matching expectation for every call. Naggy mocks have the same pass/fail behavior as nice, but report a warning in any case a strict mock would

[RFC v1 08/12] kunit: mock: add basic matchers and actions

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Add basic matchers and actions needed for any kind of mocking to be useful; these matchers and actions are how expectations for mocks are described: what calls the mocks are expected to receive, and what the mock should do under those circumstances. Co-developed-by: Daniel

[RFC v1 07/12] kunit: mock: add internal mock infrastructure

2020-09-18 Thread Daniel Latypov
From: Brendan Higgins Add the core internal mechanisms that mocks are implemented with; in particular, this adds the mechanisms by which expectation on mocks are validated and by which actions may be supplied and then executed when mocks are called. Signed-off-by: Brendan Higgins Signed-off-by:

[RFC v1 06/12] kunit: expose kunit_set_failure() for use by mocking

2020-09-18 Thread Daniel Latypov
Being able to fail the test outside of expectations and assertions is a requirement for new features, e.g. mocking, dynamic analysis, etc. Signed-off-by: Daniel Latypov --- include/kunit/test.h | 2 ++ lib/kunit/test.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/inc

[RFC v1 09/12] kunit: mock: add macro machinery to pick correct format args

2020-09-18 Thread Daniel Latypov
From: Marcelo Schmitt Note: It was unclear if there was existing code that could be reused. This is used by DEFINE_MATCHER to generate matching funcs for primitive types that don't trigger compiler warnings. After preprocessing, we now generate matcher func code like kunit_stream_add(stream,

Re: [PATCH] dmaengine: qcom: Add ADM driver

2020-09-18 Thread Jonathan McDowell
On Fri, Sep 18, 2020 at 05:04:43PM +0530, Vinod Koul wrote: > Hello Jonathan > > On 16-09-20, 07:43, Jonathan McDowell wrote: > > From: Andy Gross > > > > (I'm not sure how best to attribute this. It's originally from Andy > > Gross, the version I picked up was a later version from Thomas Peders

Re: [PATCH] nvme: fix NULL pointer dereference

2020-09-18 Thread Keith Busch
On Thu, Sep 17, 2020 at 11:32:12PM -0400, Tong Zhang wrote: > Please correct me if I am wrong. > After a bit more digging I found out that it is indeed command_id got > corrupted is causing this problem. Although the tag and command_id > range is checked like you said, the elements in rqs cannot be

[PATCH 6/5] iocost: consider iocgs with active delays for debt forgiveness

2020-09-18 Thread Tejun Heo
An iocg may have 0 debt but non-zero delay. The current debt forgiveness logic doesn't act on such iocgs. This can lead to unexpected behaviors - an iocg with a little bit of debt will have its delay canceled through debt forgiveness but one w/o any debt but active delay will have to wait out until

Re: [PATCH AUTOSEL 4.19 127/206] nvme: Fix controller creation races with teardown flow

2020-09-18 Thread Sagi Grimberg
This causes a regression and was reverted upstream, just FYI. On 9/17/20 7:06 PM, Sasha Levin wrote: From: Israel Rukshin [ Upstream commit ce1518139e6976cf19c133b555083354fdb629b8 ] Calling nvme_sysfs_delete() when the controller is in the middle of creation may cause several bugs. If the co

Re: [PATCH v1 1/3] bus: mhi: core: Remove warnings for missing MODULE_LICENSE()

2020-09-18 Thread bbhatt
On 2020-09-18 10:18, Manivannan Sadhasivam wrote: On Fri, Sep 18, 2020 at 09:49:05AM -0700, bbh...@codeaurora.org wrote: On 2020-09-18 07:27, Jeffrey Hugo wrote: > On 9/17/2020 4:19 PM, Bhaumik Bhatt wrote: > > When building MHI as a module, missing MODULE_LICENSE() warnings > > are seen. Avoid

Re: [PATCH net-next] hinic: modify irq name

2020-09-18 Thread Saeed Mahameed
On Fri, 2020-09-18 at 17:23 +0800, Luo bin wrote: > Make a distinction between different irqs by netdev name or pci name. > > Signed-off-by: Luo bin > --- > Reviewed-by: Saeed Mahameed

Re: resolve_btfids breaks kernel cross-compilation

2020-09-18 Thread Andrii Nakryiko
On Fri, Sep 18, 2020 at 3:07 AM Jiri Olsa wrote: > > On Thu, Sep 17, 2020 at 07:54:50AM -0500, Seth Forshee wrote: > > On Thu, Sep 17, 2020 at 11:14:06AM +0200, Jiri Olsa wrote: > > > On Thu, Sep 17, 2020 at 10:38:12AM +0200, Jiri Olsa wrote: > > > > On Thu, Sep 17, 2020 at 10:04:55AM +0200, Jiri

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Yu Zhao
On Fri, Sep 18, 2020 at 01:09:14PM +0200, Michal Hocko wrote: > On Fri 18-09-20 04:27:13, Yu Zhao wrote: > > On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote: > > > On Thu 17-09-20 21:00:40, Yu Zhao wrote: > > > > This patch replaces the only open-coded __ClearPageActive() with > > > >

Re: R: [PATCH 2/2] dt: bindings: ath10k: Document qcom, ath10k-pre-calibration-data-mtd

2020-09-18 Thread Christian Lamparter
On 2020-09-18 20:31, ansuels...@gmail.com wrote: -Messaggio originale- Da: Christian Lamparter Inviato: venerdì 18 settembre 2020 18:54 A: Ansuel Smith ; Kalle Valo Cc: devicet...@vger.kernel.org; net...@vger.kernel.org; linux- wirel...@vger.kernel.org; linux-kernel@vger.kernel.org;

Re: [PATCH 1/2] dt-bindings: interrupt-controller: add Hisilicon SD5203 vector interrupt controller

2020-09-18 Thread Rob Herring
On Wed, Sep 16, 2020 at 9:30 PM Leizhen (ThunderTown) wrote: > > > > On 2020/9/15 14:12, Leizhen (ThunderTown) wrote: > > > > > > On 2020/9/15 4:31, Rob Herring wrote: > >> On Thu, Sep 03, 2020 at 08:05:03PM +0800, Zhen Lei wrote: > >>> Add DT bindings for the Hisilicon SD5203 vector interrupt con

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