Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-22 Thread Tony Lindgren
* Drew Fustini [200914 10:44]: > Document the values in pinctrl-single,pins when #pinctrl-cells = <2> > > Fixes: 27c90e5e48d0 ("ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2") > Reported-by: Trent Piepho > Link: https://lore.kernel.org/linux-omap/3139716.CMS8C0sQ7x@zen.local/ > Signed-o

Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-22 Thread Tony Lindgren
* Drew Fustini [200917 10:39]: > On Thu, Sep 17, 2020 at 03:00:36AM -0700, Trent Piepho wrote: > > On Thu, Sep 17, 2020 at 2:20 AM Drew Fustini wrote: > > > > > > On Thu, Sep 17, 2020 at 02:03:46AM -0700, Trent Piepho wrote: > > > > On Mon, Sep 14, 2020 at 3:44 AM Drew Fustini > > > > wrote: >

Re: [PATCH] MIPS: BCM47XX: Remove the needless check with the 1074K

2020-09-22 Thread Rafał Miłecki
On Wed, 23 Sep 2020 at 08:54, Wei Li wrote: > As there is no known soc powered by mips 1074K in bcm47xx series, > the check with 1074K is needless. So just remove it. > > Link: https://wireless.wiki.kernel.org/en/users/Drivers/b43/soc > Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.

[PATCH] MIPS: Add the missing 'CPU_1074K' into __get_cpu_type()

2020-09-22 Thread Wei Li
Commit 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") split 1074K from the 74K as an unique CPU type, while it missed to add the 'CPU_1074K' in __get_cpu_type(). So let's add it back. Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") Signed-off-by: Wei Li --- arch/mips/in

Re: [PATCH v2] pinctrl: single: check pinctrl_spec.args_count > 3

2020-09-22 Thread Tony Lindgren
* Drew Fustini [200913 23:18]: > pinctrl_spec.args_count can either be 2 when #pinctrl-cells = 1 or > 3 when #pinctrl-cells = 2. > > There is currently only a check to make sure that it is 2 or greater. > This patch adds a check to make sure it is not greater than 3. > > Fixes: a1339541 ("pi

[PATCH] MIPS: BCM47XX: Remove the needless check with the 1074K

2020-09-22 Thread Wei Li
As there is no known soc powered by mips 1074K in bcm47xx series, the check with 1074K is needless. So just remove it. Link: https://wireless.wiki.kernel.org/en/users/Drivers/b43/soc Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") Signed-off-by: Wei Li --- arch/mips/bcm47xx/setup

Re: [PATCH v2] pinctrl: single: fix debug output when #pinctrl-cells = 2

2020-09-22 Thread Tony Lindgren
* Drew Fustini [200913 23:04]: > The debug output in pcs_parse_one_pinctrl_entry() needs to be updated > to print the correct pinctrl register value when #pinctrl-cells is 2. > > Fixes: a1339541 ("pinctrl: single: parse #pinctrl-cells = 2") > Reported-by: Trent Piepho > Link: https://lore.ke

Re: [PATCH 3/5] mm: Rework return value for copy_one_pte()

2020-09-22 Thread Oleg Nesterov
On 09/22, Peter Xu wrote: > > On Tue, Sep 22, 2020 at 08:23:18PM +0200, Oleg Nesterov wrote: > > > > But I still think that !pte_none() -> pte_none() transition is not possible > > under mmap_write_lock()... > > > > OK, let me repeat I don't understans these code paths enough, let me reword: > > I

[PATCH v12 2/4] scsi: ufs: Introduce HPB feature

2020-09-22 Thread Daejun Park
This is a patch for the HPB feature. This patch adds HPB function calls to UFS core driver. Reviewed-by: Bart Van Assche Acked-by: Avri Altman Tested-by: Bean Huo Signed-off-by: Daejun Park --- drivers/scsi/ufs/Kconfig | 10 + drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufshcd.c |

[PATCH v12 3/4] scsi: ufs: L2P map management for HPB read

2020-09-22 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called a

[PATCH v12 4/4] scsi: ufs: Prepare HPB read for cached sub-region

2020-09-22 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the maxim

RE: [PATCH 1/5] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-addr' property

2020-09-22 Thread Ran Wang
Hi Rob, On Wednesday, September 23, 2020 10:33 AM, Rob Herring wrote: > > On Wed, Sep 16, 2020 at 04:18:27PM +0800, Ran Wang wrote: > > From: Biwen Li > > > > The 'fsl,ippdexpcr1-alt-addr' property is used to handle an errata > > A-008646 on LS1021A > > > > Signed-off-by: Biwen Li > > Signed-of

[PATCH v12 1/4] scsi: ufs: Add HPB feature related parameters

2020-09-22 Thread Daejun Park
This is a patch for parameters to be used for HPB feature. Reviewed-by: Bart Van Assche Reviewed-by: Can Guo Acked-by: Avri Altman Tested-by: Bean Huo Signed-off-by: Daejun Park --- drivers/scsi/ufs/ufs.h | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/scsi/ufs/ufs

[PATCH v12 0/4] scsi: ufs: Add Host Performance Booster Support

2020-09-22 Thread Daejun Park
Changelog: v11 -> v12 1. Fixed to return error value when HPB fails to initialize pinned active region. 2. Fixed to disable HPB feature if HPB fails to allocate essential memory and workqueue. 3. Fixed to change proper sub-region state when region is already evicted. v10 -> v11 Add a newline at

[PATCH v2 3/5] arm: dts: ls1021a: enable RCPM workaround for erratum A-008646

2020-09-22 Thread Ran Wang
From: Biwen Li The patch fixes a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- Change in v2: - Change subject of commit message to be consistent with other related patches. arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1 i

Re: [PATCH 4.19] dmaengine: at_hdmac: Fix memory leak

2020-09-22 Thread Ludovic Desroches
On Sun, Sep 20, 2020 at 10:28:38AM +0200, Pavel Machek wrote: > Date: Sun, 20 Sep 2020 10:28:38 +0200 > From: Pavel Machek > To: linux-kernel@vger.kernel.org, dmaeng...@vger.kernel.org, > linux-arm-ker...@lists.infradead.org, dan.j.willi...@intel.com, > vk...@kernel.org, ludovic.desroc...@microc

[PATCH v2 4/5] arm: dts: ls1021a: fix flextimer failed to wake system

2020-09-22 Thread Ran Wang
The data of property 'fsl,rcpm-wakeup' is not corrcet, which causing RCPM driver incorrectly program register IPPDEXPCR1, then flextimer is wrongly clock gated during system suspend, can't send interrupt to wake. Signed-off-by: Ran Wang Acked-by: Li Yang --- Change in v2: - None arch/arm/boot

[PATCH v2 1/5] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-addr' property

2020-09-22 Thread Ran Wang
From: Biwen Li The 'fsl,ippdexpcr1-alt-addr' property is used to handle an errata A-008646 on LS1021A Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- Change in v2: - None Documentation/devicetree/bindings/soc/fsl/rcpm.txt | 19 +++ 1 file changed, 19 insertions(+) diff

[PATCH] irqchip/gic-v4.1: Optimize the wait for the completion of the analysis of the VPT

2020-09-22 Thread Shenming Lu
Right after a vPE is made resident, the code starts polling the GICR_VPENDBASER.Dirty bit until it becomes 0, where the delay_us is set to 10. But in our measurement, it takes only hundreds of nanoseconds, or 1~2 microseconds, to finish parsing the VPT in most cases. And we also measured the time f

Re: [PATCH] ARM: dts: am335x: guardian: switch to AM33XX_PADCONF

2020-09-22 Thread Tony Lindgren
* Drew Fustini [200921 09:59]: > On Mon, Sep 21, 2020 at 09:47:07AM +0300, Tony Lindgren wrote: > > * Drew Fustini [200919 19:53]: > > > Change the pin defintions from AM33XX_IOPAD to AM33XX_PADCONF macro so > > > that it correctly handles changes to #pinctrl-cells. > > > > Thanks for fixing thi

Re: [PATCH 2/2] mm,swap: skip swap readahead if page was obtained instantaneously

2020-09-22 Thread Christoph Hellwig
On Mon, Sep 21, 2020 at 10:01:48PM -0400, Rik van Riel wrote: > + struct page *page; > unsigned long entry_offset = swp_offset(entry); > unsigned long offset = entry_offset; > unsigned long start_offset, end_offset; > @@ -668,11 +669,18 @@ struct page *swap_cluster_readahead(s

[PATCH v3 2/3] dmaengine: add peripheral configuration

2020-09-22 Thread Vinod Koul
Some complex dmaengine controllers have capability to program the peripheral device, so pass on the peripheral configuration as part of dma_slave_config Signed-off-by: Vinod Koul --- include/linux/dmaengine.h | 91 +++ 1 file changed, 91 insertions(+) diff --

[PATCH v3 3/3] dmaengine: qcom: Add GPI dma driver

2020-09-22 Thread Vinod Koul
This controller provides DMAengine capabilities for a variety of peripheral buses such as I2C, UART, and SPI. By using GPI dmaengine driver, bus drivers can use a standardize interface that is protocol independent to transfer data between memory and peripheral. Signed-off-by: Vinod Koul --- driv

[PATCH v3 0/3] dmaengine: Add support for QCOM GSI dma controller

2020-09-22 Thread Vinod Koul
This series adds support for Qcom GSI dma controller found on Qualcomm SoCs. This controller can program the peripheral configuration so we add additional parameters in dma_slave_config for configuring the peripherals like spi and i2c. Changes in v3: - Update the i2c tre creation based on testing

Re: [PATCH v3] drm/bridge: add it6505 driver

2020-09-22 Thread Pi-Hsun Shih
On Fri, Sep 4, 2020 at 10:17 AM allen wrote: > > This adds support for the iTE IT6505. > This device can convert DPI signal to DP output. > > From: Allen Chen > Signed-off-by: Jitao Shi > Signed-off-by: Pi-Hsun Shih > Signed-off-by: Yilun Lin > Signed-off-by: Hermes Wu > Signed-off-by: Allen

[PATCH v3 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding

2020-09-22 Thread Vinod Koul
Add devicetree binding documentation for GPI DMA controller implemented on Qualcomm SoCs Signed-off-by: Vinod Koul --- .../devicetree/bindings/dma/qcom,gpi.yaml | 86 +++ include/dt-bindings/dma/qcom-gpi.h| 11 +++ 2 files changed, 97 insertions(+) create mode 10

[PATCH v2 2/5] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2020-09-22 Thread Ran Wang
From: Biwen Li Hardware issue: - Reading register RCPM_IPPDEXPCR1 always return zero, this causes system firmware could not get correct information and wrongly do clock gating for all wakeup source IP during system suspend. Then those IPs will never get chance to wake system. Workaround: -

Re: [PATCH 1/2] mm,swap: extract swap single page readahead into its own function

2020-09-22 Thread Christoph Hellwig
On Mon, Sep 21, 2020 at 10:01:47PM -0400, Rik van Riel wrote: > +static struct page *swap_cluster_read_one(swp_entry_t entry, > + unsigned long offset, gfp_t gfp_mask, > + struct vm_area_struct *vma, unsigned long addr, bool readahead) > +{ > + bool page_allocated; > +

Re: [PATCH v2] iommu/arm: Add module parameter to set msi iova address

2020-09-22 Thread Auger Eric
Hi Will, On 9/21/20 10:45 PM, Will Deacon wrote: > On Mon, Sep 14, 2020 at 11:13:07AM -0700, Vennila Megavannan wrote: >> From: Srinath Mannam >> >> Add provision to change default value of MSI IOVA base to platform's >> suitable IOVA using module parameter. The present hardcoded MSI IOVA base >>

[PATCH v2 5/5] arm: dts: ls1021a: fix rcpm failed to claim resource

2020-09-22 Thread Ran Wang
The range of dcfg reg is wrong, which overlap with other device, such as rcpm. This issue causing rcpm driver failed to claim reg resource when calling devm_ioremap_resource(). Signed-off-by: Ran Wang Acked-by: Li Yang --- Change in v2: - None arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file cha

Re: [PATCH V3 2/3] arm64/mm/hotplug: Enable MEM_OFFLINE event handling

2020-09-22 Thread Gavin Shan
Hi Anshuman, On 9/21/20 10:05 PM, Anshuman Khandual wrote: This enables MEM_OFFLINE memory event handling. It will help intercept any possible error condition such as if boot memory some how still got offlined even after an explicit notifier failure, potentially by a future change in generic hot

[PATCH] PCI: dwc: Move allocate and map page for msi out of dw_pcie_msi_init()

2020-09-22 Thread Jisheng Zhang
Currently, dw_pcie_msi_init() allocates and maps page for msi, then program the PCIE_MSI_ADDR_LO and PCIE_MSI_ADDR_HI. The Root Complex may lose power during suspend-to-RAM, so when we resume, we want to redo the latter but not the former. If designware based driver (for example, pcie-tegra194.c) c

Re: linux-next: build warning after merge of the drm tree

2020-09-22 Thread Tomi Valkeinen
Hi Stephen, On 23/09/2020 06:36, Stephen Rothwell wrote: > Hi all, > > After merging the drm tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c: In function > 'cdns_mhdp_fw_activate': > drivers/gpu/drm/bridge/cad

Re: [PATCH 5/5] f2fs: Handle casefolding with Encryption

2020-09-22 Thread Eric Biggers
On Wed, Sep 23, 2020 at 01:01:51AM +, Daniel Rosenberg wrote: > Expand f2fs's casefolding support to include encrypted directories. To > index casefolded+encrypted directories, we use the SipHash of the > casefolded name, keyed by a key derived from the directory's fscrypt > master key. This

Re: [PATCH] KVM: SVM: Add tracepoint for cr_interception

2020-09-22 Thread Haiwei Li
Kindly ping. :) On 20/9/4 19:25, Haiwei Li wrote: From: Haiwei Li Add trace_kvm_cr_write and trace_kvm_cr_read for svm. Signed-off-by: Haiwei Li ---  arch/x86/kvm/svm/svm.c | 2 ++  1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 03dd7bac80

Re: [PATCH v2 0/6] clk: axi-clk-gen: misc updates to the driver

2020-09-22 Thread Alexandru Ardelean
On Tue, Sep 22, 2020 at 10:42 PM Stephen Boyd wrote: > > Quoting Moritz Fischer (2020-09-14 19:41:38) > > On Mon, Sep 14, 2020 at 11:11:05AM +0300, Alexandru Ardelean wrote: > > > On Mon, Aug 10, 2020 at 4:41 PM Alexandru Ardelean > > > wrote: > > > > > > > > These patches synchronize the driver

[PATCH v4 2/3] xen-blkfront: add a parameter for disabling of persistent grants

2020-09-22 Thread SeongJae Park
From: SeongJae Park Persistent grants feature provides high scalability. On some small systems, however, it could incur data copy overheads[1] and thus it is required to be disabled. It can be disabled from blkback side using a module parameter, 'feature_persistent'. But, it is impossible from

[PATCH v4 3/3] xen-blkfront: Apply changed parameter name to the document

2020-09-22 Thread SeongJae Park
From: SeongJae Park Commit 14e710fe7897 ("xen-blkfront: rename indirect descriptor parameter") changed the name of the module parameter for the maximum amount of segments in indirect requests but missed updating the document. This commit updates the document. Signed-off-by: SeongJae Park Revie

[PATCH v4 1/3] xen-blkback: add a parameter for disabling of persistent grants

2020-09-22 Thread SeongJae Park
From: SeongJae Park Persistent grants feature provides high scalability. On some small systems, however, it could incur data copy overheads[1] and thus it is required to be disabled. But, there is no option to disable it. For the reason, this commit adds a module parameter for disabling of the

[PATCH v4 0/3] xen-blk(back|front): Let users disable persistent grants

2020-09-22 Thread SeongJae Park
From: SeongJae Park Persistent grants feature provides high scalability. On some small systems, however, it could incur data copy overheads[1] and thus it is required to be disabled. But, there is no option to disable it. For the reason, this commit adds module parameters for disabling of the

Re: [PATCH v1 1/1] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-09-22 Thread Michal Simek
Hi, On 22. 09. 20 20:38, Zulkifli, Muhammad Husaini wrote: > Hi, > > -Original Message- > From: Michal Simek > Sent: Tuesday, September 22, 2020 3:00 PM > To: Zulkifli, Muhammad Husaini ; Michal > Simek ; Hunter, Adrian ; > ulf.hans...@linaro.org; linux-...@vger.kernel.org; > linux-a

Re: [Intel-gfx] [PATCH 3/6] drm/i915: use vmap in shmem_pin_map

2020-09-22 Thread Christoph Hellwig
On Tue, Sep 22, 2020 at 06:04:37PM +0100, Tvrtko Ursulin wrote: > Only reason I can come up with now is if mapping side is on a latency > sensitive path, while un-mapping is lazy/delayed so can be more costly. > Then fast map and extra cost on unmap may make sense. In general yes. But compared

Re: [PATCH 4/5] fscrypt: Have filesystems handle their d_ops

2020-09-22 Thread Eric Biggers
On Wed, Sep 23, 2020 at 01:01:50AM +, Daniel Rosenberg wrote: > This shifts the responsibility of setting up dentry operations from > fscrypt to the individual filesystems, allowing them to have their own > operations while still setting fscrypt's d_revalidate as appropriate. > > Most filesyst

let import_iovec deal with compat_iovecs as well v3

2020-09-22 Thread Christoph Hellwig
Hi Al, this series changes import_iovec to transparently deal with comat iovec structures, and then cleanups up a lot of code dupliation. Changes since v2: - revert the switch of the access process vm sysclls to iov_iter - refactor the import_iovec internals differently - switch aio to use __i

[PATCH 4/9] iov_iter: transparently handle compat iovecs in import_iovec

2020-09-22 Thread Christoph Hellwig
Use in compat_syscall to import either native or the compat iovecs, and remove the now superflous compat_import_iovec. This removes the need for special compat logic in most callers, and the remaining ones can still be simplified by using __import_iovec with a bool compat parameter. Signed-off-by

[PATCH] ipvs: adjust the debug order of src and dst

2020-09-22 Thread yue longguang
From: ylg adjust the debug order of src and dst when tcp state changes Signed-off-by: ylg --- net/netfilter/ipvs/ip_vs_proto_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_proto_tcp.c b/net/netfilter/ipvs/ip_vs_proto_tcp.c index dc2e7da27

Re: [PATCH 3/5] libfs: Add generic function for setting dentry_ops

2020-09-22 Thread Eric Biggers
On Wed, Sep 23, 2020 at 01:01:49AM +, Daniel Rosenberg wrote: > This adds a function to set dentry operations at lookup time that will > work for both encrypted files and casefolded filenames. "encrypted files" => "encrypted filenames" > > A filesystem that supports both features simultaneou

[PATCH 7/9] fs: remove compat_sys_vmsplice

2020-09-22 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native vmsplice syscall can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/unistd32.h | 2 +- arch/mips/kernel/syscalls/syscall_n32.tbl | 2 +- arch/mips/kernel/syscalls/syscall_o

[PATCH 9/9] security/keys: remove compat_keyctl_instantiate_key_iov

2020-09-22 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native version of keyctl_instantiate_key_iov can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- security/keys/compat.c | 36 ++-- security/keys/internal.h | 5 - security/keys/keyct

[PATCH 3/9] iov_iter: refactor rw_copy_check_uvector and import_iovec

2020-09-22 Thread Christoph Hellwig
Split rw_copy_check_uvector into two new helpers with more sensible calling conventions: - iovec_from_user copies a iovec from userspace either into the provided stack buffer if it fits, or allocates a new buffer for it. Returns the actually used iovec. It also verifies that iov_len does

[PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c

2020-09-22 Thread Christoph Hellwig
From: David Laight This lets the compiler inline it into import_iovec() generating much better code. Signed-off-by: David Laight Signed-off-by: Christoph Hellwig --- fs/read_write.c | 179 lib/iov_iter.c | 176 +

[PATCH] ipvs: adjust the debug order of src and dst

2020-09-22 Thread longguang.yue
From: ylg adjust the debug order of src and dst when tcp state changes Signed-off-by: ylg --- net/netfilter/ipvs/ip_vs_proto_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_proto_tcp.c b/net/netfilter/ipvs/ip_vs_proto_tcp.c index dc2e7da2

[PATCH 8/9] mm: remove compat_process_vm_{readv,writev}

2020-09-22 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native syscalls can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/unistd32.h | 4 +- arch/mips/kernel/syscalls/syscall_n32.tbl | 4 +- arch/mips/kernel/syscalls/syscall_o32.tbl

[PATCH 6/9] fs: remove the compat readv/writev syscalls

2020-09-22 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native readv and writev syscalls can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/unistd32.h | 4 ++-- arch/mips/kernel/syscalls/syscall_n32.tbl | 4 ++-- arch/mips/ke

[PATCH 5/9] fs: remove various compat readv/writev helpers

2020-09-22 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs as well, all the duplicated code in the compat readv/writev helpers is not needed. Remove them and switch the compat syscall handlers to use the native helpers. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 179 ---

[PATCH 1/9] compat.h: fix a spelling error in

2020-09-22 Thread Christoph Hellwig
There is no compat_sys_readv64v2 syscall, only a compat_sys_preadv64v2 one. Signed-off-by: Christoph Hellwig --- include/linux/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compat.h b/include/linux/compat.h index b354ce58966e2d..654c1ec36671a4 100644

Re: [PATCH V3 1/3] arm64/mm/hotplug: Register boot memory hot remove notifier earlier

2020-09-22 Thread Gavin Shan
Hi Anshuman, On 9/21/20 10:05 PM, Anshuman Khandual wrote: This moves memory notifier registration earlier in the boot process from device_initcall() to early_initcall() which will help in guarding against potential early boot memory offline requests. Even though there should not be any actual o

回复: 回复: [PATCH] btrfs: Fix missing close devices

2020-09-22 Thread Zhang, Qiang
发件人: Johannes Thumshirn 发送时间: 2020年9月21日 17:17 收件人: Zhang, Qiang; c...@fb.com; jo...@toxicpanda.com; dste...@suse.com; syzbot+582e66e5edf36a22c...@syzkaller.appspotmail.com 抄送: linux-bt...@vger.kernel.org; linux-kernel@vger.kernel.org 主题: Re: 回复: [PATCH]

Re: [PATCH] crypto: sa2ul: Fix DMA mapping API usage

2020-09-22 Thread Christoph Hellwig
On Mon, Sep 21, 2020 at 02:38:46PM +0300, Peter Ujfalusi wrote: > Make sure that we call the dma_unmap_sg on the correct scatterlist on > completion with the correct sg_nents. > > We also should be calling dma_sync_sg_for_device() on the tx buffer before > giving it to the DMA and the dma_sync_sg_

Re: [PATCH v2 0/4] i2c-hid: Save power by reducing i2c xfers with block reads

2020-09-22 Thread Sultan Alsawaf
On Tue, Sep 22, 2020 at 09:59:44PM +0200, Jiri Kosina wrote: > On Tue, 22 Sep 2020, Wolfram Sang wrote: > > > > Hans, Benjamin, could you please give this patchset some smoke-testing? > > > It > > > looks good to me, but I'd like it to get some testing from your testing > > > machinery before m

Re: [PATCH 2/5] fscrypt: Export fscrypt_d_revalidate

2020-09-22 Thread Eric Biggers
On Wed, Sep 23, 2020 at 01:01:48AM +, Daniel Rosenberg wrote: > This is in preparation for shifting the responsibility of setting the > dentry_operations to the filesystem, allowing it to maintain its own > operations. > > Signed-off-by: Daniel Rosenberg > --- > fs/crypto/fname.c | 3 +

Re: [PATCH] nvme: fix use-after-free during booting

2020-09-22 Thread Christoph Hellwig
I suspect the patch below might be better. Can you send me a full dmesg with this one applied? Preferably on top of Jens' for-next branch? diff --git a/block/genhd.c b/block/genhd.c index 9d060e79eb31d8..ef2784c69d59ee 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -832,7 +832,9 @@ static vo

Re: [PATCH v2 0/9] Update to zstd-1.4.6

2020-09-22 Thread Christoph Hellwig
FYI, as mentioned last time: clear NAK for letting these bad APIs slip into the overall kernel code. Please provide proper kernel style wrappers to avoid these kinds of updates and in the future just change APIs on an as-needed basis.

Re: [PATCH 1/5] ext4: Use generic casefolding support

2020-09-22 Thread Eric Biggers
On Wed, Sep 23, 2020 at 01:01:47AM +, Daniel Rosenberg wrote: > This switches ext4 over to the generic support provided in > the previous patch. > > Since casefolded dentries behave the same in ext4 and f2fs, we decrease > the maintenance burden by unifying them, and any optimizations will > i

RE: [PATCH V2 2/2] ata: ahci: ceva: Update the driver to support xilinx GT phy

2020-09-22 Thread Piyush Mehta
Hello Philipp, Thanks for review. Regards, Piyush Mehta -Original Message- From: Philipp Zabel Sent: Tuesday, September 22, 2020 5:36 PM To: Piyush Mehta ; ax...@kernel.dk; robh...@kernel.org Cc: linux-...@vger.kernel.org; devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; git

Re: [PATCH 1/2] perf stat: Fix segfault when counting armv8_pmu events

2020-09-22 Thread Jiri Olsa
On Tue, Sep 22, 2020 at 11:13:45AM +0800, Wei Li wrote: > When executing perf stat with armv8_pmu events with a workload, it will > report a segfault as result. please share the perf stat command line you see that segfault for thanks, jirka > > (gdb) bt > #0 0x00603fc8 in perf_evsel__c

Re: [PATCH 1/2] staging: vchiq: fix __user annotations

2020-09-22 Thread Greg Kroah-Hartman
On Tue, Sep 22, 2020 at 10:21:43PM +0200, Arnd Bergmann wrote: > My earlier patches caused some new sparse warnings, but it turns out > that a number of those are actual bugs, or at least suspicous code. > > Adding __user annotations to the data structures that are defined in > uapi headers helps

Re: [PATCH v3 0/6] Convert the intel iommu driver to the dma-iommu api

2020-09-22 Thread Lu Baolu
On 9/22/20 7:05 PM, Robin Murphy wrote: With the previous version of the series I hit a problem on Ivybridge where apparently the dma engine width is not respected. At least that is my layman interpretation of the errors. From the older thread: <3> [209.526605] DMAR: intel_iommu_map: iommu wid

Re: [RFC -V2] autonuma: Migrate on fault among multiple bound nodes

2020-09-22 Thread Huang, Ying
Phil Auld writes: > Hi, > > On Tue, Sep 22, 2020 at 02:54:01PM +0800 Huang Ying wrote: >> Now, AutoNUMA can only optimize the page placement among the NUMA nodes if >> the >> default memory policy is used. Because the memory policy specified >> explicitly >> should take precedence. But this s

[PATCH v2 1/2] arm64/mm: Introduce zero PGD table

2020-09-22 Thread Gavin Shan
The zero PGD table is used when TTBR_EL1 is changed. It's exactly the zero page. As the zero page(s) will be allocated dynamically when colored zero page feature is enabled in subsequent patch. the zero page(s) aren't usable during early boot stage. This introduces zero PGD table, which is decoupl

[PATCH v2 2/2] arm64/mm: Enable color zero pages

2020-09-22 Thread Gavin Shan
This enables color zero pages by allocating contiguous page frames for it. The number of pages for this is determined by L1 dCache (or iCache) size, which is probbed from the hardware. * Export cache_setup_of_node() so that the cache topology could be parsed from device-tree. * Add cac

[PATCH v2 0/2] arm64/mm: Enable color zero pages

2020-09-22 Thread Gavin Shan
The feature of color zero pages isn't enabled on arm64, meaning all read-only (anonymous) VM areas are backed up by same zero page. It leads pressure to L1 (data) cache on reading data from them. This tries to enable color zero pages. PATCH[1/2] decouples the zero PGD table from zero page PATCH[2/

Re: [PATCH 4/7] dmaengine: at_xdmac: adapt perid for mem2mem operations

2020-09-22 Thread Tudor.Ambarus
On 9/23/20 8:30 AM, Tudor Ambarus - M18064 wrote: > On 9/14/20 5:09 PM, Eugen Hristev wrote: >> The PERID in the CC register for mem2mem operations must match an unused >> PERID. >> The PERID field is 7 bits, but the selected value is 0x3f. >> On later products we can have more reserved PERIDs for

Re: [PATCH v5 2/2] PHY: Ingenic: Add USB PHY driver using generic PHY framework.

2020-09-22 Thread Vinod Koul
On 22-09-20, 00:24, 周琰杰 (Zhou Yanjie) wrote: > +#define USBPCR_IDPULLUP_LSB 28 > +#define USBPCR_IDPULLUP_MASK GENMASK(29, USBPCR_IDPULLUP_LSB) > +#define USBPCR_IDPULLUP_ALWAYS (0x2 << USBPCR_IDPULLUP_LSB) > +#define USBPCR_IDPULLUP_SUSPEND (0x1 << USBPCR_IDPUL

Re: [PATCH 0/4] bootconfig: Fix a parser bug

2020-09-22 Thread Masami Hiramatsu
Hi Steve, Thank you for merging previous 3 serieses! Could you also pick this series as urgent-fix branch? Thank you, On Mon, 21 Sep 2020 18:44:33 +0900 Masami Hiramatsu wrote: > Hi, > > Here are patches to fix 2 bugs in the parser. One issue happens > when a key has a siblings and the key re

Re: [PATCH 4/7] dmaengine: at_xdmac: adapt perid for mem2mem operations

2020-09-22 Thread Tudor.Ambarus
On 9/14/20 5:09 PM, Eugen Hristev wrote: > The PERID in the CC register for mem2mem operations must match an unused > PERID. > The PERID field is 7 bits, but the selected value is 0x3f. > On later products we can have more reserved PERIDs for actual peripherals, > thus this needs to be increased to

Re: [PATCH] [v2] nvme: replace meaningless judgement by checking whether req is null

2020-09-22 Thread Christoph Hellwig
On Tue, Sep 22, 2020 at 03:47:40PM +, Tianxianting wrote: > Finally, it applied:) > Thanks again for all your kindly guides to me. Thanks a lot for the patch!

Re: [PATCH v2 1/2] dt-bindings: phy: cdns,torrent-phy: add reset-names

2020-09-22 Thread Vinod Koul
On 18-09-20, 11:37, Tomi Valkeinen wrote: > Add reset-names as a required property. > > There are no dts files using torrent phy yet, so it is safe to add a new > required property. Applied both, thanks -- ~Vinod

[PATCH] dt-bindings: Add LM81 and DS1780 as trivial devices

2020-09-22 Thread Chris Packham
The LM81 and DS1780 are close relatives of the ADM9240 and already supported by the same driver. Document them as trivial devices. Signed-off-by: Chris Packham --- I wasn't sure if I should put the LM81 under "national" or "ti". In the end I went with "national" because of all the other existing

Re: [PATCH 1/7] dmaengine: at_xdmac: separate register defines into header file

2020-09-22 Thread Tudor.Ambarus
Hi, Eugen, On 9/14/20 5:09 PM, Eugen Hristev wrote: > Separate register defines into header file. > This is required to support a slightly different version of the register > map in new hardware versions of the XDMAC. > > Signed-off-by: Eugen Hristev > --- > drivers/dma/at_xdmac.c | 143 +-

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-09-22 Thread Huang, Ying
Rafael Aquini writes: > On Wed, Sep 23, 2020 at 10:21:36AM +0800, Huang, Ying wrote: >> Hi, Rafael, >> >> Rafael Aquini writes: >> >> > The swap area descriptor only gets struct swap_cluster_info *cluster_info >> > allocated if the swapfile is backed by non-rotational storage. >> > When the sw

Re: [PATCH 2/7] MAINTAINERS: add dma/at_xdmac_regs.h to XDMAC driver entry

2020-09-22 Thread Tudor.Ambarus
On 9/14/20 5:09 PM, Eugen Hristev wrote: > Add new header file for the at_xdmac regs definition to the proper > MAINTAINERS entry. > > Signed-off-by: Eugen Hristev > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index b5cfab015bd6..312ba6

linux-next: manual merge of the tip tree with the amdgpu tree

2020-09-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: drivers/gpu/drm/amd/amdkfd/kfd_priv.h between commit: 59d7115dae02 ("drm/amdkfd: Move process doorbell allocation into kfd device") from the amdgpu tree and commit: c7b6bac9c72c ("drm, iommu: Change type of pasid to u32

Re: [PATCH 3/3] perf list: Add 'pfm' to list libpfm4 events

2020-09-22 Thread Jiri Olsa
On Wed, Sep 23, 2020 at 07:42:41AM +0900, Namhyung Kim wrote: > Hi Jiri, > > On Wed, Sep 23, 2020 at 5:42 AM Jiri Olsa wrote: > > > > On Wed, Sep 09, 2020 at 02:58:49PM +0900, Namhyung Kim wrote: > > > > SNIP > > > > > int parse_events__is_hardcoded_term(struct parse_events_term *term) > > > dif

Re: [RFC PATCH 07/11] drivers/android/binder: convert stats, transaction_log to counter_atomic

2020-09-22 Thread Greg KH
On Tue, Sep 22, 2020 at 07:43:36PM -0600, Shuah Khan wrote: > counter_atomic is introduced to be used when a variable is used as > a simple counter and doesn't guard object lifetimes. This clearly > differentiates atomic_t usages that guard object lifetimes. > > counter_atomic variables will wrap

Re: [PATCH] nvme: fix use-after-free during booting

2020-09-22 Thread Christoph Hellwig
On Tue, Sep 22, 2020 at 04:34:45PM -0400, Tong Zhang wrote: > Hi Christoph, > I modified the patch a bit and now it works. So you're still hitting the WARN_ON_ONCE? I think we need to fix that as well, but all the ideas I have will turn into a bigger project, so I think I'll submit this one to Je

Re: [PATCH 1/2] KVM: Fix the build error

2020-09-22 Thread Haiwei Li
On 20/9/20 21:09, Paolo Bonzini wrote: On 14/09/20 11:11, lihaiwei.ker...@gmail.com wrote: From: Haiwei Li When CONFIG_SMP is not set, an build error occurs with message "error: use of undeclared identifier 'kvm_send_ipi_mask_allbutself'" Fixes: 0f990222108d ("KVM: Check the allocation of pv

Re: [PATCH v2 5/9] iomap: Support arbitrarily many blocks per page

2020-09-22 Thread Darrick J. Wong
On Wed, Sep 23, 2020 at 03:48:59AM +0100, Matthew Wilcox wrote: > On Tue, Sep 22, 2020 at 09:06:03PM -0400, Qian Cai wrote: > > On Tue, 2020-09-22 at 18:05 +0100, Matthew Wilcox wrote: > > > On Tue, Sep 22, 2020 at 12:23:45PM -0400, Qian Cai wrote: > > > > On Fri, 2020-09-11 at 00:47 +0100, Matthew

Lieber Freund (Assalamu Alaikum),?

2020-09-22 Thread Aisha Gaddafi
-- Lieber Freund (Assalamu Alaikum), Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende Mutter und eine Witwe mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen Präsident (verstorbener Oberst

Re: [PATCH] csky: Fix a size determination in gpr_get()

2020-09-22 Thread Al Viro
On Wed, Sep 23, 2020 at 10:37:31AM +0800, Guo Ren wrote: > > What's going on there? The mapping is really weird - assuming > > you had v0..v31 in the first 32 elements of regs->vr[], you > > end up with > > > > v0 v1 v2 v3 v2 v3 v6 v7 v4 v5 v10 v11 v6 v7 v14 v15 > > v8 v9 v18 v19 v10 v11 v22 v23

Re: [PATCH V3 2/3] arm64/mm/hotplug: Enable MEM_OFFLINE event handling

2020-09-22 Thread Anshuman Khandual
On 09/21/2020 05:35 PM, Anshuman Khandual wrote: > This enables MEM_OFFLINE memory event handling. It will help intercept any > possible error condition such as if boot memory some how still got offlined > even after an explicit notifier failure, potentially by a future change in > generic hot p

Re: [PATCH v3 6/6] stm class: ftrace: use different channel accroding to CPU

2020-09-22 Thread Tingwei Zhang
On Fri, Sep 18, 2020 at 08:45:52PM +0800, Alexander Shishkin wrote: > Tingwei Zhang writes: > > > @@ -63,6 +65,7 @@ static int __init stm_ftrace_init(void) > > { > > int ret; > > > > + stm_ftrace.data.nr_chans = num_possible_cpus(); > > Not a problem with this patch necesarily, but this

[tip:x86/cleanups] BUILD SUCCESS 900ffe39fec908e0aa26a30612e43ebc7140db79

2020-09-22 Thread kernel test robot
-20200921 i386 randconfig-a006-20200921 i386 randconfig-a003-20200921 i386 randconfig-a004-20200921 i386 randconfig-a005-20200921 i386 randconfig-a001-20200921 i386 randconfig-a002-20200922 i386

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-09-22 Thread Rafael Aquini
On Wed, Sep 23, 2020 at 10:21:36AM +0800, Huang, Ying wrote: > Hi, Rafael, > > Rafael Aquini writes: > > > The swap area descriptor only gets struct swap_cluster_info *cluster_info > > allocated if the swapfile is backed by non-rotational storage. > > When the swap area is laid on top of ordinar

linux-next: build failure after merge of the block tree

2020-09-22 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/io_uring.c: In function 'io_resubmit_prep': fs/io_uring.c:2357:10: error: 'struct io_kiocb' has no member named 'io' 2357 | if (!req->io) { | ^~ Caused by commit 8f3d

IMPORTANT NOTICE !!! 46.28.37.15

2020-09-22 Thread DR. DONALD MOORE
Dear friend, How are you today? Hope all is well with you and your family? I hope This mail meets you in a perfect condition. I am using this opportunity to thank you for your great effort to our unfinished transfer of fund into your account due to one reason or the other best known to you. But

Re: WARNING in ex_handler_uaccess

2020-09-22 Thread Al Viro
On Mon, Sep 21, 2020 at 12:22:19PM +0200, Rasmus Villemoes wrote: > So, not sure how the above got triggered, but I notice there might be an > edge case in check_zeroed_user(): > > from -= align; > size += align; > > if (!user_read_access_begin(from, size)) > retu

Re: [PATCH net-next 4/5] bonding: make Kconfig toggle to disable legacy interfaces

2020-09-22 Thread kernel test robot
Hi Jarod, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Jarod-Wilson/bonding-rename-bond-components/20200922-214046 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

[RFC PATCH] bonding: linkdesc can be static

2020-09-22 Thread kernel test robot
Signed-off-by: kernel test robot --- bond_procfs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c index 91ece68607b23..9b1b37a682728 100644 --- a/drivers/net/bonding/bond_procfs.c +++ b/drivers/net/bo

[PATCH v4] debugobjects: install CPU hotplug callback

2020-09-22 Thread qiang.zhang
From: Zqiang Due to CPU hotplug, it may never be online after it's offline, some objects in percpu pool is never free. in order to avoid this happening, install CPU hotplug callback, call this callback func to free objects in percpu pool when CPU going offline. Signed-off-by: Zqiang Acked-by: W

  1   2   3   4   5   6   7   8   9   10   >