mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/i915: separate display info printing from the rest
Add new function intel_display_device_info_print() and print the display device info there instead of intel_device_info_print(). This also fixes the display runtime info printing to use the actual runtime info instead of the static defaults. Cc: Matt Roper <matthew.d.roper@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/30d4f93c58839bc9312b43423cd43bc0ef655a35.1687878757.git.jani.nikula@intel.com
This commit is contained in:
@@ -649,6 +649,8 @@ static void err_print_capabilities(struct drm_i915_error_state_buf *m,
|
||||
struct drm_printer p = i915_error_printer(m);
|
||||
|
||||
intel_device_info_print(&error->device_info, &error->runtime_info, &p);
|
||||
intel_display_device_info_print(&error->display_device_info,
|
||||
&error->display_runtime_info, &p);
|
||||
intel_driver_caps_print(&error->driver_caps, &p);
|
||||
}
|
||||
|
||||
@@ -1983,6 +1985,10 @@ static void capture_gen(struct i915_gpu_coredump *error)
|
||||
memcpy(&error->runtime_info,
|
||||
RUNTIME_INFO(i915),
|
||||
sizeof(error->runtime_info));
|
||||
memcpy(&error->display_device_info, DISPLAY_INFO(i915),
|
||||
sizeof(error->display_device_info));
|
||||
memcpy(&error->display_runtime_info, DISPLAY_RUNTIME_INFO(i915),
|
||||
sizeof(error->display_runtime_info));
|
||||
error->driver_caps = i915->caps;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user