]> 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)
commitadd87e405b65f3904f82052cbb1d34aa6457b593
tree49e7a91f774bd4630d891aca5fea4762f2df4b34
parent48a2b402400895f1ab57ccbd14a58950944a1f66
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