Message ID | 20230914112223.27165-1-yangyicong@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp314821vqi; Thu, 14 Sep 2023 05:35:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpWQJowO6Mll6OUEeNny8TMNvHs6Tudleduc1NbiTO3xEOEVAHNJD0CmoUGrHWdU67Kffo X-Received: by 2002:a05:6358:42a1:b0:135:4003:7841 with SMTP id s33-20020a05635842a100b0013540037841mr5846074rwc.13.1694694927612; Thu, 14 Sep 2023 05:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694694927; cv=none; d=google.com; s=arc-20160816; b=nP/KMeo23wfex6fJp86BhQF4M0tusRuYqRK24y0HiQeU8OOs1ituyi8TaELuw4EBlG NVr7raSmhD2tYNhdrZndXzBJZYH1JgBdKkl8hKbR0fD+o9lRa3oTn8oNtO7DdL/l0M9N sGpgs0wupG9Q/er8h71StU9P+4dvWvclImNS6eNXyHzHzGRZ1Pr6kET4JHOYVij1zUZo sETsSngjWN9w+lU51butsiCIEU4m46x20kbDE3DG9UtsBQ2z7DWaJwt3gyd8M97+Ct7j laGJvaUQ1dvoJ8QSCJdonCTus3LZeIf5kpUJUhBiZRj5n4VF4YCVHDGy+u/RQ0lJQzXF jqzw== 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=tmingDdDxRSEsgSX9t+bvit8scocYf+JDon5aZ2tHvo=; fh=ko8w2iEBByNlWLnAg6bNI5pex73wZFG+4jwxERcD8TA=; b=Y0dSQhpEaLkdoT3SqD5kF7T2OgNgczvPy52LGc2Cj5HCkajXMYkATJ8bpLAB73XS1z UMh3TLMLiZZJ42ni2nQ4scVYKlsTYtaRUNewrqGSNkpxlDDHx3xgXVpNICrcq2XbUaeX xGt+D46mVSgdVvh/xb07ZMA/lGd9CJx2oNQvzx78j53B/WOU+lq7RgknzxIrLefuBid+ cRshCTY9N+lpYo5Mk1gYjLbGvJPFXLiz1PMqSRMQNbRZlqCO4FIhlByDgTzYu4RoMvUf ENsNIDiQlWXpl7xld+2VOyAoD2UtI+MgF6cv6q3ou6THiH3GaVQr4okjPvKPblla/3wP wLfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l2-20020a635702000000b0055fd1bfb109si1430401pgb.679.2023.09.14.05.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7777B82B1C40; Thu, 14 Sep 2023 05:25:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233620AbjINMZx (ORCPT <rfc822;chrisfriedt@gmail.com> + 35 others); Thu, 14 Sep 2023 08:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237745AbjINL0N (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Sep 2023 07:26:13 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FDAE1FF9; Thu, 14 Sep 2023 04:26:07 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RmZd250LLztSXd; Thu, 14 Sep 2023 19:20:54 +0800 (CST) Received: from localhost.localdomain (10.50.163.32) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 14 Sep 2023 19:25:02 +0800 From: Yicong Yang <yangyicong@huawei.com> To: <suzuki.poulose@arm.com>, <mathieu.poirier@linaro.org>, <jonathan.cameron@huawei.com>, <linux-kernel@vger.kernel.org> CC: <alexander.shishkin@linux.intel.com>, <helgaas@kernel.org>, <linux-pci@vger.kernel.org>, <prime.zeng@hisilicon.com>, <linuxarm@huawei.com>, <yangyicong@hisilicon.com>, <hejunhao3@huawei.com> Subject: [PATCH v2 0/5] Several updates for PTT driver Date: Thu, 14 Sep 2023 19:22:18 +0800 Message-ID: <20230914112223.27165-1-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.50.163.32] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 05:25:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777016428442181226 X-GMAIL-MSGID: 1777016428442181226 |
Series |
Several updates for PTT driver
|
|
Message
Yicong Yang
Sept. 14, 2023, 11:22 a.m. UTC
From: Yicong Yang <yangyicong@hisilicon.com>
This series contains several updates for PTT driver:
- Disable interrupt when trace stops, reverse to what we do in trace start
- Always handle the interrupt in hardirq context
- Optimize the AUX buffer handling to make consumer have more time to process
the data
- Since we're a uncore PMU so block any task attach operation
- Add a dummy pmu::read() callback since the perf core may use
Change since v1:
- Add Jonathan's tag, thanks
Link: https://lore.kernel.org/all/20230809081825.11518-1-yangyicong@huawei.com/
Junhao He (1):
hwtracing: hisi_ptt: Add dummy callback pmu::read()
Yicong Yang (4):
hwtracing: hisi_ptt: Disable interrupt after trace end
hwtracing: hisi_ptt: Handle the interrupt in hardirq context
hwtracing: hisi_ptt: Optimize the trace data committing
hwtracing: hisi_ptt: Don't try to attach a task
drivers/hwtracing/ptt/hisi_ptt.c | 33 +++++++++++++++++++++-----------
drivers/hwtracing/ptt/hisi_ptt.h | 1 +
2 files changed, 23 insertions(+), 11 deletions(-)