Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 784DEC64ED8 for ; Mon, 27 Feb 2023 06:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbjB0GjQ (ORCPT ); Mon, 27 Feb 2023 01:39:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjB0GjO (ORCPT ); Mon, 27 Feb 2023 01:39:14 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF9FA5CA for ; Sun, 26 Feb 2023 22:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677479907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+UG2oWxtK4UHFvkDOIm8sJ8ImrluBqKEzcmgsSAFFPA=; b=G7SeUCbgL+9nhejCWp9o6RfxSh3UufrJmYqIEgObanV/u2kSAbS0WCgKhfg/dacOkyIJXW lv3fHvIdy5x5V5piXROReYia1edeBZURZiAsHCEsgSnUpE3/fdXDVrkfe1oZqBIbo7yv/7 Yv4A4a2xgT73cLm8zqFopGYyDhksoM4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-486-8ceeMC1mP9mgVdcbxYFawQ-1; Mon, 27 Feb 2023 01:38:23 -0500 X-MC-Unique: 8ceeMC1mP9mgVdcbxYFawQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5E53395D605; Mon, 27 Feb 2023 06:38:23 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.45.224.150]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 134CDC15BAD; Mon, 27 Feb 2023 06:38:23 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 8BCF61800393; Mon, 27 Feb 2023 07:38:21 +0100 (CET) Date: Mon, 27 Feb 2023 07:38:21 +0100 From: Gerd Hoffmann To: Rob Clark Cc: dri-devel@lists.freedesktop.org, Chia-I Wu , Ryan Neph , Dmitry Osipenko , Rob Clark , David Airlie , Gurchetan Singh , Daniel Vetter , "open list:VIRTIO GPU DRIVER" , open list Subject: Re: [PATCH] drm/virtio: Add option to disable KMS support Message-ID: <20230227063821.dg2gbjjwcekbxyzw@sirius.home.kraxel.org> References: <20230224180225.2477641-1-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230224180225.2477641-1-robdclark@gmail.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 24, 2023 at 10:02:24AM -0800, Rob Clark wrote: > From: Rob Clark > > Add a build option to disable modesetting support. This is useful in > cases where the guest only needs to use the GPU in a headless mode, or > (such as in the CrOS usage) window surfaces are proxied to a host > compositor. Why make that a compile time option? There is a config option for the number of scanouts (aka virtual displays) a device has. Just set that to zero (and fix the driver to not consider that configuration an error). take care, Gerd