Lines Matching +full:p +full:- +full:tile

1 // SPDX-License-Identifier: MIT
43 int ret = send_get_hwconfig(guc, xe_bo_ggtt_addr(guc->hwconfig.bo), in guc_hwconfig_copy()
44 guc->hwconfig.size); in guc_hwconfig_copy()
56 struct xe_tile *tile = gt_to_tile(gt); in xe_guc_hwconfig_init() local
62 if (guc->hwconfig.bo) in xe_guc_hwconfig_init()
68 if (gt->info.id != XE_GT0) in xe_guc_hwconfig_init()
72 if (GRAPHICS_VERx100(xe) < 1255 && xe->info.platform != XE_ALDERLAKE_P) in xe_guc_hwconfig_init()
79 return -EINVAL; in xe_guc_hwconfig_init()
81 bo = xe_managed_bo_create_pin_map(xe, tile, PAGE_ALIGN(size), in xe_guc_hwconfig_init()
87 guc->hwconfig.bo = bo; in xe_guc_hwconfig_init()
88 guc->hwconfig.size = size; in xe_guc_hwconfig_init()
95 return !guc->hwconfig.bo ? 0 : guc->hwconfig.size; in xe_guc_hwconfig_size()
102 XE_WARN_ON(!guc->hwconfig.bo); in xe_guc_hwconfig_copy()
104 xe_map_memcpy_from(xe, dst, &guc->hwconfig.bo->vmap, 0, in xe_guc_hwconfig_copy()
105 guc->hwconfig.size); in xe_guc_hwconfig_copy()
108 void xe_guc_hwconfig_dump(struct xe_guc *guc, struct drm_printer *p) in xe_guc_hwconfig_dump() argument
117 drm_printf(p, "No hwconfig available\n"); in xe_guc_hwconfig_dump()
125 drm_printf(p, "Error: could not allocate hwconfig memory\n"); in xe_guc_hwconfig_dump()
137 drm_printf(p, "Error: Attribute %u is %u dwords, but only %llu remain\n", in xe_guc_hwconfig_dump()
138 attribute, len_dw, num_dw - i); in xe_guc_hwconfig_dump()
139 len_dw = num_dw - i; in xe_guc_hwconfig_dump()
150 drm_printf(p, "[%2u] = %u\n", attribute, hwconfig[i]); in xe_guc_hwconfig_dump()
152 drm_printf(p, "[%2u] = { %*ph }\n", attribute, in xe_guc_hwconfig_dump()
158 drm_printf(p, "Error: %llu extra bytes at end of hwconfig\n", in xe_guc_hwconfig_dump()
159 (num_dw - i) * sizeof(u32) + extra_bytes); in xe_guc_hwconfig_dump()
165 * Lookup a specific 32-bit attribute value in the GuC's hwconfig table.
176 return -EINVAL; in xe_guc_hwconfig_lookup_u32()
180 return -ENOMEM; in xe_guc_hwconfig_lookup_u32()
201 return found ? 0 : -ENOENT; in xe_guc_hwconfig_lookup_u32()