Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3977831pxu; Tue, 20 Oct 2020 05:40:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/A8knskUnoRr6QHgWxxCg4Vi3g3jWKd1HdTaUcqMTj2Au2YxmbFkzQKkMjxkUWgf4eqf0 X-Received: by 2002:a50:af21:: with SMTP id g30mr2513256edd.46.1603197627279; Tue, 20 Oct 2020 05:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603197627; cv=none; d=google.com; s=arc-20160816; b=U4ev0h2pf7rEe8wp2SbjdyY2dagcoB7BdtGKP8cRzn0Tp1O1fH6FYfwYa6wSe/iGxV z0SRzm8ZkY9wQp9TOwbISKEhwCaK1F3eW46cZ3eD098nfKx7MvH7gf+lR5VkSm5cws3Q nU1ILy9X1tuRJS3CT7hRzaoQupst5/PzE8KiTfLEcIebmc9TygWhgcRL4xONHjy5Zk8J CCnc/ScB0Mi5ohlLSOirT55g/1/XvHtHSkYdoH6P+uwfOkcpP11iaMALZeMG++v4r93y lLfRdJC+qp7KJFOVUaknW2pvE4ERtjxi/NFG4xbuN/DCQ5jOs/UYLnc3n4Ccfcw9l7j8 iSCg== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=ZVsfUtuWIjBoEIeFm4vCtEuqfQhlOkR1voA3jjx5tYs=; b=FwObv0HHWwEVawhklfaDmb4D6FDVjAc6KZsrDRn7XLtvlFcK3XSSTTQI/EfyaUTyXg lWKA7vxdjvYVtZ3KHNIyIE7YriY6LHBD/jc5CxsiZursbSUb2IGOHdwDEI5K6xizfl0V cbH/Ka4EMe3evl/RmGRcWO/32NWRp3XvJT3GI4kQ9QsSQVKwYyzJpFgBmPvzFIWClJTz YY3zWO8S/bl+vZGJtN9iq+p9MfmVCY/T7SNGo1Ooqk347cjY771FBp90Ko8Jjzm4sexh yCsB5wy6VemRZXUtm78j8C71BqyaSzYnvyQIf3MsokazLR3XIgw0418MafwbIzhyWwDR Wtiw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si1161512eji.649.2020.10.20.05.40.05; Tue, 20 Oct 2020 05:40:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406325AbgJTMig convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Oct 2020 08:38:36 -0400 Received: from mailout06.rmx.de ([94.199.90.92]:58086 "EHLO mailout06.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406223AbgJTMig (ORCPT ); Tue, 20 Oct 2020 08:38:36 -0400 Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout06.rmx.de (Postfix) with ESMTPS id 4CFtTN6PJ5z9yxw; Tue, 20 Oct 2020 14:38:32 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4CFtT21pd1z2xGP; Tue, 20 Oct 2020 14:38:14 +0200 (CEST) Received: from n95hx1g2.localnet (192.168.54.87) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 20 Oct 2020 14:38:06 +0200 From: Christian Eggers To: Peter Zijlstra CC: Sebastian Andrzej Siewior , , , Subject: Re: sched: system doesn't boot since "sched: Add new migrate_disable() implementation" Date: Tue, 20 Oct 2020 14:38:06 +0200 Message-ID: <3306981.cWQ2TMxoAe@n95hx1g2> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <20201020113009.GR2628@hirez.programming.kicks-ass.net> References: <1654655.1jrfHnk7pZ@n95hx1g2> <20201019150935.koqbk57dmahhomdc@linutronix.de> <20201020113009.GR2628@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [192.168.54.87] X-RMX-ID: 20201020-143818-4CFtT21pd1z2xGP-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, 20 October 2020, 13:30:09 CEST, Peter Zijlstra wrote: > On Mon, Oct 19, 2020 at 05:09:35PM +0200, Sebastian Andrzej Siewior wrote: > > On 2020-10-19 12:21:06 [+0200], Christian Eggers wrote: > > > I have problems with the latest 5.9-rt releases on i.MX6ULL (! CONFIG_SMP): > > … > > > > > Any hints? > > > > Thank you for the report. The reason is the migrate_disable() > > implementation for !SMP. > > This should fix things I suppose. I'll fold it in. > > --- > --- a/include/linux/preempt.h > +++ b/include/linux/preempt.h > @@ -378,7 +378,12 @@ static inline void preempt_notifier_init > extern void migrate_disable(void); > extern void migrate_enable(void); > > -#else /* !(CONFIG_SMP && CONFIG_PREEMPT_RT) */ > +#elif defined(CONFIG_PREEMPT_RT) > + > +static inline void migrate_disable(void) { } > +static inline void migrate_enable(void { } closing bracket missing > + > +#else /* !CONFIG_PREEMPT_RT */ > > /** > * migrate_disable - Prevent migration of the current task I didn't understand much of you discussion with Sebastian, but my system is able to boot now. # uname -r 5.9.0-rt16+ Best regards Christian