From: Jerin Jacob <jerinjacobk@gmail.com>
To: David Marchand <david.marchand@redhat.com>
Cc: Abdullah Sevincer <abdullah.sevincer@intel.com>,
Gaetan Rivet <grive@u256.net>,
Thomas Monjalon <thomas@monjalon.net>,
dev@dpdk.org, jerinj@marvell.com, mike.ximing.chen@intel.com
Subject: Re: [PATCH v1] event/dlb2: add support for disabling PASID
Date: Thu, 8 Jun 2023 17:02:11 +0530 [thread overview]
Message-ID: <CALBAE1OQaKpLBNmHZrHXz2m06FFR8mhLk6TwuT5bHnyARkCY=A@mail.gmail.com> (raw)
In-Reply-To: <CAJFAV8wBpjqenxGcJsw4hwb5JDVMy5Xm4hY71h7jZ_GALGgu1g@mail.gmail.com>
On Thu, Jun 8, 2023 at 12:59 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> On Thu, Jun 8, 2023 at 7:38 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
> >
> > On Thu, Jun 8, 2023 at 2:31 AM Abdullah Sevincer
> > <abdullah.sevincer@intel.com> wrote:
> > >
> > > vfio-pci driver in Linux kernel 6.2 enables PASID by default.
> > > In DLB hardware, enabling PASID puts DLB in SIOV mode. This
> > > breaks DLB PF-PMD mode. For DLB PF-PMD mode to function properly
> > > PASID needs to be disabled for kernel 6.2.
> > >
> > > In this commit this issue is addressed and PASID is disabled
> > > by writing a zero to PASID control register.
> > >
> > > Signed-off-by: Abdullah Sevincer <abdullah.sevincer@intel.com>
> >
> > > + /* The current Linux kernel vfio driver does not expose PASID capability to
> > > + * users. It also enables PASID by default, which breaks DLB PF PMD. We have
> > > + * to use the hardcoded offset for now to disable PASID.
> > > + */
> > > + pasid_cap_offset = DLB2_PCI_PASID_CAP_OFFSET;
> > > +
> > > + off = pasid_cap_offset + DLB2_PCI_PASID_CTRL;
> >
> > +++ additional folks.
> >
> > Is make sense to move this helper function to PCI common for disabling
> > PASID for a PCI device so that other driver can use if needed
> > as the implementation is not specific to DLB2.
>
> Yes, having a helper sounds like a first step (and we probably have
> more helpers to add seeing how drivers tend to redefine non vendor
> specific pci configs, but that's another story).
@Abdullah Sevincer Please move the implementation to code PCI code.
>
> Now, about PASID being enabled by default with Linux 6.2, is this
> breaking of dlb PF something special? Or can we expect many (all?)
> other devices to break too?
> If so, maybe we should disable it in the pci common code.
@Abdullah Sevincer Is implicitly enabling SIOV based on PASID
configuration DLB2 behavior or general PCI behavior that may affect
other NIC's?
>
>
> --
> David Marchand
>
next prev parent reply other threads:[~2023-06-08 11:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 21:00 Abdullah Sevincer
2023-06-08 5:38 ` Jerin Jacob
2023-06-08 7:22 ` Thomas Monjalon
2023-06-08 7:28 ` David Marchand
2023-06-08 11:32 ` Jerin Jacob [this message]
2023-06-08 14:25 ` Chen, Mike Ximing
2023-08-03 7:56 ` David Marchand
2023-08-03 16:57 ` Sevincer, Abdullah
2023-10-26 16:46 ` Sevincer, Abdullah
2023-10-26 16:38 ` [PATCH v2] event/dlb2: disable PASID for kernel 6.2 Abdullah Sevincer
2023-10-30 21:12 ` [PATCH v3] event/dlb2: fix " Abdullah Sevincer
2023-10-31 8:21 ` Jerin Jacob
2023-10-31 15:13 ` Sevincer, Abdullah
2023-10-31 17:06 ` Jerin Jacob
2023-10-31 17:15 ` Bruce Richardson
2023-10-31 18:42 ` Jerin Jacob
2023-10-31 20:44 ` Bruce Richardson
2023-11-01 4:51 ` Jerin Jacob
2023-11-01 19:05 ` Sevincer, Abdullah
2023-11-02 10:23 ` Bruce Richardson
2023-11-02 10:48 ` Thomas Monjalon
2023-11-02 18:17 ` Sevincer, Abdullah
2023-10-31 0:10 ` [PATCH v1] event/dlb2: add support for disabling PASID Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALBAE1OQaKpLBNmHZrHXz2m06FFR8mhLk6TwuT5bHnyARkCY=A@mail.gmail.com' \
--to=jerinjacobk@gmail.com \
--cc=abdullah.sevincer@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=grive@u256.net \
--cc=jerinj@marvell.com \
--cc=mike.ximing.chen@intel.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).