Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp872969rwi; Wed, 26 Oct 2022 08:11:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4QNShg5rAcO3wstRhDIL+2tQLGPDHla3+lL/kqq6jznaKriB+eR4pk4aU/140qG7MTLBF4 X-Received: by 2002:aa7:ce09:0:b0:461:5406:20e4 with SMTP id d9-20020aa7ce09000000b00461540620e4mr25707171edv.5.1666797114704; Wed, 26 Oct 2022 08:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666797114; cv=none; d=google.com; s=arc-20160816; b=zmLMUzpkBoJ4QL+uHJkQbOR9LX6B/2GhAC2Qmaz2ERsEFabEyCXC5d4z3AWenwhaO6 j7OB7V+kPK9WfYoCYVKyLO8b3bZA2tC3vZ5eidugVYhqyYeSUO3tbGi7SFdrxMVR8Tuh 57o2WMw3gD5bx3nbwk6H+946eGMGbVY1geZMauiZdkYynSoGAhkBvK1FlIEVGa84tHUw +A8man4nZIu0lgFXSiGN6aqe0hpHdwWSBDemRRDGlXrxb4xIkmKWbXGqNmgY4m7uO35J A23r1kl3io9v/RLHEWbSewhD/X3sZCE3HHc+UFZ5fzbTHMMMjqUOwhCU5dg8f5YH0gCK b2RA== 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=cd4m6VdkiuVydUdI6z+EFi+aeAfdXyBR5Uifg9TU8xY=; b=YJwY3iMDNzJ7L4lUHu7fK+ZG+i8NHg70DPgTjkJrWLmVz2DRnjxBSndIsK2+qa4E9K fUeMn9rbMWDRE4HRkiFgt1k2gHsbGpUT3pFsRyF5g6HFjJ73el2EjsGXSTIvmUMTKyZp z5TcP4iFOnwjOpEUGmqnDWDgwvf7r33ukKrSAAZKCcbTCsq1VEg1SuRDMgcrqjFVD+tC wYhkRM+y97MeFXo8zq+8XgRfqv0legxH+JXhjAxOdKmpyuIrVfzZfJC+QYSX6ZDB12A9 k04VHIwMgGUA9VakfEEr6SyaSfYZNaXc0A3TUHtPlsVQ36RVJENQvPIe/TZk6uSW8tBI pCSQ== 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 qo14-20020a170907874e00b0077b4248b138si2363040ejc.127.2022.10.26.08.11.22; Wed, 26 Oct 2022 08:11:54 -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 S234235AbiJZOSx (ORCPT + 99 others); Wed, 26 Oct 2022 10:18:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234197AbiJZOSw (ORCPT ); Wed, 26 Oct 2022 10:18:52 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 73AD810F891; Wed, 26 Oct 2022 07:18:51 -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 6E72623A; Wed, 26 Oct 2022 07:18:57 -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 A84B33F71A; Wed, 26 Oct 2022 07:18:48 -0700 (PDT) Message-ID: <23503d33-2761-50b5-91dd-4138494e54d5@arm.com> Date: Wed, 26 Oct 2022 15:18:47 +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> <72af1fa4-fa64-7f23-4000-db6d6a9f7f22@quicinc.com> From: Suzuki K Poulose In-Reply-To: <72af1fa4-fa64-7f23-4000-db6d6a9f7f22@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 26/10/2022 09:10, Tao Zhang wrote: > Hi Suzuki, > > 在 10/24/2022 6:02 PM, Suzuki K Poulose 写道: >> 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 ? >> > The function "tpdm_enable_dsb" will only be called when it is checked > that the DSB dataset is present. > > And only the TPDM that supports the DSB dataset will have the DSB TIER > register. > > If the TPDM doesn't support the DSB dataset, this instance should not be > run. Otherwise, it will cause that the incorrect register is accessed. Thanks, this is what happens when you send something that is not queued anywhwere. Please provide a reference tree in the future, for ease of reviewing such things Suzuki