kfd_queue.c
Adds an entry to a linked listAssigns a negative errno constant
SHA-25674e7e2146ffb48973b0ff01e2a54570c8ef5d3567d244ffa2cd8c6b7dfa73ac8
MaleculeO(Er)H(Db₂)
Evidence
5:39… of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * th …
19:67… RWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22 *
23 */
24
25#include <linux/slab.h>
26#include "kfd_priv.h"
27#include "kfd_topology.h"
28#include "kfd_svm.h"
29
30void print_queue_properties(struct queue_properties *q)
⋯5 lines
71:5… uct queue *tmp_q;
72
73 tmp_q = kzalloc_obj(*tmp_q);
74 if (!tmp_q)
75 return -ENOMEM;
76
77 memcpy(&tmp_q->properties, properties, sizeof(*properties));
78
79 *q = tmp_q;
⋯11 lines
⋯4 lines
125 break;
126
127 list_add(&prange->update_list, &update_list);
128
129 if (prange->last - prange->start + 1 >= size) {
⋯5 lines
283:18… op_ring_buffer_size,
284 topo_dev->node_props.eop_buffer_size);
285 err = -EINVAL;
286 goto out_err_unreserve;
287 }
288 err = kfd_queue_buffer_get(vm, (void *)properties->eop_ring_buffer_address,
289 &propertie …