Re: [PATCH] tty: hvc: don't allocate a buffer for console print on stack

2017-03-20 Thread Jan Dakinevich
> You shouldn't use 'static' data either, that's not always guaranteed to > be DMA-able, right? I naively thought all 'static' data was linked into .data and the section was always kmapped. > What about allocating it dynamically? That's the correct thing to do. Yep, the solution was more

Re: [PATCH] tty: hvc: don't allocate a buffer for console print on stack

2017-03-16 Thread Greg Kroah-Hartman
On Fri, Feb 17, 2017 at 11:42:45PM +0300, Jan Dakinevich wrote: > The buffer is used by virtio console driver as DMA buffer. Since v4.9 > (if VMAP_STACK is enabled) we shouldn't use the stack for DMA. You shouldn't use 'static' data either, that's not always guaranteed to be DMA-able, right? >

[PATCH] tty: hvc: don't allocate a buffer for console print on stack

2017-02-24 Thread Jan Dakinevich
The buffer is used by virtio console driver as DMA buffer. Since v4.9 (if VMAP_STACK is enabled) we shouldn't use the stack for DMA. Signed-off-by: Jan Dakinevich --- drivers/tty/hvc/hvc_console.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git