Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp825437iol; Thu, 9 Jun 2022 15:06:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXpILbKZkLWje47f70wN2SWV5aTUhLoCS0Q8va/Os570YrTooG6iM8zEJ1QjyJ3EfTGerD X-Received: by 2002:a17:902:ce81:b0:167:6117:f91a with SMTP id f1-20020a170902ce8100b001676117f91amr28917584plg.167.1654812387030; Thu, 09 Jun 2022 15:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654812387; cv=none; d=google.com; s=arc-20160816; b=iwC7uSCnQfSHUXGnHu2YGhgczrMBTYBtIpJ0A0tlZDCPwd6mX4Ux81D5wnHCmZRlUU 5RB4+LkTqDiW80o+cRFO7dKs677fTur0RMD6Ehnw+ymq8W+xwAslGGo2tUkgX7E/nFtK HpBqrz8BU5SJhkNa61580PwwzzoHk4Ps00FmxwOanV4o91tV+4qsS1GFbuRt5vwxMTtr 2u2B+Pl7cVWOAXjZysQL6kGfuC3P4hCjss/TXlh6BIUyvxRxnAT4KJv8xLnqnMtWk/oO zMfzzP/ZtOYSg4vnQBgQOlHfW31LAPPQUmdt/uO7n/qUboXNlQ8uVMUK0dfBgMUSudi5 J0xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=B1pdgF7AnLu0fVQCtydwApAx3WZNtJh5bsvpbPEg0J0=; b=VvMRmPrPMMwgmiqMAugznhFb9Mg5SycIDBYlzt+fTLoG+Kc5LzVmf1q9bAWXIaJ6TX X9mSWJZ9GpG+675eQOtwzcFCfGo+5yPjlhb/oI8C/jLbt74BLY6XAw3b5zk02dal6JyD wNlN6lXMs1A90+Wea5UdZTQ1QAwS05qJ+DK14d8c8hzAzfTc9Mq2jPn1bT9Mw4ik7kiW cQPhufRjrdqtzRJAyB+R5o1P/f0oqVx38aWdOiF2Dpzi6pXGN2+nPvU4Vrql3KFhqSae ivw3SzK1l7aFc8/Yl1EVofJ9SaonqZ03RzQflO7QF3bV6eRMdZc08hgVbz00MjkUDvvM kHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eS6SQpz+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a170902768600b00168a2166015si4559384pll.362.2022.06.09.15.06.09; Thu, 09 Jun 2022 15:06:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eS6SQpz+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245339AbiFIVoY (ORCPT + 99 others); Thu, 9 Jun 2022 17:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234151AbiFIVoX (ORCPT ); Thu, 9 Jun 2022 17:44:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 163AC65D39 for ; Thu, 9 Jun 2022 14:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654811060; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B1pdgF7AnLu0fVQCtydwApAx3WZNtJh5bsvpbPEg0J0=; b=eS6SQpz+ywcjgd0sAI/vvEs9NWMWx9wXBpp80hz9vMvuJuRk8hfr8301T5ZfjmOubltLYv piL8dgK11d04i958czQRnfjpe8qFa6iidTGjfrxkCP+7YzLdB6zMX4OeAoIh+lz8ntZSiw 16vGo2FNkBYAPP41uuPQznrSLDJmo3o= Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-eKP6F1qsOAuRPoxSU0KLSA-1; Thu, 09 Jun 2022 17:44:19 -0400 X-MC-Unique: eKP6F1qsOAuRPoxSU0KLSA-1 Received: by mail-il1-f197.google.com with SMTP id y18-20020a927d12000000b002d3dd2a5d53so17759413ilc.0 for ; Thu, 09 Jun 2022 14:44:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=B1pdgF7AnLu0fVQCtydwApAx3WZNtJh5bsvpbPEg0J0=; b=A7vuoGyEdacE2jCysOA07oCObzrb+8oEWXjbX2NjzNyudfj6DxjET2vazTgr6/Cio5 kFA8pHVeCOc0W2f4L6aHtnY6ggUNc+SeK1hANWaGXn00P3fHRVMOvSOOeLMPD9PlFW89 YwRFdIQb8m1bIC94JgdZEOrQFi80vtLBiQz017lLsGhosn1f/f0Jbc71mc8izlfhf6Yl pVFbyK/izYdaLN7B5mci4JvprLK0ge6S0eVIsEuU5PUimHDRlYLbBZ37c+6TrkjHr/0U 2gsM8E81g80H03E6aFAcg8wokovb+sFBbYsq9DknJzK//Z+YS/9OStbM2tl68FeBywwW e78w== X-Gm-Message-State: AOAM533CuGEvL2yxhO9eNE2nKwymWY/wJeJTzKmlMbox64R+0f4dLNCj 1oqYHnOpgpYk57KNOH2tn2VQsgZGEZn40sVSRXSzwqprgjxup7lnmIYu08zehQu8D3GaWffGBla UexZQzkuvqHLw5Ms3nz6ISYM6 X-Received: by 2002:a05:6e02:1e09:b0:2d1:97ca:a241 with SMTP id g9-20020a056e021e0900b002d197caa241mr23122508ila.238.1654811059001; Thu, 09 Jun 2022 14:44:19 -0700 (PDT) X-Received: by 2002:a05:6e02:1e09:b0:2d1:97ca:a241 with SMTP id g9-20020a056e021e0900b002d197caa241mr23122496ila.238.1654811058769; Thu, 09 Jun 2022 14:44:18 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id n29-20020a02711d000000b00331a94f2b04sm5740155jac.105.2022.06.09.14.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 14:44:18 -0700 (PDT) Date: Thu, 9 Jun 2022 15:44:16 -0600 From: Alex Williamson To: Thomas Zimmermann Cc: kvm@vger.kernel.org, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Laszlo Ersek , Gerd Hoffmann Subject: Re: [PATCH 2/2] vfio/pci: Remove console drivers Message-ID: <20220609154416.676b1068.alex.williamson@redhat.com> In-Reply-To: <20220609154102.5cb1d3ca.alex.williamson@redhat.com> References: <165453797543.3592816.6381793341352595461.stgit@omen> <165453800875.3592816.12944011921352366695.stgit@omen> <0c45183c-cdb8-4578-e346-bc4855be038f@suse.de> <20220608080432.45282f0b.alex.williamson@redhat.com> <01c74525-38b7-1e00-51ba-7cd793439f03@suse.de> <20220609154102.5cb1d3ca.alex.williamson@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Jun 2022 15:41:02 -0600 Alex Williamson wrote: > On Thu, 9 Jun 2022 11:13:22 +0200 > Thomas Zimmermann wrote: > > > > Please have a look at the attached patch. It moves the aperture helpers > > to a location common to the various possible users (DRM, fbdev, vfio). > > The DRM interfaces remain untouched for now. The patch should provide > > what you need in vfio and also serve our future use cases for graphics > > drivers. If possible, please create your patch on top of it. > > Looks good to me, this of course makes the vfio change quite trivial. > One change I'd request: > > diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig > index 40c50fa2dd70..7f3c44e1538b 100644 > --- a/drivers/video/console/Kconfig > +++ b/drivers/video/console/Kconfig > @@ -10,6 +10,7 @@ config VGA_CONSOLE > depends on !4xx && !PPC_8xx && !SPARC && !M68K && !PARISC && !SUPERH && \ > (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) && \ > !ARM64 && !ARC && !MICROBLAZE && !OPENRISC && !S390 && !UML > + select APERTURE_HELPERS if (DRM || FB || VFIO_PCI) > default y > help > Saying Y here will allow you to use Linux in text mode through a > > This should be VFIO_PCI_CORE. Thanks, Also, whatever tree this lands in, I'd appreciate a topic branch being made available so I can more easily get the vfio change in on the same release. Thanks, Alex