mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-02 11:13:02 +09:00
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:
@@ -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 */
|
||||
|
||||
@@ -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) ==
|
||||
|
||||
Reference in New Issue
Block a user