*/
#define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list))
local = drmm_kmalloc(>_to_xe(gt)->drm, DEBUGFS_SIZE, GFP_KERNEL);
- if (!local) {
- XE_WARN_ON("Couldn't allocate memory");
+ if (!local)
return;
- }
memcpy(local, debugfs_list, DEBUGFS_SIZE);
#undef DEBUGFS_SIZE
#define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list))
local = drmm_kmalloc(&guc_to_xe(guc)->drm, DEBUGFS_SIZE, GFP_KERNEL);
- if (!local) {
- XE_WARN_ON("Couldn't allocate memory");
+ if (!local)
return;
- }
memcpy(local, debugfs_list, DEBUGFS_SIZE);
#undef DEBUGFS_SIZE
#define DEBUGFS_SIZE (ARRAY_SIZE(debugfs_list) * sizeof(struct drm_info_list))
local = drmm_kmalloc(&huc_to_xe(huc)->drm, DEBUGFS_SIZE, GFP_KERNEL);
- if (!local) {
- XE_WARN_ON("Couldn't allocate memory");
+ if (!local)
return;
- }
memcpy(local, debugfs_list, DEBUGFS_SIZE);
#undef DEBUGFS_SIZE
}
hw_engine_info = kmalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !hw_engine_info))
+ if (!hw_engine_info)
return -ENOMEM;
for_each_gt(gt, xe, gt_id)
}
config = kzalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !config))
+ if (!config)
return -ENOMEM;
config->num_params = num_params;
}
gts = kzalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !gts))
+ if (!gts)
return -ENOMEM;
gts->num_gt = xe->info.gt_count;
}
hwconfig = kzalloc(size, GFP_KERNEL);
- if (XE_IOCTL_DBG(xe, !hwconfig))
+ if (!hwconfig)
return -ENOMEM;
xe_device_mem_access_get(xe);