Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp770718rdb; Sun, 20 Aug 2023 01:53:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFp/IwlH87G30C+er+SavBgi0+bxT2d0pGjL6ucab+hfKdp+yI2HwCXKb1cqUlEGFxIafoM X-Received: by 2002:a05:6870:912b:b0:1c7:ebf5:b6d6 with SMTP id o43-20020a056870912b00b001c7ebf5b6d6mr5686406oae.37.1692521614357; Sun, 20 Aug 2023 01:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692521614; cv=none; d=google.com; s=arc-20160816; b=OVO2MajEYovFlSJJhIDMshgfyIVexSBdCCa6xjksY4Ospb3nQkzzV+fJh0lhqXerNd x1D+EAB6cZLT2snnseLMYInQmEw6JsHF38sdnXse8GDDiTB7gzgmYorEaIalS4JAQHOd Mqw/6L2VQEgVNQo1Vgkgh0DM9Op7RIi5eJ+aOmtidjVGshFwV526uuhWge8ETc1ukmo5 LlPanroT09s0LIcbczele50hSGTsypS49DHkUvjLAP+1Ed+usT32gzgrXgWuSEzSShig aNtkjZkzLEb+Vqc1hoSFi+NeIuMA1O+CTNaGyVS0y/oFV0zkfeke9e9lfr0fol9CDN8i k8Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2ZYSC7HHusFz2FYczdbgWkdxXLiebUapDM72/MY5L8I=; fh=CpJbgjkCo8SgDBkbTdVrUPscfZYBL+6oExNj4aFk8sY=; b=XEhcHhyuyAq/sNH9ycuYqDLpRl+TZcyAHLCtncdpNYKJpsM8YeYE3oAYxN/jbh3FYH oVj7PzWUfqyU60YVOyQ8KSJoktOYBVuvnfPWLOAfQV057+r1HqxFTteRE4Ileu8th/oS X5n3JcAbnXWJ55yaY2psa+Q+ZArkGwu4xy7KNOwjaDR+AyYGFGtsHpNSOUYsT7bbLJr7 kuoixGMdG9mk0ANBZnOxOCfnBhNNnZNeZIESfxhbPFVEnzhq0tXWPTTmIkbB4b4R/fSI PgaoClXs3Slh3+q3KP+jhj2YBwmp19cWVKTfn8YaT0ncxHs0ejovyjaZgr+zVaUUlkwo b2CQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id hg5-20020a17090b300500b00261326aa56esi4803322pjb.5.2023.08.20.01.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 01:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 783AE2D1937; Sat, 19 Aug 2023 11:50:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378655AbjHRQan (ORCPT + 99 others); Fri, 18 Aug 2023 12:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378692AbjHRQa0 (ORCPT ); Fri, 18 Aug 2023 12:30:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FBB2421B for ; Fri, 18 Aug 2023 09:30:22 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55868D75; Fri, 18 Aug 2023 09:31:02 -0700 (PDT) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0C1813F762; Fri, 18 Aug 2023 09:30:19 -0700 (PDT) From: Suzuki K Poulose To: Junhao He , anshuman.khandual@arm.com, james.clark@arm.com, mike.leach@linaro.org Cc: Suzuki K Poulose , linuxarm@huawei.com, prime.zeng@hisilicon.com, yangyicong@huawei.com, jonathan.cameron@huawei.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] coresight: trbe: Fix TRBE potential sleep in atomic context Date: Fri, 18 Aug 2023 17:30:09 +0100 Message-Id: <169237411247.697015.1763852652455357854.b4-ty@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818084052.10116-1-hejunhao3@huawei.com> References: <20230818084052.10116-1-hejunhao3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 On Fri, 18 Aug 2023 16:40:52 +0800, Junhao He wrote: > smp_call_function_single() will allocate an IPI interrupt vector to > the target processor and send a function call request to the interrupt > vector. After the target processor receives the IPI interrupt, it will > execute arm_trbe_remove_coresight_cpu() call request in the interrupt > handler. > > According to the device_unregister() stack information, if other process > is useing the device, the down_write() may sleep, and trigger deadlocks > or unexpected errors. > > [...] Applied, thanks! [1/1] coresight: trbe: Fix TRBE potential sleep in atomic context https://git.kernel.org/coresight/c/c0a232f1e19e3 Best regards, -- Suzuki K Poulose