Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3848622pxb; Tue, 10 Nov 2020 01:21:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAKA2shi7ycMCWR8pvVzsdOaIHV10XierdRCWKrDm7cG8BMIEDrfy3KObimrAPNzoC3fPJ X-Received: by 2002:a05:6402:114c:: with SMTP id g12mr11332518edw.167.1605000061974; Tue, 10 Nov 2020 01:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605000061; cv=none; d=google.com; s=arc-20160816; b=RKtAdeBJS/7wfw+4cYJ6DoFWNhlOPpml0n2VZLfx5iTBgtrJR8DGkBZTJKXDMONu5r f+GEzf4+3pLtx5rff+7PWRgoIKLjGc+Rr3sv++8yF1rV/gfMsXhvV+8z+3zIQwp6Px0i oq7qp7/RWuhop+ozQRi1j1nbttSLSqhNtL6hBgv4l4z6Lj254jb5NYH4wZrP4Suz7KqF Y+uiyIWzc6Iuo8yhUzWGKNrXG3RgrvS0YWoZzCppBTQlRQGlnazD4x1AZuZS1qMNLlNV mEVOJ0M6DKrbBpyecpF5w7ajjciaTBa8MA6Gkc+PTfeAdtjgrJH52Aka9E+kkIRKiGKY Lyrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MaiUzUkP/wzsQ2mgtGw4O7HcgRyvWBK2bwrbXzduuoQ=; b=c2qf9W+C2oFTjcLfpJTy7lh0FZN5LJaPCzJ6Ntdi0uZm6FNczAiAM+e45Ow1oJlSOB 21H6Jx7A9Wv4OrWoj/V7xWCTAJt55jJaF6vyyrBD0CKV3Yh3ynsT7J00lZhSlNWEakbn zQEf0dyice7N0vLLqy3AxuhiBMo1VVpWRU2QuAAaPzHtyG495P0XSjhYjjoBsoGSxWKT Gy8qNACwH/+JqJG6OL+3ZeDDU1JN1IF2CdrSAIbm/xs0IWnf+eU2IkUJPQJOLAxepVI5 CprtOt6dpBKBpUd4wfQJY9kmBuuv0VwPV17k6DoNnpWzDK2VtFFzvTg9LVSzY3fmpubS hXCQ== 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 f23si8615239ejb.6.2020.11.10.01.20.38; Tue, 10 Nov 2020 01:21:01 -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; 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 S1727046AbgKJJTL (ORCPT + 99 others); Tue, 10 Nov 2020 04:19:11 -0500 Received: from muru.com ([72.249.23.125]:47586 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbgKJJTL (ORCPT ); Tue, 10 Nov 2020 04:19:11 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4178A80BA; Tue, 10 Nov 2020 09:19:13 +0000 (UTC) Date: Tue, 10 Nov 2020 11:19:04 +0200 From: Tony Lindgren To: Arnd Bergmann 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 Subject: Re: [PATCH 2/3] arm: introduce IRQ stacks Message-ID: <20201110091904.GC26857@atomide.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnd Bergmann [201109 19:10]: > 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 ;-) Well for example whatever Linux running ARMv6 LTE modems out there might need to be supported for quite some time. Not sure how many of them are able to update kernels though. Certainly network security related issues would be a good reason to update the kernels. > I suppose the existence of omap2plus_defconfig and > imx_v6_v7_defconfig means it does at least get tested > regularly. Yes. I probably would just stop any random ARMv6 related testing if it it needs a custom .config. Regards, Tony