Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2498878rwd; Fri, 9 Jun 2023 12:09:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4UAd+dfzDBHnREGkhBrJ2vKRnUEQCW0OrGp04eNKZbR5zX/tLgoQAoeEHLyMGJFJY5UZt7 X-Received: by 2002:a17:907:7d8f:b0:97d:2bcc:47d5 with SMTP id oz15-20020a1709077d8f00b0097d2bcc47d5mr600094ejc.49.1686337752671; Fri, 09 Jun 2023 12:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686337752; cv=none; d=google.com; s=arc-20160816; b=qM+2pqYZrlPyuPiPHvhUx7Bc7uy2T2ypiraNU3FzjL/U0rCpf4eC1LtGFbkboo1Ixw 585OhU6nUN/z57+yjmZB+f8toi9rLv7sMdcW0GhBNCwdjTS2QOhmMwIKaFIxxkKPbpl7 5WnooDOHOGs73X5EYF0vnuJ56PhPEtoz0L+ZSXt3w5mfE+M/S5Oq21f37yARQOlgh19n kw9t1iKbwkOitW/ILiPwisI0uzQbp9cwfSQ46pgK0ub/Y7iiicuQ+/dUU3411qENFz5w 0uFtpHpCjqeZZ0nMrgpPN8BKqPyIuzhN/KAPyOTyt48+GcsCDC4j0DEm1Ei85K0G5lBl 3R0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mzHdn1DaLzWURRN7ZYzg7ldO/12Vf7Ax/qC+Hs/RMDw=; b=U4nJ7bHENFoxEw/0Dd/xhpAPla1oKbM/+p4e6Q4xbVRefPmTpFhL60p9c+NtqlhXQJ JTfBYAjzj4zRVO4MaxuZ8Ty4WNmCItFPmcmlOb8qy9XdzJhysHN55OvwwlvmiBXb6xy5 SA2g4huZWuwF3hf4xnjD45Kc4KzDLp84RMM5hfTtRW4Hek0yBHWpi1OxDZUZqW9l/nNo 6EZwq2p1Q/5lxBy2/lYCGN6N+CU598vnmdJTOPiLEBk/kRik/dm43sXuxnerl2CRQWU6 jyaPLUU5d2gJPHNk0CUHtg2rBsOhJ6+/HyvhxS3gwYU/bIiXf6ETPn3ajLCe+pCNwBfY rejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IfM+S68Z; 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 y13-20020a1709063a8d00b00961a98417dbsi1665547ejd.744.2023.06.09.12.08.47; Fri, 09 Jun 2023 12:09:12 -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=IfM+S68Z; 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 S231232AbjFISfs (ORCPT + 99 others); Fri, 9 Jun 2023 14:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjFISfq (ORCPT ); Fri, 9 Jun 2023 14:35:46 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D89A1FFE for ; Fri, 9 Jun 2023 11:35:45 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f624daccd1so2610008e87.0 for ; Fri, 09 Jun 2023 11:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686335744; x=1688927744; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mzHdn1DaLzWURRN7ZYzg7ldO/12Vf7Ax/qC+Hs/RMDw=; b=IfM+S68ZeejULF2odiSYoidoZk7h1LBUvvkgGxfC2bGAqKqnCVVRt4v6li4ay+SSW1 2Zs+NN9SzoX0viWeHrv3EizqXNW1cHwhvj7fVlUWXytkRh5vW8e/y+pI1MvSj0HdVBMa aU8RLu/rEExpLKJVsdj4OgAxJYE5fdDWywHheVOnNCFm/Syvzz21JoQdW7YQX8++gCGp J7tWp2eQ6F+vqU7kZTkIH4jcT0thLc+Gtvad6p6MDR1tbtww/tLqxlYymlbrkspki5eT amd+Bcbu5vyAv8z6H11bJzZiquCXsRhCQ1QqgeRt+meBW1EXwJuRbMT7M33ZRIGwqS+I 7w6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686335744; x=1688927744; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mzHdn1DaLzWURRN7ZYzg7ldO/12Vf7Ax/qC+Hs/RMDw=; b=P8ooFFO4/4EdQj4Ctdc50eq9883Zpwy3zRUHzYB0g2u17bZGd2p9Aogte/lBu/kDjF 9r9Ja3o4X2GjQutcxw7Tx8rgOv53aURgZIwPulZB2yQkqUTRml+Vhobs4uSP0d0B5ysX Ore6HUQJJIzHd/8mSWAjabJ37b1TeS09kj9N0eYZmWZvlnsmMTpHTYMhYBvu9vt0NKV0 lIbvGfHGljQVkSc+GgeqsXqc99Ek1E0VX08DmA/e/6h55CbPCbK6lHuo2oDUoWVMSGUR Z69UCNE8oJFExTJTbUceNe4KmL0GRuNZBKh2cP0QoLDXI4P8MIwvLnDB/Y4b+xmZYXLT wBVQ== X-Gm-Message-State: AC+VfDyYPUNuh4z6nP4U7AGQ7fetAK+sCgK54suvcDqtdEUs3RcSJUOa CIIewyrdgbPp2b1s0zwnaufOuA== X-Received: by 2002:a19:5049:0:b0:4f4:4cd4:2586 with SMTP id z9-20020a195049000000b004f44cd42586mr1231188lfj.20.1686335743642; Fri, 09 Jun 2023 11:35:43 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id o1-20020a056512050100b004f38267a2f9sm622720lfb.161.2023.06.09.11.35.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jun 2023 11:35:43 -0700 (PDT) Message-ID: <0e3b5d21-24dc-6c44-0984-98d4a33fbe6e@linaro.org> Date: Fri, 9 Jun 2023 20:35:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v8 08/18] drm/msm/a6xx: Remove both GBIF and RBBM GBIF halt on hw init To: Akhil P Oommen Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Conor Dooley , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Clark , Marijn Suijten References: <20230223-topic-gmuwrapper-v8-0-69c68206609e@linaro.org> <20230223-topic-gmuwrapper-v8-8-69c68206609e@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 9.06.2023 20:25, Akhil P Oommen wrote: > On Mon, May 29, 2023 at 03:52:27PM +0200, Konrad Dybcio wrote: >> >> Currently we're only deasserting REG_A6XX_RBBM_GBIF_HALT, but we also >> need REG_A6XX_GBIF_HALT to be set to 0. >> >> This is typically done automatically on successful GX collapse, but in >> case that fails, we should take care of it. >> >> Also, add a memory barrier to ensure it's gone through before jumping >> to further initialization. >> >> Reviewed-by: Dmitry Baryshkov >> Signed-off-by: Konrad Dybcio >> --- >> drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c >> index 083ccb5bcb4e..dfde5fb65eed 100644 >> --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c >> +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c >> @@ -1003,8 +1003,12 @@ static int hw_init(struct msm_gpu *gpu) >> a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET); >> >> /* Clear GBIF halt in case GX domain was not collapsed */ >> - if (a6xx_has_gbif(adreno_gpu)) >> + if (a6xx_has_gbif(adreno_gpu)) { >> + gpu_write(gpu, REG_A6XX_GBIF_HALT, 0); >> gpu_write(gpu, REG_A6XX_RBBM_GBIF_HALT, 0); >> + /* Let's make extra sure that the GPU can access the memory.. */ >> + mb(); > This barrier is unnecessary because writel transactions are ordered and > we don't expect a traffic from GPU immediately after this. > > -Akhil Right, let's remove it! Konrad >> + } >> >> gpu_write(gpu, REG_A6XX_RBBM_SECVID_TSB_CNTL, 0); >> >> >> -- >> 2.40.1 >>