Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6577087rwi; Mon, 24 Oct 2022 03:25:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4iHgKKS9L59CjGNk3/Y9kEz0EkGZQBz3Xu6iadTK5uHhBUnIGEGFRUM1N8KpicG8Der0+3 X-Received: by 2002:a17:906:4fc3:b0:72e:eab4:d9d7 with SMTP id i3-20020a1709064fc300b0072eeab4d9d7mr26766363ejw.599.1666607123607; Mon, 24 Oct 2022 03:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666607123; cv=none; d=google.com; s=arc-20160816; b=ODIzRowJVxhu4YFWtweeFaKdZs8nO+m0fS4vDPPEZcpOvtjGP2m3noiUBYN+lhGq3H +ods0WvCwiSnWYkZH8ibe6JSMZWxJSOqgdGv+ZMc5hvfui+JQUlO8f1G4Kj/Y2JQz5dR M+gLt7nXyiFWxm6lMuksODyY6J7AjfaPGJDLF4zz2/ZCl3LuCMQWStIUDTXarIq/5Uo1 EgLx0kcjTyFCzWXtCISZh19tK+Qh/3VsgdI1mrPcmTA9uoLVjjOMcud6JBOWgDQ5WuTj IPdCiVe6IodlGCs5JhVnvVm2gs5jt6ohsyl6l6JNSjGpqyb9ZyaEkYt2zryVCkDLnlaY E54Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=XbBi26e5xS8b0zq0tzdnyoBkBjH1HnVMYiOZtPjkLcU=; b=JM0YCOOccux7VH/Ek5J7NL6nXBpXo5saeEwOu1MZx/fKAu5J/MQYYz+wCoCfA4jlLr D+hsZgJOkZdRKbAkCimysUIZDMM8CcROpLohpQlVRb1+bTL9kCi14787fCNHny0rB7i5 whPgtRrzjVO7eH9L+zFvvDbqO/E5j1phgF/LqQSYl1dnTgPcaCoxnwxzYOZjCAavwNDl b8oG3hhvgpCSzJJQltt7RCum/h4nNSXKqaAQlfiu9FeNQ8O0tSebVvVIf4PlcwmXpYnE 3Pbx7d+x7QT1cQCWL3C15Q0kPac+2da0npxIpOIxqOVDooewzkpfYg6ZGMEu8gfK7ZWY LjYA== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a05640227d100b0045d5e3c7f44si27077193ede.180.2022.10.24.03.24.58; Mon, 24 Oct 2022 03:25:23 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230351AbiJXKCh (ORCPT + 99 others); Mon, 24 Oct 2022 06:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbiJXKCX (ORCPT ); Mon, 24 Oct 2022 06:02:23 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2729058DD2; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1AD331042; Mon, 24 Oct 2022 03:02:24 -0700 (PDT) Received: from [10.57.68.77] (unknown [10.57.68.77]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5DE6A3F7B4; Mon, 24 Oct 2022 03:02:15 -0700 (PDT) Message-ID: Date: Mon, 24 Oct 2022 11:02:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH 3/9] coresight-tpdm: Initialize DSB subunit configuration To: Tao Zhang , Mathieu Poirier , Alexander Shishkin , Konrad Dybcio , Mike Leach Cc: Jinlong Mao , Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tingwei Zhang , Yuanfang Zhang , Trilok Soni , Hao Zhang , linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org References: <1662626705-13097-1-git-send-email-quic_taozha@quicinc.com> <1662626705-13097-4-git-send-email-quic_taozha@quicinc.com> From: Suzuki K Poulose In-Reply-To: <1662626705-13097-4-git-send-email-quic_taozha@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 Hi On 08/09/2022 09:44, Tao Zhang wrote: > DSB subunit need to be configured in enablement and disablement. > A struct that specifics associated to dsb dataset is needed. It > saves the configuration and parameters of the dsb datasets. This > change is to add this struct and initialize the configuration of > DSB subunit. > > Signed-off-by: Tao Zhang > --- > drivers/hwtracing/coresight/coresight-tpdm.c | 44 ++++++++++++++++++++++++++-- > drivers/hwtracing/coresight/coresight-tpdm.h | 17 +++++++++++ > 2 files changed, 58 insertions(+), 3 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c > index 88df3e6..69ea453 100644 > --- a/drivers/hwtracing/coresight/coresight-tpdm.c > +++ b/drivers/hwtracing/coresight/coresight-tpdm.c > @@ -24,6 +24,22 @@ static void tpdm_enable_dsb(struct tpdm_drvdata *drvdata) > { > u32 val; > > + val = readl_relaxed(drvdata->base + TPDM_DSB_TIER); > + /* Set trigger timestamp */ > + if (drvdata->dsb->trig_ts) What happens if this instance doesn't have a DSB set ? Have you tested this on a system without the DSB ? Suzuki