drm/i915: move gpu error sysfs to i915_gpu_error.c
authorJani Nikula <jani.nikula@intel.com>
Tue, 31 Oct 2023 12:45:02 +0000 (14:45 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 2 Nov 2023 12:12:45 +0000 (14:12 +0200)
commitd581841076bc5de3c0ae72fd6bd50c59ce9f1638
treeff066f8c01ea7cda0bfab77767261928c193cc44
parent4fca51984371d930a5d9d5a8b0848b892dbfdecc
drm/i915: move gpu error sysfs to i915_gpu_error.c

Hide gpu error specifics in i915_gpu_error.c. This is also cleaner wrt
conditional compilation, as i915_gpu_error.c is only built with
DRM_I915_CAPTURE_ERROR=y.

With this, we can also make i915_first_error_state() static.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231031124502.1772160-3-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_gpu_error.h
drivers/gpu/drm/i915/i915_sysfs.c