mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-27 18:24:03 +07:00
drm/amd/powerplay: forbid to use pr_err/warn/info/debug
Use dev_err/warn/info/dbg instead. They are more MGPU friendly. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d9811cfc0e
commit
55084d7f40
@ -34,6 +34,16 @@
|
||||
#include "sienna_cichlid_ppt.h"
|
||||
#include "renoir_ppt.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
#undef __SMU_DUMMY_MAP
|
||||
#define __SMU_DUMMY_MAP(type) #type
|
||||
static const char* __smu_message_names[] = {
|
||||
|
@ -44,6 +44,16 @@
|
||||
#include <linux/pci.h>
|
||||
#include "amdgpu_ras.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
#define to_amdgpu_device(x) (container_of(x, struct amdgpu_device, pm.smu_i2c))
|
||||
|
||||
#define CTF_OFFSET_EDGE 5
|
||||
|
@ -42,6 +42,16 @@
|
||||
|
||||
#include "asic_reg/mp/mp_11_0_sh_mask.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
#define FEATURE_MASK(feature) (1ULL << feature)
|
||||
#define SMC_DPM_FEATURE ( \
|
||||
FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT) | \
|
||||
|
@ -29,6 +29,15 @@
|
||||
#include "smu_v12_0.h"
|
||||
#include "renoir_ppt.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
#define CLK_MAP(clk, index) \
|
||||
[SMU_##clk] = {1, (index)}
|
||||
|
@ -42,6 +42,16 @@
|
||||
|
||||
#include "asic_reg/mp/mp_11_0_sh_mask.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
#define FEATURE_MASK(feature) (1ULL << feature)
|
||||
#define SMC_DPM_FEATURE ( \
|
||||
FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT) | \
|
||||
|
@ -45,6 +45,16 @@
|
||||
#include "asic_reg/smuio/smuio_11_0_0_offset.h"
|
||||
#include "asic_reg/smuio/smuio_11_0_0_sh_mask.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
MODULE_FIRMWARE("amdgpu/arcturus_smc.bin");
|
||||
MODULE_FIRMWARE("amdgpu/navi10_smc.bin");
|
||||
MODULE_FIRMWARE("amdgpu/navi14_smc.bin");
|
||||
|
@ -35,6 +35,16 @@
|
||||
#include "asic_reg/smuio/smuio_12_0_0_offset.h"
|
||||
#include "asic_reg/smuio/smuio_12_0_0_sh_mask.h"
|
||||
|
||||
/*
|
||||
* DO NOT use these for err/warn/info/debug messages.
|
||||
* Use dev_err, dev_warn, dev_info and dev_dbg instead.
|
||||
* They are more MGPU friendly.
|
||||
*/
|
||||
#undef pr_err
|
||||
#undef pr_warn
|
||||
#undef pr_info
|
||||
#undef pr_debug
|
||||
|
||||
// because some SMU12 based ASICs use older ip offset tables
|
||||
// we should undefine this register from the smuio12 header
|
||||
// to prevent confusion down the road
|
||||
|
Loading…
Reference in New Issue
Block a user