]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pvc: Reduce stack usage in reset selftest with extra blitter engine
authorJohn Harrison <John.C.Harrison@Intel.com>
Thu, 5 May 2022 21:38:06 +0000 (14:38 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 10 May 2022 22:30:47 +0000 (15:30 -0700)
commit206f5a3ed293cdb115d7d7fe475bf847cc86b74a
tree8d93c59c708550f38eeefb62a77db5631f017cbd
parent8c5e2b85c87eb26856be0f76a59108f7fb4f3286
drm/i915/pvc: Reduce stack usage in reset selftest with extra blitter engine

PVC adds extra blitter engines (in the following patch). The reset
selftest has a local array on the stack which is sized by the number
of engines. The increase pushes the size of this array to the point
where it trips the 'stack too large' compile warning. This patch takes
the allocation of the stack and makes it dynamic instead.

v2 (MattR):
 - Minor cosmetic changes:  re-sort definition and allocate using
   kmalloc_array().  (Tvrtko)

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220505213812.3979301-7-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/selftest_hangcheck.c