mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
DRM_ERROR() has been deprecated in favor of pr_err(). However, we should
prefer to use xe_gt_err() or drm_err() whenever possible so we get gt-
or device-specific output with the error message.
v2:
- Prefer drm_err() over pr_err(). (Matt, Jani)
v3:
- Prefer xe_gt_err() over drm_err() when possible. (Matt)
v4:
- Use the already available dev variable instead of xe->drm as
parameter to drm_err(). (Matt)
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Haridhar Kalvala <haridhar.kalvala@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230601194419.1179609-1-gustavo.sousa@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
29 lines
663 B
C
29 lines
663 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_REG_SR_
|
|
#define _XE_REG_SR_
|
|
|
|
#include "xe_reg_sr_types.h"
|
|
|
|
/*
|
|
* Reg save/restore bookkeeping
|
|
*/
|
|
|
|
struct xe_device;
|
|
struct xe_gt;
|
|
struct drm_printer;
|
|
|
|
int xe_reg_sr_init(struct xe_reg_sr *sr, const char *name, struct xe_device *xe);
|
|
void xe_reg_sr_dump(struct xe_reg_sr *sr, struct drm_printer *p);
|
|
|
|
int xe_reg_sr_add(struct xe_reg_sr *sr, const struct xe_reg_sr_entry *e,
|
|
struct xe_gt *gt);
|
|
void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt);
|
|
void xe_reg_sr_apply_whitelist(struct xe_reg_sr *sr, u32 mmio_base,
|
|
struct xe_gt *gt);
|
|
|
|
#endif
|