Re: [PATCH v3 4/4] drm/qxl: Use simple encoder

2020-02-27 Thread Thomas Zimmermann
Hi Sam Am 27.02.20 um 21:45 schrieb Sam Ravnborg: > Hi Thomas. > > On Tue, Feb 25, 2020 at 02:10:55PM +0100, Thomas Zimmermann wrote: >> The qxl driver uses an empty implementation for its encoder. Replace >> the code with the generic simple encoder. >> >> v2: >> * rebase onto new simple-enc

Re: [PATCH 1/2] mm: move force_dma_unencrypted() to mem_encrypt.h

2020-02-27 Thread David Gibson
On Tue, Feb 25, 2020 at 07:08:02PM +0100, Cornelia Huck wrote: > On Mon, 24 Feb 2020 19:49:53 +0100 > Halil Pasic wrote: > > > On Mon, 24 Feb 2020 14:33:14 +1100 > > David Gibson wrote: > > > > > On Fri, Feb 21, 2020 at 07:07:02PM +0100, Halil Pasic wrote: > > > > On Fri, 21 Feb 2020 10:48:15

[PATCH v11 10/11] x86/paravirt: Adapt assembly for PIE support

2020-02-27 Thread Thomas Garnier
If PIE is enabled, switch the paravirt assembly constraints to be compatible. The %c/i constrains generate smaller code so is kept by default. Signed-off-by: Thomas Garnier Acked-by: Juergen Gross --- arch/x86/include/asm/paravirt_types.h | 32 +++ 1 file changed, 28 ins

[PATCH v11 00/11] x86: PIE support to extend KASLR randomization

2020-02-27 Thread Thomas Garnier
/wakeup_64.S | 31 ++- kernel/head_64.S| 15 +++-- kernel/relocate_kernel_64.S |2 power/hibernate_asm_64.S|4 - 24 files changed, 268 insertions(+), 182 deletions(-) Patchset is based on next-20200227

[PATCH] drm/bochs: Remove vga write

2020-02-27 Thread Alistair Francis
The QEMU model for the Bochs display has no VGA memory section at offset 0x400 [1]. By writing to this register Linux can create a write to unassigned memory which depending on machine and architecture can result in a store fault. I don't see any reference to this address at OSDev [2] or in the Bo

Re: [PATCH 09/51] drm/cirrus: Use drmm_add_final_kfree

2020-02-27 Thread Sam Ravnborg
On Thu, Feb 27, 2020 at 07:14:40PM +0100, Daniel Vetter wrote: > With this we can drop the final kfree from the release function. > > I also noticed that cirrus forgot to call drm_dev_fini(). > > v2: Don't call kfree(cirrus) after we've handed overship of that to > drm_device and the drmm_ stuff.

Re: [PATCH v3 4/4] drm/qxl: Use simple encoder

2020-02-27 Thread Sam Ravnborg
Hi Thomas. On Tue, Feb 25, 2020 at 02:10:55PM +0100, Thomas Zimmermann wrote: > The qxl driver uses an empty implementation for its encoder. Replace > the code with the generic simple encoder. > > v2: > * rebase onto new simple-encoder interface > > Signed-off-by: Thomas Zimmermann > Acke

Re: [PATCH v3 3/4] drm/mgag200: Use simple encoder

2020-02-27 Thread Sam Ravnborg
On Tue, Feb 25, 2020 at 02:10:54PM +0100, Thomas Zimmermann wrote: > The mgag200 driver uses an empty implementation for its encoder. Replace > the code with the generic simple encoder. > > v3: > * init pre-allocated encoder with drm_simple_encoder_init() > v2: > * rebase onto new simp

Re: [PATCH v3 1/4] drm/simple-kms: Add drm_simple_encoder_{init, create}()

2020-02-27 Thread Sam Ravnborg
On Tue, Feb 25, 2020 at 02:10:52PM +0100, Thomas Zimmermann wrote: > This patch makes the internal encoder implementation of the simple > KMS helpers available to drivers. > > These simple-encoder helpers initialize an encoder with an empty > implementation. This covers the requirements of most of

Re: [PATCH net] vsock: fix potential deadlock in transport->release()

2020-02-27 Thread David Miller
From: Stefano Garzarella Date: Wed, 26 Feb 2020 11:58:18 +0100 > Some transports (hyperv, virtio) acquire the sock lock during the > .release() callback. > > In the vsock_stream_connect() we call vsock_assign_transport(); if > the socket was previously assigned to another transport, the > vsk->t

[PATCH 28/51] drm/bochs: Drop explicit drm_mode_config_cleanup

2020-02-27 Thread Daniel Vetter
Instead rely on the automatic clean, for which we just need to check that drm_mode_config_init succeeded. To avoid an inversion in the cleanup we also have to move the dev_private allocation over to drmm_kzalloc. This is made possible by a preceeding patch which added a drmm_ cleanup action to drm

[PATCH 09/51] drm/cirrus: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. I also noticed that cirrus forgot to call drm_dev_fini(). v2: Don't call kfree(cirrus) after we've handed overship of that to drm_device and the drmm_ stuff. Signed-off-by: Daniel Vetter Cc: Dave Airlie Cc: Gerd Hoffmann Cc: Dan

[PATCH 29/51] drm/cirrus: Drop explicit drm_mode_config_cleanup call

2020-02-27 Thread Daniel Vetter
We can even delete the drm_driver.release hook now! This is made possible by a preceeding patch which added a drmm_ cleanup action to drm_mode_config_init(), hence all we need to do to ensure that drm_mode_config_cleanup() is run on final drm_device cleanup is check the new error code for _init().

[PATCH 30/51] drm/cirrus: Fully embrace devm_

2020-02-27 Thread Daniel Vetter
With the drm_device lifetime fun cleaned up there's nothing in the way anymore to use devm_ for everything hw releated. Do it, and in the process, throw out the entire onion unwinding. Signed-off-by: Daniel Vetter Cc: Dave Airlie Cc: Gerd Hoffmann Cc: Daniel Vetter Cc: "Noralf Trønnes" Cc: Em

[PATCH 07/51] drm/qxl: Use drmm_add_final_kfree

2020-02-27 Thread Daniel Vetter
With this we can drop the final kfree from the release function. Signed-off-by: Daniel Vetter Cc: Dave Airlie Cc: Gerd Hoffmann Cc: virtualization@lists.linux-foundation.org Cc: spice-de...@lists.freedesktop.org --- drivers/gpu/drm/qxl/qxl_drv.c | 2 -- drivers/gpu/drm/qxl/qxl_kms.c | 2 ++ 2

Re: [PATCH net] vsock: fix potential deadlock in transport->release()

2020-02-27 Thread Stefan Hajnoczi
On Wed, Feb 26, 2020 at 11:58:18AM +0100, Stefano Garzarella wrote: > Some transports (hyperv, virtio) acquire the sock lock during the > .release() callback. > > In the vsock_stream_connect() we call vsock_assign_transport(); if > the socket was previously assigned to another transport, the > vsk