Re: [RFC PATCH] interconnect: Replace of_icc_get() with icc_get() and reduce DT binding

2019-09-24 Thread Bjorn Andersson
On Tue 24 Sep 22:41 PDT 2019, Stephen Boyd wrote: > I don't see any users of icc_get() in the kernel today, and adding them > doesn't make sense. That's because adding calls to that function in a > driver will make the driver SoC specific given that the arguments are > some sort of source and

Re: latest git kernel (v5.3-11506-gf7c3bf8fa7e5) does not compile

2019-09-24 Thread Masahiro Yamada
Hi Anatoly, On Sun, Sep 22, 2019 at 9:14 PM Anatoly Pugachev wrote: > > Thanks for the report, and apology for the breakage. > > > > Please check this patch. > > https://lore.kernel.org/patchwork/patch/1130469/ > > > > I hope it will fix the build error. > > > It does. Thanks Masahiro! Thanks

[PATCH] KVM: LAPIC: Loose fluctuation filter for auto tune lapic_timer_advance_ns

2019-09-24 Thread Wanpeng Li
From: Wanpeng Li 5000 guest cycles delta is easy to encounter on desktop, per-vCPU lapic_timer_advance_ns always keeps at 1000ns initial value, lets loose fluctuation filter a bit to make auto tune can make some progress. Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 4 ++-- 1 file

[RFC PATCH] interconnect: Replace of_icc_get() with icc_get() and reduce DT binding

2019-09-24 Thread Stephen Boyd
I don't see any users of icc_get() in the kernel today, and adding them doesn't make sense. That's because adding calls to that function in a driver will make the driver SoC specific given that the arguments are some sort of source and destination numbers that would typically be listed in DT or

Re: [PATCH xfstests v2] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Amir Goldstein
On Wed, Sep 25, 2019 at 6:27 AM Zhihao Cheng wrote: > > There are indeed many '-b' options in xfstests. I only confirmed the line of > overlay test. Other -b test options I need to reconfirm later. > FWIW, I eyeballed blockdev related overlayfs common code bits and all I found out of order was:

Re: [RFC PATCH 2/4] iommu/vt-d: Add first level page table interfaces

2019-09-24 Thread Peter Xu
On Mon, Sep 23, 2019 at 08:24:52PM +0800, Lu Baolu wrote: > This adds functions to manipulate first level page tables > which could be used by a scalale mode capable IOMMU unit. > > intel_mmmap_range(domain, addr, end, phys_addr, prot) > - Map an iova range of [addr, end) to the physical memory

Re: [PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV

2019-09-24 Thread Anup Patel
On Wed, Sep 25, 2019 at 10:37 AM Greg Kroah-Hartman wrote: > > On Wed, Sep 25, 2019 at 10:30:00AM +0530, Anup Patel wrote: > > On Wed, Sep 25, 2019 at 10:13 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Sep 25, 2019 at 04:30:03AM +, Anup Patel wrote: > > > > We will be using some of

[PATCH v3] arm64: use generic free_initrd_mem()

2019-09-24 Thread Mike Rapoport
From: Mike Rapoport arm64 calls memblock_free() for the initrd area in its implementation of free_initrd_mem(), but this call has no actual effect that late in the boot process. By the time initrd is freed, all the reserved memory is managed by the page allocator and the memblock.reserved is

INFO: trying to register non-static key in finish_writeback_work

2019-09-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b41dae06 Merge tag 'xfs-5.4-merge-7' of git://git.kernel.o.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=17d19a7e60 kernel config: https://syzkaller.appspot.com/x/.config?x=dfcf592db22b9132

Re: [PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV

2019-09-24 Thread Greg Kroah-Hartman
On Wed, Sep 25, 2019 at 10:30:00AM +0530, Anup Patel wrote: > On Wed, Sep 25, 2019 at 10:13 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Sep 25, 2019 at 04:30:03AM +, Anup Patel wrote: > > > We will be using some of the Goldfish virtual platform devices (such > > > as RTC) on QEMU RISC-V

Re: [PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV

2019-09-24 Thread Anup Patel
On Wed, Sep 25, 2019 at 10:13 AM Greg Kroah-Hartman wrote: > > On Wed, Sep 25, 2019 at 04:30:03AM +, Anup Patel wrote: > > We will be using some of the Goldfish virtual platform devices (such > > as RTC) on QEMU RISC-V virt machine so this patch enables goldfish > > kconfig option for RISC-V

RE: [RFC PATCH 3/4] iommu/vt-d: Map/unmap domain with mmmap/mmunmap

2019-09-24 Thread Tian, Kevin
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Monday, September 23, 2019 8:25 PM > > If a dmar domain has DOMAIN_FLAG_FIRST_LEVEL_TRANS bit set > in its flags, IOMMU will use the first level page table for > translation. Hence, we need to map or unmap addresses in the > first level

Re: [PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV

2019-09-24 Thread Greg Kroah-Hartman
On Wed, Sep 25, 2019 at 04:30:03AM +, Anup Patel wrote: > We will be using some of the Goldfish virtual platform devices (such > as RTC) on QEMU RISC-V virt machine so this patch enables goldfish > kconfig option for RISC-V architecture. > > Signed-off-by: Anup Patel > --- >

Re: [PATCH 1/5] linux/kernel.h: Add sizeof_member macro

2019-09-24 Thread Bharadiya,Pankaj
On Tue, Sep 24, 2019 at 09:22:10AM -0700, Kees Cook wrote: > On Tue, Sep 24, 2019 at 04:28:35PM +0530, Pankaj Bharadiya wrote: > > At present we have 3 different macros to calculate the size of a > > member of a struct: > > - SIZEOF_FIELD > > - FIELD_SIZEOF > > - sizeof_field > > > > To

[PATCH 0/2] Enable Goldfish RTC for RISC-V

2019-09-24 Thread Anup Patel
We will be using Goldfish RTC device real date-time on QEMU RISC-V virt machine so this series: 1. Allows GOLDFISH kconfig option to be enabled for RISC-V 2. Enables GOLDFISH RTC driver in RISC-V defconfigs This series can be found in goldfish_rtc_v1 branch at: https//github.com/avpatel/linux.git

[PATCH 2/2] RISC-V: defconfig: Enable Goldfish RTC driver

2019-09-24 Thread Anup Patel
We have Goldfish RTC device available on QEMU RISC-V virt machine hence enable required driver in RV32 and RV64 defconfigs. Signed-off-by: Anup Patel --- arch/riscv/configs/defconfig | 3 +++ arch/riscv/configs/rv32_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git

[PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV

2019-09-24 Thread Anup Patel
We will be using some of the Goldfish virtual platform devices (such as RTC) on QEMU RISC-V virt machine so this patch enables goldfish kconfig option for RISC-V architecture. Signed-off-by: Anup Patel --- drivers/platform/goldfish/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > > > > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle > > > > > > > > > an errata > > > > > > > > > A-008646 on LS1021A > > > > > > > > > > > > > > > > > > Signed-off-by: Biwen Li > > > > > > > > > --- > > > > > > > > > Change in v3: > > > > > > > > >

Re: [PATCH v2] PCI: dwc: Add support to add GEN3 related equalization quirks

2019-09-24 Thread Vidya Sagar
On 9/24/2019 5:41 PM, Pankaj Dubey wrote: -Original Message- From: Vidya Sagar Sent: Tuesday, September 24, 2019 4:57 PM To: Pankaj Dubey ; 'Gustavo Pimentel' ; 'Andrew Murray' Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; jingooh...@gmail.com;

[PATCH] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-24 Thread Navid Emamdoost
In snd_skl_parse_uuids if allocation for module->instance_id fails, the allocated memory for module shoulde be released. Signed-off-by: Navid Emamdoost --- sound/soc/intel/skylake/skl-sst-utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/intel/skylake/skl-sst-utils.c

Re: [PATCH net-next] tuntap: Fallback to automq on TUNSETSTEERINGEBPF prog negative return

2019-09-24 Thread Jason Wang
On 2019/9/24 上午12:31, Matt Cover wrote: I think it's better to safe to just drop the packet instead of trying to workaround it. This patch aside, dropping the packet here seems like the wrong choice. Loading a prog at this hookpoint "configures" steering. The action of configuring steering

[PATCH v4 2/5] Powerpc/Watchpoint: Don't ignore extraneous exceptions blindly

2019-09-24 Thread Ravi Bangoria
On Powerpc, watchpoint match range is double-word granular. On a watchpoint hit, DAR is set to the first byte of overlap between actual access and watched range. And thus it's quite possible that DAR does not point inside user specified range. Ex, say user creates a watchpoint with address range

[PATCH v4 4/5] Powerpc/Watchpoint: Add dar outside test in perf-hwbreak.c selftest

2019-09-24 Thread Ravi Bangoria
So far we used to ignore exception if dar points outside of user specified range. But now we are ignoring it only if actual load/ store range does not overlap with user specified range. Include selftests for the same: # ./tools/testing/selftests/powerpc/ptrace/perf-hwbreak ... TESTED: No

[PATCH v4 5/5] Powerpc/Watchpoint: Support for 8xx in ptrace-hwbreak.c selftest

2019-09-24 Thread Ravi Bangoria
On the 8xx, signals are generated after executing the instruction. So no need to manually single-step on 8xx. Signed-off-by: Ravi Bangoria --- .../selftests/powerpc/ptrace/ptrace-hwbreak.c | 26 ++- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an > > > > > > > > errata > > > > > > > > A-008646 on LS1021A > > > > > > > > > > > > > > > > Signed-off-by: Biwen Li > > > > > > > > --- > > > > > > > > Change in v3: > > > > > > > > - rename

[PATCH v4 0/5] Powerpc/Watchpoint: Few important fixes

2019-09-24 Thread Ravi Bangoria
v3: https://lists.ozlabs.org/pipermail/linuxppc-dev/2019-July/193339.html v3->v4: - Instead of considering exception as extraneous when dar is outside of user specified range, analyse the instruction and check for overlap between user specified range and actual load/store range. - Add

[PATCH v4 3/5] Powerpc/Watchpoint: Rewrite ptrace-hwbreak.c selftest

2019-09-24 Thread Ravi Bangoria
ptrace-hwbreak.c selftest is logically broken. On powerpc, when watchpoint is created with ptrace, signals are generated before executing the instruction and user has to manually singlestep the instruction with watchpoint disabled, which selftest never does and thus it keeps on getting the signal

[PATCH v4 1/5] Powerpc/Watchpoint: Fix length calculation for unaligned target

2019-09-24 Thread Ravi Bangoria
Watchpoint match range is always doubleword(8 bytes) aligned on powerpc. If the given range is crossing doubleword boundary, we need to increase the length such that next doubleword also get covered. Ex, address len = 6 bytes |=.

Re: [PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()

2019-09-24 Thread Jason Wang
On 2019/9/23 下午5:12, wangxu (AE) wrote: Hi Michael Thanks for your fast reply. As the following code, the 2nd branch of iov_iter_advance() does not check if i->count < size, when this happens, i->count -= size may cause len exceed INT_MAX, and then total_len exceed INT_MAX.

Re: [PATCH] soc: qcom: socinfo: add missing soc_id sysfs entry

2019-09-24 Thread Jeffrey Hugo
On Mon, Sep 16, 2019 at 3:44 PM Stephen Boyd wrote: > > Quoting Srinivas Kandagatla (2019-09-12 02:10:19) > > looks like SoC ID is not exported to sysfs for some reason. > > This patch adds it! > > > > This is mostly used by userspace libraries like SNPE. > > What is SNPE? Snapdragon Neural

Re: [PATCH] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-24 Thread Anshuman Khandual
On 09/25/2019 08:43 AM, Andrew Morton wrote: > On Mon, 23 Sep 2019 11:16:38 +0530 Anshuman Khandual > wrote: > >> >> >> On 09/16/2019 11:17 AM, Anshuman Khandual wrote: >>> In add_memory_resource() the memory range to be hot added first gets into >>> the memblock via memblock_add() before

Re: [PATCH] virtio_mmio: remove redundant dev_err message

2019-09-24 Thread Jason Wang
On 2019/9/24 下午3:21, Ding Xiang wrote: platform_get_irq already contains error message, Is this message contained in all possible error path? If not, it's probably better to keep it as is. Thanks so remove the redundant dev_err message Signed-off-by: Ding Xiang ---

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Leo Li
> -Original Message- > From: Biwen Li > Sent: Tuesday, September 24, 2019 10:47 PM > To: Leo Li ; shawn...@kernel.org; > robh...@kernel.org; mark.rutl...@arm.com; Ran Wang > > Cc: linuxppc-...@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org;

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an > > > > > > errata > > > > > > A-008646 on LS1021A > > > > > > > > > > > > Signed-off-by: Biwen Li > > > > > > --- > > > > > > Change in v3: > > > > > > - rename property name > > > > > > fsl,rcpm-scfg ->

Re: [PATCH v4 05/10] mm: Return faster for non-fatal signals in user mode faults

2019-09-24 Thread Peter Xu
On Tue, Sep 24, 2019 at 08:45:18AM -0700, Matthew Wilcox wrote: > On Tue, Sep 24, 2019 at 11:19:08AM +0800, Peter Xu wrote: > > On Mon, Sep 23, 2019 at 07:54:47PM -0700, Matthew Wilcox wrote: > > > On Tue, Sep 24, 2019 at 10:47:21AM +0800, Peter Xu wrote: > > > > On Mon, Sep 23, 2019 at 11:03:49AM

Re: [PATCH V3 0/2] mm/debug: Add tests for architecture exported page table helpers

2019-09-24 Thread Anshuman Khandual
On 09/24/2019 06:01 PM, Mike Rapoport wrote: > On Tue, Sep 24, 2019 at 02:51:01PM +0300, Kirill A. Shutemov wrote: >> On Fri, Sep 20, 2019 at 12:03:21PM +0530, Anshuman Khandual wrote: >>> This series adds a test validation for architecture exported page table >>> helpers. Patch in the series

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Leo Li
> -Original Message- > From: Biwen Li > Sent: Tuesday, September 24, 2019 10:30 PM > To: Leo Li ; shawn...@kernel.org; > robh...@kernel.org; mark.rutl...@arm.com; Ran Wang > > Cc: linuxppc-...@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org;

Re: [PATCH V4 4/4] ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8

2019-09-24 Thread S.j. Wang
Hi > On Tue, Sep 24, 2019 at 06:52:35PM +0800, Shengjiu Wang wrote: > > There is error "aplay: pcm_write:2023: write error: Input/output error" > > on i.MX8QM/i.MX8QXP platform for S24_3LE format. > > > > In i.MX8QM/i.MX8QXP, the DMA is EDMA, which don't support 24bit > > sample, but we didn't

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an errata > > > > A-008646 on LS1021A > > > > > > > > Signed-off-by: Biwen Li > > > > --- > > > > Change in v3: > > > > - rename property name > > > > fsl,rcpm-scfg -> fsl,ippdexpcr-alt-addr > > > > > > > >

Re: [PATCH xfstests v2] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Zhihao Cheng
There are indeed many '-b' options in xfstests. I only confirmed the line of overlay test. Other -b test options I need to reconfirm later. 在 2019/9/25 11:17, Darrick J. Wong 写道: > On Tue, Sep 24, 2019 at 08:05:50PM -0700, Darrick J. Wong wrote: >> On Wed, Sep 25, 2019 at 09:54:08AM +0800,

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Leo Li
> -Original Message- > From: Biwen Li > Sent: Tuesday, September 24, 2019 10:13 PM > To: Leo Li ; shawn...@kernel.org; > robh...@kernel.org; mark.rutl...@arm.com; Ran Wang > > Cc: linuxppc-...@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org;

[PATCH] net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq

2019-09-24 Thread Navid Emamdoost
In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated memory should be released. Signed-off-by: Navid Emamdoost --- drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH xfstests] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Zhihao Cheng
Oh, You are right, I understood it wrong. Thanks for reminding. 在 2019/9/25 11:15, Eryu Guan 写道: > On Tue, Sep 24, 2019 at 10:19:38PM +0800, Zhihao Cheng wrote: >> As far as I know, _require_scratch_shutdown() is called after >> _overay_config_override(), at this moment, FSTYP equals to base fs.

Re: [PATCH xfstests v2] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Darrick J. Wong
On Tue, Sep 24, 2019 at 08:05:50PM -0700, Darrick J. Wong wrote: > On Wed, Sep 25, 2019 at 09:54:08AM +0800, Zhihao Cheng wrote: > > There is a message in _supported_fs(): > > _notrun "not suitable for this filesystem type: $FSTYP" > > for when overlay usecases are executed on a chararcter

Re: [PATCH xfstests] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Eryu Guan
On Tue, Sep 24, 2019 at 10:19:38PM +0800, Zhihao Cheng wrote: > As far as I know, _require_scratch_shutdown() is called after > _overay_config_override(), at this moment, FSTYP equals to base fs. According > the implementation of _require_scratch_shutdown: > 3090 _require_scratch_shutdown() >

Re: [PATCH] Revert "locking/pvqspinlock: Don't wait if vCPU is preempted"

2019-09-24 Thread Wanpeng Li
On Wed, 11 Sep 2019 at 21:04, Paolo Bonzini wrote: > > On 11/09/19 06:25, Waiman Long wrote: > > On 9/10/19 6:56 AM, Wanpeng Li wrote: > >> On Mon, 9 Sep 2019 at 18:56, Waiman Long wrote: > >>> On 9/9/19 2:40 AM, Wanpeng Li wrote: > From: Wanpeng Li > > This patch reverts commit

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an errata > > A-008646 on LS1021A > > > > Signed-off-by: Biwen Li > > --- > > Change in v3: > > - rename property name > > fsl,rcpm-scfg -> fsl,ippdexpcr-alt-addr > > > > Change in v2: > > - update desc of the property

Re: [PATCH] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-24 Thread Andrew Morton
On Mon, 23 Sep 2019 11:16:38 +0530 Anshuman Khandual wrote: > > > On 09/16/2019 11:17 AM, Anshuman Khandual wrote: > > In add_memory_resource() the memory range to be hot added first gets into > > the memblock via memblock_add() before arch_add_memory() is called on it. > > Reverse sequence

Re: [PATCH xfstests v2] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Darrick J. Wong
On Wed, Sep 25, 2019 at 09:54:08AM +0800, Zhihao Cheng wrote: > There is a message in _supported_fs(): > _notrun "not suitable for this filesystem type: $FSTYP" > for when overlay usecases are executed on a chararcter device based base You can do that? What does that even look like? --D >

RE: [PATCH v9 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-24 Thread Justin He (Arm Technology China)
Hi Matthew and Kirill I didn't add your previous r-b and a-b tag since I refactored the cow_user_page and changed the ptl range in v9. Please have a review, thanks -- Cheers, Justin (Jia He) > -Original Message- > From: Jia He > Sent: 2019年9月25日 10:59 > To: Catalin Marinas ; Will

[PATCH v9 2/3] arm64: mm: implement arch_faults_on_old_pte() on arm64

2019-09-24 Thread Jia He
On arm64 without hardware Access Flag, copying fromuser will fail because the pte is old and cannot be marked young. So we always end up with zeroed page after fork() + CoW for pfn mappings. we don't always have a hardware-managed access flag on arm64. Hence implement arch_faults_on_old_pte on

[PATCH v9 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-24 Thread Jia He
When we tested pmdk unit test [1] vmmalloc_fork TEST1 in arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. Below call trace is from arm64 do_page_fault for debugging purpose [ 110.016195] Call trace: [ 110.016826] do_page_fault+0x5a4/0x690 [

[PATCH v9 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-09-24 Thread Jia He
We unconditionally set the HW_AFDBM capability and only enable it on CPUs which really have the feature. But sometimes we need to know whether this cpu has the capability of HW AF. So decouple AF from DBM by new helper cpu_has_hw_af(). Signed-off-by: Jia He Suggested-by: Suzuki Poulose

[PATCH v9 0/3] fix double page fault on arm64

2019-09-24 Thread Jia He
When we tested pmdk unit test vmmalloc_fork TEST1 in arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. As told by Catalin: "On arm64 without hardware Access Flag, copying from user will fail because the pte is old and cannot be marked young. So we

[PATCH V2] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-09-24 Thread Anshuman Khandual
Currently during memory hot add procedure, memory gets into memblock before calling arch_add_memory() which creates it's linear mapping. add_memory_resource() { .. memblock_add_node() .. arch_add_memory() .. }

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-09-24 Thread Aubrey Li
On Sat, Sep 7, 2019 at 2:30 AM Tim Chen wrote: > +static inline s64 core_sched_imbalance_delta(int src_cpu, int dst_cpu, > + int src_sibling, int dst_sibling, > + struct task_group *tg, u64 task_load) > +{ > + struct sched_entity *se, *se_sibling,

RE: [PATCH] pwm: pwm-imx27: Use 'dev' instead of dereferencing it repeatedly

2019-09-24 Thread Anson Huang
Hi, David > Subject: RE: [PATCH] pwm: pwm-imx27: Use 'dev' instead of dereferencing it > repeatedly > > From: Anson Huang > > Sent: 24 September 2019 11:03 > > Hi, David > > > > > Subject: RE: [PATCH] pwm: pwm-imx27: Use 'dev' instead of > > > dereferencing it repeatedly > > > > > > From: Anson

RE: [EXT] Re: [V4 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs

2019-09-24 Thread Peng Ma
Hi Vinod, >-Original Message- >From: Vinod Koul >Sent: 2019年9月25日 3:35 >To: Peng Ma >Cc: dan.j.willi...@intel.com; Leo Li ; >linux-kernel@vger.kernel.org; dmaeng...@vger.kernel.org >Subject: Re: [EXT] Re: [V4 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 >qDMA controller driver for

[PATCH 0/1] iio: add driver for Bosch BMA400 accelerometer

2019-09-24 Thread Dan Robertson
Add a IIO driver for the Bosch BMA400 3-axes ultra low-power accelerometer. The initial implementation of the driver adds read support for the acceleration and temperature data registers. The driver also has support for reading and writing to the output data rate, oversampling ratio, and scale

[PATCH 1/1] iio: (bma400) add driver for the BMA400

2019-09-24 Thread Dan Robertson
Add a IIO driver for the Bosch BMA400 3-axes ultra-low power accelerometer. The driver supports reading from the acceleration and temperature registers. The driver also supports reading and configuring the output data rate, oversampling ratio, and scale. Signed-off-by: Dan Robertson ---

[PATCH V9 0/2] mailbox: arm: introduce smc triggered mailbox

2019-09-24 Thread Peng Fan
From: Peng Fan V9: - Add Florian's R-b tag in patch 1/2 - Mark arm,func-id as a required property per Andre's comments in patch 1/2. - Make invoke_smc_mbox_fn as a private entry in a channal per Florian's comments in pach 2/2 - Include linux/types.h in arm-smccc-mbox.h in patch 2/2 -

[PATCH V9 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-24 Thread Peng Fan
From: Peng Fan The ARM SMC/HVC mailbox binding describes a firmware interface to trigger actions in software layers running in the EL2 or EL3 exception levels. The term "ARM" here relates to the SMC instruction as part of the ARM instruction set, not as a standard endorsed by ARM Ltd.

[PATCH V9 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-24 Thread Peng Fan
From: Peng Fan This mailbox driver implements a mailbox which signals transmitted data via an ARM smc (secure monitor call) instruction. The mailbox receiver is implemented in firmware and can synchronously return data when it returns execution to the non-secure world again. An asynchronous

[PATCH v1 2/2] perf stat: Support topdown with --all-kernel/--all-user

2019-09-24 Thread Jin Yao
When perf stat --topdown is enabled, the internal event list is expanded to: "{topdown-total-slots,topdown-slots-retired,topdown-recovery-bubbles,topdown-fetch-bubbles,topdown-slots-issued}". With this patch, 1. When --all-user is enabled, it's expanded to:

[PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-24 Thread Jin Yao
This patch series supports the new options "--all-kernel" and "--all-user" in perf-stat. For example, root@kbl:~# perf stat -e cycles,instructions --all-kernel --all-user -a -- sleep 1 Performance counter stats for 'system wide': 19,156,665 cycles:k 7,265,342

[PATCH v1 1/2] perf stat: Support --all-kernel and --all-user options

2019-09-24 Thread Jin Yao
perf record has supported --all-kernel / --all-user to configure all used events to run in kernel space or in user space. But perf stat doesn't support that. It would be useful to support these options so that we can collect metrics for e.g. user space only without having to type ":u" in the

Re: efi-pstore: Crash logs not written

2019-09-24 Thread Kees Cook
On Thu, Sep 12, 2019 at 02:51:53PM +0200, Paul Menzel wrote: > On a Dell OptiPlex 5040 with Linux 5.3-rc8, I’ll try to get > efi-pstore working. > > ``` > $ lsmod | grep efi > efi_pstore 16384 0 > pstore 28672 1 efi_pstore > efivarfs 16384 1 > $ dmesg

Re: [PATCH] x86/mm: fix function name typo in pmd_read_atomic() comment

2019-09-24 Thread Wei Yang
To be honest, I have a question on how this works. As the comment says, we need to call pmd_read_atomic before using pte_offset_map_lock to avoid data corruption. For example, in function swapin_walk_pmd_entry: pmd_none_or_trans_huge_or_clear_bad(pmd) pmd_read_atomic(pmd)

[PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-09-24 Thread hev
From: Heiher Take the case where we have: t0 | (ew) e0 | (et) e1 | (lt) s0 t0: thread 0 e0: epoll fd 0 e1: epoll fd 1 s0: socket fd 0 ew: epoll_wait et: edge-trigger lt: level-trigger We only need to wakeup nested epoll fds if

Re: [PATCH RESEND v2] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-09-24 Thread Heiher
Hi, On Tue, Sep 24, 2019 at 11:19 PM Jason Baron wrote: > > > > On 9/24/19 10:06 AM, Heiher wrote: > > Hi, > > > > On Mon, Sep 23, 2019 at 11:34 PM Jason Baron wrote: > >> > >> > >> > >> On 9/20/19 12:00 PM, Jason Baron wrote: > >>> On 9/19/19 5:24 AM, hev wrote: > From: Heiher > >

Re: [PATCH v2] devfreq: Add tracepoint for frequency changes

2019-09-24 Thread Chanwoo Choi
On 19. 9. 25. 오전 4:37, Matthias Kaehlcke wrote: > On Fri, Sep 20, 2019 at 10:15:57AM +0900, Chanwoo Choi wrote: >> Hi, > > sorry for the delayed response, you message got buried in my > mailbox. > >> On 19. 9. 20. 오전 2:44, Matthias Kaehlcke wrote: >>> Add a tracepoint for frequency changes of

Re: For review: pidfd_send_signal(2) manual page

2019-09-24 Thread Jann Horn
On Mon, Sep 23, 2019 at 1:26 PM Florian Weimer wrote: > * Michael Kerrisk: > >The pidfd_send_signal() system call allows the avoidance of race > >conditions that occur when using traditional interfaces (such as > >kill(2)) to signal a process. The problem is that the

[PATCH xfstests v2] overlay: Enable character device to be the base fs partition

2019-09-24 Thread Zhihao Cheng
There is a message in _supported_fs(): _notrun "not suitable for this filesystem type: $FSTYP" for when overlay usecases are executed on a chararcter device based base fs. _overay_config_override() detects that the current base fs partition is not a block device, and FSTYP won't be overwritten

[PATCH] x86/mm: fix function name typo in pmd_read_atomic() comment

2019-09-24 Thread Wei Yang
The function involved should be pte_offset_map_lock and we never have function pmd_offset_map_lock defined. Fixes: 26c191788f18 ("mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race conditio") Signed-off-by: Wei Yang --- Hope my understanding is correct. ---

Re: linux-next: Tree for Sep 16 (kernel/sched/core.c)

2019-09-24 Thread Randy Dunlap
>> Signed-off-by: Patrick Bellasi >>>> Link: >>>> https://lore.kernel.org/lkml/1898d3c9-1997-17ce-a022-a5e28c8dc...@infradead.org/ >>>> Fixes: commit babbe170e05 ("sched/uclamp: Update CPU's refcount on TG's >>>> clamp changes") >>> >&

[PATCH] rtlwifi: prevent memory leak in rtl_usb_probe

2019-09-24 Thread Navid Emamdoost
In rtl_usb_probe if allocation for usb_data fails the allocated hw should be released. In addition the allocated rtlpriv->usb_data should be released on error handling path. Signed-off-by: Navid Emamdoost --- drivers/net/wireless/realtek/rtlwifi/usb.c | 5 - 1 file changed, 4 insertions(+),

[PATCH v8] perf diff: Report noisy for cycles diff

2019-09-24 Thread Jin Yao
This patch prints the stddev and hist for the cycles diff of program block. It can help us to understand if the cycles is noisy or not. This patch is inspired by Andi Kleen's patch https://lwn.net/Articles/600471/ We create new option '--cycles-hist'. Example: perf record -b ./div perf record

[PATCH] iwlwifi: prevent memory leak

2019-09-24 Thread Navid Emamdoost
In alloc_sgtable if alloc_page fails, along with releasing previously allocated pages, the allocated table should be released too. Signed-off-by: Navid Emamdoost --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 11/15] mm: Remove hpage_nr_pages

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This function assumed that compound pages were necessarily PMD sized. While that may be true for some users, it's not going to be true for all users forever, so it's better to remove it and avoid the confusion by just using compound_nr() or page_size().

[PATCH 15/15] xfs: Use filemap_huge_fault

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Signed-off-by: Matthew Wilcox (Oracle) --- fs/xfs/xfs_file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index d952d5962e93..9445196f8056 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@

[PATCH 08/15] mm: Add __page_cache_alloc_order

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This new function allows page cache pages to be allocated that are larger than an order-0 page. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 14 +++--- mm/filemap.c| 12 2 files changed, 19 insertions(+),

[PATCH 07/15] mm: Make prep_transhuge_page tail-callable

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" By permitting NULL or order-0 pages as an argument, and returning the argument, callers can write: return prep_transhuge_page(alloc_pages(...)); instead of assigning the result to a temporary variable and conditionally passing that to

[PATCH 09/15] mm: Allow large pages to be added to the page cache

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" We return -EEXIST if there are any non-shadow entries in the page cache in the range covered by the large page. If there are multiple shadow entries in the range, we set *shadowp to one of them (currently the one at the highest index). If that turns out to be

[PATCH 05/15] xfs: Support large pages

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Mostly this is just checking the page size of each page instead of assuming PAGE_SIZE. Clean up the logic in writepage a little. Signed-off-by: Matthew Wilcox (Oracle) --- fs/xfs/xfs_aops.c | 19 +-- 1 file changed, 9 insertions(+), 10

[PATCH 10/15] mm: Allow find_get_page to be used for large pages

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Add FGP_PMD to indicate that we're trying to find-or-create a page that is at least PMD_ORDER in size. The internal 'conflict' entry usage is modelled after that in DAX, but the implementations are different due to DAX using multi-order entries and the page cache

[PATCH 02/15] fs: Introduce i_blocks_per_page

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" This helper is useful for both large pages in the page cache and for supporting block size larger than page size. Convert some example users (we have a few different ways of writing this idiom). Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c

[PATCH 04/15] iomap: Support large pages

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Change iomap_page from a statically sized uptodate bitmap to a dynamically allocated uptodate bitmap, allowing an arbitrarily large page. The only remaining places where iomap assumes an order-0 page are for files with inline data, where there's no sense in

[RFC 00/15] Large pages in the page-cache

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Here's what I'm currently playing with. I'm having trouble _testing_ it, but since akpm's patches were just merged into Linus' tree, I thought this would be a good point to send out my current work tree. Thanks to kbuild bot for finding a bunch of build problems

[PATCH 01/15] mm: Use vm_fault error code directly

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Use VM_FAULT_OOM instead of indirecting through vmf_error(-ENOMEM). Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/filemap.c b/mm/filemap.c index 1146fcfa3215..625ef3ef19f3 100644

[PATCH 06/15] xfs: Pass a page to xfs_finish_page_writeback

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" The only part of the bvec we were accessing was the bv_page, so just pass that instead of the whole bvec. Signed-off-by: Matthew Wilcox (Oracle) --- fs/xfs/xfs_aops.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 13/15] mm: Add a huge page fault handler for files

2019-09-24 Thread Matthew Wilcox
From: William Kucharski Add filemap_huge_fault() to attempt to satisfy page faults on memory-mapped read-only text pages using THP when possible. Signed-off-by: William Kucharski [rebased on top of mm prep patches -- Matthew] Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h

[PATCH 12/15] mm: Support removing arbitrary sized pages from mapping

2019-09-24 Thread Matthew Wilcox
From: William Kucharski __remove_mapping() assumes that pages can only be either base pages or HPAGE_PMD_SIZE. Ask the page what size it is. Signed-off-by: William Kucharski Signed-off-by: Matthew Wilcox (Oracle) --- mm/vmscan.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-)

[PATCH 03/15] mm: Add file_offset_of_ helpers

2019-09-24 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" The page_offset function is badly named for people reading the functions which call it. The natural meaning of a function with this name would be 'offset within a page', not 'page offset in bytes within a file'. Dave Chinner suggests file_offset_of_page() as a

[PATCH 14/15] mm: Align THP mappings for non-DAX

2019-09-24 Thread Matthew Wilcox
From: William Kucharski When we have the opportunity to use transparent huge pages to map a file, we want to follow the same rules as DAX. Signed-off-by: William Kucharski Signed-off-by: Matthew Wilcox (Oracle) --- mm/huge_memory.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH] RISC-V: Clear load reservations while restoring hart contexts

2019-09-24 Thread Palmer Dabbelt
This is almost entirely a comment. The bug is unlikely to manifest on existing hardware because there is a timeout on load reservations, but manifests on QEMU because there is no timeout. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/asm.h | 1 + arch/riscv/kernel/entry.S| 21

Re: [PULL REQUEST] i2c for 5.4

2019-09-24 Thread pr-tracker-bot
The pull request you sent on Tue, 24 Sep 2019 21:31:03 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/351c8a09b00b5c51c8f58b016fffe51f87e2d820 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] sound fixes for 5.4-rc1

2019-09-24 Thread pr-tracker-bot
The pull request you sent on Tue, 24 Sep 2019 14:07:39 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-fix-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3cf7487c5de713b706ca2e1f66ec5f9b27fe265a Thank you! --

[GIT PULL] tpmdd fixes for Linux v5.4-rc1

2019-09-24 Thread Jarkko Sakkinen
Hi These are bug fixes for bugs found after my v5.4 PR. /Jarkko The following changes since commit 4c07e2ddab5b6b57dbcb09aedbda1f484d5940cc: Merge tag 'mfd-next-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd (2019-09-23 19:37:49 -0700) are available in the Git repository

Re: [PULL REQUEST] i2c for 5.4

2019-09-24 Thread Linus Torvalds
On Tue, Sep 24, 2019 at 12:31 PM Wolfram Sang wrote: > > - new driver for ICY, an Amiga Zorro card :) Christ. Will that thing _never_ die? But the reason I'm actually replying is not to comment on the apparent death-defying Amiga hardware scene, but to point out that you should try to fix your

Re: [PATCH V3 09/10] interconnect: mediatek: Add mt8183 interconnect provider driver

2019-09-24 Thread Georgi Djakov
Hi Henry, Please CC also the linux-pm@ list. On 8/28/19 05:28, Henry Chen wrote: > Introduce Mediatek MT8183 specific provider driver using the > interconnect framework. > > Signed-off-by: Henry Chen > --- > drivers/interconnect/Kconfig| 1 + > drivers/interconnect/Makefile

  1   2   3   4   5   6   7   8   9   >