From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A758843284; Sat, 4 Nov 2023 08:33:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FA1B4029E; Sat, 4 Nov 2023 08:33:20 +0100 (CET) Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by mails.dpdk.org (Postfix) with ESMTP id DE71A4028B for ; Sat, 4 Nov 2023 08:33:18 +0100 (CET) Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-67572f4b17cso7535336d6.2 for ; Sat, 04 Nov 2023 00:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699083198; x=1699687998; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b/37BPVahB9va47IfG2RCSxepmrrjVpiF84xrnJUQYc=; b=nsr0vjLewiTTp/57/xQTRw7qxaPiyf//ITEBYBvXgvZk2wuuT41i+s7ptxgUQkOkhS J3t2rMooWnBJfhuXWbOSt1/BN/qU+e4t6epU8zG1NmmiJIk3noHl8Soa9dkGr4NZqcIY LQzGVzGhntFQoXPxH4Bk1VRwDo39SFeXPvJSx4XfPc85eOH/QvAnp+Scy1GlXpqWyRsn +ZaaF74SEuARXbPxS8zhapzo1gQ1lqojooLg4CphVXa2HpTFodF+Mf8MewKxAx+/dmbm s48RSbe3jUwZjLzXplizJH56znS3OguW5lZzKUy6JIn7l1p8aR4FgmLRGu+6q+AQQlhL AyHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699083198; x=1699687998; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b/37BPVahB9va47IfG2RCSxepmrrjVpiF84xrnJUQYc=; b=sHuVSYjpcaNBzusJ8n67YZMLID5USebGyrYLTBSTC+TtFBHM0Wcd0a2ccBtXkgALG6 KALAEI3zMtozK7jRgwL9rn6+yAAjMMgKYqKJojheDCaSEDuWK0DpCZzRFhz8JxZAMCKO nKBW7MxTW4PfUe1n5lZFdahTrLWLD4lohSsb+LIYMRmGB4fDlcrbQREDdXNJ0bAuUpnr P03PMNfAdhFOk6bh/nd/jBht7ZmVuuG54/s0T18Cww38+N/ZFBzWJ1fMBFkZjc9+RPNs JOPxS4ZTVgRezYI6ShU7oISk5x8lsHQERkvdK+9Gp1AmDJkJ0NUn8ZJCfez2F8fYugSE +HCA== X-Gm-Message-State: AOJu0YwYxGe5gf5EHQulGqxUj2hh2YjpyefYKVWkrYuyWBf7bfxt5mKr mtbmg064hdVwaPmXfvzva+z0GCe6myZIZ1LKyKQ= X-Google-Smtp-Source: AGHT+IF7OpIQAiOSxjPbN5Fv+p3hGStbzjKKY2jCS/7HogLQBK3NQMGpbDppgWj884s44itlHBrdqDGJlZsIlfK0tkc= X-Received: by 2002:a05:6214:1c4c:b0:66d:44f2:7234 with SMTP id if12-20020a0562141c4c00b0066d44f27234mr31383860qvb.53.1699083198208; Sat, 04 Nov 2023 00:33:18 -0700 (PDT) MIME-Version: 1.0 References: <20231103182933.2831662-1-abdullah.sevincer@intel.com> <20231103182933.2831662-2-abdullah.sevincer@intel.com> In-Reply-To: <20231103182933.2831662-2-abdullah.sevincer@intel.com> From: Jerin Jacob Date: Sat, 4 Nov 2023 13:02:52 +0530 Message-ID: Subject: Re: [PATCH v6 1/2] bus/pci: add function to enable/disable PASID To: Abdullah Sevincer Cc: dev@dpdk.org, jerinj@marvell.com, mike.ximing.chen@intel.com, bruce.richardson@intel.com, thomas@monjalon.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sat, Nov 4, 2023 at 4:47=E2=80=AFAM Abdullah Sevincer wrote: > > This commit implements an internal api to enable and disable PASID for > a device e.g. device driver event/dlb2. git comment can be reworded when apply. > > For kernels when PASID enabled by default it breaks DLB functionality, > hence disabling PASID is required for DLB to function properly. > > PASID capability is not exposed to users hence offset can not be > retrieved by rte_pci_find_ext_capability() api. Therefore, api > implemented in this commit accepts an offset for PASID with an enable > flag which is used to enable/disable PASID. > > Signed-off-by: Abdullah Sevincer Acked-by: Jerin Jacob > --- > drivers/bus/pci/pci_common.c | 7 +++++++ > drivers/bus/pci/rte_bus_pci.h | 13 +++++++++++++ > drivers/bus/pci/version.map | 1 + > lib/pci/rte_pci.h | 4 ++++ > 4 files changed, 25 insertions(+)