Message ID | 20200710095409.407087-4-peron.clem@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=WUjm=AZ=lists.freedesktop.org=dri-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A25F313B6 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 14 Jul 2020 07:02:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8036C221ED for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 14 Jul 2020 07:02:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m7n1kBQL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8036C221ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9489F6E8E3; Tue, 14 Jul 2020 07:02:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6ED796EBC4 for <dri-devel@lists.freedesktop.org>; Fri, 10 Jul 2020 09:54:17 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id z15so5284066wrl.8 for <dri-devel@lists.freedesktop.org>; Fri, 10 Jul 2020 02:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5wIuyTvTvTJehZ+ep4u+btSK7FBgl8Se97pFISO/LVI=; b=m7n1kBQLnqX0x0Z7KrLWKLon0R/jEGObo3tJKl/M3JR8hO1NFX9rnFsRRlyfAAL8S8 oIoC/bpgVvUID7qcVpfqmSRRV7vmDDdxUXOvRk1H+06seBYGR9oWV2dHbJ9IgbBzuDpR RVQ50jVglHfhFUgO6+tLYVwru6EAE00YPLHGiPfoXMgHq7WvkFhywyPKZ1ORe6OD9hpx 2vtXnnxt4ulVkxs+SRpQMCwiebfSV4SxEolRJvg1pJrQO7FIHJDDZuXjU3sGX/doQnRr 6EuD6+r+zLFPvRsQd3TvDNyJPC9VR2bU3cQgUm29daIpKMfANgXSW1Qv4L5QZXhO5Ql6 nCcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5wIuyTvTvTJehZ+ep4u+btSK7FBgl8Se97pFISO/LVI=; b=dgl3rMrRJSqlLxdhx0auUEt+32N6T+v9HZMipDkAIwpUW6roniYOe3HTWukbFCr/pn 24RVjxo8NgHsqD4AP8AR5itPpIrKzoj2MCWNIhTyTgCFiatssJBTZl/qSa6ZAGGahaco CfjdsKgQi7eNAXvdqpYAOFJxLgWS3fJdQeMpHrov2mzFA0MEsWY94R05Cgp17LHEM1DA nl1wxk50hyI6FAWmR36IOMz4FHjVCoZFu4JeGLtvJJBbnJkxkyYz1r3QLWezTibcZoe8 89A4fmY7q44n2zlmGvylwukqnusN0GSUhJyL0FcZIeMIR2OOrwd83rZNav/YJt3zBDVE p/mg== X-Gm-Message-State: AOAM531oetoWKCwzmhTJ7u27ElQbKXrCqF/xqn/8C7k+EmJynt0lVws8 AdXzmdNAP86y3kVEAGyucRjtll21Uzw= X-Google-Smtp-Source: ABdhPJyLvYZYbHbkm5E8+fZ5ImyFxvJCgcZRFEN/DyaV7WIJ2KvUwkLKLlR8oyebgiUcvxC2Od5cVQ== X-Received: by 2002:a5d:5490:: with SMTP id h16mr71801657wrv.394.1594374855952; Fri, 10 Jul 2020 02:54:15 -0700 (PDT) Received: from clement-Latitude-7490.numericable.fr (213-245-241-245.rev.numericable.fr. [213.245.241.245]) by smtp.gmail.com with ESMTPSA id u23sm10176092wru.94.2020.07.10.02.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 02:54:15 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= <peron.clem@gmail.com> To: Rob Herring <robh@kernel.org>, Tomeu Vizoso <tomeu.vizoso@collabora.com>, Steven Price <steven.price@arm.com>, Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>, Viresh Kumar <vireshk@kernel.org>, Nishanth Menon <nm@ti.com>, Stephen Boyd <sboyd@kernel.org>, Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org> Subject: [PATCH v5 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle Date: Fri, 10 Jul 2020 11:53:58 +0200 Message-Id: <20200710095409.407087-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200710095409.407087-1-peron.clem@gmail.com> References: <20200710095409.407087-1-peron.clem@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 14 Jul 2020 07:02:08 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= <peron.clem@gmail.com>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Add regulator devfreq support to Panfrost
|
expand
|
diff --git a/drivers/gpu/drm/panfrost/panfrost_job.c b/drivers/gpu/drm/panfrost/panfrost_job.c index 360146f6f3d9..4c13dbae68fb 100644 --- a/drivers/gpu/drm/panfrost/panfrost_job.c +++ b/drivers/gpu/drm/panfrost/panfrost_job.c @@ -581,10 +581,6 @@ int panfrost_job_is_idle(struct panfrost_device *pfdev) struct panfrost_job_slot *js = pfdev->js; int i; - /* Check whether the hardware is idle */ - if (atomic_read(&pfdev->devfreq.busy_count)) - return false; - for (i = 0; i < NUM_JOB_SLOTS; i++) { /* If there are any jobs in the HW queue, we're not idle */ if (atomic_read(&js->queue[i].sched.hw_rq_count))