Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5370802ybg; Tue, 22 Oct 2019 02:07:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0Voj5Ka0LzBh8GDDvErtPwn4Y0XpMzui2LiSf7ciRA64wGWfJY00Ur7cOkPKkQFpWFpBA X-Received: by 2002:a50:cbcd:: with SMTP id l13mr29651988edi.18.1571735264183; Tue, 22 Oct 2019 02:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571735264; cv=none; d=google.com; s=arc-20160816; b=vN5b/LikJ3zqytNV92+MjrMn98fS69bjHzFtmx1cC386dzOLXT5yWjuwfwzjV34Rjb 5YLI9Yy7KaoAC5CpqqPPAGQXX801AiHB7SEfxxW61g5QSf5pqGQqufh+CKkLQs6rYe6x XNTE3itZ4rz0EnU0yUfyWGqNDtT1ZWuw/A2a9rZvYv3/E/7bUatGm1G6CCH4DAPkYRhF Gxq6Fi7x+tpRvrdUUQMqaWzCymG4xlcPgQXH1hh7zffxurQEn513z/mFnZHVZQgOKXmk FEci3VbLnf3c71pP/ProDX1RA1kcRSDKrvWQXklHDtXlq9jbx31SCXcz9Nb/6eVrp/Uo u4bQ== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=i9cWg6hkC3Jwd63HaaPFghAt5dBBQDhYdlHJZBLH9+s=; b=zzpqlfM70bsIVsS/rU6R9HCXUPqyemcG2a2eZp2lCvrBCgSaDTw22KfzG5jjgcaSog tHmH7lEqoEDsjXKq5ZgbNUmOnBREBoaqADp3GB9rbqIj0dVdKn629hjAuVslPEY9uNFM DS4Nv33g3BTKlPPK+eCW8yP0UdgFcFQU3/06ZWsqdrtRQcT9FVMWWKuZ0MO9PvuyVTxa JtjJagomHVscLiGQD9gJ2i/IczwqaSJhYaTibyFrHiDI/qCpUk+WK+HQhiCiMJysHP7v my4Mx6nhY6UkAsV2PpZsfwz1mA5q3hROCit+GqEZECyNLYau1X+Djg7WnT0o23JP+fny U7ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=lKVMMF8g; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci21si10484832ejb.320.2019.10.22.02.07.19; Tue, 22 Oct 2019 02:07:44 -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; dkim=fail header.i=@ffwll.ch header.s=google header.b=lKVMMF8g; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388458AbfJVJFk (ORCPT + 99 others); Tue, 22 Oct 2019 05:05:40 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46023 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbfJVJFj (ORCPT ); Tue, 22 Oct 2019 05:05:39 -0400 Received: by mail-wr1-f67.google.com with SMTP id q13so12123802wrs.12 for ; Tue, 22 Oct 2019 02:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=i9cWg6hkC3Jwd63HaaPFghAt5dBBQDhYdlHJZBLH9+s=; b=lKVMMF8g8YiYTjlh2fqJFDY3PXwKTV+YIsCC2A+Y7rv0/syyGNnigyxwTKYIJjrBgK +SydfOo9H8S9CQJnwAGQRgvNvyWYVdxsGV0uvnJa2h22JPjrjwPocmjxVAHK3w663hHQ bI7kCLc9VTBs/oElUMSqxYs7bHKplYJbhethI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=i9cWg6hkC3Jwd63HaaPFghAt5dBBQDhYdlHJZBLH9+s=; b=YIoO3F1nD1ppGbsLJVl2wUHMy4tzN5JA/w22VpQs2mG+S2gXqP1xHnpZjiHAijUiJE o5YxLTL1MYBxKD8gxNzfaEt+Rrua87YFUAslrK9+87sYTsDxHgi2F/Ja2qLDrCjuL1f8 tqArsYVTeaU591mBR38bndpF69WRPTlPEn49jT+JBX0RlurjS3Vc46/YxboEflLZvRHW 21ZfynZXW548jFM31mzVS0UwL8fSLvrcK5/URePovZOkkYm4SYE2gjuiheN/DheFyPY2 qMk7DBpYMF5dkJzEZfNJif2p0sPGrVJ/ZCdofLM90nAIRMqkOWWtv/VSljAQsXK537+q KSXw== X-Gm-Message-State: APjAAAXIHTiZuo+p1kNgTnx8ZK46niHfkN5/B63gBVCFvVtk8IuFeuVV Q70EUegeU+mED3uKuEF/SANfuA== X-Received: by 2002:adf:f4cb:: with SMTP id h11mr2679088wrp.260.1571735136188; Tue, 22 Oct 2019 02:05:36 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id s21sm20815085wrb.31.2019.10.22.02.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 02:05:35 -0700 (PDT) Date: Tue, 22 Oct 2019 11:05:33 +0200 From: Daniel Vetter To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, David Airlie , Daniel Vetter , "open list:VIRTIO GPU DRIVER" , open list Subject: Re: [PATCH] drm/virtio: print a single line with device features Message-ID: <20191022090533.GB11828@phenom.ffwll.local> Mail-Followup-To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, David Airlie , "open list:VIRTIO GPU DRIVER" , open list References: <20191018113832.5460-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018113832.5460-1-kraxel@redhat.com> X-Operating-System: Linux phenom 5.2.0-2-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 01:38:32PM +0200, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/virtio/virtgpu_kms.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/virtio/virtgpu_kms.c b/drivers/gpu/drm/virtio/virtgpu_kms.c > index 0b3cdb0d83b0..2f5773e43557 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_kms.c > +++ b/drivers/gpu/drm/virtio/virtgpu_kms.c > @@ -155,16 +155,15 @@ int virtio_gpu_init(struct drm_device *dev) > #ifdef __LITTLE_ENDIAN > if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_VIRGL)) > vgdev->has_virgl_3d = true; > - DRM_INFO("virgl 3d acceleration %s\n", > - vgdev->has_virgl_3d ? "enabled" : "not supported by host"); > -#else > - DRM_INFO("virgl 3d acceleration not supported by guest\n"); > #endif > if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_EDID)) { > vgdev->has_edid = true; > - DRM_INFO("EDID support available.\n"); > } > > + DRM_INFO("features: %cvirgl %cedid\n", > + vgdev->has_virgl_3d ? '+' : '-', > + vgdev->has_edid ? '+' : '-'); Maybe we should move the various yesno/onoff/enableddisabled helpers from i915_utils.h to drm_utils.h and use them more widely? Anyway Reviewed-by: Daniel Vetter > + > ret = virtio_find_vqs(vgdev->vdev, 2, vqs, callbacks, names, NULL); > if (ret) { > DRM_ERROR("failed to find virt queues\n"); > -- > 2.18.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch