[radeon-alex:drm-next-4.20-wip 53/66] drivers/gpu//drm/etnaviv/etnaviv_sched.c:108:35: error: 'struct drm_sched_job' has no member named 'work_tdr'
kbuild test robot
lkp at intel.com
Wed Sep 26 18:53:04 UTC 2018
tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.20-wip
head: 1ab9810fb590adf8f5a26271cc639ccfb98cb9eb
commit: d730e7e9d36a4a0e7e7c9efbf5c735bf0098358d [53/66] drm/scheduler: remove timeout work_struct from drm_sched_job
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d730e7e9d36a4a0e7e7c9efbf5c735bf0098358d
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm
All errors (new ones prefixed by >>):
drivers/gpu//drm/etnaviv/etnaviv_sched.c: In function 'etnaviv_sched_timedout_job':
>> drivers/gpu//drm/etnaviv/etnaviv_sched.c:108:35: error: 'struct drm_sched_job' has no member named 'work_tdr'
schedule_delayed_work(&sched_job->work_tdr,
^~
vim +108 drivers/gpu//drm/etnaviv/etnaviv_sched.c
e93b6dee Lucas Stach 2017-12-04 84
e93b6dee Lucas Stach 2017-12-04 85 static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job)
e93b6dee Lucas Stach 2017-12-04 86 {
6d7a20c0 Lucas Stach 2017-12-06 87 struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job);
6d7a20c0 Lucas Stach 2017-12-06 88 struct etnaviv_gpu *gpu = submit->gpu;
2c83a726 Lucas Stach 2018-06-27 89 u32 dma_addr;
2c83a726 Lucas Stach 2018-06-27 90 int change;
2c83a726 Lucas Stach 2018-06-27 91
2c83a726 Lucas Stach 2018-06-27 92 /*
2c83a726 Lucas Stach 2018-06-27 93 * If the GPU managed to complete this jobs fence, the timout is
2c83a726 Lucas Stach 2018-06-27 94 * spurious. Bail out.
2c83a726 Lucas Stach 2018-06-27 95 */
2c83a726 Lucas Stach 2018-06-27 96 if (fence_completed(gpu, submit->out_fence->seqno))
2c83a726 Lucas Stach 2018-06-27 97 return;
2c83a726 Lucas Stach 2018-06-27 98
2c83a726 Lucas Stach 2018-06-27 99 /*
2c83a726 Lucas Stach 2018-06-27 100 * If the GPU is still making forward progress on the front-end (which
2c83a726 Lucas Stach 2018-06-27 101 * should never loop) we shift out the timeout to give it a chance to
2c83a726 Lucas Stach 2018-06-27 102 * finish the job.
2c83a726 Lucas Stach 2018-06-27 103 */
2c83a726 Lucas Stach 2018-06-27 104 dma_addr = gpu_read(gpu, VIVS_FE_DMA_ADDRESS);
2c83a726 Lucas Stach 2018-06-27 105 change = dma_addr - gpu->hangcheck_dma_addr;
2c83a726 Lucas Stach 2018-06-27 106 if (change < 0 || change > 16) {
2c83a726 Lucas Stach 2018-06-27 107 gpu->hangcheck_dma_addr = dma_addr;
2c83a726 Lucas Stach 2018-06-27 @108 schedule_delayed_work(&sched_job->work_tdr,
2c83a726 Lucas Stach 2018-06-27 109 sched_job->sched->timeout);
2c83a726 Lucas Stach 2018-06-27 110 return;
2c83a726 Lucas Stach 2018-06-27 111 }
6d7a20c0 Lucas Stach 2017-12-06 112
6d7a20c0 Lucas Stach 2017-12-06 113 /* block scheduler */
6d7a20c0 Lucas Stach 2017-12-06 114 kthread_park(gpu->sched.thread);
6d7a20c0 Lucas Stach 2017-12-06 115 drm_sched_hw_job_reset(&gpu->sched, sched_job);
6d7a20c0 Lucas Stach 2017-12-06 116
6d7a20c0 Lucas Stach 2017-12-06 117 /* get the GPU back into the init state */
6d7a20c0 Lucas Stach 2017-12-06 118 etnaviv_core_dump(gpu);
6d7a20c0 Lucas Stach 2017-12-06 119 etnaviv_gpu_recover_hang(gpu);
6d7a20c0 Lucas Stach 2017-12-06 120
6d7a20c0 Lucas Stach 2017-12-06 121 /* restart scheduler after GPU is usable again */
6d7a20c0 Lucas Stach 2017-12-06 122 drm_sched_job_recovery(&gpu->sched);
6d7a20c0 Lucas Stach 2017-12-06 123 kthread_unpark(gpu->sched.thread);
e93b6dee Lucas Stach 2017-12-04 124 }
e93b6dee Lucas Stach 2017-12-04 125
:::::: The code at line 108 was first introduced by commit
:::::: 2c83a726d6fbb5d130d8f2edd82a258adb675ac3 drm/etnaviv: bring back progress check in job timeout handler
:::::: TO: Lucas Stach <l.stach at pengutronix.de>
:::::: CC: Lucas Stach <l.stach at pengutronix.de>
---
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: 67043 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180927/13c8b463/attachment-0001.gz>
More information about the dri-devel
mailing list