Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5726136rwl; Tue, 4 Apr 2023 02:43:41 -0700 (PDT) X-Google-Smtp-Source: AKy350ayu02ysL9LMeF78W7+KjHF2EfLpzu+YOB7QmcN2L/QEYUBA/2YBYNJo8oj+0xWt+Wh+HmS X-Received: by 2002:aa7:d7d4:0:b0:4c6:10a7:c422 with SMTP id e20-20020aa7d7d4000000b004c610a7c422mr1876870eds.18.1680601421408; Tue, 04 Apr 2023 02:43:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680601421; cv=pass; d=google.com; s=arc-20160816; b=FHazasQEt16oIkUo8gldGiNo7d2KJp8G+51odJpTMWXIlFSjCuApbhId4O13uE8Msv 5zHsxZaipAYAeHmxAhRYl7cRJdBdxWzJNQL39nk0JOwgwLUIPJpO8QIP/dtEbMB+q4f4 hEWMbCSCgR5zIu1FKPacQcR1OKCxlXmPobcn3tYgEZ2NZ1hhNkaTyS9hz6AUWFTk0aJX T4uBz1ap1994ZnNsI0d230pp9R78snn9PiFpFe/a3dds5toi8KJOzd2Tsp6sR+pYqrWY iFwWgp7BbnTCiTsAhRBDyAEnoHLRMo4K+do68Sn9w1XksWEKz2Vf+1s457yOasMdjNE4 QBUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=v80m2RcHj4jEuBgv+LeEQzRouf1BoCH1zYfb5FzVVVo=; b=asqZgHokMZRw8wlecnxgGow1NhbEr/fMt8FAOQpKxWaMC8KAaAs1ERu8tmKJfZZEht si1k62zLmQT5Tqo8XGGP4dgpVLLLNOa65S/Zn/m1o1na1kusKJyaMzQAFQ8dO15qKBCn SCESGMkzmL3bn6KWGpOqqKCFqUU+/8MJ4zUpc07OejmuPktRblV4GxNtVn3f1Hplulkw WrOyUpnJ1VMwZHAJcZzPe0+mtQvwrDv5H7O4sD3Rujx9epa39LnaFqcUbjJW/koIO7k3 iKdPD6bOb+0zRWlET0IzEZ4UPJsyRRPMqoB9wscaf4UUKeMnObJn7rHhB/Lfx8nTHdA7 DYcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OBZ8CgLA; 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 d20-20020aa7ce14000000b00501d50c5d7csi8973851edv.417.2023.04.04.02.43.15; Tue, 04 Apr 2023 02:43:41 -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=OBZ8CgLA; 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 S234130AbjDDJgG (ORCPT + 99 others); Tue, 4 Apr 2023 05:36:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbjDDJgF (ORCPT ); Tue, 4 Apr 2023 05:36:05 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2077.outbound.protection.outlook.com [40.107.14.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFE29125 for ; Tue, 4 Apr 2023 02:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lfLWXUDnDGKtl6AHYu3ZNc1V5G9bjsxkkAbyCPnY0vmUOYjxPvOvLJoe/BsvJVrqsXazYmiE4glFUS+7a5TxX/orFArG+km8UjqA/qIrHkui3BzKvuljfmu7E2hR4fusOmsx3KQPDdfkoX/h80tfEoe8hQGBQmYHViboSKoT5ZL3r72aTwZoj3GOeaWlYFhNWcR4S7bmDbxjO9h2ayrZi/U5PJ1IYvKosOP7dC1p9lcbMRemuDLr2/1mSORbGgTGZs1tahiPFYTM93J7ttIj3gAWoZUAT94+2due96nwej/qvsyDkTo1hjzsL+0VbHzXaBCjwr0Tn/z8Q7Cx37lZbA== 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=v80m2RcHj4jEuBgv+LeEQzRouf1BoCH1zYfb5FzVVVo=; b=CVVsJgJK5qP76IlSA97AlHLQBF/JvXw4FurgDos/1wc5/r8V8zTu+oqtg+OU8yxB3LtR8r69o0C3gv1nP7F5BHo4Hxh1PUrquUuCXPdMPgF1WuMAAzshT6k0MNVwfm2jQrTINp2PZ4nJ2OQsDpVKrk8hhYcfUGRnTCQ4fXMaGxpklYV4fWql2JPvtBb+Jan/buYUmJM0LNYxdYR5YmwDqQmXQn7KXBlDzNOgBtocli0jiIre5Co7RJU6oCpUvnqpWmQfHgup/4+hmgYuTy7nVk66nHPtQiMXvXXkvkSkCiieRpMu/51iPl2lQV4jjySwPOwOFkujl3yiAcC0TOA0wQ== 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=v80m2RcHj4jEuBgv+LeEQzRouf1BoCH1zYfb5FzVVVo=; b=OBZ8CgLA15OCabnuC5ha/yvnbyoM+olvE3HqMYKM+9r9AaKAcySTRzqi96sjpmLFUYyqU8W2ebpZJCsuosbYwLnO/QOZ6W8ceZ+1fVVrJEynsG7p5EBChUItQenSqIVjfuATVNKRPZo09kHCwwew+Z0/mv4rACRKTBD9Cb6JOyM= Received: from VI1PR04MB5807.eurprd04.prod.outlook.com (2603:10a6:803:ec::21) by AS8PR04MB8932.eurprd04.prod.outlook.com (2603:10a6:20b:42f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.35; Tue, 4 Apr 2023 09:36:01 +0000 Received: from VI1PR04MB5807.eurprd04.prod.outlook.com ([fe80::f3bf:4013:3fe8:d452]) by VI1PR04MB5807.eurprd04.prod.outlook.com ([fe80::f3bf:4013:3fe8:d452%6]) with mapi id 15.20.6254.035; Tue, 4 Apr 2023 09:36:01 +0000 From: Camelia Alexandra Groza To: Sean Anderson , Leo Li , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" CC: Scott Wood , "linux-kernel@vger.kernel.org" , Roy Pledge , "David S . Miller" , Claudiu Manoil , Vladimir Oltean , Sean Anderson Subject: RE: [PATCH v2 2/2] soc: fsl: qbman: Use raw spinlock for cgr_lock Thread-Topic: [PATCH v2 2/2] soc: fsl: qbman: Use raw spinlock for cgr_lock Thread-Index: AQHZY+OE1RJmUmy5N0SD/8fbwuxDUq8a6ZaA Date: Tue, 4 Apr 2023 09:36:00 +0000 Message-ID: References: <20230331151413.1684105-1-sean.anderson@seco.com> <20230331151413.1684105-2-sean.anderson@seco.com> In-Reply-To: <20230331151413.1684105-2-sean.anderson@seco.com> Accept-Language: en-GB, ro-RO, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR04MB5807:EE_|AS8PR04MB8932:EE_ x-ms-office365-filtering-correlation-id: 7dcbab4e-95cd-4ff3-52ab-08db34f00092 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: zn6uP8SPbdxY6yTeCMQiH/gL5LQla3rttR5e+kF4CUoM2aUqnVj0d/ZpJJnlMQKRv1IXz4CDueFZGSpabGWxrtQkF+rRioOl0pf7Jr3ZSsMFXhkBdPxxHC321DxM/xHs2Ys1PDxob95x5JpQqyj0VdGttD1qT8RjN1TYlJwzRIWwEAZT9GDz0hCko8DdFiHsqkImEARsfHsf92UAx0CjL4CiCuuTZD5I0yQbPog6rDSMUDnXavOgAx1QwFFVLRHW/40YgHKIQJcGFOTCWy+yXLnNp050FDSRvEDaDPLZjKOA0c1iEqInlI4kKPDTuK1df0Hk/TdLY3PchAaapR4SkPBFq1jN6Z+BMHUjMqZP9Li8bq8ySpTSpik5H6j68bj2Nol5iufdLTDJ1t+FGPLyOJ9o1n3EGUuzgtOJSkXOCIfa6rTRGxvbMz0mYb6veKGWkf7ym0G4B89GE94J6VEEARrY4UN6AojsJ1iibSbLOF0vGnc0zHqlgI8UH521/t3HTyjSoCtaHLh4wx16jRG4iSuyILnp9ePFeXFFE3RTMNyRI14QHPZ3+AtIU73PW8NKH6x57kK9scqL4vmyUugmtTt/cODp/UYWHRK2rCYiuoI= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5807.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(396003)(376002)(39860400002)(346002)(136003)(451199021)(478600001)(316002)(110136005)(54906003)(52536014)(8936002)(5660300002)(38070700005)(86362001)(4326008)(33656002)(2906002)(55016003)(8676002)(64756008)(76116006)(66476007)(66446008)(66556008)(122000001)(38100700002)(41300700001)(55236004)(6506007)(26005)(9686003)(53546011)(66946007)(966005)(83380400001)(186003)(71200400001)(7696005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?17p2dJ/RGF7uZb0P9RGFhLo+h1s3/8bvKwvzluH2yFqq1D2yM1BkStHvYynm?= =?us-ascii?Q?eyM0JmCSbNrKhzPOVpVJF+PiwLHPMhEHVXOoGNNWIZUZ1QARxFMFFXRd0bfi?= =?us-ascii?Q?Nm08AUgIKi7Cp/zV0WLjAybm5G0/riRMiskLvgOzXWt3tCvTdlKezI+Re/Qw?= =?us-ascii?Q?UD4XmiXcNmwb5dUyhTWY6xnt7+DT/YLCQJRls55u1eGITV9sJsnSZrOV94sk?= =?us-ascii?Q?Ddu15W11YLzWF+x8LlNWX7NpIHX2r+Ban1yklhfsVe6ClhTTwVmQ3td7tD71?= =?us-ascii?Q?hX8WL93OM9QQ+vp27rcGxSKhDKgu08pSadg5FTB1275SZ62Xe/91CbmvTgNQ?= =?us-ascii?Q?6Vo40ZoHh9pqpQtrfHiM0KH/YUJk7ap/rPphZgRym9RY9Gffs55iRdHZqsBE?= =?us-ascii?Q?SJHJrSxvv7ZnWekRqz7UECiB9WoopP/NrWDyuU6voBE0hUZS3d+Ocs9L0CfQ?= =?us-ascii?Q?hfjtIfZNW1oH4uWY69jYiV5R3E09LZfVoP7T4ACgNvb8K0NSocaps/rqAg6n?= =?us-ascii?Q?WwDyN7pWvdjPFRK0MeS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=?us-ascii?Q?epu5dLFNm2RJKiQzoTrJ0MH9y6FruRlNzdKYRTVsZZi8Uder9YKXlfGxnw3k?= =?us-ascii?Q?cL9tcrDpDOESUMGi5l9zeXcV8Ik1yKkdaaiTqr65Qcn+fcXgTqvsw+hjY70f?= =?us-ascii?Q?TDNrnAONfKl65CIKr4R0Y2nPv+wBTuUyhILZ4gyK?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5807.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7dcbab4e-95cd-4ff3-52ab-08db34f00092 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2023 09:36:00.8990 (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: ZQb0kIazjDo2V4eAyrgkt6Cu4R5CgqphsTCEOmVW0RFqbM42zpRBlW6skRumVSDiIWu6i+PaY5vRJqJcP6CZXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8932 X-Spam-Status: No, score=1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 > -----Original Message----- > From: Sean Anderson > Sent: Friday, March 31, 2023 18:14 > To: Leo Li ; linuxppc-dev@lists.ozlabs.org; linux-arm= - > kernel@lists.infradead.org > Cc: Scott Wood ; Camelia Alexandra Groza > ; linux-kernel@vger.kernel.org; Roy Pledge > ; David S . Miller ; Claudiu > Manoil ; Vladimir Oltean > ; Sean Anderson > Subject: [PATCH v2 2/2] soc: fsl: qbman: Use raw spinlock for cgr_lock >=20 > cgr_lock may be locked with interrupts already disabled by > smp_call_function_single. As such, we must use a raw spinlock to avoid > problems on PREEMPT_RT kernels. Although this bug has existed for a > while, it was not apparent until commit ef2a8d5478b9 ("net: dpaa: Adjust > queue depth on rate change") which invokes smp_call_function_single via > qman_update_cgr_safe every time a link goes up or down. >=20 > Fixes: c535e923bb97 ("soc/fsl: Introduce DPAA 1.x QMan device driver") > Reported-by: Vladimir Oltean > Link: https://lore.kernel.org/all/20230323153935.nofnjucqjqnz34ej@skbuf/ > Signed-off-by: Sean Anderson Reviewed-by: Camelia Groza