Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10581772imu; Thu, 6 Dec 2018 03:36:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/UW3mpHzD9HfkxN8F64KNb4cvIRgt97b6bJlV8H7ECb3W9looSgdRGI+221rgTyyFGmaN1+ X-Received: by 2002:a17:902:8f83:: with SMTP id z3mr27201864plo.328.1544096199654; Thu, 06 Dec 2018 03:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544096199; cv=none; d=google.com; s=arc-20160816; b=ZPSI6qsEn57n4yEmngan2ovqQViM9N+DHDaDB8bG4ByrTquzLcZauMr2I/24AqPi2A 8nR92QF6bXUzSwlIIb7kdFA3NKP05oRqygJEqjqI0d+Icp7qpRXL5uslK2FwayXke66Y Ix0aOT51Inlinco5NQQFz2hUYwanFx/cECdwlwgaV4ViO4G/V1BjQyI06XQCiMG6mHWF BnSomY72S0t2207lZLrOicePBtX4OiZyiZokm3rp1KmTIFqQAQnUQ3zpBxG13vQEZ40+ ckMr1V/65ZBqj4j2knfl3h/NjjO6DSQSANxhLw+yvB56OEyiH3D9GpS94uYBFZOCvY86 FhDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=g+hD12KEBx3qUKEJVjf9VSpCNzrMJ7F3ksCQ41vLSYM=; b=j/6kYyn7FQ2ZQOF89HwFv/nNGvxDZEwflx8SLi/u7wrCHeMIJFzccxt3ATodMVKqLo IkGRe7IoNSc9PRwaj55ptsfoqnocR4uSeB8w/0BeQnNF/yK8LvVvRnXKXKELJtd+ZOn4 xwgR8e05FfJ/lQemwjpwdDSvUKxs1DtMQaYCrDzqAqtJj7SScZtUK+iahGRyejZuaRqM nXWJZuLnmCCWAaB3wE9WJfjV3FRpLANl0irja3AL16XzzKxiEBtPRsjIHculcwKGTn2G qLbeswOqzumSsz4Vj9Sx1vUsiAncMpkwrGq6UyvGxu1/mGiXeY3eO3bCD4YvDn2hK7AV GSEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si83903plc.88.2018.12.06.03.36.09; Thu, 06 Dec 2018 03:36:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729432AbeLFLeS (ORCPT + 99 others); Thu, 6 Dec 2018 06:34:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35100 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729193AbeLFLeS (ORCPT ); Thu, 6 Dec 2018 06:34:18 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CF1BE8A15; Thu, 6 Dec 2018 11:34:17 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E8775E1B0; Thu, 6 Dec 2018 11:34:17 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 83D2E99BD; Thu, 6 Dec 2018 12:34:16 +0100 (CET) Date: Thu, 6 Dec 2018 12:34:16 +0100 From: Gerd Hoffmann To: Frediano Ziglio Cc: dri-devel@lists.freedesktop.org, David Airlie , David Airlie , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" Subject: Re: [Spice-devel] [PATCH 1/3] drm/qxl: allow both PRIV and VRAM placement for QXL_GEM_DOMAIN_SURFACE Message-ID: <20181206113416.yydgi7ro47vwgf2d@sirius.home.kraxel.org> References: <20181206104638.23330-1-kraxel@redhat.com> <20181206104638.23330-2-kraxel@redhat.com> <1897496108.48579647.1544093758850.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1897496108.48579647.1544093758850.JavaMail.zimbra@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 06 Dec 2018 11:34:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2018 at 05:55:58AM -0500, Frediano Ziglio wrote: > > > 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 > > I remember these kind of changes in the past made migration > fails. I proposed similar patches years ago and they were rejected > for these reasons. Pointer? > Why now they are safe? Well, you have to be careful what object you are allocating. Surfaces can be in both PRIV and VRAM. Everything else (qxl commands, monitors config, ...) must be in VRAM. > Looks like we are improving QXL, so that means we are actively working > on it. Well, I'm just trying make qxl behave better with wayland. > Should we not then thinking about moving feature in the proper > places (like spice-server for atomic mode setting instead of implementin > work around) ?? Main advantage is that it doesn't need qxl device changes, so it works on old hosts too. But, yes, we can consider to also modernize spice protocol and qxl device. cheers, Gerd