Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1194625pxk; Fri, 25 Sep 2020 08:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3BUcXXc3qP05rCUKAnpGqXxzSJojcH2uhvCl6YNJNNyphmuIDQm8QTU7/75aRcEpWbMPC X-Received: by 2002:a50:a6c2:: with SMTP id f2mr1929586edc.227.1601047829591; Fri, 25 Sep 2020 08:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601047829; cv=none; d=google.com; s=arc-20160816; b=xcwu/OyptAevZwnARLe8njAjudjdpe4rovHbrdtb91UJCGtmw1K9pBiXxNM56hY7kN KY64Yur7shBy/qLOUMW8f6XSpugGtMFCOAiEbgclyC5t+yvrGe9g9xNaccGSt1kUagp8 nhuRQ36Jcc8gEF0Sh7jKmitDPPRNiP2HHmFLfzGxIuuUDjxG5FRv+DUiL21V0qTw5E5i 7gAhNl5cB8bJ7XftrzOw9KGS1Y78vLfweMBEgRGFQe8NaZLSbyhP28+Yiut30+7FZTul tdpIFbCbn/NTjBvvKk+T56kF6uKsVDhcjiEBgf4qrmepGywclzHeBNvMQxWKx5cH7W4r RhMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=AfpSmsP/ujkfodfFmk+vMpRbPK8k1CfAcvy9ViPdxKQ=; b=j/y/MbuhmyOpH3ILnisyo4dWuDm8jsx9McoIHZgwEt7N/yr0CRhUVz52O6D2LWTNUw U900VyFBCqjhOxFcCOe+V3JU0P7WUV6O3GJdMqD3uEBjCyyP7RLDnFBgPORPLuIQ5ObL k6ykeTm5lqxnomEwfgNlW97p0HyRnFdQim5OQ0dKbCdB5xCDvhgcya9XJ+yMLR7cdK+O gCXu1XhXlyb2goxCLHvDB22MxQkPRrFvBzCg6hqyh9HU3or58150OpeR/NkSJJRukAi9 LEC9X7loNb63i+nDGcCnbRwjnymn55mGZw1auVk8j1aXhthKxyDAbK1rwddmjH6wBKhI ko7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=twt0N8Ab; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si2468517ejb.54.2020.09.25.08.30.04; Fri, 25 Sep 2020 08:30:29 -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=@kernel.org header.s=default header.b=twt0N8Ab; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729367AbgIYP3G (ORCPT + 99 others); Fri, 25 Sep 2020 11:29:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:56948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728612AbgIYP3G (ORCPT ); Fri, 25 Sep 2020 11:29:06 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D2B10235F9; Fri, 25 Sep 2020 15:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601047745; bh=rOVcj/V35cyfMa0Vlg8hucdK+66n/l/bpxjyII5KeJ0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=twt0N8Abp9/Po1t9micl7QeynkbSKIgF9pG47HY5rYmOCvHWpfcRB8LlA0LlSnx9V g+4xPB19lcoxmjeyuhvrwqjDXjp5yJ++pbQ6b/b92WxI4prVpFXhmQze82tVUECRxY cC5FYO6TCIx4vwuYHKIuzmxdED0g6N13t8dQuh9M= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 98E1035207C1; Fri, 25 Sep 2020 08:29:05 -0700 (PDT) Date: Fri, 25 Sep 2020 08:29:05 -0700 From: "Paul E. McKenney" To: Guenter Roeck Cc: Peter Zijlstra , rjw@rjwysocki.net, bp@alien8.de, x86@kernel.org, tony.luck@intel.com, lenb@kernel.org, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, ulf.hansson@linaro.org, tglx@linutronix.de, naresh.kamboju@linaro.org Subject: Re: [RFC][PATCH 4/4] acpi: Take over RCU-idle for C3-BM idle Message-ID: <20200925152905.GE29330@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200915103157.345404192@infradead.org> <20200915103806.479637218@infradead.org> <20200925152000.GA171076@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925152000.GA171076@roeck-us.net> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 08:20:00AM -0700, Guenter Roeck wrote: > On Tue, Sep 15, 2020 at 12:32:01PM +0200, Peter Zijlstra wrote: > > The C3 BusMaster idle code takes lock in a number of places, some deep > > inside the ACPI code. Instead of wrapping it all in RCU_NONIDLE, have > > the driver take over RCU-idle duty and avoid flipping RCU state back > > and forth a lot. > > > > ( by marking 'C3 && bm_check' as RCU_IDLE, we _must_ call enter_bm() for > > that combination, otherwise we'll loose RCU-idle, this requires > > shuffling some code around ) > > > > Signed-off-by: Peter Zijlstra (Intel) > > ia64:defconfig: > > ERROR: modpost: "rcu_idle_enter" [drivers/acpi/processor.ko] undefined! > ERROR: modpost: "rcu_idle_exit" [drivers/acpi/processor.ko] undefined! > > I realize that this has already been reported more than a week ago, with > no visible reaction. Another problem introduced in the same file, resulting > in > > drivers/acpi/processor_idle.c: In function 'lapic_timer_needs_broadcast': > drivers/acpi/processor_idle.c:179:1: warning: > no return statement in function returning non-void > > may cause ia64 boot problems since a non-zero return value will trigger > a function call. AFAICS that is not supposed to happen on ia64. > > This makes me wonder - if no one cares about buiding (much less running) > ia64 images with the upstream kernel, is it possibly time to remove it ? Rafael is taking a fix up his cpuidle tree: https://lkml.kernel.org/lkml/CAJZ5v0jVerU92WxL4qCoU6NC0KCyszmRNhpL3tu5LYtMqALd9A@mail.gmail.com/ Thanx, Paul