mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 02:11:47 +07:00
695fbc08d8
gvt_err should be used only for the very few critical error message during host i915 drvier initialization. This patch 1. removes the redundant gvt_err; 2. creates a new gvt_vgpu_err to show errors caused by vgpu; 3. replaces the most gvt_err with gvt_vgpu_err; 4. leaves very few gvt_err for dumping gvt error during host gvt initialization. v2. change name to gvt_vgpu_err and add vgpu id to the message. (Kevin) add gpu id to gvt_vgpu_err. (Zhi) v3. remove gpu id from gvt_vgpu_err caller. (Zhi) v4. add vgpu check to the gvt_vgpu_err macro. (Zhiyuan) v5. add comments for v3 and v4. v6. split the big patch into two, with this patch only for checking gvt_vgpu_err. (Zhenyu) v7. rebase to staging branch v8. rebase to fix branch Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
66 lines
2.2 KiB
C
66 lines
2.2 KiB
C
/*
|
|
* Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice (including the next
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
* Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*/
|
|
|
|
#ifndef __GVT_DEBUG_H__
|
|
#define __GVT_DEBUG_H__
|
|
|
|
#define gvt_err(fmt, args...) \
|
|
DRM_ERROR("gvt: "fmt, ##args)
|
|
|
|
#define gvt_vgpu_err(fmt, args...) \
|
|
do { \
|
|
if (IS_ERR_OR_NULL(vgpu)) \
|
|
DRM_DEBUG_DRIVER("gvt: "fmt, ##args); \
|
|
else \
|
|
DRM_DEBUG_DRIVER("gvt: vgpu %d: "fmt, vgpu->id, ##args);\
|
|
} while (0)
|
|
|
|
#define gvt_dbg_core(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: core: "fmt, ##args)
|
|
|
|
#define gvt_dbg_irq(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: irq: "fmt, ##args)
|
|
|
|
#define gvt_dbg_mm(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: mm: "fmt, ##args)
|
|
|
|
#define gvt_dbg_mmio(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: mmio: "fmt, ##args)
|
|
|
|
#define gvt_dbg_dpy(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: dpy: "fmt, ##args)
|
|
|
|
#define gvt_dbg_el(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: el: "fmt, ##args)
|
|
|
|
#define gvt_dbg_sched(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: sched: "fmt, ##args)
|
|
|
|
#define gvt_dbg_render(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: render: "fmt, ##args)
|
|
|
|
#define gvt_dbg_cmd(fmt, args...) \
|
|
DRM_DEBUG_DRIVER("gvt: cmd: "fmt, ##args)
|
|
|
|
#endif
|