Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2824487rdb; Tue, 12 Sep 2023 13:18:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJKQNJZGV4ZBBRJ3f43u1naFFlPfXhjE6lpqztuiKcPGRNrUQLPcPRcF6LzqOEznKdN/5V X-Received: by 2002:a05:6a21:3d89:b0:133:f5c1:57bb with SMTP id bj9-20020a056a213d8900b00133f5c157bbmr420491pzc.20.1694549909356; Tue, 12 Sep 2023 13:18:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694549909; cv=pass; d=google.com; s=arc-20160816; b=vMqFTFMyZSIvES+7hZB7OizNwqqaMHvxtlbMkYJ3z/wLf7vtuJlf48VFQYQSa+lHcc XLPnnwfuunN/VE9RDoBRTG9SG3dAoNBVYn0RbEUsH0eWDUFEHjlX6YJ7KkRdy2X+7H0x AHCvc7GrG/hzbjG849OLDr6LlDHFYYcp+nl4vdDpfn8pCf3Q/kIjO0Le87WmsMLNV+n/ mIICQcNvEeatDx+E8G36GK8DGEBagi0ApmbhkiE0FCAjUN39X4oixKC8y+oXoaUV1inU acpSwHaxguwmNnbvJnjR0/trheEiKq3m8j1gNH1brAeegAZDG6eHFKk4TSLKhnFPw4jR xVIw== 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=Hv25ZEtvfHsv+eW926U9fEX/JnAWXoYil4FcSLgeL9U=; fh=Ji+BOddVOO0D1e0Li8cOH1Jldcw1Q3U+zx7GIqLLTzs=; b=k6tZQLFmzMmMb0FE25J838QuJIhqSsDpsCnwYnntPRJSah6UT2hRn7lzrDe8ET0D1z /0100fk37+fqVUpRMETJ+nACDFt77fNEzitxWhDwjuj9vK2clwFhnlf0MiwoB/1e0f+3 4eCaol70QdDSNKS4Ah81amo1OdUqB3L6XG79LFQ8XRV2MXczjTvQG7JwKtd0gQHl7pRg BMZRzF4CyRy0/VpWjeuMLuY+2805M9LVIlEeyD6fGgSBp6j+T/FW272ajbxONHus+7u4 LR71olNh9FU5Ta9uUlF3fvIxWNoZoxRqRyb/ymWwBn2ReU7pnb70+GYedEtxzNc/BNfa Af9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=oQJvstQv; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=DiBLTkQc; 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id k21-20020a056a00135500b0068b753d7061si4229395pfu.116.2023.09.12.13.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:18:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=oQJvstQv; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=DiBLTkQc; 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 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id BEC2B81E7809; Tue, 12 Sep 2023 06:56:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235566AbjILN4u (ORCPT + 99 others); Tue, 12 Sep 2023 09:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235011AbjILN4s (ORCPT ); Tue, 12 Sep 2023 09:56:48 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96D4210CE; Tue, 12 Sep 2023 06:56:44 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38C9nJC4021454; Tue, 12 Sep 2023 13:56:24 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=Hv25ZEtvfHsv+eW926U9fEX/JnAWXoYil4FcSLgeL9U=; b=oQJvstQvcIUfLsktSI8lgLoazzi31KV2qgWsScW9uGaxhvOlAc2OAE/YpthFFHW1LaXd gv+HOjuCJGGBQ44thx7H7rl930ZW1KNFi2mWbzwPQ456bkct1/KMY39/hPUqFzrNbbVR dgUW+xtLZeBA7j/1/8i2hFCKA44BINDm19wCR9iHjacpdK0YtQTWD6JlrIfgUsjfQ8Jy 6fmD8PTHNWxlSnsZaz8Basy3dLAH69vsA75XPHDwHRjneHuK2/SDvG4j7h8PSJmEhGpy ttW39o6dm8lijNTkkXQhTiXeXp3io0gYp3ZUJnMJxE6Fb2FGZVqVGlYhfqXn54fBlaeV Nw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t1ju1v1nt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Sep 2023 13:56:23 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38CCOuvJ022991; Tue, 12 Sep 2023 13:56:22 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2047.outbound.protection.outlook.com [104.47.73.47]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3t0f561am3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Sep 2023 13:56:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mDW0Nc0HuWKyxyR3BjBtYvp7EbNZk5OICfjFAwZNC2qxSoxWNgU5jOFSCPyXG6o73BCJKn/PDs1sx83KibSyY64w4G1pfDpmZvxxv060S+830qre2P4g+X3FoIWxIWFll9X0eODphBs6jKOWdo8XKkZ14lWfl9dv6MdojZkSRRRiClqgFSt5EcBHfbLMeeMGC1BgjsbNxIghYdOzjaIntQnURq89NPoeDoDY8aWMFo+2Q+9WtuP40qm3PD/xyVmTpeRobWyMroCcDArYnuv4E5sBiopaBkF/HxI+5QEY5SPyf2iQOoArWscwvRNcKnXPJmrEHdEgX00VMzro9Ut4fg== 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=Hv25ZEtvfHsv+eW926U9fEX/JnAWXoYil4FcSLgeL9U=; b=V3D3NhXD4gAL1KmB1CZcoOU9UVzN30Bd8lCIluG8OcfwcIkI3BNOyQ27iOUV6eB3+emwMPO3kaFTsGxqd/fQ8LozLharfajAXFgvwCNf9mzWxE2oT5uHKfz9/BZngTPrA9h4dsTuOItL+OqseSUH0f2m1K36bJm04WGG6vecGjKyQp3+WoXZoaJ5faJ1pI1LaesKmJTUXsrKLyVU3Trs6cCkUXQpjUF02hJ74Nt9Zi1HvFLRe8Q8uJV9HBuUPLJr7kSX0rNamIYbP+r0P4SQJE9S7VUNBsSAypYgIfBib2Hg/OtbYxNAVRcZWIUPa1zvSLRRpA3T9UHBA/eBHtVbGg== 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=Hv25ZEtvfHsv+eW926U9fEX/JnAWXoYil4FcSLgeL9U=; b=DiBLTkQcFD9fNh/dcDeWShsQV6MNKY1wwamSmvtUWi0uvgcUqJ1RIcod//13Tp9FBO/u8C8d1wfisFJcJNB/nh8RhIrq3BSLe/WGbY9lmYXwedr20lh6WvY816n6nx7ijod3GQ4nDG3l0PBuw/xvd7YJprAU8WEGkPcNIWKEhr4= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by PH8PR10MB6622.namprd10.prod.outlook.com (2603:10b6:510:222::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.31; Tue, 12 Sep 2023 13:56:20 +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; Tue, 12 Sep 2023 13:56:20 +0000 Date: Tue, 12 Sep 2023 09:56:17 -0400 From: "Liam R. Howlett" To: "Paul E. McKenney" Cc: Geert Uytterhoeven , 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: <20230912135617.dnhyk4h5c555l2yg@revolver> Mail-Followup-To: "Liam R. Howlett" , "Paul E. McKenney" , Geert Uytterhoeven , 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: <20230906152325.dblzauybyoq5kd35@revolver> <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: <62936d98-6353-486e-8535-86c9f90bc7f4@paulmck-laptop> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0494.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10c::25) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|PH8PR10MB6622:EE_ X-MS-Office365-Filtering-Correlation-Id: b12e53f7-099b-439f-b79f-08dbb3980ade X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YWk5muan3QxNZrysgri/AIISThLmRxc2zMjhSrVvAeUguMQy6QCN050KWjy/twHVxzqYMtBbQAq53rauvrGfgEpFrRSBQueR6OiwtmDm5IlmzNOuX2vN7yo+GAlFh+7BW3lJSnIJBKHATeECBuvutNDZxdz1tWgqkyzf6dU+jBfYRWSwZmT/6lRP7B0Qu5S6tYQBs/KfujnkpdatspJLBfro026OS89BcG1urju4yZjIPmBZsSAG4HefDxyfzRaxORcqI8mA5Rl3yy5zOWTH0Z81NlruyJclckIYyPLCsxVyETP2JSSkdLgo0rKqjXJUzW73+thm0lnZFRrviw36D749GN+cIXgbGKj7pjESZtwM6nLYk2gy3X1EzK2Bd+/xx9ANEuI8xqJKn3i3ViYpL62Au8GL1W2550zYMvTAUQl64wGSOoGgtUFWC39VDXVxWI00sHdkf+Dkxh2GeL1jX0zgCKhr61j+10phaUrLLm7mKE7q3NFn54ejEIcewIBN2X6F4WEXF9dHibmfGkmA9jPTWYKDh4MWj7+AmnZNFy8= 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)(376002)(366004)(346002)(39860400002)(136003)(396003)(451199024)(1800799009)(186009)(41300700001)(53546011)(6666004)(6486002)(6506007)(9686003)(38100700002)(86362001)(478600001)(2906002)(6512007)(83380400001)(966005)(1076003)(8936002)(4326008)(316002)(5660300002)(8676002)(66946007)(66476007)(6916009)(26005)(54906003)(33716001)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dFIzUnMzRCtlMUpHc0RDTzNITWVOMFdIS2hlbXhNTlZla0ZycjF5djFIdllT?= =?utf-8?B?b0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MS-Exchange-CrossTenant-Network-Message-Id: b12e53f7-099b-439f-b79f-08dbb3980ade X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2023 13:56:20.3058 (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: bGquC8Ck8TRL11cosC2Mc2Wp673261mhtXBfGVItGyFLaVSP1jNw2IGrqqmmvfrx2GnZHA3Hh7tNJOsfjldImg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6622 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-12_12,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=657 phishscore=0 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309120116 X-Proofpoint-GUID: 3NKMgGMMgE4_Bs82JLoCsy2diqI8bQs2 X-Proofpoint-ORIG-GUID: 3NKMgGMMgE4_Bs82JLoCsy2diqI8bQs2 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 (lipwig.vger.email [0.0.0.0]); Tue, 12 Sep 2023 06:56:54 -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 lipwig.vger.email * Paul E. McKenney [230912 06:00]: > On Tue, Sep 12, 2023 at 10:34:44AM +0200, Geert Uytterhoeven wrote: > > Hi Paul, > >=20 > > 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 wro= te: > > > > > > > > * Paul E. McKenney [230906 13:24]: > > > > > > > > > On Wed, Sep 06, 2023 at 11:23:25AM -0400, Liam R. Howlett= wrote: > > > > > > > > > > (Adding Paul & Shanker to Cc list.. please see below fo= r why) > > > > > > > > > > > > > > > > > > > > Apologies on the late response, I was away and have bee= n struggling to > > > > > > > > > > get a working PPC32 test environment. > > > > > > > > > > > > > > > > > > > > * Geert Uytterhoeven [230829 12:= 42]: > > > > > > > > > > > Hi Liam, > > > > > > > > > > > > > > > > > > > > > > On Fri, 18 Aug 2023, Liam R. Howlett wrote: > > > > > > > > > > > > The current implementation of append may cause dupl= icate data and/or > > > > > > > > > > > > incorrect ranges to be returned to a reader during = an update. Although > > > > > > > > > > > > this has not been reported or seen, disable the app= end write operation > > > > > > > > > > > > while the tree is in rcu mode out of an abundance o= f 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 lookin= g at > > > > > Tree RCU. Please accept my apologies for my lapse. :-/ > > > > > > > > > > However, Tiny RCU's call_rcu() also avoids enabling IRQs, so I wo= uld > > > > > have said the same thing, albeit after looking at a lot less RCU = code. > > > > > > > > > > TL;DR: > > > > > > > > > > 1. Try making the __setup_irq() function's call to mutex_loc= k() > > > > > instead be as follows: > > > > > > > > > > if (!mutex_trylock(&desc->request_mutex)) > > > > > mutex_lock(&desc->request_mutex); > > > > > > > > > > This might fail if __setup_irq() has other dependencies o= n a > > > > > fully operational scheduler. > > > > > > > > > > 2. Move that ppc32 call to __setup_irq() much later, most de= finitely > > > > > after interrupts have been enabled and the scheduler is f= ully > > > > > operational. Invoking mutex_lock() before that time is n= ot 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, either= . So > > > later in this email, I asked Liam to put a WARN_ON_ONCE(irqs_disabled= ()) > > > just before that mutex_lock() in __setup_irq(). I had already found that this is the mutex lock that is enabling them. I surrounded the mutex lock to ensure it was not enabled before, but was after. Here is the findings: kernel/irq/manage.c:1587 __setup_irq: [ 0.000000] [c0e65ec0] [c00e9b00] __setup_irq+0x6c4/0x840 (unreliable) [ 0.000000] [c0e65ef0] [c00e9d74] request_threaded_irq+0xf8/0x1f4 [ 0.000000] [c0e65f20] [c0c27168] pmac_pic_init+0x204/0x5f8 [ 0.000000] [c0e65f80] [c0c1f544] init_IRQ+0xac/0x12c [ 0.000000] [c0e65fa0] [c0c1cad0] start_kernel+0x544/0x6d4 Note your line number will be slightly different due to my debug. This is the WARN _after_ the mutex lock. > > > > > > Either way, invoking mutex_lock() early in boot before interrupts hav= e > > > been enabled is a bad idea. ;-) > >=20 > > I'll add that WARN_ON_ONCE() too, and will report back later today... >=20 > Thank you, looking forward to hearing the outcome! >=20 > > > > Note that there are (possibly different) issues seen on ppc32 and o= n arm32 > > > > (Renesas RZ/A in particular, but not on other Renesas ARM systems). > > > > > > > > I saw an issue on arm32 with cfeb6ae8bcb96ccf, but not with cfeb6ae= 8bcb96ccf^. > > > > Other people saw an issue on ppc32 with both cfeb6ae8bcb96ccf and > > > > cfeb6ae8bcb96ccf^. > > > > > > I look forward to hearing what is the issue in both cases. > >=20 > > For RZ/A, my problem report is > > https://lore.kernel.org/all/3f86d58e-7f36-c6b4-c43a-2a7bcffd3bd@linux-m= 68k.org/ >=20 > Thank you, Geert! >=20 > Huh. Is that patch you reverted causing Maple Tree or related code > to attempt to acquire mutexes in early boot before interrupts have > been enabled? >=20 > If that added WARN_ON_ONCE() doesn't trigger early, another approach > would be to put it at the beginning of mutex_lock(). Or for that matter > at the beginning of might_sleep(). Yeah, I put many WARN() calls through the code as well as tracking down where TIF_NEED_RESCHED was set; the tiny.c call_rcu(). So my findings summarized: 1. My change to the maple tree makes call_rcu() more likely on early boot. 2. The initial thread setup is always set to idle state 3. call_rcu() tiny sets TIF_NEED_RESCHED since is_idle_task(current) 4. init_IRQ() takes a mutex lock which will enable the interrupts since TIF_NEED_RESCHED is set. I don't know which of these things is "wrong". I also looked into the mtmsr register but decided to consult you lot about my findings in hopes that someone with more knowledge of the platform or early boot would alleviate the pain so that I could context switch or sleep :) I mean, an mtmsr bug seems like a leap even for the issues I create.. Regards, Liam