Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3442995pxb; Mon, 9 Nov 2020 11:13:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8DFjhw8MhMPvzBcIbtupu87igOk2OEYGIJvCszmhKExsWdaCAmVqXfYpiXtAXhhi5X9Yq X-Received: by 2002:a05:6402:8cc:: with SMTP id d12mr17130772edz.134.1604949184036; Mon, 09 Nov 2020 11:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604949184; cv=none; d=google.com; s=arc-20160816; b=yMOE4pZ57K2uThy1+cLJfwteES4CutKxg3UsfmRiW6rIe21In6ImBtKsDItSqYjbpL mhgnJbzIBnjBOHAL3Ufzw5v4MQVLyKwDGZAgJCyVk60Ys5QeC3v/FA0UExz8A7Nf+Q8d ue1C6kxDj/S4tlCideaKQ5DyTI9InvL6FqCM16G+pJdOqWIyWPC4CUqEfTQ7j3HxHMHb KBcirz4YlhNZs+g2Z8A6JvUv7qh37w4EJ4BH/8RTDqKcjY18ZtWfcmDmgVsfhFswCMfU +xa47MZ2ioeJ/lzHyrQhFKyqTzJE8f4qiCE/42I314Rx0HWkVnFHQ+H5tmN6GSpphdS8 fetQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rga/nxTvws66Ys/tSM8FBEC+62i6Pb9gYFJqV7YKkmw=; b=q3bgym9UdY12lwifdhEcAoceiNAOwzO5obTBQtUAelivtKuBx5y807w0ZbAMJC3b1b yqNdF5LfBNbwJHvqapA6y155FBNmLqt8E+//jlCIxrsLSl5WzM7/IIpAywqpDNojaAXC N/bUsGT5S9SxUTDSk9XJXVmroFGvE9WGvx9aXtp9EeaCwu2JrsdAquOHdS+Wi8JWjz93 lUfKx0/Isgsol8MQvscLdpkc4P7t2fwBVXbT/wcCMuzVjcJ7yo90h7j0Dt2i8p/NIqde ed6RO4s4FCcLJ3qswQs+2vRTZrShh1K58ruQDMs7HvEBcV7VrLaRzESlmX6X7A+wkh0R X+tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SOJdy0+D; 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 g10si7386036ejh.419.2020.11.09.11.12.40; Mon, 09 Nov 2020 11:13:04 -0800 (PST) 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=SOJdy0+D; 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 S1729838AbgKITKs (ORCPT + 99 others); Mon, 9 Nov 2020 14:10:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:34872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729491AbgKITKs (ORCPT ); Mon, 9 Nov 2020 14:10:48 -0500 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E91B120781 for ; Mon, 9 Nov 2020 19:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604949047; bh=3GZSXnDY/4VW+T6OBozDfktu51uTkDhfRjwsCBd4s/c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SOJdy0+DXFwGyE41OgNUYc3ykCl35DJVCdXX4buSc9oi/DNR5uJJhbeJ6gmf7IqGy vrvMKlfWA+YbD8imK3r5KociJNHHkIuJ+uVDM9TX49hK3hKV1TiKQr59nNpbrgVpew wAVcTThMswUke6ZmGUfbQt3YqoXJdQJbMtlKJDGI= Received: by mail-ot1-f42.google.com with SMTP id 32so10050496otm.3 for ; Mon, 09 Nov 2020 11:10:46 -0800 (PST) X-Gm-Message-State: AOAM533MjB6MFxy3mJ2Wlp9PbckONu9YYdHfI2YqQXP7q4sHumJZUchk 3/Hov19wrLbCjy2zMdb3kIB6xMp2wGCBly6pD+U= X-Received: by 2002:a05:6830:22d2:: with SMTP id q18mr10408283otc.305.1604949046185; Mon, 09 Nov 2020 11:10:46 -0800 (PST) MIME-Version: 1.0 References: <1602141333-17822-1-git-send-email-maninder1.s@samsung.com> <1602141333-17822-3-git-send-email-maninder1.s@samsung.com> <20201021124542.GL1551@shell.armlinux.org.uk> <20201021125740.GM1551@shell.armlinux.org.uk> <20201109144549.GA26857@atomide.com> In-Reply-To: <20201109144549.GA26857@atomide.com> From: Arnd Bergmann Date: Mon, 9 Nov 2020 20:10:29 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] arm: introduce IRQ stacks To: Tony Lindgren Cc: Russell King - ARM Linux admin , v.narang@samsung.com, a.sahrawat@samsung.com, Marc Zyngier , Sebastian Andrzej Siewior , Vincent Whitchurch , Nick Desaulniers , "linux-kernel@vger.kernel.org" , Nathan Huckleberry , Jian Cai , Thomas Gleixner , Dmitry Safonov <0x7f454c46@gmail.com>, Maninder Singh , Andrew Morton , Will Deacon , Valentin Schneider , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 9, 2020 at 3:45 PM Tony Lindgren wrote: > > > > As discussed on IRC, I think it can still be done in one of these > > ways, though admittedly none of them are perfect: > > > > a) add runtime patching for __my_cpu_offset() when > > CONFIG_SMP_ON_UP is set. This adds complexity but avoids the > > fallback for for SMP&&CPU_V6. It possibly also speeds up > > running on single-cpu systems if the TPIDRPRW access adds > > any measurable runtime overhead compared to patching it out. > > Out of these options a) sounds best to me. Ok. Maninder, would you like to give implementing this a try? > > b) If irq stacks are left as a compile-time option, that could be > > made conditional on "!(SMP&&CPU_V6)". Presumably very > > few people still run kernels built that way any more. The only > > supported platforms are i.MX3, OMAP2 and Realview-eb, all of > > which are fairly uncommon these days and would usually > > run v6-only non-SMP kernels. > > This has been working just fine for years though. In general, > removing the conditional compile ifdefferey has made things quite > a bit easier for us, so let's continue on that. > > > c) If we decide that we no longer care about that configuration > > at all, we could decide to just make SMP depend on !CPU_V6, > > and possibly kill off the entire SMP_ON_UP patching logic. > > I suspect we still want to keep SMP_ON_UP for performance > > reasons, but I don't know how significant they are to start with. > > And this too has been working just fine for years :) I know it works, my point was that I'm not sure anyone cares any more ;-) I suppose the existence of omap2plus_defconfig and imx_v6_v7_defconfig means it does at least get tested regularly. Arnd