From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AABD0606A699 for ; Mon, 30 Nov 2026 18:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=LvNRNEly Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 024554027B; Mon, 30 Nov 2026 19:13:10 +0100 (CET) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTPS id 8325140279 for ; Mon, 30 Nov 2026 19:13:08 +0100 (CET) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-3b41e5a1719so4478512a91.3 for ; Mon, 30 Nov 2026 10:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796062387; x=1796667187; darn=dpdk.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=S3+uB89swaomYRidvbgPdbFoi82zZq89zdESCag0uQo=; b=LvNRNElyTJRGCOeT3GLmsipdTTr2zXv+JCLW9SYE7zxlMO6OkeLHV236FkBd/oCXpb ZI08xegnpdjHhHGY4lPzEQeqrxHHvV6oQvpJGsY6YTn6pqMPbm12LPF3lwBwMM7iP4dW v8V2f/bA9Ma6joNY7EW/VSSiQURZFjYbfZwL2C4xpNTAWs2ZQqwI4SCuiTqWtLrE0/O3 6EXcpQsMxMO42/7diU9AEdr7BIEPKby9TMXYc+pklYHpKrUImmeOlbOazXN/3qN/Pajv 8W+K/eWaBvjNnMWNQuxN6USomRdafIyE8cOcpMVIQQHBI02RESBSqZmj7isvByg4vrFL ltiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796062387; x=1796667187; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=S3+uB89swaomYRidvbgPdbFoi82zZq89zdESCag0uQo=; b=H/gCXrBNRMzktnbkDj8vqHbA17Q6OJi28AElmD1aLZRaH693/0milK3Kuvkc7kQfqs 8odY1aaKwvaPeZWXe/OXw8iDCwfGoZEDP/OAloEWumkL9bbL+arY/Rdp5dBJhF4xhTET zQu2UwR/6s/JHqcKSJSnULkCuLSyjE9lRW1XXvXTNkKcO6vFOVz+r+1f32CVNSLfovHY iR0iQ6tCes4zIn26jg5Lr28po8rfK1oek9/vXytQuWGXy9cWIo8E01pci2BADD40qEQX bOfJ+WNI/AhjXs2/AyA3nesqERhv3nm7H89qqfaGx0LicutZur7/c95V3exlXObUdUVC hY1g== X-Forwarded-Encrypted: i=1; AL+hErGsH5pROIZIVscRYERl1/4oCNtuICmOYUuRDYw9pHZlkgM1dq1IWR5ugX5OJ+90D/1M5W0=@dpdk.org X-Gm-Message-State: APuU4Z9zkXgNedKis9ekl3NbUvrM7wnqM9xjYO4jPgQ+STYp+13iOxqG 7kBbQpV2TxUX43zv5whrFwiJ0I1h4MuchT70sPnQJK9xJp8QC4IqKMk1wE6gvx/zkGU= X-Gm-Gg: AZFdTZd2eeRw6ndvrctcKkukq0hQvtRQc1k5A9dw/edrNbYwPrxplDKqy6tBfgCZ9IL mN4i3ha1ss6lRB3FqGku2sHktyX1v6rGrqMKW8Qhagmr5giMXt7E0uk3xiAaKSKvJuIrGnKtJ2V 1gt9bXNESxPDUUjsx/rin9GGcuLYNDxJhMsu+IM9P/yT93M5pWz4qJZYvnW+DGDvBa/u5MsHYR8 0V8fZ7KQiQvnY5fLA58jEy+Yfen/406DsnqlLzL24uyYuQKxSFBYX2+s+tur0bOU7oNc9nMWxI2 33vcjwLbtSs3Z/6yTm9STceCZMiV8flP5iinRYemtftYUnMG5SESyu05wZGWKmcsRjQnp/6sFCh GJhgNbPu9ej+8B9CoFNWYnDvUSqTCv7glRwJwzJeUHwinp4HWCxR5Mae9vATOp5ZvNYOzmpTk8Q kBJqbY5DTdYhRolMXZp8De3QJu4sagLk7DVIGWRQoyTf6tVUt4Yshh5wy5mnlTFpfclcDWy96bl RPFDM0hXZHeiAvPdLp7kFixMwKVPnnrIVdeG/xk90ZgKLpjRvy5sLIyKsVPD0zlFGgr9VmlbF7j OiKQ+KOildowQbQ/V3YxEvh4yGZG1rP1Fd+tTrX+i7mOGK5oTm4GJ9LgRzv+jf62jePG7qU= X-Received: by 2002:a17:90b:534b:b0:3b5:32db:12b with SMTP id 98e67ed59e1d1-3b532db04c4mr13028039a91.22.1796062386646; Mon, 30 Nov 2026 10:13:06 -0800 (PST) Received: from phoenix.local (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b4dfbe54a2sm34329716a91.17.2026.11.30.10.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 10:13:06 -0800 (PST) Date: Mon, 30 Nov 2026 10:13:01 -0800 From: Stephen Hemminger To: "Prusty, Subhransu Sekhar" Cc: david.marchand@redhat.com, dev@dpdk.org, rtice@cisco.com, cheryl.bansal@altera.com, nanditha.jayarajan@altera.com Subject: Re: [RFC 0/4] net/mcdma: add Altera MCDMA poll mode driver Message-ID: <20261130101301.24cee12c@phoenix.local> In-Reply-To: <9c12255e-1c08-40b2-9e5f-61f6f54faee8@altera.com> References: <20261109160926.800828-1-subhransu.sekhar.prusty@altera.com> <20261109092513.59d8b647@phoenix.local> <83697e5f-5142-4aa2-a907-290b1da1603a@altera.com> <9c12255e-1c08-40b2-9e5f-61f6f54faee8@altera.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, 30 Nov 2026 14:51:04 +0530 "Prusty, Subhransu Sekhar" wrote: > On 16-11-2026 19:47, Prusty, Subhransu Sekhar wrote: > > Hi Stephen, > > > >> > >> PCI ID and PF/VF model (you asked about devargs). The ID table is > >> vendor 0x1172, device 0x0000, i.e. the Altera default IDs. Any > >> Altera design left at default IDs will probe as MCDMA. Whether a > >> function is PF or VF is decided by the presence of pf_index=, and a > >> VF needs parent_pf_idx= to find its channel count. The usual way to > >> do this in DPDK is distinct device IDs for PF and VF (and a real > > > > Since ours is FPGA drivers this will be tricky as the IP configuration > > in a design may not always have the device IDs assigned and even though > > assigned every design can have a different device IDs which may be > > difficult to add in the enumeration list. This is why we have this > > approach to distinguish with devargs. Is there any other way we can > > approach this? > > Hi Stephen and all, > > Thank you for reviewing the MCDMA RFC. Before preparing the next > revision, we would appreciate guidance on the PCI device identification > and PF/VF discovery model. > > For context, the original RFC and review discussion are available here: > > https://lore-kernel.gnuweeb.org/all/20261109092513.59d8b647@phoenix.local/T/ > > The accompanying RFC patch shows our latest proposed change to replace > the PF/VF index devargs with topology-based discovery. It is a > preliminary proposal for discussion and does not change PCI device matching. > > There are two separate questions we would like to resolve: > > 1. How should the PMD safely identify a PCI function as an MCDMA device? > 2. After identifying it, how should the PMD determine its PF/VF role and > the hardware PF index needed to interpret the channel configuration? I have little hardware expertise, Thomas, Bruce or David might have more insight. I would think you want the same methodology as already done by similar kernel drivers.