Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4594962rwl; Mon, 3 Apr 2023 07:10:18 -0700 (PDT) X-Google-Smtp-Source: AKy350a9Z8a4SDfxc/ZPocggErK2niXRtCCOO4nPjOklVv/OPUAdW+wuR7qNDlVzCRDiqJUxG/0c X-Received: by 2002:a17:90b:4b87:b0:23d:1e5f:eea6 with SMTP id lr7-20020a17090b4b8700b0023d1e5feea6mr40922958pjb.24.1680531018215; Mon, 03 Apr 2023 07:10:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680531018; cv=pass; d=google.com; s=arc-20160816; b=ieYb7vcWYGsTRIJIXSH2/6X/hseuX/PiudMR1izfHftHo8NE23tRsMgrBQq39U5pfI N6oIXj05PmLjrDmHA1UKZsbfLCJJ6yjfAREa+Qbd0SSyWbEUN6WLIqa+tVcGJlFM8U7x 1GwpjOfQDW5EzJElgzZai72yq4WlXeMfv7m0vMOXWF2DfEmV/wTSiN9EkM1cF9Lg6msr vyo96uMtk3JvsVHtKCdFgACHoW5ERroAq98J32C+iN/cYnJgAUpncePnGRVwF/wQNNec RGDDxYR1xivon2MKyDLrMo5xih3oFecX/zPtWna0QoIFlQaZvQU1X4cFDszP3zSM81kh lZeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5H2S0fVMCAsQBlLaIVdijR8w/I78c5sqqrtKj8UoAk0=; b=tHxpxPiyBaintHF9zKu6WLoqw8Tza+H4Zdd2lZnH6PKCV6IwyGwb62sYdvGEccHagl 0xTLYp/HksB/BCy+MfJ5D0cXpc8dx07a8J7a9nzi/+LoUP8FWD3FGzvF4tRK3cpDbSvc AkucLeYbLN7yO6RRr+Xwz2wFTDdWcSfc3hrP2UkK0jSNZKOJNZLPSEvPPXAI6NG6NsLb fMzCQ0J28YpLygkwhtDDEUWbstmHzfYpA6aw5pChf0mZPa6KbpNS7tF/SECnH6uWwKR8 ZIF/Y86X8HkhsJgLLokJG5u5/h1gmUMaE6GRpAuPeFBS5SpAbKPl6LXViRMEEyhQWEG/ ThVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Rx+fxQbI; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js16-20020a17090b149000b00237155f2303si7829785pjb.136.2023.04.03.07.10.01; Mon, 03 Apr 2023 07:10:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Rx+fxQbI; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232739AbjDCOC4 (ORCPT + 99 others); Mon, 3 Apr 2023 10:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232749AbjDCOCz (ORCPT ); Mon, 3 Apr 2023 10:02:55 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2040.outbound.protection.outlook.com [40.107.247.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C42510243 for ; Mon, 3 Apr 2023 07:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jJXNAqivDrGu/o/tDKb5TUIop4vluvWgjibDTvx8B8tbyhcsgLHs1l8suikITX1uRk7EvFgOUqv874mPcLO4SVU4ZtvJrNbrE4gMH7z0vawLSH18UAjTP4gQb2Rt7sSk61/u6IIt2e+bM+GjOA348an47PI3ax00OVaa79waAk366ScKvvdHornuX+guVkZpbTSo+VdDHXkTPr6ZH7BBbJ/ivEhQ7ed3zJZaPGrXaNRWOVTJ14hv9K9lcawBDkwtGctkdwbxUzu0kAI/ruOF29WmL3j155kLrCZG8fUtEqdAbBj/c6pCEGJrU2HtxvdiZB3bt5yTtz+s8owNom9S2w== 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=5H2S0fVMCAsQBlLaIVdijR8w/I78c5sqqrtKj8UoAk0=; b=JnemgycHnzUquLaJGZyxH2zea8b9s3OVt11Yn8QbcSwHoN/UEY7wSK7+5M+WWf9GRTKtSBoVZ2wUYwMysjksKwhrDshVTKIMlfiYKfWWeQuTU+VWkSK8NfCKnOlZ4yOrDKhpQi/THfifMl9fxSB0uMiv9B3YN04rGAj2EaA6EpFbi+aNNy1iRC+mfXggHRxHBPhNDK5I+cJ6gKyHE19n9Mkv7Htag0126F1R7CrEW9mSi6pStjU1/quL616qV/4hpOofDV3FeFZ0nWCjDDuaFY0ATUmRbp8MUzZtsOx868oWfPvv60GAgUw25cTKCZ4i0k9Aheg1F7qS7J6Rj20IVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5H2S0fVMCAsQBlLaIVdijR8w/I78c5sqqrtKj8UoAk0=; b=Rx+fxQbITMD1H/1lYtzExuaxP8OQd76gJ/7Jv3bnIennEjoriIcS+aIHezuAzMcIRba+c/Y892xu5Y88sKk8eQl+JlsKLqXDykKJ3x867OW4RX7Se+XySoygl1RWoMkQW2sP+9s8A59WyV5l2dOAiqpFLiSb0wq7ObDMDrz5MwQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by VE1PR04MB7390.eurprd04.prod.outlook.com (2603:10a6:800:1aa::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 14:02:51 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::dfa2:5d65:fad:a2a5]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::dfa2:5d65:fad:a2a5%3]) with mapi id 15.20.6254.026; Mon, 3 Apr 2023 14:02:50 +0000 Date: Mon, 3 Apr 2023 17:02:47 +0300 From: Vladimir Oltean To: Sean Anderson Cc: Li Yang , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Scott Wood , Camelia Groza , linux-kernel@vger.kernel.org, Roy Pledge , "David S . Miller" , Claudiu Manoil Subject: Re: [PATCH v2 1/2] soc: fsl: qbman: Always disable interrupts when taking cgr_lock Message-ID: <20230403140247.ugb23hqrha2kjup2@skbuf> References: <20230331151413.1684105-1-sean.anderson@seco.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230331151413.1684105-1-sean.anderson@seco.com> X-ClientProxiedBy: AM0PR06CA0073.eurprd06.prod.outlook.com (2603:10a6:208:fa::14) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|VE1PR04MB7390:EE_ X-MS-Office365-Filtering-Correlation-Id: a6f92b4d-0238-47c8-9541-08db344c1cae X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aCYmdca4php/7c8w2rL+dHyXwIU1RY38rT+FeUIp3D0Xb6OQSFdf1IcPDt7Em0tl6KjskIPvV2oPu1VZItiRPBA4KefJSQF64Rru6JnFgrFN4Q9uO1IhUg5OLHtGhaPxsvv9i2QKhO1cvmJApCQ0doZgjlKbvra56nJHtkInPGjfglhxmyXm6/JQ2vtYATyOHYyGibSyJladMP+de5J1ecwTbbQNHAFmM0jS+aLeBmVmh1yaSfuvdpA0e6++1vzf5CbKwcMl7EgBRiEQD2KCYyRCGRerIucSI0LbKWCBeVm6jwC/i1JDO7aua3Ce5ZIXnoW/r3CKLl51t1EUD2mNsJyTOONXDF3Sb5Jy0+a6zfXgONIuruoz6IXZJabf7A228pBgK3UIuMKBqhgKIpk0yEdeA2Ody0rNVqCRn/LUeJUcvYf7Pyfh6WoGIYJmia/OCgCtbKNqploaonW4BHeXeskK5F8yCBiWeQ7pI/8vEM8aDtuOk+t5L43SVnp0Md6gEeo+tTuyzGglSvmRs7VtjnH/ktKGiiIL7teaSoX1NT+BXI+ZzYCK50Xb8j0Wz7Nz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(7916004)(346002)(136003)(396003)(376002)(366004)(39860400002)(451199021)(86362001)(33716001)(2906002)(186003)(83380400001)(6512007)(1076003)(9686003)(6506007)(26005)(6666004)(6486002)(8676002)(4326008)(6916009)(66556008)(66946007)(66476007)(41300700001)(5660300002)(38100700002)(54906003)(316002)(478600001)(44832011)(4744005)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BiRhz0exS8Hb6hX9pLvzDrXifDfi61ovIO8JY+nyHrFCtiOVY/nPFvB5w2m5?= =?us-ascii?Q?Ql7AblGTArxqKQtxhtpsvRsOIPeXQJpXhrRUunHpeFKJAhNPHIEAAMunW+qz?= =?us-ascii?Q?1gbTyOH47kBY/QUNLdNl3I3xqpg/tUcI3Jve+VZA2qPnBUV+xZMeLzmYp6ak?= =?us-ascii?Q?zyEBMzf2oMhJs2W+WNtt/HJcSFuP5re5mmTJ9IhZwlALfw87B++uol0BVhyc?= =?us-ascii?Q?TS1I5mpSBCuBTEpmPmkvYZi4C7MILe43tOT11sNwDJmEEng9K2q3G8tm2Gug?= =?us-ascii?Q?EjzZl+u9Tvzdl5gFS7/SqnX8nZBUHWGcG9swj3/gJJa3YE7LHxRCZnzfSDpv?= =?us-ascii?Q?RC4pwwDpX+w7yyI23ta7MAH0COIuHFFaoUnn78k840uGr4gReSTOxPw8r9gn?= =?us-ascii?Q?PCJS8H/pbBGhaIQztTUXDMkqlxmZrBNnyNisQbSO2zicJXQOdvukbVUNTF6a?= =?us-ascii?Q?JdfK0JBd0DsLaoH5pbAkbMZ2/0eTyhovReUvJ0uKOi0pVVfmr37HqXhikHp4?= =?us-ascii?Q?9TFnOpsX4ONonNdKYdtzp7w7HVbqI1yZBrpHaYcV3CjgN8bA4CXkGFMSBxjw?= =?us-ascii?Q?Kjm/W8zXWwm9UAzC685U00qbRD4mDapoujeAuMFctW9YwNn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gght+38Gt5Zysb3KDe/fE4dM+ATAPdUACzGoXUl?= =?us-ascii?Q?NOmXZTG2+7ZRQxjh7WdI6XzjiDC4vtFus4u+UT4BibZpa5fSrxVhJgRd707p?= =?us-ascii?Q?Pw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6f92b4d-0238-47c8-9541-08db344c1cae X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 14:02:50.8326 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Dnuql5pQVrnlKVy3h6EK43VEsg8iaaxC5/9hwF0ENRCqw/26cyckfe1Ji0mEI07MYTx1s/SS5rlnAcc6Jt5UxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7390 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 31, 2023 at 11:14:12AM -0400, Sean Anderson wrote: > smp_call_function_single disables IRQs when executing the callback. To > prevent deadlocks, we must disable IRQs when taking cgr_lock elsewhere. > This is already done by qman_update_cgr and qman_delete_cgr; fix the > other lockers. > > Fixes: c535e923bb97 ("soc/fsl: Introduce DPAA 1.x QMan device driver") If you've identified smp_call_function_single() as the problem, then the true issue seems to lie in commit 96f413f47677 ("soc/fsl/qbman: fix issue in qman_delete_cgr_safe()") and not in the initial commit, no? Anyway, Tested-by: Vladimir Oltean