From: kernel test robot <lkp@intel.com>
To: Robert Beckett <bob.beckett@collabora.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH v3 4/5] drm/i915: add gtt misalignment test
Date: Fri, 21 Jan 2022 19:12:43 +0800 [thread overview]
Message-ID: <202201211905.O4FxXbsX-lkp@intel.com> (raw)
In-Reply-To: <20220120203721.632424-5-bob.beckett@collabora.com>
Hi Robert,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next v5.16 next-20220121]
[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/Robert-Beckett/discrete-card-64K-page-support/20220121-044244
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-randconfig-a005-20220117 (https://download.01.org/0day-ci/archive/20220121/202201211905.O4FxXbsX-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d4baf3b1322b84816aa623d8e8cb45a49cb68b84)
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/e7a6d547c26b78357dbad93dc9d8df90bc51d025
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Robert-Beckett/discrete-card-64K-page-support/20220121-044244
git checkout e7a6d547c26b78357dbad93dc9d8df90bc51d025
# 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=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
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 >>):
In file included from drivers/gpu/drm/i915/i915_gem_gtt.c:296:
>> drivers/gpu/drm/i915/selftests/i915_gem_gtt.c:1146:49: error: implicit conversion from enumeration type 'enum intel_region_id' to different enumeration type 'enum intel_memory_type' [-Werror,-Wenum-conversion]
u64 min_alignment = i915_vm_min_alignment(vm, id);
~~~~~~~~~~~~~~~~~~~~~ ^~
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_CS35L41_SPI
Depends on SOUND && !UML && SND && SND_SOC && SPI_MASTER
Selected by
- SND_SOC_AMD_VANGOGH_MACH && SOUND && !UML && SND && SND_SOC && SND_SOC_AMD_ACP5x && I2C
vim +1146 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1131
1132 static int misaligned_pin(struct i915_address_space *vm,
1133 u64 hole_start, u64 hole_end,
1134 unsigned long end_time)
1135 {
1136 struct intel_memory_region *mr;
1137 enum intel_region_id id;
1138 unsigned long flags = PIN_OFFSET_FIXED | PIN_USER;
1139 int err = 0;
1140 u64 hole_size = hole_end - hole_start;
1141
1142 if (i915_is_ggtt(vm))
1143 flags |= PIN_GLOBAL;
1144
1145 for_each_memory_region(mr, vm->i915, id) {
> 1146 u64 min_alignment = i915_vm_min_alignment(vm, id);
1147 u64 size = min_alignment;
1148 u64 addr = round_up(hole_start + (hole_size / 2), min_alignment);
1149
1150 /* we can't test < 4k alignment due to flags being encoded in lower bits */
1151 if (min_alignment != I915_GTT_PAGE_SIZE_4K) {
1152 err = misaligned_case(vm, mr, addr + (min_alignment / 2), size, flags);
1153 /* misaligned should error with -EINVAL*/
1154 if (!err)
1155 err = -EBADSLT;
1156 if (err != -EINVAL)
1157 return err;
1158 }
1159
1160 /* test for vma->size expansion to min page size */
1161 err = misaligned_case(vm, mr, addr, PAGE_SIZE, flags);
1162 if (min_alignment > hole_size) {
1163 if (!err)
1164 err = -EBADSLT;
1165 else if (err == -ENOSPC)
1166 err = 0;
1167 }
1168 if (err)
1169 return err;
1170
1171 /* test for intermediate size not expanding vma->size for large alignments */
1172 err = misaligned_case(vm, mr, addr, size / 2, flags);
1173 if (min_alignment > hole_size) {
1174 if (!err)
1175 err = -EBADSLT;
1176 else if (err == -ENOSPC)
1177 err = 0;
1178 }
1179 if (err)
1180 return err;
1181 }
1182
1183 return 0;
1184 }
1185
---
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 v3 4/5] drm/i915: add gtt misalignment test
Date: Fri, 21 Jan 2022 19:12:43 +0800 [thread overview]
Message-ID: <202201211905.O4FxXbsX-lkp@intel.com> (raw)
In-Reply-To: <20220120203721.632424-5-bob.beckett@collabora.com>
[-- Attachment #1: Type: text/plain, Size: 4403 bytes --]
Hi Robert,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next v5.16 next-20220121]
[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/Robert-Beckett/discrete-card-64K-page-support/20220121-044244
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: i386-randconfig-a005-20220117 (https://download.01.org/0day-ci/archive/20220121/202201211905.O4FxXbsX-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d4baf3b1322b84816aa623d8e8cb45a49cb68b84)
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/e7a6d547c26b78357dbad93dc9d8df90bc51d025
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Robert-Beckett/discrete-card-64K-page-support/20220121-044244
git checkout e7a6d547c26b78357dbad93dc9d8df90bc51d025
# 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=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
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 >>):
In file included from drivers/gpu/drm/i915/i915_gem_gtt.c:296:
>> drivers/gpu/drm/i915/selftests/i915_gem_gtt.c:1146:49: error: implicit conversion from enumeration type 'enum intel_region_id' to different enumeration type 'enum intel_memory_type' [-Werror,-Wenum-conversion]
u64 min_alignment = i915_vm_min_alignment(vm, id);
~~~~~~~~~~~~~~~~~~~~~ ^~
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_CS35L41_SPI
Depends on SOUND && !UML && SND && SND_SOC && SPI_MASTER
Selected by
- SND_SOC_AMD_VANGOGH_MACH && SOUND && !UML && SND && SND_SOC && SND_SOC_AMD_ACP5x && I2C
vim +1146 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1131
1132 static int misaligned_pin(struct i915_address_space *vm,
1133 u64 hole_start, u64 hole_end,
1134 unsigned long end_time)
1135 {
1136 struct intel_memory_region *mr;
1137 enum intel_region_id id;
1138 unsigned long flags = PIN_OFFSET_FIXED | PIN_USER;
1139 int err = 0;
1140 u64 hole_size = hole_end - hole_start;
1141
1142 if (i915_is_ggtt(vm))
1143 flags |= PIN_GLOBAL;
1144
1145 for_each_memory_region(mr, vm->i915, id) {
> 1146 u64 min_alignment = i915_vm_min_alignment(vm, id);
1147 u64 size = min_alignment;
1148 u64 addr = round_up(hole_start + (hole_size / 2), min_alignment);
1149
1150 /* we can't test < 4k alignment due to flags being encoded in lower bits */
1151 if (min_alignment != I915_GTT_PAGE_SIZE_4K) {
1152 err = misaligned_case(vm, mr, addr + (min_alignment / 2), size, flags);
1153 /* misaligned should error with -EINVAL*/
1154 if (!err)
1155 err = -EBADSLT;
1156 if (err != -EINVAL)
1157 return err;
1158 }
1159
1160 /* test for vma->size expansion to min page size */
1161 err = misaligned_case(vm, mr, addr, PAGE_SIZE, flags);
1162 if (min_alignment > hole_size) {
1163 if (!err)
1164 err = -EBADSLT;
1165 else if (err == -ENOSPC)
1166 err = 0;
1167 }
1168 if (err)
1169 return err;
1170
1171 /* test for intermediate size not expanding vma->size for large alignments */
1172 err = misaligned_case(vm, mr, addr, size / 2, flags);
1173 if (min_alignment > hole_size) {
1174 if (!err)
1175 err = -EBADSLT;
1176 else if (err == -ENOSPC)
1177 err = 0;
1178 }
1179 if (err)
1180 return err;
1181 }
1182
1183 return 0;
1184 }
1185
---
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:[~2022-01-21 11:13 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 20:37 [Intel-gfx] [PATCH v3 0/5] discrete card 64K page support Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` [Intel-gfx] [PATCH v3 1/5] drm/i915: add needs_compact_pt flag Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` [Intel-gfx] [PATCH v3 2/5] drm/i915: enforce min GTT alignment for discrete cards Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` [Intel-gfx] [PATCH v3 3/5] drm/i915: support 64K GTT pages " Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-21 10:31 ` kernel test robot
2022-01-21 10:31 ` kernel test robot
2022-01-21 13:55 ` kernel test robot
2022-01-21 13:55 ` kernel test robot
2022-01-20 20:37 ` [Intel-gfx] [PATCH v3 4/5] drm/i915: add gtt misalignment test Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-21 11:12 ` kernel test robot [this message]
2022-01-21 11:12 ` kernel test robot
2022-01-22 8:21 ` kernel test robot
2022-01-20 20:37 ` [Intel-gfx] [PATCH v3 5/5] drm/i915/uapi: document behaviour for DG2 64K support Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 20:37 ` Robert Beckett
2022-01-20 21:11 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for discrete card 64K page support Patchwork
2022-01-20 21:12 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2022-01-20 21:30 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " 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=202201211905.O4FxXbsX-lkp@intel.com \
--to=lkp@intel.com \
--cc=bob.beckett@collabora.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
/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.