Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp13809rdb; Thu, 5 Oct 2023 14:57:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkzKJar2JIQteWaKXzEw29FQFpQgWn+VSCNGYVuVNJLBg98xjKwBncoibkzOFdpJIRqNEE X-Received: by 2002:a05:6e02:1c08:b0:34b:ad80:61c1 with SMTP id l8-20020a056e021c0800b0034bad8061c1mr7664414ilh.26.1696543068226; Thu, 05 Oct 2023 14:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696543068; cv=none; d=google.com; s=arc-20160816; b=AjN7f/stbqxGB1+Wp3iQjfYYG13qM0fV4/bvEjK/85mdbRE2frojL5KO/Klv6rUmiD hH4QpOYkd6T2scY418XiY7E6OfyX4SN0OypeTcbJxoMMYGpqi1TSTS9/P0rqBIPVnniH MslmsAAUO47I7owfNgEntUWXpdY+gqba2vx78vo+a0y35cOIKwMzVoYs43UXiqd/53qP ZYEvLeId+jmhPXco1VzpOucvjXCExXOhXbwih05zZiSOSxGsEl+SUaNhZ0p0KE/mQ6dh WGhTIVNoXCkOflE4+RXGbEwYH3DhwXF1s8k14/uDp46hJd7C/pkaDN65k6RtI4TIsT2p oFDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=ki9OxIwf/ipToYR6Mkw/sphrUexWp+Y+Yr2pY+0EYw8=; fh=re6gcYoSL3L+cZ6AQ/CSQ6zC3ElxQJr9dRg12IWq7Mw=; b=jqg8iy7OmIBJGwqADlOa7gs/g9hBYCnazuD2pSD5r6OFsYqJ3+4Tj8ohgyugEqYy0s DZt3ZlCcKnCNHsGF+CIZpo/hTzWBXsOwQqXsBMyRF0G4n1MbuRUUhhc2g1HVRtX+LZfk j9WAKnsCiwfccLf4BdZA5Uim1asO8XirPJpF6SbH11m9SiUCSSEdyoTi6nobF02fS7g9 rdZQr8Oov4c/aOwIt1uExSz9qZbEySItDr07sOlg4W+K8v9sZhyVHTo7c/Avuw9zzjMm 2l6FK4qvEGVwTojG6bx7/c/F49yVGNDyI01osqpXMiIE4aspMfIdU/+gvNVFzqiMCVsY d5eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KAE6vQh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id k185-20020a6384c2000000b00578db71453esi2317747pgd.468.2023.10.05.14.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 14:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KAE6vQh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 48F5C802F57F; Thu, 5 Oct 2023 14:57:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbjJEV5U (ORCPT + 99 others); Thu, 5 Oct 2023 17:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjJEV5T (ORCPT ); Thu, 5 Oct 2023 17:57:19 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA7A1DB; Thu, 5 Oct 2023 14:57:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2377FC433C7; Thu, 5 Oct 2023 21:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696543036; bh=vaHJxIHe4zRt2ghkUleXPakGs+EDbrcTc1rXqc3MsKg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=KAE6vQh542k4VeuofajcdFNi7UAR0AHGTAwk6fcvUpWM5DwqusqTcyZnRQoWRSIR0 wYjFVNuURnB1QjY/Qb9DF6Diq7rsAUmimE/zSlLYtW3USLdRgg3FEQIf6bVS/XGpfO I3WqidB3O7HNh59ixD49Rii8SrxWj9EhBNVYvMMhwFTMyWgl96grV8AbY0IkP+GTR+ jU+Fo0j6zuMdYCTgMoYsXStu3ZbFLm8B7bomR77EVstC3H4dxtITqujpsNzF8Gf/D4 hH+2Q9BqVILErLxtzHhW2TlCJLG7E/Z7A4yUhP7cErgkT0vFZqzp1dSM9sBTqlO04S +7f70D4DMQ42A== Date: Thu, 5 Oct 2023 16:57:14 -0500 From: Bjorn Helgaas To: Sui Jingfeng Cc: Bjorn Helgaas , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Sui Jingfeng , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, David Airlie Subject: Re: [-next 4/5] drm/virgpu: Switch to pci_is_vga() Message-ID: <20231005215714.GA792609@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230830111532.444535-5-sui.jingfeng@linux.dev> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 05 Oct 2023 14:57:46 -0700 (PDT) In subject: "drm/virtio" to match previous history. On Wed, Aug 30, 2023 at 07:15:31PM +0800, Sui Jingfeng wrote: > From: Sui Jingfeng > > Should be no functional change, just for cleanup purpose. > > Cc: David Airlie > Cc: Gerd Hoffmann > Cc: Gurchetan Singh > Cc: Chia-I Wu > Cc: Daniel Vetter > Signed-off-by: Sui Jingfeng > --- > drivers/gpu/drm/virtio/virtgpu_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c > index add075681e18..3a368304475a 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_drv.c > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.c > @@ -51,7 +51,7 @@ static int virtio_gpu_pci_quirk(struct drm_device *dev) > { > struct pci_dev *pdev = to_pci_dev(dev->dev); > const char *pname = dev_name(&pdev->dev); > - bool vga = (pdev->class >> 8) == PCI_CLASS_DISPLAY_VGA; > + bool vga = pci_is_vga(pdev); This *is* a functional change: Previously "vga" was only true for PCI_CLASS_DISPLAY_VGA (0x0300). Now it will be true for both PCI_CLASS_DISPLAY_VGA (0x0300) and PCI_CLASS_DISPLAY_OTHER (0x0380). Is that desirable? I can't tell. Maybe the GPU folks will chime in. > int ret; > > DRM_INFO("pci: %s detected at %s\n", > -- > 2.34.1 >