Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2186187ybl; Thu, 9 Jan 2020 08:18:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzKdGrZuqYtrMJWrgDlTopG/VvcIVSBX3bGIx4MUvHw47aeU3FYpdaQlFtf2NByE8X+9/av X-Received: by 2002:a9d:53c4:: with SMTP id i4mr9656072oth.48.1578586701250; Thu, 09 Jan 2020 08:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578586701; cv=none; d=google.com; s=arc-20160816; b=vIi9FjNC3bOfldSH5pxayDu7V1ddgIhgT59AUbGCZ9QVdaO0ZiyiWlbOgyb7qPpEEy ArKxo35dQvZswU+PDxw5SNndaMMhiDEhRL+jbFQp7AT0NCy9DG2T0dOw0ij3+0zmGmvb BzlNpWRW/nLZ+TK2jDbynCDXghSvtREmTYOrU2mTlszGadKKJqQgcJbQo/2QlL8Qpxa3 V4Inqw2BRVMhvrdS3suFf1Of/FklJOPLzLozG3WwV1J4ZqVW+3BHxxWGxDEFe2IC/5Dr Zc8u7f03/Y8Xi6RtBuJFmMrYQYDkeODjI3LY6luXf+uxvG3RbKkzt9ZvXlkB9Z13B13n anSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=OSQj0IfPGYTicWNuNFUtMXFdalMgLSKbBuFd+Zd2+54=; b=J7ru63nWu7OM/9Il7Z8vPX2CSlWdiaqdWuuL23TZ/ERwuBUNokASOb81jJMqbi2riR uJFNSMe8k7b2vxNaNo9Uq3OS6gVYILZqqels9GtUwvGNIGCnW+jfMrtEiay0toMePWoU 2H3Jc+F5jmnnhdnacINf9i13602uaWMv0xdCLMlcirM2uUhgU+ohDhUZbJts5YV30vF3 nLV5n+fve3L9HUlUyn2JHhk4fUZLwDOXJIW8XA/nOIc0VBgC6gtCudFw6sC6WJXbb3uD ecy0IgrE/bzJu0vkVtlSA2FB85ZXbDO/kC34YVfTU65xgwwyaSTb2g+MuNFpd2r6+j/E gzgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si4097060oth.175.2020.01.09.08.18.08; Thu, 09 Jan 2020 08:18:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731145AbgAINn7 (ORCPT + 99 others); Thu, 9 Jan 2020 08:43:59 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41206 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbgAINn7 (ORCPT ); Thu, 9 Jan 2020 08:43:59 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id E424428DB47 Date: Thu, 9 Jan 2020 08:43:51 -0500 From: Alyssa Rosenzweig To: Steven Price Cc: Daniel Vetter , David Airlie , Rob Herring , Tomeu Vizoso , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Robin Murphy Subject: Re: [PATCH] drm/panfrost: Remove core stack power management Message-ID: <20200109134351.GA3053@kevin> References: <20200109133104.11661-1-steven.price@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20200109133104.11661-1-steven.price@arm.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A-b On Thu, Jan 09, 2020 at 01:31:04PM +0000, Steven Price wrote: > Explict management of the GPU's core stacks is only necessary in the > case of a broken integration with the PDC. Since there are no known > platforms which have such a broken integration let's remove the explict > control from the driver since this apparently causes problems on other > platforms and will have a small performance penality. >=20 > The out of tree mali_kbase driver contains this text regarding > controlling the core stack (CONFIGMALI_CORESTACK): >=20 > Enabling this feature on supported GPUs will let the driver powering > on/off the GPU core stack independently without involving the Power > Domain Controller. This should only be enabled on platforms which > integration of the PDC to the Mali GPU is known to be problematic. > This feature is currently only supported on t-Six and t-HEx GPUs. >=20 > If unsure, say N. >=20 > Signed-off-by: Steven Price > --- > drivers/gpu/drm/panfrost/panfrost_gpu.c | 5 ----- > 1 file changed, 5 deletions(-) >=20 > diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/pa= nfrost/panfrost_gpu.c > index 8822ec13a0d6..460fc190de6e 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c > +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c > @@ -309,10 +309,6 @@ void panfrost_gpu_power_on(struct panfrost_device *p= fdev) > ret =3D readl_relaxed_poll_timeout(pfdev->iomem + L2_READY_LO, > val, val =3D=3D pfdev->features.l2_present, 100, 1000); > =20 > - gpu_write(pfdev, STACK_PWRON_LO, pfdev->features.stack_present); > - ret |=3D readl_relaxed_poll_timeout(pfdev->iomem + STACK_READY_LO, > - val, val =3D=3D pfdev->features.stack_present, 100, 1000); > - > gpu_write(pfdev, SHADER_PWRON_LO, pfdev->features.shader_present); > ret |=3D readl_relaxed_poll_timeout(pfdev->iomem + SHADER_READY_LO, > val, val =3D=3D pfdev->features.shader_present, 100, 1000); > @@ -329,7 +325,6 @@ void panfrost_gpu_power_off(struct panfrost_device *p= fdev) > { > gpu_write(pfdev, TILER_PWROFF_LO, 0); > gpu_write(pfdev, SHADER_PWROFF_LO, 0); > - gpu_write(pfdev, STACK_PWROFF_LO, 0); > gpu_write(pfdev, L2_PWROFF_LO, 0); > } > =20 > --=20 > 2.20.1 >=20 --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEQ17gm7CvANAdqvY4/v5QWgr1WA0FAl4XLgoACgkQ/v5QWgr1 WA3VcA//cEcrQwxrlJ8ndUPseWUHj3sldo778/VRcu6Z6yHCW21o8/xZVa0xQdHX GQuCTw0vDldVAPmxzKhnt41khOHBtYCqeppjYUdC8BQm7IIe+AbN0DoxYR5xRDaB Bo8NcZ7ytOSkzI6Ww91jZVx5jq2k8l5Tj628QbWrDa2t1RP2xzUuet9zWH+9IAyE IjNYszKjYk9MloCyt3AwPSDkHuyKXb9Zc970qHGNAWZC868wIktaQVI6aUl79+uE UeHzGimWKPVPQnIkuQxCS6MaG0sLdcgRjjsTtfIS6TllYLZ/0mWhbE/6smFmmXIb EPfuBVjrK9q4WcXy3DhJHrUnpiDdWm/I7xoy8neKbEb4UHJ0qlsi46NRbYv1fge4 fF0fyWw6VHnti9JRkuqsYWdJ052FEvFEqg3+Dal1oC4HG3Rta+rD72mvmsJtZ1sW JGOXycotJAvQP2U86S7Oml3PcJG9jy4bLvpOk+jU/kTdW12eLhvdouWko/JsCTNI s7x3AvY5Lj7MgNpPt9AKu1GRLHlEPqvG3jVAztc5i1QxaKKhRtYGyb++fBHpBA8B PyrJfcHNckWLgF1kY2cfrIeCZcI9yYSM0Oq2+LpOoTJjFTGbq4te0P5pJR0O0nj3 dAY5fKG3kpp7ObzRhho4ANxt1gpZ41AZvT7NMK6zn98i/xYh0Bw= =nFTn -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--