From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66677D68BDA for ; Thu, 18 Dec 2025 10:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=g0IUAlZOjThr3T8TS/WMY1M4JnyHq1Cp3x2q1+2BNeM=; b=i5CRJio/yYoQvg olsgRZBUbLAOQcdsWtpxt8O1SRG1M/z1j5eXYftNx+y7VmIvItQ73Zbjl8nTJTNJ8od9kilYiF3s6 alfZ8bExr7q/udQBbNry/F0MwEcibY3iVbFcFEWfyiFNy2qJz9g/SlMy6V7YAWpmg4EcuIGq8jLiX HYhwFKEVfM9sldC8ijXDelam0oYV7LmiiAav7rw6WFq3hNHXe8mYK16DP31qSH+AJZmS5zBP1QVIf 8poS8h9ZT9GgKfcSg/cXYKDuS4R9FMcGUUIkeS+mRhpGQ/6UAFNH7J6N4nMeWzfQlyQCm0woE/YZ/ JXzq/PsJxi0LAtOczYpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWAzm-00000008CZS-2lVv; Thu, 18 Dec 2025 10:12:30 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWAzl-00000008CZM-3U55 for linux-rockchip@bombadil.infradead.org; Thu, 18 Dec 2025 10:12:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cFttlWF0jgG52QNDRCCrAUH/tOMpNN661+8S5v4EyIc=; b=ocVfmz9AGIaeIiqfBMe8QGL8IF fdCF7zrB/ULoBVkSLspw2aRhZJxuWViuH7yUPuGHQQX6R9tBpfWkGHeN8uaK5PrQkvoNwNOZKJVrs 0VKxXsZAd7lGMOyYakJr+s5hRYWiklMm6WAT81qm2YNwzDpYjr5A54dwIhZuPXPOMKp5Q7XYXMrHe LSB3aRJ0cuEVAzJdBpo15FLjGynOBxpDrps5qKp36AICSfXnUQNplTRnkWqFZ83vgTkgZMNRRtSj+ aQbpNUtBL8RCPMEghDvfQEJS+ptJMx5DS0jL1vXRiYDhomOuyZVob7H+SDxnpAmPqeMRPZwmHHtge RN9p4vPg==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWAzh-00000005yLv-0o7c; Thu, 18 Dec 2025 10:12:25 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 2E388300578; Thu, 18 Dec 2025 11:12:24 +0100 (CET) Date: Thu, 18 Dec 2025 11:12:24 +0100 From: Peter Zijlstra To: Marek Szyprowski Cc: mingo@kernel.org, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, tj@kernel.org, void@manifault.com, arighi@nvidia.com, changwoo@igalia.com, sched-ext@lists.linux.dev, Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: Re: [PATCH 4/5] sched: Add assertions to QUEUE_CLASS Message-ID: <20251218101224.GN3707891@noisy.programming.kicks-ass.net> References: <20251127153943.696191429@infradead.org> <20251127154725.771691954@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On Thu, Dec 18, 2025 at 11:09:13AM +0100, Marek Szyprowski wrote: > On 27.11.2025 16:39, Peter Zijlstra wrote: > > Add some checks to the sched_change pattern to validate assumptions > > around changing classes. > > > > Signed-off-by: Peter Zijlstra (Intel) > > > This patch landed recently in linux-next as commit 47efe2ddccb1 > ("sched/core: Add assertions to QUEUE_CLASS"). In my tests it turned out > that it triggers the following warning during simple 'rtcwake' test on > Hardkernel's Odroid-M1 board > (arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts): > > root@target:~# time rtcwake -s5 -mon > rtcwake: wakeup using /dev/rtc0 at Thu Dec 18 10:01:28 2025 > ------------[ cut here ]------------ > WARNING: kernel/sched/core.c:10837 at sched_change_end+0x160/0x168, https://lkml.kernel.org/r/176596899373.510.17191516261088315233.tip-bot2@tip-bot2 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 900AC33CE8D; Thu, 18 Dec 2025 10:12:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766052754; cv=none; b=XfKEy1nqRoWgvVBk6y1SK3Aboa5yI9F6h+o+PKhBs6xwZVyvKuwlNukuUh1SS8R6y8Idn5+0LAHLurgZkrjJOi/J+EYL8v0kmfNNb1jnGhchQdD6YkVygsLmQkM8ggqQvUcEjx3kP5kaWgDCGG5vW7EGxcVAuZEobQISZJT7qn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766052754; c=relaxed/simple; bh=Q2j1pI2gbnZ6Er1qOLlLRw0WtqWwqQYSASs3eDFRQtM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bXCA69TMU5oc3C1G8jLfRVEFZIbzIzvQ6r5ybYRLFRs4VEYRZ3mDJEpgJakLc0hOVv7aXRpSHWLi+ypw9pkri9ttEulQEa4G/D1Hb6J4Uze85/QIBR6iQHjLCFzdRMRVPzZVk9zSLzr7q8To9Auy4afvVGEn+s6dS1XXfrQzJok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=ocVfmz9A; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="ocVfmz9A" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cFttlWF0jgG52QNDRCCrAUH/tOMpNN661+8S5v4EyIc=; b=ocVfmz9AGIaeIiqfBMe8QGL8IF fdCF7zrB/ULoBVkSLspw2aRhZJxuWViuH7yUPuGHQQX6R9tBpfWkGHeN8uaK5PrQkvoNwNOZKJVrs 0VKxXsZAd7lGMOyYakJr+s5hRYWiklMm6WAT81qm2YNwzDpYjr5A54dwIhZuPXPOMKp5Q7XYXMrHe LSB3aRJ0cuEVAzJdBpo15FLjGynOBxpDrps5qKp36AICSfXnUQNplTRnkWqFZ83vgTkgZMNRRtSj+ aQbpNUtBL8RCPMEghDvfQEJS+ptJMx5DS0jL1vXRiYDhomOuyZVob7H+SDxnpAmPqeMRPZwmHHtge RN9p4vPg==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWAzh-00000005yLv-0o7c; Thu, 18 Dec 2025 10:12:25 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 2E388300578; Thu, 18 Dec 2025 11:12:24 +0100 (CET) Date: Thu, 18 Dec 2025 11:12:24 +0100 From: Peter Zijlstra To: Marek Szyprowski Cc: mingo@kernel.org, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, tj@kernel.org, void@manifault.com, arighi@nvidia.com, changwoo@igalia.com, sched-ext@lists.linux.dev, Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: Re: [PATCH 4/5] sched: Add assertions to QUEUE_CLASS Message-ID: <20251218101224.GN3707891@noisy.programming.kicks-ass.net> References: <20251127153943.696191429@infradead.org> <20251127154725.771691954@infradead.org> Precedence: bulk X-Mailing-List: sched-ext@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 18, 2025 at 11:09:13AM +0100, Marek Szyprowski wrote: > On 27.11.2025 16:39, Peter Zijlstra wrote: > > Add some checks to the sched_change pattern to validate assumptions > > around changing classes. > > > > Signed-off-by: Peter Zijlstra (Intel) > > > This patch landed recently in linux-next as commit 47efe2ddccb1 > ("sched/core: Add assertions to QUEUE_CLASS"). In my tests it turned out > that it triggers the following warning during simple 'rtcwake' test on > Hardkernel's Odroid-M1 board > (arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts): > > root@target:~# time rtcwake -s5 -mon > rtcwake: wakeup using /dev/rtc0 at Thu Dec 18 10:01:28 2025 > ------------[ cut here ]------------ > WARNING: kernel/sched/core.c:10837 at sched_change_end+0x160/0x168, https://lkml.kernel.org/r/176596899373.510.17191516261088315233.tip-bot2@tip-bot2