Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3278689rdb; Wed, 13 Sep 2023 07:32:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEt8RpqWb2s0+4ENQLskeuRyG3lACZFEwmXpGnotcWQJ+xWR1wQX5zLNfmbFDq18by+WmSW X-Received: by 2002:a17:902:e543:b0:1b7:f64b:379b with SMTP id n3-20020a170902e54300b001b7f64b379bmr5117679plf.17.1694615529620; Wed, 13 Sep 2023 07:32:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694615529; cv=pass; d=google.com; s=arc-20160816; b=rZSCBJ3sfWIPURhgNNW45bEqHhjEXKtRjtbnO798T4Rp20z6jAbJO0Cy340+d7Zzgu 1Hdxy5sCyh7FgAGuTauon1wXPK1cddOfj9veKDHr9F/cXhQH4weGSaqbMzry11tg/roQ LVEC4pxM1OAif58INExl7H3pxSk+eqM7aNUmMbQk+WH2c09j9IvoYJGn82fB4lwOJDnx FNhc7fxfn67iQrg4ocWSwMyW4XBnfmaHceAmMZZ9fccfL432e8NFCgwY11PrkzhWLmaX fhbg13X9K88yUvaTVZgP2+QZ0SNvRbQerh9ibatYpsDqAmifYGKN9+eQ/tA75OXnpu5D MRew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-transfer-encoding:content-disposition:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=BpdiG8EbRB2nFUwxIaGix0qIq5YkbzkYGjIZX8NK16Q=; fh=59GBHBe8IawxedOtundG6CTvHiFWNJyt272DWdZRV8Y=; b=bfHO+yutCv++T2anQQINj8bR16bm5o2CHqUK1I5HXFs5VLln9fMBA6u/sGWsFF3I/D GpMhjTKMQXIJs/YUd+d0L0dMVt8KE/gh8bC4VOtau0lN9I36jqTUAUqls4t4AZhi0Epz X1+bXFOGXmAguxneT1zNXtLddy0fYXg4K4eXl7AGURhevZzh7EecS0a++mxO/3ncsnhn Snpn2CB8zC7QM0ZXkd8Za3Coo/VPBV+cKKfNVCPe1jS3qCryY9grjnlLbCyKtlN5HvXq WzIzFAwvhRxJqJHaES3h0z0Pr3YV8gLfOUJfxJTYISERCm/r22z1aADcof9bD0W9Qobu UQUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=clOHLGEQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="g1d/f/Px"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y16-20020a17090264d000b001bbd91b1e94si10165979pli.505.2023.09.13.07.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:32:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=clOHLGEQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="g1d/f/Px"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id F3A0881DD24B; Wed, 13 Sep 2023 06:24:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239435AbjIMNYh (ORCPT + 99 others); Wed, 13 Sep 2023 09:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234046AbjIMNYf (ORCPT ); Wed, 13 Sep 2023 09:24:35 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525D719BD; Wed, 13 Sep 2023 06:24:31 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38DD2Gjt032101; Wed, 13 Sep 2023 13:24:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : content-transfer-encoding : in-reply-to : mime-version; s=corp-2023-03-30; bh=BpdiG8EbRB2nFUwxIaGix0qIq5YkbzkYGjIZX8NK16Q=; b=clOHLGEQRvyT6qS/IXdxawv6BMfKHCiAo4D6RFdQLZO3smHftlvTgkXEunbEwthj435b U9WeyvEuwNrLAni2i/UAAiZM28D/0sdLDDqmHtuajYXKSYi3J0LfXPahnAamNuCMw70b Qs4XXaxXtBxysqp4i2gBTmoPnEf4V7EoS+/5zG17AplscTPKQceOU7uKwoOgw3sdIU1V u3jcywBFbdxGsUYKG8Eczw+e6cEWLRc5TNN0lJuUBwoutWRk4wnUWzR0MX6zQakaFPSa GWXAlqa939ej1OXdAmbtrZJXxjqzN0wJ7lJluQj4KxxlvXx/JXzc8Emk4jOdRvTuAzrH TA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t2y7msurj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Sep 2023 13:24:11 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38DCXHB5014716; Wed, 13 Sep 2023 13:24:09 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t0f5dgs0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Sep 2023 13:24:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mGx5fU70b2PYGiX5XxECNMCduv+/M647SpNKmlSFFN7sbVs0DoL+Tfjri+v84pYzVkSkCznv+q7YSuNbVt1OaDq2WmYGxDUVQpIPDuiw6RbDGJxeu48bKi0xschGAtxn27iGI0B5eYjDsk/7fJ3COkarObY2IoIz9XghaJ9lLZWXAGqKJbTk8ru9rHEvFgmp1cGDQQWmLZiyqVUFIBXdffLmQB2rLVWdh1Qa5GBJltFEjijpcmd3KZxXyNa+4ZiEJyI3uKw+jzwA/39TJ+3fiJgt1pG4vNFpaMw6GFPSkcKFH21XJqIq62LnbxEm6u7WpR/dZI5hGyUNqVrW/bfUMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BpdiG8EbRB2nFUwxIaGix0qIq5YkbzkYGjIZX8NK16Q=; b=QluygVBgwxVH8mOluvxyaYl/j1QmXFo1QJCh3ycEHCJFwcF+TkTO7RBWAoiQPdn/9vTytOE3WHeg0dIrBzGBfEjw08rw1EcMSR9/5wRQgGGLsbnljP8CQeDNV8sq8V6Ubv9FZ7NgRqYGIvwXS1I73wP/8LJ9mEa5kWjbeh/pXyKdjiwUrMigt9TlAPizPnSfxj3bM9/AliIdnGA3A9Rmg43I0LIBybhCMh/spEEzBwDdUfHoQeDv4hI1BWyiTe0uDvenuJ0evFVuTHxyooqS/3ecTohDMR1uWSyQZ2R9cMUaEGav2tGYwnUxLHnj3aNzZWscGUBeTnfcO/l18l2CIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BpdiG8EbRB2nFUwxIaGix0qIq5YkbzkYGjIZX8NK16Q=; b=g1d/f/PxQLtI/W8KYcpLDk9fDmKm/imcF585gVKjWsrxAyyc48uDoB5SeSf4Hfh39tdcIpfD+JKejwOrt+k0Dlt3JnywcUD0HGfZQsPy6MXJrYvMvU1a+yIh9i3J4qlFyZUkCM8PST6udI8Txs0Iarj6y6mzcv1WF5mxRm0H7XI= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by MN2PR10MB4336.namprd10.prod.outlook.com (2603:10b6:208:15f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Wed, 13 Sep 2023 13:24:08 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6768.036; Wed, 13 Sep 2023 13:24:08 +0000 Date: Wed, 13 Sep 2023 09:24:04 -0400 From: "Liam R. Howlett" To: Geert Uytterhoeven Cc: paulmck@kernel.org, Andrew Morton , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Shanker Donthineni Subject: Re: [PATCH v2 1/2] maple_tree: Disable mas_wr_append() when other readers are possible Message-ID: <20230913132404.wepr7l7o5qegy7hw@revolver> Mail-Followup-To: "Liam R. Howlett" , Geert Uytterhoeven , paulmck@kernel.org, Andrew Morton , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Shanker Donthineni References: <20230906172954.oq4vogeuco25zam7@revolver> <495849d6-1dc6-4f38-bce7-23c50df3a99f@paulmck-laptop> <20230911235452.xhtnt7ply7ayr53x@revolver> <33150b55-970c-4607-9015-af0e50e4112d@paulmck-laptop> <62936d98-6353-486e-8535-86c9f90bc7f4@paulmck-laptop> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0237.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:eb::29) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|MN2PR10MB4336:EE_ X-MS-Office365-Filtering-Correlation-Id: 51dd9473-cb06-429a-c331-08dbb45cb58a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zcd+OkoTVYL8zkgp8PpY44oStC6swd14FNlM6gETdFPxEdLSVkV3+JQ6o406Olgyf6Q6keXc8v/2JqPwlubbm72Dswhe1R/dKfrxrk17cqE+MRMTsLRtblxolHiPDHY6ebKsML6mx4abkjJnvfY8Iv5x6lQeUeWQCjC/owKbcgf1+GxYNd1s/wiYpv9uFgaUZ/CTjY95zXAeib/CWVTyB4c9UQFwLvTaNQFAGs6QcxG/c21GiOqNfyuYQyktYIxxY8cR6J6XRlL7OBOYwlwcRhYvxVjeMfuDPcrPQw3nRVYCtyAlfOWOH8jiTeJPoYsZ6frUAxLSbVRXxdJwV3rQHBV+JECKU/5P2OokWkbaHZr06UC2Q0bBC87/CgnzS4JCOYMq7ohuoqttFo31v0peoA2UF/AHjQ31vDCIRyJZ7l2JjB9NgNsB6wr7EG7mbADksU6ARKG10X4/0j4elpJpXRLAbS3tw/MASExGjlS5TsFc1WXVy9n09eLznIgHIv/7X96koyPWlel88zQ4prV3J/BuuCEmxnsmalDQbostTU9zDUiTjZnVIRIzSHt7+TBI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(396003)(366004)(346002)(376002)(136003)(39860400002)(186009)(1800799009)(451199024)(6666004)(53546011)(6506007)(6486002)(6512007)(9686003)(45080400002)(478600001)(83380400001)(1076003)(26005)(2906002)(33716001)(6916009)(66946007)(54906003)(66556008)(66476007)(316002)(5660300002)(8676002)(8936002)(41300700001)(4326008)(86362001)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a3BLVnBoZkpncDNkeTB2eitwZlpQOGEwd0tucnhNMkx3NUg2c05ncXdDazR0?= =?utf-8?B?UG44bXpmaXFoYzJsQ3F2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Message-Id: 51dd9473-cb06-429a-c331-08dbb45cb58a X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 13:24:07.9929 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: T9rMqB/WcIjEy+ZBOv1bYpx4NyTAqmfGemxnUhKHa4edq9TphMMdy6yGRnjkMmjWgUR8Lypo1DSbXvES6kSNow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4336 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_07,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 malwarescore=0 mlxlogscore=491 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309130109 X-Proofpoint-ORIG-GUID: 3yvJzm_LL0maK6HHZURuPVJRfYonJtoL X-Proofpoint-GUID: 3yvJzm_LL0maK6HHZURuPVJRfYonJtoL Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Sep 2023 06:24:43 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email * Geert Uytterhoeven [230913 09:15]: > Hi Paul, >=20 > On Tue, Sep 12, 2023 at 12:00=E2=80=AFPM Paul E. McKenney wrote: > > On Tue, Sep 12, 2023 at 10:34:44AM +0200, Geert Uytterhoeven wrote: > > > On Tue, Sep 12, 2023 at 10:30=E2=80=AFAM Paul E. McKenney wrote: > > > > On Tue, Sep 12, 2023 at 10:23:37AM +0200, Geert Uytterhoeven wrote: > > > > > On Tue, Sep 12, 2023 at 10:14=E2=80=AFAM Paul E. McKenney wrote: > > > > > > On Mon, Sep 11, 2023 at 07:54:52PM -0400, Liam R. Howlett wrote= : > > > > > > > * Paul E. McKenney [230906 14:03]: > > > > > > > > On Wed, Sep 06, 2023 at 01:29:54PM -0400, Liam R. Howlett w= rote: > > > > > > > > > * Paul E. McKenney [230906 13:24]: > > > > > > > > > > On Wed, Sep 06, 2023 at 11:23:25AM -0400, Liam R. Howle= tt wrote: > > > > > > > > > > > (Adding Paul & Shanker to Cc list.. please see below = for why) > > > > > > > > > > > > > > > > > > > > > > Apologies on the late response, I was away and have b= een struggling to > > > > > > > > > > > get a working PPC32 test environment. > > > > > > > > > > > > > > > > > > > > > > * Geert Uytterhoeven [230829 1= 2:42]: > > > > > > > > > > > > Hi Liam, > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 18 Aug 2023, Liam R. Howlett wrote: > > > > > > > > > > > > > The current implementation of append may cause du= plicate data and/or > > > > > > > > > > > > > incorrect ranges to be returned to a reader durin= g an update. Although > > > > > > > > > > > > > this has not been reported or seen, disable the a= ppend write operation > > > > > > > > > > > > > while the tree is in rcu mode out of an abundance= of caution. > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > RCU-related configs: > > > > > > > > > > > > > > > > > > > > > > > > $ grep RCU .config > > > > > > > > > > > > # RCU Subsystem > > > > > > > > > > > > CONFIG_TINY_RCU=3Dy > > > > > > > > > > > > I must have been asleep last time I looked at this. I was look= ing at > > > > > > Tree RCU. Please accept my apologies for my lapse. :-/ > > > > > > > > > > > > However, Tiny RCU's call_rcu() also avoids enabling IRQs, so I = would > > > > > > have said the same thing, albeit after looking at a lot less RC= U code. > > > > > > > > > > > > TL;DR: > > > > > > > > > > > > 1. Try making the __setup_irq() function's call to mutex_l= ock() > > > > > > instead be as follows: > > > > > > > > > > > > if (!mutex_trylock(&desc->request_mutex)) > > > > > > mutex_lock(&desc->request_mutex); > > > > > > > > > > > > This might fail if __setup_irq() has other dependencies= on a > > > > > > fully operational scheduler. > > > > > > > > > > > > 2. Move that ppc32 call to __setup_irq() much later, most = definitely > > > > > > after interrupts have been enabled and the scheduler is= fully > > > > > > operational. Invoking mutex_lock() before that time is= not a > > > > > > good idea. ;-) > > > > > > > > > > There is no call to __setup_irq() from arch/powerpc/? > > > > > > > > Glad it is not just me, given that I didn't see a direct call, eith= er. So > > > > later in this email, I asked Liam to put a WARN_ON_ONCE(irqs_disabl= ed()) > > > > just before that mutex_lock() in __setup_irq(). > > > > > > > > Either way, invoking mutex_lock() early in boot before interrupts h= ave > > > > been enabled is a bad idea. ;-) > > > > > > I'll add that WARN_ON_ONCE() too, and will report back later today... > > > > Thank you, looking forward to hearing the outcome! >=20 > On a typical arm32 system with global or architectured timer, I get: >=20 > WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1587 __setup_irq+0xcc/0x6d0 > CPU: 0 PID: 0 Comm: swapper/0 Not tainted > 6.6.0-rc1-shmobile-02354-g24e058b77f5a #1655 > Hardware name: Generic R-Car Gen2 (Flattened Device Tree) > unwind_backtrace from show_stack+0x10/0x14 > show_stack from dump_stack_lvl+0x40/0x4c > dump_stack_lvl from __warn+0x78/0x10c > __warn from warn_slowpath_fmt+0x90/0x11c > warn_slowpath_fmt from __setup_irq+0xcc/0x6d0 > __setup_irq from __request_percpu_irq+0xb8/0xd0 > __request_percpu_irq from set_smp_ipi_range+0x88/0xdc > set_smp_ipi_range from gic_of_init+0x1a4/0x4d8 > gic_of_init from of_irq_init+0x1f0/0x320 > of_irq_init from init_IRQ+0x74/0x104 > init_IRQ from start_kernel+0x360/0x5d0 > start_kernel from 0x0 >=20 > Likewise on arm64 with architectured timer. > But on these systems I do not see the issue I reported. >=20 > On RISC-V: >=20 > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1587 __setup_irq+0x4e6/0x5e= e > Modules linked in: > CPU: 0 PID: 0 Comm: swapper Not tainted 6.6.0-rc1-02355-g63165363c6a3 #63 > Hardware name: Renesas SMARC EVK based on r9a07g043f01 (DT) > epc : __setup_irq+0x4e6/0x5ee > ra : __setup_irq+0x38/0x5ee > epc : ffffffff80049472 ra : ffffffff80048fc4 sp : ffffffff81203cd0 > gp : ffffffff812ee760 tp : ffffffff8120d5c0 t0 : ffffffd801854300 > t1 : 0000000000000000 t2 : ffffffff81000ad8 s0 : ffffffff81203d20 > s1 : ffffffd801855000 a0 : 0000000000000001 a1 : ffffffd801855000 > a2 : ffffffd801854280 a3 : 0000000000000001 a4 : 0000000000000000 > a5 : 0000000000000000 a6 : ffffffd801852108 a7 : ffffffd801852100 > s2 : ffffffd801854280 s3 : 0000000000000005 s4 : ffffffff812c54c0 > s5 : 0000000000000005 s6 : ffffffff80dd83a0 s7 : ffffffff805c0cc0 > s8 : ffffffd801855018 s9 : 0000000000000000 s10: 0000000000000000 > s11: 000000007bf638a0 t3 : 0000000000000000 t4 : 0000000000000002 > t5 : ffffffff812882a0 t6 : 0000000000000001 > status: 0000000200000100 badaddr: 0000000000000000 cause: 000000000000000= 3 > [] __setup_irq+0x4e6/0x5ee > [] __request_percpu_irq+0x98/0xcc > [] riscv_timer_init_dt+0x186/0x22e > [] timer_probe+0x62/0xd2 > [] time_init+0x86/0xa6 > [] start_kernel+0x436/0x618 > ---[ end trace 0000000000000000 ]--- >=20 > Also, no issue here. >=20 > On the affected systems (RZ/A1 and RZ/A2), the WARN_ON_ONCE() did > not trigger, until I applied Liam's patch ("init/main: Clear boot task > idle flag"), which got rid of the "Interrupts were enabled early" warning= , > and now tells me, as expected: >=20 > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1587 __setup_irq+0xc8/0x654 > CPU: 0 PID: 0 Comm: swapper Not tainted > 6.6.0-rc1-rskrza1-02357-g237e09fd64b8-dirty #829 > Hardware name: Generic R7S72100 (Flattened Device Tree) > unwind_backtrace from show_stack+0x10/0x14 > show_stack from dump_stack_lvl+0x24/0x3c > dump_stack_lvl from __warn+0x74/0xb8 > __warn from warn_slowpath_fmt+0x78/0xb0 > warn_slowpath_fmt from __setup_irq+0xc8/0x654 > __setup_irq from request_threaded_irq+0xac/0x13c > request_threaded_irq from timer_of_init+0x238/0x2c8 > timer_of_init from ostm_init+0x98/0x208 > ostm_init from timer_probe+0x90/0xe4 > timer_probe from start_kernel+0x2c0/0x488 > start_kernel from 0x0 > ---[ end trace 0000000000000000 ]--- >=20 > However, Liam's patch causes lots of warnings on the other systems... >=20 What patch? The "init/main" patch? What systems and what are they? Thanks, Liam