Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16472763rwd; Mon, 26 Jun 2023 10:24:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ683Ugzcz4bv5rRyJ+KCmBVczGkLKSmKVBsdJvzWdtmjU5EeR5r1MRDXKfpT7Ikv6NX4iaq X-Received: by 2002:aa7:d892:0:b0:51b:fc05:a6aa with SMTP id u18-20020aa7d892000000b0051bfc05a6aamr5126720edq.42.1687800271618; Mon, 26 Jun 2023 10:24:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687800271; cv=pass; d=google.com; s=arc-20160816; b=KP4bgJeblXkeysgB7vMcgMupPWk5COGVi5nu8EfUOildXnhQZbOwaGpv5Nz+OjGpPk te97awDVFqgxaTXVFxtgJc29LvEAXJ+r3/Q23V0CQ4KtGvy3i056pBMRph4CkaT79KOI RZdE3DVDvIv3bHyMTxmkuEue0zJkPJFb7KqMFvmiNY7VmR9Fj7GJwYDyCzPPx9eU4SlZ gfDHoCAE22T6z9bNZLonanLzmi28HiWFjrHSd1FAwLy9llwCtP7bFhijF9OX9iiYnGr0 AUk9vWHZLNZCtzndkoPJKVF8kd61HTsmVrDFwLw8FGT1KEslOfulo9Cx5nBABD2bFwZB GwLw== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=PjTLAYbFaQZoVDsQ5C7PM6CRBJmLCDoCezynJf4iiIk=; fh=5XxjNA9J+GykCqVDPGUWbNfXKcziXd+lyJ2XOU9hx5k=; b=zlsa+gAR5Pf4SOGb3K/3jWndntzAItJdT0Bls2F/16oYr2O4J8KztsC3UuYPvkmQuF uJEyFJvcTkARUuDwhlPMnZEkaCN+dgTTs0ZvxYVfYSMEvfGNP+t/F6MkJgRj056C9P/s jmEkTqidqmIw3aok3jmSJmx/Cthu8WMO0CAATvrfE3y56nVeljoaEox6YgvN0bKBMypx wW8LpRmVGgQGDnGWeepw6X1ItoQrdzejcpaU+z8opBGyx5JSC7NqxcgPsOS+1/jJI3+f dEjmBBVAqK8rb6Jt3wAQW78g/FZBd/wAFnKVmWhy02YoNyaM6yoRbfdfP3Mk15Q4oL1z Kg9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@connect.ust.hk header.s=selector2 header.b=RTX+pLti; arc=pass (i=1 spf=pass spfdomain=connect.ust.hk dkim=pass dkdomain=connect.ust.hk dmarc=pass fromdomain=connect.ust.hk); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rk7-20020a170907214700b00977e6c403f6si3213970ejb.78.2023.06.26.10.24.07; Mon, 26 Jun 2023 10:24:31 -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=@connect.ust.hk header.s=selector2 header.b=RTX+pLti; arc=pass (i=1 spf=pass spfdomain=connect.ust.hk dkim=pass dkdomain=connect.ust.hk dmarc=pass fromdomain=connect.ust.hk); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230133AbjFZRFn (ORCPT + 99 others); Mon, 26 Jun 2023 13:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjFZRFl (ORCPT ); Mon, 26 Jun 2023 13:05:41 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2105.outbound.protection.outlook.com [40.107.113.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAE56E75; Mon, 26 Jun 2023 10:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A+rTCkvGW/qSfefXVmJ+Gn/uH7Ml8fFg9Ai14i344utuHQ7+dYxQZjEp2rMdOjKjsMjEGdOTJ5hWKaSnnigqxiFT9CBGK3l1SIfSyLZrlA0/dsXAeXWgFwfob6sFjBHJjw5ubZcB7bDmFwwSX2XGMSwK4HjIF9RecX0s5pRdVzKXY8GoX+EXK81SIeQsq/6yc7xLhOfajrCOyKBV78NNq/vezl9U0lQQBSd7HAAaIotC/6HuPml+vgKtBpZJfUK4A0JntR6yQf415Mtrypmnk1jKOJc65VUzEg4xhnxb5yK0YijQZLJvIE19RZd02v31XSTGHmEEwKCqu/34tcmFTA== 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=PjTLAYbFaQZoVDsQ5C7PM6CRBJmLCDoCezynJf4iiIk=; b=ibUMCKdnSvM4x84SYxtOC144E9RrGJoPF/GLteqn6aBAJlQAoeiTdT4K81+RPhcmtwVpOnSWJ5OkYnDV/N1VY+WWqT8Tt/QSkk5Mh6hylqNJaORHSFmmHs32zUJzWBSYdIOxKI3jTwBxo7DCdH3CZ5xBhOahBFmwb9EzesJRKjlRg4KHSy+UfgQRXd1byVNI16PUpTqC9E7kwuQLeQ+LujKr0Q4IJPG67TQ881ssyi42e7zbfeqZFH5+0EMcymweth/Nb7XuvtRDgN4QJHCgTDhlZReh4YTjEsHctf3+psLHCdrUzs0gbZ3KawZArkWuvHMhlgQIWdI9beBW/rsYug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=connect.ust.hk; dmarc=pass action=none header.from=connect.ust.hk; dkim=pass header.d=connect.ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connect.ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PjTLAYbFaQZoVDsQ5C7PM6CRBJmLCDoCezynJf4iiIk=; b=RTX+pLtiT8MeCWyjRRZMFknQHuROq8fqt+ppvltB6/5kjp1SGlqJmkqfO5dccXatfCsnF1X4dyBCkfqiS5SInd3hsAAmuxnfOYu4nPL2R71HABfY+3ZrQAqo5MiuRJqtPB2a/Cli+LTLqMqAsu+8W1TxbNQ6KTvHoiO6lf0HLrg= Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:b7::8) by TYCP286MB3316.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Mon, 26 Jun 2023 17:05:38 +0000 Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::b429:5aa3:12f1:6b8]) by TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::b429:5aa3:12f1:6b8%4]) with mapi id 15.20.6521.026; Mon, 26 Jun 2023 17:05:38 +0000 From: YE Chengfeng To: Ray Jui CC: "andi.shyti@kernel.org" , "rjui@broadcom.com" , "sbranden@broadcom.com" , "linux-i2c@vger.kernel.org" , Linux ARM , "linux-kernel@vger.kernel.org" , "bcm-kernel-feedback-list@broadcom.com" Subject: Re: [PATCH] i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue Thread-Topic: [PATCH] i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue Thread-Index: AQHZptF4vW+xYGiqv0K3I948JeZ3Oq+dTM2AgAAGaoA= Date: Mon, 26 Jun 2023 17:05:38 +0000 Message-ID: <60931201-FD2A-4579-861E-E9573B7C2B38@connect.ust.hk> References: In-Reply-To: Accept-Language: zh-CN, 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=connect.ust.hk; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCP286MB1188:EE_|TYCP286MB3316:EE_ x-ms-office365-filtering-correlation-id: bd4d9079-0622-413e-5ca8-08db76679093 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pAr3AuRzlxYtx6iK22/O2F0QwNSZXOwsjxvQCJsG2wJcsdbqT2MUdEBi8KrmWoF9A/k3w3TOANovV4rOzHHlzU/+OnS4iTlVwBjAp2RvVKOasomYSos7HhTSwDOBR8gcj3cPMsi9z8mJU66kryBHOmqOHDEiqRyykMFzTZDPY879ALYXkciEa+snwZWVqCTAygzEVNB4eZ9JYK96WKjJHIJYRRH4jnOor7UyHPoH9IbosS7ZVVSI2HedpVEkvw6a0NiqQxT8rNOLuOcjwG5qo9ZDZYJ9im+VGChvdF2w4qckzPe69abDBRtmpMb7kwU8ckWnRPCWr2nG0xOOgBckDzGqn8qVH2PmA97GCMTCCUW/d/FDqxGUbzVHHlEfGW+/mTy6sB856nP7GL85INv7gRk2FiHl4rJjvuo2JSBJ6tFWra3STjPfzjcc4huiIYlnvEjnEexBksk1njuduTwju7nven5Chugb3XMo8ORrjMm2BZZ4UISN++ChPxfUBrwuvM2tRyUzVHe+v9wZQNG2UNuYlKy82XL/nifPRtr/wnADXKqM4ihnjp/tevsDU68FGnh3COwQduW9NYom7lAW4MEACa81lpMCkOZQaFG3Q9n9kG3z0sj42yY9kKGrH+C3StaBtwYivvFNsOcOyyCKmvHjfXVOA4wcOdKUApNG1P2caKFp2g8WTILRWXlKebDX x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(376002)(39860400002)(396003)(136003)(346002)(451199021)(6512007)(36756003)(33656002)(5660300002)(41300700001)(86362001)(6916009)(66556008)(8936002)(8676002)(66446008)(38070700005)(64756008)(66476007)(4326008)(38100700002)(122000001)(76116006)(316002)(91956017)(786003)(66946007)(6506007)(2906002)(26005)(186003)(4744005)(71200400001)(2616005)(54906003)(6486002)(83380400001)(478600001)(70780200001)(45980500001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GFK9xhZrIbkDore5Tkkx63PTru8md2er1/KrQ4/puvDQharr4GYUfHTq8kLs?= =?us-ascii?Q?dOOektmj054KmAmvy9XfhiCoeOSU66Xx4lZaxaYPsa7X37Dw2JG511vbhXFw?= =?us-ascii?Q?cbjt8f99qMGAR8aFFNSzk1QKlKwKIlb48QdLmanDy8L3dwM+Co1ZBruk8WuQ?= =?us-ascii?Q?RbavcRbCH0k+/4c9o0TfOsNsRvPoaja/2gnIsHXO9Lmkx+HTl1L0qQwwra7n?= =?us-ascii?Q?1fx5YkTH1QF/2o71piL+Wlel+iqPs3kVdV/KKs80GmtXp8qrzTV2/XoyU9g6?= =?us-ascii?Q?DF+SYC3kDRJfFJeW0mNj/icYz0VQ55uKYQAuiY+Z1yFNMpA2nT9Mkjbb6tz1?= =?us-ascii?Q?PbLrKWsRTOkhvdKeYVEdETz76ir7ifu52DbTanAAMUB6H+rzZ50arI9XTQuu?= =?us-ascii?Q?NdXZxPp0D4M9kOWWBGfh5N3K1sCUTsV0j/3d0+0uk/Hx1+ukJ5e0Oooqtu0q?= =?us-ascii?Q?1OWe039ZXktGDfQY/bBo1eEoYmDqMJnDpr0eDl9o/aqs2xCXQ7UUyVaW33ev?= =?us-ascii?Q?L04R3iC8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U2TN/w?= =?us-ascii?Q?cN1NCoHOvKofBRHK2Q49XEEHcIwrasRybtIRc9LVExskBwOKxTV6MfKNozvo?= =?us-ascii?Q?jo2UwXytB2k1m0oZlPROY42SGZvP2MY2bZc1bSGjTB+ORF4RzuigLLCDKj38?= =?us-ascii?Q?QjuO7mz1p/l1zNitcH6FEhuIfggfVUSONzriWqnTTMamFzXffUNUsP0O73Nt?= =?us-ascii?Q?ug=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: connect.ust.hk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: bd4d9079-0622-413e-5ca8-08db76679093 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2023 17:05:38.1739 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6c1d4152-39d0-44ca-88d9-b8d6ddca0708 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7rUWHogIIQE9W50d15/hJzQQ8f1rPSI825rITmnNUhH4G9ONK36ikD9lQENLT/EkZ2X1CanL9BofqcNYwL2JDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB3316 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 > This fix looks good to me. Thanks. Just curious, did you actually see a > race condition issue as a result of this, or the fix is done completely > based on the analysis of the code? Thanks for the reply! This bug is detected by a static analysis tool built by me, I just notice I= should=20 mention this in the commit message and sorry for not have made it clear. I = noticed=20 lockdep occasionally reported such similar deadlocks in other place thus bu= ilt the=20 static tool to locate such bugs. Just feel free to let me know if anything in the patch should be improved. Best Regards, Chengfeng=