[radeon-alex:amd-staging-drm-next 717/721] include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
kbuild test robot
lkp at intel.com
Fri Nov 8 01:31:31 UTC 2019
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 270209307880ec946cfe9b98a6a58d285dbc5a2e
commit: f2157ab0fa53831e3575bfcbf0e92448c6943b9e [717/721] drm/sched: Use completion to wait for sched->thread idle v2.
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.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 f2157ab0fa53831e3575bfcbf0e92448c6943b9e
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:0:0:
>> include/drm/gpu_scheduler.h:98:21: error: field 'entity_idle' has incomplete type
struct completion entity_idle;
^~~~~~~~~~~
vim +/entity_idle +98 include/drm/gpu_scheduler.h
46
47 /**
48 * struct drm_sched_entity - A wrapper around a job queue (typically
49 * attached to the DRM file_priv).
50 *
51 * @list: used to append this struct to the list of entities in the
52 * runqueue.
53 * @rq: runqueue on which this entity is currently scheduled.
54 * @rq_list: a list of run queues on which jobs from this entity can
55 * be scheduled
56 * @num_rq_list: number of run queues in the rq_list
57 * @rq_lock: lock to modify the runqueue to which this entity belongs.
58 * @job_queue: the list of jobs of this entity.
59 * @fence_seq: a linearly increasing seqno incremented with each
60 * new &drm_sched_fence which is part of the entity.
61 * @fence_context: a unique context for all the fences which belong
62 * to this entity.
63 * The &drm_sched_fence.scheduled uses the
64 * fence_context but &drm_sched_fence.finished uses
65 * fence_context + 1.
66 * @dependency: the dependency fence of the job which is on the top
67 * of the job queue.
68 * @cb: callback for the dependency fence above.
69 * @guilty: points to ctx's guilty.
70 * @fini_status: contains the exit status in case the process was signalled.
71 * @last_scheduled: points to the finished fence of the last scheduled job.
72 * @last_user: last group leader pushing a job into the entity.
73 * @stopped: Marks the enity as removed from rq and destined for termination.
74 * @entity_idle: Signals when enityt is not in use
75 *
76 * Entities will emit jobs in order to their corresponding hardware
77 * ring, and the scheduler will alternate between entities based on
78 * scheduling policy.
79 */
80 struct drm_sched_entity {
81 struct list_head list;
82 struct drm_sched_rq *rq;
83 struct drm_sched_rq **rq_list;
84 unsigned int num_rq_list;
85 spinlock_t rq_lock;
86
87 struct spsc_queue job_queue;
88
89 atomic_t fence_seq;
90 uint64_t fence_context;
91
92 struct dma_fence *dependency;
93 struct dma_fence_cb cb;
94 atomic_t *guilty;
95 struct dma_fence *last_scheduled;
96 struct task_struct *last_user;
97 bool stopped;
> 98 struct completion entity_idle;
99 };
100
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 51795 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20191108/4cc558d0/attachment-0001.gz>
More information about the dri-devel
mailing list