Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3958453pxb; Mon, 4 Oct 2021 13:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjGaF/VDijr9bCCwiUoz8XG+A6tzhqZuRfEN0b082yOHkZvOU7ps5CChBdWaesT6/Y9Tsf X-Received: by 2002:a63:191a:: with SMTP id z26mr12323746pgl.373.1633380097461; Mon, 04 Oct 2021 13:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633380097; cv=none; d=google.com; s=arc-20160816; b=Mdl5//vk+5SNgwNUpryqzGFoY/gv3pg6xoyRBPvEXtkz0Lgrfhfsj9tJNjvej/LFq+ 1yVU833hDgUFXEdN0REdhazfhobUGy13ZfHM8aHgOrrSONZMAHa+qDoG+SFF8cJoW08B ETYIjS8k5/Fof8cpxFVfT4G5OqJhEVPXhEEerJgkO+QxpoAIXUpcMITUaQmD3ud9wmZi tLtB1nTIil5njGof4l2hYnehtaCVXI5XPmQ2qdZghZPI9E6HPYH2c8Z1XhkdOPyyGXZe dBDmiWqbmSGYj1FNphNzOO8pqYtuRmxN9qo/XE/ayoak74xlzlQlyixBlLnfeOvjL0lM L/5Q== 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=Q1wwWHjsJN4wrVn3313wk/hQB/lXYqUK+sI+DqTd000=; b=vTiMxcEeVD3ZK94e0xKAFaGcbjoHOXELNeA3UPc/csS1OuC0uoTPC9Cad3QfIcohmN GWF35/0Vn9yycTG7T/kggwU2p6Ud+nC+c2PMD3NEwwy3o9KwB/TnRGdrIzr0wXDWxz2c 68sjJNc1bql/SBqljDsVz3490hFl8c6ijPF4TQgrCBWEGoR9B6H4uyKerqFKJlgdoX+j SwxJHcPe3GWOmVhZwgxZmG65/jLwx6yEauVmIEWmWsIJ7BpWmYfLzxmC6imgs3aiJQ9C 8eLCBVtWTLgZZRWGM7asAC9rgzU8tRIqX+plD3cafgIvXR2RphY9HEYL1ZKye0k+3DBS wehQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kIo8w+EH; 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=pass (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 u25si20273221pgk.454.2021.10.04.13.41.24; Mon, 04 Oct 2021 13:41:37 -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=@linuxfoundation.org header.s=korg header.b=kIo8w+EH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237972AbhJDNhr (ORCPT + 99 others); Mon, 4 Oct 2021 09:37:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:48738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237928AbhJDNfp (ORCPT ); Mon, 4 Oct 2021 09:35:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEB9461B29; Mon, 4 Oct 2021 13:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353376; bh=5LHH11smJAUzyz2EB6zsfmZixhfw850NiAN27bFTEaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kIo8w+EHw84oAoC+6u+R1ejQ7majorTwAFiYngSS8nSzIc37sUCZcKEGt0mO5+tKN zz/P8skgj5gtjEzZGPLRvhFntY5xVueJ6TJ4lhwh7j+Jr82EtN4QvuqFhyWwSEFZak pp6ZPWlTP5gIOLqT8ugWmfVn6Y5HFu4Oh4Nkm884= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Wilson , Tejas Upadhyay , Matt Roper , Jani Nikula , Sasha Levin Subject: [PATCH 5.14 105/172] drm/i915: Remove warning from the rps worker Date: Mon, 4 Oct 2021 14:52:35 +0200 Message-Id: <20211004125048.371786173@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@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: Tejas Upadhyay [ Upstream commit 4b8bcaf8a6d6ab5db51e30865def5cb694eb2966 ] In commit 4e5c8a99e1cb ("drm/i915: Drop i915_request.lock requirement for intel_rps_boost()"), we decoupled the rps worker from the pm so that we could avoid the synchronization penalty which makes the assertion liable to run too early. Which makes warning invalid hence removed. Fixes: 4e5c8a99e1cb ("drm/i915: Drop i915_request.lock requirement for intel_rps_boost()") Reviewed-by: Chris Wilson Signed-off-by: Tejas Upadhyay Signed-off-by: Matt Roper Link: https://patchwork.freedesktop.org/patch/msgid/20210914090412.1393498-1-tejaskumarx.surendrakumar.upadhyay@intel.com (cherry picked from commit a837a0686308d95ad9c48d32b4dfe86a17dc98c2) Signed-off-by: Jani Nikula Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/gt/intel_rps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_rps.c b/drivers/gpu/drm/i915/gt/intel_rps.c index 06e9a8ed4e03..db9c212a240e 100644 --- a/drivers/gpu/drm/i915/gt/intel_rps.c +++ b/drivers/gpu/drm/i915/gt/intel_rps.c @@ -861,8 +861,6 @@ void intel_rps_park(struct intel_rps *rps) { int adj; - GEM_BUG_ON(atomic_read(&rps->num_waiters)); - if (!intel_rps_clear_active(rps)) return; -- 2.33.0