Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3004378rdb; Fri, 22 Sep 2023 15:07:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrUntsUzX9qos79krICG0FeHPWPZXo4kM0Tdz9r0UKpnXyGLylGt+VdiJc54RCFi6SzmLj X-Received: by 2002:a17:902:c94e:b0:1bb:ac37:384b with SMTP id i14-20020a170902c94e00b001bbac37384bmr722109pla.6.1695420461372; Fri, 22 Sep 2023 15:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695420461; cv=none; d=google.com; s=arc-20160816; b=qS1tDdxYF8uANagnRpCNYrq+yzYcjm30cwFd5431lWmVuIK9XMyvhJX53wKoE+SRY/ 8kmBnmTiTmTHLjPEcCbLgfWyFvOwZ0gbULHUdq4FvKWzaWge8UQR2bUM+R3w4ODSw+UD phOQVUW7y5ke6oEODz0fYv7nMebPty3m7TSq/dTMaWZXdXkDA2plpMICa1OI96kafkUt Y3g7okZBHX/krDFvF39SDEfzG382eM0GE49B9PITiaWiQzTkn1k6vJ1jkuZcafuMBAL0 rAEfOb9+LQY1egAU8UClzrdXljhhAqmsDUju1lmQ7ZE43g6DNnv6NA3OXLJixvcbMEOs 6Rtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=i6x/TP+VdD+IpejFbiiPt7d7OBRe18+V3yJHFK61Ht8=; fh=/+Rrhb7w7v2DNFoi2Hvy5634LM55EtGhqx8xCWjNv0w=; b=ccTKcgcuaw4vFE+17TlwUDSrCax36Oe48tMz8lsbXpTqZdf1/jYFvECaIK6QMv6Fei +UlZ5nVqghz7pvruV8X/tjAZxRYu15QJMnEsF30QL994tuU5n/TVaSKf2BGHRotuUHA6 jv0QPkDUat3000KerOw8PnCsv5LOXIUyquz/JlZYOKpq5wvHvgz/wB3+fnYGlVTj78o6 UeZxwJW1d07XliuS4/53sEj0Vk3wmtXYbNkwCq5i9u1S6RbPib579KaTxNFxZChpKUxe NLBei+QAV/Wt7ymuDGAwLMLLfAXussDMogTU+w4Vl/6XdYWQjlhvItV1JrVGkLJ8hzyW hVhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oJlfTjlg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id kg5-20020a170903060500b001b6ae9f8bb1si4518606plb.75.2023.09.22.15.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oJlfTjlg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9870F87027A9; Fri, 22 Sep 2023 07:50:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231616AbjIVOuZ (ORCPT + 99 others); Fri, 22 Sep 2023 10:50:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbjIVOuY (ORCPT ); Fri, 22 Sep 2023 10:50:24 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62BFFC6; Fri, 22 Sep 2023 07:50:18 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38MElJcZ024672; Fri, 22 Sep 2023 14:50:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=i6x/TP+VdD+IpejFbiiPt7d7OBRe18+V3yJHFK61Ht8=; b=oJlfTjlg2SO6aAIx7k5knFDvqEgQjUXzektgkm+pL/mg9X2VgGs5oaUAKXBRDYJkw+/Y ODTRRvM3NRlJPHZItZUF+oO4LI5Nq2KpQTvI5L54lZKlCWuiv5nVGqzAA/o0hj0IXQoL k4wz4z0Qg+goRBbJS7fSVcO7nVKSUjCfr2mBNn4ncMFxPVW3FiXRDFOtE9sB5g3QKE/5 mtTm2tPqQECyYK7/DsmSd2fR9XyB580CsIv3DP6p8HI69AX1cjkyGJ9G6c0TOJ0jR8mk B51fNI2E8ETMmTzR9YCTziP2hTips6wSoBX9YuMOvyIzMerMrTMR28/CuBFjorv0avMm YA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t8u9ha1j9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 14:50:11 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38MEoAdY007093 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 14:50:10 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Fri, 22 Sep 2023 07:50:10 -0700 Message-ID: Date: Fri, 22 Sep 2023 08:50:09 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2 2/2] bus: mhi: host: Take irqsave lock after TRE is generated Content-Language: en-US To: Qiang Yu , CC: , , , , , Hemant Kumar , "Lazarus Motha" References: <1694594861-12691-1-git-send-email-quic_qianyu@quicinc.com> <1694594861-12691-3-git-send-email-quic_qianyu@quicinc.com> From: Jeffrey Hugo In-Reply-To: <1694594861-12691-3-git-send-email-quic_qianyu@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 2cYyCUbgZG-ljFoHfBRafUj9TAYFo3pi X-Proofpoint-ORIG-GUID: 2cYyCUbgZG-ljFoHfBRafUj9TAYFo3pi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-22_13,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 spamscore=0 priorityscore=1501 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 mlxlogscore=590 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309220127 X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 22 Sep 2023 07:50:36 -0700 (PDT) On 9/13/2023 2:47 AM, Qiang Yu wrote: > From: Hemant Kumar > > Take irqsave lock after TRE is generated to avoid deadlock due to core > getting interrupts enabled as local_bh_enable must not be called with > irqs disabled based on upstream patch. Where is local_bh_enable() being called? What patch? What is upstream of the codebase you submitted this to? Why is it safe to call mhi_gen_tre() without the lock?