]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Better name for context id limit
authorJohn Harrison <John.C.Harrison@Intel.com>
Wed, 2 Mar 2022 00:33:52 +0000 (16:33 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 3 Mar 2022 23:03:06 +0000 (15:03 -0800)
commit07fdbaa9803c507f26ccf2aea6906a3969e1674e
tree49e7a91f774bd4630d891aca5fea4762f2df4b34
parentde9527456b1bb26db1d13301dc609581abe92724
drm/i915/guc: Better name for context id limit

The LRC descriptor pool is going away. So, stop using it as the limit
for how many context ids are available. Instead, size the pool
according to the number of contexts allowed. Note that this is just a
naming change, the actual limit is identical in value.

While at it, also update a kzalloc(sizeof()*count) to be a
kcalloc(count,size).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302003357.4188363-4-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/gt/uc/selftest_guc.c