Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-14 Thread Haibo Xu (Arm Technology China)
On 2019/3/14 18:51, Sudeep Holla wrote: > On Wed, Mar 13, 2019 at 01:03:18AM +, Haibo Xu (Arm Technology China) > wrote: > [...] > >> Since ptrace() system call do have so many request type, I'm not sure >> whether the test cases have covered all of that. But here we'd better make >> sure the

Re: [PATCH] crypto: vmx - fix copy-paste error in CTR mode

2019-03-14 Thread Daniel Axtens
Eric Biggers writes: > Hi Daniel, > > On Fri, Mar 15, 2019 at 03:24:35PM +1100, Daniel Axtens wrote: >> Hi Eric, >> >> >> The original assembly imported from OpenSSL has two copy-paste >> >> errors in handling CTR mode. When dealing with a 2 or 3 block tail, >> >> the code branches to the CBC

Re: [PATCH 5/5] ocxl: Remove some unused exported symbols

2019-03-14 Thread Andrew Donnellan
On 15/3/19 3:49 pm, Andrew Donnellan wrote: On 13/3/19 3:07 pm, Alastair D'Silva wrote: From: Alastair D'Silva Remove some unused exported symbols. Signed-off-by: Alastair D'Silva See comments on v1 Also a couple of sparse warnings at

Re: Disable kcov for slb routines.

2019-03-14 Thread Mahesh Jagannath Salgaonkar
On 3/14/19 5:13 PM, Michael Ellerman wrote: > On Mon, 2019-03-04 at 08:25:51 UTC, Mahesh J Salgaonkar wrote: >> From: Mahesh Salgaonkar >> >> The kcov instrumentation inside SLB routines causes duplicate SLB entries >> to be added resulting into SLB multihit machine checks. >> Disable kcov

Re: [PATCH] crypto: vmx - fix copy-paste error in CTR mode

2019-03-14 Thread Eric Biggers
Hi Daniel, On Fri, Mar 15, 2019 at 03:24:35PM +1100, Daniel Axtens wrote: > Hi Eric, > > >> The original assembly imported from OpenSSL has two copy-paste > >> errors in handling CTR mode. When dealing with a 2 or 3 block tail, > >> the code branches to the CBC decryption exit path, rather than

Re: [PATCH] crypto: vmx - fix copy-paste error in CTR mode

2019-03-14 Thread Eric Biggers
Hi Daniel, On Fri, Mar 15, 2019 at 01:09:01PM +1100, Daniel Axtens wrote: > The original assembly imported from OpenSSL has two copy-paste > errors in handling CTR mode. When dealing with a 2 or 3 block tail, > the code branches to the CBC decryption exit path, rather than to > the CTR exit path.

[PATCH 00/38] VFS: Convert trivial filesystems and more

2019-03-14 Thread David Howells
Hi Al, Here's a set of patches that: (1) Provides a convenience member in struct fs_context that is OR'd into sb->s_iflags by sget_fc(). (2) Provides a convenience vfs_init_pseudo_fs_context() helper function for doing most of the work in mounting a pseudo filesystem. (3)

Re: [PATCH 5/5] ocxl: Remove some unused exported symbols

2019-03-14 Thread Andrew Donnellan
On 13/3/19 3:07 pm, Alastair D'Silva wrote: From: Alastair D'Silva Remove some unused exported symbols. Signed-off-by: Alastair D'Silva See comments on v1 --- drivers/misc/ocxl/config.c| 2 -- drivers/misc/ocxl/ocxl_internal.h | 23 +++

Re: [PATCH v2 06/16] KVM: PPC: Book3S HV: XIVE: add controls for the EQ configuration

2019-03-14 Thread David Gibson
On Thu, Mar 14, 2019 at 08:11:17AM +0100, Cédric Le Goater wrote: > On 3/14/19 3:32 AM, David Gibson wrote: > > On Wed, Mar 13, 2019 at 10:40:19AM +0100, Cédric Le Goater wrote: > >> On 2/26/19 6:24 AM, Paul Mackerras wrote: > >>> On Fri, Feb 22, 2019 at 12:28:30PM +0100, Cédric Le Goater wrote: >

Re: [PATCH] crypto: vmx - fix copy-paste error in CTR mode

2019-03-14 Thread Daniel Axtens
Hi Eric, >> The original assembly imported from OpenSSL has two copy-paste >> errors in handling CTR mode. When dealing with a 2 or 3 block tail, >> the code branches to the CBC decryption exit path, rather than to >> the CTR exit path. > > So does this need to be fixed in OpenSSL too? Yes, I'm

Re: [PATCH 1/7] ocxl: Provide global MMIO accessors for external drivers

2019-03-14 Thread Andrew Donnellan
On 13/3/19 3:15 pm, Alastair D'Silva wrote: From: Alastair D'Silva External drivers that communicate via OpenCAPI will need to make MMIO calls to interact with the devices. Signed-off-by: Alastair D'Silva Reviewed-by: Greg Kurz Acked-by: Andrew Donnellan ---

Re: [PATCH 4/7] ocxl: Don't pass pci_dev around

2019-03-14 Thread Andrew Donnellan
On 13/3/19 3:15 pm, Alastair D'Silva wrote: From: Alastair D'Silva This data is already available in a struct Signed-off-by: Alastair D'Silva This is a good idea. Acked-by: Andrew Donnellan --- drivers/misc/ocxl/core.c | 38 +- 1 file changed, 21

Re: [PATCH v6 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-14 Thread Aneesh Kumar K.V
On 3/14/19 7:22 PM, Alexandre Ghiti wrote: On 03/14/2019 02:17 PM, Aneesh Kumar K.V wrote: On 3/14/19 5:13 PM, Alexandre Ghiti wrote: On 03/14/2019 06:52 AM, Aneesh Kumar K.V wrote: Alexandre Ghiti writes: Thanks for noticing Aneesh. I can't find a better solution than bringing back

[PATCH] crypto: vmx - fix copy-paste error in CTR mode

2019-03-14 Thread Daniel Axtens
The original assembly imported from OpenSSL has two copy-paste errors in handling CTR mode. When dealing with a 2 or 3 block tail, the code branches to the CBC decryption exit path, rather than to the CTR exit path. This leads to corruption of the IV, which leads to subsequent blocks being

Re: BUG: p8_aes_ctr randomly returns wrong results

2019-03-14 Thread Daniel Axtens
Hi Ondrej, > When I run 'rmmod vmx_crypto' before running the reproducer, I get > only one (correct) checksum, so this is definitely a bug in the > driver. Other ciphers (cbc(aes), xts(aes)) are not affected, even > though the glue code is very similar. That leads me to believe the > problem is

[PATCH] powerpc/powernv: Add mmap to opal export sysfs nodes

2019-03-14 Thread Jordan Niethe
The sysfs nodes created under /opal/exports/ do not currently support mmap. Skiboot trace buffers are not yet added to this location but this is a suitable for them to be exported to. Adding mmap support makes using these trace buffers more convenient. The state in the header of the trace buffer

Re: [PATCH 13/38] vfs: Convert cxl to fs_context

2019-03-14 Thread Andrew Donnellan
On 15/3/19 3:10 am, David Howells wrote: Signed-off-by: David Howells cc: Frederic Barrat cc: Andrew Donnellan cc: linuxppc-dev@lists.ozlabs.org Acked-by: Andrew Donnellan --- drivers/misc/cxl/api.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v2 10/45] drivers: tty: serial: zs: use devm_* functions

2019-03-14 Thread Greg KH
On Thu, Mar 14, 2019 at 11:33:40PM +0100, Enrico Weigelt, metux IT consult wrote: > Use the safer devm versions of memory mapping functions. What is "safer" about them? > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/tty/serial/zs.c | 16 ++-- > 1 file

[PATCH v2 25/45] drivers: tty: serial: pxa: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index 4932b67..9512a9f 100644 ---

[PATCH v2 45/45] drivers: tty: serial: mux: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/mux.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index 00ce31e..cd08f0f

[PATCH v2 15/45] drivers: tty: serial: uartlite: use dev_err() instead of printk()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c

[PATCH v2 31/45] drivers: tty: serial: amba-pl011: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/amba-pl011.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index

[PATCH v2 39/45] drivers: tty: serial: efm32-uart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/efm32-uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/efm32-uart.c b/drivers/tty/serial/efm32-uart.c index

[PATCH v2 30/45] drivers: tty: serial: serial_ks8695: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. --- drivers/tty/serial/serial_ks8695.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/serial_ks8695.c b/drivers/tty/serial/serial_ks8695.c index b461d79..f901eea 100644 ---

[PATCH v2 41/45] drivers: tty: serial: timuart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/men_z135_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/men_z135_uart.c b/drivers/tty/serial/men_z135_uart.c index

[PATCH v2 44/45] drivers: tty: serial: pnx8xxx_uart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/pnx8xxx_uart.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/pnx8xxx_uart.c b/drivers/tty/serial/pnx8xxx_uart.c

[PATCH v2 32/45] drivers: tty: serial: atmel_serial: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/atmel_serial.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c

[PATCH v2 34/45] drivers: tty: serial: sb1250-duart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/sb1250-duart.c | 42 +-- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/drivers/tty/serial/sb1250-duart.c

[PATCH v2 37/45] drivers: tty: serial: apbuart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/apbuart.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/apbuart.c b/drivers/tty/serial/apbuart.c index

[PATCH v2 38/45] drivers: tty: serial: samsung: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/samsung.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index a49cf15..e0bab87

[PATCH v2 09/45] drivers: tty: serial: 8250_mtk: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/8250/8250_mtk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 26/45] drivers: tty: serial: dz: use dev_err() instead of printk()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/dz.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c

[PATCH v2 17/45] drivers: tty: serial: timuart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/timbuart.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c index

[PATCH v2 20/45] drivers: tty: serial: msm_serial: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/msm_serial.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index

[PATCH v2 19/45] drivers: tty: serial: sh-sci: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/sh-sci.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index

[PATCH v2 27/45] drivers: tty: serial: dz: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/dz.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c index

[PATCH v2 23/45] drivers: tty: serial: amba-pl010: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/amba-pl010.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/amba-pl010.c b/drivers/tty/serial/amba-pl010.c index

[PATCH v2 08/45] drivers: tty: serial: 8250_lpc18xx: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/8250/8250_lpc18xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 03/45] drivers: tty: serial: 8250_ingenic: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/8250/8250_ingenic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 11/45] drivers: tty: serial: zs: use dev_err() instead of printk()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/zs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/zs.c b/drivers/tty/serial/zs.c

[PATCH v2 04/45] drivers: tty: serial: amba-pl010: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/amba-pl010.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 33/45] drivers: tty: serial: sb1250-duart: use dev_err() instead of printk()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/sb1250-duart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/sb1250-duart.c

[PATCH v2 43/45] drivers: tty: serial: pmac_zilog: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/pmac_zilog.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/pmac_zilog.c b/drivers/tty/serial/pmac_zilog.c

[PATCH v2 22/45] drivers: tty: serial: altera_uart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. The iounmap() call isn't necessary anymore, as devm will clean up. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/altera_uart.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v2 42/45] drivers: tty: serial: sa1100: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/sa1100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/sa1100.c b/drivers/tty/serial/sa1100.c index a399772b..3aa20a2

[PATCH v2 40/45] drivers: tty: serial: mpc52xx_uart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/mpc52xx_uart.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/mpc52xx_uart.c

[PATCH v2 36/45] drivers: tty: serial: pic32_uart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/pic32_uart.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/pic32_uart.c b/drivers/tty/serial/pic32_uart.c index

[PATCH v2 35/45] drivers: tty: serial: lpc32xx_hs: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/lpc32xx_hs.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/lpc32xx_hs.c b/drivers/tty/serial/lpc32xx_hs.c

[PATCH v2 28/45] drivers: tty: serial: netx-serial: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/netx-serial.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/netx-serial.c b/drivers/tty/serial/netx-serial.c index

[PATCH v2 29/45] drivers: tty: serial: serial_txx9: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/serial_txx9.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/serial_txx9.c

[PATCH v2 06/45] drivers: tty: serial: samsung: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 07/45] drivers: tty: serial: 8250_uniphier: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/8250/8250_uniphier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 21/45] drivers: tty: serial: altera_jtaguart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/altera_jtaguart.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/altera_jtaguart.c

[PATCH v2 16/45] drivers: tty: serial: uartlite: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/uartlite.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index

[PATCH v2 24/45] drivers: tty: serial: mxs-auart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/mxs-auart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index 27235a5..0a43c69

[PATCH v2 14/45] drivers: tty: serial: vr41xx_siu: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/vr41xx_siu.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/vr41xx_siu.c b/drivers/tty/serial/vr41xx_siu.c index

[PATCH v2 18/45] drivers: tty: serial: sirfsoc_uart: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/sirfsoc_uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c index

[PATCH v2 05/45] drivers: tty: serial: sirfsoc_uart: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/sirfsoc_uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 13/45] drivers: tty: serial: 21285: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/21285.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/21285.c b/drivers/tty/serial/21285.c index 32b3acf..4ce2de2 100644

[PATCH v2 10/45] drivers: tty: serial: zs: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/zs.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/zs.c b/drivers/tty/serial/zs.c index b03d3e4..0b1ec2f

[PATCH v2 02/45] drivers: tty: serial: 8250_dw: use devm_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
Instead of fetching out data from a struct resource for passing it to devm_ioremap(), directly use devm_ioremap_resource() Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 12/45] drivers: tty: serial: xilinx_uartps: use devm_* functions

2019-03-14 Thread Enrico Weigelt, metux IT consult
Use the safer devm versions of memory mapping functions. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/xilinx_uartps.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.c

[PATCH v2 01/45] drivers: tty: serial: 8250_bcm2835aux: use devm_platform_ioremap_resource()

2019-03-14 Thread Enrico Weigelt, metux IT consult
For the common platform_get_resource()+devm_platform_ioremap() combination, there is a helper, so use it and make the code a bit more compact. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/tty/serial/8250/8250_bcm2835aux.c | 12 1 file changed, 4 insertions(+), 8

serial driver cleanups v2

2019-03-14 Thread Enrico Weigelt, metux IT consult
Hello folks, here's v2 of my serial cleanups queue - part I: essentially using helpers to code more compact and switching to devm_*() functions for mmio management. Part II will be about moving the mmio range from mapbase and mapsize (which are used quite inconsistently) to a struct resource

Re: [PATCH 4/7] ocxl: Don't pass pci_dev around

2019-03-14 Thread Frederic Barrat
Le 13/03/2019 à 05:15, Alastair D'Silva a écrit : From: Alastair D'Silva This data is already available in a struct Signed-off-by: Alastair D'Silva --- good idea Acked-by: Frederic Barrat drivers/misc/ocxl/core.c | 38 +- 1 file changed, 21

Re: [PATCH 3/7] ocxl: Split pci.c

2019-03-14 Thread Frederic Barrat
Le 13/03/2019 à 05:15, Alastair D'Silva a écrit : From: Alastair D'Silva In preparation for making core code available for external drivers, move the core code out of pci.c and into core.c Signed-off-by: Alastair D'Silva --- Acked-by: Frederic Barrat drivers/misc/ocxl/Makefile

Re: [PATCH 5/7] ocxl: Create a clear delineation between ocxl backend & frontend

2019-03-14 Thread Frederic Barrat
diff --git a/drivers/misc/ocxl/file.c b/drivers/misc/ocxl/file.c index 865b3d176431..424bb0b40afb 100644 --- a/drivers/misc/ocxl/file.c +++ b/drivers/misc/ocxl/file.c -int ocxl_register_afu(struct ocxl_afu *afu) +int ocxl_file_register_afu(struct ocxl_afu *afu) { int minor; +

[PATCH 13/38] vfs: Convert cxl to fs_context

2019-03-14 Thread David Howells
Signed-off-by: David Howells cc: Frederic Barrat cc: Andrew Donnellan cc: linuxppc-dev@lists.ozlabs.org --- drivers/misc/cxl/api.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index 750470ef2049..395e9a88e6ba

Re: [PATCH v2 2/2] crash_core, vmcoreinfo: Append 'MAX_PHYSMEM_BITS' to vmcoreinfo

2019-03-14 Thread Bhupesh Sharma
Hi Kazu, On 03/13/2019 01:17 AM, Kazuhito Hagio wrote: Hi Bhupesh, -Original Message- Right now user-space tools like 'makedumpfile' and 'crash' need to rely on a best-guess method of determining value of 'MAX_PHYSMEM_BITS' supported by underlying kernel. This value is used in

Re: [PATCH v6 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-14 Thread Alexandre Ghiti
On 03/14/2019 02:17 PM, Aneesh Kumar K.V wrote: On 3/14/19 5:13 PM, Alexandre Ghiti wrote: On 03/14/2019 06:52 AM, Aneesh Kumar K.V wrote: Alexandre Ghiti writes: On systems without CONTIG_ALLOC activated but that support gigantic pages, boottime reserved gigantic pages can not be freed

Re: [PATCH] powerpc/mm/64: Document the sizes of/sizes mapped by Pxx_INDEX_SIZE

2019-03-14 Thread Aneesh Kumar K.V
Michael Ellerman writes: > Add comments describing the size in bytes of the various levels of the > page table tree, and the size of the virtual address space mapped by > each level, to make it clear what the sizes are without having to also > look up other definitions. > > The code that

Re: [PATCH v6 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-14 Thread Aneesh Kumar K.V
On 3/14/19 5:13 PM, Alexandre Ghiti wrote: On 03/14/2019 06:52 AM, Aneesh Kumar K.V wrote: Alexandre Ghiti writes: On systems without CONTIG_ALLOC activated but that support gigantic pages, boottime reserved gigantic pages can not be freed at all. This patch simply enables the possibility

Re: [PATCH] powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038

2019-03-14 Thread Michael Ellerman
Arnd Bergmann writes: > On Wed, Mar 13, 2019 at 2:14 PM Michael Ellerman wrote: > >> That causes CLOCK_MONOTONIC to jump ahead by ~4 billion seconds which >> it is not meant to do. Worse, if the time is then set back before the >> Y2038 boundary CLOCK_MONOTONIC will jump backward. >> >> We can

[PATCH] powerpc/mm/64: Document the sizes of/sizes mapped by Pxx_INDEX_SIZE

2019-03-14 Thread Michael Ellerman
Add comments describing the size in bytes of the various levels of the page table tree, and the size of the virtual address space mapped by each level, to make it clear what the sizes are without having to also look up other definitions. The code that calculates the sizes actually uses

Re: [PATCH v6 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-14 Thread Alexandre Ghiti
On 03/14/2019 06:52 AM, Aneesh Kumar K.V wrote: Alexandre Ghiti writes: On systems without CONTIG_ALLOC activated but that support gigantic pages, boottime reserved gigantic pages can not be freed at all. This patch simply enables the possibility to hand back those pages to memory allocator.

Re: powerpc/64s: Include header file to fix a warning

2019-03-14 Thread Michael Ellerman
On Tue, 2019-03-12 at 20:18:23 UTC, Mathieu Malaterre wrote: > Make sure to include to provide the following prototype: > hv_nmi_check_nonrecoverable. > > Remove the following warning treated as error (W=1): > > arch/powerpc/kernel/traps.c:393:6: error: no previous prototype for >

Re: [kernel] powerpc/powernv: Fix compile without CONFIG_TRACEPOINTS

2019-03-14 Thread Michael Ellerman
On Tue, 2019-03-12 at 05:07:12 UTC, Alexey Kardashevskiy wrote: > The functions returns s64 but the return statement is missing. > This adds the missing return statement. > > Signed-off-by: Alexey Kardashevskiy Applied to powerpc next, thanks.

Re: powerpc: config: Sync skiroot defconfig

2019-03-14 Thread Michael Ellerman
On Tue, 2019-03-05 at 04:46:31 UTC, Joel Stanley wrote: > This updates the skiroot defconfig with the version from the OpenPower > firmwre build tree. > > Important changes are the addition of QED and E1000E ethernet drivers. > > Signed-off-by: Joel Stanley Applied to powerpc next, thanks.

Re: Disable kcov for slb routines.

2019-03-14 Thread Michael Ellerman
On Mon, 2019-03-04 at 08:25:51 UTC, Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > The kcov instrumentation inside SLB routines causes duplicate SLB entries > to be added resulting into SLB multihit machine checks. > Disable kcov instrumentation on slb.o > > Signed-off-by: Mahesh

Re: powerpc: remove dead code in head_fsl_booke.S

2019-03-14 Thread Michael Ellerman
On Thu, 2019-02-28 at 08:31:21 UTC, Jason Yan wrote: > This code is dead. Just remove it. > > Signed-off-by: Jason Yan > Reviewed-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e585f51c4ee00046175ace52ca87ea47 cheers

Re: [v2] powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration

2019-03-14 Thread Michael Ellerman
On Fri, 2019-02-22 at 17:25:31 UTC, "Aneesh Kumar K.V" wrote: > We added runtime allocation of 16G pages in > commit 4ae279c2c96a ("powerpc/mm/hugetlb: Allow runtime allocation of 16G.") > That was done to enable 16G allocation on PowerNV and KVM config. In case of > KVM > config, we mostly would

Re: [PATCH 3/6] x86: clean up _TIF_SYSCALL_EMU handling using ptrace_syscall_enter hook

2019-03-14 Thread Sudeep Holla
On Wed, Mar 13, 2019 at 01:03:18AM +, Haibo Xu (Arm Technology China) wrote: [...] > Since ptrace() system call do have so many request type, I'm not sure > whether the test cases have covered all of that. But here we'd better make > sure the PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP

Re: [PATCH 5/5] ocxl: Remove some unused exported symbols

2019-03-14 Thread Greg Kurz
On Thu, 14 Mar 2019 13:23:21 +1100 "Alastair D'Silva" wrote: > On Wed, 2019-03-13 at 10:10 +0100, Greg Kurz wrote: > > On Wed, 13 Mar 2019 15:07:01 +1100 > > "Alastair D'Silva" wrote: > > > > > From: Alastair D'Silva > > > > > > Remove some unused exported symbols. > > > > > >

Re: [PATCH v2 06/16] KVM: PPC: Book3S HV: XIVE: add controls for the EQ configuration

2019-03-14 Thread Cédric Le Goater
On 3/14/19 3:32 AM, David Gibson wrote: > On Wed, Mar 13, 2019 at 10:40:19AM +0100, Cédric Le Goater wrote: >> On 2/26/19 6:24 AM, Paul Mackerras wrote: >>> On Fri, Feb 22, 2019 at 12:28:30PM +0100, Cédric Le Goater wrote: These controls will be used by the H_INT_SET_QUEUE_CONFIG and

Re: [PATCH v2 10/16] KVM: PPC: Book3S HV: XIVE: add get/set accessors for the VP XIVE state

2019-03-14 Thread Cédric Le Goater
On 3/14/19 4:09 AM, David Gibson wrote: > On Wed, Mar 13, 2019 at 02:19:13PM +0100, Cédric Le Goater wrote: >> On 2/25/19 4:31 AM, David Gibson wrote: >>> On Fri, Feb 22, 2019 at 12:28:34PM +0100, Cédric Le Goater wrote: At a VCPU level, the state of the thread interrupt management