[PATCH 14/40] drm/amdgpu: Drop i > 0 restriction for issuing RESTART
Alex Deucher
alexdeucher at gmail.com
Thu Jun 10 20:21:21 UTC 2021
On Tue, Jun 8, 2021 at 5:40 PM Luben Tuikov <luben.tuikov at amd.com> wrote:
>
> From: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
Needs a commit message. With that fixed:
Acked-by: Alex Deucher <alexander.deucher at amd.com>
>
> Cc: Jean Delvare <jdelvare at suse.de>
> Cc: Alexander Deucher <Alexander.Deucher at amd.com>
> Cc: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
> Cc: Lijo Lazar <Lijo.Lazar at amd.com>
> Cc: Stanley Yang <Stanley.Yang at amd.com>
> Cc: Hawking Zhang <Hawking.Zhang at amd.com>
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
> Signed-off-by: Luben Tuikov <luben.tuikov at amd.com>
> Reviewed-by: Luben Tuikov <luben.tuikov at amd.com>
> ---
> drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 2 +-
> drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 2 +-
> drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
> index 73e261260b76e6..72b02025b07e06 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
> @@ -1954,7 +1954,7 @@ static int arcturus_i2c_xfer(struct i2c_adapter *i2c_adap,
> if ((msg[i].flags & I2C_M_STOP) ||
> (!remaining_bytes))
> cmd->CmdConfig |= CMDCONFIG_STOP_MASK;
> - if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
> + if ((j == 0) && !(msg[i].flags & I2C_M_NOSTART))
> cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
> }
> }
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
> index 5dc48e557c2bad..289d09a5d711b9 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
> @@ -2749,7 +2749,7 @@ static int navi10_i2c_xfer(struct i2c_adapter *i2c_adap,
> if ((msg[i].flags & I2C_M_STOP) ||
> (!remaining_bytes))
> cmd->CmdConfig |= CMDCONFIG_STOP_MASK;
> - if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
> + if ((j == 0) && !(msg[i].flags & I2C_M_NOSTART))
> cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
> }
> }
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> index fdbc54622dbfbf..e8e57462ce9d64 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> @@ -3437,7 +3437,7 @@ static int sienna_cichlid_i2c_xfer(struct i2c_adapter *i2c_adap,
> if ((msg[i].flags & I2C_M_STOP) ||
> (!remaining_bytes))
> cmd->CmdConfig |= CMDCONFIG_STOP_MASK;
> - if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
> + if ((j == 0) && !(msg[i].flags & I2C_M_NOSTART))
> cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
> }
> }
> --
> 2.32.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list