Re: [PATCH] mm: drop VM_BUG_ON from __get_free_pages

2018-06-27 Thread Andrew Morton
On Wed, 27 Jun 2018 09:50:01 +0200 Vlastimil Babka wrote: > On 06/27/2018 09:34 AM, Michal Hocko wrote: > > On Tue 26-06-18 10:04:16, Andrew Morton wrote: > > > > And as I've argued before the code would be wrong regardless. We would > > leak the memory or worse touch somebody's else kmap

RE: [PATCH v7] tpm: separate cmd_ready/go_idle from runtime_pm

2018-06-27 Thread Winkler, Tomas
> On Tue, 2018-06-26 at 21:15 +, Winkler, Tomas wrote: > > > Right now if I really put head into this I can understand the logic > > > but it is a complete mess. > > > > I think what is the mess is that we have a recursive call to > > tpm_transmit topped with retries. All other mess is just

Re: fpga: fpga_mgr_get() buggy ?

2018-06-27 Thread Alan Tull
On Wed, Jun 27, 2018 at 4:25 AM, Federico Vaga wrote: > Hi Alan, > > On Tuesday, 26 June 2018 23:00:46 CEST Alan Tull wrote: >> On Fri, Jun 22, 2018 at 2:53 AM, Federico Vaga >> wrote: >> >> Hi Federico, >> >> >> > What is buggy is the function fpga_mgr_get(). >> >> > That patch has been done to

Re: [PATCH 1/2] i2c: i801: Fix runtime PM

2018-06-27 Thread Bjorn Helgaas
[+cc Rafael, linux-pm, linux-kernel] On Wed, Jun 27, 2018 at 10:15:50PM +0200, Jean Delvare wrote: > Hi Jarkko, > > On Tue, 26 Jun 2018 17:39:12 +0300, Jarkko Nikula wrote: > > Commit 9c8088c7988 ("i2c: i801: Don't restore config registers on > > runtime PM") nullified the runtime PM

Re: [PATCH] mm: drop VM_BUG_ON from __get_free_pages

2018-06-27 Thread Michal Hocko
On Wed 27-06-18 14:14:12, Andrew Morton wrote: > On Wed, 27 Jun 2018 09:50:01 +0200 Vlastimil Babka wrote: > > > On 06/27/2018 09:34 AM, Michal Hocko wrote: > > > On Tue 26-06-18 10:04:16, Andrew Morton wrote: > > > > > > And as I've argued before the code would be wrong regardless. We would >

Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too

2018-06-27 Thread Boris Brezillon
On Wed, 27 Jun 2018 09:55:59 -0500 Dinh Nguyen wrote: > Hi Masahiro, > > On 06/26/2018 09:52 PM, Masahiro Yamada wrote: > > 2018-06-27 3:09 GMT+09:00 Miquel Raynal : > >> Hi Masahiro, > >> > >> On Tue, 26 Jun 2018 11:38:21 +0900, Masahiro Yamada > >> wrote: > >> > >>> 2018-06-25 23:55

Re: [PATCH v3] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt

2018-06-27 Thread Boris Brezillon
On Wed, 27 Jun 2018 22:47:44 +0200 Martin Kaiser wrote: > Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can > potentially be called at any time. After the __init functions are cleaned, > mxcnd_probe_dt is no longer available. Calling it anyway causes a crash. > >

Re: [PATCH v4 2/2] ARM: dts: pxa: fix the rtc controller

2018-06-27 Thread Rob Herring
On Wed, Jun 27, 2018 at 1:41 PM Robert Jarzmik wrote: > > The RTC controller is fed by an external fixed 32kHz clock. Yet the > driver wants to acquire this clock, even though it doesn't make any use > of it, ie. doesn't get the rate to make calculation. > > Therefore, use the exported 32.768kHz

Re: [PATCH] proc: save 2 atomic ops on write to "/proc/*/attr/*"

2018-06-27 Thread Andy Shevchenko
On Wed, Jun 27, 2018 at 11:02 PM, Alexey Dobriyan wrote: > Code checks if write is done by current to its own attributes. > For that get/put pair is unnecessary as it can be done under RCU. > /* No partial writes. */ > - length = -EINVAL; > if (*ppos != 0) > -

[PATCH] mm: hugetlb: yield when prepping struct pages

2018-06-27 Thread Cannon Matthews
When booting with very large numbers of gigantic (i.e. 1G) pages, the operations in the loop of gather_bootmem_prealloc, and specifically prep_compound_gigantic_page, takes a very long time, and can cause a softlockup if enough pages are requested at boot. For example booting with 3844 1G pages

[PATCH RESEND] firmware: qcom: scm: add a dummy qcom_scm_assign_mem()

2018-06-27 Thread Niklas Cassel
Add a dummy qcom_scm_assign_mem() to enable building drivers when CONFIG_COMPILE_TEST=y && CONFIG_QCOM_SCM=n. All other qcom_scm_* functions already have a dummy version. Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- include/linux/qcom_scm.h | 4 1 file changed, 4

Re: [PATCH] bus: ti-sysc: Use 2-factor allocator arguments

2018-06-27 Thread Kees Cook
On Mon, Jun 18, 2018 at 10:45 AM, Kees Cook wrote: > This adjusts the allocator calls to use 2-factor argument call style, as > done treewide already for improved defense against allocation overflows. > > Signed-off-by: Kees Cook Friendly ping! :) This is the last 2-factor devm* allocation left

Re: [PATCHv4 17/18] x86/mm: Handle encrypted memory in page_to_virt() and __pa()

2018-06-27 Thread Kirill A. Shutemov
On Tue, Jun 26, 2018 at 04:38:23PM +, Dave Hansen wrote: > > diff --git a/arch/x86/include/asm/mktme.h b/arch/x86/include/asm/mktme.h > > index ba83fba4f9b3..dbfbd955da98 100644 > > --- a/arch/x86/include/asm/mktme.h > > +++ b/arch/x86/include/asm/mktme.h > > @@ -29,6 +29,9 @@ void

Re: [PATCHv4 18/18] x86: Introduce CONFIG_X86_INTEL_MKTME

2018-06-27 Thread Kirill A. Shutemov
On Tue, Jun 26, 2018 at 05:30:12PM +, Randy Dunlap wrote: > On 06/26/2018 07:22 AM, Kirill A. Shutemov wrote: > > Add new config option to enabled/disable Multi-Key Total Memory > > Encryption support. > > > > MKTME uses MEMORY_PHYSICAL_PADDING to reserve enough space in per-KeyID > > direct

[PATCH] objtool: Support GCC 8 '-fnoreorder-functions'

2018-06-27 Thread Josh Poimboeuf
Since the following commit: cd77849a69cf ("objtool: Fix GCC 8 cold subfunction detection for aliased functions") ... if the kernel is built with EXTRA_CFLAGS='-fno-reorder-functions', objtool can get stuck in an infinite loop. That flag causes the new GCC 8 cold subfunctions to be placed in

Re: [RFC PATCH] net, mm: account sock objects to kmemcg

2018-06-27 Thread Shakeel Butt
On Wed, Jun 27, 2018 at 2:51 PM Eric Dumazet wrote: > > > > On 06/27/2018 01:41 PM, Shakeel Butt wrote: > > Currently the kernel accounts the memory for network traffic through > > mem_cgroup_[un]charge_skmem() interface. However the memory accounted > > only includes the truesize of sk_buff

[PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-27 Thread Javier Martinez Canillas
With Device Trees (DT), the dependencies of the devices are defined in the DT, then the drivers parse that information to lookup the needed resources that have as dependencies. Since drivers and devices are registered in a non-deterministic way, it is possible that a device that is a dependency

Re: [PATCH] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-27 Thread Andy Shevchenko
On Wed, Jun 27, 2018 at 2:34 AM, Srinivas Pandruvada wrote: > In some of the recent platforms, it is possible that stand alone methods > for HEBC() or other methods used in this driver may not exist. In this > case intel-hid driver will fail to load and power button will not be > functional. > >

About my success.....

2018-06-27 Thread Davi Ulah
Dear Friend, I'm sorry but happy to inform you about my success in getting those funds transferred under the cooperation of a new partner from Vietnam, though I tried my best to involve you in the business but God decided the whole situations. Presently I’m in Vietnam for investment projects with

Re: [PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-27 Thread Andy Shevchenko
On Thu, Jun 28, 2018 at 1:06 AM, Javier Martinez Canillas wrote: > With Device Trees (DT), the dependencies of the devices are defined in the > DT, then the drivers parse that information to lookup the needed resources > that have as dependencies. > > Since drivers and devices are registered in a

Re: Simplifying our RCU models

2018-06-27 Thread Paul E. McKenney
On Fri, Jun 08, 2018 at 09:51:34AM -0700, Paul E. McKenney wrote: > On Tue, Apr 10, 2018 at 04:44:25PM -0700, Paul E. McKenney wrote: > > On Thu, Mar 08, 2018 at 12:45:24PM -0800, Paul E. McKenney wrote: > > > On Wed, Mar 07, 2018 at 10:48:50AM -0800, Linus Torvalds wrote: > > > > On Wed, Mar 7,

Re: [PATCH] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-27 Thread Srinivas Pandruvada
On Thu, 2018-06-28 at 01:15 +0300, Andy Shevchenko wrote: > On Wed, Jun 27, 2018 at 2:34 AM, Srinivas Pandruvada > wrote: > > In some of the recent platforms, it is possible that stand alone > > methods > > for HEBC() or other methods used in this driver may not exist. In > > this > > case

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

2018-06-27 Thread Stephen Rothwell
^~~~ Caused by commit 2324106f7e43 ("ARM: dts: sun8i: r40: Add HDMI pipeline") I have used the sunxi tree from next-20180627 for today. -- Cheers, Stephen Rothwell pgpap6NjsFmrb.pgp Description: OpenPGP digital signature

Re: [PATCH v5 2/4] mm/sparsemem: Defer the ms->section_mem_map clearing

2018-06-27 Thread Baoquan He
On 06/27/18 at 11:54am, Oscar Salvador wrote: > On Wed, Jun 27, 2018 at 09:31:14AM +0800, Baoquan He wrote: > > In sparse_init(), if CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y, system > > will allocate one continuous memory chunk for mem maps on one node and > > populate the relevant page tables to

Re: [PATCH] ARM64: dts: meson-axg: fix ethernet stability issue

2018-06-27 Thread Kevin Hilman
Neil Armstrong writes: > On 25/06/2018 14:56, Jerome Brunet wrote: >> Like the odroid-c2 and wetek, the s400 uses the RTL8211F and seems to >> suffer from the kind of stability issue. >> >> Doing an iperf3 download test, we can see a significant number of LPI >> interrupts on the tx path. After

Re: [PATCH] mm: hugetlb: yield when prepping struct pages

2018-06-27 Thread Mike Kravetz
On 06/27/2018 02:44 PM, Cannon Matthews wrote: > When booting with very large numbers of gigantic (i.e. 1G) pages, the > operations in the loop of gather_bootmem_prealloc, and specifically > prep_compound_gigantic_page, takes a very long time, and can cause a > softlockup if enough pages are

Re: [PATCH 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-06-27 Thread Kevin Hilman
Hi Boris, Boris Brezillon writes: > Hi Yixun, > > On Wed, 13 Jun 2018 16:13:14 + > Yixun Lan wrote: > >> From: Liang Yang >> >> Add initial support for the Amlogic NAND flash controller which found >> in the Meson-GXBB/GXL/AXG SoCs. >> >> Singed-off-by: Liang Yang >> Signed-off-by:

Re: [PATCH] mm: hugetlb: yield when prepping struct pages

2018-06-27 Thread Andrew Morton
On Wed, 27 Jun 2018 16:27:24 -0700 Mike Kravetz wrote: > My only suggestion would be to remove the mention of 2M pages in the > commit message. Thanks for adding this. I have removed that sentence. > Reviewed-by: Mike Kravetz Thanks again.

Re: [RFC PATCH 04/16] x86/split_lock: Use non locked bit set instruction in set_cpu_cap

2018-06-27 Thread Fenghua Yu
On Thu, Jun 21, 2018 at 09:55:40PM +0200, Peter Zijlstra wrote: > On Sun, May 27, 2018 at 08:45:53AM -0700, Fenghua Yu wrote: > > set_bit() called by set_cpu_cap() is a locked bit set instruction for > > atomic operation. > > > > Since the c->x86_capability can span two cache lines depending on

Re: [PATCH v5 0/4] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-27 Thread Baoquan He
Hi Pavel, On 06/27/18 at 01:47pm, Pavel Tatashin wrote: > This work made me think why do we even have > CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER ? This really should be the > default behavior for all systems. Yet, it is enabled only on x86_64. > We could clean up an already messy sparse.c if we

Re: [PATCH 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver

2018-06-27 Thread Kevin Hilman
Rob Herring writes: > On Sun, Jun 24, 2018 at 12:46:59AM +0200, Martin Blumenstingl wrote: >> Hello Yixun, Hello Liang, >> >> I have a few small comments inline below >> additionally I tried to explain the reason behind >> "amlogic,mmc-syscon", clkin0 and clkin1 so Rob (or the devicetree >>

Re: [PATCH] nvme: trace: add disk name to tracepoints

2018-06-27 Thread Keith Busch
On Wed, Jun 27, 2018 at 11:06:22AM +0300, Sagi Grimberg wrote: > > > > Not related to your patch, but I did notice that the req->q->id isn't > > > really useful here since that's not the hardware context identifier. > > > That's just some ida assigned software identifier. For the admin command >

Re: [RFC PATCH v2 1/6] serial: uartps: Do not initialize field to zero again

2018-06-27 Thread Greg Kroah-Hartman
On Wed, Jun 27, 2018 at 04:19:46PM +0200, Michal Simek wrote: > On 27.6.2018 12:09, Greg Kroah-Hartman wrote: > > On Tue, Jun 19, 2018 at 10:09:05AM +0200, Michal Simek wrote: > >> On 6.6.2018 14:41, Michal Simek wrote: > >>> Writing zero and NULLs to already initialized fields is not needed. >

Re: [PATCHv4 18/18] x86: Introduce CONFIG_X86_INTEL_MKTME

2018-06-27 Thread Randy Dunlap
On 06/27/2018 02:57 PM, Kirill A. Shutemov wrote: > On Tue, Jun 26, 2018 at 05:30:12PM +, Randy Dunlap wrote: >> On 06/26/2018 07:22 AM, Kirill A. Shutemov wrote: >>> Add new config option to enabled/disable Multi-Key Total Memory >>> Encryption support. >>> >>> MKTME uses

Re: [PATCH v3] dcdbas: Add support for WSMT ACPI table

2018-06-27 Thread Andy Shevchenko
On Fri, Jun 15, 2018 at 1:31 AM, Stuart Hayes wrote: > On 6/14/2018 12:25 PM, Andy Shevchenko wrote: >> On Thu, Jun 14, 2018 at 5:22 PM, Stuart Hayes >> wrote: >>> On 6/13/2018 3:54 AM, Andy Shevchenko wrote: >> > +* Provide physical address of command buffer field within

Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression

2018-06-27 Thread Ye Xiaolong
On 06/27, Christoph Hellwig wrote: >On Tue, Jun 26, 2018 at 02:03:38PM +0800, Ye Xiaolong wrote: >> Hi, >> >> On 06/22, Christoph Hellwig wrote: >> >Hi Xiaolong, >> > >> >can you retest this workload on the following branch: >> > >> >git://git.infradead.org/users/hch/vfs.git

Re: [PATCH] proc: add proc_seq_release

2018-06-27 Thread Al Viro
On Wed, Jun 27, 2018 at 09:09:40AM +0200, Christoph Hellwig wrote: > Al, can you pick up this fix from Chunyu? Applied.

Re: [PATCH v3 1/3] cpufreq: imx6q: check speed grades for i.MX6ULL

2018-06-27 Thread Shawn Guo
On Mon, Jun 25, 2018 at 10:01:44AM +0200, Sébastien Szymanski wrote: > Hi, > > On 06/11/2018 07:38 AM, Shawn Guo wrote: > > On Tue, May 22, 2018 at 08:28:51AM +0200, Sébastien Szymanski wrote: > >> Check the max speed supported from the fuses for i.MX6ULL and update the > >> operating points

Re: [PATCH V2 2/2] ARM: dts: imx6ul: add GPIO clocks

2018-06-27 Thread Shawn Guo
On Mon, Jun 25, 2018 at 03:14:39AM +, Anson Huang wrote: > Gentle Ping... I cannot apply this dts patch until the clock patch is landed on mainline, because it has a dependency on new clock ID IMX6UL_CLK_GPIO1 created by clock patch. Shawn > > -Original Message- > > From: Anson

Re: [PATCH] nvme: trace: add disk name to tracepoints

2018-06-27 Thread Keith Busch
Thinking more on this, not using the hw qid really limits the utility out of using these trace events: We may not be able to match a completion to the submission without it since cmdid alone isn't enough to match up the two events. Here's an updated proposal and actually tested. I was also able

Re: [PATCH] proc: condemn myself to MAINTAINERS

2018-06-27 Thread Joe Perches
On Wed, 2018-06-27 at 22:48 +0300, Alexey Dobriyan wrote: > I know I'll regret it. This wasn't applied back in February? > Signed-off-by: Alexey Dobriyan > --- > > MAINTAINERS |9 + > 1 file changed, 9 insertions(+) > > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11481,6

Re: [PATCH v21 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-06-27 Thread CK Hu
Hi, Houlong: On Wed, 2018-06-27 at 19:43 +0800, houlong wei wrote: > On Wed, 2018-02-21 at 16:05 +0800, CK Hu wrote: > > Hi, Houlong: > > > > I've one more inline comment. > > > > On Wed, 2018-01-31 at 15:28 +0800, houlong@mediatek.com wrote: > > > From: "hs.l...@mediatek.com" > > > > > >

[PATCH V2] ARM: dts: imx6sll-evk: enable usdhc3 slot

2018-06-27 Thread Anson Huang
On i.MX6SLL EVK board, SD3 slot can be used for WiFi and other SD accessories, enable it. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 65 +++ 1 file changed, 65 insertions(+) diff --git a/arch/arm/boot/dts/imx6sll-evk.dts

Re: [PATCH 1/4] PCI: mediatek: fixup mtk_pcie_find_port logical

2018-06-27 Thread Honghui Zhang
On Wed, 2018-06-27 at 19:35 +0300, Andy Shevchenko wrote: > On Wed, Jun 27, 2018 at 12:21 PM, wrote: > > From: Honghui Zhang > > > > Mediatek's host controller have two slots, each have it's own control > > registers. The host driver need to identify which slot was connected > > in order to

Re: [PATCH] proc: condemn myself to MAINTAINERS

2018-06-27 Thread Andrew Morton
On Wed, 27 Jun 2018 18:05:35 -0700 Joe Perches wrote: > On Wed, 2018-06-27 at 22:48 +0300, Alexey Dobriyan wrote: > > I know I'll regret it. > > This wasn't applied back in February? Well I thought it was, but I can't find such a patch anywhere.

RE: [PATCH] ARM: dts: imx6sll-evk: enable usdhc3 slot

2018-06-27 Thread Anson Huang
Hi, Fabio Anson Huang Best Regards! > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: Wednesday, June 27, 2018 10:31 PM > To: Anson Huang > Cc: Shawn Guo ; Sascha Hauer > ; Sascha Hauer ; Fabio > Estevam ; Rob Herring ; > Mark Rutland ; open list:OPEN

Re: [PATCH] selftests: gpio: gpio-mockup-chardev GPIOHANDLE_REQUEST_OUTPUT fix

2018-06-27 Thread Rafael Tinoco
Linus, Bartosz, This was discovered during our investigations of a functional tests regression/error: https://bugs.linaro.org/show_bug.cgi?id=3769 Which turned out to be related to missing CONFIG_ARM{64}_MODULE_PLTS config in our builds. However, during investigations, we realized the

Re: [PATCH 4/4] PCI: mediatek: Add loadable kernel module support

2018-06-27 Thread Honghui Zhang
On Wed, 2018-06-27 at 19:39 +0300, Andy Shevchenko wrote: > On Wed, Jun 27, 2018 at 12:21 PM, wrote: > > From: Honghui Zhang > > > > Implement remove callback function for Mediatek PCIe driver to add > > loadable kernel module support. > > > +static void mtk_pcie_irq_teardown(struct mtk_pcie

[PATCH] rpmsg: glink: Set tail pointer to 0 at end of FIFO

2018-06-27 Thread Chris Lew
When wrapping around the FIFO, the remote expects the tail pointer to be reset to 0 on the edge case where the tail equals the FIFO length. Signed-off-by: Chris Lew --- drivers/rpmsg/qcom_glink_smem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

答复: [PATCH] ext4: e2fsprogs: fix inode bitmap num not integer,incompatible for ancient android devices

2018-06-27 Thread Gaoming (ming, consumer BG)
Hi tytso, I have checked that make_ext4fs code was deleted o Jun 21th 2018 on master branch of /system/extras repository. e.g. https://android-review.googlesource.com/c/platform/system/extras/+/708003 that means this tools has been widely used along serval years. And it is probably that many

Re: [PATCH 3/4] PCI: mediatek: Add system pm support for MT2712 and MT7622

2018-06-27 Thread Honghui Zhang
On Wed, 2018-06-27 at 19:45 +0300, Andy Shevchenko wrote: > On Wed, Jun 27, 2018 at 12:21 PM, wrote: > > From: Honghui Zhang > > > > The MTCMOS of PCIe Host for MT2712 and MT7622 will be off when system > > suspend, and all the internal control register will be reset after system > > resume.

Re: [PATCH v21 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2018-06-27 Thread CK Hu
Hi, Houlong: On Wed, 2018-06-27 at 19:53 +0800, houlong wei wrote: > On Wed, 2018-02-21 at 11:53 +0800, CK Hu wrote: > > Hi, Houlong: > > > > I've one inline comment. > > > > On Wed, 2018-01-31 at 15:28 +0800, houlong@mediatek.com wrote: > > > From: "hs.l...@mediatek.com" > > > > > > This

Re: [PATCH v2 1/3] printk: Split the code for storing a message into the log buffer

2018-06-27 Thread Sergey Senozhatsky
On (06/27/18 16:08), Petr Mladek wrote: [..] > if (dict) > lflags |= LOG_PREFIX|LOG_NEWLINE; > > - printed_len = log_output(facility, level, lflags, dict, dictlen, text, > text_len); > + return log_output(facility, level, lflags, > + dict,

Re: [PATCH v10 2/2] Refactor part of the oom report in dump_header

2018-06-27 Thread Andrew Morton
On Sat, 23 Jun 2018 22:12:51 +0800 ufo19890...@gmail.com wrote: > From: yuzhoujian > > The current system wide oom report prints information about the victim > and the allocation context and restrictions. It, however, doesn't > provide any information about memory cgroup the victim belongs to.

Re: [PATCH v2 2/3] printk: Create helper function to queue deferred console handling

2018-06-27 Thread Sergey Senozhatsky
On (06/27/18 16:08), Petr Mladek wrote: > -int vprintk_deferred(const char *fmt, va_list args) > +void defer_console(void) > { > - int r; > - > - r = vprintk_emit(0, LOGLEVEL_SCHED, NULL, 0, fmt, args); > - > preempt_disable(); > __this_cpu_or(printk_pending,

Re: [PATCH v2 2/3] printk: Create helper function to queue deferred console handling

2018-06-27 Thread Sergey Senozhatsky
On (06/28/18 11:16), Sergey Senozhatsky wrote: > > You can just call vprintk_emit(LOGLEVEL_SCHED) from vprintk_func(), > then you don't need to factor out vprintk_deferred() and vprintk_emit(). > Any reason for that split? My bad, no you can't. I forgot that for direct_nmi vprintk_func()

Re: [PATCH] ARM: dts: imx6: RIoTboard Add chosen stdout-path property

2018-06-27 Thread Shawn Guo
On Mon, Jun 18, 2018 at 05:42:57PM +0200, Emmanuel Vadot wrote: > The RIoTboard debug uart is connected to serial1. > Add a chosen property in the DTS so OS knows what serial port to use for > the console. > > Signed-off-by: Emmanuel Vadot Applied, thanks.

Re: [PATCH v2 3/3] printk/nmi: Prevent deadlock when accessing the main log buffer in NMI

2018-06-27 Thread Sergey Senozhatsky
On (06/27/18 16:20), Petr Mladek wrote: > +/* > + * Marks a code that might produce many messages in NMI context > + * and the risk of losing them is more critical than eventual > + * reordering. > + * > + * It has effect only when called in NMI context. Then printk() > + * will try to store the

Re: [PATCH v3 17/24] drm/sun4i: Don't change clock bits in DW HDMI PHY driver

2018-06-27 Thread Chen-Yu Tsai
On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec wrote: > DW HDMI PHY driver and PHY clock driver share same registers. Make sure > that DW HDMI PHY setup code doesn't change any clock related bits. > During initialization, set PHY PLL parent bit to 0. > > Signed-off-by: Jernej Skrabec

Re: 答复: [PATCH] ext4: e2fsprogs: fix inode bitmap num not integer,incompatible for ancient android devices

2018-06-27 Thread Theodore Y. Ts'o
On Thu, Jun 28, 2018 at 01:40:30AM +, Gaoming (ming, consumer BG) wrote: > Hi tytso, > > I have checked that make_ext4fs code was deleted o Jun 21th 2018 on master > branch of /system/extras repository. > e.g. > https://android-review.googlesource.com/c/platform/system/extras/+/708003

[PATCH] hwspinlock: Fix incorrect return pointers

2018-06-27 Thread Baolin Wang
The commit 4f1acd758b08 ("hwspinlock: Add devm_xxx() APIs to request/free hwlock") introduces one bug, that will return one error pointer if failed to request one hwlock, but we expect NULL pointer on error for consumers. This patch will fix this issue. Reported-by: Dan Carpenter Signed-off-by:

Re: [PATCH v2 0/3] printk: Deadlock in NMI regression

2018-06-27 Thread Sergey Senozhatsky
On (06/27/18 16:08), Petr Mladek wrote: > > kernel/printk/printk.c | 57 +++- > kernel/printk/printk_safe.c | 58 > + Shall we just merge these two? -ss

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-27 Thread John Hubbard
On 06/27/2018 10:02 AM, Jan Kara wrote: > On Wed 27-06-18 08:57:18, Jason Gunthorpe wrote: >> On Wed, Jun 27, 2018 at 02:42:55PM +0200, Jan Kara wrote: >>> On Wed 27-06-18 13:59:27, Michal Hocko wrote: On Wed 27-06-18 13:53:49, Jan Kara wrote: > On Wed 27-06-18 13:32:21, Michal Hocko

Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks

2018-06-27 Thread Sergey Senozhatsky
On (06/20/18 12:38), Linus Torvalds wrote: > On Wed, Jun 20, 2018 at 11:50 AM Sergey Senozhatsky > wrote: > > > > It's not UART on its own that immediately calls into printk(), that would > > be trivial to fix, it's all those subsystems that serial console driver > > can call into. > > We

Re: [PATCH v4 6/7] Bluetooth: mediatek: Add protocol support for MediaTek serial devices

2018-06-27 Thread Sean Wang
On Wed, 2018-06-27 at 19:59 +0300, Andy Shevchenko wrote: > On Wed, Jun 27, 2018 at 8:43 AM, wrote: > > From: Sean Wang > > > > > +config BT_HCIBTUART_MTK > > + tristate "MediaTek HCI UART driver" > > + depends on BT_HCIBTUART > > > + default y > > Perhaps it's an overkill

Re: moving affs + RDB partition support to staging?

2018-06-27 Thread jdow
FFS is limited to 2 GHz file size if you don't want any corruption using fseek(). Otherwise it can go to 4 GHz sort of safely. {^_^} On 20180627 00:57, Martin Steigerwald wrote: Michael Schmitz - 27.06.18, 03:07: Joanne, As far as I have been able to test, the change is backwards compatible

Re: moving affs + RDB partition support to staging?

2018-06-27 Thread jdow
The issue is what happens when one of those disks appears on a 3.1 system. {^_^} On 20180627 01:03, Martin Steigerwald wrote: Dear Joanne. jdow - 27.06.18, 08:24: You allergic to using a GPT solution? It will get away from some of the evils that RDB has inherent in it because they are also

Re: [PATCH v4 6/7] Bluetooth: mediatek: Add protocol support for MediaTek serial devices

2018-06-27 Thread Sean Wang
On Wed, 2018-06-27 at 20:04 +0300, Andy Shevchenko wrote: > On Wed, Jun 27, 2018 at 7:59 PM, Andy Shevchenko > wrote: > > On Wed, Jun 27, 2018 at 8:43 AM, wrote: > >> From: Sean Wang > >> > > > >> +config BT_HCIBTUART_MTK > >> + tristate "MediaTek HCI UART driver" > >> + depends on

Re: [PATCH v5 1/4] mm/sparse: Add a static variable nr_present_sections

2018-06-27 Thread Pavel Tatashin
Reviewed-by: Pavel Tatashin On Tue, Jun 26, 2018 at 9:31 PM Baoquan He wrote: > > It's used to record how many memory sections are marked as present > during system boot up, and will be used in the later patch. > > Signed-off-by: Baoquan He > --- > mm/sparse.c | 7 +++ > 1 file changed, 7

Re: [PATCH v5 2/4] mm/sparsemem: Defer the ms->section_mem_map clearing

2018-06-27 Thread Pavel Tatashin
Once you remove the ms mentioned by Oscar: Reviewed-by: Pavel Tatashin On Wed, Jun 27, 2018 at 6:59 PM Baoquan He wrote: > > On 06/27/18 at 11:54am, Oscar Salvador wrote: > > On Wed, Jun 27, 2018 at 09:31:14AM +0800, Baoquan He wrote: > > > In sparse_init(), if

Re: [PATCH 0/2] Avoid firmware warning in imx-sdma

2018-06-27 Thread Luis R. Rodriguez
On Fri, Jun 22, 2018 at 04:49:49PM +0200, Sebastian Reichel wrote: > Subject: Avoid firmware warning in imx-sdma > > Hi, > > I grabbed the first patch from patchwork from an 2017 patch series. As far as > I > could see, their usecase vanished due to switching to sync FW API (that > already >

Re: [PATCH v5 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-27 Thread Pavel Tatashin
Honestly, I do not like this new agrument, but it will do for now. I could not think of a better way without rewriting everything. Reviewed-by: Pavel Tatashin However, I will submit a series of patches to cleanup sparse.c and completely remove large and confusing temporary buffers: map_map, and

Re: [PATCH v5 4/4] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-27 Thread Pavel Tatashin
> Signed-off-by: Baoquan He > > Signed-off-by: Baoquan He Please remove duplicated signed-off > if (!usemap) { > ms->section_mem_map = 0; > + nr_consumed_maps++; Currently, we do not set ms->section_mem_map to 0 when fail to

Re: [PATCH] ARM: dts: imx6sll: declare src module to be compatible to imx51's src

2018-06-27 Thread Shawn Guo
On Wed, Jun 20, 2018 at 04:38:37PM +0800, Anson Huang wrote: > i.MX6SLL uses same SRC module as i.MX51, add "fsl,imx51-src" > compatible string to enable SRC driver to support setting > CPU resume address for cpu-idle and suspend/resume. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH v7 3/4] phy: Add QMP phy based UFS phy support for sdm845

2018-06-27 Thread Manu Gautam
Hi, On 6/19/2018 2:06 PM, Can Guo wrote: > +static int qcom_qmp_phy_poweron(struct phy *phy) > +{ > + struct qmp_phy *qphy = phy_get_drvdata(phy); > + struct qcom_qmp *qmp = qphy->qmp; > + const struct qmp_phy_cfg *cfg = qmp->cfg; > + void __iomem *pcs = qphy->pcs; > + void

Re: [PATCH v7 2/4] phy: General struct and field cleanup

2018-06-27 Thread Manu Gautam
On 6/19/2018 2:06 PM, Can Guo wrote: > Move MSM8996 specific PHY vreg list struct name to a genernal one as it is > used by all PHYs. Add a specific field to handle dual lane situation. > > Signed-off-by: Can Guo > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 25 ++--- > 1

Re: moving affs + RDB partition support to staging?

2018-06-27 Thread jdow
my machine, and 1.1 was, indeed, crap. {o.o} On 20180627 02:00, Michael Schmitz wrote: Joanne, I'm not at all allergic to avoiding RDB at all cost for new disks. If AmigaOS 4.1 supports more recent partition formats, all the better. This is all about supporting use of legacy RDB disks on Linux (t

Re: [PATCH v7 1/4] phy: Update PHY power control sequence

2018-06-27 Thread Manu Gautam
On 6/19/2018 2:06 PM, Can Guo wrote: > All PHYs should be powered on before register configuration starts. And > only PCIe PHYs need an extra power control before deasserts reset state. > > Signed-off-by: Can Guo > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 19 --- > 1 file

xfs: Deadlock between fs_reclaim and sb_internal

2018-06-27 Thread Ravi Bangoria
Hello Darrick, Lockdep is reporting a deadlock with following trace. Saw this on my powerpc vm with 4GB of ram, running Linus/master kernel. Though, I don't have exact testcase to reproduce it. Is this something known? [ 1797.620389] == [

RE: [PATCH 4.4 00/24] 4.4.138-stable review

2018-06-27 Thread Daniel Sangorrin
> -Original Message- > From: stable-ow...@vger.kernel.org On Behalf > Of Ben Hutchings [..] > 3.18 and 4.4 are still missing this important fix to early parameter > parsing: > > commit 02afeaae9843733a39cd9b11053748b2d1dc5ae7 > Author: Dave Hansen > Date: Tue Dec 22 14:52:38 2015

Re: [PATCH 05/14] fsi: master-gpio: Add support for link_config

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:55, Benjamin Herrenschmidt wrote: > To configure the send and echo delays > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley

Re: [PATCH 03/14] fsi: Add mechanism to set the tSendDelay and tEchoDelay values

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:55, Benjamin Herrenschmidt wrote: > Those values control the amount of "dummy" clocks between commands and > between a command and its response. > > This adds a way to configure them from sysfs (to be later extended to > defaults in the device-tree). The default remains 16

Re: [PATCH 04/14] fsi: master-gpio: Rename and adjust send delay

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:53, Benjamin Herrenschmidt wrote: > What the driver called "FSI_GPIO_PRIME_SLAVE_CLOCKS" is what > the FSI spec calls tSendDelay and should be 16 clocks by > default. > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley

Re: [PATCH 02/14] fsi: Move code around to avoid forward declaration

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:53, Benjamin Herrenschmidt wrote: > Move fsi_slave_set_smode() and its helpers to before it's > first user and remove the corresponding forward declaration. > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley

Re: [PATCH 06/14] fsi: master-gpio: Add more tracepoints

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:55, Benjamin Herrenschmidt wrote: > This adds a few more tracepoints that have proven useful when > debugging issues with the FSI bus. > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley > --- > drivers/fsi/fsi-master-gpio.c | 16 --- >

Re: [PATCH 08/14] fsi: master-gpio: Remove "GPIO" prefix on some definitions

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:55, Benjamin Herrenschmidt wrote: > Some definitions are generic to the FSI protocol or any > give master implementation. Rename them to remove the > "GPIO" prefix in preparation for moving them to a common > header. > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by:

Re: [PATCH 10/14] fsi: Move various master definitions to a common header

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:56, Benjamin Herrenschmidt wrote: > This moves the definitions for various protocol details > (message & response codes, delays etc...) out of > fsi-master-gpio.c to fsi-master.h in order to share them > with other master implementations. > > Signed-off-by: Benjamin

Re: [PATCH 07/14] fsi: master-gpio: Remove unused definitions

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:55, Benjamin Herrenschmidt wrote: > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley

Re: [PATCH 09/14] fsi: master-gpio: Add missing release function

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:56, Benjamin Herrenschmidt wrote: > The embedded struct device needs a release function to be > able to successfully remove the driver. > > We remove the devm_gpiod_put() as they are unnecessary > (the resources will be released automatically) and because >

Re: [PATCH 11/14] dt-bindings: fsi: Document binding for the fsi-master-ast-cf "device"

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:56, Benjamin Herrenschmidt wrote: > This isn't per-se a real device, it's a pseudo-device that > represents the use of the Aspeed built-in ColdFire to > implement the FSI protocol by bitbanging the GPIOs instead > of doing it from the ARM core. > > Thus it's a drop-in

Re: [PATCH 13/14] arm: dts: OpenPower Romulus system can use coprocessor for FSI

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:56, Benjamin Herrenschmidt wrote: > Signed-off-by: Benjamin Herrenschmidt I will take this through the ASPEED SoC tree once we've got acks on the bindings. Cheers, Joel > --- > arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 15 +-- > 1 file changed, 13

Re: [PATCH 14/14] arm: dts: OpenPower Palmetto system can use coprocessor for FSI

2018-06-27 Thread Joel Stanley
On 27 June 2018 at 08:56, Benjamin Herrenschmidt wrote: > This switches away from userspace bitbanging to kernel FSI > using the coprocessor. > > Signed-off-by: Benjamin Herrenschmidt As with the other patch, I will take this through the ASPEED SoC tree once we've got acks on the bindings.

Re: [PATCH RESEND 0/3] K2G: mmc: Update mmc dt node to use

2018-06-27 Thread Kishon Vijay Abraham I
Santosh, On Friday 22 June 2018 03:46 PM, Kishon Vijay Abraham I wrote: > Update mmc dt node to use sdhci-omap binding instead of omap_hsmmc > binding. > > I've also updated keystone_defconfig to enable CONFIG_MMC_SDHCI_OMAP. > Everyone who use a custom .config should also enable >

Re: [PATCH] proc: condemn myself to MAINTAINERS

2018-06-27 Thread Joe Perches
On Wed, 2018-06-27 at 18:13 -0700, Andrew Morton wrote: > On Wed, 27 Jun 2018 18:05:35 -0700 Joe Perches wrote: > > > On Wed, 2018-06-27 at 22:48 +0300, Alexey Dobriyan wrote: > > > I know I'll regret it. > > > > This wasn't applied back in February? > > Well I thought it was, but I can't find

[PATCH 4/4] ARM: dts: imx6qdl-zii-rdu2: Populate RAVE SP power button node

2018-06-27 Thread Andrey Smirnov
RAVE SP found on RDU2 implements power button control compatible with the rave-sp-pwrbutton driver. Add a node to make it availible. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc:

[PATCH 2/4] ARM: dts: imx6qdl-zii-rdu2: Populate RAVE SP EEPROM nodes

2018-06-27 Thread Andrey Smirnov
ZII's RDU1s come with two EEPROMs attached to RAVE SP. Add corresponding nodes to make them availible. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH 0/4] RDU1/2 latest supported RAVE SP nodes

2018-06-27 Thread Andrey Smirnov
Shawn: These are patches adding the rest of RAVE SP child nodes covering all the rest of currently supported MFD cells. There's more to be added, once more drivers get accepted upstream. The bindings three drivers mentioned are availible in:

[PATCH 1/4] ARM: dts: imx51-zii-rdu1: Populate RAVE SP EEPROM nodes

2018-06-27 Thread Andrey Smirnov
ZII's RDU1s come with up to 3 EEPROMs attached to RAVE SP. Add corresponding nodes to make them availible. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH 3/4] ARM: dts: imx6qdl-zii-rdu2: Populate RAVE SP backlight node

2018-06-27 Thread Andrey Smirnov
RAVE SP found on RDU2 implements backlight control compatible with the rave-sp-backlight driver. Add a node to make it availible. Cc: Fabio Estevam Cc: Nikita Yushchenko Cc: Lucas Stach Cc: cphe...@gmail.com Cc: Shawn Guo Cc: Rob Herring Cc: Mark Rutland Cc:

Re: [PATCH v10 00/14] Krait clocks + Krait CPUfreq

2018-06-27 Thread Sricharan R
Hi Thierry, On 6/27/2018 3:01 PM, Thierry Escande wrote: > Hi Sricharan, > > On 19/06/2018 15:45, Sricharan R wrote: >> Sricharan R (2): >>    clk: qcom: Add safe switch hook for krait mux clocks >>    dt-bindings: cpufreq: Document operating-points-v2-krait-cpu >> >> Stephen Boyd (12): >>   

<    5   6   7   8   9   10   11   >