From patchwork Mon May 2 10:45:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijaya Krishna Nivarthi X-Patchwork-Id: 569263 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CE74C433FE for ; Mon, 2 May 2022 10:45:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384540AbiEBKtL (ORCPT ); Mon, 2 May 2022 06:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384622AbiEBKtF (ORCPT ); Mon, 2 May 2022 06:49:05 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D4EE120A5; Mon, 2 May 2022 03:45: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=1651488337; x=1683024337; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=S/oFpPCNRn6vrbCAHFIomAUumoIhfiwlYZCX9iIbe/Y=; b=yNcEB2O9DCqA8Q03bbKIKe7UKlZGLGutI/dn988oARKcGmosIRh0u4Ft jqyGY3378Hym1zdS+44FAYGSXRY+trcTTTQNjXGA9zc0hFD0sugb3qLt3 WTbQDp9eNzx4OaCycgKfJjld7DnPeaIfDp1JMGzQkPbrh0rLoXwkGqBob E=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 02 May 2022 03:45:37 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 May 2022 03:45:35 -0700 X-QCInternal: smtphost Received: from hu-vnivarth-hyd.qualcomm.com (HELO hu-sgudaval-hyd.qualcomm.com) ([10.213.111.166]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 May 2022 16:15:19 +0530 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3994820) id 157DE3DA1; Mon, 2 May 2022 16:15:18 +0530 (+0530) From: Vijaya Krishna Nivarthi To: agross@kernel.org, bjorn.andersson@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: quic_msavaliy@quicinc.com, quic_vtanuku@quicinc.com, Vijaya Krishna Nivarthi Subject: [PATCH 1/2] soc: qcom: geni: Disable MMIO tracing Date: Mon, 2 May 2022 16:15:13 +0530 Message-Id: <1651488314-19382-2-git-send-email-quic_vnivarth@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651488314-19382-1-git-send-email-quic_vnivarth@quicinc.com> References: <1651488314-19382-1-git-send-email-quic_vnivarth@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Register read/write tracing is causing excessive logging and filling the rtb buffer and effecting performance. Disabled MMIO tracing to disable register read/write tracing. Signed-off-by: Visweswara Tanuku Signed-off-by: Vijaya Krishna Nivarthi --- drivers/soc/qcom/qcom-geni-se.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 28a8c0d..40e11c3 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -1,5 +1,11 @@ // SPDX-License-Identifier: GPL-2.0 -// Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. +/* + * Copyright (c) 2017-2018, The Linux foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/* Disable MMIO tracing */ +#define __DISABLE_TRACE_MMIO__ #include #include From patchwork Mon May 2 10:45:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijaya Krishna Nivarthi X-Patchwork-Id: 568917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E5F4C433F5 for ; Mon, 2 May 2022 10:45:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384588AbiEBKtF (ORCPT ); Mon, 2 May 2022 06:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384592AbiEBKtC (ORCPT ); Mon, 2 May 2022 06:49:02 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D58013D02; Mon, 2 May 2022 03:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651488333; x=1683024333; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=6iHGRSOgrWXi0lQ9VNy7cHosK8o01EFmqWMART4qQrI=; b=ll2ABofMad8pYBHtFeiIGD5ASJ7A6qz93HZQky0+yCRPL2OU5R/T0FqN yQ7S+4w2t+b/Cg6mcNVDkClhh59YToA0RVnKuhHGxFbWdgj4CDi/sCbbM 0/aP6PYYLTfItjJkn02qMk5UOLWbv+F9p6Do+lo/W0ElPnwIE4wNEQpAL E=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 02 May 2022 03:45:33 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 May 2022 03:45:31 -0700 X-QCInternal: smtphost Received: from hu-vnivarth-hyd.qualcomm.com (HELO hu-sgudaval-hyd.qualcomm.com) ([10.213.111.166]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 May 2022 16:15:20 +0530 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3994820) id 38FAD3D9A; Mon, 2 May 2022 16:15:19 +0530 (+0530) From: Vijaya Krishna Nivarthi To: agross@kernel.org, bjorn.andersson@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: quic_msavaliy@quicinc.com, quic_vtanuku@quicinc.com, Vijaya Krishna Nivarthi Subject: [PATCH 2/2] tty: serial: qcom_geni_serial: Disable MMIO tracing Date: Mon, 2 May 2022 16:15:14 +0530 Message-Id: <1651488314-19382-3-git-send-email-quic_vnivarth@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651488314-19382-1-git-send-email-quic_vnivarth@quicinc.com> References: <1651488314-19382-1-git-send-email-quic_vnivarth@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Register read/write tracing is causing excessive logging and filling the rtb buffer and effecting performance. Disabled MMIO tracing to disable register read/write tracing. Signed-off-by: Visweswara Tanuku Signed-off-by: Vijaya Krishna Nivarthi --- drivers/tty/serial/qcom_geni_serial.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index f496102..aa8facb 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -1,5 +1,11 @@ // SPDX-License-Identifier: GPL-2.0 -// Copyright (c) 2017-2018, The Linux foundation. All rights reserved. +/* + * Copyright (c) 2017-2018, The Linux foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/* Disable MMIO tracing */ +#define __DISABLE_TRACE_MMIO__ #include #include