Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp567098lqh; Thu, 28 Mar 2024 09:38:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3hXRjXHSAfoG7qYg1SM40Fl//K8YMz1rFQqmV2Ah1YWvHSTbqC6HLfAHIJLL9LDQ5H1BZjNH/3kM5+R/0ZR0BH06NoO/UOx2oZvyh+g== X-Google-Smtp-Source: AGHT+IFZGbSw726HcounoXRskXxMDXd26FLqLkQcNKYHyWQCRVSe54e92neUzHXC4Rb2t8jZgZ/Y X-Received: by 2002:a05:6a00:2e84:b0:6ea:afca:f3f2 with SMTP id fd4-20020a056a002e8400b006eaafcaf3f2mr4008649pfb.0.1711643924654; Thu, 28 Mar 2024 09:38:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711643924; cv=pass; d=google.com; s=arc-20160816; b=X96Z7tR0AclMGJWp8QQYSxPLiZW/FIFim1LQBlCOU87HpNWxPC2u1cNOeb4Qnph8ql sloGvwXeVtphmT0B0+m29pVcsADXd3kvneIekr5eK+I9AaFT8zxf4sHfIfiQIzgRpuab atR2r+KVZ27DwzPMIQNUyKCktNds/kBLELnioaLFzWxh72gdysapPt7vVfDlpd9ZRfN5 5CfMX112s0n4O8jfqGn50c4UzC6uHIlswLGWjSRXFEs6cseyoVvDhgdsFbzrVqAIq0A8 XdpwuqYOaJvbnMEcfSQ1fiwNHmG7aUmHrpoXnu31ZUt43IttEcJdoKm3IbvwKuJU/Wfb e60Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=qhdsHtm4S+j4CpuOcWmfgtpDQgzyzp94D5rZbWIM2gU=; fh=Q+ZKEkn7qelYavYnvHhEl1/Pc4EuKIEhjLks79MgA0Q=; b=iJgZ+AZBRnrgGezhSGeL/+rZ1ozBy9pSqvmPPxycTGt6xxX1n7rYFx/COOwZyl9aFF sZXh1BCMMDKW0MLjWquISH0rGPMmJA688DNvEMapspOUdGEHTdY2ySpbEwH3JDMZSI9K edl9/vjUibHot+Jfld0M8v/8BgpBPuqLU7gwa8jFXEFAqLVs4I+Uqbjb8+kTaOhNu6qg lfhbc5iBfjDhtb+d3m2EYkd9ZkMc+tSQ4nq6P7MW0mBkkzZqDtPF/AVV4vaYzxpSdhMH eQY1wdAfUJHSnzcQL+Nu9T5uRdOnbeweLovJ5+cfPxx1UBVIw0EQqoRQ1lc3i/X5WzTk 1NAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-123254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t1-20020a632241000000b005dbf1fcc429si1741828pgm.162.2024.03.28.09.38.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 09:38:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-123254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BA760B223B2 for ; Thu, 28 Mar 2024 16:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B1C0EAD8; Thu, 28 Mar 2024 16:30:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35312A50 for ; Thu, 28 Mar 2024 16:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711643444; cv=none; b=PAS1gevvG2RAb5p9FUJomIi+UtA3e/ugEbbQfn16TNGpIdb2h5bTPWMq+y4TZheo7OipxzmuDcKl3Yrei0LveovWtgqE/Nr4PKPAZhyxTqKelbFPFEWt123nx7R+sEmG0uv2e3CxXlfWSKY6PYEMsotf9UpCgABb3dfXQApBt9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711643444; c=relaxed/simple; bh=HCcfQ7iZ8tF5ZRVSJpZsOLgQLzt9XPedqg23NKmb7nk=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=RJfsbs4eu4ZIfgzUSwyV+vjt0dUZsZEPJ+74qrcdtLfXniaDKz2gyxcPYxlk1nWU6oiES81cE1+HqOo2/jklFfh1hRDJmn0Ok/isFSIO/fZ4x5Iv9k6szmGeA5KVaHW6j7iBZy0ZNf0kcSHIVs3MM7k2BGFNwgD6+SX7tWr4GTc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 132A81476; Thu, 28 Mar 2024 09:31:15 -0700 (PDT) Received: from [10.1.29.21] (e122027.cambridge.arm.com [10.1.29.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC09F3F694; Thu, 28 Mar 2024 09:30:39 -0700 (PDT) Message-ID: <9b4ac3de-21b2-4602-b96d-f51e8d4e6b14@arm.com> Date: Thu, 28 Mar 2024 16:30:39 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/panfrost: fix power transition timeout warnings Content-Language: en-GB To: Christian Hewitt , Boris Brezillon , Rob Herring , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , AngeloGioacchino Del Regno , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240322164525.2617508-1-christianshewitt@gmail.com> From: Steven Price In-Reply-To: <20240322164525.2617508-1-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/03/2024 16:45, Christian Hewitt wrote: > Increase the timeout value to prevent system logs on Amlogic boards flooding > with power transition warnings: > > [ 13.047638] panfrost ffe40000.gpu: shader power transition timeout > [ 13.048674] panfrost ffe40000.gpu: l2 power transition timeout > [ 13.937324] panfrost ffe40000.gpu: shader power transition timeout > [ 13.938351] panfrost ffe40000.gpu: l2 power transition timeout > ... > [39829.506904] panfrost ffe40000.gpu: shader power transition timeout > [39829.507938] panfrost ffe40000.gpu: l2 power transition timeout > [39949.508369] panfrost ffe40000.gpu: shader power transition timeout > [39949.509405] panfrost ffe40000.gpu: l2 power transition timeout > > The 2000 value has been found through trial and error testing with devices > using G52 and G31 GPUs. > > Fixes: 22aa1a209018 ("drm/panfrost: Really power off GPU cores in panfrost_gpu_power_off()") > Signed-off-by: Christian Hewitt Queued to drm-misc-fixes. Thanks, Steve > --- > drivers/gpu/drm/panfrost/panfrost_gpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c > index 9063ce254642..fd8e44992184 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c > +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c > @@ -441,19 +441,19 @@ void panfrost_gpu_power_off(struct panfrost_device *pfdev) > > gpu_write(pfdev, SHADER_PWROFF_LO, pfdev->features.shader_present); > ret = readl_relaxed_poll_timeout(pfdev->iomem + SHADER_PWRTRANS_LO, > - val, !val, 1, 1000); > + val, !val, 1, 2000); > if (ret) > dev_err(pfdev->dev, "shader power transition timeout"); > > gpu_write(pfdev, TILER_PWROFF_LO, pfdev->features.tiler_present); > ret = readl_relaxed_poll_timeout(pfdev->iomem + TILER_PWRTRANS_LO, > - val, !val, 1, 1000); > + val, !val, 1, 2000); > if (ret) > dev_err(pfdev->dev, "tiler power transition timeout"); > > gpu_write(pfdev, L2_PWROFF_LO, pfdev->features.l2_present); > ret = readl_poll_timeout(pfdev->iomem + L2_PWRTRANS_LO, > - val, !val, 0, 1000); > + val, !val, 0, 2000); > if (ret) > dev_err(pfdev->dev, "l2 power transition timeout"); > }