Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2293716pxu; Fri, 9 Oct 2020 12:52:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/1UGzwHWpum3oTrjB2mswumwDx3mWTE1GawVXJ/xHCQJLoZJBqMqxlPiKbqCkZUEzLcKX X-Received: by 2002:a17:906:3290:: with SMTP id 16mr14345379ejw.308.1602273178052; Fri, 09 Oct 2020 12:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602273178; cv=none; d=google.com; s=arc-20160816; b=gyLaechyebRnPMXbZ8LmIty8UkTvFyahNAyhXKamSACr3aE1eIG2+pFwojIxtGEJew oY/p7Qk5DhbjJrOsxrFDn9AlVIZ00uuHFAVEnFUqSvR9iaVSaIfnh6WHIUKolir//K30 WRYXp7QKjqyqUERiT5YYy9SaW/Z+pz2B4dyr2xLeLzSTf52P4x38X9v2E2rBveyXJY0J 2WWs1/tk6XkLxtblalAU5bvWEoN/GEmHc2IC8CBPV5AUu0RpfhlzgMY/yF8IYyLw2qY5 Qtr28S9x6ujrHVogFBA8udC0hozVJkTf1+I2xhSB4yyiFVxShEYXiartybmLWtVUlo7v 6NvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=Xmkj+BVn3NxXnb7LKHhWvCsrkQJl74l9w4fFJ6O0h50=; b=I2QPtlPtMTOPyTD11wBFPhRFF/wnhy1hZoc/YXDkVhStafB2qG0aWzBS5BUpBeh12L BpCI0Aab3b6fTz9uy6l6R2Njd69XIG/euvRiwObtPiTAJbTvEngofJ1p4ShQWCPV+mEk 1c5zq5gJKKzfTbz2499gHX08YTdZ5nTcW/SYDeYthfk6k9m1BxuVtFhitrrItWOzwx5p FNN+o8D7qbaTs9Sc88NejimFSt95p4ymS+e/aNhw8xW8hVLRk3Xfam5ju9/uafRVblcw scAR/e/ym226Ujdh07zi1KJ4DfMHeH7NpyFAbOLrZBepDjcgdA8loeOi7ly7eKTPe8kj 9JOw== ARC-Authentication-Results: i=1; mx.google.com; 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ny23si6687824ejb.586.2020.10.09.12.52.34; Fri, 09 Oct 2020 12:52:58 -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; 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389488AbgJIPye (ORCPT + 99 others); Fri, 9 Oct 2020 11:54:34 -0400 Received: from foss.arm.com ([217.140.110.172]:54360 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389365AbgJIPya (ORCPT ); Fri, 9 Oct 2020 11:54:30 -0400 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 A42ADD6E; Fri, 9 Oct 2020 08:54:29 -0700 (PDT) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7CD013F66B; Fri, 9 Oct 2020 08:54:28 -0700 (PDT) Subject: Re: [PATCH] drm/panfrost: increase readl_relaxed_poll_timeout values To: Christian Hewitt , Rob Herring , Tomeu Vizoso , Alyssa Rosenzweig , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20201008141738.13560-1-christianshewitt@gmail.com> From: Steven Price Message-ID: Date: Fri, 9 Oct 2020 16:54:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201008141738.13560-1-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/10/2020 15:17, Christian Hewitt wrote: > 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 I'll push this to drm-misc-next-fixes so it should coincide with the Bifrost support already in drm-misc-next. Steve > --- > 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 e1b2a3376624..2aae636f1cf5 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c > +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c > @@ -325,13 +325,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"); > >