Message ID | 20230725214025.9288-1-brett.creeley@amd.com (mailing list archive) |
---|---|
Headers | show |
Series | pds-vfio-pci driver | expand |
On Tue, Jul 25, 2023 at 02:40:18PM -0700, Brett Creeley wrote: > Note: This series is based on the latest linux-next tree. I did not base > it on the Alex Williamson's vfio/next because it has not yet pulled in > the latest changes which include the pds_vdpa driver. The pds_vdpa > driver has conflicts with the pds-vfio-pci driver that needed to be > resolved, which is why this series is based on the latest linux-next > tree. This is not the right way to handle this, Alex cannot apply a series against linux-next. If you can't make a shared branch and the conflicts are too significant to forward to Linus then you have to wait for the next cycle. Jason
On Wed, 26 Jul 2023 10:35:06 -0300 Jason Gunthorpe <jgg@nvidia.com> wrote: > On Tue, Jul 25, 2023 at 02:40:18PM -0700, Brett Creeley wrote: > > > Note: This series is based on the latest linux-next tree. I did not base > > it on the Alex Williamson's vfio/next because it has not yet pulled in > > the latest changes which include the pds_vdpa driver. The pds_vdpa > > driver has conflicts with the pds-vfio-pci driver that needed to be > > resolved, which is why this series is based on the latest linux-next > > tree. > > This is not the right way to handle this, Alex cannot apply a series > against linux-next. > > If you can't make a shared branch and the conflicts are too > significant to forward to Linus then you have to wait for the next > cycle. Brett, can you elaborate on what's missing from my next branch vs linux-next? AFAICT the pds_vdpa driver went into mainline via a8d70602b186 ("Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost") during the v6.5 merge window and I'm not spotting anything in linux-next obviously relevant to pds-vfio-pci since then. There's a debugfs fix on the list, but that's sufficiently trivial to fixup on merge if necessary. This series also applies cleanly vs my current next branch. Was the issue simply that I hadn't updated my next branch (done yesterday) since the v6.5 merge window? You can always send patches vs mainline. Thanks, Alex
On 7/26/2023 11:50 AM, Alex Williamson wrote: > Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. > > > On Wed, 26 Jul 2023 10:35:06 -0300 > Jason Gunthorpe <jgg@nvidia.com> wrote: > >> On Tue, Jul 25, 2023 at 02:40:18PM -0700, Brett Creeley wrote: >> >>> Note: This series is based on the latest linux-next tree. I did not base >>> it on the Alex Williamson's vfio/next because it has not yet pulled in >>> the latest changes which include the pds_vdpa driver. The pds_vdpa >>> driver has conflicts with the pds-vfio-pci driver that needed to be >>> resolved, which is why this series is based on the latest linux-next >>> tree. >> >> This is not the right way to handle this, Alex cannot apply a series >> against linux-next. >> >> If you can't make a shared branch and the conflicts are too >> significant to forward to Linus then you have to wait for the next >> cycle. > > Brett, can you elaborate on what's missing from my next branch vs > linux-next? > > AFAICT the pds_vdpa driver went into mainline via a8d70602b186 ("Merge > tag 'for_linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost") during the > v6.5 merge window and I'm not spotting anything in linux-next obviously > relevant to pds-vfio-pci since then. > > There's a debugfs fix on the list, but that's sufficiently trivial to > fixup on merge if necessary. This series also applies cleanly vs my > current next branch. Was the issue simply that I hadn't updated my > next branch (done yesterday) since the v6.5 merge window? You can > always send patches vs mainline. Thanks, Yeah, this was exactly it. Your vfio/next branch didn't have the pds_vdpa series in it yet, which also included some changes to the header files used by the pds-vfio-pci series, which is where the conflicts are. Should I rebase my series on your vfio/next branch and resend? Thanks, Brett > > Alex >
On Wed, 26 Jul 2023 12:05:13 -0700 Brett Creeley <bcreeley@amd.com> wrote: > On 7/26/2023 11:50 AM, Alex Williamson wrote: > > Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. > > > > > > On Wed, 26 Jul 2023 10:35:06 -0300 > > Jason Gunthorpe <jgg@nvidia.com> wrote: > > > >> On Tue, Jul 25, 2023 at 02:40:18PM -0700, Brett Creeley wrote: > >> > >>> Note: This series is based on the latest linux-next tree. I did not base > >>> it on the Alex Williamson's vfio/next because it has not yet pulled in > >>> the latest changes which include the pds_vdpa driver. The pds_vdpa > >>> driver has conflicts with the pds-vfio-pci driver that needed to be > >>> resolved, which is why this series is based on the latest linux-next > >>> tree. > >> > >> This is not the right way to handle this, Alex cannot apply a series > >> against linux-next. > >> > >> If you can't make a shared branch and the conflicts are too > >> significant to forward to Linus then you have to wait for the next > >> cycle. > > > > Brett, can you elaborate on what's missing from my next branch vs > > linux-next? > > > > AFAICT the pds_vdpa driver went into mainline via a8d70602b186 ("Merge > > tag 'for_linus' of > > git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost") during the > > v6.5 merge window and I'm not spotting anything in linux-next obviously > > relevant to pds-vfio-pci since then. > > > > There's a debugfs fix on the list, but that's sufficiently trivial to > > fixup on merge if necessary. This series also applies cleanly vs my > > current next branch. Was the issue simply that I hadn't updated my > > next branch (done yesterday) since the v6.5 merge window? You can > > always send patches vs mainline. Thanks, > > Yeah, this was exactly it. Your vfio/next branch didn't have the > pds_vdpa series in it yet, which also included some changes to the > header files used by the pds-vfio-pci series, which is where the > conflicts are. Ok, so let's put this back on the table as a candidate for v6.6. > Should I rebase my series on your vfio/next branch and resend? It doesn't seem necessary, I think rebasing my next branch to v6.5-rc3 made it effectively equivalent to linux-next for the purposes of this driver. It applies cleanly, so I think we can continue review from this. Thanks, Alex
On Tue, Jul 25, 2023 at 02:40:18PM -0700, Brett Creeley wrote: > This is a patchset for a new vendor specific VFIO driver > (pds-vfio-pci) for use with the AMD/Pensando Distributed Services > Card (DSC). This driver makes use of the pds_core driver. > > This driver will use the pds_core device's adminq as the VFIO > control path to the DSC. In order to make adminq calls, the VFIO > instance makes use of functions exported by the pds_core driver. > > In order to receive events from pds_core, the pds-vfio-pci driver > registers to a private notifier. This is needed for various events > that come from the device. > > An ASCII diagram of a VFIO instance looks something like this and can > be used with the VFIO subsystem to provide the VF device VFIO and live > migration support. > > .------. .-----------------------. > | QEMU |--| VM .-------------. | > '......' | | Eth VF | | > | | .-------------. | > | | | SR-IOV VF | | > | | '-------------' | > | '------------||---------' > .--------------. || > |/dev/<vfio_fd>| || > '--------------' || > Host Userspace | || > =================================================== || > Host Kernel | || > .--------. || > |vfio-pci| || > '--------' || > .------------------. || || > | | exported API |<----+ || || > | '--------------| | || || > | | .--------------. || > | pds_core |--->| pds-vfio-pci | || > '------------------' | '--------------' || > || | || || > 09:00.0 notifier 09:00.1 || > == PCI ===============================================||===== > || || || > .----------. .----------. || > ,-----| PF |----------| VF |-------------------, > | '----------' |'----------' VF | > | DSC | data/control | > | | path | > ----------------------------------------------------------- > > The pds-vfio-pci driver is targeted to reside in drivers/vfio/pci/pds. > It makes use of and introduces new files in the common include/linux/pds > include directory. > > Note: This series is based on the latest linux-next tree. I did not base > it on the Alex Williamson's vfio/next because it has not yet pulled in > the latest changes which include the pds_vdpa driver. The pds_vdpa > driver has conflicts with the pds-vfio-pci driver that needed to be > resolved, which is why this series is based on the latest linux-next > tree. For series, Reviewed-by: Simon Horman <horms@kernel.org>