Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3612647pxb; Mon, 25 Jan 2021 23:26:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6x/bnT9h8oPYKRrG16HyLKgHsiqUyGXYXBrGoJ3uJ0/S5NtFoUth2jL8DVMdMJuPaBNRf X-Received: by 2002:a05:6402:270e:: with SMTP id y14mr692414edd.322.1611645980742; Mon, 25 Jan 2021 23:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611645980; cv=none; d=google.com; s=arc-20160816; b=bf99P+Qkt/x47+f2tTF/sIewqITNpUN1YxRRFe9w/C43w2D3c+3nbeLTpDwnpkNJ1v hEqQ080C/u91VNjymtJo2awsPd3GjJgeDiimjLIDXhKtQWbmmpxYz9z9xPAE6kmhNuHc zJtKVu5p8qjQeJbjW9iheAcZWvmCLfw4mX1sSNDbYl2e+MTeXjvaC8IU+cVw1XXOqkbE mzs5ZAKd5SIIkXibhPiB9jO81dshIaJf8L3WiMO+KW+BWziwIVnw0HCxk1NBHF09ia1w XLRF2pAXNwFG27OE99DudnkBtQ1x2tho454DwKJ+ONjq5AbI+enCWBLKdf2XigyqG01l c5sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=o+tF4kaBNHVUeLz+neiR9EKFSH0RfBoOkuSe1R44I6w=; b=al/Zsuu3PpIGFHIvEXU0Q13D0fXBNzXzk9VhARIr4tVoFqSrOb6w5/oKaIoSHJ8acO 1f8QsG+TFFq0fLfFOj80Y302UhlVjQ3u4zA99Qt0L5Qf3ECQrVrMnlokhtG4b90ziSu+ FPrSCVLRxireUWY2T1Wy7XhANQ8l2XmQ+gHTiN3hvfa0rZ69sU1Be7HCPRQF8al8yWao aXGgSt1WbtLQe2f5WK3CPF384y7F16jFAYAC0J2OAlyQp+MsD1yc+S8O2OZ6eU/tQpRg mEWO+TRs6v9yWV796AfKVfuq5jN/RpRxteLyiWsS48kNguQNecbkpWLyxlRRCqd9ou7+ jMgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hwq67MQm; 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 k6si6699143ejz.530.2021.01.25.23.25.56; Mon, 25 Jan 2021 23:26:20 -0800 (PST) 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=Hwq67MQm; 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 S1725916AbhAZHWa (ORCPT + 99 others); Tue, 26 Jan 2021 02:22:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730297AbhAYPpG (ORCPT ); Mon, 25 Jan 2021 10:45:06 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09FC2C06178A; Mon, 25 Jan 2021 07:07:11 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id d7so5278014otf.3; Mon, 25 Jan 2021 07:07:11 -0800 (PST) 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; bh=o+tF4kaBNHVUeLz+neiR9EKFSH0RfBoOkuSe1R44I6w=; b=Hwq67MQmYVPMYCZWKjORrY407ayyGMAmuweF5bGKJREWfqd/R8Ho/W3mHhkxOLOlGX 1O5S4cg5i+y1RKR41/AMivqX7Z3HDLSHKPOOyjXA25qfSm/GSGnJbe4YAyrky3nLLOrC eNd1d1HRJBKjJqbAXfaYM/8knALrtXO6suGrMIxnJ0XORv6p41Dksgh4wOQ1pFXC3gyR 4TPE9WNGXbowkiHp05fB9CNkTuEiXcnoLwLaQkNFcA5hNSbndfXnmiCMpy9AE5nk1TOI 23FkgL6bSWXk5vvS+HbTxZzShPWFwMwt8cFrZeL20/fiaBcB9Fkj+3qG0+KAH+TS1jSU 5JlA== 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; bh=o+tF4kaBNHVUeLz+neiR9EKFSH0RfBoOkuSe1R44I6w=; b=d3/LOTdU5OCwfRbXRTY+mZKr3URxQvdYS6W2+KANLPFtqwPcnPqjCrqwLGFgZND3Kg UDUikLvl/SI3cyugZ8hKT530GvwQj9cfLHh2kzT8xvp/b8sEy0k08j6qThxvcI6lkq18 I9DT1YBPUq1KYflaoQLTpt/dsg+BPmhIuHNXxmTlOpM8BtaYGzua4IrLbmmUq0zOcnWP sGhi4sBdA9wp1g8WKMnwDqkw6Y8/p+BSAU625UPpmVdmEIDQqB+WmP3gbaWjO8dVOqG7 n16IR4vvoZAmWLHXH1vZ8lYbQNA7NeBAAa742wqINf8vXCKAmf6H8Ijh+9cHnvq1cu+o jM9A== X-Gm-Message-State: AOAM531tXeOO/xJ2vf+my+wrKE+wvfsDnziP4lh9J/IVybbaObSttE0X +DOL3nDWus8XzZpoQpBRI7iOeYNo4YZKUjV5pK8= X-Received: by 2002:a9d:784a:: with SMTP id c10mr796878otm.132.1611587230413; Mon, 25 Jan 2021 07:07:10 -0800 (PST) MIME-Version: 1.0 References: <20210122150022.209454-1-colin.king@canonical.com> <20210125043623.GD610615@hr-amd> In-Reply-To: <20210125043623.GD610615@hr-amd> From: Alex Deucher Date: Mon, 25 Jan 2021 10:06:58 -0500 Message-ID: Subject: Re: [PATCH][next] drm/amdgpu: Fix masking binary not operator on two mask operations To: Huang Rui Cc: Colin King , David Airlie , "kernel-janitors@vger.kernel.org" , "Liu, Aaron" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Daniel Vetter , "Deucher, Alexander" , "Koenig, Christian" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Sun, Jan 24, 2021 at 11:36 PM Huang Rui wrote: > > On Fri, Jan 22, 2021 at 11:00:22PM +0800, Colin King wrote: > > From: Colin Ian King > > > > Currently the ! operator is incorrectly being used to flip bits on > > mask values. Fix this by using the bit-wise ~ operator instead. > > > > Addresses-Coverity: ("Logical vs. bitwise operator") > > Fixes: 3c9a7b7d6e75 ("drm/amdgpu: update mmhub mgcg&ls for mmhub_v2_3") > > Signed-off-by: Colin Ian King > > Thanks. > > Reviewed-by: Huang Rui > > > --- > > drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c > > index 1961745e89c7..ab9be5ad5a5f 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c > > +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c > > @@ -531,12 +531,12 @@ mmhub_v2_3_update_medium_grain_light_sleep(struct amdgpu_device *adev, > > > > if (enable && (adev->cg_flags & AMD_CG_SUPPORT_MC_LS)) { > > data &= ~MM_ATC_L2_CGTT_CLK_CTRL__MGLS_OVERRIDE_MASK; > > - data1 &= !(DAGB0_WR_CGTT_CLK_CTRL__LS_OVERRIDE_MASK | > > + data1 &= ~(DAGB0_WR_CGTT_CLK_CTRL__LS_OVERRIDE_MASK | > > DAGB0_WR_CGTT_CLK_CTRL__LS_OVERRIDE_WRITE_MASK | > > DAGB0_WR_CGTT_CLK_CTRL__LS_OVERRIDE_READ_MASK | > > DAGB0_WR_CGTT_CLK_CTRL__LS_OVERRIDE_RETURN_MASK | > > DAGB0_WR_CGTT_CLK_CTRL__LS_OVERRIDE_REGISTER_MASK); > > - data2 &= !(DAGB0_RD_CGTT_CLK_CTRL__LS_OVERRIDE_MASK | > > + data2 &= ~(DAGB0_RD_CGTT_CLK_CTRL__LS_OVERRIDE_MASK | > > DAGB0_RD_CGTT_CLK_CTRL__LS_OVERRIDE_WRITE_MASK | > > DAGB0_RD_CGTT_CLK_CTRL__LS_OVERRIDE_READ_MASK | > > DAGB0_RD_CGTT_CLK_CTRL__LS_OVERRIDE_RETURN_MASK | > > -- > > 2.29.2 > > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx