Sanitycheck PCI BARs
Subsystems (4)
cover Sanitycheck PCI BARs
From: Piotr Piórkowski <[email protected]>
When initializing the i915, we want to be sure that the PCI BARs have been properly initialized.
As part of this series, I have prepared two patches,
one that introduces BARs names to use in code instead of numbers, and another that adds function to validate BARs before use. This is an evolution of the concept I presented in the patch:
https://patchwork.freedesktop.org/patch/470184/?series=99094
The main difference between the original patch and what I have prepared here is that previously I checked all BARs at the beginning of i915 initialization, and now I only check BAR 0 at beginning. This is due to the fact that I have noticed that it can happen that only BAR 0 is available (I have observed this in the case of virtualization, on some platforms).
Therefore, at the beginning, let's verify only BAR 0, and the others only before the first use.
Piotr Piórkowski (2):
drm/i915: Use of BARs names instead of numbers
drm/i915: Sanitycheck PCI BARs
.../gpu/drm/i915/display/intel_lpe_audio.c | 5 ++-- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 11 +++++--- drivers/gpu/drm/i915/gt/intel_ggtt.c | 16 +++++++++--- drivers/gpu/drm/i915/gt/intel_gt.c | 3 ++- drivers/gpu/drm/i915/gt/intel_region_lmem.c | 17 +++++++------ drivers/gpu/drm/i915/gvt/cfg_space.c | 4 +-- drivers/gpu/drm/i915/i915_pci.c | 25 +++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.h | 4 +++ drivers/gpu/drm/i915/intel_pci_config.h | 7 ++++++ 9 files changed, 73 insertions(+), 19 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 drm/i915: Use of BARs names instead of numbers
From: Piotr Piórkowski <[email protected]>
At the moment, when we refer to some PCI BAR we use the number of this BAR in the code. The meaning of BARs between different platforms may be different. Therefore, in order to organize the code, let's start using defined names instead of numbers.
--- drivers/gpu/drm/i915/display/intel_lpe_audio.c | 5 +++-- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 7 ++++--- drivers/gpu/drm/i915/gt/intel_ggtt.c | 9 +++++---- drivers/gpu/drm/i915/gt/intel_gt.c | 3 ++- drivers/gpu/drm/i915/gt/intel_region_lmem.c | 13 ++++++------- drivers/gpu/drm/i915/gvt/cfg_space.c | 4 ++-- drivers/gpu/drm/i915/intel_pci_config.h | 7 +++++++ 7 files changed, 29 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/display/intel_lpe_audio.c +3 -2
@@ -73,6 +73,7 @@#include "i915_drv.h" #include "intel_de.h" #include "intel_lpe_audio.h" +#include "intel_pci_config.h" #define HAS_LPE_AUDIO (dev_priv) ((dev_priv)->audio.lpe.platdev != NULL)
@@ -100,9 +101,9 @@ lpe_audio_platdev_create(struct drm_i915_private *dev_priv) rsc[0 ].flags =IORESOURCE_IRQ ; rsc[0 ].name ="hdmi-lpe-audio-irq" ; - rsc[1 ].start =pci_resource_start (pdev,0 ) + + rsc[1 ].start =pci_resource_start (pdev,GTTMMADR_BAR ) +I915_HDMI_LPE_AUDIO_BASE ; - rsc[1 ].end =pci_resource_start (pdev,0 ) + + rsc[1 ].end =pci_resource_start (pdev,GTTMMADR_BAR ) +I915_HDMI_LPE_AUDIO_BASE +I915_HDMI_LPE_AUDIO_SIZE -1 ; rsc[1 ].flags =IORESOURCE_MEM ; rsc[1 ].name ="hdmi-lpe-audio-mmio" ;
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +4 -3
@@ -22,6 +22,7 @@#include "i915_utils.h" #include "i915_vgpu.h" #include "intel_mchbar_regs.h" +#include "intel_pci_config.h" /* * The BIOS typically reserves some of the system's memory for the exclusive
@@ -830,7 +831,7 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,/* Use DSM base address instead for stolen memory */ dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE );if (IS_DG1 (uncore->i915)) { - lmem_size =pci_resource_len (pdev,2 ); + lmem_size =pci_resource_len (pdev,GEN12_LMEM_BAR );if (WARN_ON (lmem_size < dsm_base))return ERR_PTR (-ENODEV ); }else {
@@ -842,11 +843,11 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type, } dsm_size = lmem_size - dsm_base; -if (pci_resource_len (pdev,2 ) < lmem_size) { +if (pci_resource_len (pdev,GEN12_LMEM_BAR ) < lmem_size) { io_start =0 ; io_size =0 ; }else { - io_start =pci_resource_start (pdev,2 ) + dsm_base; + io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ) + dsm_base; io_size = dsm_size; }
drivers/gpu/drm/i915/gt/intel_ggtt.c +5 -4
@@ -16,6 +16,7 @@#include "intel_ggtt_gmch.h" #include "intel_gt.h" #include "intel_gt_regs.h" +#include "intel_pci_config.h" #include "i915_drv.h" #include "i915_scatterlist.h" #include "i915_utils.h"
@@ -869,8 +870,8 @@ static int ggtt_probe_common(struct i915_ggtt *ggtt, u64 size)u32 pte_flags;int ret; -GEM_WARN_ON (pci_resource_len (pdev,0 ) !=gen6_gttmmadr_size (i915)); - phys_addr =pci_resource_start (pdev,0 ) +gen6_gttadr_offset (i915); +GEM_WARN_ON (pci_resource_len (pdev,GTTMMADR_BAR ) !=gen6_gttmmadr_size (i915)); + phys_addr =pci_resource_start (pdev,GTTMMADR_BAR ) +gen6_gttadr_offset (i915);/* * On BXT+/ICL+ writes larger than 64 bit to the GTT pagetable range
@@ -930,7 +931,7 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)u16 snb_gmch_ctl;if (!HAS_LMEM (i915)) { - ggtt->gmadr =pci_resource (pdev,2 ); + ggtt->gmadr =pci_resource (pdev,GTT_APERTURE_BAR ); ggtt->mappable_end =resource_size (&ggtt->gmadr); }
@@ -1084,7 +1085,7 @@ static int gen6_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; - ggtt->gmadr =pci_resource (pdev,2 ); + ggtt->gmadr =pci_resource (pdev,GTT_APERTURE_BAR ); ggtt->mappable_end =resource_size (&ggtt->gmadr);/*
drivers/gpu/drm/i915/gt/intel_gt.c +2 -1
@@ -24,6 +24,7 @@#include "intel_gt_requests.h" #include "intel_migrate.h" #include "intel_mocs.h" +#include "intel_pci_config.h" #include "intel_pm.h" #include "intel_rc6.h" #include "intel_renderstate.h"
@@ -827,7 +828,7 @@ int intel_gt_probe_all(struct drm_i915_private *i915)unsigned int mmio_bar;int ret; - mmio_bar =GRAPHICS_VER (i915) ==2 ?1 :0 ; + mmio_bar =GRAPHICS_VER (i915) ==2 ?GEN2_GTTMMADR_BAR :GTTMMADR_BAR ; phys_addr =pci_resource_start (pdev, mmio_bar);/*
drivers/gpu/drm/i915/gt/intel_region_lmem.c +6 -7
@@ -6,6 +6,7 @@#include "i915_drv.h" #include "i915_reg.h" #include "intel_memory_region.h" +#include "intel_pci_config.h" #include "intel_region_lmem.h" #include "intel_region_ttm.h" #include "gem/i915_gem_lmem.h"
@@ -44,7 +45,6 @@ _resize_bar(struct drm_i915_private *i915, int resno, resource_size_t size)drm_info (&i915->drm,"BAR%d resized to %dM\n" , resno,1 << bar_size); } -#define LMEM_BAR_NUM 2static void i915_resize_lmem_bar (struct drm_i915_private *i915,resource_size_t lmem_size) {struct pci_dev *pdev =to_pci_dev (i915->drm.dev);
@@ -55,15 +55,14 @@ static void i915_resize_lmem_bar(struct drm_i915_private *i915, resource_size_tu32 pci_cmd;int i; - current_size =roundup_pow_of_two (pci_resource_len (pdev,LMEM_BAR_NUM )); + current_size =roundup_pow_of_two (pci_resource_len (pdev,GEN12_LMEM_BAR ));if (i915->params.lmem_bar_size) {u32 bar_sizes; rebar_size = i915->params.lmem_bar_size * (resource_size_t )SZ_1M ; - bar_sizes =pci_rebar_get_possible_sizes (pdev, -LMEM_BAR_NUM ); + bar_sizes =pci_rebar_get_possible_sizes (pdev,GEN12_LMEM_BAR );if (rebar_size == current_size)return ;
@@ -106,7 +105,7 @@ static void i915_resize_lmem_bar(struct drm_i915_private *i915, resource_size_tpci_write_config_dword (pdev,PCI_COMMAND , pci_cmd & ~PCI_COMMAND_MEMORY ); -_resize_bar (i915,LMEM_BAR_NUM , rebar_size); +_resize_bar (i915,GEN12_LMEM_BAR , rebar_size);pci_assign_unassigned_bus_resources (pdev->bus);pci_write_config_dword (pdev,PCI_COMMAND , pci_cmd);
@@ -232,8 +231,8 @@ static struct intel_memory_region *setup_lmem(struct intel_gt *gt) mul_u32_u32(i915->params.lmem_size, SZ_1M)); } - io_start =pci_resource_start (pdev,2 ); - io_size =min (pci_resource_len (pdev,2 ), lmem_size); + io_start =pci_resource_start (pdev,GEN12_LMEM_BAR ); + io_size =min (pci_resource_len (pdev,GEN12_LMEM_BAR ), lmem_size);if (!io_size)return ERR_PTR (-EIO );
drivers/gpu/drm/i915/gvt/cfg_space.c +2 -2
@@ -353,9 +353,9 @@ void intel_vgpu_init_cfg_space(struct intel_vgpu *vgpu,memset (vgpu_cfg_space (vgpu) +INTEL_GVT_PCI_OPREGION ,0 ,4 ); vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO ].size = -pci_resource_len (pdev,0 ); +pci_resource_len (pdev,GTTMMADR_BAR ); vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_APERTURE ].size = -pci_resource_len (pdev,2 ); +pci_resource_len (pdev,GTT_APERTURE_BAR );memset (vgpu_cfg_space (vgpu) +PCI_ROM_ADDRESS ,0 ,4 );
drivers/gpu/drm/i915/intel_pci_config.h +7 -0
@@ -6,6 +6,13 @@#ifndef __INTEL_PCI_CONFIG_H__#define __INTEL_PCI_CONFIG_H__ +/* PCI BARs */ +#define GTTMMADR_BAR 0 +#define GEN2_GTTMMADR_BAR 1 +#define GFXMEM_BAR 2 +#define GTT_APERTURE_BAR GFXMEM_BAR +#define GEN12_LMEM_BAR GFXMEM_BAR +/* BSM in include/drm/i915_drm.h */ #define MCHBAR_I915 0x44
Signature · 1 line
2.25.1
PATCH 2/2 drm/i915: Sanitycheck PCI BARs
In reply to Piorkowski, PiotrFrom: Piotr Piórkowski <[email protected]>
For proper operation of i915 we need usable PCI GTTMMADDR BAR 0 (1 for GEN2). In most cases we also need usable PCI GFXMEM BAR 2. Let's add functions to check if BARs are set, and that it have
a size greater than 0.
In case GTTMMADDR BAR, let's validate at the beginning of i915 initialization. For other BARs, let's validate before first use.
--- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 4 ++++ drivers/gpu/drm/i915/gt/intel_ggtt.c | 7 ++++++ drivers/gpu/drm/i915/gt/intel_region_lmem.c | 4 ++++ drivers/gpu/drm/i915/i915_pci.c | 25 +++++++++++++++++++++ drivers/gpu/drm/i915/i915_pci.h | 4 ++++ 5 files changed, 44 insertions(+)
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +4 -0
@@ -18,6 +18,7 @@#include "gt/intel_region_lmem.h" #include "i915_drv.h" #include "i915_gem_stolen.h" +#include "i915_pci.h" #include "i915_reg.h" #include "i915_utils.h" #include "i915_vgpu.h"
@@ -828,6 +829,9 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915, u16 type,if (WARN_ON_ONCE (instance))return ERR_PTR (-ENODEV ); +if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +return ERR_PTR (-ENXIO ); +/* Use DSM base address instead for stolen memory */ dsm_base =intel_uncore_read64 (uncore,GEN12_DSMBASE );if (IS_DG1 (uncore->i915)) {
drivers/gpu/drm/i915/gt/intel_ggtt.c +7 -0
@@ -18,6 +18,7 @@#include "intel_gt_regs.h" #include "intel_pci_config.h" #include "i915_drv.h" +#include "i915_pci.h" #include "i915_scatterlist.h" #include "i915_utils.h" #include "i915_vgpu.h"
@@ -931,6 +932,9 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)u16 snb_gmch_ctl;if (!HAS_LMEM (i915)) { +if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR )) +return -ENXIO ; + ggtt->gmadr =pci_resource (pdev,GTT_APERTURE_BAR ); ggtt->mappable_end =resource_size (&ggtt->gmadr); }
@@ -1085,6 +1089,9 @@ static int gen6_gmch_probe(struct i915_ggtt *ggtt)unsigned int size;u16 snb_gmch_ctl; +if (!i915_pci_resource_valid (pdev,GTT_APERTURE_BAR )) +return -ENXIO ; + ggtt->gmadr =pci_resource (pdev,GTT_APERTURE_BAR ); ggtt->mappable_end =resource_size (&ggtt->gmadr);
drivers/gpu/drm/i915/gt/intel_region_lmem.c +4 -0
@@ -4,6 +4,7 @@*/ #include "i915_drv.h" +#include "i915_pci.h" #include "i915_reg.h" #include "intel_memory_region.h" #include "intel_pci_config.h"
@@ -197,6 +198,9 @@ static struct intel_memory_region *setup_lmem(struct intel_gt *gt)if (!IS_DGFX (i915))return ERR_PTR (-ENODEV ); +if (!i915_pci_resource_valid (pdev,GEN12_LMEM_BAR )) +return ERR_PTR (-ENXIO ); +if (HAS_FLAT_CCS (i915)) {resource_size_t lmem_range;u64 tile_stolen, flat_ccs_base;
drivers/gpu/drm/i915/i915_pci.c +25 -0
@@ -30,6 +30,7 @@#include "i915_drv.h" #include "i915_pci.h" #include "i915_reg.h" +#include "intel_pci_config.h" #define PLATFORM (x) .platform = (x)#define GEN (x) \
@@ -1262,6 +1263,27 @@ static bool force_probe(u16 device_id, const char *devices)return ret; } +bool i915_pci_resource_valid (struct pci_dev *pdev,int bar) +{ +if (!pci_resource_flags (pdev, bar)) +return false; + +if (pci_resource_flags (pdev, bar) &IORESOURCE_UNSET ) +return false; + +if (!pci_resource_len (pdev, bar)) +return false; + +return true; +} + +static bool intel_mmio_bar_valid (struct pci_dev *pdev,struct intel_device_info *intel_info) +{ +int gttmmaddr_bar = intel_info->graphics.ver ==2 ?GEN2_GTTMMADR_BAR :GTTMMADR_BAR ; + +return i915_pci_resource_valid (pdev, gttmmaddr_bar); +} +static int i915_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent) { struct intel_device_info *intel_info =
@@ -1287,6 +1309,9 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (PCI_FUNC (pdev->devfn))return -ENODEV ; +if (!intel_mmio_bar_valid (pdev, intel_info)) +return -ENXIO ; +/* Detect if we need to wait for other drivers early on */ if (intel_modeset_probe_defer (pdev))return -EPROBE_DEFER ;
drivers/gpu/drm/i915/i915_pci.h +4 -0
@@ -6,7 +6,11 @@#ifndef __I915_PCI_H__#define __I915_PCI_H__ +#include <linux/pci.h> +int i915_pci_register_driver (void );void i915_pci_unregister_driver (void ); +bool i915_pci_resource_valid (struct pci_dev *pdev,int bar); +#endif /* __I915_PCI_H__ */
Signature · 1 line
2.25.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for Sanitycheck PCI BARs
In reply to Piorkowski, Piotr== Series Details ==
== 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);
^~~~~~~~~~~~~~~~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 2scripts/Makefile.build:466: recipe for target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2scripts/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
Re: [Intel-gfx] ✗ Fi.CI.BUILD: failure for Sanitycheck PCI BARs
Patchwork <[email protected]> wrote on pon [2022-lip-25 19:45:33 +0000]:
Quoted 38 lines
== Series Details ==
Series: Sanitycheck PCI BARs
URL : https://patchwork.freedesktop.org/series/106686/
State : failure== Summary ==
Error: make failed
CALLscripts/checksyscalls.sh
CALLscripts/atomic/check-atomics.sh
DESCEND objtoolCHK 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’?
Quoted 8 lines
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:
drivers/gpu/drm/i915/gvt/cfg_space.c +1 -0
@@ -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
Quoted 12 lines
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 1scripts/Makefile.build:466: recipe for target 'drivers/gpu/drm/i915' failed make[3]: *** [drivers/gpu/drm/i915] Error 2scripts/Makefile.build:466: recipe for target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2scripts/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