Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1164211imw; Wed, 13 Jul 2022 15:02:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNPsbXwy7e01xK45Z94Es2/FaUEaTAoA3t8gsIK09NUWfOM/9qELv55BF+vQrngcsVe4Fl X-Received: by 2002:a17:902:da92:b0:16b:ecee:28a8 with SMTP id j18-20020a170902da9200b0016becee28a8mr5063505plx.71.1657749723418; Wed, 13 Jul 2022 15:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657749723; cv=none; d=google.com; s=arc-20160816; b=PoTj0Py5yLLYAPefB9t1UYFSIfkbYdCdTIwjgcLDpfLkbL058ytHV9cRd5hJiDCT6W H5p4A7XAv8py04S0BKYMRPbJxS7+3AIw7cwM/DXHq2AMvQ8DCIWdoTLT1ZjuwiRvRdar TMhZ45iKc37eSba24ic+nCHYSfZ7mCweM9Akau5cZ39oPJId6E9sHkNsW8LcoojJngqs 4OVe8MYg0PyYN6ViVRA9P5vn8AeCXCppPmqEJEakIEqA3DwTRGwsGGx6m2z/qLHb4dbh yDjVm4Bs7tVS0D0ZQl5yFo/EkRBlx4Rp0i7WL1EJc/phfJNFZKJGHDCaBpmpO1rneTCi 5gbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=guTnNvlqH6K4wA2UCt8wsczuHAK4rJrHvdvd+slq1vY=; b=PjvO82DYBulzRjVvNPHSnK7+k8F8wZcDkYt5zy0wDaofhjz1VR4gl5tA+N/uKNSZ77 Z1XedJlvkxFdEpYkeni8g+XK4DuD1lVJXwwBemmrhP9itvrWWy2EE/sFN6Tb8qA80n3O sGSTGwdZeW2iuWS/0QUmk7Kn9sjhiGAkehWD51NVCoeUpXWxQZTCr8GRUlguwZ+hzC3w ygZNqjKNZmu9sIN3kgeAbaZN1SmD4VRP5WfOthsMvtQI0ap4K4ZYcVzj2Q1SnbL2lqr/ 7yeL6qMpbCoGXPFHFYjT3yI2IKUGhyOxKbzn4iy7BLjwQx3ak7L43vKX6aV8NZ9sPuHw UZfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PaJL5TCX; 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 k189-20020a6384c6000000b0041621066c08si8493721pgd.498.2022.07.13.15.01.48; Wed, 13 Jul 2022 15:02:03 -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=PaJL5TCX; 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 S237377AbiGMV7f (ORCPT + 99 others); Wed, 13 Jul 2022 17:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiGMV7b (ORCPT ); Wed, 13 Jul 2022 17:59:31 -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 5DD74B4BF for ; Wed, 13 Jul 2022 14:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657749569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=guTnNvlqH6K4wA2UCt8wsczuHAK4rJrHvdvd+slq1vY=; b=PaJL5TCXeuePAPaMSss7rA+geG0YxgpL9PwxTe1vBujK4FUBrIBkbVJdn8mjxI92NIFy1s jP1veKpKRmN6XwWqYHYpC5Pb5IMfSNEhCpWnH0MvGdi+BuxsYrybx/qEPivNL8jT2HBWqB AguXnGK4iLq10k2OkTwjMNuTOan5d6k= Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-199-YNK84_wLOa-q21GsbDX6FA-1; Wed, 13 Jul 2022 17:59:27 -0400 X-MC-Unique: YNK84_wLOa-q21GsbDX6FA-1 Received: by mail-oi1-f198.google.com with SMTP id e8-20020aca1308000000b0033a17c9dfcaso71516oii.20 for ; Wed, 13 Jul 2022 14:59:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=guTnNvlqH6K4wA2UCt8wsczuHAK4rJrHvdvd+slq1vY=; b=bU/Qh2VWm72MqMqGWoPtbQEFBc4/5xyzD3XJDZ7GC52J4L8/LymMGnmoUFcZKWjey4 6Jaqgp/wlg8XwnbQXTBQYcGb7IxFDixeocEYHrLruw6uvbuEn++Kx+wc9GbfV8pkn8Mb EU27HZUI3ZPZ/l7LyVqkZnhJ0BTJJI4k/nbnOfBmWXVGZ1okS/hBxX+6/koPQ3f8mfZy UKRPCGeaa05LZw1Y6GsjToqNz2rsPtyNy/A5Ssdbw65FylRc9kbzOlLi7FoJ9pRoTq3J M+f1q+toqmwih3oSVuvcT7+j4eI2P4aPjrB8Ui2LrW8sWK/Zc1Xx2UYMNS+GTe2PiD72 gNXw== X-Gm-Message-State: AJIora+z3/ueyDyCQjysO0HmJJQUPwQokjEK2/l74CLg99mz7Di+ADOf EJDQfoy74AspUyx4sB4QC2xp48QQfsHXegNLx3d+fwaEvVQmeQ4NY9eZ/KdJIou8TD8hA0K4wI5 i6BYnvk752rMV3ZWXHcVQGxJM X-Received: by 2002:a05:6870:56a9:b0:10b:fca8:b578 with SMTP id p41-20020a05687056a900b0010bfca8b578mr3019413oao.78.1657749567198; Wed, 13 Jul 2022 14:59:27 -0700 (PDT) X-Received: by 2002:a05:6870:56a9:b0:10b:fca8:b578 with SMTP id p41-20020a05687056a900b0010bfca8b578mr3019398oao.78.1657749567008; Wed, 13 Jul 2022 14:59:27 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id x13-20020a056870b40d00b001089aef1815sm32984oap.20.2022.07.13.14.59.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 14:59:26 -0700 (PDT) Subject: Re: [PATCH v3 2/2] fpga: dfl-pci: Add IDs for Intel N6000, N6001 and C6100 cards To: matthew.gerlach@linux.intel.com, hao.wu@intel.com, yilun.xu@intel.com, russell.h.weight@intel.com, basheer.ahmed.muddebihal@intel.com, mdf@kernel.org, corbet@lwn.net, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tianfei.zhang@intel.com References: <20220707150549.265621-1-matthew.gerlach@linux.intel.com> <20220707150549.265621-3-matthew.gerlach@linux.intel.com> From: Tom Rix Message-ID: <0c2affef-9a62-3422-ecdb-a8f196ce739c@redhat.com> Date: Wed, 13 Jul 2022 14:59:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220707150549.265621-3-matthew.gerlach@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, UPPERCASE_50_75 autolearn=unavailable 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 7/7/22 8:05 AM, matthew.gerlach@linux.intel.com wrote: > From: Matthew Gerlach > > Add pci_dev_table entries supporting the Intel N6000, N6001 > and C6100 cards to the dfl-pci driver. > > Signed-off-by: Matthew Gerlach > Signed-off-by: Tianfei Zhang > --- > v3: added necessary subdevice ids > removed 'drivers: ' from title > > v2: changed names from INTEL_OFS to INTEL_DFL > --- > drivers/fpga/dfl-pci.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/drivers/fpga/dfl-pci.c b/drivers/fpga/dfl-pci.c > index fd1fa55c9113..94eabdf1d2f7 100644 > --- a/drivers/fpga/dfl-pci.c > +++ b/drivers/fpga/dfl-pci.c > @@ -77,12 +77,19 @@ static void cci_pci_free_irq(struct pci_dev *pcidev) > #define PCIE_DEVICE_ID_INTEL_PAC_D5005 0x0B2B > #define PCIE_DEVICE_ID_SILICOM_PAC_N5010 0x1000 > #define PCIE_DEVICE_ID_SILICOM_PAC_N5011 0x1001 > +#define PCIE_DEVICE_ID_INTEL_DFL 0xbcce > > /* VF Device */ > #define PCIE_DEVICE_ID_VF_INT_5_X 0xBCBF > #define PCIE_DEVICE_ID_VF_INT_6_X 0xBCC1 > #define PCIE_DEVICE_ID_VF_DSC_1_X 0x09C5 > #define PCIE_DEVICE_ID_INTEL_PAC_D5005_VF 0x0B2C > +#define PCIE_DEVICE_ID_INTEL_DFL_VF 0xbccf > + > +/* PCI Subdevice ID */ > +#define PCIE_SUBDEVICE_ID_INTEL_N6000 0x1770 > +#define PCIE_SUBDEVICE_ID_INTEL_N6001 0x1771 > +#define PCIE_SUBDEVICE_ID_INTEL_C6100 0x17d4 > > static struct pci_device_id cci_pcie_id_tbl[] = { > {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_PF_INT_5_X),}, > @@ -96,6 +103,18 @@ static struct pci_device_id cci_pcie_id_tbl[] = { > {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_PAC_D5005_VF),}, > {PCI_DEVICE(PCI_VENDOR_ID_SILICOM_DENMARK, PCIE_DEVICE_ID_SILICOM_PAC_N5010),}, > {PCI_DEVICE(PCI_VENDOR_ID_SILICOM_DENMARK, PCIE_DEVICE_ID_SILICOM_PAC_N5011),}, > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL, > + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6000),}, > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF, > + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6000),}, > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL, > + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6001),}, > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF, > + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6001),}, > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL, > + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_C6100),}, > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF, > + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_C6100),}, Matt, Thanks for making this change, this addresses my concerns with the earlier patch. Reviewed-by: Tom Rix > {0,} > }; > MODULE_DEVICE_TABLE(pci, cci_pcie_id_tbl);