[PATCH umr] add Kaveri family to SMC read/write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Friday, June 16, 2017 11:57 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH umr] add Kaveri family to SMC read/write
> 
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/lib/mmio.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/lib/mmio.c b/src/lib/mmio.c
> index dfd9f0d33e5d..f0737c43913a 100644
> --- a/src/lib/mmio.c
> +++ b/src/lib/mmio.c
> @@ -31,6 +31,7 @@ static uint32_t umr_smc_read(struct umr_asic *asic,
> uint64_t addr)
>  		switch (asic->config.gfx.family) {
>  			case 110: // SI
>  			case 120: // CIK
> +			case 125: // KV
>  			case 130: // VI
>  				umr_write_reg_by_name(asic,
> "mmSMC_IND_INDEX_1", addr);
>  				return umr_read_reg_by_name(asic,
> "mmSMC_IND_DATA_1");
> @@ -57,6 +58,7 @@ static uint32_t umr_smc_write(struct umr_asic *asic,
> uint64_t addr, uint32_t val
>  		switch (asic->config.gfx.family) {
>  			case 110: // SI
>  			case 120: // CIK
> +			case 125: // KV
>  			case 130: // VI
>  				umr_write_reg_by_name(asic,
> "mmSMC_IND_INDEX_1", addr);
>  				return umr_write_reg_by_name(asic,
> "mmSMC_IND_DATA_1", value);
> --
> 2.12.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux