Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4472318imd; Tue, 30 Oct 2018 02:30:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5eliMDZuoLxYV5uxl2pu48kK3aN9tgbMKtdDTvFXi4WBlMVQ0rLdBlZ3xfHrxvqLrnne15z X-Received: by 2002:a62:f715:: with SMTP id h21-v6mr2074262pfi.169.1540891807418; Tue, 30 Oct 2018 02:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540891807; cv=none; d=google.com; s=arc-20160816; b=sVGiPET4iiXMygdVB04NEjPoWP1yHX9k+FW6S/Q8flMwi6WM5u1how4Tj6qiuxvegW qIm8CCreSns8LyO175ZiqXIEBhq8u1g3bz4GfYCsmFC5wiHyIA9qv6qGgTOzqh15dnNW AjJ7U6BxnFIIQy+wHto5doeXaOXbdRnVVvlIcO9em2G839hRQPOZRA/nz3OzIZOihVZx YmWu+hHeiIzjaNdaRvcwaUZUE0VmGuW/hIJuhNe9fs6NjbJXmdRxL+yRyFaXmuWUwBBU jSMXwsdwEsXS7nRd0aSd/NjiUNBEF+67p+WOLYBLcNWkJKrmozJX/tspr9vsYVF3rVaJ pZMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=0viBsHCGR4P67Si37VGe92KosCLbb0jbDYbAqSzDR6U=; b=t1T2msjbDY53BXaI+YOkVZiuZSpvLc0E6cIsQlEm5g9lDn7RxdxstSH7O6qjb4QoZ+ ME+YAPTwNe0MB8HLvno67F/JU7ir7CAyqy8H0i5EuMq610V+LF393f5CIJWmrEYcMVYo wDlsnq257G23b0TwbhBlhVqXsTEJzpoAu5qe2Xeksqv2y0wLhHI0fhZqdoNbB1B5K9IL sTdAkMknokH0eKzooOMSYbOt8GridNHjKtTvuNFpa/K5JSYHS/MlJdRXQuXx8Cl5HlES md0nCsTTOhkVPiefWYNmzcR7xqme1wcsHcf5iRueqJJ3HLR58lNxQ2IZYh7n1gbfDWUQ Kukw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si22817031pgm.222.2018.10.30.02.29.51; Tue, 30 Oct 2018 02:30:07 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727518AbeJ3SUQ (ORCPT + 99 others); Tue, 30 Oct 2018 14:20:16 -0400 Received: from mga11.intel.com ([192.55.52.93]:40858 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbeJ3SUQ (ORCPT ); Tue, 30 Oct 2018 14:20:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 02:27:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,444,1534834800"; d="scan'208";a="103722239" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.72.61]) by fmsmga001.fm.intel.com with ESMTP; 30 Oct 2018 02:27:33 -0700 From: Jani Nikula To: Daniel Vetter , Gerd Hoffmann Cc: David Airlie , David Airlie , open list , dri-devel@lists.freedesktop.org, "open list\:DRM DRIVER FOR BOCHS VIRTUAL GPU" Subject: Re: [PATCH v3] drm/bochs: add edid support. In-Reply-To: <20181030090632.GJ21967@phenom.ffwll.local> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20181029134507.7775-1-kraxel@redhat.com> <87in1kejgj.fsf@intel.com> <20181029200520.jfnmvbkng2er5qbc@sirius.home.kraxel.org> <20181030090632.GJ21967@phenom.ffwll.local> Date: Tue, 30 Oct 2018 11:28:24 +0200 Message-ID: <87y3afokav.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Oct 2018, Daniel Vetter wrote: > On Mon, Oct 29, 2018 at 09:05:20PM +0100, Gerd Hoffmann wrote: >> On Mon, Oct 29, 2018 at 07:44:28PM +0200, Jani Nikula wrote: >> > On Mon, 29 Oct 2018, Gerd Hoffmann wrote: >> > > Recent qemu (latest master branch, upcoming 3.1 release) got support >> > > for EDID data. This patch adds guest driver support. >> > > >> > > EDID support in qemu is not (yet) enabled by default, so please use >> > > 'qemu -device VGA,edid=on' for testing. >> > >> > Any chance of making this use drm_get_edid() (requires an i2c_adapter) >> > or at least drm_do_get_edid()? >> >> I'll have a look at using drm_do_get_edid(). drm_get_edid() will not >> fly as there is no i2c adapter in the first place. > > Hm, not sure that makes sense. drm_do_get_edid is to handle the real-world > flakiness of sinks (it's where all the retry logic resides), if you don't > have a i2c_adapater (because the hw has some magic "give me an edid" > block). For virtual hw we hopefully don't randomly drop bits on the floor > between the guest and host. Imo totally fine as-is. > > E.g. we also don't feed the VBT edid through drm_do_get_edid either. But nowadays we do handle the debugfs EDID override and the EDID firmware loading in drm_do_get_edid(), so using that gives you those features. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center