[PATCH 3/4] PCI: tegra: Set DesignWare IP version

2020-10-25 Thread Vidya Sagar
Set the DesignWare IP version for Tegra194 to 0x490A. This would be used by the DesigWare sub-system to do any version specific configuration (Ex:- TD bit programming for ECRC). Signed-off-by: Vidya Sagar --- drivers/pci/controller/dwc/pcie-tegra194.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 4/4] PCI: tegra: Handle error conditions properly

2020-10-25 Thread Vidya Sagar
Currently the driver checks for error value of different APIs during the uninitialization sequence. It just returns from there if there is any error observed for one of those calls. Comparatively it is better to continue the uninitialization sequence irrespective of whether some of them are returni

[PATCH 0/4] Enhancements to Tegra194 PCIe driver

2020-10-25 Thread Vidya Sagar
This series of patches do some enhancements and some bug fixes to the Tegra194 PCIe platform driver like - Fixing Vendor-ID corruption - Mapping DBI space correctly - Updating DWC IP version - Handling error conditions properly Vidya Sagar (4): PCI: tegra: Fix ASPM-L1SS advertisement disable cod

[PATCH 1/4] PCI: tegra: Fix ASPM-L1SS advertisement disable code

2020-10-25 Thread Vidya Sagar
If the absence of CLKREQ# signal is indicated by the absence of "supports-clkreq" in the device-tree node, current driver is disabling the advertisement of ASPM-L1 Sub-States *before* the ASPM-L1 Sub-States offset is correctly initialized. Since default value of the ASPM-L1SS offset is zero, this i

[PATCH 2/4] PCI: tegra: Map configuration space as strongly ordered

2020-10-25 Thread Vidya Sagar
As specified in the comment for pci_remap_cfgspace() define in arch/arm64/include/asm/io.h file, PCIe configuration space should be mapped as strongly ordered. Hence changing to dev_pci_remap_cfgspace() from devm_ioremap_resource() for mapping DBI space as that is nothing but the root port's own co

Am I A Good Coach

2020-10-25 Thread SarahpWatsonf
Want the grownups we need in this, and */ Coach Handbags Clearance Outlet /* nothing more, says Kasky. Only have people doing the things that as 17 year olds we cannot. At an early NeverAgain meeting, parents asked */ Coach Outlet Store

Re: [PATCH net] net: hns3: clean up a return in hclge_tm_bp_setup()

2020-10-25 Thread Dan Carpenter
On Mon, Oct 26, 2020 at 11:18:16AM +0800, Yunsheng Lin wrote: > On 2020/10/23 19:22, Dan Carpenter wrote: > > Smatch complains that "ret" might be uninitialized if we don't enter > > the loop. We do always enter the loop so it's a false positive, but > > it's cleaner to just return a literal zero

[PATCH] kthread_worker: re-set CPU affinities if CPU come online

2020-10-25 Thread qiang . zhang
From: Zqiang When someone CPU offlined, the 'kthread_worker' which bind this CPU, will run anywhere, if this CPU online, recovery of 'kthread_worker' affinity by cpuhp notifiers. Signed-off-by: Zqiang --- include/linux/kthread.h | 2 ++ kernel/kthread.c| 35 +++

Re: [PATCH 2/2] power: supply: mt6360_charger: add MT6360 charger support

2020-10-25 Thread Gene Chen
Krzysztof Kozlowski 於 2020年10月16日 週五 下午11:52寫道: > > On Wed, Sep 23, 2020 at 07:18:30PM +0800, Gene Chen wrote: > > From: Gene Chen > > > > Add basic support for the battery charger for MT6360 PMIC > > > > Signed-off-by: Gene Chen > > --- > > drivers/power/supply/Kconfig | 11 + > > d

[PATCH v2 2/2] drm: dt-bindings: adi: axi-hdmi-tx: Add DT bindings for axi-hdmi-tx

2020-10-25 Thread Bogdan Togorean
Add YAML device tree bindings for Analog Devices Inc. AXI HDMI TX IP core DRM driver. Signed-off-by: Bogdan Togorean --- .../bindings/display/adi/adi,axi-hdmi-tx.yaml | 72 +++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/adi/adi

Re: [PATCH v3 1/5] scsi: ufs: atomic update for clkgating_enable

2020-10-25 Thread Can Guo
On 2020-10-26 14:13, Jaegeuk Kim wrote: On 10/26, Can Guo wrote: On 2020-10-24 23:06, Jaegeuk Kim wrote: > From: Jaegeuk Kim > > When giving a stress test which enables/disables clkgating, we hit > device > timeout sometimes. This patch avoids subtle racy condition to address > it. > > If we us

[PATCH v3 2/9] selftests/vm: use a common gup_test.h

2020-10-25 Thread John Hubbard
Avoid the need to copy-paste the gup_test ioctl commands and the struct gup_test definition, between the kernel and the user space application, by providing a new header file for these. This allows easier and safer adding of new ioctl calls, as well as reducing the overall line count. Details: Th

[PATCH v3 3/9] selftests/vm: rename run_vmtests --> run_vmtests.sh

2020-10-25 Thread John Hubbard
Rename to *.sh, in order to match the conventions of all of the other items in selftest/vm. The only reason not to use a .sh suffix a shell script like this, might be to make it look more like a normal program, but that's not an issue here. Signed-off-by: John Hubbard Cc: Jérôme Glisse Cc: Jona

[PATCH v3 0/9] selftests/vm: gup_test, hmm-tests, assorted improvements

2020-10-25 Thread John Hubbard
Hi, Reposting for -rc1, with some fixes, and an additional path at the end, too. I've swept through and looked for problems, as well. Changes since v2 [1]: * Rebased onto 5.10-rc1 * Fixed an improper ".." include path, indentified by Linus [2]. * Added an "if (cmd == DUMP_USER_PAGES_TEST)" gua

[PATCH v2 1/2] drm: adi: axi-hdmi-tx: Add support for AXI HDMI TX IP core

2020-10-25 Thread Bogdan Togorean
From: Lars-Peter Clausen The AXI HDMI HDL driver is the driver for the HDL graphics core which is used on various FPGA designs. It's mostly used to interface with the ADV7511 bridge driver on some Zynq boards (e.g. ZC702 & ZedBoard). Link: https://wiki.analog.com/resources/tools-software/linux-

[PATCH v3 7/9] selftests/vm: run_vmtests.sh: update and clean up gup_test invocation

2020-10-25 Thread John Hubbard
Run benchmarks on the _fast variants of gup and pup, as originally intended. Run the new gup_test sub-test: dump pages. In addition to exercising the dump_page() call, it also demonstrates the various options you can use to specify which pages to dump, and how. Signed-off-by: John Hubbard Cc: J

[PATCH v3 1/9] mm/gup_benchmark: rename to mm/gup_test

2020-10-25 Thread John Hubbard
Rename nearly every "gup_benchmark" reference and file name to "gup_test". The one exception is for the actual gup benchmark test itself. The current code already does a *little* bit more than benchmarking, and definitely covers more than get_user_pages_fast(). More importantly, however, subseque

[PATCH v3 4/9] selftests/vm: minor cleanup: Makefile and gup_test.c

2020-10-25 Thread John Hubbard
A few cleanups that don't deserve separate patches, but that also should not clutter up other functional changes: 1. Remove an unnecessary #include 2. Restore the sorted order of TEST_GEN_FILES. 3. Add -lpthread to the common LDLIBS, as it is harmless and several tests use it. This gets rid

[PATCH v3 9/9] selftests/vm: 2x speedup for run_vmtests.sh

2020-10-25 Thread John Hubbard
Each invocation of userfaultfd for "anon" and "shmem" was taking about 6.5 sec to run, contributing to an overall run time of about 22 sec for run_vmtests.sh. Reduce the size and bounce input values to the userfaultfd invocation within run_vmtests.sh, enough to get each invocation down to about 1.

[PATCH v3 6/9] selftests/vm: gup_test: introduce the dump_pages() sub-test

2020-10-25 Thread John Hubbard
For quite a while, I was doing a quick hack to gup_test.c (previously, gup_benchmark.c) whenever I wanted to try out my changes to dump_page(). This makes that hack unnecessary, and instead allows anyone to easily get the same coverage from a user space program. That saves a lot of time because yo

[PATCH v3 5/9] selftests/vm: only some gup_test items are really benchmarks

2020-10-25 Thread John Hubbard
Therefore, some minor cleanup and improvements are in order: 1. Rename the other items appropriately. 2. Stop reporting timing information on the non-benchmark items. It's still being recorded and is available, but there's no point in cluttering up the report with data that no one reasonabl

[PATCH v3 8/9] selftests/vm: hmm-tests: remove the libhugetlbfs dependency

2020-10-25 Thread John Hubbard
HMM selftests are incredibly useful, but they are only effective if people actually build and run them. All the other tests in selftests/vm can be built with very standard, always-available libraries: libpthread, librt. The hmm-tests.c program, on the other hand, requires something that is (much)

[PATCH 2/2] arm64: tegra: Fix DT binding for IO High Voltage entry

2020-10-25 Thread Vidya Sagar
Fix the device-tree entry that represents I/O High Voltage property by replacing 'nvidia,io-high-voltage' with 'nvidia,io-hv' as the former entry is deprecated. Fixes: dbb72e2c305b ("arm64: tegra: Add configuration for PCIe C5 sideband signals") Signed-off-by: Vidya Sagar --- arch/arm64/boot/dt

[PATCH 1/2] dt-bindings: Fix entry name for I/O High Voltage property

2020-10-25 Thread Vidya Sagar
Correct the name of the I/O High Voltage Property from 'nvidia,io-high-voltage' to 'nvidia,io-hv'. Fixes: 2585a584f844 ("pinctrl: Add Tegra194 pinctrl DT bindings") Signed-off-by: Vidya Sagar --- .../devicetree/bindings/pinctrl/nvidia,tegra194-pinmux.txt | 2 +- 1 file changed, 1 insertion(

Re: [PATCH net] gtp: fix an use-before-init in gtp_newlink()

2020-10-25 Thread Masahiro Fujiwara
Hi, Thanks for the review. Will send a new patch with the fixes soon. Fujiwara On Mon, Oct 26, 2020 at 6:05 AM Jakub Kicinski wrote: > > On Sat, 24 Oct 2020 15:42:33 + Masahiro Fujiwara wrote: > > *_pdp_find() from gtp_encap_recv() would trigger a crash when a peer > > sends GTP packet

[PATCH 1/1] iommu: Fix deferred domain attachment in iommu_probe_device()

2020-10-25 Thread Lu Baolu
The IOMMU core has support for deferring the attachment of default domain to device. Fix a missed deferred attaching check in iommu_probe_device(). Fixes: cf193888bfbd3 ("iommu: Move new probe_device path to separate function") Cc: sta...@vger.kernel.org # v5.8+ Signed-off-by: Lu Baolu --- drive

ping //Re: [PATCH v2] arm:traps: Don't print stack or raw PC/LR hex values in backtraces

2020-10-25 Thread Xiaoming Ni
ping On 2020/10/16 10:31, Xiaoming Ni wrote: Printing raw pointer values in backtraces has potential security implications and are of questionable value anyway. This patch follows x86 and arm64's lead and removes the "Exception stack:" dump from kernel backtraces: commit a25ffd3a6302a6

[PATCH] arm:traps:Don't dump the memory in non-system reset scenarios

2020-10-25 Thread Xiaoming Ni
Do not dump the memory in non-system reset scenarios to prevent virtual address information leakage. This patch follows x86 and arm64's lead and removes the "Exception stack:" dump from kernel backtraces: commit a25ffd3a6302a6 ("arm64: traps: Don't print stack or raw PC/LR values

Re: [PATCH v3 09/20] perf arm-spe: Refactor address packet handling

2020-10-25 Thread Leo Yan
On Fri, Oct 23, 2020 at 06:53:35PM +0100, André Przywara wrote: > On 22/10/2020 15:58, Leo Yan wrote: > > Hi Leo, > > > This patch is to refactor address packet handling, it defines macros for > > address packet's header and payload, these macros are used by decoder > > and the dump flow. > > >

[PATCH] arm64: dts: imx8mp-evk: add CAN support

2020-10-25 Thread Joakim Zhang
Add CAN device node and pinctrl on i.MX8MP evk board. Signed-off-by: Joakim Zhang --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 62 arch/arm64/boot/dts/freescale/imx8mp.dtsi| 30 ++ 2 files changed, 92 insertions(+) diff --git a/arch/arm64/boot/dts/freescal

Re: [PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-10-25 Thread Hector Yuan
On Fri, 2020-10-23 at 14:57 +0530, Viresh Kumar wrote: > On 23-10-20, 17:08, Hector Yuan wrote: > > On Fri, 2020-10-23 at 13:58 +0530, Viresh Kumar wrote: > > > On 23-10-20, 16:24, Hector Yuan wrote: > > > > This patchset includes 6 patches and depends on the MT6779 DTS patch[1] > > > > submitted

Re: [PATCH v1 3/6] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-25 Thread Hector Yuan
On Fri, 2020-10-23 at 14:05 +0530, Viresh Kumar wrote: > On 23-10-20, 16:24, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- > > .../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 46 > >

Re: [PATCH v1 2/6] dt-bindings: arm: cpus: Document 'mtk,freq-domain' property

2020-10-25 Thread Hector Yuan
On Fri, 2020-10-23 at 13:59 +0530, Viresh Kumar wrote: > On 23-10-20, 16:24, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree documentation for 'mtk,freq-domain' property specific > > to Mediatek CPUs. This property is used to reference the CPUFREQ node > > along with the domain

Re: [PATCH v2 5/5] scsi: ufs: fix clkgating on/off correctly

2020-10-25 Thread Jaegeuk Kim
On 10/26, Can Guo wrote: > On 2020-10-23 08:53, Jaegeuk Kim wrote: > > On 10/21, Can Guo wrote: > > > On 2020-10-21 12:52, jaeg...@kernel.org wrote: > > > > On 10/21, Can Guo wrote: > > > > > On 2020-10-21 03:52, Jaegeuk Kim wrote: > > > > > > The below call stack prevents clk_gating at every IO co

Re: [PATCH v1 3/6] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-25 Thread Hector Yuan
On Fri, 2020-10-23 at 11:15 -0500, Rob Herring wrote: > On Fri, 23 Oct 2020 16:24:50 +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- > > .../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 4

Re: [PATCH v3 1/5] scsi: ufs: atomic update for clkgating_enable

2020-10-25 Thread Jaegeuk Kim
On 10/26, Can Guo wrote: > On 2020-10-24 23:06, Jaegeuk Kim wrote: > > From: Jaegeuk Kim > > > > When giving a stress test which enables/disables clkgating, we hit > > device > > timeout sometimes. This patch avoids subtle racy condition to address > > it. > > > > If we use __ufshcd_release(), I

Re: [PATCH v1 2/6] dt-bindings: arm: cpus: Document 'mtk,freq-domain' property

2020-10-25 Thread Hector Yuan
On Fri, 2020-10-23 at 11:20 -0500, Rob Herring wrote: > +Sudeep > > On Fri, Oct 23, 2020 at 04:24:49PM +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree documentation for 'mtk,freq-domain' property specific > > to Mediatek CPUs. This property is used to reference the CPUFR

Re: [PATCH] usb: dwc2: Avoid leaving the error_debugfs label unused

2020-10-25 Thread Minas Harutyunyan
On 10/17/2020 8:50 PM, Martin Blumenstingl wrote: > The error_debugfs label is only used when either > CONFIG_USB_DWC2_PERIPHERAL or CONFIG_USB_DWC2_DUAL_ROLE is enabled. Add > the same #if to the error_debugfs label itself as the code which uses > this label already has. > > This avoids the follo

drivers/mmc/host/sunxi-mmc.c:1181:34: warning: unused variable 'sunxi_mmc_of_match'

2020-10-25 Thread kernel test robot
Hi Krzysztof, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3650b228f83adda7e5ee532e2b90429c03f7b9ec commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers date:

[PATCH v4 3/3] Change serdes lane parameter from u8 type to int.

2020-10-25 Thread Pavana Sharma
Returning 0 is no more an error case with MV88E6393 family which has serdes lane numbers 0, 9 or 10. So with this change .serdes_get_lane will return lane number or error (-ENODEV). Signed-off-by: Pavana Sharma --- drivers/net/dsa/mv88e6xxx/chip.c | 28 +-- drivers/net/dsa/mv88e6xxx/ch

[PATCH v4 2/3] Add phy interface for 5GBASER mode

2020-10-25 Thread Pavana Sharma
Signed-off-by: Pavana Sharma --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 3a09d2bf69ea..9de7c57cfd38 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -107,6 +107,7 @@ typedef enum { PHY_INTERFAC

Re: [PATCH v3 01/56] scripts: kernel-doc: fix typedef parsing

2020-10-25 Thread Mauro Carvalho Chehab
Em Fri, 23 Oct 2020 11:22:26 -0600 Jonathan Corbet escreveu: > On Fri, 23 Oct 2020 18:32:48 +0200 > Mauro Carvalho Chehab wrote: > > > The include/linux/genalloc.h file defined this typedef: > > > > typedef unsigned long (*genpool_algo_t)(unsigned long *map,unsigned > > long size,unsigned

[PATCH] vt_ioctl: fix GIO_UNIMAP regression

2020-10-25 Thread Jiri Slaby
In commit 5ba127878722, we shuffled with the check of 'perm'. But my brain somehow inverted the condition in 'do_unimap_ioctl' (I thought it is ||, not &&), so GIO_UNIMAP stopped working completely. Move the 'perm' checks back to do_unimap_ioctl and do them right again. In fact, this reverts this

[PATCH v4 1/3] Add support for mv88e6393x family of Marvell.

2020-10-25 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Signed-off-by: Pavana Sh

[PATCH v4 0/3] Add support for mv88e6393x family of Marvell.

2020-10-25 Thread Pavana Sharma
Hi, Thanks for the review. Following is the updated patchset. The 6393X family has MV88E6191X, MV88E6193X and MV88E6393X products listed in Gigabit Ethernet and Gigabit 10G+ Ethernet categories. There are no 6393 devices (without X) but there is 6191 device (without X)from a different family.

Re: [PATCH v8 2/6] rcu/segcblist: Add counters to segcblist datastructure

2020-10-25 Thread Joel Fernandes
On Mon, Oct 26, 2020 at 01:50:58AM +0100, Frederic Weisbecker wrote: > On Wed, Oct 21, 2020 at 03:08:09PM -0400, Joel Fernandes (Google) wrote: > > bool rcu_segcblist_accelerate(struct rcu_segcblist *rsclp, unsigned long > > seq) > > { > > - int i; > > + int i, j; > > > > WARN_ON_ONCE(

Re: [PATCH v8 2/6] rcu/segcblist: Add counters to segcblist datastructure

2020-10-25 Thread Joel Fernandes
On Mon, Oct 26, 2020 at 01:32:12AM +0100, Frederic Weisbecker wrote: > On Wed, Oct 21, 2020 at 03:08:09PM -0400, Joel Fernandes (Google) wrote: > > @@ -307,6 +317,7 @@ void rcu_segcblist_extract_done_cbs(struct > > rcu_segcblist *rsclp, > > > > if (!rcu_segcblist_ready_cbs(rsclp)) > >

Re: [PATCH] clk: exynos7: Mark aclk_fsys1_200 as critical

2020-10-25 Thread Chanwoo Choi
Hi Paweł Chmiel, On 10/25/20 12:43 AM, Paweł Chmiel wrote: > This clock must be always enabled to allow access to any registers in > fsys1 CMU. Until proper solution based on runtime PM is applied > (similar to what was done for Exynos5433), mark that clock as critical > so it won't be disabled. >

Re: [RESEND v4 1/2] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2020-10-25 Thread Chenyi Qiang
On 10/21/2020 6:01 AM, Sean Christopherson wrote: On Mon, Oct 12, 2020 at 11:35:41AM +0800, Chenyi Qiang wrote: From: Sean Christopherson Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits 15:0,

Re: [RESEND v4 2/2] KVM: VMX: Enable bus lock VM exit

2020-10-25 Thread Chenyi Qiang
On 10/21/2020 6:19 AM, Sean Christopherson wrote: On Mon, Oct 12, 2020 at 11:35:42AM +0800, Chenyi Qiang wrote: @@ -6138,6 +6149,26 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastpath_t exit_fastpath) return 0; } +static int vmx_handle_exit(struct kvm_vcpu *vcpu, fastp

[PATCH 2/2] PCI: layerscape: Add EP mode support for LX2160A rev2

2020-10-25 Thread Zhiqiang Hou
From: Hou Zhiqiang The LX2160A rev2 uses the same PCIe IP as LS2088A, but LX2160A rev2 PCIe controller is integrated with different stride between PFs' register address. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pci-layerscape-ep.c | 7 +++ 1 file changed, 7 insertions(+)

[PATCH 1/2] dt-bindings: pci: layerscape-pci: Add compatible strings for LX2160A rev2

2020-10-25 Thread Zhiqiang Hou
From: Hou Zhiqiang Add PCIe Endpoint mode compatible string "fsl,lx2160ar2-pcie-ep" Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documenta

RE: WARNING in dma_map_page_attrs

2020-10-25 Thread Parav Pandit
Hi Christoph, > From: Jakub Kicinski > Sent: Saturday, October 24, 2020 11:45 PM > > CC: rdma, looks like rdma from the stack trace > > On Fri, 23 Oct 2020 20:07:17 -0700 syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > > > HEAD commit:3cb12d27 Merge tag 'net-

RE: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-25 Thread Avri Altman
> On 2020-10-22 14:37, Avri Altman wrote: > >> Since WB feature has been added, WB related sysfs entries can be > >> accessed > >> even when an UFS device does not support WB feature. In that case, the > >> descriptors which are not supported by the UFS device may be wrongly > >> reported when th

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-25 Thread John Hubbard
On 10/25/20 9:21 PM, Matthew Wilcox wrote: On Thu, Oct 22, 2020 at 12:58:14PM -0700, John Hubbard wrote: On 10/22/20 4:49 AM, Matthew Wilcox wrote: On Tue, Oct 20, 2020 at 01:25:59AM -0700, John Hubbard wrote: Should copy_to_guest() use pin_user_pages_unlocked() instead of gup_unlocked? We wro

[PATCHv9] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2020-10-25 Thread Zhiqiang Hou
From: Xiaowei Bao Add PCIe EP node for ls1088a to support EP mode. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang Reviewed-by: Andrew Murray --- V9: - Rebase the patch since V8 patch was not accepted due to conflict. - Correct the number of outbound windows. - Add lables for EP nod

amdgpu crashes on OOM

2020-10-25 Thread Alex Xu (Hello71)
Hi, I frequently encounter OOM on my system, mostly due to my own fault. Recently, I noticed that not only does a swap storm happen and OOM killer gets invoked, but the graphics output freezes permanently. Checking the kernel messages, I see: kworker/u24:4: page allocation failure: order:5, m

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-25 Thread Matthew Wilcox
On Thu, Oct 22, 2020 at 12:58:14PM -0700, John Hubbard wrote: > On 10/22/20 4:49 AM, Matthew Wilcox wrote: > > On Tue, Oct 20, 2020 at 01:25:59AM -0700, John Hubbard wrote: > > > Should copy_to_guest() use pin_user_pages_unlocked() instead of > > > gup_unlocked? > > > We wrote a "Case 5" in Docum

[PATCH v3 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl

2020-10-25 Thread Daeho Jeong
From: Daeho Jeong Added a new F2FS_IOC_SET_COMPRESS_OPTION ioctl to change file compression option of a file. struct f2fs_comp_option { u8 algorithm; => compression algorithm => 0:lzo, 1:lz4, 2:zstd, 3:lzorle u8 log_cluster_size; => log scale cluster si

[PATCH v3 1/2] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl

2020-10-25 Thread Daeho Jeong
From: Daeho Jeong Added a new F2FS_IOC_GET_COMPRESS_OPTION ioctl to get file compression option of a file. struct f2fs_comp_option { u8 algorithm; => compression algorithm => 0:lzo, 1:lz4, 2:zstd, 3:lzorle u8 log_cluster_size; => log scale cluster size

[PATCH v3 08/12] mm: Remove nr_entries parameter from pagevec_lookup_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
All callers want to fetch the full size of the pvec. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagevec.h | 2 +- mm/swap.c | 4 ++-- mm/truncate.c | 5 ++--- 3 files changed, 5 insertions(+), 6 deletion

[PATCH v3 03/12] mm/filemap: Add helper for finding pages

2020-10-25 Thread Matthew Wilcox (Oracle)
There is a lot of common code in find_get_entries(), find_get_pages_range() and find_get_pages_range_tag(). Factor out xas_find_get_entry() which simplifies all three functions. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- mm/filemap.c | 98 +

[PATCH v3 02/12] mm/shmem: Use pagevec_lookup in shmem_unlock_mapping

2020-10-25 Thread Matthew Wilcox (Oracle)
The comment shows that the reason for using find_get_entries() is now stale; find_get_pages() will not return 0 if it hits a consecutive run of swap entries, and I don't believe it has since 2011. pagevec_lookup() is a simpler function to use than find_get_pages(), so use it instead. Signed-off-b

[PATCH v3 07/12] mm: Add an 'end' parameter to pagevec_lookup_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
Simplifies the callers and uses the existing functionality in find_get_entries(). We can also drop the final argument of truncate_exceptional_pvec_entries() and simplify the logic in that function. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski ---

[PATCH v3 09/12] mm: Pass pvec directly to find_get_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
All callers of find_get_entries() use a pvec, so pass it directly instead of manipulating it in the caller. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagemap.h | 3 +-- mm/filemap.c| 21 + mm/s

[PATCH v3 05/12] mm: Add and use find_lock_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
We have three functions (shmem_undo_range(), truncate_inode_pages_range() and invalidate_mapping_pages()) which want exactly this function, so add it to filemap.c. Before this patch, shmem_undo_range() would split any compound page which overlaps either end of the range being punched in both the f

[PATCH v3 06/12] mm: Add an 'end' parameter to find_get_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
This simplifies the callers and leads to a more efficient implementation since the XArray has this functionality already. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagemap.h | 4 ++-- mm/filemap.c| 9 + m

[PATCH v3 10/12] mm: Remove pagevec_lookup_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
pagevec_lookup_entries() is now just a wrapper around find_get_entries() so remove it and convert all its callers. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Jan Kara Reviewed-by: William Kucharski --- include/linux/pagevec.h | 3 --- mm/swap.c | 36 ++--

[PATCH v3 00/12] Overhaul multi-page lookups for THP

2020-10-25 Thread Matthew Wilcox (Oracle)
This THP prep patchset changes several page cache iteration APIs to only return head pages. - It's only possible to tag head pages in the page cache, so only return head pages, not all their subpages. - Factor a lot of common code out of the various batch lookup routines - Add mapping_seek_h

[PATCH v3 01/12] mm: Make pagecache tagged lookups return only head pages

2020-10-25 Thread Matthew Wilcox (Oracle)
Pagecache tags are used for dirty page writeback. Since dirtiness is tracked on a per-THP basis, we only want to return the head page rather than each subpage of a tagged page. All the filesystems which use huge pages today are in-memory, so there are no tagged huge pages today. Signed-off-by: M

[PATCH v3 11/12] mm/truncate,shmem: Handle truncates that split THPs

2020-10-25 Thread Matthew Wilcox (Oracle)
Handle THP splitting in the parts of the truncation functions which already handle partial pages. Factor all that code out into a new function called truncate_inode_partial_page(). We lose the easy 'bail out' path if a truncate or hole punch is entirely within a single page. We can add some more

[PATCH v3 12/12] mm/filemap: Return only head pages from find_get_entries

2020-10-25 Thread Matthew Wilcox (Oracle)
All callers now expect head (and base) pages, and can handle multiple head pages in a single batch, so make find_get_entries() behave that way. Also take the opportunity to make it use the pagevec infrastructure instead of open-coding how pvecs behave. This has the side-effect of being able to app

[PATCH v3 04/12] mm/filemap: Add mapping_seek_hole_data

2020-10-25 Thread Matthew Wilcox (Oracle)
Rewrite shmem_seek_hole_data() and move it to filemap.c. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: William Kucharski --- include/linux/pagemap.h | 2 ++ mm/filemap.c| 76 + mm/shmem.c | 72 +++---

Re: [PATCH v2 5/6] pci: dwc: pci-exynos: rework the driver to support Exynos5433 variant

2020-10-25 Thread Jingoo Han
On 10/25/20, 10:49 PM, Jaehoon Chung wrote: > > Dear Jingoo, Hi Jaehoon, > On 10/24/20 12:12 PM, Jingoo Han wrote: > > On 10/23/20, 3:58 AM, Marek Szyprowski wrote: > >> > >> From: Jaehoon Chung > >> > >> Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: > >> dts: exynos:

[PATCH v2] PCI: check also dynamic IDs for duplicate in new_id_store()

2020-10-25 Thread Zhenzhong Duan
When a device ID data is writen to /sys/bus/pci/drivers/.../new_id, only static ID table is checked for duplicate and multiple dynamic ID entries of same kind are allowed to exist in a dynamic linked list. Fix it by calling pci_match_device() which checks both dynamic and static IDs. After fix, i

RE: [RFC PATCH 3/6] fpga: dfl: add an API to get the base device for dfl device

2020-10-25 Thread Wu, Hao
> Subject: [RFC PATCH 3/6] fpga: dfl: add an API to get the base device for dfl > device > > This patch adds an API for dfl devices to find which physical device > owns the DFL. > > This patch makes preparation for supporting DFL Ether Group private > feature driver. It uses this information to d

RE: [RFC PATCH 2/6] fpga: dfl: export network configuration info for DFL based FPGA

2020-10-25 Thread Wu, Hao
> Subject: [RFC PATCH 2/6] fpga: dfl: export network configuration info for DFL > based FPGA > > This patch makes preparation for supporting DFL Ether Group private > feature driver, which reads bitstream_id.vendor_net_cfg field to > determin the interconnection of network components on FPGA devic

Re: [PATCH v3 1/5] scsi: ufs: atomic update for clkgating_enable

2020-10-25 Thread Can Guo
On 2020-10-24 23:06, Jaegeuk Kim wrote: From: Jaegeuk Kim When giving a stress test which enables/disables clkgating, we hit device timeout sometimes. This patch avoids subtle racy condition to address it. If we use __ufshcd_release(), I've seen that gate_work can be called in parallel wi

Re: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-25 Thread Can Guo
Hi Avri, On 2020-10-22 14:37, Avri Altman wrote: Since WB feature has been added, WB related sysfs entries can be accessed even when an UFS device does not support WB feature. In that case, the descriptors which are not supported by the UFS device may be wrongly reported when they are accessed

[PATCH v2] ARM: dts: sun8i: add FriendlyArm ZeroPi support

2020-10-25 Thread Yu-Tung Chang
The ZeroPi is another fun board developed by FriendlyELEC for makers, hobbyists and fans. ZeroPi key features - Allwinner H3, Quad-core Cortex-A7@1.2GHz - 256MB/512MB DDR3 RAM - microsd slot - 10/100/1000Mbps Ethernet - Debug Serial Port - DC 5V/2A power-supply Signed-off-by: Yu-Tung Chang ---

Re: [PATCH net] net: hns3: clean up a return in hclge_tm_bp_setup()

2020-10-25 Thread Yunsheng Lin
On 2020/10/23 19:22, Dan Carpenter wrote: > Smatch complains that "ret" might be uninitialized if we don't enter > the loop. We do always enter the loop so it's a false positive, but > it's cleaner to just return a literal zero and that silences the > warning as well. Thanks for the clean up. Min

Re: [PATCH v2 5/5] dt-bindings: aspeed-lpc: Remove LPC partitioning

2020-10-25 Thread Andrew Jeffery
Hi Wang Chia-Wei, On Mon, 5 Oct 2020, at 18:58, Chia-Wei, Wang wrote: > The LPC controller has no concept of the BMC and the Host partitions. > This patch fixes the documentation by removing the description on LPC > partitions. The register offsets illustrated in the DTS node examples > are also f

Re: [PATCH v2 5/5] scsi: ufs: fix clkgating on/off correctly

2020-10-25 Thread Can Guo
On 2020-10-23 08:53, Jaegeuk Kim wrote: On 10/21, Can Guo wrote: On 2020-10-21 12:52, jaeg...@kernel.org wrote: > On 10/21, Can Guo wrote: > > On 2020-10-21 03:52, Jaegeuk Kim wrote: > > > The below call stack prevents clk_gating at every IO completion. > > > We can remove the condition, ufshcd_

Re: [PATCH v6 0/2] PM / devfreq: Add governor feature and attribute flag

2020-10-25 Thread Chanwoo Choi
On 10/26/20 11:50 AM, Chanwoo Choi wrote: > Each devfreq governor can have the different sysfs attributes and features. > In order to provide the only available sysfs attribute to user-space, > add governor attribute flag with DEVFREQ_GOV_ATTR_[attribute name] defintion. > > Also, each governor is

Re: [PATCH v2] PM / devfreq: Remove redundant governor_name from struct devfreq

2020-10-25 Thread Chanwoo Choi
On 10/23/20 7:32 PM, Chanwoo Choi wrote: > The devfreq structure instance contains the governor_name and a governor > instance. When need to show the governor name, better to use the name > of devfreq_governor structure. So, governor_name variable in struct devfreq > is a redundant and unneeded var

Re: [PATCH v6 48/52] PM / devfreq: tegra20: Relax Kconfig dependency

2020-10-25 Thread Chanwoo Choi
On 10/26/20 7:17 AM, Dmitry Osipenko wrote: > The Tegra EMC driver now could be compiled as a loadable kernel module. > Currently devfreq driver depends on the EMC/MC drivers in Kconfig, and > thus, devfreq is forced to be a kernel module if EMC is compiled as a > module. This build dependency coul

RE: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used ring

2020-10-25 Thread Sherry Sun
Hi Greg & Christoph, > Subject: Re: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used > ring > > On Thu, Oct 22, 2020 at 01:06:36PM +0800, Sherry Sun wrote: > > We don't need to allocate and reassign the used ring here and remove > > the used_address_updated flag.Since RC has alloca

Re: [PATCH v6 47/52] PM / devfreq: tegra20: Silence deferred probe error

2020-10-25 Thread Chanwoo Choi
On 10/26/20 7:17 AM, Dmitry Osipenko wrote: > Tegra EMC driver was turned into a regular kernel driver, meaning that it > could be compiled as a loadable kernel module now. Hence EMC clock isn't > guaranteed to be available and clk_get("emc") may return -EPROBE_DEFER. > Let's silence the deferred p

Re: [PATCH] mm: swap: Use memset to fill the swap_map with SWAP_HAS_CACHE

2020-10-25 Thread linmiaohe
Andrew Morton wrote: > On Mon, 21 Sep 2020 08:22:24 -0400 Miaohe Lin wrote: > >> We could use helper memset to fill the swap_map with SWAP_HAS_CACHE >> instead of a direct loop here to simplify the code. Also we can remove >> the local variable i and map this way. >> *slot = swp_entry(si->

Re: [PATCH v6 50/52] PM / devfreq: tegra30: Silence deferred probe error

2020-10-25 Thread Chanwoo Choi
On 10/26/20 7:17 AM, Dmitry Osipenko wrote: > Tegra EMC driver was turned into a regular kernel driver, meaning that it > could be compiled as a loadable kernel module now. Hence EMC clock isn't > guaranteed to be available and clk_get("emc") may return -EPROBE_DEFER. > Let's silence the deferred p

Re: [PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-25 Thread Billy Tsai
On 2020/10/26, 10:21 AM, Andrew Jeffery wrote: On Mon, 26 Oct 2020, at 12:33, Billy Tsai wrote: > > On 2020/10/26, 9:27 AM, Andrew Jeffery wrote: > > On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > > > At ast2600a1 we change feature of master sgp

Re: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-25 Thread Can Guo
On 2020-10-23 14:35, Daejun Park wrote: Hi, Can Guo Since WB feature has been added, WB related sysfs entries can be accessed even when an UFS device does not support WB feature. In that case, the descriptors which are not supported by the UFS device may be wrongly reported when they are acces

Re: [PATCH] stop_machine: Mark functions as notrace

2020-10-25 Thread Zong Li
On Sat, Oct 24, 2020 at 3:29 AM Colin Ian King wrote: > > On 21/10/2020 08:38, Zong Li wrote: > > Like the commit cb9d7fd51d9f ("watchdog: Mark watchdog touch functions > > as notrace"), some architectures assume that the stopped CPUs don't make > > function calls to traceable functions when they

RE: [PATCH V3 1/4] misc: vop: change the way of allocating vring and device page

2020-10-25 Thread Sherry Sun
Hi Christoph, > > > static int mic_dp_init(struct mic_device *mdev) { > > - mdev->dp = kzalloc(MIC_DP_SIZE, GFP_KERNEL); > > + mdev->dp = dma_alloc_coherent(&mdev->pdev->dev, MIC_DP_SIZE, > > + &mdev->dp_dma_addr, GFP_KERNEL); > > if (!mdev->dp) > >

Re: [PATCH 1/2] PCI: export pci_match_device()

2020-10-25 Thread Zhenzhong Duan
On Thu, Oct 22, 2020 at 11:21 PM Christoph Hellwig wrote: > > On Wed, Oct 21, 2020 at 04:10:29PM +0800, Zhenzhong Duan wrote: > > pci_match_id() is deprecated as it doesn't catch any dynamic ids that > > a driver might want to check for. > > > > Export pci_match_device() as a replacement which sup

Re: [PATCH v2 5/6] pci: dwc: pci-exynos: rework the driver to support Exynos5433 variant

2020-10-25 Thread Jaehoon Chung
Dear Jingoo, On 10/24/20 12:12 PM, Jingoo Han wrote: > On 10/23/20, 3:58 AM, Marek Szyprowski wrote: >> >> From: Jaehoon Chung >> >> Exynos5440 SoC support has been dropped since commit 8c83315da1cf ("ARM: >> dts: exynos: Remove Exynos5440"). Rework this driver to support DWC PCIe >> variant foun

Re: [PATCH] mm/swap_state: Skip meaningless swap cache readahead when ra_info.win == 0

2020-10-25 Thread linmiaohe
Andrew Morton wrote: > On Fri, 9 Oct 2020 09:30:59 -0400 Miaohe Lin wrote: > >> swap_ra_info() may leave ra_info untouched in non_swap_entry() case as >> page table lock is not held. In this case, we have ra_info.nr_pte == 0 >> and it is meaningless to continue with swap cache readahead. Skip s

Re: [PATCH v2 0/5] Remove LPC register partitioning

2020-10-25 Thread Andrew Jeffery
On Tue, 20 Oct 2020, at 16:33, ChiaWei Wang wrote: > Hi All, > > Do you have any comment on the v2 changes? > Thanks. > Hmm, seems I'm missing patches 3/5 and 4/5 from my inbox. Weird. Anyway, sorry for the delay, I'm looking at them now. Andrew

[PATCH v6 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-25 Thread Chanwoo Choi
DEVFREQ supports the default governors like performance, simple_ondemand and also allows the devfreq driver to add their own governor like tegra30-devfreq.c according to their requirement. In result, some sysfs attributes are useful or not useful. Prior to that the user can access all sysfs attribu

[PATCH v6 1/2] PM / devfreq: Add governor feature flag

2020-10-25 Thread Chanwoo Choi
The devfreq governor is able to have the specific flag as follows in order to implement the specific feature. For example, devfreq allows user to change the governors on runtime via sysfs interface. But, if devfreq device uses 'passive' governor, don't allow user to change the governor. For this ca

  1   2   3   4   5   >