Re: [PATCH] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-06-27 Thread Minchan Kim
Hi Kuo-Hsin, On Wed, Jun 19, 2019 at 04:08:35PM +0800, Kuo-Hsin Yang wrote: > When file refaults are detected and there are many inactive file pages, > the system never reclaim anonymous pages, the file pages are dropped > aggressively when there are still a lot of cold anonymous pages and > syste

Re: [PATCH RESEND v3] sched/isolation: Prefer housekeeping cpu in local node

2019-06-27 Thread Srikar Dronamraju
* Wanpeng Li [2019-06-28 08:43:13]: > > +/* > + * sched_numa_find_closest() - given the NUMA topology, find the cpu > + * closest to @cpu from @cpumask. > + * cpumask: cpumask to find a cpu from > + * cpu: cpu to be close to > + * > + * returns: cpu, or >= nr_cpu_id

Re: [PATCH 44/87] fs: jffs2: replace kmalloc and memset with kzalloc

2019-06-27 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Fuqian Huang" > CC: "Fuqian Huang" , "David Woodhouse" > , "richard" , > "linux-mtd" , "linux-kernel" > > Gesendet: Donnerstag, 27. Juni 2019 19:41:00 > Betreff: [PATCH 44/87] fs: jffs2: replace kmalloc and memset with kzalloc > kmalloc + memset(0) -> kza

Re: [PATCH] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-06-27 Thread Minchan Kim
Hi Johannes, On Thu, Jun 27, 2019 at 02:41:23PM -0400, Johannes Weiner wrote: > On Wed, Jun 19, 2019 at 04:08:35PM +0800, Kuo-Hsin Yang wrote: > > When file refaults are detected and there are many inactive file pages, > > the system never reclaim anonymous pages, the file pages are dropped > > ag

Re: [PATCH v1 0/3] Add required-opps support to devfreq passive gov

2019-06-27 Thread Viresh Kumar
On 26-06-19, 11:10, Saravana Kannan wrote: > On Tue, Jun 25, 2019 at 11:32 PM Viresh Kumar wrote: > > So, when a CPU changes frequency, we must change the performance state > > of PM domain and change frequency/bw of the cache synchronously. > > I mean, it's going to be changed when we get the C

Re: [PATCH v4 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings

2019-06-27 Thread masonccyang
Hi Miquel, > > Document the bindings used by the Macronix raw NAND controller. > > > > Signed-off-by: Mason Yang > > --- > > .../devicetree/bindings/mtd/mxic-nand.txt | 26 ++ > > 1 file changed, 26 insertions(+) > > create mode 100644 Documentation/devicetree/

RE: [PATCH v3 02/22] PM / devfreq: tegra30: Keep interrupt disabled while governor is stopped

2019-06-27 Thread MyungJoo Ham
>There is no real need to keep interrupt always-enabled, will be nicer >to keep it disabled while governor is inactive. > >Suggested-by: Thierry Reding >Signed-off-by: Dmitry Osipenko >--- > drivers/devfreq/tegra30-devfreq.c | 43 --- > 1 file changed, 22 insertions(+),

Re: [PATCH RFC] mtd: ubi: Add fastmap sysfs attribute

2019-06-27 Thread Richard Weinberger
Zhihao Cheng, - Ursprüngliche Mail - > + else if (attr == &dev_fastmap) > + ret = sprintf(buf, "%d\n", ubi->fm ? 1 : 0); > else I fear this is not correct. ubi->fm is an internal data structure of UBI. UBI sets it to NULL while it updates fastmap, and updates it late

Re: [PATCH 1/2] arm64: dts: imx8mq: Correct OPP table according to latest datasheet

2019-06-27 Thread Leonard Crestez
On 6/28/2019 9:16 AM, Anson Huang wrote: >> From: Leonard Crestez >>> From: Anson Huang >>> >>> According to latest datasheet (Rev.1, 10/2018) from below links, in >>> the consumer datasheet, 1.5GHz is mentioned as highest opp but depends >>> on speed grading fuse, and in the industrial datasheet,

Re: [PATCH v3] clk: Add Si5341/Si5340 driver

2019-06-27 Thread Mike Looijmans
On 27-06-19 23:06, Stephen Boyd wrote: > Quoting Mike Looijmans (2019-05-17 06:23:52) >> Adds a driver for the Si5341 and Si5340 chips. The driver does not fully >> support all features of these chips, but allows the chip to be used >> without any support from the "clockbuilder pro" software. >> >>

Re: [PATCH 2/2] PCI: mediatek: Add controller support for MT7629

2019-06-27 Thread Jianjun Wang
On Tue, 2019-02-19 at 23:03 +0800, Lorenzo Pieralisi wrote: > On Tue, Feb 19, 2019 at 03:01:39PM +0800, Jianjun Wang wrote: > > On Wed, 2019-01-23 at 15:40 +, Lorenzo Pieralisi wrote: > > > On Mon, Dec 24, 2018 at 07:40:28PM +0800, Jianjun Wang wrote: > > > > On Thu, 2018-12-20 at 12:20 -0600,

[PATCH] sh: use the generic dma coherent remap allocator

2019-06-27 Thread Christoph Hellwig
This switches to using common code for the DMA allocations, including potential use of the CMA allocator if configured. Also add a comment where the existing behavior seems to be lacking. Switching to the generic code enables DMA allocations from atomic context, which is required by the DMA API d

Re: [PATCH v4 net-next 1/4] net: core: page_pool: add user cnt preventing pool deletion

2019-06-27 Thread Jesper Dangaard Brouer
On Fri, 28 Jun 2019 01:02:47 +0300 Ivan Khoronzhuk wrote: > Hi Jesper, thanks you remember about it. > > > > >I don't think that "create" and "free" routines paring looks "more > >correct" together. > > > >Maybe we can scale back your solution(?), via creating a page_pool_get() > >and page_pool_

ca0132 audio in Ubuntu 19.04 only after Windows 10 started, missing ctefx-r3di.bin

2019-06-27 Thread Kai-Heng Feng
Hi Connor, The bug was filed at Launchpad [1], I think the most notable error is [3.768667] snd_hda_intel :00:1f.3: Direct firmware load for ctefx-r3di.bin failed with error -2 The firmware is indeed listed in patch_ca0132.c, but looks like there’s no corresponding file in linux-fir

Re: [LKP] [x86/hotplug] e1056a25da: WARNING:at_arch/x86/kernel/apic/apic.c:#setup_local_APIC

2019-06-27 Thread Feng Tang
Hi Thomas, On Tue, Jun 25, 2019 at 07:32:03PM +0800, Thomas Gleixner wrote: > Rong, > > On Tue, 25 Jun 2019, Rong Chen wrote: > > On 6/25/19 2:24 PM, Thomas Gleixner wrote: > > > > On 6/22/19 3:08 AM, Thomas Gleixner wrote: > > > > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBri

[PATCH RFC] mtd: ubi: Add fastmap sysfs attribute

2019-06-27 Thread Zhihao Cheng
The UBI device can be attached to a MTD device via fastmap by set CONFIG_MTD_UBI_FASTMAP to 'y' (If there already exists a fastmap on the UBI device). To support some debugging scenarios, attaching process by fastmap can be confirmed in dmesg. If the UBI device is attached by fastmap, logs like fol

[PATCH] sh: clkfwk: don't pass void pointers to ioread*

2019-06-27 Thread Christoph Hellwig
Passing pointers with a const attrіbute to the ioread* functions causes a lot of compiler warnings, so remove the extra attributes. Signed-off-by: Christoph Hellwig --- drivers/sh/clk/cpg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sh/clk/cpg.c b/drivers

Re: [PATCH v2 08/27] i2c: busses: remove memset after dmam_alloc_coherent

2019-06-27 Thread Jarkko Nikula
Hi On 6/28/19 5:47 AM, Fuqian Huang wrote: In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dmam_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- drivers/i2c/busses/i2c-ismt.c | 2

RE: [PATCH 2/2] arm64: dts: imx8mm: Correct OPP table according to latest datasheet

2019-06-27 Thread Anson Huang
Hi, Leonard > -Original Message- > From: Leonard Crestez > Sent: Friday, June 28, 2019 2:01 PM > To: Anson Huang ; Jacky Bai ; > l.st...@pengutronix.de > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com;

Re: [PATCH 0/4] tracing: Improve error messages for histogram sorting

2019-06-27 Thread Masami Hiramatsu
On Thu, 27 Jun 2019 10:35:15 -0500 Tom Zanussi wrote: > Hi, > > These patches add some improvements for histogram sorting, addressing > some shortcomings pointed out by Masami. > > In order to address the specific problem pointed out by Masami, as > well as add additional related error messages

RE: [PATCH 1/2] arm64: dts: imx8mq: Correct OPP table according to latest datasheet

2019-06-27 Thread Anson Huang
Hi, Leonard > -Original Message- > From: Leonard Crestez > Sent: Friday, June 28, 2019 1:59 PM > To: Anson Huang ; shawn...@kernel.org; Jacky > Bai ; l.st...@pengutronix.de > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com;

Re: [PATCH] MAINTAINERS: Add Paul as a RISC-V maintainer

2019-06-27 Thread Christoph Hellwig
> RISC-V ARCHITECTURE > +M: Paul Walmsley > M: Palmer Dabbelt > M: Albert Ou Is Albert going to come back to actively maintain anything? I've not actually seen him active ever since the port went mainline.

Re: [PATCH v4 1/2] mtd: rawnand: Add Macronix Raw NAND controller

2019-06-27 Thread masonccyang
Hi Miquel, > > Add a driver for Macronix raw NAND controller. > > Could you pass userspace major MTD tests and can you attach/mount/edit > a UBI/UBIFS storage? mtd_debug passed and using dd utility to read and write with md5sum checking passed. UBI/UBIFS testing is not yet. will do it. >

Re: [PATCH] netfilter: Fix remainder of pseudo-header protocol 0

2019-06-27 Thread He Zhe
On 6/28/19 2:49 AM, Pablo Neira Ayuso wrote: > On Mon, Jun 24, 2019 at 11:17:38AM +0800, zhe...@windriver.com wrote: >> From: He Zhe >> >> Since v5.1-rc1, some types of packets do not get unreachable reply with the >> following iptables setting. Fox example, >> >> $ iptables -A INPUT -p icmp --

Re: [PATCH V4 3/3] thermal/drivers/cpu_cooling: cpufreq_cooling_register returns an int

2019-06-27 Thread Viresh Kumar
On 27-06-19, 23:02, Daniel Lezcano wrote: > It looks like after the changes in the patch the only reason for > returning (struct thermal_cooling_device *) from > cpufreq_cooling_register() is error checking, but it would be much > more straightforward to return int for this purpose. > > Moreover,

Re: [PATCH 2/2] arm64: dts: imx8mm: Correct OPP table according to latest datasheet

2019-06-27 Thread Leonard Crestez
On 28.06.2019 06:37, anson.hu...@nxp.com wrote: > According to latest datasheet (Rev.0.2, 04/2019) from below links, > 1.8GHz is ONLY available for consumer part, so the market segment > bits for 1.8GHz opp should ONLY available for consumer part accordingly. > > opp-hz = /b

Re: [PATCH 2/2] dma-mapping: remove dma_max_pfn

2019-06-27 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 01:45:38PM +0200, Marc Gonzalez wrote: > Hello Christoph, > > There are some typos in the commit message that make it harder > (for me) to parse. The fixes looks good to me. Ulf, do you want me to resend?

Re: [PATCH 1/2] arm64: dts: imx8mq: Correct OPP table according to latest datasheet

2019-06-27 Thread Leonard Crestez
On 28.06.2019 06:37, anson.hu...@nxp.com wrote: > From: Anson Huang > > According to latest datasheet (Rev.1, 10/2018) from below links, > in the consumer datasheet, 1.5GHz is mentioned as highest opp but > depends on speed grading fuse, and in the industrial datasheet, > 1.3GHz is mentioned as h

Re: [PATCH 1/2] lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators

2019-06-27 Thread Christoph Hellwig
Thanks, I've added both patches to the dma-mapping for-next tree.

Re: [PATCH 07/13] xfs: allow merging ioends over append boundaries

2019-06-27 Thread Christoph Hellwig
On Thu, Jun 27, 2019 at 11:23:09AM -0700, Darrick J. Wong wrote: > On Thu, Jun 27, 2019 at 12:48:30PM +0200, Christoph Hellwig wrote: > > There is no real problem merging ioends that go beyond i_size into an > > ioend that doesn't. We just need to move the append transaction to the > > base ioend.

Re: [PATCH v3 1/3] x86: Move DEBUG_TLBFLUSH option.

2019-06-27 Thread Paul Walmsley
On Mon, 29 Apr 2019, Atish Patra wrote: > CONFIG_DEBUG_TLBFLUSH was added in > > 'commit 3df3212f9722 ("x86/tlb: add tlb_flushall_shift knob into debugfs")' > to support tlb_flushall_shift knob. The knob was removed in > > 'commit e9f4e0a9fe27 ("x86/mm: Rip out complicated, out-of-date, buggy >

Re: [PATCH v3 3/3] RISC-V: Update tlb flush counters

2019-06-27 Thread Paul Walmsley
On Mon, 29 Apr 2019, Atish Patra wrote: > The TLB flush counters under vmstat seems to be very helpful while > debugging TLB flush performance in RISC-V. > > Update the counters in every TLB flush methods respectively. > > Signed-off-by: Atish Patra This one doesn't apply any longer. Care to

Re: [RFC PATCH v3 0/4] Deliver vGPU display vblank event to userspace

2019-06-27 Thread Gerd Hoffmann
On Fri, Jun 28, 2019 at 11:21:49AM +0800, Zhenyu Wang wrote: > On 2019.06.27 12:31:33 +0200, Gerd Hoffmann wrote: > > > > Hi, > > > > > > > > > Instead of delivering page flip events, we choose to post display > > > > > vblank event. Handling page flip events for both primary plane and > > > > >

Re: [PATCH V2] soc: imx-scu: Add SoC UID(unique identifier) support

2019-06-27 Thread Daniel Baluta
On Fri, Jun 28, 2019 at 6:36 AM wrote: > > From: Anson Huang > > Add i.MX SCU SoC's UID(unique identifier) support, user > can read it from sysfs: > > root@imx8qxpmek:~# cat /sys/devices/soc0/soc_uid > 7B64280B57AC1898 > > Signed-off-by: Anson Huang Reviewed-by: Daniel Baluta

Re: lift the xfs writepage code into iomap v2

2019-06-27 Thread Christoph Hellwig
On Thu, Jun 27, 2019 at 06:32:56PM -0700, Darrick J. Wong wrote: > I think Dave has voiced some valid concerns about our ability to support > this code over the long term once we start sharing it with other fses. > XFS has a longish history of sailing away from generic code so that we > can remove

Re: [PATCH v2 19/27] staging: rtl8*: use zeroing allocator rather than allocator followed with memset 0

2019-06-27 Thread Julia Lawall
On Fri, 28 Jun 2019, Fuqian Huang wrote: > Use zeroing allocator rather than allocator followed with memset 0. Maybe it would be better to just change these to the appropriate kmalloc and kzalloc calls. You will need to check on whether locks are held to know whether the secon argument should

Re: [PATCH 1/4] tracing: Simplify assignment parsing for hist triggers

2019-06-27 Thread Masami Hiramatsu
On Thu, 27 Jun 2019 10:35:16 -0500 Tom Zanussi wrote: > In the process of adding better error messages for sorting, I realized > that strsep was being used incorrectly and some of the error paths I > was expecting to be hit weren't and just fell through to the common > invalid key error case. Wo

Re: [PATCH 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver.

2019-06-27 Thread Ganapatrao Kulkarni
Hi will, On Thu, Jun 27, 2019 at 3:27 PM Will Deacon wrote: > > Hi Ganapat, > > On Fri, Jun 14, 2019 at 05:42:46PM +, Ganapatrao Kulkarni wrote: > > CCPI2 is a low-latency high-bandwidth serial interface for connecting > > ThunderX2 processors. This patch adds support to capture CCPI2 perf ev

Re: [PATCH 06/13] xfs: remove XFS_TRANS_NOFS

2019-06-27 Thread Christoph Hellwig
On Thu, Jun 27, 2019 at 03:30:30PM -0700, Darrick J. Wong wrote: > I think the wording of this is too indirect. The reason we need to set > NOFS is because we could be doing writeback as part of reclaiming > memory, which means that we cannot recurse back into filesystems to > satisfy the memory a

Re: [PATCH 11/12] iomap: move the xfs writeback code to iomap.c

2019-06-27 Thread Christoph Hellwig
On Fri, Jun 28, 2019 at 10:45:42AM +1000, Dave Chinner wrote: > You've already mentioned two new users you want to add. I don't even > have zone capable hardware here to test one of the users you are > indicating will use this code, and I suspect that very few people > do. That's a non-trivial inc

[tip:x86/cpu] x86/mtrr: Skip cache flushes on CPUs with cache self-snooping

2019-06-27 Thread tip-bot for Ricardo Neri
Commit-ID: fd329f276ecaad7a371d6f91b9bbea031d0c3440 Gitweb: https://git.kernel.org/tip/fd329f276ecaad7a371d6f91b9bbea031d0c3440 Author: Ricardo Neri AuthorDate: Thu, 27 Jun 2019 19:35:37 -0700 Committer: Thomas Gleixner CommitDate: Fri, 28 Jun 2019 07:21:00 +0200 x86/mtrr: Skip cache f

[tip:x86/cpu] x86/cpu/intel: Clear cache self-snoop capability in CPUs with known errata

2019-06-27 Thread tip-bot for Ricardo Neri
Commit-ID: 1e03bff3600101bd9158d005e4313132e55bdec8 Gitweb: https://git.kernel.org/tip/1e03bff3600101bd9158d005e4313132e55bdec8 Author: Ricardo Neri AuthorDate: Thu, 27 Jun 2019 19:35:36 -0700 Committer: Thomas Gleixner CommitDate: Fri, 28 Jun 2019 07:20:48 +0200 x86/cpu/intel: Clear c

[tip:x86/boot] x86/kdump/64: Restrict kdump kernel reservation to <64TB

2019-06-27 Thread tip-bot for Baoquan He
Commit-ID: 8ff80fbe7e9870078b1cc3c2cdd8f3f223b333a9 Gitweb: https://git.kernel.org/tip/8ff80fbe7e9870078b1cc3c2cdd8f3f223b333a9 Author: Baoquan He AuthorDate: Fri, 24 May 2019 15:38:10 +0800 Committer: Thomas Gleixner CommitDate: Fri, 28 Jun 2019 07:14:59 +0200 x86/kdump/64: Restrict k

[tip:x86/boot] x86/kexec/64: Prevent kexec from 5-level paging to a 4-level only kernel

2019-06-27 Thread tip-bot for Baoquan He
Commit-ID: ee338b9ee2822e65a85750da6129946c14962410 Gitweb: https://git.kernel.org/tip/ee338b9ee2822e65a85750da6129946c14962410 Author: Baoquan He AuthorDate: Fri, 24 May 2019 15:38:09 +0800 Committer: Thomas Gleixner CommitDate: Fri, 28 Jun 2019 07:14:59 +0200 x86/kexec/64: Prevent ke

[tip:x86/boot] x86/boot: Add xloadflags bits to check for 5-level paging support

2019-06-27 Thread tip-bot for Baoquan He
Commit-ID: f2d08c5d3bcf3f7ef788af122b57a919efa1e9d0 Gitweb: https://git.kernel.org/tip/f2d08c5d3bcf3f7ef788af122b57a919efa1e9d0 Author: Baoquan He AuthorDate: Fri, 24 May 2019 15:38:08 +0800 Committer: Thomas Gleixner CommitDate: Fri, 28 Jun 2019 07:14:59 +0200 x86/boot: Add xloadflags

[PATCH V3 2/5] cpufreq: Don't skip frequency validation for has_target() drivers

2019-06-27 Thread Viresh Kumar
CPUFREQ_CONST_LOOPS was introduced in a very old commit from pre-2.6 kernel release by commit 6a4a93f9c0d5 ("[CPUFREQ] Fix 'out of sync' issue"). If we you look at that commit, it does two things: - It adds the frequency verification code (which is quite similar to what we have today as well).

[PATCH] kbuild: use -E instead of -c for __cc-option

2019-06-27 Thread Masahiro Yamada
Use -E instead of -c like scripts/Kconfig.include This makes the compiler flag evaluation slightly faster. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index f641bb0a

Re: No 8254 PIT & no HPET on new Intel N3350 platforms causes kernel panic during early boot

2019-06-27 Thread Thomas Gleixner
On Fri, 28 Jun 2019, Daniel Drake wrote: > On Thu, Jun 27, 2019 at 10:07 PM Thomas Gleixner wrote: > > Nah. That extra timer works thing is just another bandaid. > > > > What I had in mind is something like the below. That's on top of > > > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/ti

Re: [PATCH v4 0/2] Use NVMEM as reboot-mode write interface

2019-06-27 Thread Nandor Han
Hi, Changes since v3: - documentation updated according to the comments Thanks, queued. Please fix your git/mail setup, I had to fix the line endings (\r\n -> \n) to apply this. -- Sebastian Ok. Thanks Sebastian. -- Nandor

[PATCH RFC] mtd: ubi: Add fastmap sysfs attribute

2019-06-27 Thread Zhihao
From: Zhihao Cheng The UBI device can be attached to a MTD device via fastmap by set CONFIG_MTD_UBI_FASTMAP to 'y' (If there already exists a fastmap on the UBI device). To support some debugging scenarios, attaching process by fastmap can be confirmed in dmesg. If the UBI device is attached by f

Re: [PATCH] riscv: ccache: Remove unused variable

2019-06-27 Thread Yash Shah
On Thu, Jun 27, 2019 at 9:43 PM Paul Walmsley wrote: > > On Thu, 27 Jun 2019, Yash Shah wrote: > > > Reading the count register clears the interrupt signal. Currently, the > > count registers are read into 'regval' variable but the variable is > > never used. Therefore remove it. > > > > Signed-of

Re: [RFC PATCH 00/28] Removing struct page from P2PDMA

2019-06-27 Thread Jason Gunthorpe
On Thu, Jun 27, 2019 at 10:49:43AM -0600, Logan Gunthorpe wrote: > > I don't think a GPU/FPGA driver will be involved, this would enter the > > block layer through the O_DIRECT path or something generic.. This the > > general flow I was suggesting to Dan earlier > > I would say the O_DIRECT path

linux-next: manual merge of the devicetree tree with the net-next tree

2019-06-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/net/ethernet.txt between commit: 79b647a0c0d5 ("dt-bindings: net: document new usxgmii phy mode") from the net-next tree and commit: 4e7a33bff7d7 ("dt-bindings: net: Add YAML sch

[PATCH] rbtree: avoid generating code twice for the cached versions

2019-06-27 Thread Michel Lespinasse
As was already noted in rbtree.h, the logic to cache rb_first (or rb_last) can easily be implemented externally to the core rbtree api. Change the implementation to do just that. Previously the update of rb_leftmost was wired deeper into the implemntation, but there were some disadvantages to that

[RFC 2/2] arm64/mm: Enable device memory allocation and free for vmemmap mapping

2019-06-27 Thread Anshuman Khandual
This enables vmemmap_populate() and vmemmap_free() functions to incorporate struct vmem_altmap based device memory allocation and free requests. With this device memory with specific atlmap configuration can be hot plugged and hot removed as ZONE_DEVICE memory on arm64 platforms. Cc: Catalin Marin

[RFC 0/2] arm64: Enable vmemmap from device memory

2019-06-27 Thread Anshuman Khandual
This series enables vmemmap mapping allocation from device memory ranges on arm64. Before that it enables vmemmap_populate_basepages() to accommodate struct vmem_altmap based requests. This series is based on linux next (next-20190613) along with v6 arm64 hot-remove series [1]. [1] https://lkml.

[RFC 1/2] mm/sparsemem: Add vmem_altmap support in vmemmap_populate_basepages()

2019-06-27 Thread Anshuman Khandual
Generic vmemmap_populate_basepages() is used across platforms for vmemmap as standard or as fallback when huge pages mapping fails. On arm64 it is used for configs with ARM64_SWAPPER_USES_SECTION_MAPS applicable both for ARM64_16K_PAGES and ARM64_64K_PAGES which cannot use huge pages because of ali

RE: [LINUX PATCH v12 3/3] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller

2019-06-27 Thread Naga Sureshkumar Relli
Hi Miquel, > -Original Message- > From: Miquel Raynal > Sent: Thursday, June 27, 2019 9:58 PM > To: Naga Sureshkumar Relli > Cc: Naga Sureshkumar Relli ; r...@kernel.org; > martin.lund@keep-it- > simple.com; rich...@nod.at; linux-kernel@vger.kernel.org; Boris Brezillon > ; linux-...@lis

Re: [PATCH] crypto: asymmetric_keys - select CRYPTO_HASH where needed

2019-06-27 Thread Herbert Xu
On Tue, Jun 18, 2019 at 02:13:47PM +0200, Arnd Bergmann wrote: > Build testing with some core crypto options disabled revealed > a few modules that are missing CRYPTO_HASH: > > crypto/asymmetric_keys/x509_public_key.o: In function `x509_get_sig_params': > x509_public_key.c:(.text+0x4c7): undefined

Re: [PATCH 00/10] crypto: k3: Add sa2ul driver

2019-06-27 Thread Keerthy
On 28/06/19 9:49 AM, Herbert Xu wrote: On Tue, Jun 18, 2019 at 05:38:33PM +0530, Keerthy wrote: The series adds Crypto hardware accelerator support for SA2UL. SA2UL stands for security accelerator ultra lite. Please cc linux-cry...@vger.kernel.org. Okay. I will do that. Thanks,

Re: [PATCH 00/10] crypto: k3: Add sa2ul driver

2019-06-27 Thread Herbert Xu
On Tue, Jun 18, 2019 at 05:38:33PM +0530, Keerthy wrote: > The series adds Crypto hardware accelerator support for SA2UL. > SA2UL stands for security accelerator ultra lite. Please cc linux-cry...@vger.kernel.org. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP

[PATCH -next] bus: ti-sysc: remove set but not used variable 'quirks'

2019-06-27 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/bus/ti-sysc.c: In function sysc_reset: drivers/bus/ti-sysc.c:1452:50: warning: variable quirks set but not used [-Wunused-but-set-variable] It is never used since commit e0db94fe87da ("bus: ti-sysc: Make OCP reset work for sysstatus and sysc

[PATCH v3] mtd: spinand: read return badly if the last page has bitflips

2019-06-27 Thread liaoweixiong
In case of the last page containing bitflips (ret > 0), spinand_mtd_read() will return that number of bitflips for the last page. But to me it looks like it should instead return max_bitflips like it does when the last page read returns with 0. Signed-off-by: Weixiong Liao Reviewed-by: Boris Brez

Re: [PATCH] net: stmmac: add sanity check to device_property_read_u32_array call

2019-06-27 Thread Martin Blumenstingl
On Tue, Jun 25, 2019 at 9:58 AM Colin Ian King wrote: > > On 25/06/2019 05:44, Martin Blumenstingl wrote: > > Hi Colin, > > > > On Thu, Jun 20, 2019 at 3:34 AM Martin Blumenstingl > > wrote: > >> > >> Hi Colin, > >> > >> On Wed, Jun 19, 2019 at 8:55 AM Colin Ian King > >> wrote: > >>> > >>> On

Re: [PATCH] powerpc/64s/radix: Define arch_ioremap_p4d_supported()

2019-06-27 Thread Stephen Rothwell
Hi Anshuman, On Fri, 28 Jun 2019 09:14:46 +0530 Anshuman Khandual wrote: > > On linux-next (next-20190627) this change has already been applied though a > merge commit 153083a99fe431 ("Merge branch 'akpm-current/current'"). So we > are good on this ? Or shall

[PATCH -next] mmc: sdhci_am654: Make some symbols static

2019-06-27 Thread YueHaibing
Fix sparse warnings: drivers/mmc/host/sdhci_am654.c:192:6: warning: symbol 'sdhci_j721e_4bit_set_clock' was not declared. Should it be static? drivers/mmc/host/sdhci_am654.c:261:18: warning: symbol 'sdhci_j721e_8bit_ops' was not declared. Should it be static? drivers/mmc/host/sdhci_am654.c:284:1

Re: [PATCH] selftests/powerpc: ppc_asm.h: typo in the header guard

2019-06-27 Thread Michael Ellerman
Denis Efremov writes: > The guard macro __PPC_ASM_H in the header ppc_asm.h > doesn't match the #ifndef macro _PPC_ASM_H. The patch > makes them the same. > > Signed-off-by: Denis Efremov > --- > tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h | 2 +- > 1 file changed, 1 insertion(+),

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

2019-06-27 Thread Stephen Rothwell
Hi all, After merging the battery tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/power/supply/wilco-charger.c: In function 'wilco_charge_get_property': drivers/power/supply/wilco-charger.c:104:8: error: implicit declaration of function 'wilco_ec_get_byte_property'

Re: [PATCHv5] mm/gup: speed up check_and_migrate_cma_pages() on huge page

2019-06-27 Thread Pingfan Liu
On Fri, Jun 28, 2019 at 7:25 AM Andrew Morton wrote: > > On Thu, 27 Jun 2019 13:15:45 +0800 Pingfan Liu wrote: > > > Both hugetlb and thp locate on the same migration type of pageblock, since > > they are allocated from a free_list[]. Based on this fact, it is enough to > > check on a single subp

Re: [PATCH 08/16] nfsd: escape high characters in binary data

2019-06-27 Thread Kees Cook
On Thu, Jun 27, 2019 at 04:21:24PM -0400, J. Bruce Fields wrote: > No, I was confused: "\n" is non-printable according to isprint(), so > ESCAPE_ANY_NP *will* escape it. So this isn't quite so bad. SSIDs are > usually printed as '%*pE', so arguably we should be escaping the single > quote charact

linux-next: manual merge of the battery tree with the pci tree

2019-06-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the battery tree got a conflict in: Documentation/power/power_supply_class.txt between commit: 151f4e2bdc7a ("docs: power: convert docs to ReST and rename to *.rst") from the pci tree and commit: 49c9cd95bb6d ("power: supply: add input power and volta

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-27 Thread liaoweixiong
Hi Miquel, On 2019/6/28 AM2:17, Miquel Raynal wrote: > Hi Miquel, > > Miquel Raynal wrote on Thu, 27 Jun 2019 > 19:06:44 +0200: > >> Hello, >> >> Schrempf Frieder wrote on Tue, 25 Jun >> 2019 07:04:06 +: >> >>> Hi liaoweixiong, >>> >>> On 25.06.19 05:08, Greg KH wrote: On Tue, Jun 2

Hello

2019-06-27 Thread Michael Waddington
Pozdrowienia i jak twoja rodzina? Przepraszam za sposób, w jaki do ciebie podchodzę, ale to dlatego, że nie mam innego wyboru. Natknąłem się na Twój e-mail podczas przeglądania izby handlowej DTC i postanowiłem się z tobą skontaktować. Nazywam się Miss Victoria AbdulMagid Breish, Libijczyk po narod

linux-next: manual merge of the battery tree with the mfd tree

2019-06-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the battery tree got conflicts in: drivers/power/supply/Kconfig drivers/power/supply/Makefile between commit: f8c7f7ddd8ef ("power: supply: Initial support for ROHM BD70528 PMIC charger block") from the mfd tree and commit: 0736343e4c56 ("power_sup

Re: [RFC 1/2] arm64/mm: Change THP helpers to comply with generic MM semantics

2019-06-27 Thread Anshuman Khandual
On 06/27/2019 09:01 PM, Zi Yan wrote: > On 27 Jun 2019, at 8:48, Anshuman Khandual wrote: > >> pmd_present() and pmd_trans_huge() are expected to behave in the following >> manner during various phases of a given PMD. It is derived from a previous >> detailed discussion on this topic [1] and pr

Re: [PATCH] powerpc/64s/radix: Define arch_ioremap_p4d_supported()

2019-06-27 Thread Anshuman Khandual
the build problem. > > The easiest option is for this to be folded into your patch that creates > the requirement for arch_ioremap_p4d_supported(). > > Andrew might do that for you, or you could send a v2. > > This looks fine from a powerpc POV: > > Acked-by: Michael

Re: [PATCH 32/87] usb: pvrusb2: replace kmalloc and memset with kzalloc in pvrusb2-eeprom.c

2019-06-27 Thread isely
Acked-by: Mike Isely -Mike On Fri, 28 Jun 2019, Fuqian Huang wrote: > kmalloc + memset(0) -> kzalloc > > Signed-off-by: Fuqian Huang > --- > drivers/media/usb/pvrusb2/pvrusb2-eeprom.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/media/usb/pvrusb2/pv

Re: [PATCH] objtool: Be lenient about -Wundef

2019-06-27 Thread Olof Johansson
On Fri, Jun 28, 2019 at 8:00 AM Josh Poimboeuf wrote: > > On Wed, Jun 19, 2019 at 05:03:37AM -0700, Olof Johansson wrote: > > Some libelf versions use undefined macros, which combined with newer GCC > > makes for errors from system headers. This isn't overly useful to fail > > compiling objtool fo

[PATCH V3 4/5] arm64: dts: imx8mq: Add system counter node

2019-06-27 Thread Anson . Huang
From: Anson Huang Add i.MX8MQ system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b

[PATCH V3 3/5] clocksource: imx-sysctr: Make timer work with clock driver using platform driver model

2019-06-27 Thread Anson . Huang
From: Anson Huang On some i.MX8M platforms, clock driver uses platform driver model and it is NOT ready during timer initialization phase, the clock operations will fail and system counter driver will fail too. As all the i.MX8M platforms' system counter clock are from OSC which is always enabled

[PATCH V3 1/5] clocksource: timer-of: Support getting clock frequency from DT

2019-06-27 Thread Anson . Huang
From: Anson Huang More and more platforms use platform driver model for clock driver, so the clock driver is NOT ready during timer initialization phase, it will cause timer initialization failed. To support those platforms with upper scenario, introducing a new flag TIMER_OF_CLOCK_FREQUENCY whi

[PATCH V3 5/5] arm64: dts: imx8mm: Add system counter node

2019-06-27 Thread Anson . Huang
From: Anson Huang Add i.MX8MM system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang --- New patch: - As i.MX8MM clock driver will be soon moved to using platform driver model, so the patch series I sent out for i.MX8MM system counte

[PATCH V3 2/5] clocksource/drivers/sysctr: Add clock-frequency property

2019-06-27 Thread Anson . Huang
From: Anson Huang Systems which use platform driver model for clock driver require the clock frequency to be supplied via device tree when system counter driver is enabled. This is necessary as in the platform driver model the of_clk operations do not work correctly because system counter driver

Re: linux-next: Tree for May 8 (drivers/platform/x86/intel_pmc_core_plat_drv.c)

2019-06-27 Thread Rajat Jain
Hi Andy, On Tue, Jun 11, 2019 at 12:06 PM Andy Shevchenko wrote: > > On Thu, May 9, 2019 at 2:15 AM Rajat Jain wrote: > > > OK, NP. Just to be sure I understand, > > > > 1) Please let me know if I should send in a fix (it would be > > #include/linux/module.h and also add MODULE_LICENSE() I belie

Re: [PATCH v2] arm64: Kconfig.platforms: Enable GPIO_DAVINCI for ARCH_K3

2019-06-27 Thread Keerthy
On 27/06/19 8:02 PM, Nishanth Menon wrote: On 16:39-20190627, Keerthy wrote: Enable GPIO_DAVINCI and related configs for TI K3 AM6 platforms. Signed-off-by: Keerthy --- Changes in v2: * Enabling configs in Kconfig.platforms file instead of defconfig. * Removed GPIO_DEBUG config

[PATCH 1/2] arm64: dts: imx8mq: Correct OPP table according to latest datasheet

2019-06-27 Thread Anson . Huang
From: Anson Huang According to latest datasheet (Rev.1, 10/2018) from below links, in the consumer datasheet, 1.5GHz is mentioned as highest opp but depends on speed grading fuse, and in the industrial datasheet, 1.3GHz is mentioned as highest opp but depends on speed grading fuse. 1.5GHz and 1.3

[PATCH 2/2] arm64: dts: imx8mm: Correct OPP table according to latest datasheet

2019-06-27 Thread Anson . Huang
From: Anson Huang According to latest datasheet (Rev.0.2, 04/2019) from below links, 1.8GHz is ONLY available for consumer part, so the market segment bits for 1.8GHz opp should ONLY available for consumer part accordingly. https://www.nxp.com/docs/en/data-sheet/IMX8MMIEC.pdf https://www.nxp.com

[PATCH V2] soc: imx-scu: Add SoC UID(unique identifier) support

2019-06-27 Thread Anson . Huang
From: Anson Huang Add i.MX SCU SoC's UID(unique identifier) support, user can read it from sysfs: root@imx8qxpmek:~# cat /sys/devices/soc0/soc_uid 7B64280B57AC1898 Signed-off-by: Anson Huang --- Changes since V1: - Improve the comment of skipping SCFW API return value check for gettin

Re: power9 NUMA crash while reading debugfs imc_cmd

2019-06-27 Thread Qian Cai
ash SMP NR_CPUS=256 >> DEBUG_PAGEALLOC NUMA PowerNV >> [ 1139.415542][ T5301] Modules linked in: i2c_opal i2c_core ip_tables >> x_tables >> xfs sd_mod bnx2x mdio ahci libahci tg3 libphy libata firmware_class dm_mirror >> dm_region_hash dm_log dm_mod >> [ 1139.415595][

[PATCH v7] platform/x86: intel_pmc_core: Attach using APCI HID "INT33A1"

2019-06-27 Thread Rajat Jain
Most modern platforms already have the ACPI device "INT33A1" that could be used to attach to the driver. Switch the driver to using that and thus make the intel_pmc_core.c a pure platform_driver. Some of the legacy platforms though, may still not have this ACPI device in their ACPI tables. Thus fo

Re: No 8254 PIT & no HPET on new Intel N3350 platforms causes kernel panic during early boot

2019-06-27 Thread Daniel Drake
On Thu, Jun 27, 2019 at 10:07 PM Thomas Gleixner wrote: > Nah. That extra timer works thing is just another bandaid. > > What I had in mind is something like the below. That's on top of > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/apic > > Be warned. It's neither compiled n

Re: [PATCH 07/13] xfs: allow merging ioends over append boundaries

2019-06-27 Thread Darrick J. Wong
On Fri, Jun 28, 2019 at 10:52:04AM +0800, Zorro Lang wrote: > On Thu, Jun 27, 2019 at 09:43:04PM +, Luis Chamberlain wrote: > > On Thu, Jun 27, 2019 at 11:23:09AM -0700, Darrick J. Wong wrote: > > > On Thu, Jun 27, 2019 at 12:48:30PM +0200, Christoph Hellwig wrote: > > > > There is no real prob

Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement

2019-06-27 Thread Keerthy
On 27/06/19 6:46 PM, Colin King wrote: From: Colin Ian King Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a break statement, causing it to fall through to a dev_err message. Fix this by adding in the missing break statement. Addresses-Coverity: ("Missing break in switch")

Re: [RFC PATCH v3 0/4] Deliver vGPU display vblank event to userspace

2019-06-27 Thread Zhenyu Wang
On 2019.06.27 12:31:33 +0200, Gerd Hoffmann wrote: > > > Hi, > > > > > > > Instead of delivering page flip events, we choose to post display > > > > vblank event. Handling page flip events for both primary plane and > > > > cursor plane may make user space quite busy, although we have the > > >

RE: [PATCH v3] e1000e: Make watchdog use delayed work

2019-06-27 Thread Brown, Aaron F
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] > On Behalf Of Detlev Casanova > Sent: Saturday, June 22, 2019 8:15 PM > To: Kirsher, Jeffrey T ; David S. Miller > ; intel-wired-...@lists.osuosl.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Detlev Casa

[PATCH 1/3] media: xilinx: fix leaked of_node references

2019-06-27 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: drivers/media/platform/xilinx/xilinx-vipp.c:487:3-9: ERROR: missing of_node_put; acquired a node point

[PATCH 0/3] fix leaked of_node references in drivers/media

2019-06-27 Thread Wen Yang
The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle... returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. We developed a coccinelle SmPL to detect drivers/media/ code and found some issues. This patch series fixes those i

[PATCH 3/3] media: ti-vpe: fix leaked of_node references

2019-06-27 Thread Wen Yang
The call to of_get_parent returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: drivers/media/platform/ti-vpe/cal.c:1621:1-7: ERROR: missing of_node_put; acquired a node pointer with refcou

Re: power9 NUMA crash while reading debugfs imc_cmd

2019-06-27 Thread Michael Ellerman
xfs sd_mod bnx2x mdio ahci libahci tg3 libphy libata firmware_class dm_mirror > dm_region_hash dm_log dm_mod > [ 1139.415595][ T5301] CPU: 67 PID: 5301 Comm: cat Not tainted 5.2.0-rc6-next- > 20190627+ #19 > [ 1139.415634][ T5301] NIP:  c00d0d58 LR: c049aa18 CTR: >

Re: [PATCH 0/3] riscv: add SOC_SIFIVE config for SiFive specific resource

2019-06-27 Thread Paul Walmsley
Hi Loys, On Mon, 17 Jun 2019, Loys Ollivier wrote: > Following is a patch series that adds a SOC_SIFIVE config. > The purpose of this config is to group all the code specific to the SiFive > architecture such as device tree and platform drivers. > > The initial thought/discussion came from [0].

  1   2   3   4   5   6   7   8   9   10   >