Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3785470imm; Mon, 17 Sep 2018 03:14:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2tQE5GYXvhshGeiH3SVld4Zae03czMWlDT7jJr7LKutOffll87cJDhxv2b3mcVU93HK49 X-Received: by 2002:a63:2d87:: with SMTP id t129-v6mr22915285pgt.128.1537179262870; Mon, 17 Sep 2018 03:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537179262; cv=none; d=google.com; s=arc-20160816; b=dMopcw+yllhk/LbOR3Ht/XrfEKv68j7Hgb0cl13QxxAU3Je2RUv8XqF0F/mucQvhRk 6mnsFTKPECUAGVGBmpBY2rE0n2ze87+2xav57lVk1wIRJUtqpmk4vTyBnSfPkcb785Oj f8kO1LIJzox6EnWWmyWrL445zkxjTeghnbthID2seGiY39hoD4sb9q4Rh7WgvgWL9ia3 3Gu5ZtTOfTjDAvZDJSetkLNXXfRlE14JUoyXfZ7QXbsutAEze+lsCN9g6zgLTwSHMfpO J8TX4C2an4udbQzh4bk+Ik0vdN7xoZGLmfPErzIiSoutGsX2v/zpd2G1Ie0pteZKBdpJ /n9A== 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=8kyAdf8szGn5PQYTlNofUKUTstY6jLtrFyQdg57vNfA=; b=kgVD+bPEOG09ab5SdMmJx4qocP4jhQ09JDzxXuOJTOGoBJzXv+iFRg+S0FGjBflJYS X9beIlWb5FI4rITCuGUdk8i03odOEYvIqnc+c7Kl4kXsFtGUlUgmeyhJXmlc5w4YLv3V S1x1jerrUeryLcTMz9rIqYx6hxU3n/RzVAilr97c6CzFZvogEdnXF0JN14IAm0331y1n v6q1Oe0Jn+c319m1j6Q8vTYYtMOAXoe5HGASaLL8a/1UC467kz/Gem6DPiEYKcDkOYjw +jqmtazXcCFzBF12onbOzPSzISwMCqt1DtwKrkp9Op26znmEZwJPEITFKCu/y67QrctG rIUg== 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 a24-v6si11661369pgi.515.2018.09.17.03.14.06; Mon, 17 Sep 2018 03:14:22 -0700 (PDT) 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 S1727176AbeIQPkn (ORCPT + 99 others); Mon, 17 Sep 2018 11:40:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41590 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725757AbeIQPkm (ORCPT ); Mon, 17 Sep 2018 11:40:42 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A6C213082DD4; Mon, 17 Sep 2018 10:13:59 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-56.phx2.redhat.com [10.3.116.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 92B5F17A7C; Mon, 17 Sep 2018 10:13:56 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 36D9541A42; Mon, 17 Sep 2018 12:13:55 +0200 (CEST) Date: Mon, 17 Sep 2018 12:13:55 +0200 From: Gerd Hoffmann To: Zhenyu Wang Cc: Alex Williamson , Kirti Wankhede , intel-gvt-dev@lists.freedesktop.org, open list , kvm@vger.kernel.org Subject: Re: [PATCH 1/2] vfio: add edid api for display (vgpu) devices. Message-ID: <20180917101355.pfk2bbmgdwabcyqc@sirius.home.kraxel.org> References: <20180913054745.6353-1-kraxel@redhat.com> <20180913054745.6353-2-kraxel@redhat.com> <20180913115139.02775316@t450s.home> <20180914122552.3xmepqo7azzmx7ky@sirius.home.kraxel.org> <20180917065154.GI20737@zhen-hp.sh.intel.com> <20180917085033.ttcs3cpznnf3wngd@sirius.home.kraxel.org> <20180917091550.GK20737@zhen-hp.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180917091550.GK20737@zhen-hp.sh.intel.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 17 Sep 2018 10:13:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 05:15:50PM +0800, Zhenyu Wang wrote: > On 2018.09.17 10:50:33 +0200, Gerd Hoffmann wrote: > > > > +#define VFIO_DEVICE_INFO_CAP_EDID 1 > > > > + > > > > +struct vfio_device_info_edid_cap { > > > > + struct vfio_info_cap_header header; > > > > + __u32 max_x; /* Max display height (zero == no limit) */ > > > > + __u32 max_y; /* Max display height (zero == no limit) */ > > > > +}; > > > > > > As current virtual display for Intel vGPU is still emulating against real HW > > > pipeline with same limitations, asked display developers that whether or not > > > specific mode can work might still depend on current or future HW behavior. > > > So could we add some hints on what kind of edid mode vfio device can operate? > > > Some may support arbitrary modes, but some may only support standard modes. > > > > What kind of restrictions do we have here? Really to a fixed list of > > standard modes? > > Restriction is still with HW differences, e.g for skl/kbl with ddi wrpll > within min/max clock range which may generate any required frequency, but > I've been told for bxt there're some gaps in clock range that could be > generated. Ok, handling min/max clock (pixel clock I assume) should be easy. Ranges are more difficuilt ... But shouldn't the guest driver be able to cope with modes which can't be displayed? Monitors don't adjust edid to display driver capabilities either, so the non-working modes are probably simply dropped from the list of monitor modes ... > > Oh, and btw: Seems the resolution restriction (to 1024x768 for the > > smallest vgpu type) seems to not be enforced. Intentional? > > hmm, what do you mean here? Not enforce to have only one mode for vgpu type? > Or can't change to other mode? Using i915-GVTg_V5_8 type. Description says "resolution: 1024x768". The edid data lists 640x480, 800x600, 1024x768. I can set modes higher than 1024x768 though. Can create custom modes (using xrandr --newmode), attach them to the output (xrandr --addmode) and activate them (xrandr --mode). cheers, Gerd