✗ CI.checkpatch: warning for PCI: VF resizable BAR (rev8)

Patchwork patchwork at emeril.freedesktop.org
Wed May 28 07:15:54 UTC 2025


== Series Details ==

Series: PCI: VF resizable BAR (rev8)
URL   : https://patchwork.freedesktop.org/series/138887/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
202708c00696422fd217223bb679a353a5936e23
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 6a7b6b49fd8ee01c15489d2771e7bbbeeebe8d6f
Author: Michał Winiarski <michal.winiarski at intel.com>
Date:   Tue May 27 14:06:37 2025 +0200

    drm/xe/pf: Set VF LMEM BAR size
    
    LMEM is partitioned between multiple VFs and we expect that the more
    VFs we have, the less LMEM is assigned to each VF.
    This means that we can achieve full LMEM BAR access without the need to
    attempt full VF LMEM BAR resize via pci_resize_resource().
    
    Always try to set the largest possible BAR size that allows to fit the
    number of enabled VFs and inform the user in case the resize attempt is
    not successful.
    
    Signed-off-by: Michał Winiarski <michal.winiarski at intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
+ /mt/dim checkpatch 07b6736f75df3e60d5e20eda53ecb97f6d9a66c0 drm-intel
f6f31e801e3f PCI/IOV: Restore VF resizable BAR state after reset
-:115: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#115: FILE: drivers/pci/pci.h:723:
 }
+static inline u16 pci_iov_vf_rebar_cap(struct pci_dev *dev)

total: 0 errors, 0 warnings, 1 checks, 106 lines checked
34da00592228 PCI: Add a helper to convert between VF BAR number and IOV resource
-:112: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#112: FILE: drivers/pci/pci.h:703:
 }
+static inline int pci_resource_num_from_vf_bar(int resno)

-:116: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#116: FILE: drivers/pci/pci.h:707:
+}
+static inline int pci_resource_num_to_vf_bar(int resno)

-:127: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#127: FILE: drivers/pci/pci.h:739:
 }
+static inline int pci_resource_num_from_vf_bar(int resno)

-:132: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#132: FILE: drivers/pci/pci.h:744:
+}
+static inline int pci_resource_num_to_vf_bar(int resno)

total: 0 errors, 0 warnings, 4 checks, 111 lines checked
f2be1ba1e5df PCI: Allow IOV resources to be resized in pci_resize_resource()
-:93: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#93: FILE: drivers/pci/pci.h:734:
 }
+static inline void pci_iov_resource_set_size(struct pci_dev *dev, int resno,

total: 0 errors, 0 warnings, 1 checks, 127 lines checked
957fcd5b0b9d PCI/IOV: Check that VF BAR fits within the reservation
f88418655256 PCI: Allow drivers to control VF BAR size
-:72: WARNING:ENOTSUPP: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP
#72: FILE: drivers/pci/iov.c:1348:
+		return -ENOTSUPP;

total: 0 errors, 1 warnings, 0 checks, 105 lines checked
6a7b6b49fd8e drm/xe/pf: Set VF LMEM BAR size




More information about the Intel-xe mailing list