Lines Matching +full:case +full:- +full:sensitive

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2018 Etnaviv Project
93 if (state->num_relocs && state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive()
94 dev_warn_once(state->gpu->dev, in etnaviv_warn_if_non_sensitive()
95 "%s: relocation for non-sensitive state 0x%x at offset %u\n", in etnaviv_warn_if_non_sensitive()
97 state->relocs->submit_offset); in etnaviv_warn_if_non_sensitive()
98 while (state->num_relocs && in etnaviv_warn_if_non_sensitive()
99 state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive()
100 state->relocs++; in etnaviv_warn_if_non_sensitive()
101 state->num_relocs--; in etnaviv_warn_if_non_sensitive()
113 buf_offset = (ptr - state->start + in etnaviv_validate_load_state()
114 st_offset - state_offset) * 4; in etnaviv_validate_load_state()
117 if (state->num_relocs && in etnaviv_validate_load_state()
118 state->relocs->submit_offset == buf_offset) { in etnaviv_validate_load_state()
119 state->relocs++; in etnaviv_validate_load_state()
120 state->num_relocs--; in etnaviv_validate_load_state()
124 dev_warn_ratelimited(state->gpu->dev, in etnaviv_validate_load_state()
130 if (state->num_relocs) { in etnaviv_validate_load_state()
131 buf_offset = (ptr - state->start + num) * 4; in etnaviv_validate_load_state()
133 state->relocs->submit_offset - in etnaviv_validate_load_state()
168 case FE_OPCODE_LOAD_STATE: in etnaviv_cmd_validate_one()
180 case FE_OPCODE_DRAW_2D: in etnaviv_cmd_validate_one()
190 dev_err(gpu->dev, "%s: op %u not permitted at offset %tu\n", in etnaviv_cmd_validate_one()
191 __func__, op, buf - state.start); in etnaviv_cmd_validate_one()
201 dev_err(gpu->dev, "%s: commands overflow end of buffer: %tu > %u\n", in etnaviv_cmd_validate_one()
202 __func__, buf - state.start, size); in etnaviv_cmd_validate_one()