Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3149239pxk; Mon, 28 Sep 2020 09:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3FVf2G0+FJ7zSf6yj+SLCAsyDkAwzvGM5OLPAREey+0BFo6i0gE4LOJ4h+ZhAYkqtY0JD X-Received: by 2002:a17:906:5008:: with SMTP id s8mr2591634ejj.408.1601310587691; Mon, 28 Sep 2020 09:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601310587; cv=none; d=google.com; s=arc-20160816; b=D2zcOGMslV/SATzyJtNUXX06QLy0Vg4I0+AcPAYQH3wKf5VaJ/IsM5DYZUfRkYk5hj jVgoKiR3JY0/DfxLX1iMg01M1bMsR8QvtRufeCI2d7qNpKjCUEtN4fcZ0ZP9OQs0CcFk A8KISFoO9TaSV/T1IBm+eEa+ucH1aB2cPpV82UbZVyfy06QGDt6OpM7tI572eH5pw+L5 vu3pxvPSv6Phsjzgh6pyL3PKqetFuJC59Dt+PmTlCnWcPQFlqBi6AQe5PzZUTP4U2nDb Bgu2viFTG1g2qKgX9mFCvEidg4Q51MvbtbuG+M6W+HU76SOuvRMEhyFGaKJCz+86hd/X uSzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dmarc-filter:sender:dkim-signature; bh=oUdEYLO/LBcwhMGcfeLJRSq6/QgcQ4bl42FimYBDM60=; b=YhWYR7N4fuYuSJU/eHkcHMSNGa+fiCDhT3le9AzYLb8yWWXO0k6Ts3GQSe5Pb18gdm N1LxcEpMtZkYgleqigjGid5/5NxHOQuUsPwPLZBB+6OJXgjmj7+5BocFKkz3EHhVn+00 x/aBYNsyrUIfLAFb6JReKxc7GcyL8xzFvTWriBhgTHsYPcLoaLljOsCZtLD/OLDC46UP lGp6qKBMLE1yDX0dFo6VnQGcurbIq++89wqOIgEoJ4Aq5aj7Ij1d8NcbbXW5iTIgMvJf xoTcuLvcAVpz4Ld2gJqC4F3F5jOVRYNBDP8NVclRT7j3Ud9G6jezlwWMmVMtRfOts13U DGRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BGY8LyqQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si978855edq.156.2020.09.28.09.29.23; Mon, 28 Sep 2020 09:29:47 -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=@mg.codeaurora.org header.s=smtp header.b=BGY8LyqQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbgI1Q0C (ORCPT + 99 others); Mon, 28 Sep 2020 12:26:02 -0400 Received: from z5.mailgun.us ([104.130.96.5]:58942 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbgI1Q0B (ORCPT ); Mon, 28 Sep 2020 12:26:01 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601310361; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=oUdEYLO/LBcwhMGcfeLJRSq6/QgcQ4bl42FimYBDM60=; b=BGY8LyqQczGkiF/yZO4Phf8JAGJMzqoobdl02DaFQgS29J9kZGzmk58cTCcnswAGFl76hO1A XD3JY8TSCtXVfBwEZu0UlfnvZcKqDmhGRpbki9Hpr/VrXvFj6nC1T3Vt60msSGQhH+T2nPGz MFyHsynTi7aGz2qErf3Maiiif+8= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f720e987e9d6827ec7cf120 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 28 Sep 2020 16:26:00 GMT Sender: jcrouse=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9AF86C433F1; Mon, 28 Sep 2020 16:26:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse) by smtp.codeaurora.org (Postfix) with ESMTPSA id 22B0FC433CA; Mon, 28 Sep 2020 16:25:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 22B0FC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=jcrouse@codeaurora.org Date: Mon, 28 Sep 2020 10:25:56 -0600 From: Jordan Crouse To: kholk11@gmail.com Cc: robdclark@gmail.com, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, konradybcio@gmail.com, marijns95@gmail.com, martin.botka1@gmail.com, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] drm/msm/a5xx: Reset VBIF before PC only on A510 and A530 Message-ID: <20200928162555.GF29832@jcrouse1-lnx.qualcomm.com> Mail-Followup-To: kholk11@gmail.com, robdclark@gmail.com, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, konradybcio@gmail.com, marijns95@gmail.com, martin.botka1@gmail.com, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200926125146.12859-1-kholk11@gmail.com> <20200926125146.12859-5-kholk11@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200926125146.12859-5-kholk11@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 26, 2020 at 02:51:43PM +0200, kholk11@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Resetting the VBIF before power collapse is done to avoid getting > bogus FIFO entries during the suspend sequence or subsequent resume, > but this is doable only on Adreno 510 and Adreno 530, as the other > units will tendentially lock up. > Especially on Adreno 508, the GPU will show lockups and very bad > slownesses after processing the first frame. > > Avoiding to execute the RBBM SW Reset before suspend will stop the > lockup issue from happening on at least Adreno 508/509/512. Reviewed-by: Jordan Crouse > Signed-off-by: AngeloGioacchino Del Regno > --- > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c > index 9bcbf6cd5a28..00df5de3c8e3 100644 > --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c > +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c > @@ -1306,10 +1306,12 @@ static int a5xx_pm_suspend(struct msm_gpu *gpu) > > /* > * Reset the VBIF before power collapse to avoid issue with FIFO > - * entries > + * entries on Adreno A510 and A530 (the others will tend to lock up) > */ > - gpu_write(gpu, REG_A5XX_RBBM_BLOCK_SW_RESET_CMD, 0x003C0000); > - gpu_write(gpu, REG_A5XX_RBBM_BLOCK_SW_RESET_CMD, 0x00000000); > + if (adreno_is_a510(adreno_gpu) || adreno_is_a530(adreno_gpu)) { > + gpu_write(gpu, REG_A5XX_RBBM_BLOCK_SW_RESET_CMD, 0x003C0000); > + gpu_write(gpu, REG_A5XX_RBBM_BLOCK_SW_RESET_CMD, 0x00000000); > + } > > return msm_gpu_pm_suspend(gpu); > } > -- > 2.28.0 > -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project