Re: [Spice-devel] [spice-gtk v1 2/2] option: Remove --spice-color-depth

2018-12-12 Thread Christophe Fergeau
On Tue, Dec 11, 2018 at 01:48:15PM +0100, Victor Toso wrote: > From: Victor Toso > > As this is NOP from previous patch and has been deprecated since v0.34 When --spice-color-depth is used, it might be nicer for now to add an error message that this feature has been removed because it was

Re: [Spice-devel] [spice-gtk v1 1/2] Deprecate “color-depth” properties

2018-12-12 Thread Christophe Fergeau
On Tue, Dec 11, 2018 at 01:48:14PM +0100, Victor Toso wrote: > From: Victor Toso > > With commit 1a980f3712 we deprecated some command line options. The > color-depth one is the only one which is not used for testing/debug > purposes. > > The intention of this option is to set guest's video

Re: [Spice-devel] [PATCH spice-common] Update --enable-celt051 help string

2018-12-12 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Dec 12, 2018 at 09:18:49AM +, Frediano Ziglio wrote: > Use AS_HELP_STRING in order to fix indentation of configure --help. > Default is now auto, as the "[enable_celt051="auto"]" parameter. > > Signed-off-by: Frediano Ziglio > --- > m4/spice-deps.m4 |

Re: [Spice-devel] [PATCH 7/7] drm: Split out drm_probe_helper.h

2018-12-12 Thread Daniel Vetter
On Mon, Dec 10, 2018 at 02:40:25PM +0100, Benjamin Gaignard wrote: > Le lun. 10 déc. 2018 à 12:10, Benjamin Gaignard > a écrit : > > > > Le lun. 10 déc. 2018 à 11:24, Thierry Reding > > a écrit : > > > > > > On Mon, Dec 10, 2018 at 11:11:33AM +0100, Daniel Vetter wrote: > > > > Having the probe

Re: [Spice-devel] [spice-gtk v2 6/7] channel-main: clipboard grab: don't fail silently

2018-12-12 Thread Victor Toso
Hi, On Wed, Dec 12, 2018 at 06:43:04AM -0500, Frediano Ziglio wrote: > > Documentation saying that this feature rely on agent seems to be > > lacking. e.g: grep for 'agent' on SpiceGtkSession > > > > > As spice-gtk is a public library with an API speaking of "Spice > > > client" is not a good

[Spice-devel] [PATCH v2 17/18] drm/qxl: use generic fbdev emulation

2018-12-12 Thread Gerd Hoffmann
Switch qxl over to the new generic fbdev emulation. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 7 --- drivers/gpu/drm/qxl/qxl_drv.c | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c

[Spice-devel] [PATCH v2 15/18] drm/qxl: use qxl_num_crtc directly

2018-12-12 Thread Gerd Hoffmann
qdev->monitors_config->max_allowed is effectively set by the qxl.num_heads module parameter, stored in the qxl_num_crtc variable. Lets get rid of the indirection and use the variable qxl_num_crtc directly. The kernel doesn't need to dereference pointers each time it needs the value, and when

[Spice-devel] [PATCH v2 02/18] drm/qxl: drop unused qxl_fb_virtual_address

2018-12-12 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 38c5a8b1df..7eabf4a9ed 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h +++ b/drivers/gpu/drm/qxl/qxl_drv.h @@

[Spice-devel] [PATCH v2 13/18] drm/qxl: use shadow bo directly

2018-12-12 Thread Gerd Hoffmann
Pass the shadow bo to qxl_io_create_primary() instead of expecting qxl_io_create_primary to check bo->shadow. Set is_primary flag on the shadow bo. Move the is_primary tracking into qxl_io_create_primary() and qxl_io_destroy_primary() functions. That simplifies primary surface tracking and the

[Spice-devel] [PATCH v2 01/18] drm/qxl: drop ttm_mem_reg arg from qxl_hw_surface_alloc()

2018-12-12 Thread Gerd Hoffmann
Not used, is always NULL. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h| 3 +-- drivers/gpu/drm/qxl/qxl_cmd.c| 14 ++ drivers/gpu/drm/qxl/qxl_object.c | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h

[Spice-devel] [PATCH v2 12/18] drm/qxl: track primary bo

2018-12-12 Thread Gerd Hoffmann
Track which bo is used as primary surface. With that in place we don't need the primary_created flag any more, we can just check the primary bo pointer instead. Also verify we don't already have a primary surface in qxl_io_create_primary(). Signed-off-by: Gerd Hoffmann ---

[Spice-devel] [PATCH v2 18/18] drm/qxl: remove dead qxl fbdev emulation code

2018-12-12 Thread Gerd Hoffmann
Lovely diffstat, thanks to the new generic fbdev emulation. drm/qxl/Makefile |2 drm/qxl/qxl_draw.c | 232 drm/qxl/qxl_drv.h | 21 --- drm/qxl/qxl_fb.c | 300 - Signed-off-by: Gerd Hoffmann

[Spice-devel] [PATCH v2 04/18] drm/qxl: change the way slot is detected

2018-12-12 Thread Gerd Hoffmann
From: Frediano Ziglio Instead of relaying on surface type use the actual placement. This allow to have different placement for a single type of surface. Signed-off-by: Frediano Ziglio [ kraxel: rebased, adapted to upstream changes ] Signed-off-by: Gerd Hoffmann ---

[Spice-devel] [PATCH v2 10/18] drm/qxl: move qxl_primary_apply_cursor to correct place

2018-12-12 Thread Gerd Hoffmann
The cursor must be set again after creating the primary surface. Also drop the error message. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c

[Spice-devel] [PATCH v2 06/18] drm/qxl: use separate offset spaces for the two slots / ttm memory types.

2018-12-12 Thread Gerd Hoffmann
Without that ttm offsets are not unique, they can refer to objects in both VRAM and PRIV memory (aka main and surfaces slot). One of those "why things didn't blow up without this" moments. Probably offset conflicts are rare enough by pure luck. Signed-off-by: Gerd Hoffmann ---

[Spice-devel] [PATCH v2 16/18] drm/qxl: implement prime kmap/kunmap

2018-12-12 Thread Gerd Hoffmann
Generic fbdev emulation needs this. Also: We must keep track of the number of mappings now, so we don't unmap early in case two users want a kmap of the same bo. Add a sanity check to destroy callback to make sure kmap/kunmap is balanced. Signed-off-by: Gerd Hoffmann ---

[Spice-devel] [PATCH v2 05/18] drm/qxl: drop unused fields from struct qxl_device

2018-12-12 Thread Gerd Hoffmann
slot_id_bits and slot_gen_bits can be read directly from qxlrom instead. va_slot_mask is never used anywhere. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 3 --- drivers/gpu/drm/qxl/qxl_kms.c | 10 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git

[Spice-devel] [PATCH v2 14/18] drm/qxl: cover all crtcs in shadow bo.

2018-12-12 Thread Gerd Hoffmann
The qxl device supports only a single active framebuffer ("primary surface" in spice terminology). In multihead configurations are handled by defining rectangles within the primary surface for each head/crtc. Userspace which uses the qxl ioctl interface (xorg qxl driver) is aware of this

[Spice-devel] [PATCH v2 09/18] drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects

2018-12-12 Thread Gerd Hoffmann
dumb buffers are used as qxl surfaces, so allocate them as QXL_GEM_DOMAIN_SURFACE. Should usually be allocated in PRIV ttm domain then, so this reduces VRAM memory pressure. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_dumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Spice-devel] [PATCH v2 07/18] drm/qxl: allow both PRIV and VRAM placement for QXL_GEM_DOMAIN_SURFACE

2018-12-12 Thread Gerd Hoffmann
qxl surfaces (used for framebuffers and gem objects) can live in both VRAM and PRIV ttm domains. Update placement setup to include both. Put PRIV first in the list so it is preferred, so VRAM will have more room for objects which must be allocated there. Signed-off-by: Gerd Hoffmann ---

[Spice-devel] [PATCH v2 11/18] drm/qxl: drop unused offset parameter from qxl_io_create_primary()

2018-12-12 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 1 - drivers/gpu/drm/qxl/qxl_cmd.c | 7 +++ drivers/gpu/drm/qxl/qxl_display.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index

[Spice-devel] [PATCH v2 08/18] drm/qxl: use QXL_GEM_DOMAIN_SURFACE for shadow bo.

2018-12-12 Thread Gerd Hoffmann
The shadow bo is used as qxl surface, so allocate it as QXL_GEM_DOMAIN_SURFACE. Should usually be allocated in PRIV ttm domain then, so this reduces VRAM memory pressure. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Spice-devel] [PATCH v2 03/18] drm/qxl: simplify slot management

2018-12-12 Thread Gerd Hoffmann
Drop pointless indirection, remove the mem_slots array and index variables, drop dynamic allocation. Store memslots in qxl_device instead. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 15 + drivers/gpu/drm/qxl/qxl_kms.c | 72

Re: [Spice-devel] [spice-gtk v2 6/7] channel-main: clipboard grab: don't fail silently

2018-12-12 Thread Frediano Ziglio
> Hi, > > On Mon, Dec 10, 2018 at 08:39:46AM -0500, Frediano Ziglio wrote: > > > On Mon, Dec 10, 2018 at 07:42:35AM -0500, Frediano Ziglio wrote: > > > > > > > > > > From: Victor Toso > > > > > > > > > > Spice client should listen to SpiceMainChannel::agent-connected > > > > > notification and

Re: [Spice-devel] [spice-gtk v2 2/7] channel-main: clipboard request: wakeup only when needed

2018-12-12 Thread Victor Toso
Hi, On Tue, Dec 11, 2018 at 07:04:10PM +0100, Jakub Janku wrote: > Hi, > > On Mon, Dec 10, 2018 at 12:03 PM Victor Toso wrote: > > > > From: Victor Toso > > > > This patch makes agent_clipboard_request() to return true only when > > the message request to the agent is successfully queued to be

[Spice-devel] [PATCH spice-common 1/3 v2] Integrate recorder library

2018-12-12 Thread Frediano Ziglio
Allow to use recorder library. See https://github.com/c3d/recorder for details. The main usage will be to collect statistics while the programs will run. By default the recorder will be disabled at compile time. The idea of the usage in SPICE is to collect data while the program run. Using current

[Spice-devel] [PATCH spice-server 3/3 v2] Trace streaming device data using recorder

2018-12-12 Thread Frediano Ziglio
Trace when data is received from the guest and when is sent to the client. Signed-off-by: Frediano Ziglio --- server/red-stream-device.c | 6 ++ server/stream-channel.c| 5 + 2 files changed, 11 insertions(+) diff --git a/server/red-stream-device.c b/server/red-stream-device.c

[Spice-devel] [PATCH spice-server 2/3 v2] Allows to enable recorder integration

2018-12-12 Thread Frediano Ziglio
recorder library will be used to collect some statistics during development. Signed-off-by: Frediano Ziglio --- configure.ac | 1 + meson_options.txt| 5 + subprojects/spice-common | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac

[Spice-devel] [PATCH spice-common] Update --enable-celt051 help string

2018-12-12 Thread Frediano Ziglio
Use AS_HELP_STRING in order to fix indentation of configure --help. Default is now auto, as the "[enable_celt051="auto"]" parameter. Signed-off-by: Frediano Ziglio --- m4/spice-deps.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4