From patchwork Mon Aug 14 09:38:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hejunhao X-Patchwork-Id: 13602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2642757vqi; Mon, 14 Aug 2023 03:17:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzcVP/+EJJveVK8Y3NFg7cV2iwh6l+7M/YhCKqyMXkkwmelEK9ah9YquVbO40BsBnWcs/9 X-Received: by 2002:a05:6a20:138b:b0:138:58b:3259 with SMTP id hn11-20020a056a20138b00b00138058b3259mr10649647pzc.35.1692008255232; Mon, 14 Aug 2023 03:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692008255; cv=none; d=google.com; s=arc-20160816; b=EY/OK0gXS9GW7+zxWlgPqLtBhdtjCQMTsBIUBzVWZIsJsV/GHxnGDR6/Js7+lbbUNM X7pRbDjJ0MGVG+6zFLdfM2OG4/RIo3hcv4h9zb5Hb+Qm84OCokyasHDaHBlw6xb70JRZ 1qXG7uElgicj88F90hIYnLShPHvU1t9HYX05z4UgaOsgITECtJM50JfF8ypVpjdaQsSp s1DKZWDQiEqe22cxEiKJEApQE4EsxeJ2NU60LEREvLxKz085V+IaoYNuwsNhTV1RfEOS kLS8XEyV36SJcNXOoIOtCBtlSIe/3oZFFDzlYCMbXK4ILReiIE7XfoCIYhm5n/3gfN35 mMZQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a056a00238300b0068254b9108bsi7977801pfc.71.2023.08.14.03.17.20; Mon, 14 Aug 2023 03:17:35 -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 S233936AbjHNJlW (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774199248265240962 X-GMAIL-MSGID: 1774199248265240962 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(-)