Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp650759iob; Wed, 18 May 2022 09:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXBI2Wb6VNO7/vNmE8+iuPWICBmFQWGGDMvs4Qare70hhFt0wNOUzi/4Krg5AfeQqJGSFb X-Received: by 2002:a05:6a00:a85:b0:506:b9e:7f43 with SMTP id b5-20020a056a000a8500b005060b9e7f43mr296425pfl.5.1652892731525; Wed, 18 May 2022 09:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652892731; cv=none; d=google.com; s=arc-20160816; b=d8JZT1Ty+fk9akKl2bpl8w3yeRS8r/4ayYerEz2hwgGouHLJTrDYpRDQ6PW7GgWtRY OTS/E7XyRlMblG1woh+/TklAWHDzTISCYPSiq8BzauIv8RMDyjW8Q8/Ed5nntprOQJKr c/fDMTXj9x2mQCNhiTd+NB1ju6AbXK3mZo3S/BXl0odIJNaHSUx87py8kC2PkKEKgA5d FAYn8xDd7zpudzX2ZbymJAoqxWA2QRUyyu23vTBaoOrn0pPuD3oTMeMtAwqSs4lXLJA+ E2PQCC2Dyfjqqv6CHsxI9THcZ3pdG+CSfFBJrETQc1a2tenSd66GCVRCWhqb+dyCg6M9 9Gbw== 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=WMfrbW6aHjrx/MqUK3KUM6mipCuetkL4KAFC6OrnsvM=; b=b0jsfCtNPq8jbiRlFq/VSACYFbNpZp4EHt1TEtO54BOTJuS5IiD2J3Ip6mL9f3i6Jd FlCQroxhjEPRZraGBRwHopAmgiJp0Wti9oMX5UpaBk6DSjRls0qN2IgrGhRIqvY48Cil PgfTPgRSJUeY49S/vqDA4EIcKTM7qZlG4Pyz0hlFMSZIaPnxLJzVlPodGP1yhFGkXwTs Ae1GpUGdQcp9XF7hoGHIxybFOOO1u6v/R461q8Df9L6dbn6kvO3hATtR7ov+UeNE1CZT RpPivnGgV0o4joynShzgVOV+Rqziv4XW0kOpb7rurcAE0xlsJ/i5WU5xZBtNrIZOAQ8o GyNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Oc60ghgz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h10-20020a056a00218a00b004fa3a8dff9dsi4073838pfi.84.2022.05.18.09.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 09:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Oc60ghgz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 277AF3AA79; Wed, 18 May 2022 09:46:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240500AbiERQp6 (ORCPT + 99 others); Wed, 18 May 2022 12:45:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240443AbiERQpe (ORCPT ); Wed, 18 May 2022 12:45:34 -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 983241FE1F8; Wed, 18 May 2022 09:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652892332; x=1684428332; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WMfrbW6aHjrx/MqUK3KUM6mipCuetkL4KAFC6OrnsvM=; b=Oc60ghgzPEQwUHUYMFDRKlZcvRLKilruu8VfdNVk56LSlQ43Fv1wSqoO OJP/6FfEnBu6OhYJ+BJ0b/kg8X+e67L3x7l2pNMXMwXKbRC9mqreHMMRO +5ubbKLlEDAlApEyKyJdDVqN3FMVL8nVeecxJq7PizupPIHgkEMLiGE2v I=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 18 May 2022 09:45:32 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 09:45:31 -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, 18 May 2022 09:45:31 -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, 18 May 2022 09:45:26 -0700 From: Sai Prakash Ranjan To: , , CC: , , , , , , , , , , Sai Prakash Ranjan , Bjorn Andersson Subject: [PATCHv15 9/9] soc: qcom: geni: Disable MMIO tracing for GENI SE Date: Wed, 18 May 2022 22:14:18 +0530 Message-ID: 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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 SE 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/soc/qcom/qcom-geni-se.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 28a8c0dda66c..a0ceeede450f 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.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