[PATCH 2/2] virtio-console: remove unnecessary kmemdup()

2021-07-31 Thread Xianting Tian
hvc framework will never pass stack memory to the put_chars() function, So the calling of kmemdup() is unnecessary, remove it. Fixes: c4baad5029 ("virtio-console: avoid DMA from stack") Signed-off-by: Xianting Tian --- drivers/char/virtio_console.c | 12 ++-- 1 file changed, 2 insertions

[PATCH 1/2] tty: hvc: pass DMA capable memory to put_chars()

2021-07-31 Thread Xianting Tian
As well known, hvc backend can register its opertions to hvc backend. the opertions contain put_chars(), get_chars() and so on. Some hvc backend may do dma in its opertions. eg, put_chars() of virtio-console. But in the code of hvc framework, it may pass DMA incapable memory to put_chars() under a

Re: [PATCH 2/3] trace: refactor TRACE_IRQFLAGS_SUPPORT in Kconfig

2021-07-31 Thread Vineet Gupta
On 7/30/21 10:22 PM, Masahiro Yamada wrote: > Make architectures select TRACE_IRQFLAGS_SUPPORT instead of > having many defines. > > Signed-off-by: Masahiro Yamada > --- > > arch/arc/Kconfig | 4 +--- > [snip..] Acked-by: Vineet Gupta    #arch/arc

Re: [PATCH v3 31/41] powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE

2021-07-31 Thread Finn Thain
On Sat, 31 Jul 2021, Christophe Leroy wrote: > > > > Stan Johnson contacted me about a regression in mainline that he > > observed on his G3 Powerbooks. Using 'git bisect' we determined that > > this patch was the cause of the regression, i.e. commit 4c0104a83fc3 > > ("powerpc/32: Dismantle EX

Re: Debian SID kernel doesn't boot on PowerBook 3400c

2021-07-31 Thread Stan Johnson
Hi Christophe, On 7/31/21 9:58 AM, Christophe Leroy wrote: > Stan Johnson a écrit : > >> Hello, >> >> The current Debian SID kernel will not boot on a PowerBook 3400c running >> the latest version of Debian SID. If booted using the BootX extension, >> the kernel hangs immediately: >> >> "Welcome

Re: [PATCH v1 4/5] PCI: Adapt all code locations to not use struct pci_dev::driver directly

2021-07-31 Thread Uwe Kleine-König
Hello Boris, On Fri, Jul 30, 2021 at 04:37:31PM -0400, Boris Ostrovsky wrote: > On 7/29/21 4:37 PM, Uwe Kleine-König wrote: > > --- a/drivers/pci/xen-pcifront.c > > +++ b/drivers/pci/xen-pcifront.c > > @@ -599,12 +599,12 @@ static pci_ers_result_t pcifront_common_process(int > > cmd, > > resu

Re: [PATCH v3 31/41] powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE

2021-07-31 Thread Christophe Leroy
Finn Thain a écrit : Hi Christophe, We found that reducing memory with the kernel parameter 'mem=464M' would prevent the crash. Below are Stan's notes from the 'git bisect' run. They include an additional failure mode that might be of interest. We've also observed "Kernel attempted to write

Re: Debian SID kernel doesn't boot on PowerBook 3400c

2021-07-31 Thread Christophe Leroy
Stan Johnson a écrit : Hello, The current Debian SID kernel will not boot on a PowerBook 3400c running the latest version of Debian SID. If booted using the BootX extension, the kernel hangs immediately: "Welcome to Linux, kernel 5.10.0-8-powerpc" If booted from Mac OS, the Mac OS screen han

Re: [PATCH v3 31/41] powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE

2021-07-31 Thread Christophe Leroy
Finn Thain a écrit : Hi Christophe, On Fri, 12 Mar 2021, Christophe Leroy wrote: In order to get more control in exception prolog, dismantle all non standard exception macros, finishing with EXC_XFER_STD and EXC_XFER_LITE and EXC_XFER_TEMPLATE. Also remove transfer_to_handler_full and ret_f

Re: [PATCH 2/3] trace: refactor TRACE_IRQFLAGS_SUPPORT in Kconfig

2021-07-31 Thread Heiko Carstens
On Sat, Jul 31, 2021 at 02:22:32PM +0900, Masahiro Yamada wrote: > Make architectures select TRACE_IRQFLAGS_SUPPORT instead of > having many defines. > > Signed-off-by: Masahiro Yamada > --- ... > arch/s390/Kconfig | 1 + > arch/s390/Kconfig.debug | 3 --- For s390: Acked-by: H

[PATCH 2/3] trace: refactor TRACE_IRQFLAGS_SUPPORT in Kconfig

2021-07-31 Thread Masahiro Yamada
Make architectures select TRACE_IRQFLAGS_SUPPORT instead of having many defines. Signed-off-by: Masahiro Yamada --- arch/Kconfig | 3 +++ arch/arc/Kconfig | 4 +--- arch/arm/Kconfig | 5 + arch/arm64/Kconfig| 4 +--- arch/csky/Kconfig

Re: [PATCH v3 31/41] powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE

2021-07-31 Thread Finn Thain
Hi Christophe, On Fri, 12 Mar 2021, Christophe Leroy wrote: > In order to get more control in exception prolog, dismantle all non > standard exception macros, finishing with EXC_XFER_STD and EXC_XFER_LITE > and EXC_XFER_TEMPLATE. > > Also remove transfer_to_handler_full and ret_from_except and