Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1422691pxj; Fri, 21 May 2021 14:00:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymarAsSwXQQYsaXkviF22Kr4eNtGstix5KCe7Kg6OYDg5qpzKnZRlgNSugvGkg6zXY6URv X-Received: by 2002:aa7:d94f:: with SMTP id l15mr13727531eds.235.1621630815583; Fri, 21 May 2021 14:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621630815; cv=none; d=google.com; s=arc-20160816; b=LMIqx7+xG8O7id5L342e3mffNo3frNTPHip4VjMGp6dO/kqjK7zzxkYPXrO/Fx18YN 2yMBV4y78/haXNeP34+1HzC+tZCs2YxH9tUQkIDHbNlYlyOIFl6N1nAN/fvF0hBv8LqP kSFlEkNH4Q1AX6H7wLrM93fzWV1ZQ9yv91A45TA4cqbI5Sc/9XZvBAP+ue9PHB6kaqfS BNJpfuskDOskNt45UCSl1I+2/m8+bPO2FeG2lgFfZFtj0QEorY3SIfbZ8nTInySTdxP4 t65oOTU5b7GkEZfwTAA1EAhrbgBXpr5IVSkmyJg4yrmo9yEhlifhntTF/I192N/+HSOR tbOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ab85Wj/pv/eyNCl9jj3/qpptG4tumUbJBe7Uftmergk=; b=y9q5ap5kxxcTBNJaF2ExgjiFe2VcgxKE4R2gc9gZqSMnysSJ30JxJj73V8yzPVxXmz B4mjgimjaHyIV22Oj5ULbPClWhvbMfKRk2x4fR386MwIz/F1oy5SEWru32GpkYVcjEpR 17uYPWGRcQaXKB8lbf7s7doLeU2zOx5aLg3ZB17U2D+fWOiAIn5vy2qC11bYQ0F14Nlx MoCNu/ZjfhNP/BCvTbmeNmsv8blNAlkc5ArDPAKhQsfN6zBaTZ2xZQbdDLG1H+4cvoaB wCGcNKziYToqYo2qhwT+s5mvltDBBxG5QIF5p2YFvMPsehOePzZ3TKNGwC4ymAQtWErn /eMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DdprPYDE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si4423738edu.41.2021.05.21.13.59.51; Fri, 21 May 2021 14:00:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DdprPYDE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbhEUU73 (ORCPT + 99 others); Fri, 21 May 2021 16:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhEUU72 (ORCPT ); Fri, 21 May 2021 16:59:28 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30CB5C061574; Fri, 21 May 2021 13:58:05 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id v19-20020a0568301413b0290304f00e3d88so19233623otp.4; Fri, 21 May 2021 13:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ab85Wj/pv/eyNCl9jj3/qpptG4tumUbJBe7Uftmergk=; b=DdprPYDEm5sNMdFVAXYdEMFrMv/Kiefs/9C+4QjFLvB8QUnGZbIUG3pRVi1U/IPHac 49eUuSEqNHAgcpRgMKSnzzbhMjpsUgqMNscLpk4Bs9g5EOCfc6vMVciTzFeOi/tV0KRj vIsz9qHhNPT0nWQK0wsGkegXgR5jNtt/2dkWH1lGZO91/IDIb01+2nPAJJVvGrDhAOmV 10moBR3buVC126UWuf8DQ15RzgkJM0DVply5vvzDvBcPt5I1M6UHVSGb4G1PP/SycFCL aDolkPD45t5HKqOuCaUKlLDhWquxw3YTBspd2tSdcdZluA9pA5D7dha+HI3q2pJKgIgv 7crQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ab85Wj/pv/eyNCl9jj3/qpptG4tumUbJBe7Uftmergk=; b=Qm5IStfpIa1Xdwx74x3GN08qFaHmYhZ40PjoQ7SVeLcMxa8DvMXBX/DGiPUye3lDA0 QFoKHeJPJcE+KnkDdHrOArm4r3DeMuHcH03yyGI0/KeyjAGbQGptbml9ubWbW/15HW5g z0e1Y/xuAY6wandA8ytZs7YNUY8IIl79ynEWgDK7mqrmnDHfu/E/CicDX2R5LHOvksPc Snkj9yLBhTtRij/xh934iqB1pdQs6pakkU9D/PnTYfhQ3kbRIggFjZ/j5Qp6nFwg8pAB mBp7yNBlCbJ949T2EayLMp/jh7oHbWMDdmL6zeRjVOOGAlmRJW2Wg2EvzKTuA3RfbHqd XhwA== X-Gm-Message-State: AOAM530SSUneTotflky+iMxFXmrev55v9YNEDfHrjvCvoXvQJ5UcHYkK QFxc5reaMHA2rwpyilstW5sW9EJvjsqNVL6Hxy8= X-Received: by 2002:a9d:6548:: with SMTP id q8mr10018862otl.311.1621630684620; Fri, 21 May 2021 13:58:04 -0700 (PDT) MIME-Version: 1.0 References: <1621590628-75988-1-git-send-email-jiapeng.chong@linux.alibaba.com> <09e40764-1d3a-0dfe-b278-5b5ce04670a9@gmail.com> In-Reply-To: <09e40764-1d3a-0dfe-b278-5b5ce04670a9@gmail.com> From: Alex Deucher Date: Fri, 21 May 2021 16:57:53 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Fix inconsistent indenting To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Jiapeng Chong , "Deucher, Alexander" , Dave Airlie , xinhui pan , LKML , amd-gfx list , Christian Koenig , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Maling list - DRI developers , Daniel Vetter , Sumit Semwal , linux-media Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Fri, May 21, 2021 at 9:35 AM Christian K=C3=B6nig wrote: > > Am 21.05.21 um 11:50 schrieb Jiapeng Chong: > > Eliminate the follow smatch warning: > > > > drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c:449 > > sdma_v5_0_ring_emit_mem_sync() warn: inconsistent indenting. > > > > Reported-by: Abaci Robot > > Signed-off-by: Jiapeng Chong > > Reviewed-by: Christian K=C3=B6nig > > > --- > > drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 13 ++++++------- > > 1 file changed, 6 insertions(+), 7 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/a= md/amdgpu/sdma_v5_0.c > > index 75d7310..c45e1b0 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c > > +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c > > @@ -440,20 +440,19 @@ static void sdma_v5_0_ring_emit_ib(struct amdgpu_= ring *ring, > > */ > > static void sdma_v5_0_ring_emit_mem_sync(struct amdgpu_ring *ring) > > { > > - uint32_t gcr_cntl =3D > > - SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB | SDMA_GCR_GLM_INV= | > > - SDMA_GCR_GL1_INV | SDMA_GCR_GLV_INV | SDMA_GCR_GL= K_INV | > > - SDMA_GCR_GLI_INV(1); > > + uint32_t gcr_cntl =3D SDMA_GCR_GL2_INV | SDMA_GCR_GL2_WB | SDMA_G= CR_GLM_INV | > > + SDMA_GCR_GL1_INV | SDMA_GCR_GLV_INV | SDMA_GC= R_GLK_INV | > > + SDMA_GCR_GLI_INV(1); > > > > /* flush entire cache L0/L1/L2, this can be optimized by performa= nce requirement */ > > amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_GCR_REQ)); > > amdgpu_ring_write(ring, SDMA_PKT_GCR_REQ_PAYLOAD1_BASE_VA_31_7(0)= ); > > amdgpu_ring_write(ring, SDMA_PKT_GCR_REQ_PAYLOAD2_GCR_CONTROL_15_= 0(gcr_cntl) | > > - SDMA_PKT_GCR_REQ_PAYLOAD2_BASE_VA_47_32(0)); > > + SDMA_PKT_GCR_REQ_PAYLOAD2_BASE_VA_47_32(0)); > > amdgpu_ring_write(ring, SDMA_PKT_GCR_REQ_PAYLOAD3_LIMIT_VA_31_7(0= ) | > > - SDMA_PKT_GCR_REQ_PAYLOAD3_GCR_CONTROL_18_16(gcr_c= ntl >> 16)); > > + SDMA_PKT_GCR_REQ_PAYLOAD3_GCR_CONTROL_18_16(gcr= _cntl >> 16)); > > amdgpu_ring_write(ring, SDMA_PKT_GCR_REQ_PAYLOAD4_LIMIT_VA_47_32(= 0) | > > - SDMA_PKT_GCR_REQ_PAYLOAD4_VMID(0)); > > + SDMA_PKT_GCR_REQ_PAYLOAD4_VMID(0)); > > } > > > > /** > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx