Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp177555ybl; Thu, 9 Jan 2020 19:31:52 -0800 (PST) X-Google-Smtp-Source: APXvYqyNatzVc3nbqHtR4kpDjGB7VPbxr04saq3/aVVwpH7HU8YeFRf9L+r/swnWHsCfQTvUhQQV X-Received: by 2002:a05:6830:1d91:: with SMTP id y17mr843692oti.276.1578627112047; Thu, 09 Jan 2020 19:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578627112; cv=none; d=google.com; s=arc-20160816; b=MZGTLq0N7W2tQhE+31T9Kv3nNntjRcM/+fVDxDxrukanmpBkbGutob2deasjxYkAsv tgihPvn7b6Ak5SZ6hfAAIy01nuNEeOqORapuYl9ENNfK1jy0itgCe2D+cCvra/5ISXEQ ueCKZ4IBzlqXE7306FK6nwn89kvmT6qIDP5FCg1khfIZ6DeuGA6bxwvgIxwxlnXQRhuV GSDrVkkNL/1IM07h3i7z+nTqhjD01qCm5cIARBE9T8PqeT0XqTSTYR2r9hD6ww9RYHrB o506EoRES/IocdYvUmQRE9dHfD7UVDe+C1xRcncRXnx92huHxByfi0xR1+UDYjyY85k8 7DbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fQSajeOAQfVGeFbN5aHcCZ8GjF58hqwqXqYUY48IJUk=; b=pgH3i0yI0+Cs4LQCKGA4l1UjYOYEvYfqbJ/zFoCP4eg402zVlw2axJkJj5dPfpCa6F /GJJdxGy0Zj/9N5zzzSp/X5j2bRVgzcj1YVzl0Y5PkxpriCGkAMA9Xvd6agW5vhxKza2 xjLY9e/1VBY6dhMhY77Jd2Jsl4M9gg2rxlFVED22Rb/tjzzWzzjAWlNGG82nngCJ8Qxq pMLVxUIEBNrA9jZ8hU/GoDTb8w3mEhxKopdZ+4NzNwnW0g5aG/rkmeiqNi3xqNdtwoff QHzbR0hpWMOpTX0t0dapkIfcR+K8RDXE2giT0g9FdM6RxkETfO1zuHf0GvXDBXShcUqg Q+DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YtagBkPG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si300042oie.148.2020.01.09.19.31.40; Thu, 09 Jan 2020 19:31:52 -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; dkim=pass header.i=@chromium.org header.s=google header.b=YtagBkPG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731049AbgAJDah (ORCPT + 99 others); Thu, 9 Jan 2020 22:30:37 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:33573 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731008AbgAJDag (ORCPT ); Thu, 9 Jan 2020 22:30:36 -0500 Received: by mail-qk1-f196.google.com with SMTP id d71so713281qkc.0 for ; Thu, 09 Jan 2020 19:30:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fQSajeOAQfVGeFbN5aHcCZ8GjF58hqwqXqYUY48IJUk=; b=YtagBkPGR/UTlV1mAAOaFxHMOljHsjjiS2wQLirMR2Fzgxv6EW7TTC4r9B+TL9B1yq NWaVFRmAza0aOTXho3BLgyNMOaEUD5rAO+3dadDuLCze91GP2O/xAblQ4Bar8WbQ9n5I VHRd0aIuhya384Fv6ydYl7ih39paziVR+/mn8= 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=fQSajeOAQfVGeFbN5aHcCZ8GjF58hqwqXqYUY48IJUk=; b=qNrlDRGnhcXQVqRA4oEOq4qwHOm/hqpqBAaGRTLbD9ohwaXk7ch+gGHhaZu0PklJ7D YvbdmUtmzkx+fxcB04c8x9kwl0VLfjL6MSFK/U7W3pDYHcg/dpkwTNZQXXVJOK3OIioe aQqZ+at8M0wKm9AIAJ9+nEfN1Naz3IqwADyWJC3npYFqnQfDx4qgyzEkHXl8r1imTKVm w4a3zLJFzOwBakQnb4DZzzmkUjASi8Ra/6o7Ws42QfxPx9Wpa0KAeRbc8UNDwwEP0O9a 76XcSb0BQX7mHz9XUK1wiR8GDpqGj+EroGnL+7LRLCBkIazkrlATlBpon6Q2guxkphX1 izfQ== X-Gm-Message-State: APjAAAVgIHvgg/O9CZFRkXRFGhOzKIrBJ1/mm08Ho7DDu+JFcYbMc2Wu Doy/eS24AqO3UyPY3dMDJt477GM82SI4quN9AUGme4Gq0jg= X-Received: by 2002:a37:4bc6:: with SMTP id y189mr1174229qka.18.1578627035990; Thu, 09 Jan 2020 19:30:35 -0800 (PST) MIME-Version: 1.0 References: <20200109133104.11661-1-steven.price@arm.com> <20200109134351.GA3053@kevin> In-Reply-To: <20200109134351.GA3053@kevin> From: Nicolas Boichat Date: Fri, 10 Jan 2020 11:30:25 +0800 Message-ID: Subject: Re: [PATCH] drm/panfrost: Remove core stack power management To: Alyssa Rosenzweig Cc: Steven Price , Daniel Vetter , David Airlie , Rob Herring , Tomeu Vizoso , dri-devel , lkml , Robin Murphy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 9, 2020 at 9:44 PM Alyssa Rosenzweig wrote: > > 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. > > > > The out of tree mali_kbase driver contains this text regarding > > controlling the core stack (CONFIGMALI_CORESTACK): > > > > 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. > > > > If unsure, say N. > > Work on my G-72 Bifrost, no more errors on power on! Reviewed-by: Nicolas Boichat Tested-by: Nicolas Boichat > > Signed-off-by: Steven Price > > --- > > drivers/gpu/drm/panfrost/panfrost_gpu.c | 5 ----- > > 1 file changed, 5 deletions(-) > > > > diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/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 *pfdev) > > ret = readl_relaxed_poll_timeout(pfdev->iomem + L2_READY_LO, > > val, val == pfdev->features.l2_present, 100, 1000); > > > > - gpu_write(pfdev, STACK_PWRON_LO, pfdev->features.stack_present); > > - ret |= readl_relaxed_poll_timeout(pfdev->iomem + STACK_READY_LO, > > - val, val == pfdev->features.stack_present, 100, 1000); > > - > > gpu_write(pfdev, SHADER_PWRON_LO, pfdev->features.shader_present); > > ret |= readl_relaxed_poll_timeout(pfdev->iomem + SHADER_READY_LO, > > val, val == pfdev->features.shader_present, 100, 1000); > > @@ -329,7 +325,6 @@ void panfrost_gpu_power_off(struct panfrost_device *pfdev) > > { > > 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); > > } > > > > -- > > 2.20.1 > >