Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2472810rdg; Mon, 14 Aug 2023 03:54:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVSNg48YfzLF6MjcakUgxty3V33N+etvakPBpZYIVZ2iPmtjH53hvWvNTQ47eKVcjTLwp7 X-Received: by 2002:a2e:9d85:0:b0:2b1:a89a:5f2b with SMTP id c5-20020a2e9d85000000b002b1a89a5f2bmr6492632ljj.2.1692010447023; Mon, 14 Aug 2023 03:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692010446; cv=none; d=google.com; s=arc-20160816; b=eGn6en+jPNmsIegx+atDr17IIOOSL8ti7/Wp4oPcbItI4yI1bUNIndz5q5PeqRs5Vx FSqFQZ62gzFy1NpyDzgV5ySgivk8UIp6EvSvQ2JEmos7VEZD13y/gKVabhAk8h+gtQfQ rqEuQDppXT394xWQWC8wN+QYPRdSSIFSZIKegsvv8Qk3I9RcDxRz241yafZZ5OejcY9X bcOQ7/6EkvpXdIlm0JUE1Pcc+8jIh2MHc6068klgGr1tMfH3dgmosAXLq8425UqM2ERp Tc1ggXf6jN1kIMqpxDoFY/HWoX+pzseuOkX9Gfvg86zOFF5g92YHqh6eORQBUIoIl263 wYtQ== 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 :message-id:date:subject:cc:to:from; bh=3vIGqkJN9WeXVwTm1hZbejlfwLsPrndTTRyWVINS39M=; fh=qw43QZAXcNcl7h9B3MdyBVec7mySpMzzcuDhZUv6g+o=; b=nxQJLkL77t6YktXd9ehtniNS9HOmiMOGsfzdWq05kUzAxBEg+PDUHv2V1/QgCHW67e Aasas/bSqTpCcPc5pI/whJjq5M8CuWiwtUtH2FQydP8Jq95IjYgi/2DE/EAJ4ZA/vlyZ cOJBrEDVykOItgAZllNperoHpq43UTlvM7t3/FDM+R3JwWOuBLCnvAmkG6hy/pR2o+FA Z3S8rr6XTUB1P2f0ALCfajoysuSBOQAWakElk5ETqaMWxJI+97Dwy+BkM6bcNM/eBhKN zowNyzClp7qljIK/xO/bMW2QdQTAvyecAkq5OqW/z4mjHxMRsEAVvi5SmEAfl0Rcb51U rwIw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a170906115100b0099cd8eab16csi7714961eja.559.2023.08.14.03.53.42; Mon, 14 Aug 2023 03:54:06 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233900AbjHNJlW (ORCPT + 99 others); Mon, 14 Aug 2023 05:41:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjHNJlH (ORCPT ); Mon, 14 Aug 2023 05:41:07 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4CB0106 for ; Mon, 14 Aug 2023 02:41:05 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RPTp14QBpztRxg; Mon, 14 Aug 2023 17:37:29 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 14 Aug 2023 17:41:03 +0800 From: Junhao He To: , , , , CC: , , , , , , Subject: [PATCH 0/2] Fix some issues with TRBE building as a module Date: Mon, 14 Aug 2023 17:38:11 +0800 Message-ID: <20230814093813.19152-1-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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 The TRBE driver support is build as a module, we found some driver issues based on the patchset [1] and set CONFIG_CORESIGHT_TRBE=m. 1. TRBE driver potential sleep in atomic context when unregister device 2. Multiple free the platform data resource when rmmod coresight TRBE driver [1] "coresight: trbe: Enable ACPI based devices" https://lore.kernel.org/all/20230808082247.383405-1-anshuman.khandual@arm.com/ Junhao He (2): coresight: trbe: Fix TRBE potential sleep in atomic context coresight: core: Fix multiple free TRBE platform data resource drivers/hwtracing/coresight/coresight-core.c | 7 ++-- drivers/hwtracing/coresight/coresight-trbe.c | 35 +++++++++++--------- 2 files changed, 24 insertions(+), 18 deletions(-) -- 2.33.0