From patchwork Sun May 10 16:55:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11539799 Return-Path: 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 281E815E6 for ; Mon, 11 May 2020 07:18:08 +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 068152082E for ; Mon, 11 May 2020 07:18:08 +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="XyIHXFLd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 068152082E 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 CAE456E228; Mon, 11 May 2020 07:17:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 906FD89F9F for ; Sun, 10 May 2020 16:55:46 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id m12so10523215wmc.0 for ; Sun, 10 May 2020 09:55:46 -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=HSgv1QfgHBl9OVDnkQxlixfpsorIFLdZ30raefsXV+Y=; b=XyIHXFLdPmo8XDR2EbD3f4LZKJvpR5nEjFLo2fHm7OiGnG1ZLTm7Y0Oqst5lSmU0QS /y7AqDLRzclVlEMWXeq0rjRPYYkoOo7zwaS+KEkf6uXXNZINFC/4iPQhjuo2BnMETZzE wSYI/AcnCrIDVX0B7UbmAFsZXGSIsk81fU6g++gjF0nWQnqsCb5ydFeApKAzvuC0FeXx N+NL+tZ0IgmH1OvNDxVj1EOQhq3VpgJsJtAY+mgxn97HB2ZXVdl+eGZeBQyDurOC+x63 SbyHVZN1A7Daz0F5JS1Vi6kJ8PbJW8mqh7aZ3s80bL5i9DjpNvzRKN0f6IEBH0yADLiQ P8GQ== 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=HSgv1QfgHBl9OVDnkQxlixfpsorIFLdZ30raefsXV+Y=; b=tKhqelprqaZ7aqm27/k93sbpAHeoQl4ENZaB46f0olycN4mckaYuuRTzBwVOvkr9g5 Sa1OfgLBImsKM7KDP6cv4mnIENRtAh2R4c4p26YvPt95yBLRGH1HGUp2FnM4S5rpjx8R 1GcMg4D3UXBbM8C01pzQm3CkD9sVt0nJtsXIk2y67jYRYqjWcUXiPGqAQe095IPZN+S/ s20pYxxKSUcgJkxAdabKHfWObOa6s9F8Az9H05ef1Jst6kSnta8Cv95A6LMMkJl2+Bk5 PvSe+BDe6d9dCto6L3bWCUMyiOi5nXWnWAwUaOHmHvY1l54cMnE0tQFavzNdmJ6/30/s rl+A== X-Gm-Message-State: AGi0PuYC9QReNSM+EQ8xRJ9de4V/q0icc+H8bVbvoFaOXzZ8x7oq1ksP CARK4RHU3cd/gi0HucRtIK8= X-Google-Smtp-Source: APiQypIWZQXaykOe/sU/+MafA9q+T0VrOldhVw/hxI89FHnJ1WJoeR0FXFCU0WtQj9v6kb2KkDqi7w== X-Received: by 2002:a05:600c:3cd:: with SMTP id z13mr7798860wmd.159.1589129745048; Sun, 10 May 2020 09:55:45 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0:1cc8:b1f1:a2b8:a1ee]) by smtp.gmail.com with ESMTPSA id g15sm13637670wrp.96.2020.05.10.09.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 09:55:44 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Viresh Kumar , Nishanth Menon , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 03/15] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle Date: Sun, 10 May 2020 18:55:26 +0200 Message-Id: <20200510165538.19720-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200510165538.19720-1-peron.clem@gmail.com> References: <20200510165538.19720-1-peron.clem@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 11 May 2020 07:17:28 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_job.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_job.c b/drivers/gpu/drm/panfrost/panfrost_job.c index 7914b1570841..63e32a9f2749 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))