Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30966047rwd; Thu, 6 Jul 2023 13:28:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlGA8WtFYx2tNsbon1VbLwHQqhEm0VpyaOcWNM/KNoU8cpgB34fQG9m/t+3bO4RQrLGy3xj6 X-Received: by 2002:a05:6a20:104f:b0:126:a5e3:3d97 with SMTP id gt15-20020a056a20104f00b00126a5e33d97mr1907368pzc.60.1688675327340; Thu, 06 Jul 2023 13:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688675327; cv=none; d=google.com; s=arc-20160816; b=uf/DwtE3WJ9/XNXI2pKgifEwKiQkYR29WuNTJEnCSOzxWfs5wDaUPKZvKKj2AMEj0d DEb0KN+RSn1By8ASXi341he5+FqgjvploFgNKkHm8zzh5VLsW2/vBGKigjUYgxCXDisU C8u0BHg3b1fr0hSglBqamqIMTUHCIQu5Yv9xC/j3xDku5Qm84fKpUuDRngHYUZQ1PyP8 2fCA/mlCurbUfWJ7Uw7jvtcpA2y3QNY8F4Hewx3eB+Ip3TPSddgyalDOQr2Gshm3CmTj h5DtB602Znb9iB4fVv5k6KLoUZ1Z6r1EzmWtYkuiVb67qE3xvLd3/mlseX8vFECL4VGX cexQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=h3fEucunPRZMPJti3sDue84gY1xscyguo9P+aZK56Z8=; fh=l5hRIDT41HJBIJW3nlnTuySaz/djmaVnd+XEzBGWTWs=; b=LfFKlBJzFB2D//V55zvXfpSoJaDtKRxJlxUW7gZdbf2gHX3b25xKSVCBuhNGiU9/Fz KzG7f6/QoTCGb7NByjYPC7ct/LmzxOw4FqoE/f0qJeOBXmUF8SIKd3GL4Cclb6/tq3p8 t8bi181HITl+OxM1Ifw9XihKmPBXbK/rlIqRhOcPNts2DgyNMG5OhnslA16HEytnnJnb QJgxj82eiCAi8biD3XXnyWmL+0NdnpWh4czMhDc6c5M3U1XTmlJpa0cACyVzU8t8DcIh Tvo1V/8kLfUYPPUtGIv9MekBWygiVblesgmwcvubiJtncb8yW876dTyILJVHJwOsaFdc uhcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=gT3SbHlV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd34-20020a056a002ea200b006768627bc3asi2204880pfb.268.2023.07.06.13.28.31; Thu, 06 Jul 2023 13:28:47 -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=@broadcom.com header.s=google header.b=gT3SbHlV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbjGFUIs (ORCPT + 99 others); Thu, 6 Jul 2023 16:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjGFUIq (ORCPT ); Thu, 6 Jul 2023 16:08:46 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED6A10EA for ; Thu, 6 Jul 2023 13:08:44 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-40339ce8470so9403531cf.0 for ; Thu, 06 Jul 2023 13:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1688674123; x=1691266123; h=in-reply-to:from:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=h3fEucunPRZMPJti3sDue84gY1xscyguo9P+aZK56Z8=; b=gT3SbHlVk68bfv4XmnTlEjhR6CzlEA+8/CGAGdYeKVfCMk0Nrn4WW3xegWk2yiPzfK ME7hSct+nrnR296DYOvbdRA1cW7B8JCg0WIQIs9GltbEZoSY6bzu/bhQ/PaVab6otxBn zphTG9tVMHP02HjpqgEZIUVdELbbVg9IWi4B8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688674123; x=1691266123; h=in-reply-to:from:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h3fEucunPRZMPJti3sDue84gY1xscyguo9P+aZK56Z8=; b=f0c0wpHMTZuguUAlOTWauJMNxmGqbshQgpBIT5G9YUcGwGoMie6vf932a5slxURqn7 ASywlxGTHmhTw9fqeN9KBDBA2SkviQiAvP1QkmSMJzxURDd4OsGPZxxdyiR57BvLlFam na8ww98dMSL9ivFycJPc32p+hFU/TS/661TMOTpzfwWZrsle8mGOJgo3EQL49+ZsYLUr 0t8v1HLpul7Yjxj/ncb+8fPJfmoBAW7rsMs4KEyhJlkDkqO7N8oVIXtEMNx+YK5yAASX W277/id9fQ11BMiYrdCcphDIKvVXr8BBfDAkSG1ydmO1AghP1ankntPqWNI04IHldbD1 LnOQ== X-Gm-Message-State: ABy/qLbn5pOd36NFk9NT6dW4Vo0L1IDayZOUISHKgzfQh1nibCggHQsm pWQUnNhu/7W9JyOVFpP5O5ibog== X-Received: by 2002:a05:622a:15d4:b0:3ec:47d5:ec65 with SMTP id d20-20020a05622a15d400b003ec47d5ec65mr3187745qty.60.1688674122730; Thu, 06 Jul 2023 13:08:42 -0700 (PDT) Received: from [10.136.64.163] ([192.19.161.248]) by smtp.gmail.com with ESMTPSA id g22-20020ac84816000000b003e635f80e72sm956447qtq.48.2023.07.06.13.08.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jul 2023 13:08:41 -0700 (PDT) Message-ID: <82362ecb-2049-14f4-f176-36bfcbbf84ad@broadcom.com> Date: Thu, 6 Jul 2023 13:08:38 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue To: Wolfram Sang , YE Chengfeng , "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" References: From: Ray Jui In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000040592f05ffd71536" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,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 --00000000000040592f05ffd71536 Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Wolfram, On 7/6/2023 12:36 PM, Wolfram Sang wrote: > On Sat, Jun 24, 2023 at 07:36:02PM +0000, YE Chengfeng wrote: >> iproc_i2c_rd_reg and iproc_i2c_wr_reg are called from both >> interrupt context (e.g. bcm_iproc_i2c_isr) and process context >> (e.g. bcm_iproc_i2c_suspend). Therefore, interrupts should be >> disabled to avoid potential deadlock. To prevent this deadlock, >> use spin_lock_irqsave. >> >> Signed-off-by: Chengfeng Ye > > I can't apply it, what version is this against? Also, if someone could > supply a proper Fixes-tag, this would be much appreciated. > I'll let Chengfeng check the version. For the fixes tag, it is: Fixes: 9a1038728037 ("i2c: iproc: add NIC I2C support") Thanks, Ray --00000000000040592f05ffd71536 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQXgYJKoZIhvcNAQcCoIIQTzCCEEsCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg21MIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaa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