Re: [PATCH v7 4/4] uprobe: use FOLL_SPLIT_PMD instead of FOLL_SPLIT

2019-06-26 Thread Srikar Dronamraju
* Song Liu [2019-06-25 16:53:25]: > This patches uses newly added FOLL_SPLIT_PMD in uprobe. This enables easy > regroup of huge pmd after the uprobe is disabled (in next patch). > > Acked-by: Kirill A. Shutemov > Signed-off-by: Song Liu > --- > kernel/events/uprobes.c | 6 ++ > 1 file

[PATCH] media:vivid: add sanity check to avoid divide error and set value to 1 if 0.

2019-06-26 Thread Vandana BN
Syzbot reported divide error in vivid_thread_vid_cap, which has been seen only once and doesnot have a reproducer. This patch sanity checks for the denominator value with WARN_ON if it is 0 and replaces it with 1. Reported-by: syz...@syzkaller.appspotmail.com divide error: [#1] PREEMPT SMP

Re: [PATCH v7 3/5] mtd: Add support for HyperBus memory devices

2019-06-26 Thread Vignesh Raghavendra
On 26/06/19 6:46 AM, masonccy...@mxic.com.tw wrote: > Hi Vignesh, > >> >> Subject >> >> [PATCH v7 3/5] mtd: Add support for HyperBus memory devices >> >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave

Re: [PATCH v7 2/4] uprobe: use original page when all uprobes are removed

2019-06-26 Thread Srikar Dronamraju
* Song Liu [2019-06-25 16:53:23]: > Currently, uprobe swaps the target page with a anonymous page in both > install_breakpoint() and remove_breakpoint(). When all uprobes on a page > are removed, the given mm is still using an anonymous page (not the > original page). > > This patch allows

Re: [PATCH V3 2/3] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-26 Thread Daniel Lezcano
Hi Viresh, On 26/06/2019 04:58, Viresh Kumar wrote: > On 25-06-19, 13:32, Daniel Lezcano wrote: >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c >> index aee024e42618..f07454249fbc 100644 >> --- a/drivers/cpufreq/cpufreq.c >> +++ b/drivers/cpufreq/cpufreq.c >> @@ -1379,8

[PATCH] nvdimm: remove prototypes for nonexistent functions

2019-06-26 Thread Alastair D'Silva
From: Alastair D'Silva These functions don't exist, so remove the prototypes for them. Signed-off-by: Alastair D'Silva --- drivers/nvdimm/nd-core.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index 391e88de3a29..57d162dbefaa

Re: [PATCH] nvdimm: remove prototypes for nonexistent functions

2019-06-26 Thread Alastair D'Silva
On Wed, 2019-06-26 at 16:03 +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > These functions don't exist, so remove the prototypes for them. > > Signed-off-by: Alastair D'Silva > --- > drivers/nvdimm/nd-core.h | 4 > 1 file changed, 4 deletions(-) > > diff --git

Re: [PATCH 1/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-06-26 Thread Michal Hocko
On Tue 25-06-19 22:30:24, Hoan Tran OS wrote: > This patch enables CONFIG_NODES_SPAN_OTHER_NODES by default > for NUMA. As some NUMA nodes have memory ranges that span other > nodes. Even though a pfn is valid and between a node's start and > end pfns, it may not reside on that node. Please

[PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-26 Thread Alastair D'Silva
From: Alastair D'Silva By adding offset to memmap before passing it in to clear_hwpoisoned_pages, we hide a potentially null memmap from the null check inside clear_hwpoisoned_pages. This patch passes the offset to clear_hwpoisoned_pages instead, allowing memmap to successfully peform it's null

[PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-26 Thread Alastair D'Silva
From: Alastair D'Silva If a memory section comes in where the physical address is greater than that which is managed by the kernel, this function would not trigger the bug and instead return a bogus section number. This patch tracks whether the section was actually found, and triggers the bug

[PATCH v2 3/3] mm: Don't manually decrement num_poisoned_pages

2019-06-26 Thread Alastair D'Silva
From: Alastair D'Silva Use the function written to do it instead. Signed-off-by: Alastair D'Silva --- mm/sparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/sparse.c b/mm/sparse.c index 1ec32aef5590..d9b3625bfdf0 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@

[PATCH v2 0/3] mm: Cleanup & allow modules to hotplug memory

2019-06-26 Thread Alastair D'Silva
From: Alastair D'Silva This series addresses some minor issues found when developing a persistent memory driver. Changelog: V2: - Drop mm/hotplug: export try_online_node (not necessary) - Return errors from __section_nr - Remove errant whitespace change in mm: don't hide

Re: RX CRC errors on I219-V (6) 8086:15be

2019-06-26 Thread Kai Heng Feng
Hi Sasha at 5:09 PM, Kai-Heng Feng wrote: Hi Jeffrey, We’ve encountered another issue, which causes multiple CRC errors and renders ethernet completely useless, here’s the network stats: I also tried ignore_ltr for this issue, seems like it alleviates the symptom a bit for a while,

[GIT PULL] csky fixup gcc unwind for v5.2

2019-06-26 Thread guoren
Hi Linus, Only one bugfix for v5.2, please pull. The following changes since commit 9e0babf2c06c73cda2c0cd37a1653d823adb40ec: Linux 5.2-rc5 (2019-06-16 08:49:45 -1000) are available in the git repository at: https://github.com/c-sky/csky-linux.git tags/csky-for-linus-5.2-fixup-gcc-unwind

Re: [PATCH v8 1/5] mtd: cfi_cmdset_0002: Add support for polling status register

2019-06-26 Thread Vignesh Raghavendra
On 25/06/19 10:31 PM, Tokunori Ikegami wrote: > Hi, > > Thanks for the fix. > > Reviewed-by: Tokunori Ikegami > > I have just tested the patch quickly on my local environment that uses > the cfi_cmdset_0002 flash device but not HyperFlash family. > So tested as not affected by the change. >

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-06-26 Thread Dan Carpenter
On Tue, Jun 25, 2019 at 02:55:11PM -0400, Mike Marshall wrote: > >> You often send these patches before they hit linux-next so I had skipped > >> reviewing this one when you sent it. > > I know Linus is likely to refuse pull requests for stuff that > has not been through linux-next, so I make

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-26 Thread Michal Hocko
On Wed 26-06-19 16:11:21, Alastair D'Silva wrote: > From: Alastair D'Silva > > If a memory section comes in where the physical address is greater than > that which is managed by the kernel, this function would not trigger the > bug and instead return a bogus section number. > > This patch

Re: Steam is broken on new kernels

2019-06-26 Thread Greg Kroah-Hartman
On Wed, Jun 26, 2019 at 06:20:17AM +0200, Eric Dumazet wrote: > On Wed, Jun 26, 2019 at 5:43 AM Guenter Roeck wrote: > > > > On 6/25/19 7:29 PM, Greg Kroah-Hartman wrote: > > > On Tue, Jun 25, 2019 at 07:02:20PM -0700, Guenter Roeck wrote: > > >> Hi Greg, > > >> > > >> On Sat, Jun 22, 2019 at

Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-26 Thread Michal Hocko
On Wed 26-06-19 16:11:22, Alastair D'Silva wrote: > From: Alastair D'Silva > > By adding offset to memmap before passing it in to clear_hwpoisoned_pages, > we hide a potentially null memmap from the null check inside > clear_hwpoisoned_pages. > > This patch passes the offset to

Re: [PATCH v2 3/3] mm: Don't manually decrement num_poisoned_pages

2019-06-26 Thread Michal Hocko
On Wed 26-06-19 16:11:23, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use the function written to do it instead. I am not sure a single line helper is a great win but this makes the code consistent at least. > Signed-off-by: Alastair D'Silva Acked-by: Michal Hocko > --- >

Re: [PATCH] can: mcp251x: add error check when wq alloc failed

2019-06-26 Thread Sean Nyekjaer
On 25/06/2019 16.03, Willem de Bruijn wrote: On Tue, Jun 25, 2019 at 8:51 AM Weitao Hou wrote: add error check when workqueue alloc failed, and remove redundant code to make it clear Signed-off-by: Weitao Hou Acked-by: Willem de Bruijn Tested-by: Sean Nyekjaer

Re: [PATCH] i2c: designware: Add disable runtime pm quirk

2019-06-26 Thread Jarkko Nikula
On 6/26/19 5:32 AM, AceLan Kao wrote: Adding I2C_HID_QUIRK_NO_RUNTIME_PM quirk doesn't help on this issue. Actually, Goodix touchpad already has that PM quirk in the list for other issue. { I2C_VENDOR_ID_GOODIX, I2C_DEVICE_ID_GOODIX_01F0, I2C_HID_QUIRK_NO_RUNTIME_PM }, I

Re: RX CRC errors on I219-V (6) 8086:15be

2019-06-26 Thread Neftin, Sasha
On 6/26/2019 09:14, Kai Heng Feng wrote: Hi Sasha at 5:09 PM, Kai-Heng Feng wrote: Hi Jeffrey, We’ve encountered another issue, which causes multiple CRC errors and renders ethernet completely useless, here’s the network stats: I also tried ignore_ltr for this issue, seems like it

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-26 Thread Alastair D'Silva
On Wed, 2019-06-26 at 08:21 +0200, Michal Hocko wrote: > On Wed 26-06-19 16:11:21, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > If a memory section comes in where the physical address is greater > > than > > that which is managed by the kernel, this function would not > > trigger

Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-26 Thread Alastair D'Silva
On Wed, 2019-06-26 at 08:23 +0200, Michal Hocko wrote: > On Wed 26-06-19 16:11:22, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > By adding offset to memmap before passing it in to > > clear_hwpoisoned_pages, > > we hide a potentially null memmap from the null check inside > >

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-26 Thread Nadav Amit
> On Jun 25, 2019, at 8:56 PM, Andy Lutomirski wrote: > > On Tue, Jun 25, 2019 at 8:41 PM Nadav Amit wrote: >>> On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: >>> >>> On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: > On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > > On

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

2019-06-26 Thread Viresh Kumar
On 24-06-19, 22:29, Saravana Kannan wrote: > No, the CPUs will be the "parent" and the cache will be the "child". > CPU is a special case when it comes to the actual software (not DT) as > we'll need the devfreq governor to look at all the CPUfreq policies to > decide the cache frequency (max of

Re: [PATCH V3 2/3] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-26 Thread Viresh Kumar
On 26-06-19, 08:02, Daniel Lezcano wrote: > On 26/06/2019 04:58, Viresh Kumar wrote: > > On 25-06-19, 13:32, Daniel Lezcano wrote: > >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > >> index aee024e42618..f07454249fbc 100644 > >> --- a/drivers/cpufreq/cpufreq.c > >> +++

Re: Steam is broken on new kernels

2019-06-26 Thread Eric Dumazet
On Wed, Jun 26, 2019 at 8:22 AM Greg Kroah-Hartman wrote: > > On Wed, Jun 26, 2019 at 06:20:17AM +0200, Eric Dumazet wrote: > > On Wed, Jun 26, 2019 at 5:43 AM Guenter Roeck wrote: > > > > > > On 6/25/19 7:29 PM, Greg Kroah-Hartman wrote: > > > > On Tue, Jun 25, 2019 at 07:02:20PM -0700, Guenter

Re: [PATCH v3 2/3] mm, oom: remove redundant task_in_mem_cgroup() check

2019-06-26 Thread Michal Hocko
On Mon 24-06-19 14:26:30, Shakeel Butt wrote: > oom_unkillable_task() can be called from three different contexts i.e. > global OOM, memcg OOM and oom_score procfs interface. At the moment > oom_unkillable_task() does a task_in_mem_cgroup() check on the given > process. Since there is no reason to

Re: [PATCH 1/3] lib/vdso: Delay mask application in do_hres()

2019-06-26 Thread Thomas Gleixner
On Tue, 25 Jun 2019, Thomas Gleixner wrote: > On Tue, 25 Jun 2019, Vincenzo Frascino wrote: > > do_hres() in the vDSO generic library masks the hw counter value > > immediately after reading it. > > > > Postpone the mask application after checking if the syscall fallback is > > enabled, in order

RE: [PATCH] reset: Add driver for dispmix reset

2019-06-26 Thread Fancy Fang
Hi Philipp, Thanks for your comments. And please see my answers below. -Original Message- From: Philipp Zabel Sent: Tuesday, June 25, 2019 10:57 PM To: Fancy Fang ; shawn...@kernel.org; s.ha...@pengutronix.de Cc: feste...@gmail.com; ker...@pengutronix.de;

Re: [LINUX PATCH v17 1/2] mtd: rawnand: nand_micron: Do not over write driver's read_page()/write_page()

2019-06-26 Thread Boris Brezillon
On Mon, 24 Jun 2019 22:46:29 -0600 Naga Sureshkumar Relli wrote: > Add check before assigning chip->ecc.read_page() and chip->ecc.write_page() > > Signed-off-by: Naga Sureshkumar Relli > --- > drivers/mtd/nand/raw/nand_micron.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) >

Re: DMA coherency in drivers/tty/serial/mpsc.c

2019-06-26 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 09:37:22AM -0700, Mark Greer wrote: > Yeah, the mpsc driver had lots of ugly cache related hacks because of > cache coherency bugs in the early version of the MV64x60 bridge chips > that it was embedded in. That chip is pretty much dead now and I've > removed core support

[PATCH 1/1] perf annotate csky: Add perf annotate support

2019-06-26 Thread Mao Han
This patch add basic arch initialization and instruction associate support for csky. perf annotate --stdio2 Samples: 161 of event 'cpu-clock:pppH', 4000 Hz, Event count (approx.): 4025, [percent: local period] test_4() /usr/lib/perf-test/callchain_test Percent Disassembly of

Re: [PATCH v3 3/3] oom: decouple mems_allowed from oom_unkillable_task

2019-06-26 Thread Michal Hocko
On Mon 24-06-19 14:26:31, Shakeel Butt wrote: > The commit ef08e3b4981a ("[PATCH] cpusets: confine oom_killer to > mem_exclusive cpuset") introduces a heuristic where a potential > oom-killer victim is skipped if the intersection of the potential victim > and the current (the process triggered the

Re: [PATCH 2/4] mfd: Add initial MFD driver for ATC260x PMICs

2019-06-26 Thread Lee Jones
On Mon, 17 Jun 2019, Manivannan Sadhasivam wrote: > Add initial MFD driver for Actions Semi ATC260x PMICs. ATC260x series > PMICs integrates Audio Codec, Power management, Clock generation, and GPIO > controller blocks. This driver only supports Regulator functionality on > ATC2609A PMIC variant

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-26 Thread Michal Hocko
On Wed 26-06-19 16:27:30, Alastair D'Silva wrote: > On Wed, 2019-06-26 at 08:21 +0200, Michal Hocko wrote: > > On Wed 26-06-19 16:11:21, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > If a memory section comes in where the physical address is greater > > > than > > > that which

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

2019-06-26 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 01:54:21PM -0600, Logan Gunthorpe wrote: > Well whether it's dma_addr_t, phys_addr_t, pfn_t the result isn't all > that different. You still need roughly the same 'if' hooks for any > backed memory that isn't in the linear mapping and you can't get a > kernel mapping for

Re: [PATCH 1/1] perf annotate csky: Add perf annotate support

2019-06-26 Thread Guo Ren
Thx Mao, Approved! Best Regards Guo Ren On Wed, Jun 26, 2019 at 2:53 PM Mao Han wrote: > > This patch add basic arch initialization and instruction associate support > for csky. > > perf annotate --stdio2 > Samples: 161 of event 'cpu-clock:pppH', 4000 Hz, Event count (approx.): > 4025,

Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-26 Thread Michal Hocko
On Wed 26-06-19 16:30:55, Alastair D'Silva wrote: > On Wed, 2019-06-26 at 08:23 +0200, Michal Hocko wrote: > > On Wed 26-06-19 16:11:22, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > By adding offset to memmap before passing it in to > > > clear_hwpoisoned_pages, > > > we hide

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

2019-06-26 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 --- drivers/soc/imx/soc-imx-scu.c | 35 +++ 1 file changed, 35

Re: [PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-26 Thread Ard Biesheuvel
On Wed, 26 Jun 2019 at 06:20, Nathan Chancellor wrote: > > After r363059 and r363928 in LLVM, a build using ld.lld as the linker > with CONFIG_RANDOMIZE_BASE enabled fails like so: > > ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol > __efistub_stext_offset; recompile with

Re: [PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-26 Thread Ard Biesheuvel
On Wed, 26 Jun 2019 at 06:20, Nathan Chancellor wrote: > > After r363059 and r363928 in LLVM, a build using ld.lld as the linker > with CONFIG_RANDOMIZE_BASE enabled fails like so: > > ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol > __efistub_stext_offset; recompile with

Re: [PATCH v3 1/4] usb: xhci: add firmware loader for uPD720201 and uPD720202 w/o ROM

2019-06-26 Thread Vinod Koul
On 24-06-19, 11:41, Vinod Koul wrote: > From: Christian Lamparter > > This patch adds a firmware loader for the uPD720201K8-711-BAC-A > and uPD720202K8-711-BAA-A variant. Both of these chips are listed > in Renesas' R19UH0078EJ0500 Rev.5.00 "User's Manual: Hardware" as > devices which need the

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-26 Thread John Ogness
On 2019-06-26, Sergey Senozhatsky wrote: > [..] >> > CPU0 CPU1 >> > printk(...) >> > sz = vscprintf(NULL, "Comm %s\n", current->comm); >> > >> > ia64_mca_modify_comm() >> >

Re: [PATCH 0/6] workqueue: convert to raw_spinlock_t

2019-06-26 Thread Sebastian Andrzej Siewior
On 2019-06-13 16:50:21 [+0200], To linux-kernel@vger.kernel.org wrote: > Hi, > > the workqueue code has been reworked in -RT to use raw_spinlock_t based > locking. This change allows to schedule worker from preempt_disable()ed > or IRQ disabled section on -RT. This is the last patch. The previous

Re: [PATCH] au1200fb: don't use DMA_ATTR_NON_CONSISTENT

2019-06-26 Thread Manuel Lauss
On Tue, Jun 25, 2019 at 2:13 PM Christoph Hellwig wrote: > > au1200fb allocates DMA memory using DMA_ATTR_NON_CONSISTENT, but never > calls dma_cache_sync to synchronize the memory between the CPU and the > device. If it was use on a not cache coherent bus that would be fatal, > but as far as I

[PATCH 6/8] pinctrl: aspeed: Clarify comment about strapping W1C

2019-06-26 Thread Andrew Jeffery
Writes of 1 to SCU7C clear set bits in SCU70, the hardware strapping register. The information was correct if you squinted while reading, but hopefully switching the order of the registers as listed conveys it better. Signed-off-by: Andrew Jeffery --- drivers/pinctrl/aspeed/pinctrl-aspeed.c | 2

Re: [v3 1/4] dt-bindngs: display: panel: Add BOE tv101wum-n16 panel bindings

2019-06-26 Thread Sam Ravnborg
On Wed, Jun 26, 2019 at 10:53:57AM +0800, Jitao Shi wrote: > Add documentation for boe tv101wum-n16 panel. > > Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg > --- > .../display/panel/boe,tv101wum-nl6.txt| 34 +++ > 1 file changed, 34 insertions(+) > create mode

[PATCH 1/8] dt-bindings: pinctrl: aspeed: Split bindings document in two

2019-06-26 Thread Andrew Jeffery
Have one for each of the AST2400 and AST2500. The only thing that was common was the fact that both support ASPEED BMC SoCs. Signed-off-by: Andrew Jeffery --- .../pinctrl/aspeed,ast2400-pinctrl.txt| 80 +++ ...-aspeed.txt => aspeed,ast2500-pinctrl.txt} | 63

[PATCH 5/8] pinctrl: aspeed: Correct comment that is no longer true

2019-06-26 Thread Andrew Jeffery
We have handled the GFX register case for quite some time now. Signed-off-by: Andrew Jeffery --- drivers/pinctrl/aspeed/pinctrl-aspeed.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.h b/drivers/pinctrl/aspeed/pinctrl-aspeed.h index

[PATCH 0/8] pinctrl: aspeed: Preparation for AST2600

2019-06-26 Thread Andrew Jeffery
Hello! The ASPEED AST2600 is in the pipeline, and we have enough information to start preparing to upstream support for it. This series lays some ground work; splitting the bindings and dicing the implementation up a little further to facilitate differences between the 2600 and previous SoC

[PATCH 4/8] MAINTAINERS: Add entry for ASPEED pinctrl drivers

2019-06-26 Thread Andrew Jeffery
Add myself as maintainer to avoid burdening others with the madness. Signed-off-by: Andrew Jeffery --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a6954776a37e..978383f5c1ab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2586,6

[PATCH 3/8] dt-bindings: pinctrl: aspeed: Convert AST2500 bindings to json-schema

2019-06-26 Thread Andrew Jeffery
Convert ASPEED pinctrl bindings to DT schema format using json-schema. Signed-off-by: Andrew Jeffery --- .../pinctrl/aspeed,ast2500-pinctrl.txt| 119 - .../pinctrl/aspeed,ast2500-pinctrl.yaml | 124 ++ 2 files changed, 124 insertions(+), 119

[PATCH 2/8] dt-bindings: pinctrl: aspeed: Convert AST2400 bindings to json-schema

2019-06-26 Thread Andrew Jeffery
Convert ASPEED pinctrl bindings to DT schema format using json-schema Signed-off-by: Andrew Jeffery --- .../pinctrl/aspeed,ast2400-pinctrl.txt| 80 --- .../pinctrl/aspeed,ast2400-pinctrl.yaml | 73 + 2 files changed, 73 insertions(+), 80

Re: [PATCH 08/17] binfmt_flat: consolidate two version of flat_v2_reloc_t

2019-06-26 Thread Greg Ungerer
On 26/6/19 8:29 am, Al Viro wrote: On Thu, Jun 13, 2019 at 09:08:54AM +0200, Christoph Hellwig wrote: Two branches of the ifdef maze actually have the same content, so merge them. Signed-off-by: Christoph Hellwig --- include/linux/flat.h | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH 8/8] pinctrl: aspeed: Add implementation-related documentation

2019-06-26 Thread Andrew Jeffery
The ASPEED pinctrl driver implementations make heavy use of macros to minimise tedium of implementation and maximise the chance that the compiler will catch errors in defining signal and pin configurations. While the goal of minimising errors is achieved, it is at the cost of the complexity of the

[PATCH 7/8] pinctrl: aspeed: Split out pinmux from general pinctrl

2019-06-26 Thread Andrew Jeffery
ASPEED have completely rearranged the System Control Unit register layout with the AST2600. The existing code took advantage of the fact that the AST2400 and AST2500 had layouts that were similar enough to have little impact on the pinmux infrastructure (though there is a wart with

[PATCH 0/8] staging: kpc2000: style refactoring

2019-06-26 Thread Fabian Krueger
A patch-series that will remove warnings, errors and check-messages, noted and highlighted by the checkpatch.pl script concerning kpc2000_spi.c. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: Fabian Krueger (8): staging: kpc2000: add line breaks staging: kpc2000:

Re: [PATCH bpf-next v9 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2019-06-26 Thread Mickaël Salaün
On 26/06/2019 01:02, Alexei Starovoitov wrote: > On Tue, Jun 25, 2019 at 3:04 PM Mickaël Salaün wrote: >> >> The goal of the program subtype is to be able to have different static >> fine-grained verifications for a unique program type. >> >> The struct bpf_verifier_ops gets a new optional

[PATCH 1/8] staging: kpc2000: add line breaks

2019-06-26 Thread Fabian Krueger
To fix some checkpatch-warnings some lines of this module had to be shortened so that they do not exceed 80 characters per line. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: --- drivers/staging/kpc2000/kpc2000_spi.c | 34

[PATCH 2/8] staging: kpc2000: blank lines after declaration

2019-06-26 Thread Fabian Krueger
After the declarations in a function, there should be a blank line, so that the declaration part is visibly separated from the rest. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: --- drivers/staging/kpc2000/kpc2000_spi.c | 4

[PATCH 3/8] staging: kpc2000: introduce usage of __packed

2019-06-26 Thread Fabian Krueger
Replaced __attribute__((packed)) with __packed. Both ways of attributing are equivalent, but being shorter, __packed should be preferred. This refactoring makes the core more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: ---

Re: [PATCH v3 0/4] Devmap cleanups + arm64 support

2019-06-26 Thread Christoph Hellwig
Robin, Andrew: I have a series for the hmm tree, which touches the section size bits, and remove device public memory support. It might be best if we include this series in the hmm tree as well to avoid conflicts. Is it ok to include the rebase version of at least the cleanup part (which looks

[PATCH 4/8] staging: kpc2000: remove unnecessary brackets

2019-06-26 Thread Fabian Krueger
Removed brackets on around one-lined if-cases. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: --- drivers/staging/kpc2000/kpc2000_spi.c | 30 +-- 1 file changed, 10 insertions(+), 20 deletions(-) diff

[PATCH 5/8] staging: kpc2000: add spaces

2019-06-26 Thread Fabian Krueger
Added spaces on the left side of parenthesis and on both sides of binary operators. Also realigned else and else if so it matches the parenthesis line. This refactoring makes the code more readable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: ---

[PATCH 6/8] staging: kpc2000: introduce 'unsigned int'

2019-06-26 Thread Fabian Krueger
Replaced 'unsigned' with it's equivalent 'unsigned int' to reduce confusion while reading the code. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: --- drivers/staging/kpc2000/kpc2000_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 8/8] staging: kpc2000: remove needless 'break'

2019-06-26 Thread Fabian Krueger
The unconditioned jump will prohibit to ever reach the break-statement. Deleting this needless statement, the code becomes more understandable. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc: --- drivers/staging/kpc2000/kpc2000_spi.c | 1 - 1 file changed, 1 deletion(-)

[PATCH 7/8] staging: kpc2000: introduce __func__

2019-06-26 Thread Fabian Krueger
Instead of using the function name hard coded as string, using __func__ and the '%s'-placeholder will always give the current name of the function. When renaming a function, the debugging-messages won't have to be rewritten. Signed-off-by: Fabian Krueger Signed-off-by: Michael Scheiderer Cc:

[PATCH 1/2] soc: imx8: Add i.MX8MQ UID(unique identifier) support

2019-06-26 Thread Anson . Huang
From: Anson Huang Add i.MX8MQ SoC UID(unique identifier) support, user can read it from sysfs: root@imx8mqevk:~# cat /sys/devices/soc0/soc_uid D56911D6F060954B Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH 2/2] soc: imx8: Add i.MX8MM UID(unique identifier) support

2019-06-26 Thread Anson . Huang
From: Anson Huang Add i.MX8MM SoC UID(unique identifier) support, user can read it from sysfs: root@imx8mmevk:~# cat /sys/devices/soc0/soc_uid B365FA0A5C85D6EE Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 23 +++ 1 file changed, 23 insertions(+) diff --git

Re: [PATCH v5 02/25] mm: userfault: return VM_FAULT_RETRY on signals

2019-06-26 Thread Peter Xu
On Wed, Jun 26, 2019 at 09:59:58AM +0800, Linus Torvalds wrote: > On Tue, Jun 25, 2019 at 1:31 PM Peter Xu wrote: > > > > Yes that sounds reasonable to me, and that matches perfectly with > > TASK_INTERRUPTIBLE and TASK_KILLABLE. The only thing that I am a bit > > uncertain is whether we should

Re: [PATCH net-next 00/11] net: hns3: some code optimizations & bugfixes

2019-06-26 Thread tanhuazhong
On 2019/6/22 21:53, David Miller wrote: From: Huazhong Tan Date: Thu, 20 Jun 2019 16:52:34 +0800 This patch-set includes code optimizations and bugfixes for the HNS3 ethernet controller driver. [patch 1/11] fixes a selftest issue when doing autoneg. [patch 2/11 - 3-11] adds two code

Re: [RFC PATCH 03/12] powerpc/prom_init: Add the ESM call to prom_init

2019-06-26 Thread Alexey Kardashevskiy
On 21/05/2019 14:49, Thiago Jung Bauermann wrote: > From: Ram Pai > > Make the Enter-Secure-Mode (ESM) ultravisor call to switch the VM to secure > mode. Add "svm=" command line option to turn off switching to secure mode. > Introduce CONFIG_PPC_SVM to control support for secure guests. > >

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-26 Thread Sergey Senozhatsky
On (06/26/19 09:16), John Ogness wrote: > On 2019-06-26, Sergey Senozhatsky wrote: > > [..] > >> In my v1 rfc series, I avoided this issue by having a separate dedicated > >> ringbuffer (rb_sprintf) that was used to allocate a temporary max-size > >> (2KB) buffer for sprinting to. Then _that_ was

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-26 Thread Petr Mladek
On Wed 2019-06-26 09:16:11, John Ogness wrote: > On 2019-06-26, Sergey Senozhatsky wrote: > > [..] > >> > CPU0 CPU1 > >> > printk(...) > >> > sz = vscprintf(NULL, "Comm %s\n", current->comm); > >> >

[PATCH] soc: ti: pm33xx: Fix static checker warnings

2019-06-26 Thread Keerthy
The patch fixes a bunch of static checker warnings. Reported-by: Dan Carpenter Signed-off-by: Keerthy --- drivers/soc/ti/pm33xx.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/soc/ti/pm33xx.c b/drivers/soc/ti/pm33xx.c index

Re: [PATCH 3/4] powerpc/powernv: remove unused NPU DMA code

2019-06-26 Thread Christoph Hellwig
On Wed, Jun 26, 2019 at 10:44:38AM +1000, Alexey Kardashevskiy wrote: > > > On 26/06/2019 00:52, Christoph Hellwig wrote: > > None of these routines were ever used anywhere in the kernel tree > > since they were added to the kernel. > > > So none of my comments has been addressed. Nice. Which

Re: [PATCH 0/8] staging: kpc2000: style refactoring

2019-06-26 Thread Dan Carpenter
This is better. Reviewed-by: Dan Carpenter regards, dan carpenter

Re: [PATCH] drm/virtio: move drm_connector_update_edid_property() call

2019-06-26 Thread Cornelia Huck
On Fri, 5 Apr 2019 06:46:02 +0200 Gerd Hoffmann wrote: > drm_connector_update_edid_property can sleep, we must not > call it while holding a spinlock. Move the callsize. s/callsize/callsite/ > > Reported-by: Max Filippov > Signed-off-by: Gerd Hoffmann > --- >

Re: [PATCH 0/8] pinctrl: aspeed: Preparation for AST2600

2019-06-26 Thread Linus Walleij
On Wed, Jun 26, 2019 at 9:15 AM Andrew Jeffery wrote: > The ASPEED AST2600 is in the pipeline, and we have enough information to start > preparing to upstream support for it. This series lays some ground work; > splitting the bindings and dicing the implementation up a little further to >

Re: [PATCH 4.19 55/90] drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times

2019-06-26 Thread Pavel Machek
On Mon 2019-06-24 17:56:45, Greg Kroah-Hartman wrote: > [ Upstream commit 6a88e0c14813d00f8520d0e16cd4136c6cf8b4d4 ] > > This patch trying to fix monitor freeze issue caused by drm error > 'flip_done timed out' on LS1028A platform. this set try is make a loop > around the second setting CVAL and

Re: [PATCH 1/2 RESEND2] perf/x86/amd/uncore: Do not set ThreadMask and SliceMask for non-L3 PMCs

2019-06-26 Thread Peter Zijlstra
On Tue, Jun 25, 2019 at 02:56:23PM +, Phillips, Kim wrote: > From: Kim Phillips > > Commit d7cbbe49a930 ("perf/x86/amd/uncore: Set ThreadMask and SliceMask > for L3 Cache perf events") enables L3 PMC events for all threads and > slices by writing 1s in ChL3PmcCfg (L3 PMC PERF_CTL) register

[PATCH v4 0/4] usb: xhci: Add support for Renesas USB controllers

2019-06-26 Thread Vinod Koul
This series add support for Renesas USB controllers uPD720201 and uPD720202. These require firmware to be loaded and in case devices have ROM those can also be programmed if empty. If ROM is programmed, it runs from ROM as well. This includes two patches from Christian which supported these

[PATCH v4 2/4] usb: xhci: Use register defined and field names

2019-06-26 Thread Vinod Koul
Instead of using register values and fields lets define them and use in the driver. Signed-off-by: Vinod Koul Cc: Yoshihiro Shimoda Cc: Christian Lamparter Tested-by: Christian Lamparter --- drivers/usb/host/xhci-pci.c | 60 ++--- 1 file changed, 43

Re: [PATCH][V4] lib: fix __sysfs_match_string() helper when n != -1

2019-06-26 Thread Ardelean, Alexandru
On Tue, 2019-06-25 at 12:42 -0700, Andrew Morton wrote: > [External] > > > On Tue, 25 Jun 2019 16:28:12 +0300 Andy Shevchenko > wrote: > > > On Tue, Jun 25, 2019 at 04:01:04PM +0300, Alexandru Ardelean wrote: > > > The documentation the `__sysfs_match_string()` helper mentions that `n` > > >

[PATCH v4 1/4] usb: xhci: add firmware loader for uPD720201 and uPD720202 w/o ROM

2019-06-26 Thread Vinod Koul
From: Christian Lamparter This patch adds a firmware loader for the uPD720201K8-711-BAC-A and uPD720202K8-711-BAA-A variant. Both of these chips are listed in Renesas' R19UH0078EJ0500 Rev.5.00 "User's Manual: Hardware" as devices which need the firmware loader on page 2 in order to work as they

Re: [PATCH v2 0/3] mm: Cleanup & allow modules to hotplug memory

2019-06-26 Thread Christoph Hellwig
On Wed, Jun 26, 2019 at 04:11:20PM +1000, Alastair D'Silva wrote: > - Drop mm/hotplug: export try_online_node > (not necessary) With this the subject line of the cover letter seems incorrect now :)

[PATCH v4 4/4] usb: xhci: allow multiple firmware versions

2019-06-26 Thread Vinod Koul
Allow multiple firmware file versions in table and load them in increasing order as we find them in the file system. Signed-off-by: Vinod Koul Cc: Yoshihiro Shimoda Cc: Christian Lamparter Tested-by: Christian Lamparter --- drivers/usb/host/xhci-pci.c | 47

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-26 Thread Sergey Senozhatsky
On (06/26/19 09:47), Petr Mladek wrote: [..] > If the data might change under the hood then we have bigger > problems. For example, there might be a race when the trailing > "\0" has not been written yet. Current printk would not handle such cases. I'm only talking about transition from one

Re: [PATCH] RISC-V: defconfig: enable MMC & SPI for RISC-V

2019-06-26 Thread Palmer Dabbelt
On Tue, 25 Jun 2019 15:56:36 PDT (-0700), Atish Patra wrote: Currently, riscv upstream defconfig doesn't let you boot through userspace if rootfs is on the SD card. Let's enable MMC & SPI drivers as well so that one can boot to the user space using default config in upstream kernel.

[PATCH v4 3/4] usb: xhci: Add ROM loader for uPD720201

2019-06-26 Thread Vinod Koul
uPD720201 supports ROM and allows software to program the ROM and boot from it. Add support for detecting if ROM is present, if so load the ROM if not programmed earlier. Signed-off-by: Vinod Koul Cc: Yoshihiro Shimoda Cc: Christian Lamparter Tested-by: Christian Lamparter ---

Re: [PATCH v2 0/5] Allocate memmap from hotadded memory

2019-06-26 Thread Oscar Salvador
On Tue, Jun 25, 2019 at 10:25:48AM +0200, David Hildenbrand wrote: > > [Coverletter] > > > > This is another step to make memory hotplug more usable. The primary > > goal of this patchset is to reduce memory overhead of the hot-added > > memory (at least for SPARSEMEM_VMEMMAP memory model). The

Re: [PATCH] perf/x86/intel: Mark expected switch fall-throughs

2019-06-26 Thread Peter Zijlstra
On Tue, Jun 25, 2019 at 10:12:42AM -0700, Kees Cook wrote: > On Tue, Jun 25, 2019 at 09:18:46AM +0200, Peter Zijlstra wrote: > > Can it build a kernel without patches yet? That is, why should I care > > what LLVM does? > > Yes. LLVM trunk builds and boots x86 now. As for distro availability, If

Re: [PATCH RFC 1/2] PM / devfreq: Generic CPU frequency to device frequency mapping governor

2019-06-26 Thread Chanwoo Choi
Hello Sibi and Hsin-Yi, On 19. 6. 20. 오후 6:41, Sibi Sankar wrote: > Hey Hsin-Yi, Chanwoo > > On 2019-06-20 15:02, Hsin-Yi Wang wrote: >> Hi Chanwoo Choi, Saravana Kannan and Sibi Sankar, >> >> I've also tested Sibi Sankar's patch[1] locally with mt8183-cci, and >> it works fine too! >> It'd be

Re: [PATCH v2 0/5] Allocate memmap from hotadded memory

2019-06-26 Thread David Hildenbrand
On 26.06.19 10:03, Oscar Salvador wrote: > On Tue, Jun 25, 2019 at 10:25:48AM +0200, David Hildenbrand wrote: >>> [Coverletter] >>> >>> This is another step to make memory hotplug more usable. The primary >>> goal of this patchset is to reduce memory overhead of the hot-added >>> memory (at least

Re: [PATCH v2 4/5] mm,memory_hotplug: allocate memmap from the added memory range for sparse-vmemmap

2019-06-26 Thread Oscar Salvador
On Tue, Jun 25, 2019 at 10:49:10AM +0200, David Hildenbrand wrote: > On 25.06.19 09:52, Oscar Salvador wrote: > > Physical memory hotadd has to allocate a memmap (struct page array) for > > the newly added memory section. Currently, alloc_pages_node() is used > > for those allocations. > > > >

Re: [PATCH v2 0/5] Allocate memmap from hotadded memory

2019-06-26 Thread Oscar Salvador
On Wed, Jun 26, 2019 at 10:11:06AM +0200, David Hildenbrand wrote: > Back then, I already mentioned that we might have some users that > remove_memory() they never added in a granularity it wasn't added. My > concerns back then were never fully sorted out. > >

Re: [PATCH v2 4/5] mm,memory_hotplug: allocate memmap from the added memory range for sparse-vmemmap

2019-06-26 Thread David Hildenbrand
On 26.06.19 10:13, Oscar Salvador wrote: > On Tue, Jun 25, 2019 at 10:49:10AM +0200, David Hildenbrand wrote: >> On 25.06.19 09:52, Oscar Salvador wrote: >>> Physical memory hotadd has to allocate a memmap (struct page array) for >>> the newly added memory section. Currently, alloc_pages_node() is

  1   2   3   4   5   6   7   8   9   10   >