Mali: midgard: changes to enlarge BASE_JD_ATOM_COUNT to 512, for defect 184210

The source code of mali_so must be modified correspondingly.

Change-Id: I3f4bd03fa2d369d912e6bc05c53d2d3abefb92d3
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
Zhen Chen
2019-01-07 20:33:20 +08:00
committed by Tao Huang
parent ba2207c20b
commit 5cf27d0b60
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ typedef struct base_mem_handle {
* we decide to make the number of semaphores a configurable
* option.
*/
#define BASE_JD_ATOM_COUNT 256
#define BASE_JD_ATOM_COUNT 512
#define BASEP_JD_SEM_PER_WORD_LOG2 5
#define BASEP_JD_SEM_PER_WORD (1 << BASEP_JD_SEM_PER_WORD_LOG2)
@@ -831,7 +831,7 @@ enum kbase_jd_atom_state {
KBASE_JD_ATOM_STATE_COMPLETED
};
typedef u8 base_atom_id; /**< Type big enough to store an atom number in */
typedef u16 base_atom_id; /**< Type big enough to store an atom number in */
struct base_dependency {
base_atom_id atom_id; /**< An atom number */

View File

@@ -1384,7 +1384,7 @@ int kbase_jd_submit(struct kbase_context *kctx,
#define compiletime_assert(x, msg) do { switch (0) { case 0: case (x):; } } \
while (false)
#endif
compiletime_assert((1 << (8*sizeof(user_atom.atom_number))) ==
compiletime_assert((1 << (8*sizeof(user_atom.atom_number))) >=
BASE_JD_ATOM_COUNT,
"BASE_JD_ATOM_COUNT and base_atom_id type out of sync");
compiletime_assert(sizeof(user_atom.pre_dep[0].atom_id) ==