[Intel-gfx] [PATCH] drm/i915/cmdparser: whitelist needed predicate registers for Anv
kbuild test robot
lkp at intel.com
Sun Jan 13 16:27:57 UTC 2019
Hi Lionel,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.0-rc1 next-20190111]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Lionel-Landwerlin/drm-i915-cmdparser-whitelist-needed-predicate-registers-for-Anv/20190113-231821
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-x072-201902 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_cmd_parser.c:552:8: error: 'MI_PREDICATE_DATA_UDW' undeclared here (not in a function); did you mean 'MI_PREDICATE_SRC1_UDW'?
REG64(MI_PREDICATE_DATA),
^
drivers/gpu/drm/i915/i915_cmd_parser.c:530:12: note: in definition of macro 'REG64'
{ .addr = _reg ## _UDW }
^~~~
vim +552 drivers/gpu/drm/i915/i915_cmd_parser.c
516
517 /* Convenience macro for adding 32-bit registers. */
518 #define REG32(_reg, ...) \
519 { .addr = (_reg), __VA_ARGS__ }
520
521 /*
522 * Convenience macro for adding 64-bit registers.
523 *
524 * Some registers that userspace accesses are 64 bits. The register
525 * access commands only allow 32-bit accesses. Hence, we have to include
526 * entries for both halves of the 64-bit registers.
527 */
528 #define REG64(_reg) \
529 { .addr = _reg }, \
530 { .addr = _reg ## _UDW }
531
532 #define REG64_IDX(_reg, idx) \
533 { .addr = _reg(idx) }, \
534 { .addr = _reg ## _UDW(idx) }
535
536 static const struct drm_i915_reg_descriptor gen7_render_regs[] = {
537 REG64(GPGPU_THREADS_DISPATCHED),
538 REG64(HS_INVOCATION_COUNT),
539 REG64(DS_INVOCATION_COUNT),
540 REG64(IA_VERTICES_COUNT),
541 REG64(IA_PRIMITIVES_COUNT),
542 REG64(VS_INVOCATION_COUNT),
543 REG64(GS_INVOCATION_COUNT),
544 REG64(GS_PRIMITIVES_COUNT),
545 REG64(CL_INVOCATION_COUNT),
546 REG64(CL_PRIMITIVES_COUNT),
547 REG64(PS_INVOCATION_COUNT),
548 REG64(PS_DEPTH_COUNT),
549 REG64_IDX(RING_TIMESTAMP, RENDER_RING_BASE),
550 REG64(MI_PREDICATE_SRC0),
551 REG64(MI_PREDICATE_SRC1),
> 552 REG64(MI_PREDICATE_DATA),
553 REG32(MI_PREDICATE_RESULT),
554 REG32(GEN7_3DPRIM_END_OFFSET),
555 REG32(GEN7_3DPRIM_START_VERTEX),
556 REG32(GEN7_3DPRIM_VERTEX_COUNT),
557 REG32(GEN7_3DPRIM_INSTANCE_COUNT),
558 REG32(GEN7_3DPRIM_START_INSTANCE),
559 REG32(GEN7_3DPRIM_BASE_VERTEX),
560 REG32(GEN7_GPGPU_DISPATCHDIMX),
561 REG32(GEN7_GPGPU_DISPATCHDIMY),
562 REG32(GEN7_GPGPU_DISPATCHDIMZ),
563 REG64_IDX(RING_TIMESTAMP, BSD_RING_BASE),
564 REG64_IDX(GEN7_SO_NUM_PRIMS_WRITTEN, 0),
565 REG64_IDX(GEN7_SO_NUM_PRIMS_WRITTEN, 1),
566 REG64_IDX(GEN7_SO_NUM_PRIMS_WRITTEN, 2),
567 REG64_IDX(GEN7_SO_NUM_PRIMS_WRITTEN, 3),
568 REG64_IDX(GEN7_SO_PRIM_STORAGE_NEEDED, 0),
569 REG64_IDX(GEN7_SO_PRIM_STORAGE_NEEDED, 1),
570 REG64_IDX(GEN7_SO_PRIM_STORAGE_NEEDED, 2),
571 REG64_IDX(GEN7_SO_PRIM_STORAGE_NEEDED, 3),
572 REG32(GEN7_SO_WRITE_OFFSET(0)),
573 REG32(GEN7_SO_WRITE_OFFSET(1)),
574 REG32(GEN7_SO_WRITE_OFFSET(2)),
575 REG32(GEN7_SO_WRITE_OFFSET(3)),
576 REG32(GEN7_L3SQCREG1),
577 REG32(GEN7_L3CNTLREG2),
578 REG32(GEN7_L3CNTLREG3),
579 REG64_IDX(RING_TIMESTAMP, BLT_RING_BASE),
580 };
581
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 29999 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20190114/89ada8eb/attachment-0001.gz>
More information about the Intel-gfx
mailing list