Message ID | 20200710092548.316054-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 0BA47722 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 14 Jul 2020 07:05:23 +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 DDF422073E for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 14 Jul 2020 07:05:22 +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="hkFT/OKK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDF422073E 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 257FE6E919; Tue, 14 Jul 2020 07:02:49 +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 441B06E0A2 for <dri-devel@lists.freedesktop.org>; Fri, 10 Jul 2020 09:25:57 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id s10so5163151wrw.12 for <dri-devel@lists.freedesktop.org>; Fri, 10 Jul 2020 02:25:57 -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=hkFT/OKKaCVHN11jflC/fdm+RLpdfEW5QzjKHoRIV83mbHg0kxzBgflvSleihR1y3C IL77si70ouX8ODvCbisl4SEzwfXpAbk5C37LoWPUSGT52UzRQfnpiI2funI5ZDtgLxl+ qfSE1wpoO3i5thBjaC1/rh5xZ39v1P/yRWx1PaQhggyZMpVyLD/DpeFqZAzVpUDNMIPx gwBaYwV6Ti3xpX5DTmnppuh+8T4HgrYnz56IL48KE6/0uY5nA8Tc54jsl1f+Wa2yalQD 00RZwn6eESTl/qmuF2Bc3TmceHPg/zFr2GGwdbKNHat5ymFfYLm0l8wB3LziB0utQBsc f1mA== 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=DC6J0YeuvUV2B5gW5AGnC2nDUW45s0L2wtBu7bixOlf7QH057sRn+5clpmoyOg/Sy4 B+KCe3XKr6ytP0pljU89i2ZBSBnw6v6R3AyBTb+RghDCpS5yCVYWXIenrMacpKJQhICr awSIN2IsaLZm6y1TaEdJ4vyTKqOIBal6FvNfsgc7WVimbMtC3DBJ96vClrhaqh10MaDG 5bPk6F7QcRmk07nyjB82nMvxH2YgKQSv46KXVauzsgSOjJX+3oCsiTKLRd4sFNJHBufA qG30vs6v5k8Dja0Z0Pc//EUjs4wkwHY0AJ/lPy4JJDQwIpw9PmU0vIn84r55Icrq0/1I je4Q== X-Gm-Message-State: AOAM531H69YNPc8tWj36gJg4eoBCYIsfYeBrqLxuhgRO53CwyA1TmFiD UnZ17c6UH/+3DvYKz0m37nQ= X-Google-Smtp-Source: ABdhPJyGC3VRr1XqdZe9/UFYTPcwbWdNcHpTpKQDrfBZtF31oThwz+2jQt6IrAk+oh/6dpsYTbhH8Q== X-Received: by 2002:adf:e4d0:: with SMTP id v16mr67154778wrm.193.1594373155819; Fri, 10 Jul 2020 02:25:55 -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 h23sm8179559wmb.3.2020.07.10.02.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 02:25:55 -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 v4 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle Date: Fri, 10 Jul 2020 11:25:37 +0200 Message-Id: <20200710092548.316054-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200710092548.316054-1-peron.clem@gmail.com> References: <20200710092548.316054-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))