[PATCH v8 01/17] drm/dp_mst: Add PBN calculation for DSC modes
kbuild test robot
lkp at intel.com
Fri Dec 6 00:22:04 UTC 2019
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20191203]
[cannot apply to drm-intel/for-linux-next linus/master v5.4-rc8 drm-exynos/exynos-drm-next v5.4]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/mikita-lipski-amd-com/DSC-MST-support-for-DRM-and-AMDGPU/20191204-020604
base: 1ab75b2e415a29dba9aec94f203c6f88dbfc0ba0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-91-g817270f-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/selftests/test-drm_dp_mst_helper.c:28:43: sparse: sparse: not enough arguments for function drm_dp_calc_pbn_mode
vim +28 drivers/gpu/drm/selftests/test-drm_dp_mst_helper.c
7cbce45d624322 Lyude Paul 2019-09-03 13
7cbce45d624322 Lyude Paul 2019-09-03 14 int igt_dp_mst_calc_pbn_mode(void *ignored)
7cbce45d624322 Lyude Paul 2019-09-03 15 {
7cbce45d624322 Lyude Paul 2019-09-03 16 int pbn, i;
7cbce45d624322 Lyude Paul 2019-09-03 17 const struct {
7cbce45d624322 Lyude Paul 2019-09-03 18 int rate;
7cbce45d624322 Lyude Paul 2019-09-03 19 int bpp;
7cbce45d624322 Lyude Paul 2019-09-03 20 int expected;
7cbce45d624322 Lyude Paul 2019-09-03 21 } test_params[] = {
7cbce45d624322 Lyude Paul 2019-09-03 22 { 154000, 30, 689 },
7cbce45d624322 Lyude Paul 2019-09-03 23 { 234000, 30, 1047 },
7cbce45d624322 Lyude Paul 2019-09-03 24 { 297000, 24, 1063 },
7cbce45d624322 Lyude Paul 2019-09-03 25 };
7cbce45d624322 Lyude Paul 2019-09-03 26
7cbce45d624322 Lyude Paul 2019-09-03 27 for (i = 0; i < ARRAY_SIZE(test_params); i++) {
7cbce45d624322 Lyude Paul 2019-09-03 @28 pbn = drm_dp_calc_pbn_mode(test_params[i].rate,
7cbce45d624322 Lyude Paul 2019-09-03 29 test_params[i].bpp);
7cbce45d624322 Lyude Paul 2019-09-03 30 FAIL(pbn != test_params[i].expected,
7cbce45d624322 Lyude Paul 2019-09-03 31 "Expected PBN %d for clock %d bpp %d, got %d\n",
7cbce45d624322 Lyude Paul 2019-09-03 32 test_params[i].expected, test_params[i].rate,
7cbce45d624322 Lyude Paul 2019-09-03 33 test_params[i].bpp, pbn);
7cbce45d624322 Lyude Paul 2019-09-03 34 }
7cbce45d624322 Lyude Paul 2019-09-03 35
7cbce45d624322 Lyude Paul 2019-09-03 36 return 0;
7cbce45d624322 Lyude Paul 2019-09-03 37 }
2f015ec6eab693 Lyude Paul 2019-09-03 38
:::::: The code at line 28 was first introduced by commit
:::::: 7cbce45d6243225914b5c967b4ee927a2327842a drm/dp_mst: Move test_calc_pbn_mode() into an actual selftest
:::::: TO: Lyude Paul <lyude at redhat.com>
:::::: CC: Lyude Paul <lyude at redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
More information about the amd-gfx
mailing list