Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp41527pxp; Thu, 10 Mar 2022 22:00:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe2vvTmfwKyRt9c4C4m+DuZEKGfHSPguIobXyJ7AdPZ4Avz+DKnNUstPmRv9L00Juvlg/X X-Received: by 2002:a63:86c8:0:b0:37c:9031:c41a with SMTP id x191-20020a6386c8000000b0037c9031c41amr6947715pgd.242.1646978406140; Thu, 10 Mar 2022 22:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646978406; cv=none; d=google.com; s=arc-20160816; b=nil+HAiS9D78V5RLJl0pJCp0A+CJJGuT/+3+85X3LsHUWeo8Yq/WApaZsNeoatkJ8o 1oe2FWYpFireq446QeVY23uO3tdx7AR2oLyWfR9WGdGDKAS/WLmChZklOUKBvDymhHgF Zb5glF2OVmnzRL1vGofBfISs+nARzYMqJ5QkSDcjjEMFSJ2U5goKsg2q21PvrSFwmI55 60zZ5FaE2UgQKg1RLx6Me60CYPmIj0gwvtVTnxWpDoR0WQWNM3CBwPtdPJDoJ55LRU66 DNByCIigJHF22Ud614JwSXaeor+mGUdf2vKECsQaaIQ0eKwMixtoTW9jgMyCzaRIec2E ndOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fUwKBdPxWjA90YveqN52nCUPcRyvvn5us9+87cUac8c=; b=n9BCEsQjg1m8pG+zun/CCH4rL9EOWqkIHT4X7akbWBjcFv8g9p6hJYRjsA4kYUhViS Liipb/OQrYqVRa+2sj7YIEBY4UE2KXP7jtr3W0wha+24Z7uUt5SMhJzsHJ0592TzsRVW jiu8oU3z8aYgxJcFOf5X75yy9shmoKknmDd+1MGrApaAGwtZ5Qa0U911U0ArmbP/DbdB Nc8VrjoIlhmItr8eUdz0oGwVkWxA+xx3KhW1jS+fH2v5m8W3wwLDwVaBbk2XAe0joH0Q p6CyYjtR1tx6+ABYEDUzz/g735oN7eLQFLCcf8BSlCxljYSPV4r6cHz5Wus6CimiiTlU Iuzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x63-20020a638642000000b0037c8b728630si6556200pgd.739.2022.03.10.21.59.46; Thu, 10 Mar 2022 22:00:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240189AbiCKAns (ORCPT + 99 others); Thu, 10 Mar 2022 19:43:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbiCKAnq (ORCPT ); Thu, 10 Mar 2022 19:43:46 -0500 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2FEDB1095 for ; Thu, 10 Mar 2022 16:42:42 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R561e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0V6qUi.A_1646959359; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V6qUi.A_1646959359) by smtp.aliyun-inc.com(127.0.0.1); Fri, 11 Mar 2022 08:42:40 +0800 From: Yang Li To: christian.koenig@amd.com Cc: alexander.deucher@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] drm/amd/pm: clean up some inconsistent indenting Date: Fri, 11 Mar 2022 08:42:38 +0800 Message-Id: <20220311004238.112196-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the follow smatch warning: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu_cmn.c:174 __smu_cmn_reg_print_error() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c index ae64d1980f10..5ed11624f144 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c @@ -164,17 +164,17 @@ static void __smu_cmn_reg_print_error(struct smu_context *smu, switch (reg_c2pmsg_90) { case SMU_RESP_NONE: { - if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 5)) { - msg_idx = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_2); - prm = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_34); - } else { - msg_idx = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66); - prm = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_82); - } - dev_err_ratelimited(adev->dev, - "SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x%08X SMN_C2PMSG_82:0x%08X", - msg_idx, prm); - } + if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 5)) { + msg_idx = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_2); + prm = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_34); + } else { + msg_idx = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66); + prm = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_82); + } + dev_err_ratelimited(adev->dev, + "SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x%08X SMN_C2PMSG_82:0x%08X", + msg_idx, prm); + } break; case SMU_RESP_OK: /* The SMU executed the command. It completed with a -- 2.20.1.7.g153144c