Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp611019imm; Fri, 5 Oct 2018 08:55:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ldQqPjQU/lfS2A+WWvq8ar4arm4T4A2LGYBfR/VK831smat3nF4k0CTTgPbTTNNN2oRUA X-Received: by 2002:a17:902:b7cb:: with SMTP id v11-v6mr12286657plz.79.1538754949642; Fri, 05 Oct 2018 08:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538754949; cv=none; d=google.com; s=arc-20160816; b=soo8yOue21W50Ug/gJJgL/bhId09erCLUbhUKB2HE03z/5mZaWAjEEww/CDBBelT1e 44mHzReQKxEZq9fFNbolyRQ+Z+g16iaM9/nJmArCeh8pdzttZAYFbE1HcmzE0q3uEB5t gQeA/pO54UELWrC7c3SspSTPivpetGXRwqaavB+yiDJe4QYIsHIQwrJ9SHOvUtxVc0Bh KZnaCIqemJKwwr5vQQOAGNEHM7wMc8EmkGWWUbzIJM8643iRnxTf0h05U8XcpohJjuHn TpevSpt/rAM77oBtvhZV1y8dZ7h5+pxvnRDbwECHEQrPNyT3cylLFCm/OcpJW5oFluoW fqIA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=u6G/iGFMSMrskzvXa6MCSWx8ui9fQZ+ey49rV6wMaXI=; b=mVmDUC4y8TDOmSkvsh/Ndhd73WfJvukZTVVvBNQAXffd8VIfJNFMUNbjJdGAEob14V DkI+0h7HT8D+LGHu0le+5eXglhoFwilW/BKq1wyOQFfhDK6tltB7nmGXKXLCVSKkbJER TEzXWuly+TCF0nDFtAJC61ruU1WbYFz2kKus1NNNziPNwQ8dQwXaoKPpLe4dMd+SrstZ NXhYvHc43RkzoDU7/+BSYNgWXP4Wg9JZGrK8rTNZLjDTGwi5nAhgBZUnOwd3u25ueALa z1NyfdJgZhgEvajBRUzo6GyaCUB1THBQoliihKEFIFdnCX1+RanDAdzd53XHkWmmdn+f cv8A== 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 1-v6si9561587plt.148.2018.10.05.08.55.33; Fri, 05 Oct 2018 08:55:49 -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 S1728872AbeJEWyY (ORCPT + 99 others); Fri, 5 Oct 2018 18:54:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62794 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727572AbeJEWyY (ORCPT ); Fri, 5 Oct 2018 18:54:24 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD8DBC0B1B2C; Fri, 5 Oct 2018 15:55:06 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-29.ams2.redhat.com [10.36.116.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1FDCE825EA; Fri, 5 Oct 2018 15:55:06 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 131F04F279; Fri, 5 Oct 2018 17:55:05 +0200 (CEST) Date: Fri, 5 Oct 2018 17:55:05 +0200 From: Gerd Hoffmann To: Christophe de Dinechin Cc: Daniel Vetter , kvm@vger.kernel.org, "Michael S. Tsirkin" , David Airlie , open list , Jason Wang , virtio-dev@redhat.com, dri-devel@lists.freedesktop.org, "open list:VIRTIO GPU DRIVER" Subject: Re: [PATCH v2] virtio-gpu: add VIRTIO_GPU_F_EDID feature Message-ID: <20181005155505.phmi65hvu2rkulkm@sirius.home.kraxel.org> References: <20181005125154.19824-1-kraxel@redhat.com> <1BA83F18-87E5-4B01-A2D9-01777078B637@redhat.com> <20181005144127.GE31561@phenom.ffwll.local> <2CB183E2-B7ED-481C-9899-CA908558D39F@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2CB183E2-B7ED-481C-9899-CA908558D39F@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 05 Oct 2018 15:55:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > >>> +/* VIRTIO_GPU_RESP_OK_EDID */ > >>> +struct virtio_gpu_resp_edid { > >>> + struct virtio_gpu_ctrl_hdr hdr; > >>> + __le32 scanout; > >>> + __le32 size; > >>> + __u8 edid[1024]; > >> > >> Wouldn’t it be enough to stick to EDID 2.0 (256 bytes)? > >> > >> If not, maybe add comment to explain why you chose 1024. > > > > EDID in the wild can be up to 512 bytes. > > Does this return a physical EDID? I thought it would be made-up by virtio-gpu. Well, edid has extensions, so it can become pretty large in theory, and I've figured it would be a good idea to leave some room just in case. It should be a rather infrequent operation, so the unused buffer space should not hurt much. Yes, it will be a edid generated by qemu. The current generator code will use at most 256 bytes. cheers, Gerd