Skip to content

Commit 55a42f7

Browse files
committed
Merge tag 'vfio-v6.18-rc1' of https://github.com/awilliam/linux-vfio
Pull VFIO updates from Alex Williamson: - Use fdinfo to expose the sysfs path of a device represented by a vfio device file (Alex Mastro) - Mark vfio-fsl-mc, vfio-amba, and the reset functions for vfio-platform for removal as these are either orphaned or believed to be unused (Alex Williamson) - Add reviewers for vfio-platform to save it from also being marked for removal (Mostafa Saleh, Pranjal Shrivastava) - VFIO selftests, including basic sanity testing and minimal userspace drivers for testing against real hardware. This is also expected to provide integration with KVM selftests for KVM-VFIO interfaces (David Matlack, Josh Hilke) - Fix drivers/cdx and vfio/cdx to build without CONFIG_GENERIC_MSI_IRQ (Nipun Gupta) - Fix reference leak in hisi_acc (Miaoqian Lin) - Use consistent return for unsupported device feature (Alex Mastro) - Unwind using the correct memory free callback in vfio/pds (Zilin Guan) - Use IRQ_DISABLE_LAZY flag to improve handling of pre-PCI2.3 INTx and resolve stalled interrupt on ppc64 (Timothy Pearson) - Enable GB300 in nvgrace-gpu vfio-pci variant driver (Tushar Dave) - Misc: - Drop unnecessary ternary conversion in vfio/pci (Xichao Zhao) - Grammatical fix in nvgrace-gpu (Morduan Zang) - Update Shameer's email address (Shameer Kolothum) - Fix document build warning (Alex Williamson) * tag 'vfio-v6.18-rc1' of https://github.com/awilliam/linux-vfio: (48 commits) vfio/nvgrace-gpu: Add GB300 SKU to the devid table vfio/pci: Fix INTx handling on legacy non-PCI 2.3 devices vfio/pds: replace bitmap_free with vfree vfio: return -ENOTTY for unsupported device feature hisi_acc_vfio_pci: Fix reference leak in hisi_acc_vfio_debug_init vfio/platform: Mark reset drivers for removal vfio/amba: Mark for removal MAINTAINERS: Add myself as VFIO-platform reviewer MAINTAINERS: Add myself as VFIO-platform reviewer docs: proc.rst: Fix VFIO Device title formatting vfio: selftests: Fix .gitignore for already tracked files vfio/cdx: update driver to build without CONFIG_GENERIC_MSI_IRQ cdx: don't select CONFIG_GENERIC_MSI_IRQ MAINTAINERS: Update Shameer Kolothum's email address vfio: selftests: Add a script to help with running VFIO selftests vfio: selftests: Make iommufd the default iommu_mode vfio: selftests: Add iommufd mode vfio: selftests: Add iommufd_compat_type1{,v2} modes vfio: selftests: Add vfio_type1v2_mode vfio: selftests: Replicate tests across all iommu_modes ...
2 parents cbf33b8 + 407aa63 commit 55a42f7

49 files changed

Lines changed: 3323 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ Sergey Senozhatsky <senozhatsky@chromium.org> <sergey.senozhatsky@mail.by>
711711
Sergey Senozhatsky <senozhatsky@chromium.org> <senozhatsky@google.com>
712712
Seth Forshee <sforshee@kernel.org> <seth.forshee@canonical.com>
713713
Shakeel Butt <shakeel.butt@linux.dev> <shakeelb@google.com>
714+
Shameer Kolothum <skolothumtho@nvidia.com> <shameerali.kolothum.thodi@huawei.com>
714715
Shannon Nelson <sln@onemain.com> <shannon.nelson@amd.com>
715716
Shannon Nelson <sln@onemain.com> <snelson@pensando.io>
716717
Shannon Nelson <sln@onemain.com> <shannon.nelson@intel.com>

Documentation/filesystems/proc.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,6 +2159,20 @@ DMA Buffer files
21592159
where 'size' is the size of the DMA buffer in bytes. 'count' is the file count of
21602160
the DMA buffer file. 'exp_name' is the name of the DMA buffer exporter.
21612161

2162+
VFIO Device files
2163+
~~~~~~~~~~~~~~~~~
2164+
2165+
::
2166+
2167+
pos: 0
2168+
flags: 02000002
2169+
mnt_id: 17
2170+
ino: 5122
2171+
vfio-device-syspath: /sys/devices/pci0000:e0/0000:e0:01.1/0000:e1:00.0/0000:e2:05.0/0000:e8:00.0
2172+
2173+
where 'vfio-device-syspath' is the sysfs path corresponding to the VFIO device
2174+
file.
2175+
21622176
3.9 /proc/<pid>/map_files - Information about memory mapped files
21632177
---------------------------------------------------------------------
21642178
This directory contains symbolic links which represent memory mapped files

MAINTAINERS

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26793,15 +26793,15 @@ F: drivers/vfio/
2679326793
F: include/linux/vfio.h
2679426794
F: include/linux/vfio_pci_core.h
2679526795
F: include/uapi/linux/vfio.h
26796+
F: tools/testing/selftests/vfio/
2679626797

2679726798
VFIO FSL-MC DRIVER
2679826799
L: kvm@vger.kernel.org
26799-
S: Orphan
26800+
S: Obsolete
2680026801
F: drivers/vfio/fsl-mc/
2680126802

2680226803
VFIO HISILICON PCI DRIVER
2680326804
M: Longfang Liu <liulongfang@huawei.com>
26804-
M: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
2680526805
L: kvm@vger.kernel.org
2680626806
S: Maintained
2680726807
F: drivers/vfio/pci/hisilicon/
@@ -26830,7 +26830,7 @@ F: drivers/vfio/pci/nvgrace-gpu/
2683026830
VFIO PCI DEVICE SPECIFIC DRIVERS
2683126831
R: Jason Gunthorpe <jgg@nvidia.com>
2683226832
R: Yishai Hadas <yishaih@nvidia.com>
26833-
R: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
26833+
R: Shameer Kolothum <skolothumtho@nvidia.com>
2683426834
R: Kevin Tian <kevin.tian@intel.com>
2683526835
L: kvm@vger.kernel.org
2683626836
S: Maintained
@@ -26846,6 +26846,8 @@ F: drivers/vfio/pci/pds/
2684626846

2684726847
VFIO PLATFORM DRIVER
2684826848
M: Eric Auger <eric.auger@redhat.com>
26849+
R: Mostafa Saleh <smostafa@google.com>
26850+
R: Pranjal Shrivastava <praan@google.com>
2684926851
L: kvm@vger.kernel.org
2685026852
S: Maintained
2685126853
F: drivers/vfio/platform/
@@ -26857,6 +26859,12 @@ L: qat-linux@intel.com
2685726859
S: Supported
2685826860
F: drivers/vfio/pci/qat/
2685926861

26862+
VFIO SELFTESTS
26863+
M: David Matlack <dmatlack@google.com>
26864+
L: kvm@vger.kernel.org
26865+
S: Maintained
26866+
F: tools/testing/selftests/vfio/
26867+
2686026868
VFIO VIRTIO PCI DRIVER
2686126869
M: Yishai Hadas <yishaih@nvidia.com>
2686226870
L: kvm@vger.kernel.org

drivers/cdx/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
config CDX_BUS
99
bool "CDX Bus driver"
1010
depends on OF && ARM64 || COMPILE_TEST
11-
select GENERIC_MSI_IRQ
1211
help
1312
Driver to enable Composable DMA Transfer(CDX) Bus. CDX bus
1413
exposes Fabric devices which uses composable DMA IP to the

drivers/cdx/cdx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static int cdx_probe(struct device *dev)
310310
* Setup MSI device data so that generic MSI alloc/free can
311311
* be used by the device driver.
312312
*/
313-
if (cdx->msi_domain) {
313+
if (IS_ENABLED(CONFIG_GENERIC_MSI_IRQ) && cdx->msi_domain) {
314314
error = msi_setup_device_data(&cdx_dev->dev);
315315
if (error)
316316
return error;
@@ -833,7 +833,7 @@ int cdx_device_add(struct cdx_dev_params *dev_params)
833833
((cdx->id << CDX_CONTROLLER_ID_SHIFT) | (cdx_dev->bus_num & CDX_BUS_NUM_MASK)),
834834
cdx_dev->dev_num);
835835

836-
if (cdx->msi_domain) {
836+
if (IS_ENABLED(CONFIG_GENERIC_MSI_IRQ) && cdx->msi_domain) {
837837
cdx_dev->num_msi = dev_params->num_msi;
838838
dev_set_msi_domain(&cdx_dev->dev, cdx->msi_domain);
839839
}

drivers/cdx/controller/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ if CDX_BUS
1010
config CDX_CONTROLLER
1111
tristate "CDX bus controller"
1212
depends on HAS_DMA
13-
select GENERIC_MSI_IRQ
1413
select REMOTEPROC
1514
select RPMSG
1615
help

drivers/cdx/controller/cdx_controller.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ static int xlnx_cdx_probe(struct platform_device *pdev)
193193
cdx->ops = &cdx_ops;
194194

195195
/* Create MSI domain */
196-
cdx->msi_domain = cdx_msi_domain_init(&pdev->dev);
196+
if (IS_ENABLED(CONFIG_GENERIC_MSI_IRQ))
197+
cdx->msi_domain = cdx_msi_domain_init(&pdev->dev);
197198
if (!cdx->msi_domain) {
198199
ret = dev_err_probe(&pdev->dev, -ENODEV, "cdx_msi_domain_init() failed");
199200
goto cdx_msi_fail;

drivers/dma/idxd/registers.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
#ifndef _IDXD_REGISTERS_H_
44
#define _IDXD_REGISTERS_H_
55

6+
#ifdef __KERNEL__
67
#include <uapi/linux/idxd.h>
8+
#else
9+
#include <linux/idxd.h>
10+
#endif
711

812
/* PCI Config */
913
#define PCI_DEVICE_ID_INTEL_DSA_GNRD 0x11fb

drivers/dma/ioat/dma.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#define IOAT_DMA_DCA_ANY_CPU ~0
2121

22+
int system_has_dca_enabled(struct pci_dev *pdev);
23+
2224
#define to_ioatdma_device(dev) container_of(dev, struct ioatdma_device, dma_dev)
2325
#define to_dev(ioat_chan) (&(ioat_chan)->ioat_dma->pdev->dev)
2426
#define to_pdev(ioat_chan) ((ioat_chan)->ioat_dma->pdev)

drivers/dma/ioat/hw.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
#define IOAT_VER_3_3 0x33 /* Version 3.3 */
6464
#define IOAT_VER_3_4 0x34 /* Version 3.4 */
6565

66-
67-
int system_has_dca_enabled(struct pci_dev *pdev);
68-
6966
#define IOAT_DESC_SZ 64
7067

7168
struct ioat_dma_descriptor {

0 commit comments

Comments
 (0)