Re: [PATCH] c6x: switch to NO_BOOTMEM

2018-06-27 Thread Mike Rapoport
(adding proper linux-c6x-dev list, sorry about the noise) On Wed, Jun 27, 2018 at 03:09:20PM +0300, Mike Rapoport wrote: > The c6x is already using memblock and does most of early memory > reservations with it, so it was only a matter of removing the bootmem > initialization and handover of the

Re: [PATCH v9 7/7] kselftests: Add tests for the preemptoff and irqsoff tracers

2018-06-27 Thread Masami Hiramatsu
On Mon, 25 Jun 2018 09:21:02 -0700 Joel Fernandes wrote: > > From: "Joel Fernandes (Google)" > Subject: [PATCH v9.1 7/7] kselftests: Add tests for the preemptoff and irqsoff > tracers > > Here we add unit tests for the preemptoff and irqsoff tracer by using a > kernel module introduced

Re: [PATCH] Revert mm/vmstat.c: fix vmstat_update() preemption BUG

2018-06-27 Thread Steven Rostedt
On Wed, Apr 11, 2018 at 09:07:30PM +0200, Sebastian Andrzej Siewior wrote: > > This already happens: > - vmstat_shepherd() does get_online_cpus() and within this block it does > queue_delayed_work_on(). So this has to wait until cpuhotplug > completed before it can schedule something and then

[PATCH v2 0/4] pci-dra7xx: Enable errata i870 workaround for RC mode

2018-06-27 Thread Vignesh R
Make workaround for errata i870 applicable in Host mode as well(previously it was enabled only for EP mode) as per errata documentation: http://www.ti.com/lit/er/sprz450/sprz450.pdf Tested on DRA72 EVM Changes since v1: Drop IRQ handling rework (will be sent out separately) v1:

[PATCH v5 2/2] nvme: trace: add disk name to tracepoints

2018-06-27 Thread Johannes Thumshirn
Add disk name to tracepoints so we can better distinguish between individual disks in the trace output and admin commands which are represented without a disk name. Signed-off-by: Johannes Thumshirn --- drivers/nvme/host/core.c | 4 ++-- drivers/nvme/host/trace.h | 39

Re: Kernel crash after "mm: initialize pages on demand during boot"

2018-06-27 Thread Pavel Tatashin
It does look similar to what Naoya was seeing. Herton, have you tried applying: http://ozlabs.org/~akpm/mmots/broken-out/x86-e820-put-e820_type_ram-regions-into-memblockreserved.patch Thank you, Pavel On Wed, Jun 27, 2018 at 3:35 AM Michal Hocko wrote: > > This smells like an issue Naoya was

[RFC PATCH v2 0/6] New QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Hello, Atmel SAMA5D2 is equipped with two QSPI interfaces. These interfaces can work as in SPI-compatible mode or use two / four lines to improve communication speed. At the moment there is QSPI driver strongly tied to NOR-flash memory and MTD subsystem. Intention of this change is to provide new

Re: why do we still need bootmem allocator?

2018-06-27 Thread Rob Herring
On Wed, Jun 27, 2018 at 5:27 AM Mike Rapoport wrote: > > Hi, > > On Mon, Jun 25, 2018 at 10:09:41AM -0600, Rob Herring wrote: > > On Mon, Jun 25, 2018 at 8:08 AM Michal Hocko wrote: > > > > > > Hi, > > > I am wondering why do we still keep mm/bootmem.c when most architectures > > > already moved

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-27 Thread Wei Xu
Hi Will, On 2018/6/27 14:28, Will Deacon wrote: > On Wed, Jun 27, 2018 at 02:22:03PM +0100, Wei Xu wrote: >> On 2018/6/26 18:47, Will Deacon wrote: >>> If you look at the __idmap_kpti_put_pgtable_ent_ng asm macro, can you try >>> replacing: >>> >>> dc civac, cur_\()\type\()p >>> >>>

Re: [PATCH] mm,oom: Bring OOM notifier callbacks to outside of OOM killer.

2018-06-27 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 07:52:23PM +0900, Tetsuo Handa wrote: > On 2018/06/27 8:50, Paul E. McKenney wrote: > > On Wed, Jun 27, 2018 at 05:10:48AM +0900, Tetsuo Handa wrote: > >> As far as I can see, > >> > >> - atomic_set(_callback_count, 1); > >> + atomic_inc(_callback_count); > >> > >> should

[PATCH v3 1/2] clk: pxa: export 32kHz PLL

2018-06-27 Thread Robert Jarzmik
This clock is especially used by the RTC driver, so export it so that devicetree users can use it. Signed-off-by: Robert Jarzmik --- Since v2: fix missing parenthesis in clk-pxa25x.c and clk-pxa3xx.c --- drivers/clk/pxa/clk-pxa25x.c | 6 -- drivers/clk/pxa/clk-pxa27x.c | 7

Re: [PATCH v8 2/2] regulator: add QCOM RPMh regulator driver

2018-06-27 Thread Mark Brown
On Tue, Jun 26, 2018 at 11:15:14AM -0700, Doug Anderson wrote: > I think he's still planning on re-shuffling his tree a bit. When he > does this, do you need him to put the RPMh patches somewhere you can > merge into your tree? Well, I *think* there's no actual dependency here since it's a new

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

2018-06-27 Thread Robert Jarzmik
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 clock in the PXA clock tree to make the driver happy and working.

Re: [PATCH 2/5] pinctrl: Add API function pinctrl_gpio_get_direction

2018-06-27 Thread kbuild test robot
Hi Paul, Thank you for the patch! Yet something to improve: [auto build test ERROR on pinctrl/devel] [also build test ERROR on v4.18-rc2 next-20180627] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH 1/4] dt-bindings: power: Add Actions Semi S900 SPS

2018-06-27 Thread Manivannan Sadhasivam
On Wed, Jun 27, 2018 at 03:57:13PM +0100, Daniel Thompson wrote: > On Tue, Jun 26, 2018 at 10:11:17PM +0530, Manivannan Sadhasivam wrote: > > > > diff --git a/include/dt-bindings/power/owl-s900-powergate.h > > > > b/include/dt-bindings/power/owl-s900-powergate.h > > > > new file mode 100644 > > >

Re: [PATCH v3 00/14] ARM: pxa: switch to DMA slave maps

2018-06-27 Thread Robert Jarzmik
Mark Brown writes: > On Mon, Jun 18, 2018 at 09:56:20PM +0200, Robert Jarzmik wrote: > >> I must insist on "Wednesday", as I need to have one last pass from 0-day >> kernel >> checker to be fully covered, and I'd like as well to know which tree the ASoC >> patch will take, ie. if Mark commits

Re: [[LINUX PATCH v10] 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-06-27 Thread Miquel Raynal
Hi Naga, This is not an issue at all but I think [PATCH vX Y/Z] is a preferred and shorter suffix, you can create it automatically by using git format-patch -v X ^.. --cover-letter On Thu, 21 Jun 2018 12:12:31 +0530, Naga Sureshkumar Relli wrote: > Add driver for arm pl353 static

Re: [PATCH] KVM: VMX: modify macro definition 'R' to 'R ' because of gcc-5+

2018-06-27 Thread Radim Krčmář
2018-06-26 20:59+0800, LiuYang: > GCC 5.4.0 enables raw strings by default and they have higher priority > than macros, thus R is interpreted incorrectly. > Fix it by putting a space between macro R and a string literal. > > Signed-off-by: LiuYang > --- This got fixed in 2012 by b188c81f2e1a

[PATCH v2 4/4] ARM: dts: dra7: Fix up unaligned access setting for PCIe EP

2018-06-27 Thread Vignesh R
Bit positions of PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE and PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE in CTRL_CORE_SMA_SW_7 are incorrectly documented in the TRM. In fact, the bit positions are swapped. Update the DT bindings for PCIe EP to reflect the same. Signed-off-by: Vignesh R ---

[PATCH v2 3/4] ARM: dts: dra7: Enable workaround for errata i870 in PCIe host mode

2018-06-27 Thread Vignesh R
Add ti,syscon-unaligned-access property to PCIe RC nodes to set appropriate bits in CTRL_CORE_SMA_SW_7 register to enable workaround for errata i870. Signed-off-by: Vignesh R --- arch/arm/boot/dts/dra7.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi

[PATCH v2 1/4] dt-bindings: PCI: dra7xx: Add bindings for unaligned access in host mode

2018-06-27 Thread Vignesh R
Update device tree binding documentation of TI's dra7xx PCI controller for enabling unaligned mem access as applicable not just in EP mode but in host mode as well. Signed-off-by: Vignesh R Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pci/ti-pci.txt | 5 + 1 file changed,

Re: [PATCH] objtool: Fix GCC 8 cold function processing without -freorder-functions

2018-06-27 Thread Josh Poimboeuf
On Wed, Jun 27, 2018 at 10:35:03AM +0100, Allan Xavier wrote: > Looks good overall, just one comment. > > On 26/06/18 19:44, Josh Poimboeuf wrote: > > + /* > > +* Unfortunately, -fnoreorder-functions puts the child > > +* inside the

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

2018-06-27 Thread Thomas Petazzoni
Hello, On Wed, 27 Jun 2018 17:01:50 +0200, 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

Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-27 Thread Michael Straube
Am 27.06.2018 um 10:33 schrieb Dan Carpenter: On Tue, Jun 26, 2018 at 10:32:09PM +0200, Michael Straube wrote: On 06/26/18 22:17, Joe Perches wrote: On Tue, 2018-06-26 at 21:44 +0200, Michael Straube wrote: On 06/26/18 19:32, Andy Shevchenko wrote: On Tue, Jun 26, 2018 at 11:14 AM, Michael

Re: v4.18-rc1 on droid 4: very bad CPU performance

2018-06-27 Thread Pavel Machek
On Mon 2018-06-25 23:16:04, Tony Lindgren wrote: > * Pavel Machek [180625 09:52]: > > Hi! > > > > > > > V4.18 is slower than it should be. > > > > > > > > > > user@devuan:~$ time cat /dev/urandom | head -c 1000 | bzip2 -9 - > > > > > | wc -c > > > > > 10044291 > > > > > 52.73user

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-27 Thread Wei Xu
Hi James, On 2018/6/27 9:39, James Morse wrote: > Hi Wei, > > On 26/06/18 18:47, Will Deacon wrote: >> On Wed, Jun 27, 2018 at 01:16:44AM +0800, Wei Xu wrote: >>> [0.00] Booting Linux on physical CPU 0x00 [0x480fd010] >>> [0.00] Linux version

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

2018-06-27 Thread Theodore Y. Ts'o
On Tue, Jun 26, 2018 at 07:54:06PM +0800, GaoMing wrote: > for example, 1708 inodes every group,3 block groups, bitmap bytes are > 1708/8=213.5 when the inode bitmap has some errors, e2fsprogs cannot fix it > > Signed-off-by: GaoMing File systems like this should not exist. Can you please

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

2018-06-27 Thread Petr Mladek
It is just a preparation step. The patch does not change the existing behavior. Signed-off-by: Petr Mladek --- kernel/printk/printk.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index

[GIT PULL] ARM: SoC fixes

2018-06-27 Thread Olof Johansson
Hi Linus, The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/armsoc-fixes for you to fetch changes up to

Re: [PATCH] ARM: mvebu: declare asm symbols as character arrays in pmsu.c

2018-06-27 Thread Ethan Tuttle
Hi Gregory. On Tue, Jun 26, 2018 at 11:20 PM, Gregory CLEMENT wrote: > Hi Ethan, > > On mar., juin 19 2018, Ethan Tuttle wrote: > >> With CONFIG_FORTIFY_SOURCE, memcpy uses the declared size of operands to >> detect buffer overflows. If src or dest is declared as a char, attempts to >> copy

[PATCH v5 1/2] nvme: cache struct nvme_ctrl reference to struct nvme_request

2018-06-27 Thread Johannes Thumshirn
From: Sagi Grimberg We will need to reference the controller in the setup and completion time for tracing and future traffic based keep alive support. Signed-off-by: Sagi Grimberg --- Changes to v4: - Move caching from nvme_setup_cmd to .init_request (Keith) --- drivers/nvme/host/core.c |

[PATCH v5 0/2] nvme: add controller id and disk name to tracepoints

2018-06-27 Thread Johannes Thumshirn
Patch one is a preparation patch from Sagi and caches the nvme_ctrl in the nvme_request. This is not only useful for the tracepoints but for further development as well. The second patch adds the controller IDs and if applicable the disk name to the tracepoints so we can distinguish between the

Re: [lkp-robot] [bisect done] ef1433f717 [ 7.049860] BUG: unable to handle kernel NULL pointer dereference at 0000004c

2018-06-27 Thread Kishon Vijay Abraham I
On Wednesday 27 June 2018 03:56 PM, Lorenzo Pieralisi wrote: > On Tue, Jun 26, 2018 at 04:15:01PM -0500, Bjorn Helgaas wrote: >> On Tue, Jun 26, 2018 at 09:10:07AM +0800, kernel test robot wrote: >>> >>> Greetings, >>> >>> 0day kernel testing robot got the below dmesg and the first bad commit

Re: Memory zeroed when made available to user process

2018-06-27 Thread Michal Hocko
On Wed 27-06-18 13:29:05, Richard Weinberger wrote: > On Wed, Jun 27, 2018 at 11:34 AM, Jefferson Carpenter > wrote: > > Is there a way for a user process to mark memory as 'sensitive' or > > 'non-sensitive' when it is allocated? That could allow it not to have to be > > zeroed before being

Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-27 Thread Dan Carpenter
On Wed, Jun 27, 2018 at 02:56:00PM +0200, Michael Straube wrote: > Should I add a thanks line to the commit message: > > Thanks to Dan Carpenter, Joe Perches and Andy Shevchenko. > > Or would that be considered as too much? You can write whatever the heck you want... :P No one cares.

[RFC PATCH v2 6/6] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Atmel SAMA5D2 QuadSPI driver was moved from mtd to spi subsystem, this change is just moving DT-binding documentation. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- Documentation/devicetree/bindings/{mtd => spi}/atmel-quadspi.txt | 0 1 file changed, 0 insertions(+), 0

[RFC PATCH v2 2/6] mtd: spi-nor: atmel-quadspi: Add spi-mem support to atmel-quadspi

2018-06-27 Thread Piotr Bugalski
This patch adds new interface to existing driver. New code is not used yet, it will be enabled later. Changes are prepared in small steps to keep patches readable. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 205

[RFC PATCH v2 4/6] mtd: spi-nor: atmel-quadspi: Remove unused code from atmel-quadspi driver

2018-06-27 Thread Piotr Bugalski
Code used for previous interface is no longer needed. This change just removes obsolete code. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 389 1 file changed, 389 deletions(-) diff --git

[RFC PATCH v2 5/6] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-27 Thread Piotr Bugalski
Kernel contains QSPI driver strongly tied to MTD and nor-flash memory. New spi-mem interface allows usage also other memory types, especially much larger NAND with SPI interface. This driver works as SPI controller and is not related to MTD, however can work with NAND-flash or other peripherals

[RFC PATCH v2 3/6] mtd: spi-nor: atmel-quadspi: Use spi-mem interface for atmel-quadspi driver

2018-06-27 Thread Piotr Bugalski
Previously added spi-mem interface is now used instead of older approach. Suggested-by: Boris Brezillon Signed-off-by: Piotr Bugalski --- drivers/mtd/spi-nor/atmel-quadspi.c | 91 - 1 file changed, 18 insertions(+), 73 deletions(-) diff --git

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-27 Thread Will Deacon
On Wed, Jun 27, 2018 at 02:22:03PM +0100, Wei Xu wrote: > On 2018/6/26 18:47, Will Deacon wrote: > > If you look at the __idmap_kpti_put_pgtable_ent_ng asm macro, can you try > > replacing: > > > > dc civac, cur_\()\type\()p > > > > with: > > > > dc ivac, cur_\()\type\()p > >

[PATCH v2 2/4] pci: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode

2018-06-27 Thread Vignesh R
Errata i870 is applicable in both EP and RC mode. Therefore rename function dra7xx_pcie_ep_unaligned_memaccess(), that implements errata workaround, to dra7xx_pcie_unaligned_memaccess() and call it from a common place. So, that errata workaround is applied for both modes of operation.

Re: [PATCH] stop_machine: Remove cpu swap from stop_two_cpus

2018-06-27 Thread Sodagudi Prasad
On 2018-06-27 00:15, Sebastian Andrzej Siewior wrote: On 2018-06-26 14:28:26 [-0700], Isaac J. Manjarres wrote: Remove CPU ID swapping in stop_two_cpus() so that the source CPU's stopper thread is added to the wake queue last, so that the source CPU's stopper thread is woken up last, ensuring

Re: [PATCH 2/5] pinctrl: Add API function pinctrl_gpio_get_direction

2018-06-27 Thread kbuild test robot
Hi Paul, Thank you for the patch! Yet something to improve: [auto build test ERROR on pinctrl/devel] [also build test ERROR on v4.18-rc2 next-20180627] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH RESEND] clang-format: Set IndentWrappedFunctionNames false

2018-06-27 Thread Miguel Ojeda
On Tue, Jun 26, 2018 at 9:33 PM, Jason Gunthorpe wrote: > On Tue, Jun 26, 2018 at 05:05:40PM +0200, Miguel Ojeda wrote: >> Hi, >> >> On Tue, Jun 26, 2018 at 12:44 AM, Jason Gunthorpe wrote: >> > The true option causes this indenting for functions: >> > >> > static struct something_very_very_long

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

2018-06-27 Thread Petr Mladek
The commit 719f6a7040f1bdaf96 ("printk: Use the main logbuf in NMI when logbuf_lock is available") brought back the possible deadlocks in printk() and NMI. This is rework of the proposed fix, see https://lkml.kernel.org/r/20180606111557.xzs6l3lkvg7lq...@pathway.suse.cz I realized that we could

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

2018-06-27 Thread Petr Mladek
It is just a preparation step. The patch does not change the existing behavior. Signed-off-by: Petr Mladek --- kernel/printk/printk.c | 43 ++- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c

Re: sched/core warning triggers on rcu torture test

2018-06-27 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 12:40:15PM +0200, Frederic Weisbecker wrote: > On Tue, Jun 26, 2018 at 10:48:26AM -0700, Paul E. McKenney wrote: > > On Tue, Jun 26, 2018 at 06:32:55PM +0200, Peter Zijlstra wrote: > > > On Tue, Jun 26, 2018 at 06:16:04PM +0200, Anna-Maria Gleixner wrote: > > > > Hi, > > >

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

2018-06-27 Thread Sergey Senozhatsky
On (06/27/18 23:16), Sergey Senozhatsky wrote: > > Petr Mladek (3): > > printk: Split the code for storing a message into the log buffer > > printk: Create helper function to queue deferred console handling > > printk/nmi: Prevent deadlock when accessing the main log buffer in NMI > > Patch

Re: [PATCH] userns: move user access out of the mutex

2018-06-27 Thread Christian Brauner
On Tue, Jun 26, 2018 at 04:06:45PM +0200, Jann Horn wrote: > On Tue, Jun 26, 2018 at 3:08 PM Christian Brauner > wrote: > > > > On Mon, Jun 25, 2018 at 06:34:19PM +0200, Jann Horn wrote: > > > The old code would hold the userns_state_mutex indefinitely if > > > memdup_user_nul stalled due to e.g.

Applied "regulator: bd71837: Staticize ldo_2_volts" to the regulator tree

2018-06-27 Thread Mark Brown
The patch regulator: bd71837: Staticize ldo_2_volts has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "regulator: bd71837: Simplify bd71837_set_voltage_sel_restricted implementation" to the regulator tree

2018-06-27 Thread Mark Brown
The patch regulator: bd71837: Simplify bd71837_set_voltage_sel_restricted implementation has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree

Re: [PATCH] printk: remove unnecessary kmalloc() from syslog during clear

2018-06-27 Thread Petr Mladek
On Tue 2018-06-26 10:39:59, Steven Rostedt wrote: > On Tue, 26 Jun 2018 14:43:32 +0200 > Petr Mladek wrote: > > > On Mon 2018-06-25 23:44:07, Sergey Senozhatsky wrote: > > > On (06/25/18 10:37), Steven Rostedt wrote: > > > > > > > > Is IMHO rather ugly. > > > > > > Either way works for me.

Re: Kernel crash after "mm: initialize pages on demand during boot"

2018-06-27 Thread Pavel Tatashin
On Wed, Jun 27, 2018 at 10:15 AM Herton R. Krzesinski wrote: > Thanks, I'll try it. It'll probably work since I tried memory_reserve > but "hacking" it at e820__register_nosave_regions, anyway I'll confirm > it here. If it works, please send the new "Reserved but unavailable" value from dmesg: [

[PATCH 2/2] regulator: bd71837: Simplify bd71837_set_voltage_sel_restricted implementation

2018-06-27 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/bd71837-regulator.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/regulator/bd71837-regulator.c b/drivers/regulator/bd71837-regulator.c index 403b45de1262..f57f42ed7160 100644 ---

[PATCH 1/2] regulator: bd71837: Staticize ldo_2_volts

2018-06-27 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/bd71837-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bd71837-regulator.c b/drivers/regulator/bd71837-regulator.c index 6eae4d0432a2..403b45de1262 100644 --- a/drivers/regulator/bd71837-regulator.c

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

2018-06-27 Thread Jan Kara
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 wrote: > [...] > > > Appart from that, do we really care about 32b here? Big DIO, IB users > > > seem to be 64b only AFAIU. > > > > IMO it is a bad habit to leave

Re: [GIT PULL] ARM: uniphier: fixes for v4.18

2018-06-27 Thread Olof Johansson
On Wed, Jun 27, 2018 at 12:51:43PM +0900, Masahiro Yamada wrote: > Hi Olof, > > 2018-06-27 2:42 GMT+09:00 Olof Johansson : > > Hi, > > > > On Mon, Jun 25, 2018 at 11:13:04PM +0900, Masahiro Yamada wrote: > >> Hi Arnd, Olof, > >> > >> Please pull some fixes of ARM UniPhier platform. > >> > >> > >>

[PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr

2018-06-27 Thread Toshi Kani
From: Chintan Pandya The following kernel panic was observed on ARM64 platform due to a stale TLB entry. 1. ioremap with 4K size, a valid pte page table is set. 2. iounmap it, its pte entry is set to 0. 3. ioremap the same address with 2M size, update its pmd entry with a new value. 4.

[PATCH v4 1/3] x86/mm: disable ioremap free page handling on x86-PAE

2018-06-27 Thread Toshi Kani
ioremap() supports pmd mappings on x86-PAE. However, kernel's pmd tables are not shared among processes on x86-PAE. Therefore, any update to sync'd pmd entries need re-syncing. Freeing a pte page also leads to a vmalloc fault and hits the BUG_ON in vmalloc_sync_one(). Disable free page

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: > The commit 719f6a7040f1bdaf96 ("printk: Use the main logbuf in NMI > when logbuf_lock is available") brought back the possible deadlocks > in printk() and NMI. > > This is rework of the proposed fix, see >

[PATCH v4 3/3] x86/mm: add TLB purge to free pmd/pte page interfaces

2018-06-27 Thread Toshi Kani
ioremap() calls pud_free_pmd_page() / pmd_free_pte_page() when it creates a pud / pmd map. The following preconditions are met at their entry. - All pte entries for a target pud/pmd address range have been cleared. - System-wide TLB purges have been peformed for a target pud/pmd address

Re: [PATCH] mm,oom: Bring OOM notifier callbacks to outside of OOM killer.

2018-06-27 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 09:22:07AM +0200, Michal Hocko wrote: > On Tue 26-06-18 10:03:45, Paul E. McKenney wrote: > [...] > > 3. Something else? > > How hard it would be to use a different API than oom notifiers? E.g. a > shrinker which just kicks all the pending callbacks if the reclaim >

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

2018-06-27 Thread Dinh Nguyen
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 GMT+09:00 Boris Brezillon : On Mon, 25 Jun 2018 09:50:18 -0500 Dinh Nguyen

Re: [PATCH 1/4] dt-bindings: power: Add Actions Semi S900 SPS

2018-06-27 Thread Daniel Thompson
On Tue, Jun 26, 2018 at 10:11:17PM +0530, Manivannan Sadhasivam wrote: > > > diff --git a/include/dt-bindings/power/owl-s900-powergate.h > > > b/include/dt-bindings/power/owl-s900-powergate.h > > > new file mode 100644 > > > index ..f1aaf761112b > > > --- /dev/null > > > +++

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

2018-06-27 Thread Jason Gunthorpe
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 wrote: > > [...] > > > > Appart from that, do we really care about 32b here? Big DIO, IB users > > >

Re: [PATCH 1/4] dt-bindings: power: Add Actions Semi S900 SPS

2018-06-27 Thread Andreas Färber
Am 27.06.2018 um 16:57 schrieb Daniel Thompson: > On Tue, Jun 26, 2018 at 10:11:17PM +0530, Manivannan Sadhasivam wrote: >>> Question: Should it still be GPL-2.0+ or the new GPL-2.0-or-later? >> >> I think GPL-2.0+ is fine. > > So... when I saw this I did wonder why one would knowly choose to use

Re: [PATCH 1/2] ARM: dts: da850-lego-ev3: Add Bluetooth nodes

2018-06-27 Thread Sekhar Nori
On Friday 01 June 2018 01:55 AM, David Lechner wrote: > This adds nodes for describing the Bluetooth chip and connections on > LEGO MINDSTORMS EV3 to da850-lego-ev3.dts. > > Signed-off-by: David Lechner Applied for v4.19. Thanks, Sekhar

Re: [PATCH v10 7/7] i2c: fsi: Add bus recovery

2018-06-27 Thread Eddie James
On 06/25/2018 09:38 PM, Wolfram Sang wrote: On Wed, Jun 13, 2018 at 02:36:19PM -0500, Eddie James wrote: Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Eddie James --- drivers/i2c/busses/i2c-fsi.c | 19 +++

Re: Kernel crash after "mm: initialize pages on demand during boot"

2018-06-27 Thread Herton R. Krzesinski
On Wed, Jun 27, 2018 at 09:14:21AM -0400, Pavel Tatashin wrote: > It does look similar to what Naoya was seeing. Herton, have you tried > applying: > > http://ozlabs.org/~akpm/mmots/broken-out/x86-e820-put-e820_type_ram-regions-into-memblockreserved.patch Thanks, I'll try it. It'll probably

[PATCH v4 0/3] fix free pmd/pte page handlings on x86

2018-06-27 Thread Toshi Kani
This series fixes two issues in the x86 ioremap free page handlings for pud/pmd mappings. Patch 01 fixes BUG_ON on x86-PAE reported by Joerg. It disables the free page handling on x86-PAE. Patch 02-03 fixes a possible issue with speculation which can cause stale page-directory cache. - Patch

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

2018-06-27 Thread Petr Mladek
On Wed 2018-06-27 23:16:12, Sergey Senozhatsky wrote: > On (06/27/18 16:08), Petr Mladek wrote: > > The commit 719f6a7040f1bdaf96 ("printk: Use the main logbuf in NMI > > when logbuf_lock is available") brought back the possible deadlocks > > in printk() and NMI. > > > > This is rework of the

Re: Build/qemu test results for v4.18-rc2

2018-06-27 Thread Linus Torvalds
On Tue, Jun 26, 2018 at 8:40 AM Linus Torvalds wrote: > > The problem on x86-64 cross-building to i386 is that the *compiler* is > the same, but the flags are not, and the games the Makefile plays > aren't sufficient. It plays with changing HOSTCC to CC in order to get > he right target compiler,

Re: [PATCH v2 2/2] mips: generic: allow not building DTB in

2018-06-27 Thread Paul Burton
Hi Alexandre, On Tue, Jun 26, 2018 at 04:07:43PM +0200, Alexandre Belloni wrote: > > diff --git a/arch/mips/generic/vmlinux.its.S > > b/arch/mips/generic/vmlinux.its.S > > index 1a08438fd893..9c954f2ae561 100644 > > --- a/arch/mips/generic/vmlinux.its.S > > +++ b/arch/mips/generic/vmlinux.its.S

Re: why do we still need bootmem allocator?

2018-06-27 Thread Mike Rapoport
On Wed, Jun 27, 2018 at 07:33:55AM -0600, Rob Herring wrote: > On Wed, Jun 27, 2018 at 5:27 AM Mike Rapoport wrote: > > > > Hi, > > > > On Mon, Jun 25, 2018 at 10:09:41AM -0600, Rob Herring wrote: > > > On Mon, Jun 25, 2018 at 8:08 AM Michal Hocko wrote: > > > > > > > > Hi, > > > > I am

Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-27 Thread Andy Shevchenko
On Wed, Jun 27, 2018 at 4:11 PM, Dan Carpenter wrote: > On Wed, Jun 27, 2018 at 02:56:00PM +0200, Michael Straube wrote: >> Should I add a thanks line to the commit message: >> >> Thanks to Dan Carpenter, Joe Perches and Andy Shevchenko. >> >> Or would that be considered as too much? > > You

[PATCH v2] x86/kvm/Kconfig: Ensure CRYPTO_DEV_CCP_DD state at minimum matches KVM_AMD

2018-06-27 Thread Janakarajan Natarajan
Prevent a config where KVM_AMD=y and CRYPTO_DEV_CCP_DD=m thereby ensuring that AMD Secure Processor device driver will be built-in when KVM_AMD is also built-in. v1->v2: * Removed usage of 'imply' Kconfig option. * Change patch commit message. Fixes: 505c9e94d832 ("KVM: x86: prefer "depends on"

Re: [PATCH v5 1/2] nvme: cache struct nvme_ctrl reference to struct nvme_request

2018-06-27 Thread James Smart
On 6/27/2018 5:53 AM, Johannes Thumshirn wrote: From: Sagi Grimberg We will need to reference the controller in the setup and completion time for tracing and future traffic based keep alive support. Signed-off-by: Sagi Grimberg --- Changes to v4: - Move caching from nvme_setup_cmd to

Re: [1/3] ARM: dts: imx51-zii-common: create common include dtsi

2018-06-27 Thread Andrey Smirnov
Nikita: Since you are mostly arguing against the suggestions I made to Andrey Gusakov in off-list review, I'll respond. On Wed, Jun 27, 2018 at 12:11 AM Nikita Yushchenko wrote: > > > + i2c_gpio: i2c-gpio { > > + compatible = "i2c-gpio"; > > + pinctrl-names =

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

2018-06-27 Thread Andy Shevchenko
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 for users which would like to have less amount on stuff in kernel. > +#include

Re: [1/3] ARM: dts: imx51-zii-common: create common include dtsi

2018-06-27 Thread Fabio Estevam
On Wed, Jun 27, 2018 at 1:46 PM, Andrey Smirnov wrote: > We are now starting to give Andrey Gusakov conflicting > recommendations. For the sake of moving forward, can we agree that > this and similar comments are relatively minor and defer to the > maintainers to make a call which way to go? >

[PATCH v5 4/8] x86/fsgsbase/64: Use FS/GS base helpers in core dump

2018-06-27 Thread Chang S. Bae
The open coded access is now replaced, that might prevent from using the enhanced FSGSBASE mechanism. Based-on-code-from: Andy Lutomirski Signed-off-by: Chang S. Bae Reviewed-by: Andi Kleen Reviewed-by: Andy Lutomirski Reviewed-by: Thomas Gleixner Cc: H. Peter Anvin Cc: Ingo Molnar Cc:

[PATCH v5 5/8] x86/fsgsbase/64: Factor out load FS/GS segments from __switch_to

2018-06-27 Thread Chang S. Bae
Instead of open coding the calls to load_seg_legacy(), add a load_fsgs() helper to handle fs and gs. When FSGSBASE is enabled, load_fsgs() will be updated. Signed-off-by: Chang S. Bae Reviewed-by: Andi Kleen Reviewed-by: Andy Lutomirski Reviewed-by: Thomas Gleixner Cc: H. Peter Anvin Cc:

[PATCH v5 0/8] x86: infrastructure to enable FSGSBASE

2018-06-27 Thread Chang S. Bae
Given feedbacks from [1], it was suggested to separate two parts and to (re-)submit this patchset first. To facilitate FSGSBASE, Andy's FS/GS base read fix is first ordered, then some helper functions and refactoring work are included. Cleanup for the vDSO initialization is for preparing per-CPU

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

2018-06-27 Thread Jan Kara
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 wrote: > > > [...] > > > > > Appart from

[PATCH v2 04/10] ARM: dts: s5pv210: Add initial DTS for SGH-T959P phone

2018-06-27 Thread Paweł Chmiel
From: Jonathan Bakker This DTS file have initial support Samsung SGH-T959P phone, also known as Samsung Galaxy S 4G or fascinate4g. It belongs to Samsung Aries devices family. Initial version have support for: - sdcard - max8998 pmic and rtc - max17040 fuel gauge - gpio keys - fimd (no panel

[PATCH v2 05/10] dt-bindings: samsung: Add S5PV210 as possible soc in Samsung boards

2018-06-27 Thread Paweł Chmiel
There are Samsung devices, which are not Exynos-based boards, like it's in case of S5PV210. Document this information at beginning of file. Signed-off-by: Paweł Chmiel --- Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 02/10] ARM: dts: s5pv210: Add initial DTS for Samsung Aries based phones

2018-06-27 Thread Paweł Chmiel
This DTS file have initial support Samsung Aries based phones. Initial version have support for: - sdcard - internal memory (present only on non 4g variant) - max8998 pmic and rtc - max17040 fuel gauge - gpio keys - fimd (no panel driver yet) - usb (peripherial mode) - wifi Signed-off-by: Paweł

[PATCH v2 06/10] dt-bindings: samsung: Document bindings for Samsung aries boards

2018-06-27 Thread Paweł Chmiel
Document the binding for Samsung Galaxy S (i9000) phone. Also add binding for whole Samsung Aries devices family (based on S5PV210). Signed-off-by: Paweł Chmiel -- Changes from v1: - Added missing commit msg. -- --- Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt | 2 ++ 1

[PATCH v2 07/10] dt-bindings: samsung: Document bindings for SGH-T959P board

2018-06-27 Thread Paweł Chmiel
From: Jonathan Bakker Document the binding for Samsung Galaxy S Fascinate 4G (SGH-T959P). Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel -- Changes from v1: - Added missing commit msg. -- --- Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt | 1 + 1 file

Re: [PATCH 0/5] pinctrl_gpio_get_direction & ingenic fixes

2018-06-27 Thread Andy Shevchenko
On Wed, Jun 27, 2018 at 2:48 PM, Paul Cercueil wrote: > Hi Linus, > > Here's a set of (rather RFC) patches, to implement > pinctrl_gpio_get_direction(). I did that, because my gpio-ingenic driver > calls pinctrl_gpio_set_direction() within its gpio_chip's .set_direction > callback, but there was

Re: small dmesg regression in kernel 4.17.3

2018-06-27 Thread Andy Shevchenko
+Cc: Erik On Tue, Jun 26, 2018 at 8:57 PM, Toralf Förster wrote: > The attached dmesg contains non printable chars 0x01 33 around "ACPI BIOS > Error (bug): Could not resolve" which is a new issue compared to the dmesg of > 4.17.2 > > System is a stable hardened Gentoo Linux at a ThinkPad

Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave

2018-06-27 Thread Jarkko Sakkinen
On Tue, 2018-06-26 at 11:01 -0400, Nathaniel McCallum wrote: > On Tue, Jun 26, 2018 at 4:44 AM Jarkko Sakkinen > wrote: > > > > On Mon, 2018-06-25 at 08:45 -0700, Andy Lutomirski wrote: > > > I'm personally rather strongly in favor of the vastly simpler model in > > > which we first merge SGX

[PATCH] ASoC: dpcm: don't merge format from invalid codec dai

2018-06-27 Thread Jerome Brunet
When merging codec formats, dpcm_runtime_base_format() should skip the codecs which are not supporting the current stream direction. At the moment, if a BE link has more than one codec, and only one of these codecs has no capture DAI, it becomes impossible to start a capture stream because the

Re: [PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr

2018-06-27 Thread Will Deacon
Hi Toshi, On Wed, Jun 27, 2018 at 08:13:47AM -0600, Toshi Kani wrote: > From: Chintan Pandya > > The following kernel panic was observed on ARM64 platform due to a stale > TLB entry. > > 1. ioremap with 4K size, a valid pte page table is set. > 2. iounmap it, its pte entry is set to 0. > 3.

Re: [PATCH tip/core/rcu 2/2] rcu: Make expedited GPs handle CPU 0 being offline

2018-06-27 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 10:42:01AM +0800, Boqun Feng wrote: > On Tue, Jun 26, 2018 at 12:27:47PM -0700, Paul E. McKenney wrote: > > On Tue, Jun 26, 2018 at 07:46:52PM +0800, Boqun Feng wrote: > > > On Tue, Jun 26, 2018 at 06:44:47PM +0800, Boqun Feng wrote: > > > > On Tue, Jun 26, 2018 at

Re: [GIT PULL] printk for 4.18-rc3

2018-06-27 Thread Linus Torvalds
On Tue, Jun 26, 2018 at 7:13 AM Petr Mladek wrote: > > please pull one revert from > > git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk > tags/printk-for-4.18 That tag doesn't actually contain any revert. Linus

Re: [PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr

2018-06-27 Thread Kani, Toshi
On Wed, 2018-06-27 at 16:56 +0100, Will Deacon wrote: > Hi Toshi, > > On Wed, Jun 27, 2018 at 08:13:47AM -0600, Toshi Kani wrote: > > From: Chintan Pandya > > > > The following kernel panic was observed on ARM64 platform due to a stale > > TLB entry. > > > > 1. ioremap with 4K size, a valid

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

2018-06-27 Thread Keith Busch
On Wed, Jun 27, 2018 at 02:53:24PM +0200, Johannes Thumshirn wrote: > TP_fast_assign( > - __entry->qid = qid; > + __assign_str(name, disk_name); > + __entry->ctrl_id = nvme_req(req)->ctrl->cntlid; > + __entry->qid =

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

2018-06-27 Thread Andy Shevchenko
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 access the device's configuration space. There's problem > for current

  1   2   3   4   5   6   7   8   9   10   >