[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109280429.hb2kZBfg-lkp@intel.com>
Date: Tue, 28 Sep 2021 04:51:38 +0800
From: kernel test robot <lkp@...el.com>
To: Ville Syrjälä <ville.syrjala@...ux.intel.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, 0day robot <lkp@...el.com>,
Juha-Pekka Heikkila <juhapekka.heikkila@...il.com>
Subject: drivers/gpu/drm/i915/display/intel_fbc.c:101:18: error: use of
undeclared identifier 'i915'
tree: https://github.com/0day-ci/linux/commits/Ville-Syrjala/drm-i915-fbc-Rework-CFB-stride-size-calculations/20210922-130015
head: 2ae62c15535ddb9b3a5215bc0266dd46e328f38c
commit: cb0b857a450fc222fe722d794cff9fbafc6fb334 drm/i915/fbc: Implement Wa_16011863758 for icl+
date: 6 days ago
config: i386-randconfig-a016-20210927 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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/cb0b857a450fc222fe722d794cff9fbafc6fb334
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ville-Syrjala/drm-i915-fbc-Rework-CFB-stride-size-calculations/20210922-130015
git checkout cb0b857a450fc222fe722d794cff9fbafc6fb334
# save the attached .config 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
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/display/intel_fbc.c:101:18: error: use of undeclared identifier 'i915'
if (DISPLAY_VER(i915) >= 11)
^
1 error generated.
vim +/i915 +101 drivers/gpu/drm/i915/display/intel_fbc.c
85
86 /* minimum acceptable cfb stride in bytes, assuming 1:1 compression limit */
87 static unsigned int skl_fbc_min_cfb_stride(const struct intel_fbc_state_cache *cache)
88 {
89 unsigned int limit = 4; /* 1:4 compression limit is the worst case */
90 unsigned int cpp = 4; /* FBC always 4 bytes per pixel */
91 unsigned int height = 4; /* FBC segment is 4 lines */
92 unsigned int stride;
93
94 /* minimum segment stride we can use */
95 stride = cache->plane.src_w * cpp * height / limit;
96
97 /*
98 * Wa_16011863758: icl+
99 * Avoid some hardware segment address miscalculation.
100 */
> 101 if (DISPLAY_VER(i915) >= 11)
102 stride += 64;
103
104 /*
105 * At least some of the platforms require each 4 line segment to
106 * be 512 byte aligned. Just do it always for simplicity.
107 */
108 stride = ALIGN(stride, 512);
109
110 /* convert back to single line equivalent with 1:1 compression limit */
111 return stride * limit / height;
112 }
113
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (34186 bytes)
Powered by blists - more mailing lists