Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2499132rwd; Fri, 19 May 2023 06:37:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56p9eoN8DIPAsbB95U9V4i+1mBpT0ifnaLVbwWKarqSHZ6zNEVAmV1J1qCsXBSVSmXScmB X-Received: by 2002:a05:6a20:e68e:b0:101:2160:ff89 with SMTP id mz14-20020a056a20e68e00b001012160ff89mr2056666pzb.38.1684503440037; Fri, 19 May 2023 06:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684503440; cv=none; d=google.com; s=arc-20160816; b=dxyy0dlGHBsWz2J9xGw/zHGTUC3E8Ma9EUkJHqCDY0KiXkROjXNXyyFKD/mFv3i6C4 Ra4b5LoJ3gv9osjx0x6f/WKG1IlF2Iq4U+t5BWlAvlyVyAyvrleZst6KWm16LyfwYPRl k9dh5XlfoiNwIV4Cg3wnFNF9lL2mpgwTdxmaCk9v/nbOEIoCRTridjTm356lB/gKd454 3mIb/JANoVRZpkeyY6RqVnd3gY+r8tRyNoktEUtJBWO/pFBuGGS8FfBiOrQW2w5ReIVI iNZ9SPQQVtumpsVfoy8Z5IhMRFwIvZ5hB9cPuywXuxyOc3wqtFGIpkcCjNZKL39VtIyR NdUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=TYnjMvr3c+U3gEgGMSSumyjYrLuRnotb/3F/SfKgnsc=; b=mw+TKEYIhKANjN8A+cGWAQjGaOiXW7b6lAoE9VZQHwhBGKnC5TMDFK6sJege+qv/UM J+CNejDpcfw+LtoiDBGL9sscErBlJUJ5Z/W3m/dAJd5eWlKjwaXui+RXQ7jiHZ2KOV7R hR+cy/kh51me7o0XAH/l1hUAhG2H3YTwJRAE/68f+nvcN0JRje7VZ8Z2naLHvCRrqc29 yZp4TiKMYa5QIbBetqR0UIaldT0+0Wor+TtuvT3NTJ3uR5qpNeVxI2PmVjznicSSV2OS s/6RgkXk4x7tRpNFsMrGKBPmrYn82MAMbv2Ot9iWrzciMwFtC5MWdGO3q4R9Oa0SS7Xy VJmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DMQ+agUA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0052c9e4521a1si3708191pgi.673.2023.05.19.06.37.06; Fri, 19 May 2023 06:37:20 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=DMQ+agUA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbjESN31 (ORCPT + 99 others); Fri, 19 May 2023 09:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbjESN3X (ORCPT ); Fri, 19 May 2023 09:29:23 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55D1813E for ; Fri, 19 May 2023 06:29:21 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ac785015d6so36001091fa.0 for ; Fri, 19 May 2023 06:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684502959; x=1687094959; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=TYnjMvr3c+U3gEgGMSSumyjYrLuRnotb/3F/SfKgnsc=; b=DMQ+agUAp0tVNmLZx211/kwHmQhA3PYSkImSPr1de5DG9lEgq4alZSaX6p95SAz3hY wv5c0046bZQXHumWaK2qLFuu9YlwglpXq5VYYKSyvvfj11lEsBbJB0XXM/LtW86BRw9J wGqE4SFkPaAA6+Wkr4Zv1VN3iyvR8r9wpjIVSxDdcXhyeaA9/SzEqB5G5GXNi9AJ459+ vbzCYVPIYayYu5WstLPBayYQ43XAeLBIuFdJCUGvYciPzHuCGzN3D7Q5AcxjKodpItPn 8dpFD1sV4QTJB32OV7KrN2bOjx4m+FME77vyckxxcdPmNCMGbzz6I0AvTHGQtxBr6zrC lv1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684502959; x=1687094959; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TYnjMvr3c+U3gEgGMSSumyjYrLuRnotb/3F/SfKgnsc=; b=goaCqm0bqMHRJ3CPRfx/vG5f84jrp1j+1g9IlY7JZGEbbvsq42MlTrVHryoQgMnUNu vWtUKT3AfPLsmQ8romeTOJ6BO53QCQWNY5uauMMM0/TBoszM2D0fZNE2G85vMYykXKds P5uy2ldN7U4y4ylX7K6PeWJ35IYdxmU2Gbp4AbPcQ40yH3Fa+nhhKZ6rrsSUee+Zt4sS sqk/tTykQbCH61wKf92UguFJLAKdUwy7Tt5X5QwiwBaqMVvieO4qaBE079r2/k65n/KB bGVA6E2KPILwNF/bJMTGDVj+je+L/9KIDFNwjoAy4JOlC1d8YsEK+ra0Z1h+g/u3/Xl6 RzzA== X-Gm-Message-State: AC+VfDxnxxE6jcfToyrmfQ7+wxV6n7JoAwLiYj5AIu0twuweCOZrNJno f+G5t4b3QCUB8BeCUNPOmFihBdRoehL4IlXmyYg= X-Received: by 2002:a2e:888c:0:b0:2af:1760:e48e with SMTP id k12-20020a2e888c000000b002af1760e48emr720157lji.39.1684502959499; Fri, 19 May 2023 06:29:19 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id q24-20020a2e9698000000b002ad92dff470sm821384lji.134.2023.05.19.06.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 06:29:19 -0700 (PDT) From: Konrad Dybcio Date: Fri, 19 May 2023 15:29:07 +0200 Subject: [PATCH v2 2/6] drm/msm/a6xx: Explain CP_PROTECT_CNTL writes in a6xx_set_cp_protect MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230517-topic-a7xx_prep-v2-2-5b9daa2b2cf0@linaro.org> References: <20230517-topic-a7xx_prep-v2-0-5b9daa2b2cf0@linaro.org> In-Reply-To: <20230517-topic-a7xx_prep-v2-0-5b9daa2b2cf0@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter Cc: Marijn Suijten , Jonathan Marek , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684502955; l=1118; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=aeaKOCz5rng2fUAGM03IzdiKTh6ymb1woS+RnpEksJ8=; b=AojotZIf3CpXJZMM9oyS1CcyqM0LpHMLBCu7/eIZPDvNXJwMkWZ1OAeVWc1n9mtAsxdc07emI ZIZAHobVZHLDjYoHqqKFAVyQIXDix5wXN5itsFsOLkXWGrHYgugQab/ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 We have the necessary information, so explain which bit does what. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index 9fb214f150dd..deed42675fe2 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c @@ -771,9 +771,10 @@ static void a6xx_set_cp_protect(struct msm_gpu *gpu) } /* - * Enable access protection to privileged registers, fault on an access - * protect violation and select the last span to protect from the start - * address all the way to the end of the register address space + * BIT(0) - Enable access protection to privileged registers + * BIT(1) - Enable fault on an access protect violation + * BIT(3) - Select the last span to protect from the start + * address all the way to the end of the register address space */ gpu_write(gpu, REG_A6XX_CP_PROTECT_CNTL, BIT(0) | BIT(1) | BIT(3)); -- 2.40.1