Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp853529iob; Wed, 4 May 2022 09:14:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU1MaYT8YQPSgNPdmCgXmG4kQP+Wxe3pV9nQzMfknylJVfSUgFJMDm8ZynMRLwsRw9h9aj X-Received: by 2002:a5d:9947:0:b0:654:b989:699f with SMTP id v7-20020a5d9947000000b00654b989699fmr8123333ios.170.1651680851818; Wed, 04 May 2022 09:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651680851; cv=none; d=google.com; s=arc-20160816; b=QAwnGgDaeMp92p4/yj9yFM0g9i8+4ss+0ZcGlQdVQ+y3146FOucmh3yaGtRSHgizgJ IGtxCK/bK0EERyWJSSu1USCMkZIWi/saHsex2jyVbnA+iQp7N+AbWNwt5YN4/EQbYEH4 4q8W4ROre9pT/4DA1UtFgREb8kWmFpPSePcTKQvqoOv5NVSbk2FVWUdAsJV3CPM47SDt oY+YqRvZHMwcqco5s5nJtFO3T/6SMfG2xnqpmWFhBAJfDIy5/zUQvgVi3nqwebq0YmWg SPqLuaodmLeH1ZfFbTALrzldWKcaNi9k6+WCyvJ9/FJ4CTmGsrHUZxqe5YC2nkpx2UVH 4fBg== 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 :dkim-signature; bh=a/+b7pV2Bo1HIRQnpM4Y15NOBUEBq9pVgDGvjKkqQtY=; b=pkFOpt37yae2im4DzNo9sRaHmt+h9hqkIpTwTaSlnv0fnVC2C70I0gufuHILFcgikS dt1Or3TOj6yTfYWHgQ5obeKzlkLbs41/EEyfxeo9iQh7kyWqAzQTrixZrzCK56MIzf7P vJrDYtzC+ohkD3wMhX/kN+LLnszDAde9B+rZENEgEj9d9j7aAcMYRM2FqCx+5yA8/Jgb y+uvb4PBMTzs4Z+LKgcU1vCn0tDfchNV/UYQe2IU22FCcj5ksKA/yLOFLQuDr8gdnJ3q Xwr42EAz++dCxEjklB9CkbpnOPpuveMq/jv6dxZ3P2GAcN36AltzHpWb5+8CA8rAPS2C B0ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=oazpa+FQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a056e021c0800b002cc1876375esi12212231ilh.109.2022.05.04.09.13.55; Wed, 04 May 2022 09:14:11 -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; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=oazpa+FQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348841AbiEDLdU (ORCPT + 99 others); Wed, 4 May 2022 07:33:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348843AbiEDLdR (ORCPT ); Wed, 4 May 2022 07:33:17 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 288672B1B0; Wed, 4 May 2022 04:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651663777; x=1683199777; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=a/+b7pV2Bo1HIRQnpM4Y15NOBUEBq9pVgDGvjKkqQtY=; b=oazpa+FQV9Cs6DPBWGKjY+BjMAxIeBu0YPw5ttqao/fCeqpmo3yDKxsi X+Ei4I95qUwaER0801mpkVFFx/AF2fVYFVgBRxRwltiAx/uBrIyYV0XOL 3RK9YG/4zlf5RPL1iXz+9Ujl9wlqb7s+ogjTAswXTJjxdur+seZND7dNE A=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 04 May 2022 04:29:36 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 04:29:36 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 4 May 2022 04:29:36 -0700 Received: from blr-ubuntu-253.qualcomm.com (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.986.22; Wed, 4 May 2022 04:29:31 -0700 From: Sai Prakash Ranjan To: , , CC: , , , , , , , , Sai Prakash Ranjan , "Bjorn Andersson" Subject: [PATCHv14 8/9] serial: qcom_geni_serial: Disable MMIO tracing for geni serial Date: Wed, 4 May 2022 16:58:27 +0530 Message-ID: <282f2d8fb795e8b1961693ed4184b8136c3520db.1651663123.git.quic_saipraka@quicinc.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Disable MMIO tracing for geni serial driver to prevent excessive logging. Any access over serial console would involve a lot of TX and RX register accesses (and few others), so these MMIO read/write trace events in these drivers cause a lot of unwanted noise because of the high frequency of such operations and it is not very useful tracing these events for such drivers. Given we want to enable these trace events on development devices (maybe not production devices) where performance also really matters so that we don't regress other components by wasting CPU cycles and memory collecting these traces, it makes more sense to disable these traces from such drivers. Also another reason to disable these traces would be to prevent recursive tracing when we display the trace buffer containing these MMIO trace events since writing onto serial console would further record MMIO traces. Cc: Bjorn Andersson Signed-off-by: Sai Prakash Ranjan --- drivers/tty/serial/qcom_geni_serial.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 1543a6028856..75272585c3c3 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -1,6 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (c) 2017-2018, The Linux foundation. All rights reserved. +/* Disable MMIO tracing to prevent excessive logging of unwanted MMIO traces */ +#define __DISABLE_TRACE_MMIO__ + #include #include #include -- 2.33.1