Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp349723pxx; Wed, 28 Oct 2020 06:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI5O/4H9SZcgn3pOW599pRJhVVwsPqmWgs9tm2/noWpAFFnJqPNXp1cFxjbmjcs/VGGz4/ X-Received: by 2002:a17:906:141b:: with SMTP id p27mr7832300ejc.205.1603891701919; Wed, 28 Oct 2020 06:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603891701; cv=none; d=google.com; s=arc-20160816; b=XlrNYe0JpkeP0ZJbiiAg6IwNF/Pic0om86XHWu7TnMdHfV+8sbpLOJoQoabNz2zGyh YeVfTo2FXFwYC69Fms53wazrGmJSvzinBw2jnJ5dhzQzYeYefQoK76C7MnT4SI1/vnnV 6REMsRyfJJs+z2qoQi+M32iKUbVwaxPyWkAnAnGSrcTILELItwCVO4dQIc88Yk2VCjRt 8Yq9t+9s+wAdkZvk8S6Jmi5lJJayBjJdxq0tY+sYHWRjeG+AIqvD+EP5h7odUFptVgsl SObBRfur0mZdfntSFX/CB7mBOR26gbwDeF36DY1jzps7Aobs76/cnE51OO3vGjMhOa/h Xrtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NVP+NU3nKdP3UWki9+22xV6GSHyp+yJ1fGfKIlmW1K4=; b=RJUFf+Z9KLlAh+OVO9EfD4Q/6pXWS16ISLpaKSp/fBV3XaY/nqiB3rpOfeOWdR8j03 JX2+meNPhMIFT9kVkGz2pCzG8aWo4dEanDajf7Pe7nHClPMOI/UiPeOcXgAVOFFifBSv H6OCCxp3irUunvBGGUw4U+Or7zMxU3d8tobFsLJWfhqBpDzBmF2HGFcViOzvyxYOe8q/ Rn/XGqSmuQnWLec0Mop5eurtbeCWCO/fye1WMKMlXK6J8fnOxjg35ODkTCdp+3o2DCP4 Boxqf4U9K5XFqIFvk6BEqQJEH5YH19QPIIuCC+mSvoMS98F+vjjLyIjXL6M00RG+BW8a GekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VtcRPSif; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si2868715ejb.712.2020.10.28.06.27.59; Wed, 28 Oct 2020 06:28:21 -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=@kernel.org header.s=default header.b=VtcRPSif; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1766444AbgJ0PoF (ORCPT + 99 others); Tue, 27 Oct 2020 11:44:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:54210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1800302AbgJ0Pfk (ORCPT ); Tue, 27 Oct 2020 11:35:40 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D773222264; Tue, 27 Oct 2020 15:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603812939; bh=77ptOLX3KQeh/RP+VjXPKJB9yWx9VC9Ttjn6ShYvepg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VtcRPSif1vk18PtzcyCG/DANeZIr1l3DAOjSIRWaqMoTafdLu8KKe75qdIsqvt78M mshEhj+sDNrYAF2FYxiasK9YiTd5WzNEyhGURLVMfvh5HCrhZyFTKyC7hxk1N/I3Sb UwR2KqLMGB2wzEbV89dsUqlqy6SjFW2yKdiafoTY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steven Price , Christian Hewitt , Sasha Levin Subject: [PATCH 5.9 383/757] drm/panfrost: increase readl_relaxed_poll_timeout values Date: Tue, 27 Oct 2020 14:50:33 +0100 Message-Id: <20201027135508.518371190@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Hewitt [ Upstream commit c2df75ad2a9f205820e4bc0db936d3d9af3da1ae ] Amlogic SoC devices report the following errors frequently causing excessive dmesg log spam and early log rotataion, although the errors appear to be harmless as everything works fine: [ 7.202702] panfrost ffe40000.gpu: error powering up gpu L2 [ 7.203760] panfrost ffe40000.gpu: error powering up gpu shader ARM staff have advised increasing the timeout values to eliminate the errors in most normal scenarios, and testing with several different G31/G52 devices shows 20000 to be a reliable value. Fixes: f3ba91228e8e ("drm/panfrost: Add initial panfrost driver") Suggested-by: Steven Price Signed-off-by: Christian Hewitt Reviewed-by: Steven Price Signed-off-by: Steven Price Link: https://patchwork.freedesktop.org/patch/msgid/20201008141738.13560-1-christianshewitt@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 689b92893e0e1..dfe4c9151eaf2 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c @@ -309,13 +309,13 @@ void panfrost_gpu_power_on(struct panfrost_device *pfdev) /* Just turn on everything for now */ gpu_write(pfdev, L2_PWRON_LO, pfdev->features.l2_present); ret = readl_relaxed_poll_timeout(pfdev->iomem + L2_READY_LO, - val, val == pfdev->features.l2_present, 100, 1000); + val, val == pfdev->features.l2_present, 100, 20000); if (ret) dev_err(pfdev->dev, "error powering up gpu L2"); 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); + val, val == pfdev->features.shader_present, 100, 20000); if (ret) dev_err(pfdev->dev, "error powering up gpu shader"); -- 2.25.1