mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
drm/i915: Partial abandonment of legacy DRM logging macros
Convert some usages of legacy DRM logging macros into versions which tell us on which device have the events occurred. v2: * Don't have struct drm_device as local. (Jani, Ville) v3: * Store gt, not i915, in workaround list. (John) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Cc: Jani Nikula <jani.nikula@intel.com> Cc: John Harrison <John.C.Harrison@Intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221109104633.2579245-1-tvrtko.ursulin@linux.intel.com
This commit is contained in:
@@ -250,8 +250,9 @@ static int query_perf_config_data(struct drm_i915_private *i915,
|
||||
return total_size;
|
||||
|
||||
if (query_item->length < total_size) {
|
||||
DRM_DEBUG("Invalid query config data item size=%u expected=%u\n",
|
||||
query_item->length, total_size);
|
||||
drm_dbg(&i915->drm,
|
||||
"Invalid query config data item size=%u expected=%u\n",
|
||||
query_item->length, total_size);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -418,9 +419,10 @@ static int query_perf_config_list(struct drm_i915_private *i915,
|
||||
} while (n_configs > alloc);
|
||||
|
||||
if (query_item->length < sizeof_perf_config_list(n_configs)) {
|
||||
DRM_DEBUG("Invalid query config list item size=%u expected=%zu\n",
|
||||
query_item->length,
|
||||
sizeof_perf_config_list(n_configs));
|
||||
drm_dbg(&i915->drm,
|
||||
"Invalid query config list item size=%u expected=%zu\n",
|
||||
query_item->length,
|
||||
sizeof_perf_config_list(n_configs));
|
||||
kfree(oa_config_ids);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user