Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1263646rwr; Thu, 20 Apr 2023 12:15:50 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrtmeFvD+Jt2lT6g+fZhbplAbDggACwA/4YAdDR+Nk+O9z9OZvSyYbcxii6cL3ivo12N9s X-Received: by 2002:a05:6a00:1988:b0:63d:3a32:7407 with SMTP id d8-20020a056a00198800b0063d3a327407mr3146574pfl.16.1682018150396; Thu, 20 Apr 2023 12:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682018150; cv=none; d=google.com; s=arc-20160816; b=kvETWVldOEQv1Fp8wlFCkA3opMFICKLyOIq6oo660LvAUkxYVbudvaONGoNwNAwXu6 HsE9oC04rdg2vgri6qokCI7ClvhWgKeVHtZ88aOGzZy9Orsb/0+JA4Dw0oU/26miKa6I INv1oSqDKYKGpFudw8HUTI4bPHocpbpYQ4PX1qzB+9LnTD0+GrSG5i6N15P0DAi2dPxe 97wV2DJeWL1ybt0xwcV0spnoSgbJ0aBXEWXW+fetD/N5tnN2PIxF8L3lFDBXWjF1o+av HPeYab4dpfIJU/iX8NcaNBhNCGTvUxC5yEHxXpoRz8Xbd+klKaJN+LXJnz0GLXfxx7WE FacQ== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=9QaSvmeQPP7+gexnzBVaEEja6yVgnWIzaRkXHMLv1iM=; b=h0TzAoRKhVCGgY0zFO7n+EE7wzGdsrYLdeTYCTzEkKuf9b3pWwBD4dfuBLugZi2vNt kMQW3KRP9Z1C464S+jBHBhTl1HaMcdWW1KFdoIqGE6FmVBVLeD05HShtSzyZcipk4zhY aqtDRraTx3d+cRUS2TptFSvab7UD7Em+U+IDF0wc70hEsubF4ZR+osbj3Jw+/2Qd14RT dZ2RAk3nLKURne8nWGCK5CaEQHzxynhmRA9i4OMEaOiEVeL4ME8eQAimWnYuiJfItaTo VjQA0DayjUjw6MO+3LNUTRD5H3U7FYgpUsQ5kmAXGU1/h6KqqkxwnVpUYNrJH5N0WZdY AkZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LDA5jXTM; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a63450c000000b00524b3efc31asi2352455pga.737.2023.04.20.12.15.35; Thu, 20 Apr 2023 12:15:50 -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=@kernel.org header.s=k20201202 header.b=LDA5jXTM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbjDTTKm (ORCPT + 99 others); Thu, 20 Apr 2023 15:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231823AbjDTTKk (ORCPT ); Thu, 20 Apr 2023 15:10:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79AA610D1; Thu, 20 Apr 2023 12:10:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 14A9464B6D; Thu, 20 Apr 2023 19:10:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 420C7C433D2; Thu, 20 Apr 2023 19:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682017838; bh=XrXqfqmFPAxvfcLnA7hSYVE5T/DiaBScxzwQjC8CZk4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=LDA5jXTMDJtx+rIFPKnSiZlDcDjiPcZkkoYv6a7KaXWNVDExEskBTpBs+iuoiG1zV EaLTGqTna5BKDtH/AhicV08Z60dmekfu41aStdgnq8vLIfZXpXLa/dg1XOB7TviBV9 En+gIxIR0IEveSaCahs3ZKDC//tkHJzO3Q7mJBsRYbgsdRYpzvEo81sC+MRJsGQThn P8mFYrJ7distbVy02YT339dE/+3T1F9wHMGVjwgRFF1PkL9WeGmsdqTsYPbxVSptTB VG8754GGBoYnE0DpeLBUFeJHoBOJ/nggPEiMu6CDz3cdlIS4JwDMpezehL0BJD6Mzv hvPfJ+vO73uAg== Date: Thu, 20 Apr 2023 14:10:36 -0500 From: Bjorn Helgaas To: Thomas Zimmermann Cc: "open list:PCI SUBSYSTEM" , open list , "open list:DRM DRIVER FOR AST SERVER GRAPHICS CHIPS" , Bjorn Helgaas , Dave Airlie , Patrick McLean , Damien Le Moal , linux-ide@vger.kernel.org Subject: Re: [PATCH] PCI: Add ASPEED vendor ID Message-ID: <20230420191036.GA315493@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 [+cc Damien, linux-ide] On Thu, Apr 20, 2023 at 09:08:48AM +0200, Thomas Zimmermann wrote: > Am 19.04.23 um 20:37 schrieb Bjorn Helgaas: > > On Wed, Apr 19, 2023 at 09:00:15AM +0200, Thomas Zimmermann wrote: > > > Am 19.04.23 um 00:57 schrieb Patrick McLean: > > > > Currently the ASPEED PCI vendor ID is defined in > > > > drivers/gpu/drm/ast/ast_drv.c, move that to include/linux/pci_ids.h > > > > with all the rest of the PCI vendor ID definitions. Rename the definition > > > > to follow the format that the other definitions follow. > > > > > > Thanks a lot. Can you please also move and rename the PCI device ids? [1] > > > > Generally we move things to pci_ids.h only when they are shared > > between multiple drivers. This is mostly to make backports easier. > > > > PCI_VENDOR_ID_ASPEED is (or will be) used in both ast_drv.c and > > libata-core.c, so it qualifies. > > > > It doesn't look like PCI_CHIP_AST2000 and PCI_CHIP_AST2100 would > > qualify since they're only used in ast_drv.c and ast_main.c, which are > > part of the same driver. > > Ok, I see. Can I take the patch into DRM trees? The first time around I got two patches [2]. This time I only got this patch, but IIUC there are still two patches in play here: - This one, which moves PCI_VENDOR_ID_ASPEED to pci_ids.h, and - The libata-core one that adds a use in ata_dev_config_ncq() Those should go together via the same tree. I supplied my ack to indicate that I'm not going to merge anything myself, and I expect whoever merges the libata patch to also merge this one. If for some reason the libata-core patch doesn't happen, then this patch shouldn't happen either, because there would no longer be any sharing between drivers that would justify a pci_ids.h addition. Bjorn [2] https://lore.kernel.org/r/20230418011720.3900090-1-chutzpah@gentoo.org > > > [1] https://elixir.bootlin.com/linux/v6.2/source/drivers/gpu/drm/ast/ast_drv.h#L52 > > > > Signed-off-by: Patrick McLean > > > > --- > > > > drivers/gpu/drm/ast/ast_drv.c | 4 +--- > > > > include/linux/pci_ids.h | 2 ++ > > > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > > > > > > diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c > > > > index d78852c7cf5b..232e797793b6 100644 > > > > --- a/drivers/gpu/drm/ast/ast_drv.c > > > > +++ b/drivers/gpu/drm/ast/ast_drv.c > > > > @@ -70,12 +70,10 @@ static const struct drm_driver ast_driver = { > > > > * PCI driver > > > > */ > > > > -#define PCI_VENDOR_ASPEED 0x1a03 > > > > - > > > > #define AST_VGA_DEVICE(id, info) { \ > > > > .class = PCI_BASE_CLASS_DISPLAY << 16, \ > > > > .class_mask = 0xff0000, \ > > > > - .vendor = PCI_VENDOR_ASPEED, \ > > > > + .vendor = PCI_VENDOR_ID_ASPEED, \ > > > > .device = id, \ > > > > .subvendor = PCI_ANY_ID, \ > > > > .subdevice = PCI_ANY_ID, \ > > > > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > > > > index 45c3d62e616d..40e04e88ca5a 100644 > > > > --- a/include/linux/pci_ids.h > > > > +++ b/include/linux/pci_ids.h > > > > @@ -2553,6 +2553,8 @@ > > > > #define PCI_DEVICE_ID_NETRONOME_NFP3800_VF 0x3803 > > > > #define PCI_DEVICE_ID_NETRONOME_NFP6000_VF 0x6003 > > > > +#define PCI_VENDOR_ID_ASPEED 0x1a03 > > > > + > > > > #define PCI_VENDOR_ID_QMI 0x1a32 > > > > #define PCI_VENDOR_ID_AZWAVE 0x1a3b > > > > > > -- > > > Thomas Zimmermann > > > Graphics Driver Developer > > > SUSE Software Solutions Germany GmbH > > > Maxfeldstr. 5, 90409 N?rnberg, Germany > > > (HRB 36809, AG N?rnberg) > > > Gesch?ftsf?hrer: Ivo Totev > > > > > > > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Frankenstrasse 146, 90461 Nuernberg, Germany > GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman > HRB 36809 (AG Nuernberg)