Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3141859pxb; Mon, 1 Nov 2021 08:35:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPXTv6cSfZ6a7TC+dOpNHwHW3Bv+Xrmc4BgwzK1FyZA141zsxK5d3QHStm+EgqmWEtUM/U X-Received: by 2002:a17:907:6ea6:: with SMTP id sh38mr37214012ejc.408.1635780906698; Mon, 01 Nov 2021 08:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635780906; cv=none; d=google.com; s=arc-20160816; b=Y7Z92JnQlngNJxG0rOnjv8yA8TtwmiRhwQ/WLx3xupIWQ2PgFU22GSWB+k2f4jI+6x Vxnkqw3atlWHaRxttd5bp1jvYw2mz07FJDEBXKtDxfoxf53lyJKqZNRk8YHEhXOzXbBF g/xn+EifxacOU1Pa7oCi8Raw5Mxhl0euO/JrZwDKG3owv/FATRf4IoaT5JjFHr0MKQm0 swr9v3xe8XtsnKrLM8ykqfoWXhP3r7ytcQ0sazoskwgaeRSRi3fartw5My1eTWHh9dSg melh8w8yNvOyrPe3Fa3pydBHMyH8HVx2WKmVEkCTcaCK95p40jy+S6P69nZpNX12j0OB ItaA== 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=CN8rQ1tRxeXIpx3jQunjqqrNjS826z1bdP3f36w4Lmc=; b=naIuCPdxYKAiFUZTByJD4wfbDhPEfRe6IAhuAUgdRODzf1i8q/VRE9Mawjt5EIsLlz op9cq2rOpY4gHWrc4igsFruBiWMcGmjcuKnc3nS13cDp/4yguHfJub8jxXuysI1AjnlV 9G/T8/fRDzyvWdPLHuHDdMV/x3EOlPLHAdgUAL9r2q48fyQ8udCD88CB7LZTefgLCeoq lVOHcszlaj/UnX/Plat16cUdDgBdTgx6xVJg+SWnm05DJCLoPpTUWLCVBdE7CmLnr9TC bUaL/RwJ1HaHBhjUP/3RbI2eAay/Assx+/v/xBlpqp6FNdVvKyGBJjUgEo6FBfiyKIvT 2e0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E3z1G6+r; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si20454460eji.148.2021.11.01.08.34.40; Mon, 01 Nov 2021 08:35:06 -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=@linaro.org header.s=google header.b=E3z1G6+r; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232390AbhKAPfR (ORCPT + 99 others); Mon, 1 Nov 2021 11:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbhKAPfR (ORCPT ); Mon, 1 Nov 2021 11:35:17 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3456C061714 for ; Mon, 1 Nov 2021 08:32:43 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id z20so65998673edc.13 for ; Mon, 01 Nov 2021 08:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CN8rQ1tRxeXIpx3jQunjqqrNjS826z1bdP3f36w4Lmc=; b=E3z1G6+rXmLBTcUCEqna/tuPLpo7fQbax/jJAq51voPIued0ebctyXesnEDJyedqe0 B3vApk1aqq1mW3FMTHaXpNrpeX63SmVWjLnv/ghtdm46WN0W0Fz/VVeVFtB6+N/WCIJ0 VMWpTqU10VHUp0Dtzgh/QRKVZzNJ6FrdKViIZe75HFsTGTo8dRvxkuLKaoVBJGFtttId IcFSbAWXtptga7Gia+JapGySXbmulnW1xxh0uzgpkwCTSdyB/Gb7vMkfdeJ4dKsQKR62 F6tXJs06vlMlvRqdnkvJtkLJwq8OqzEjSCwSeLJGD5xIaCIZMTAr9dGZL6ASKUivzo2z Zqiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CN8rQ1tRxeXIpx3jQunjqqrNjS826z1bdP3f36w4Lmc=; b=23aEafPUTagif4QdI6fGtR8wgCo5mBlOPwU3a1XsBHgfTv/4PoCW/tJuZFEBNx90ep Lk7mUj+cNsPpZ+VW0fd5kyYuuwsW7DrV543UzuXuOUf9y9KYgwmrMxUy4gtu11jsP+Zn c3cWbUJVoXzTMCDrqA84A4987FSKd5aQ1FESNME2lE/HmBN+B/belbxMNYAn8aT5rS6L X/6I/ca5uyWvSCRlin5bDE1CpYkq9oW4aNBxAYUCwX5RMC5KOvouFvnPivNABUGR9V6/ 5q7GRnix9DXVJ1dE4dIVVPT+NW4DooWdXsXlQDjbqrnD5FuYuT8U5sjifjLCaksWPqcz GBOg== X-Gm-Message-State: AOAM531U1rQV+d5tk8/8D1CMKxa4dWP556vkjXb1QvQl54MlBT76XXU/ 6BsfNO+rQ5iJzp8aKFa30pMdofOmzwBfPTRVL3TI0w== X-Received: by 2002:a17:906:9601:: with SMTP id s1mr38619975ejx.68.1635780762250; Mon, 01 Nov 2021 08:32:42 -0700 (PDT) MIME-Version: 1.0 References: <20211029113023.760421-1-arnd@kernel.org> <9d4e09b4-47dc-ed3c-2b6d-e0d1a081e592@arm.com> <20211101090143.GA27181@willie-the-truck> <20211101094045.GB27400@willie-the-truck> <55cc7816-cc7a-3161-71cc-0c969ec131a2@arm.com> In-Reply-To: From: Mathieu Poirier Date: Mon, 1 Nov 2021 09:32:29 -0600 Message-ID: Subject: Re: [PATCH] [RFC] arm64: export this_cpu_has_cap To: Greg Kroah-Hartman Cc: Suzuki K Poulose , Will Deacon , Catalin Marinas , Arnd Bergmann , Anshuman Khandual , Arnd Bergmann , Marc Zyngier , Mark Rutland , David Brazdil , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Nov 2021 at 05:13, Greg Kroah-Hartman wrote: > > On Mon, Nov 01, 2021 at 09:52:22AM +0000, Suzuki K Poulose wrote: > > On 01/11/2021 09:40, Will Deacon wrote: > > > On Mon, Nov 01, 2021 at 09:34:08AM +0000, Suzuki K Poulose wrote: > > > > On 01/11/2021 09:01, Will Deacon wrote: > > > > > On Fri, Oct 29, 2021 at 07:06:23PM +0100, Catalin Marinas wrote: > > > > > > On Fri, Oct 29, 2021 at 02:31:23PM +0100, Suzuki K Poulose wrote: > > > > > > > On 29/10/2021 12:30, Arnd Bergmann wrote: > > > > > > > > From: Arnd Bergmann > > > > > > > > > > > > > > > > It's now used in a coresight driver that can be a loadable module: > > > > > > > > > > > > > > > > ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined! > > > > > > > > > > > > > > > > Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling") > > > > > > > > > > > > > > Reviewed-by: Suzuki K Poulose > > > > > > > Tested-by: Suzuki K Poulose > > > > > > > > > > > > > > Will, Catalin, Mathieu, > > > > > > > > > > > > > > Do you have a preference on how this fix can be pulled in ? This may > > > > > > > be safe to go via coresight tree if it is not too late. Otherwise, > > > > > > > it could go via the arm64 tree. > > > > > > > > > > > > I think Will already closed/tagged the arm64 tree for the upcoming > > > > > > merging window, though he could take it as a fix afterwards. > > > > > > > > > > > > If it doesn't conflict with the arm64 for-next/core, it's fine by me to > > > > > > go through the coresight tree. > > > > > > > > > > > > > > Signed-off-by: Arnd Bergmann > > > > > > > > --- > > > > > > > > Not sure if we actually want this to be exported, this is my local > > > > > > > > workaround for the randconfig build bot. > > > > > > > > --- > > > > > > > > arch/arm64/kernel/cpufeature.c | 1 + > > > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > > > > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > > > > > > > > index ecbdff795f5e..beccbcfa7391 100644 > > > > > > > > --- a/arch/arm64/kernel/cpufeature.c > > > > > > > > +++ b/arch/arm64/kernel/cpufeature.c > > > > > > > > @@ -2864,6 +2864,7 @@ bool this_cpu_has_cap(unsigned int n) > > > > > > > > return false; > > > > > > > > } > > > > > > > > +EXPORT_SYMBOL(this_cpu_has_cap); > > > > > > > > > > > > EXPORT_SYMBOL_GPL? I think this_cpu_has_cap() is a bit more more > > > > > > specialised than cpus_have_const_cap(). > > > > > > > > > > > > With that: > > > > > > > > > > > > Acked-by: Catalin Marinas > > > > > > > > > > Yes, at this stage I think it's best for this to go via the Coresight tree. > > > > > So with the _GPL export: > > > > > > > > > > Acked-by: Will Deacon > > > > > > > > > > If that doesn't work for some reason, I can take it next week after the > > > > > initial arm64 queue has been merged. Please just let me know. > > > > > > > > As I understand correctly, this will now need to go via arm64 tree. The > > > > CoreSight tree changes are pulled into Greg's tree and the next it will > > > > happen is for the next release. Usually the fixes don't end up there > > > > during the -rc cycles. So, I believe it is better if this goes via > > > > arm64. > > > > > > Hmm, are you saying that Coresight drivers don't receive fixes outside of > > > the merge window? That sounds sub-optimal... > > > > Unfortunately thats how it works today. We should fix this. > > > > Mathieu, Greg, > > > > Do you have any thoughts on how to address this ? > > What? That's crazy, if there are bugfixes needed of course I would take > them during the -rc cycle, that is explicitly what it is there for! I have sent patches to the char-misc tree several times during -rc cycles. As Greg points out, proceeding otherwise would not make sense. > > It's up to the maintainer of the subsystem to send me the fixes to get > into the -final kernel release, I don't pick them up on my own unless > asked to by them. > I will send a pull request for this when I receive another patch with Catalin's annotation and collected RB tags. > thanks, > > greg k-h