Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2673604lqp; Mon, 25 Mar 2024 06:20:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqGWZTCLCoetrrHT279bpbe5IQYbGGEXelqRiWmvh2qKqekilMJRdY12KrD11SavPkDMR/YHL2O5OAZ0ZzF279WlcBTge751+lpuOBfg== X-Google-Smtp-Source: AGHT+IFENTT9oyICCKq4RbUeGNdrWn6mh2v0G/S9krIxd7v52sf2dyA+ZF9oBCXYrQbt33cwBTtC X-Received: by 2002:a50:8ad5:0:b0:566:be15:9a88 with SMTP id k21-20020a508ad5000000b00566be159a88mr6023917edk.20.1711372837884; Mon, 25 Mar 2024 06:20:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711372837; cv=pass; d=google.com; s=arc-20160816; b=zWPdGY578lL93XXdAdudjHftK3JcP8ZptLxAjaHP5o1v7y7dHY55lIL46esmrTJ8Rb DOy69OMzn7uv/1+TiXXShOhBiWztf8P1dWZ4t8bNMZAZDV+rccDAfBke5ohWE2CaWBZu tTxRMu9yt1q8V/WkkhUTcKY++otY+DxGuQzOqL1Nh60o7EqnKJPRQPXT8P1GNQy7w8Jm NgxF2ZuSjk8RwmVFmZn5oObNxvwOt+HfzUUI/bTcad2SFgg4zgts8LS1HlTcit7OzSXQ u3AP1Fd8SOH55cJtjyKu6/+M6L8JG+O5I+drMoD6YLgx4rh/fBquinLY7VuA6i7mgEeD +UJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FB/4zu+oFROpdhzEVmyDIYp0ZQJEONWk7jjQnOddZN4=; fh=056e/49LtJT9LH5xBom002oG/jQjZpCwbKY4w06GCNk=; b=oG/ScJK2A3JmEpzq8FZSbFw0DycuoZkGqL4eOnF4q5P9QSd3KzKlwdIMY+DpMikCc0 eSlNC/pzwOR63pUkfaMSuWmNreIsrIjEykHkL6bIlkYJ/hbmvTUL0SrxwOk7jyLt/tBl KWzfEW9uq4ojw1liMhN3UVF/oW8USg0EuoID45kxf9vJj6NzAiWx9x+a539SaAeYUDuc dfNRlmb1/ZplbSZWM5Gof+uikoyIcqaIwINrMSXBZ+rhVWzcVlJcQIIXMUg0sGvYvCF2 OjUWiveQihKkbyTIV7HQZdeVIYoQuRjrxcyz8FwRyh9O3QZVHBwWQH6rFaVamL5L4F4L keJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KPQTl6b7; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-116691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b61-20020a509f43000000b0056739aba263si2484835edf.440.2024.03.25.06.20.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 06:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KPQTl6b7; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-116691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9983B1F3A993 for ; Mon, 25 Mar 2024 13:20:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C2371586E9; Mon, 25 Mar 2024 10:26:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="KPQTl6b7" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 662CF18E0D3 for ; Mon, 25 Mar 2024 08:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711354822; cv=none; b=BcCTfjBB13ukNpG50cfjoFu+SohMm/RowF0qu5VVhaQ4Rs35OGzRLERLjyPw5sO5yB2f3iZB9bLVKjyQTbfas18UMJbUkqBItGZZRnNWDJE7E3nlFo0EXKb5CNmRyrOnIkHHCFHS5fEhVvVEjodvFFlZcoxb44dVOutjVoKb6Nk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711354822; c=relaxed/simple; bh=EOuiWs8du4z/j7Ah6vYpJvGj8hoJqJ0Goki/wN9yEK8=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=nKPI4NBDVAIyVia2CFxEldBRDEoG7SkpJWiHJPZRMdj1F0DdvCqjhRKTBd4bK4RT57aOahnFjsPFKxG8A5yLm07o/qrfY3XEy4kV9/bhibivWfUptOS9EY/TDEtyNTrNWwuj+Mz7LLY9LFgDhw5SU5idEsFUcEWGhRiomr9PET0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=KPQTl6b7; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711354818; bh=EOuiWs8du4z/j7Ah6vYpJvGj8hoJqJ0Goki/wN9yEK8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=KPQTl6b7ci0hQ7vi0vQviWzjm9nl7bFBMvlPosICqpMG+lV4FPIlcLU1i49nF8Ot6 //jOVs17GnLk2NA3HMrcuE8XjJ9dxEm0hKhRFgcDzRTyrM/NyniUog6xLA0z1ZMn9A IW4Gr/5cGk5efv0R0rd7eqO0tjtwCYGcSD1gn1mQJfN3rpIwDG5+nG+uuSE0856J2a GkSJGs40VnmRocBRxZytgIKaecMFRRkEq6bwxwr0cKgbYtl6Bdi+WhltTrDMihTRcP f0r6Z98V/xdXTXcZE+bIAraxbz/7B+MeoqcbbvDSidAYkLhnWuNPBJpyo84yTAxJue 0VBP2vfoels2A== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 047A637813B7; Mon, 25 Mar 2024 08:20:17 +0000 (UTC) Message-ID: <45ef7d6e-d029-4b02-be9e-736dff3724af@collabora.com> Date: Mon, 25 Mar 2024 09:20:17 +0100 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 To: Christian Hewitt , Boris Brezillon , Rob Herring , Steven Price , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240322164525.2617508-1-christianshewitt@gmail.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240322164525.2617508-1-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 22/03/24 17:45, Christian Hewitt ha scritto: > 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 > --- > 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); Are you sure that you need to raise the timeout for TILER as well? Cheers, Angelo > 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"); > }