[PATCH v5 0/2] Xilinx ZynqMP IPI Mailbox Controller Driver

2018-11-05 Thread Wendy Liang
Introduce mailbox controller driver for ZynqMP IPI(Inter-processor interrupt) IP core. As the device tree bindings have been updated. Do not have "Reviewed-by" nor "Acked-by" in the dt-bindings commit. v5: - fix check patch warning on write a paragraph to describe the kconfig symbol. v4: -

[PATCH v5 2/2] dt-bindings: mailbox: Add Xilinx IPI Mailbox

2018-11-05 Thread Wendy Liang
Xilinx ZynqMP IPI(Inter Processor Interrupt) is a hardware block in ZynqMP SoC used for the communication between various processor systems. Signed-off-by: Wendy Liang --- .../bindings/mailbox/xlnx,zynqmp-ipi-mailbox.txt | 128 + 1 file changed, 128 insertions(+) create mo

[PATCH v5 1/2] mailbox: ZynqMP IPI mailbox controller

2018-11-05 Thread Wendy Liang
This patch is to introduce ZynqMP IPI mailbox controller driver to use the ZynqMP IPI block as mailboxes. Signed-off-by: Wendy Liang --- drivers/mailbox/Kconfig| 9 + drivers/mailbox/Makefile | 2 + drivers/mailbox/zynqmp-ipi-mailbox.c | 762 ++

Re: [LKP] [mm] 9bc8039e71: will-it-scale.per_thread_ops -64.1% regression

2018-11-05 Thread Waiman Long
On 11/05/2018 05:14 PM, Linus Torvalds wrote: > On Mon, Nov 5, 2018 at 12:12 PM Vlastimil Babka wrote: >> I didn't spot an obvious mistake in the patch itself, so it looks >> like some bad interaction between scheduler and the mmap downgrade? > I'm thinking it's RWSEM_SPIN_ON_OWNER that ends up be

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-05 Thread Bart Van Assche
On Mon, 2018-11-05 at 23:14 +0100, Rasmus Villemoes wrote: > Won't that pessimize the cases where gfp is a constant to actually do > the table lookup, and add 16 bytes to every translation unit? > > Another option is to add a fake KMALLOC_DMA_RECLAIM so the > kmalloc_caches[] array has size 4, the

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-05 Thread Alexander Duyck
On Mon, Nov 5, 2018 at 2:41 PM Bart Van Assche wrote: > > On Mon, 2018-11-05 at 23:14 +0100, Rasmus Villemoes wrote: > > Won't that pessimize the cases where gfp is a constant to actually do > > the table lookup, and add 16 bytes to every translation unit? > > > > Another option is to add a fake K

Re: [PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

2018-11-05 Thread Will Deacon
[+PeterZ -- please include him on stuff like this] Hi Gao, On Tue, Oct 30, 2018 at 02:04:41PM +0800, Gao Xiang wrote: > It is better to use wrapped smp_cond_load_relaxed > instead of open-coded busy waiting for bit_spinlock. > > Signed-off-by: Gao Xiang > --- > > change log v2: > - fix the in

[ANNOUNCE] 4.14.78-rt47

2018-11-05 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.14.78-rt47 stable release. This release is just an update to the new stable 4.14.78 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-r

Re: [PATCH RFC] hist lookups

2018-11-05 Thread David Miller
From: Jiri Olsa Date: Mon, 5 Nov 2018 21:34:47 +0100 > I put something together.. still testing, but it's already > showing 0 lost events when for 'overwrite = 0' case even > for high load.. the old code shows ~1500 for same workload > > I'm printing lost event counts in stdio output header: >

Re: PEBS level 2/3 breaks dwarf unwinding! [WAS: Re: Broken dwarf unwinding - wrong stack pointer register value?]

2018-11-05 Thread Milian Wolff
On Montag, 5. November 2018 21:51:19 CET Jiri Olsa wrote: > On Fri, Nov 02, 2018 at 06:56:50PM +0100, Milian Wolff wrote: > > SNIP > > > > > Note how precise levels 0 and 1 do not produce any samples where > > > > unwinding > > > > fails. But precise level 2 produces some, and precise level 3 > >

Re: [PATCH 1/2] mtd: docg3: don't set conflicting BCH_CONST_PARAMS option

2018-11-05 Thread Boris Brezillon
On Thu, 11 Oct 2018 13:06:16 +0200 Arnd Bergmann wrote: > I noticed during the creation of another bugfix that the BCH_CONST_PARAMS > option that is set by DOCG3 breaks setting variable parameters for any > other users of the BCH library code. > > The only other user we have today is the MTD_NAN

Re: [PATCH] mtd: nand: drop kernel-doc notation for a deleted function parameter

2018-11-05 Thread Boris Brezillon
On Sun, 4 Nov 2018 18:38:35 -0800 Randy Dunlap wrote: > From: Randy Dunlap > > Remove kernel-doc notation for a deleted function parameter to prevent > a kernel-doc warning: > > ../drivers/mtd/nand/raw/nand_base.c:603: warning: Excess function parameter > 'mtd' description in 'panic_nand_wait

Re: [PATCH 1/2] ARM: copypage-fa: add kto and kfrom to input operands list

2018-11-05 Thread Stefan Agner
On 16.10.2018 22:43, Nicolas Pitre wrote: > On Tue, 16 Oct 2018, Russell King - ARM Linux wrote: > >> On Tue, Oct 16, 2018 at 10:00:19AM +0200, Linus Walleij wrote: >> > On Tue, Oct 16, 2018 at 12:16 AM Stefan Agner wrote: >> > >> > > When functions incoming parameters are not in input operands l

[PATCH] drm/syncobj: Fix oops on drm_syncobj_find_fence(file_priv, 0, ...).

2018-11-05 Thread Eric Anholt
This broke rendering on V3D, where we almost always have a 0 in-syncobj. Signed-off-by: Eric Anholt Fixes: 48197bc564c7 ("drm: add syncobj timeline support v9") Cc: Chunming Zhou Cc: Christian König --- drivers/gpu/drm/drm_syncobj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH] mtd: spi-nor: cadence-quadspi: Fix the return value in case of error in 'cqspi_direct_read_execute()'

2018-11-05 Thread Boris Brezillon
On Tue, 16 Oct 2018 09:13:46 +0200 Christophe JAILLET wrote: > We return 0 unconditionally in 'cqspi_direct_read_execute()'. > However, 'ret' is set to some error codes in several error handling paths. > > Return 'ret' instead to propagate the error code. > > Fixes: ffa639e069fb ("mtd: spi-nor:

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-05 Thread Thomas Gleixner
Tim, On Mon, 5 Nov 2018, Tim Chen wrote: > How about sending an IPI if a remote CPU needs to have its SPEC_CTRL MSR > updated? > > Something like the following to replace this patch? ... > +static void spec_ctrl_update_func(void *info) > +{ > + speculation_ctrl_update(task_thread_info(curre

[PATCH v2] clk: meson-gxbb: set fclk_div3 as CLK_IS_CRITICAL

2018-11-05 Thread Jerome Brunet
From: Christian Hewitt On the Khadas VIM2 (GXM) and LePotato (GXL) board there are problems with reboot; e.g. a ~60 second delay between issuing reboot and the board power cycling (and in some OS configurations reboot will fail and require manual power cycling). Similar to 'commit c987ac6f1f0886

linux-next: Signed-off-by missing for commit in the xtensa tree

2018-11-05 Thread Stephen Rothwell
Hi Max, Commit 12e90ddd8dbf ("Revert "xtensa: xtfpga: implement platform DMA address helpers"") is missing a Signed-off-by from its author and committer. Reverts are commits too. -- Cheers, Stephen Rothwell pgp9HDMOIfj2p.pgp Description: OpenPGP digital signature

[PATCH] ARM: OMAP1: ams-delta: make board header file local to mach-omap1

2018-11-05 Thread Janusz Krzysztofik
Now as the board header file is no longer included by drivers, move it to the root directory of mach-omap1. Signed-off-by: Janusz Krzysztofik --- Changelog: v4: - rebased on top of v4.20-rc1 - resubmitted as a standalone patch, other patches of the series it depended on have been already applie

[PATCH] ARM: BCM63XX: Enable reset controller support

2018-11-05 Thread Florian Fainelli
Allow BCM63xx to compile support for reset controllers since we will require a specific reset controller to release resets for on-chip peripherals. Signed-off-by: Florian Fainelli --- arch/arm/mach-bcm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-bcm/Kconfig b/arch/a

Re: [PATCH] PCI: Add HXT vendor ID and ACS quirk

2018-11-05 Thread Sinan Kaya
On 11/4/2018 7:15 PM, Shunyong Yang wrote: Add the HXT vendor ID to pci_ids.h and use it in quirks. As the design of HXT SD4800 ACS feature is the same as QCOM QDF2xxx, pci_quirk_qcom_rp_acs() is reused for SD4800 quirk. Cc: Joey Zheng Signed-off-by: Shunyong Yang There is also a couple of hot

Re: linux-next: Signed-off-by missing for commit in the xtensa tree

2018-11-05 Thread Max Filippov
Hi Stephen, On Mon, Nov 5, 2018 at 3:09 PM Stephen Rothwell wrote: > Commit > > 12e90ddd8dbf ("Revert "xtensa: xtfpga: implement platform DMA address > helpers"") > > is missing a Signed-off-by from its author and committer. > > Reverts are commits too. Thanks for catching that. Should I rewr

Re: [RFC PATCH] dt-bindings: opp: Extend qcom-opp bindings with properties needed for CPR

2018-11-05 Thread Rob Herring
On Mon, Oct 15, 2018 at 02:47:49PM +0200, Niklas Cassel wrote: > Extend qcom-opp bindings with properties needed for Core Power Reduction > (CPR). > > CPR is included in a great variety of Qualcomm SoC, e.g. msm8916 and > msm8996, and was first introduced in msm8974. > > Signed-off-by: Niklas Cas

Re: linux-next: Signed-off-by missing for commit in the xtensa tree

2018-11-05 Thread Stephen Rothwell
Hi Max, On Mon, 5 Nov 2018 15:14:44 -0800 Max Filippov wrote: > > On Mon, Nov 5, 2018 at 3:09 PM Stephen Rothwell wrote: > > Commit > > > > 12e90ddd8dbf ("Revert "xtensa: xtfpga: implement platform DMA address > > helpers"") > > > > is missing a Signed-off-by from its author and committer. >

Re: [PATCH] arm64: dts: sdm845: Add videocc node

2018-11-05 Thread Stephen Boyd
Quoting Taniya Das (2018-11-05 02:35:17) > This adds the video clock controller node to sdm845 based on the examples > in the bindings. > > Signed-off-by: Taniya Das > --- Did you mean to send "To:" Andy? Clk tree doesn't take these sorts of dts patches.

[PATCH] ARM: OMAP1: ams-delta: Provide GPIO lookup table for LED device

2018-11-05 Thread Janusz Krzysztofik
Global GPIO numbers no longer have to be passed to leds-gpio driver, replace their assignment with a lookup table. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/board-ams-delta.c | 95 ++- 1 file changed, 26 insertions(+), 69 deletions(-) diff --git a

Re: [PATCH] z3fold: fix possible reclaim races

2018-11-05 Thread Andrew Morton
On Mon, 5 Nov 2018 16:22:25 +0100 Vitaly Wool wrote: > Reclaim and free can race on an object which is basically fine but > in order for reclaim to be able to map "freed" object we need to > encode object length in the handle. handle_to_chunks() is then > introduced to extract object length from

Re: [RFC PATCH v2 1/1] pipe: busy wait for pipe

2018-11-05 Thread Subhra Mazumdar
On 11/5/18 2:08 AM, Mel Gorman wrote: Adding Al Viro as per get_maintainers.pl. On Tue, Sep 25, 2018 at 04:32:40PM -0700, subhra mazumdar wrote: Introduce pipe_ll_usec field for pipes that indicates the amount of micro seconds a thread should spin if pipe is empty or full before sleeping. Thi

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-05 Thread Tim Chen
Thomas, > > > Aside of the condition being pointless in that case, that issues an IPI > whether the task is running or not. So this allows a task to issue tons of > async IPIs disturbing others by toggling the control. I'm not crazy about sending IPIs too. Hence the original implementation usi

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-05 Thread Bart Van Assche
On Mon, 2018-11-05 at 14:48 -0800, Alexander Duyck wrote: > On Mon, Nov 5, 2018 at 2:41 PM Bart Van Assche wrote: > > How about this version, still untested? My compiler is able to evaluate > > the switch expression if the argument is constant. > > > > static __always_inline enum kmalloc_cache_t

Re: PEBS level 2/3 breaks dwarf unwinding! [WAS: Re: Broken dwarf unwinding - wrong stack pointer register value?]

2018-11-05 Thread Andi Kleen
> > > - PMU triggers interrupt and PEBS stores RIP etc. > > > - code continous to execute, possibly changing the stack > > > > I dont think the code continues to execute.. the stack is ok > > Are you sure about this? I mean, isn't that the whole reason why we need > PEBS? > Generally, if you ar

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-05 Thread Alexander Duyck
On Mon, Nov 5, 2018 at 4:01 PM Bart Van Assche wrote: > > On Mon, 2018-11-05 at 14:48 -0800, Alexander Duyck wrote: > > On Mon, Nov 5, 2018 at 2:41 PM Bart Van Assche wrote: > > > How about this version, still untested? My compiler is able to evaluate > > > the switch expression if the argument i

Re: [RFC 1/2] dt-bindings: topology: Add RISC-V cpu topology.

2018-11-05 Thread Atish Patra
On 11/5/18 12:11 PM, Rob Herring wrote: On Mon, Nov 5, 2018 at 1:39 PM Palmer Dabbelt wrote: On Fri, 02 Nov 2018 06:09:39 PDT (-0700), robh...@kernel.org wrote: On Thu, Nov 1, 2018 at 6:04 PM Atish Patra wrote: Define a RISC-V cpu topology. This is based on cpu-map in ARM world. But it doe

[PATCH] lib/raid6: Fix arm64 test build

2018-11-05 Thread Jeremy Linton
The lib/raid6/test fails to build the neon objects on arm64 because the correct machine type is 'aarch64'. Once this is correctly enabled, the neon recovery objects need to be added to the build. Signed-off-by: Jeremy Linton --- lib/raid6/test/Makefile | 4 ++-- 1 file changed, 2 insertions(+),

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Baoquan He
On 11/05/18 at 06:10pm, Michal Hocko wrote: > On Mon 05-11-18 22:23:08, Baoquan He wrote: > > On 11/05/18 at 01:38pm, Michal Hocko wrote: > > > On Mon 05-11-18 18:25:20, Baoquan He wrote: > > > > Hi Michal, > > > > > > > > On 11/05/18 at 10:28am, Michal Hocko wrote: > > > > > > > > > > Or somethi

Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count

2018-11-05 Thread John Hubbard
On 11/5/18 1:54 AM, Jan Kara wrote: > On Sun 04-11-18 23:10:12, John Hubbard wrote: >> On 10/13/18 9:47 AM, Christoph Hellwig wrote: >>> On Sat, Oct 13, 2018 at 12:34:12AM -0700, John Hubbard wrote: In patch 6/6, pin_page_for_dma(), which is called at the end of get_user_pages(), un

Re: [PATCH] psi: simplify cgroup_move_task

2018-11-05 Thread Andrew Morton
On Sat, 3 Nov 2018 11:33:39 -0700 Olof Johansson wrote: > The existing code triggered an invalid warning about 'rq' possibly being > used uninitialized. Instead of doing the silly warning suppression by > initializa it to NULL, refactor the code to bail out early instead. > > Warning was: > >

Re: [PATCH v2] PCI/MSI: Don't touch MSI bits when the PCI device is disconnected

2018-11-05 Thread Alex G.
ping On 09/18/2018 05:15 PM, Alexandru Gagniuc wrote: When a PCI device is gone, we don't want to send IO to it if we can avoid it. We expose functionality via the irq_chip structure. As users of that structure may not know about the underlying PCI device, it's our responsibility to guard agains

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-05 Thread Bart Van Assche
On Mon, 2018-11-05 at 16:11 -0800, Alexander Duyck wrote: > If we really don't care then why even bother with the switch statement > anyway? It seems like you could just do one ternary operator and be > done with it. Basically all you need is: > return (defined(CONFIG_ZONE_DMA) && (flags & __GFP_DM

Re: [PATCH] mm/thp: Correctly differentiate between mapped THP and PMD migration entry

2018-11-05 Thread Will Deacon
On Fri, Nov 02, 2018 at 11:45:00AM +0530, Anshuman Khandual wrote: > On 10/17/2018 07:39 AM, Andrea Arcangeli wrote: > > What we need to do during split is an invalidate of the huge TLB. > > There's no pmd_trans_splitting anymore, so we only clear the present > > bit in the PTE despite pmd_present

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

2018-11-05 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: /bin/bash: scripts/atomic/check-atomics.sh: No such file or directory Caused by commit 8d32588077bd ("locking/atomics: Check generated headers are up-to-date") I build with O= I have appp

linux-next: build warning after merge of the tip tree

2018-11-05 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: warning: include/asm-generic/atomic-instrumented.h is out-of-date. warning: include/asm-generic/atomic-long.h is out-of-date. warning: include/linux/atomic-fallback.h is out-of-date. Expo

Re: [PATCH v2 00/17] thermal: enable+check sensor after its setup is finished

2018-11-05 Thread Eduardo Valentin
Hey, On Mon, Nov 05, 2018 at 05:35:55PM +0100, Bartlomiej Zolnierkiewicz wrote: > > On 11/05/2018 04:04 AM, Zhang Rui wrote: > > Hi, Bartlomiej, > > Hi Rui, > > > Interesting, I'm about to bring this issue to Linux Plumber Conference > > this year for discussion, and I'm also proposing a soluti

RE: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread He, Bo
Hi, I submit the patch based on tag v4.19. -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, November 6, 2018 1:02 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org Cc: liam.r.girdw...@linux.intel.com; pe...@perex.cz; ti...@suse.com; Singh, G

Re: [PATCH 1/2] dt-bindings: clk: Introduce 'protected-clocks' property

2018-11-05 Thread Bjorn Andersson
On Mon 05 Nov 11:40 PST 2018, Stephen Boyd wrote: > Add a generic clk property for clks which are not intended to be used by > the OS due to security restrictions put in place by firmware. For > example, on some Qualcomm firmwares reading or writing certain clk > registers causes the entire system

Re: [PATCH 2/2] clk: qcom: Support 'protected-clocks' property

2018-11-05 Thread Bjorn Andersson
On Mon 05 Nov 11:40 PST 2018, Stephen Boyd wrote: > Certain firmware configurations "protect" clks and cause the entire > system to reboot when a non-secure OS such as Linux tries to read or > write protected clk registers. But other firmware configurations allow > reading or writing the same regi

linux-next: build warning after merge of the gpio tree

2018-11-05 Thread Stephen Rothwell
Hi Linus, After merging the gpio tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/gpio/gpiolib.c:1514:12: warning: 'devm_gpio_chip_match' defined but not used [-Wunused-function] static int devm_gpio_chip_match(struct device *dev, void *res, void *data)

RE,

2018-11-05 Thread Miss Juliet Muhammad
I have a deal for you, in your region.

RE,

2018-11-05 Thread Miss Juliet Muhammad
I have a deal for you, in your region.

[regression 4.20-rc1, bisected] cpufreq fails to register on db820c

2018-11-05 Thread Niklas Cassel
Hello Bartosz, I've run into a regression on v4.20-rc1, where cpufreq on dragonboard 820c fails to register. I've bisected the issue to: e888d445ac33 ("nvmem: resolve cells from DT at registration time") If I revert that patch, cpufreq starts working on dragonboard 820c again. Before your patc

Re: [RFC PATCH v4 00/13] ktask: multithread CPU-intensive kernel work

2018-11-05 Thread Daniel Jordan
On Mon, Nov 05, 2018 at 06:29:31PM +0100, Michal Hocko wrote: > On Mon 05-11-18 11:55:45, Daniel Jordan wrote: > > Michal, you mentioned that ktask should be sensitive to CPU utilization[1]. > > ktask threads now run at the lowest priority on the system to avoid > > disturbing > > busy CPUs (more

Re: [PATCH] PCI: Add HXT vendor ID and ACS quirk

2018-11-05 Thread Yang, Shunyong
Hi, Sinan, On 2018/11/6 7:12, Sinan Kaya wrote: > On 11/4/2018 7:15 PM, Shunyong Yang wrote: >> Add the HXT vendor ID to pci_ids.h and use it in quirks. As the >> design of HXT SD4800 ACS feature is the same as QCOM QDF2xxx, >> pci_quirk_qcom_rp_acs() is reused for SD4800 quirk. >> >> Cc: Joey Zhe

Re: [PATCH] hugetlbfs: fix kernel BUG at fs/hugetlbfs/inode.c:444!

2018-11-05 Thread Naoya Horiguchi
On Mon, Nov 05, 2018 at 01:23:15PM -0800, Mike Kravetz wrote: > This bug has been experienced several times by Oracle DB team. > The BUG is in the routine remove_inode_hugepages() as follows: > /* >* If page is mapped, it was faulted in after being >* unmapped in caller. Unma

RE: [PATCH V2 2/2] clocksource: imx-gpt: add necessary kfree to avoid resource leak

2018-11-05 Thread Anson Huang
Hi, Daniel Best Regards! Anson Huang > -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: 2018年11月5日 21:35 > To: Anson Huang ; t...@linutronix.de; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subject: Re: [PATCH V2 2/2] clocksource: imx-gpt: add n

Re: [PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

2018-11-05 Thread Gao Xiang
Hi Will, On 2018/11/6 6:49, Will Deacon wrote: > Hi Gao, > > On Tue, Oct 30, 2018 at 02:04:41PM +0800, Gao Xiang wrote: >> It is better to use wrapped smp_cond_load_relaxed >> instead of open-coded busy waiting for bit_spinlock. >> >> Signed-off-by: Gao Xiang >> --- >> >> change log v2: >> - fi

Re: [PATCH 04/12] gfs2: properly initial file_lock used for unlock.

2018-11-05 Thread NeilBrown
On Mon, Nov 05 2018, Jeff Layton wrote: > On Mon, 2018-11-05 at 12:30 +1100, NeilBrown wrote: >> Rather than assuming all-zeros is sufficient, use the available API to >> initialize the file_lock structure use for unlock. >> VFS-level changes will soon make it important that the >> list_heads in f

Re: [LKP] [tools/bpf] f6f3bac08f: stderr.failed_to_prepare_for_bpf

2018-11-05 Thread Yonghong Song
I cannot reproduce in my local fc28 system with the attached steps. The netlink_dumper.c file, could you confirm whether the following header files are missing form you rhel-7.2 host? #include #include I suspect you probably miss linux/tc_act/tc_bpf.h. But could you confirm it? If this is

[PATCH 1/2] pci: prevent sk hynix nvme from entering D3

2018-11-05 Thread AceLan Kao
It leads to the power consumption raises to 2.2W during s2idle, while it consumes less than 1W during long idle if put SK hynix nvme to D3 and then enter s2idle. >From SK hynix FE, MS Windows doesn't put nvme to D3, and uses its own APST feature to do the power management. To leverage its APST feat

[PATCH 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread AceLan Kao
Call nvme_dev_disable() function leads to the power consumption goes up to 2.2 Watt during suspend-to-idle, and from SK hynix FE, they suggest us to use its own APST feature to do the power management during s2idle. After D3 is diabled and nvme_dev_disable() is not called while suspending, the powe

Re: [RFC PATCH v4 00/13] ktask: multithread CPU-intensive kernel work

2018-11-05 Thread Daniel Jordan
Hi Zi, On Mon, Nov 05, 2018 at 01:49:14PM -0500, Zi Yan wrote: > On 5 Nov 2018, at 11:55, Daniel Jordan wrote: > > Do you think if it makes sense to use ktask for huge page migration (the data > copy part)? It certainly could. > I did some experiments back in 2016[1], which showed that migrating

Re: [PATCH 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread Sinan Kaya
On 11/5/2018 6:04 PM, AceLan Kao wrote: + { PCI_DEVICE(0x1c5c, 0x1527), /* Sk Hynix */ + .driver_data = NVME_QUIRK_NO_DISABLE, }, Now that you added PCI_VENDOR_ID_SK_HYNIX to pci_ids.h, you could use PCI_VENDOR_ID_SK_HYNIX above instead of 0x1c5c.

Re: [RFC PATCH v4 02/13] ktask: multithread CPU-intensive kernel work

2018-11-05 Thread Daniel Jordan
On Mon, Nov 05, 2018 at 12:51:33PM -0800, Randy Dunlap wrote: > On 11/5/18 8:55 AM, Daniel Jordan wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 41583f468cb4..ed82f76ed0b7 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -346,6 +346,17 @@ config AUDIT_TREE > > depends

Re: [RFC PATCH v4 01/13] ktask: add documentation

2018-11-05 Thread Daniel Jordan
On Mon, Nov 05, 2018 at 01:19:50PM -0800, Randy Dunlap wrote: > On 11/5/18 8:55 AM, Daniel Jordan wrote: > > Hi, > > > +Resource Limits > > +=== > > + > > +ktask has resource limits on the number of work items it sends to > > workqueue. > >

[PATCH v2] kobject: to use pr_warn replace KERN_WARNING

2018-11-05 Thread Bo YU
Fix warning form checkpatch, use pr_warn replace KERN_WARNING Signed-off-by: Bo YU --- changes in v2: According to Joe's suggestion,drop newline from msg, otherwise it can be unterminated with newline. --- lib/kobject_uevent.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) di

Re: [RFC PATCH v4 06/13] vfio: parallelize vfio_pin_map_dma

2018-11-05 Thread Daniel Jordan
On Mon, Nov 05, 2018 at 02:51:41PM -0700, Alex Williamson wrote: > On Mon, 5 Nov 2018 11:55:51 -0500 > Daniel Jordan wrote: > > +static int vfio_pin_map_dma_chunk(unsigned long start_vaddr, > > + unsigned long end_vaddr, > > + struct vfio_pi

Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count

2018-11-05 Thread Dave Chinner
On Mon, Nov 05, 2018 at 04:26:04PM -0800, John Hubbard wrote: > On 11/5/18 1:54 AM, Jan Kara wrote: > > Hmm, have you tried larger buffer sizes? Because synchronous 8k IO isn't > > going to max-out NVME iops by far. Can I suggest you install fio [1] (it > > has the advantage that it is pretty much

Re: [RFC PATCH v4 00/13] ktask: multithread CPU-intensive kernel work

2018-11-05 Thread Zi Yan
On 5 Nov 2018, at 21:20, Daniel Jordan wrote: > Hi Zi, > > On Mon, Nov 05, 2018 at 01:49:14PM -0500, Zi Yan wrote: >> On 5 Nov 2018, at 11:55, Daniel Jordan wrote: >> >> Do you think if it makes sense to use ktask for huge page migration (the data >> copy part)? > > It certainly could. > >> I did

Re: [PATCH 2/2] nvme: add quirk to not call disable function when suspending

2018-11-05 Thread AceLan Kao
Right, should replace it with SK_HYNIX. I'll prepare v2 patch for that. Sinan Kaya 於 2018年11月6日 週二 上午10:24寫道: > > On 11/5/2018 6:04 PM, AceLan Kao wrote: > > + { PCI_DEVICE(0x1c5c, 0x1527), /* Sk Hynix */ > > + .driver_data = NVME_QUIRK_NO_DISABLE, }, > > Now that you added PCI_V

linux-next: Tree for Nov 6

2018-11-05 Thread Stephen Rothwell
Hi all, Changes since 20181105: New trees: risc-v-pjw, sifive, i3c-fixes, i3c The drm-msm tree gained a conflict against the drm-misc tree. The tip tree gained a build failure for which I applied a fix patch. Non-merge commits (relative to Linus' tree): 825 1082 files changed,

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-11-05 Thread NeilBrown
On Fri, Oct 05 2018, NeilBrown wrote: > The synchronize_rcu() in namespace_unlock() is called every time > a filesystem is unmounted. If a great many filesystems are mounted, > this can cause a noticable slow-down in, for example, system shutdown. > > The sequence: > mkdir -p /tmp/Mtest/{0..500

[PATCH] dma: coh901318: Fix a double-lock bug

2018-11-05 Thread Jia-Ju Bai
The function coh901318_alloc_chan_resources() calls spin_lock_irqsave() before calling coh901318_config(). But coh901318_config() calls spin_lock_irqsave() again in its definition, which may cause a double-lock bug. Because coh901318_config() is only called by coh901318_alloc_chan_resources(), th

[PATCH v3 1/4] Revert "dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations"

2018-11-05 Thread Robin Gong
From: Lucas Stach This reverts commit c1199875d327, as this depends on another commit that is going to be reverted. Signed-off-by: Lucas Stach Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/

[PATCH v3 0/4] Correct dma pool for imx-sdma

2018-11-05 Thread Robin Gong
This patch set to correct dma pool used in the commit fe5b85c656bc ("dmaengine: imx-sdma: alloclate bd memory from dma pool") because all bds should be contiguous in memory in multi bds case for sdma, but dma pool can't statify it and cause transfer failure then.Thank Lucas for the making things on

[PATCH v3 4/4] dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations

2018-11-05 Thread Robin Gong
From: Lucas Stach DMA buffer descriptors aren't allocated from atomic context, so they can use the less heavyweigth GFP_NOWAIT. Signed-off-by: Lucas Stach Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/imx-s

[PATCH v3 2/4] Revert "dmaengine: imx-sdma: alloclate bd memory from dma pool"

2018-11-05 Thread Robin Gong
From: Lucas Stach This reverts commit fe5b85c656bc. The SDMA engine needs the descriptors to be contiguous in memory. As the dma pool API is only able to provide a single descriptor per alloc invocation there is no guarantee that multiple descriptors satisfy this requirement. Also the code in que

[PATCH v3 3/4] dmaengine: imx-sdma: implement channel termination via worker

2018-11-05 Thread Robin Gong
From: Lucas Stach The dmaengine documentation states that device_terminate_all may be asynchronous and need not wait for the active transfers to stop. This allows us to move most of the functionality currently implemented in the sdma channel termination function to run in a worker, outside of an

Re: [PATCH RFC] hist lookups

2018-11-05 Thread David Miller
From: Jiri Olsa Date: Mon, 5 Nov 2018 21:34:47 +0100 > I pushed it in perf/fixes branch in: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git Build fix for sparc below, I'm playing with this now. perf: Use PRIu64 for printing top lost events count. Signed-off-by: David S. Miller

[Patch v4] genirq/matrix: Choose CPU for managed IRQs based on how many of them are allocated

2018-11-05 Thread Long Li
From: Long Li On a large system with multiple devices of the same class (e.g. NVMe disks, using managed IRQs), the kernel tends to concentrate their IRQs on several CPUs. The issue is that when NVMe calls irq_matrix_alloc_managed(), the assigned CPU tends to be the first several CPUs in the cpum

Re: [PATCH RFC] hist lookups

2018-11-05 Thread David Miller
From: David Miller Date: Mon, 05 Nov 2018 19:45:42 -0800 (PST) > Build fix for sparc below, I'm playing with this now. I get various assertion failures and crashes during make -j128 kernel builds on my sparc64 box: perf: Segmentation fault backtrace /lib/s

[PATCH] kbuild: deb-pkg: fix too low build version number

2018-11-05 Thread Masahiro Yamada
Since commit b41d920acff8 ("kbuild: deb-pkg: split generating packaging and build"), the build version of the kernel contained in a deb package is too low by 1. Prior to the bad commit, the kernel was built first, then the number in .version file was read out, and written into the debian control f

Re: [PATCH 8/8] pstore/ram: Correctly calculate usable PRZ bytes

2018-11-05 Thread Joel Fernandes
On Mon, Nov 05, 2018 at 09:04:13AM -0800, Kees Cook wrote: > On Sun, Nov 4, 2018 at 8:42 PM, Joel Fernandes wrote: > > Dumping the magic bytes of the non decompressable .enc.z files, I get this > > which shows a valid zlib compressed header: > > > > Something like: > > 48 89 85 54 4d 6f 1a 31 > >

Re: [PATCH 1/2] ARM: copypage-fa: add kto and kfrom to input operands list

2018-11-05 Thread Nicolas Pitre
On Tue, 6 Nov 2018, Stefan Agner wrote: > On 16.10.2018 22:43, Nicolas Pitre wrote: > > Subject: [PATCH] ARM: remove naked function usage > > > > Convert page copy functions not to rely on the naked function attribute. > > > > This attribute is known to confuse some gcc versions when function >

Re: [PATCH RFC] hist lookups

2018-11-05 Thread David Miller
Jiri, Because you now run queued_events__queue() lockless with that condvar trick, it is possible for top->qe.in to be seen as one past the data[] array, this is because the rotate_queues() code goes: if (++top->qe.in > &top->qe.data[1]) top->qe.in = &top->qe.data[0]; S

[RESEND PATCH 4/7] dmaengine: sprd: Set cur_desc as NULL when free or terminate one dma channel

2018-11-05 Thread Baolin Wang
From: Eric Long It will be failed to start one new transfer if the channel started one none interrupt transfer before, since we will only set the schan->cur_desc as NULL depending on the transfer interrupt now. Thus we should set schan->cur_desc as NULL when free or terminate one dma channel to a

[RESEND PATCH 5/7] dmaengine: sprd: Support DMA link-list cyclic callback

2018-11-05 Thread Baolin Wang
From: Eric Long The Spreadtrum DMA link-list mode is always one cyclic transfer, so we should clear the SPRD_DMA_LLIST_END flag for the link-list configuration. Moreover add cyclic callback support for the cyclic transfer. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sp

[RESEND PATCH 1/7] dmaengine: sprd: Remove direction usage from struct dma_slave_config

2018-11-05 Thread Baolin Wang
The direction field of struct dma_slave_config was marked deprecated, thus remove the usage. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 38d4e4f..c226dc93 100644 --- a/drivers

[RESEND PATCH 3/7] dmaengine: sprd: Fix the last link-list configuration

2018-11-05 Thread Baolin Wang
From: Eric Long We will pass sglen as 0 configure the last link-list configuration when filling the descriptor, which will cause the incorrect link-list configuration. Thus we should check if the sglen is 0 to configure the correct link-list configuration. Signed-off-by: Eric Long Signed-off-by

[RESEND PATCH 2/7] dmaengine: sprd: Get transfer residue depending on the transfer direction

2018-11-05 Thread Baolin Wang
From: Eric Long Add one field to save the transfer direction for struct sprd_dma_desc, which is used to get correct transfer residue depending on the transfer direction. [Baolin Wang adds one field to present the transfer direction] Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- driv

[RESEND PATCH 6/7] dmaengine: sprd: Support DMA 2-stage transfer mode

2018-11-05 Thread Baolin Wang
From: Eric Long The Spreadtrum DMA controller supports channel 2-stage tansfer mode, that means we can request 2 dma channels, one for source channel, and another one for destination channel. Once the source channel's transaction is done, it will trigger the destination channel's transaction auto

[RESEND PATCH 7/7] dmaengine: sprd: Add me as one of the module authors

2018-11-05 Thread Baolin Wang
From: Eric Long Add me as one of the module authors. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 50d6569..e2f0167 100644 --- a/drivers/dma/sprd-dma.c

[RESEND PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-11-05 Thread Baolin Wang
This patchset removes the direction usage from struct dma_slave_config, and add one new field to save the direction. It also fixes some issues for link-list transfer. Moreover this patchset adds new 2-stage transfer support for our DMA. Baolin Wang (1): dmaengine: sprd: Remove direction usage fr

[PATCH] clocksource/drivers/timer-imx-tpm: convert the driver to timer-of

2018-11-05 Thread Anson Huang
Convert the driver to use the timer_of helpers. This allows to handle timer base, clock and irq using common timer_of driver and it simplifies the code. Signed-off-by: Anson Huang --- drivers/clocksource/timer-imx-tpm.c | 136 +++- 1 file changed, 55 insertions(+)

Re: [PATCH RFC 1/1] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-11-05 Thread Stephen Boyd
Quoting Lina Iyer (2018-11-01 10:16:30) > On Wed, Oct 31 2018 at 18:13 -0600, Stephen Boyd wrote: > > > >Right. Let's scrap the plan to do the wakeup based mask/unmask in both > >chips. It won't work because of the edge trigger type. > > > >The difference I see is that this patch does the irq "forw

Re: [PATCH] mm, slab: remove unnecessary unlikely()

2018-11-05 Thread Dmitry Vyukov
On Mon, Nov 5, 2018 at 11:18 AM, Vlastimil Babka wrote: > +CC Dmitry > > On 11/4/18 1:50 PM, Yangtao Li wrote: >> WARN_ON() already contains an unlikely(), so it's not necessary to use >> unlikely. >> >> Signed-off-by: Yangtao Li > > Acked-by: Vlastimil Babka > > Maybe also change it back to WAR

Re: [PATCH v1 0/4]mm: convert totalram_pages, totalhigh_pages and managed pages to atomic

2018-11-05 Thread Arun KS
Any comments? Regards, Arun On 2018-10-26 16:30, Arun KS wrote: This series convert totalram_pages, totalhigh_pages and zone->managed_pages to atomic variables. The patch was comiple tested on x86(x86_64_defconfig & i386_defconfig) on tip of linux-mmotm. And memory hotplug tested on arm64, but

[PATCH] sched: Fix the ifdef block in add_nr_running()

2018-11-05 Thread Viresh Kumar
There is no point in keeping the conditional statement of the if block outside of the ifdef block, while all of its body is contained within the ifdef block. Move the conditional statement as well under the ifdef block. Signed-off-by: Viresh Kumar --- kernel/sched/sched.h | 4 ++-- 1 file change

[PATCH] arm64: dts: qcom: sdm845-mtp: Mark protected gcc clocks

2018-11-05 Thread Bjorn Andersson
As of v4.20-rc1 probing the GCC driver on a SDM845 device with the standard security implementation causes an access violation and an immediate system restart. Use the protected-clocks property to mark the offending clocks protected for the MTP, in order to allow it to boot. Cc: Stephen Boyd Sign

Re: [PATCH v3 01/16] tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 04:48:13PM -0500, Stefan Berger wrote: > > int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) > > { > > + struct tpm_buf buf; > > int rc; > > > > chip = tpm_find_get_ops(chip); > > if (!chip) > > return -ENODEV; > > > > - rc = tpm

Re: [PATCH v3 03/16] tpm: return 0 from pcrs_show() when tpm1_pcr_read() fails

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 04:54:52PM -0500, Stefan Berger wrote: > On 11/4/18 8:45 PM, Jarkko Sakkinen wrote: > > Do not print partial list of PCRs when tpm1_pcr_read() fails but instead > > return 0 from pcrs_show(). This is consistent behavior with other sysfs > > functions. > > > > Signed-off-by:

Re: [PATCH v3 04/16] tpm: call tpm2_flush_space() on error in tpm_try_transmit()

2018-11-05 Thread Jarkko Sakkinen
On Mon, Nov 05, 2018 at 05:01:46PM -0500, Stefan Berger wrote: > On 11/4/18 8:45 PM, Jarkko Sakkinen wrote: > > Always call tpm2_flush_space() on failure in tpm_try_transmit() so that > > the volatile memory of the TPM gets cleared. If /dev/tpm0 does not have > > sufficient permissions (usually it

  1   2   3   4   5   6   7   8   >