mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/amdgpu: Add support for RAS table at 0x40000
[ Upstream commit 64a3dbb06a ]
Add support for RAS table at I2C EEPROM address of 0x40000, since on some
ASICs it is not at 0, but at 0x40000.
Cc: Alex Deucher <Alexander.Deucher@amd.com>
Cc: Kent Russell <kent.russell@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Tested-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: e0409021e34a ("drm/amdgpu: Update EEPROM I2C address for smu v13_0_0")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c67c553b4d
commit
30289057ef
@@ -157,6 +157,7 @@ static bool __get_eeprom_i2c_addr_ip_discovery(struct amdgpu_device *adev,
|
|||||||
static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
|
static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
|
||||||
struct amdgpu_ras_eeprom_control *control)
|
struct amdgpu_ras_eeprom_control *control)
|
||||||
{
|
{
|
||||||
|
struct atom_context *atom_ctx = adev->mode_info.atom_context;
|
||||||
u8 i2c_addr;
|
u8 i2c_addr;
|
||||||
|
|
||||||
if (!control)
|
if (!control)
|
||||||
@@ -190,7 +191,11 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CHIP_ALDEBARAN:
|
case CHIP_ALDEBARAN:
|
||||||
control->i2c_address = EEPROM_I2C_MADDR_0;
|
if (strnstr(atom_ctx->vbios_version, "D673",
|
||||||
|
sizeof(atom_ctx->vbios_version)))
|
||||||
|
control->i2c_address = EEPROM_I2C_MADDR_4;
|
||||||
|
else
|
||||||
|
control->i2c_address = EEPROM_I2C_MADDR_0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CHIP_IP_DISCOVERY:
|
case CHIP_IP_DISCOVERY:
|
||||||
|
|||||||
Reference in New Issue
Block a user