From: kernel test robot <lkp@intel.com>
To: Andi Shyti <andi.shyti@linux.intel.com>,
Intel GFX <intel-gfx@lists.freedesktop.org>,
DRI Devel <dri-devel@lists.freedesktop.org>
Cc: "Michał Winiarski" <michal.winiarski@intel.com>,
llvm@lists.linux.dev,
"Lucas De Marchi" <lucas.demarchi@intel.com>,
"Chris Wilson" <chris@chris-wilson.co.uk>,
kbuild-all@lists.01.org
Subject: Re: [Intel-gfx] [PATCH RESEND v7 12/12] drm/i915: Move the GGTT from i915 private data to the GT
Date: Tue, 14 Dec 2021 00:12:36 +0800 [thread overview]
Message-ID: <202112132358.IwEcWeWW-lkp@intel.com> (raw)
In-Reply-To: <20211212152117.118428-13-andi.shyti@linux.intel.com>
Hi Andi,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on drm/drm-next]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a003-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132358.IwEcWeWW-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/98ef49d710790dda7a193c10b5b7f28516f730bc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
git checkout 98ef49d710790dda7a193c10b5b7f28516f730bc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gvt/gtt.c:321:25: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:282:41: note: passing argument to parameter 'ggtt' here
static u64 read_pte64(struct i915_ggtt *ggtt, unsigned long index)
^
drivers/gpu/drm/i915/gvt/gtt.c:346:15: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, index, e->val64);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2900:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2908:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
4 errors generated.
vim +321 drivers/gpu/drm/i915/gvt/gtt.c
2707e44466881d Zhi Wang 2016-03-28 302
4b2dbbc22541e4 Changbin Du 2017-08-02 303 static inline int gtt_get_entry64(void *pt,
2707e44466881d Zhi Wang 2016-03-28 304 struct intel_gvt_gtt_entry *e,
2707e44466881d Zhi Wang 2016-03-28 305 unsigned long index, bool hypervisor_access, unsigned long gpa,
2707e44466881d Zhi Wang 2016-03-28 306 struct intel_vgpu *vgpu)
2707e44466881d Zhi Wang 2016-03-28 307 {
2707e44466881d Zhi Wang 2016-03-28 308 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info;
2707e44466881d Zhi Wang 2016-03-28 309 int ret;
2707e44466881d Zhi Wang 2016-03-28 310
2707e44466881d Zhi Wang 2016-03-28 311 if (WARN_ON(info->gtt_entry_size != 8))
4b2dbbc22541e4 Changbin Du 2017-08-02 312 return -EINVAL;
2707e44466881d Zhi Wang 2016-03-28 313
2707e44466881d Zhi Wang 2016-03-28 314 if (hypervisor_access) {
2707e44466881d Zhi Wang 2016-03-28 315 ret = intel_gvt_hypervisor_read_gpa(vgpu, gpa +
2707e44466881d Zhi Wang 2016-03-28 316 (index << info->gtt_entry_size_shift),
2707e44466881d Zhi Wang 2016-03-28 317 &e->val64, 8);
4b2dbbc22541e4 Changbin Du 2017-08-02 318 if (WARN_ON(ret))
4b2dbbc22541e4 Changbin Du 2017-08-02 319 return ret;
2707e44466881d Zhi Wang 2016-03-28 320 } else if (!pt) {
a61ac1e75105a0 Chris Wilson 2020-03-06 @321 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
2707e44466881d Zhi Wang 2016-03-28 322 } else {
2707e44466881d Zhi Wang 2016-03-28 323 e->val64 = *((u64 *)pt + index);
2707e44466881d Zhi Wang 2016-03-28 324 }
4b2dbbc22541e4 Changbin Du 2017-08-02 325 return 0;
2707e44466881d Zhi Wang 2016-03-28 326 }
2707e44466881d Zhi Wang 2016-03-28 327
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Andi Shyti <andi.shyti@linux.intel.com>,
Intel GFX <intel-gfx@lists.freedesktop.org>,
DRI Devel <dri-devel@lists.freedesktop.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
"Michał Winiarski" <michal.winiarski@intel.com>,
"Andi Shyti" <andi@etezian.org>,
"Lucas De Marchi" <lucas.demarchi@intel.com>,
"Chris Wilson" <chris@chris-wilson.co.uk>
Subject: Re: [PATCH RESEND v7 12/12] drm/i915: Move the GGTT from i915 private data to the GT
Date: Tue, 14 Dec 2021 00:12:36 +0800 [thread overview]
Message-ID: <202112132358.IwEcWeWW-lkp@intel.com> (raw)
In-Reply-To: <20211212152117.118428-13-andi.shyti@linux.intel.com>
Hi Andi,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on drm/drm-next]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a003-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132358.IwEcWeWW-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/98ef49d710790dda7a193c10b5b7f28516f730bc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
git checkout 98ef49d710790dda7a193c10b5b7f28516f730bc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gvt/gtt.c:321:25: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:282:41: note: passing argument to parameter 'ggtt' here
static u64 read_pte64(struct i915_ggtt *ggtt, unsigned long index)
^
drivers/gpu/drm/i915/gvt/gtt.c:346:15: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, index, e->val64);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2900:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2908:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
4 errors generated.
vim +321 drivers/gpu/drm/i915/gvt/gtt.c
2707e44466881d Zhi Wang 2016-03-28 302
4b2dbbc22541e4 Changbin Du 2017-08-02 303 static inline int gtt_get_entry64(void *pt,
2707e44466881d Zhi Wang 2016-03-28 304 struct intel_gvt_gtt_entry *e,
2707e44466881d Zhi Wang 2016-03-28 305 unsigned long index, bool hypervisor_access, unsigned long gpa,
2707e44466881d Zhi Wang 2016-03-28 306 struct intel_vgpu *vgpu)
2707e44466881d Zhi Wang 2016-03-28 307 {
2707e44466881d Zhi Wang 2016-03-28 308 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info;
2707e44466881d Zhi Wang 2016-03-28 309 int ret;
2707e44466881d Zhi Wang 2016-03-28 310
2707e44466881d Zhi Wang 2016-03-28 311 if (WARN_ON(info->gtt_entry_size != 8))
4b2dbbc22541e4 Changbin Du 2017-08-02 312 return -EINVAL;
2707e44466881d Zhi Wang 2016-03-28 313
2707e44466881d Zhi Wang 2016-03-28 314 if (hypervisor_access) {
2707e44466881d Zhi Wang 2016-03-28 315 ret = intel_gvt_hypervisor_read_gpa(vgpu, gpa +
2707e44466881d Zhi Wang 2016-03-28 316 (index << info->gtt_entry_size_shift),
2707e44466881d Zhi Wang 2016-03-28 317 &e->val64, 8);
4b2dbbc22541e4 Changbin Du 2017-08-02 318 if (WARN_ON(ret))
4b2dbbc22541e4 Changbin Du 2017-08-02 319 return ret;
2707e44466881d Zhi Wang 2016-03-28 320 } else if (!pt) {
a61ac1e75105a0 Chris Wilson 2020-03-06 @321 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
2707e44466881d Zhi Wang 2016-03-28 322 } else {
2707e44466881d Zhi Wang 2016-03-28 323 e->val64 = *((u64 *)pt + index);
2707e44466881d Zhi Wang 2016-03-28 324 }
4b2dbbc22541e4 Changbin Du 2017-08-02 325 return 0;
2707e44466881d Zhi Wang 2016-03-28 326 }
2707e44466881d Zhi Wang 2016-03-28 327
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Andi Shyti <andi.shyti@linux.intel.com>,
Intel GFX <intel-gfx@lists.freedesktop.org>,
DRI Devel <dri-devel@lists.freedesktop.org>
Cc: "Michał Winiarski" <michal.winiarski@intel.com>,
llvm@lists.linux.dev,
"Lucas De Marchi" <lucas.demarchi@intel.com>,
"Chris Wilson" <chris@chris-wilson.co.uk>,
"Andi Shyti" <andi@etezian.org>,
kbuild-all@lists.01.org
Subject: Re: [PATCH RESEND v7 12/12] drm/i915: Move the GGTT from i915 private data to the GT
Date: Tue, 14 Dec 2021 00:12:36 +0800 [thread overview]
Message-ID: <202112132358.IwEcWeWW-lkp@intel.com> (raw)
In-Reply-To: <20211212152117.118428-13-andi.shyti@linux.intel.com>
Hi Andi,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on drm/drm-next]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a003-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132358.IwEcWeWW-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/98ef49d710790dda7a193c10b5b7f28516f730bc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
git checkout 98ef49d710790dda7a193c10b5b7f28516f730bc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gvt/gtt.c:321:25: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:282:41: note: passing argument to parameter 'ggtt' here
static u64 read_pte64(struct i915_ggtt *ggtt, unsigned long index)
^
drivers/gpu/drm/i915/gvt/gtt.c:346:15: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, index, e->val64);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2900:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2908:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
4 errors generated.
vim +321 drivers/gpu/drm/i915/gvt/gtt.c
2707e44466881d Zhi Wang 2016-03-28 302
4b2dbbc22541e4 Changbin Du 2017-08-02 303 static inline int gtt_get_entry64(void *pt,
2707e44466881d Zhi Wang 2016-03-28 304 struct intel_gvt_gtt_entry *e,
2707e44466881d Zhi Wang 2016-03-28 305 unsigned long index, bool hypervisor_access, unsigned long gpa,
2707e44466881d Zhi Wang 2016-03-28 306 struct intel_vgpu *vgpu)
2707e44466881d Zhi Wang 2016-03-28 307 {
2707e44466881d Zhi Wang 2016-03-28 308 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info;
2707e44466881d Zhi Wang 2016-03-28 309 int ret;
2707e44466881d Zhi Wang 2016-03-28 310
2707e44466881d Zhi Wang 2016-03-28 311 if (WARN_ON(info->gtt_entry_size != 8))
4b2dbbc22541e4 Changbin Du 2017-08-02 312 return -EINVAL;
2707e44466881d Zhi Wang 2016-03-28 313
2707e44466881d Zhi Wang 2016-03-28 314 if (hypervisor_access) {
2707e44466881d Zhi Wang 2016-03-28 315 ret = intel_gvt_hypervisor_read_gpa(vgpu, gpa +
2707e44466881d Zhi Wang 2016-03-28 316 (index << info->gtt_entry_size_shift),
2707e44466881d Zhi Wang 2016-03-28 317 &e->val64, 8);
4b2dbbc22541e4 Changbin Du 2017-08-02 318 if (WARN_ON(ret))
4b2dbbc22541e4 Changbin Du 2017-08-02 319 return ret;
2707e44466881d Zhi Wang 2016-03-28 320 } else if (!pt) {
a61ac1e75105a0 Chris Wilson 2020-03-06 @321 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
2707e44466881d Zhi Wang 2016-03-28 322 } else {
2707e44466881d Zhi Wang 2016-03-28 323 e->val64 = *((u64 *)pt + index);
2707e44466881d Zhi Wang 2016-03-28 324 }
4b2dbbc22541e4 Changbin Du 2017-08-02 325 return 0;
2707e44466881d Zhi Wang 2016-03-28 326 }
2707e44466881d Zhi Wang 2016-03-28 327
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH RESEND v7 12/12] drm/i915: Move the GGTT from i915 private data to the GT
Date: Tue, 14 Dec 2021 00:12:36 +0800 [thread overview]
Message-ID: <202112132358.IwEcWeWW-lkp@intel.com> (raw)
In-Reply-To: <20211212152117.118428-13-andi.shyti@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 5947 bytes --]
Hi Andi,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on drm/drm-next]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a003-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132358.IwEcWeWW-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/98ef49d710790dda7a193c10b5b7f28516f730bc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
git checkout 98ef49d710790dda7a193c10b5b7f28516f730bc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gvt/gtt.c:321:25: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:282:41: note: passing argument to parameter 'ggtt' here
static u64 read_pte64(struct i915_ggtt *ggtt, unsigned long index)
^
drivers/gpu/drm/i915/gvt/gtt.c:346:15: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, index, e->val64);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2900:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2908:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
4 errors generated.
vim +321 drivers/gpu/drm/i915/gvt/gtt.c
2707e44466881d Zhi Wang 2016-03-28 302
4b2dbbc22541e4 Changbin Du 2017-08-02 303 static inline int gtt_get_entry64(void *pt,
2707e44466881d Zhi Wang 2016-03-28 304 struct intel_gvt_gtt_entry *e,
2707e44466881d Zhi Wang 2016-03-28 305 unsigned long index, bool hypervisor_access, unsigned long gpa,
2707e44466881d Zhi Wang 2016-03-28 306 struct intel_vgpu *vgpu)
2707e44466881d Zhi Wang 2016-03-28 307 {
2707e44466881d Zhi Wang 2016-03-28 308 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info;
2707e44466881d Zhi Wang 2016-03-28 309 int ret;
2707e44466881d Zhi Wang 2016-03-28 310
2707e44466881d Zhi Wang 2016-03-28 311 if (WARN_ON(info->gtt_entry_size != 8))
4b2dbbc22541e4 Changbin Du 2017-08-02 312 return -EINVAL;
2707e44466881d Zhi Wang 2016-03-28 313
2707e44466881d Zhi Wang 2016-03-28 314 if (hypervisor_access) {
2707e44466881d Zhi Wang 2016-03-28 315 ret = intel_gvt_hypervisor_read_gpa(vgpu, gpa +
2707e44466881d Zhi Wang 2016-03-28 316 (index << info->gtt_entry_size_shift),
2707e44466881d Zhi Wang 2016-03-28 317 &e->val64, 8);
4b2dbbc22541e4 Changbin Du 2017-08-02 318 if (WARN_ON(ret))
4b2dbbc22541e4 Changbin Du 2017-08-02 319 return ret;
2707e44466881d Zhi Wang 2016-03-28 320 } else if (!pt) {
a61ac1e75105a0 Chris Wilson 2020-03-06 @321 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
2707e44466881d Zhi Wang 2016-03-28 322 } else {
2707e44466881d Zhi Wang 2016-03-28 323 e->val64 = *((u64 *)pt + index);
2707e44466881d Zhi Wang 2016-03-28 324 }
4b2dbbc22541e4 Changbin Du 2017-08-02 325 return 0;
2707e44466881d Zhi Wang 2016-03-28 326 }
2707e44466881d Zhi Wang 2016-03-28 327
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2021-12-13 16:14 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 15:21 [Intel-gfx] [PATCH RESEND v7 00/12] More preparation for multi gt patches Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 01/12] drm/i915: Store backpointer to GT in uncore Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 02/12] drm/i915: Introduce to_gt() helper Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 03/12] drm/i915/display: Use " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 04/12] drm/i915/gt: " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 05/12] drm/i915/gem: " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 06/12] drm/i915/gvt: " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 07/12] drm/i915/selftests: " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 08/12] drm/i915/pxp: " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 09/12] drm/i915: " Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 10/12] drm/i915: Rename i915->gt to i915->gt0 Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 11/12] drm/i915: Use to_gt() helper for GGTT accesses Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-13 18:10 ` [Intel-gfx] " Matt Roper
2021-12-13 18:10 ` Matt Roper
2021-12-13 18:16 ` [Intel-gfx] " Andi Shyti
2021-12-13 18:16 ` Andi Shyti
2021-12-12 15:21 ` [Intel-gfx] [PATCH RESEND v7 12/12] drm/i915: Move the GGTT from i915 private data to the GT Andi Shyti
2021-12-12 15:21 ` Andi Shyti
2021-12-13 16:12 ` kernel test robot [this message]
2021-12-13 16:12 ` kernel test robot
2021-12-13 16:12 ` kernel test robot
2021-12-13 16:12 ` kernel test robot
2021-12-13 18:16 ` [Intel-gfx] " Matt Roper
2021-12-13 18:16 ` Matt Roper
2021-12-13 18:20 ` [Intel-gfx] " Andi Shyti
2021-12-13 18:20 ` Andi Shyti
2021-12-12 15:33 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for More preparation for multi gt patches Patchwork
2021-12-12 15:34 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2021-12-12 16:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-12-12 17:23 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202112132358.IwEcWeWW-lkp@intel.com \
--to=lkp@intel.com \
--cc=andi.shyti@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=lucas.demarchi@intel.com \
--cc=michal.winiarski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.