mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
We already have device and GT level SR-IOV specific macros, but unlike native case, we don't have yet tile-based ones. Add macros to match native use case and also update GT-based macros to rely on those new tile-based SR-IOV macros. This will slightly rearrange the output of the GT logs and instead: [...] Tile0: GT0: PF: pushed VF1 config with 2 KLVs... we might see: [...] PF: Tile0: GT0: pushed VF1 config with 2 KLVs... but that's even better. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://lore.kernel.org/r/20251005133641.2651-3-michal.wajdeczko@intel.com
34 lines
1004 B
C
34 lines
1004 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_TILE_SRIOV_PRINTK_H_
|
|
#define _XE_TILE_SRIOV_PRINTK_H_
|
|
|
|
#include "xe_tile_printk.h"
|
|
#include "xe_sriov_printk.h"
|
|
|
|
#define __XE_TILE_SRIOV_PRINTK_FMT(_tile, _fmt, ...) \
|
|
__XE_TILE_PRINTK_FMT((_tile), _fmt, ##__VA_ARGS__)
|
|
|
|
#define xe_tile_sriov_printk(_tile, _level, _fmt, ...) \
|
|
xe_sriov_##_level((_tile)->xe, __XE_TILE_SRIOV_PRINTK_FMT((_tile), _fmt, ##__VA_ARGS__))
|
|
|
|
#define xe_tile_sriov_err(_tile, _fmt, ...) \
|
|
xe_tile_sriov_printk(_tile, err, _fmt, ##__VA_ARGS__)
|
|
|
|
#define xe_tile_sriov_notice(_tile, _fmt, ...) \
|
|
xe_tile_sriov_printk(_tile, notice, _fmt, ##__VA_ARGS__)
|
|
|
|
#define xe_tile_sriov_info(_tile, _fmt, ...) \
|
|
xe_tile_sriov_printk(_tile, info, _fmt, ##__VA_ARGS__)
|
|
|
|
#define xe_tile_sriov_dbg(_tile, _fmt, ...) \
|
|
xe_tile_sriov_printk(_tile, dbg, _fmt, ##__VA_ARGS__)
|
|
|
|
#define xe_tile_sriov_dbg_verbose(_tile, _fmt, ...) \
|
|
xe_tile_sriov_printk(_tile, dbg_verbose, _fmt, ##__VA_ARGS__)
|
|
|
|
#endif
|