[Intel-gfx] ✗ Fi.CI.BUILD: failure for Sanitycheck PCI BARs

Piotr Piórkowski piotr.piorkowski at intel.com
Tue Jul 26 10:21:21 UTC 2022


Patchwork <patchwork at emeril.freedesktop.org> wrote on pon [2022-lip-25 19:45:33 +0000]:
> == Series Details ==
> 
> Series: Sanitycheck PCI BARs
> URL   : https://patchwork.freedesktop.org/series/106686/
> State : failure
> 
> == Summary ==
> 
> Error: make failed
>   CALL    scripts/checksyscalls.sh
>   CALL    scripts/atomic/check-atomics.sh
>   DESCEND objtool
>   CHK     include/generated/compile.h
>   LD [M]  drivers/gpu/drm/i915/i915.o
>   CC [M]  drivers/gpu/drm/i915/gvt/cfg_space.o
> In file included from ./drivers/gpu/drm/i915/display/intel_opregion.h:29,
>                  from ./drivers/gpu/drm/i915/i915_drv.h:50,
>                  from drivers/gpu/drm/i915/gvt/cfg_space.c:34:
> drivers/gpu/drm/i915/gvt/cfg_space.c: In function ‘intel_vgpu_init_cfg_space’:
> drivers/gpu/drm/i915/gvt/cfg_space.c:356:26: error: ‘GTTMMADR_BAR’ undeclared (first use in this function)
>    pci_resource_len(pdev, GTTMMADR_BAR);
>                           ^~~~~~~~~~~~
> ./include/linux/pci.h:1951:54: note: in definition of macro ‘pci_resource_end’
>  #define pci_resource_end(dev, bar) ((dev)->resource[(bar)].end)
>                                                       ^~~
> drivers/gpu/drm/i915/gvt/cfg_space.c:356:3: note: in expansion of macro ‘pci_resource_len’
>    pci_resource_len(pdev, GTTMMADR_BAR);
>    ^~~~~~~~~~~~~~~~
> drivers/gpu/drm/i915/gvt/cfg_space.c:356:26: note: each undeclared identifier is reported only once for each function it appears in
>    pci_resource_len(pdev, GTTMMADR_BAR);
>                           ^~~~~~~~~~~~
> ./include/linux/pci.h:1951:54: note: in definition of macro ‘pci_resource_end’
>  #define pci_resource_end(dev, bar) ((dev)->resource[(bar)].end)
>                                                       ^~~
> drivers/gpu/drm/i915/gvt/cfg_space.c:356:3: note: in expansion of macro ‘pci_resource_len’
>    pci_resource_len(pdev, GTTMMADR_BAR);
>    ^~~~~~~~~~~~~~~~
> drivers/gpu/drm/i915/gvt/cfg_space.c:358:26: error: ‘GTT_APERTURE_BAR’ undeclared (first use in this function); did you mean ‘GVT_PORT_MAX’?
>    pci_resource_len(pdev, GTT_APERTURE_BAR);
>                           ^~~~~~~~~~~~~~~~
> ./include/linux/pci.h:1951:54: note: in definition of macro ‘pci_resource_end’
>  #define pci_resource_end(dev, bar) ((dev)->resource[(bar)].end)
>                                                       ^~~
> drivers/gpu/drm/i915/gvt/cfg_space.c:358:3: note: in expansion of macro ‘pci_resource_len’
>    pci_resource_len(pdev, GTT_APERTURE_BAR);
>    ^~~~~~~~~~~~~~~~

ohhh... I test it with disabled DRM_I915_GVT and I forgot to add one header:

diff --git a/drivers/gpu/drm/i915/gvt/cfg_space.c b/drivers/gpu/drm/i915/gvt/cfg_space.c
index c22d3a388aa5..eef3bba8a41b 100644
--- a/drivers/gpu/drm/i915/gvt/cfg_space.c
+++ b/drivers/gpu/drm/i915/gvt/cfg_space.c
@@ -33,6 +33,7 @@
 
 #include "i915_drv.h"
 #include "gvt.h"
+#include "intel_pci_config.h"
 
 enum {
        INTEL_GVT_PCI_BAR_GTTMMIO = 0,


I will send the corrected series in the next version

Thanks
Piotr
> scripts/Makefile.build:249: recipe for target 'drivers/gpu/drm/i915/gvt/cfg_space.o' failed
> make[4]: *** [drivers/gpu/drm/i915/gvt/cfg_space.o] Error 1
> scripts/Makefile.build:466: recipe for target 'drivers/gpu/drm/i915' failed
> make[3]: *** [drivers/gpu/drm/i915] Error 2
> scripts/Makefile.build:466: recipe for target 'drivers/gpu/drm' failed
> make[2]: *** [drivers/gpu/drm] Error 2
> scripts/Makefile.build:466: recipe for target 'drivers/gpu' failed
> make[1]: *** [drivers/gpu] Error 2
> Makefile:1843: recipe for target 'drivers' failed
> make: *** [drivers] Error 2
> 
> 

-- 


More information about the Intel-gfx mailing list