Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp636512pxj; Thu, 10 Jun 2021 09:06:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvrpWg3GGeCUNfbDG8Sm3D7wvRBb1geTaL4qHTx1F4ipcR5S5+JFy+eWAN5X2DuF17YZDJ X-Received: by 2002:a17:906:b212:: with SMTP id p18mr307095ejz.109.1623341164848; Thu, 10 Jun 2021 09:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623341164; cv=none; d=google.com; s=arc-20160816; b=SDPas6vv4XgD7HrbzZ3HOoqtFU/LaGMo62bTmPsWk2HytmMMkQu8AUEiXAK7SW4acO z0E/iOqyolbtObOnrW5Dats7Bpp5l3QsITlLZ9b3hzVt/gQA6HTJECbcawm3eKPuD66I Iar+BnHjmCXeBrDkQ4v6KFPUEAQVtoa4kC43Us1S/VRJc9zRdK91ZDmsGo+cJFBrhXOY TAYXvLzrI9cft3EAH6mCYVaL35VZcNA41RfOXZWAQBbL5J/v3UhjA45uHJGQU8/Fsd77 VmGNSBBomxPz9l8+CxrHjyjiXb5nGE7JtkeT6JqmM+2TOACwJKz/rVMcnB8cTKbvUW1g UJ6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=BsrJQj1IntjdC0c1S/fJ/ZHULVTClpe5UsvYYndQkEo=; b=uRgM4NFIKt6tyukvlkHrlq1RSzMxWIzI88Zjr6DOxXMciVk2b5ePyK1sBcr61fZrub AOEgemN81OgHc6hrqKVU+7D/EzBmS/ccEHW5ELCTnKWbeYSquhbEcifMBQAiz3pVkz4W 5nW0N65TRPva0c0NM0b7+EguKKAlF/q3+ldFS7acD06Qn2WvfVHFG2b1sz4t9wlgkfiD oigE7apgUD4X7PS7RRlHOnxAxCGvgBD6wvMf68VujAtixAaIf1cs2NfaB+UoO0blfgck tuFIyL1G2uIiDsq2ibkrKMBZXX0kgzRToKUqmI/jgPkJJHaY13eThjt6W4Wsfnx0jOPx KgRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si2788094edf.406.2021.06.10.09.05.41; Thu, 10 Jun 2021 09:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230117AbhFJQGl (ORCPT + 99 others); Thu, 10 Jun 2021 12:06:41 -0400 Received: from foss.arm.com ([217.140.110.172]:35554 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhFJQGl (ORCPT ); Thu, 10 Jun 2021 12:06:41 -0400 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 91672ED1; Thu, 10 Jun 2021 09:04:44 -0700 (PDT) Received: from [10.57.74.218] (unknown [10.57.74.218]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0A0CB3F719; Thu, 10 Jun 2021 09:04:41 -0700 (PDT) Subject: Re: [PATCH v1 0/3] coresight: Fix for snapshot mode To: Denis Nikitin , Leo Yan Cc: Arnaldo Carvalho de Melo , Mathieu Poirier , Mike Leach , Alexander Shishkin , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Jiri Olsa , Namhyung Kim , Daniel Kiss , Coresight ML , linux-arm-kernel , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org References: <20210528161552.654907-1-leo.yan@linaro.org> From: Suzuki K Poulose Message-ID: <5cf3effb-fccc-9385-6328-6d1e2e5ccdf3@arm.com> Date: Thu, 10 Jun 2021 17:04:40 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Denis On 10/06/2021 07:43, Denis Nikitin wrote: > Hi Leo, > > On Fri, May 28, 2021 at 9:16 AM Leo Yan wrote: >> >> This patch series is to correct the pointer usages for the snapshot >> mode. >> >> Patch 01 allows the AUX trace in the free run mode and only syncs the >> AUX ring buffer when taking snapshot. >> >> Patch 02 is to polish code, it removes the redundant header maintained >> in tmc-etr driver and directly uses pointer perf_output_handle::head. >> >> Patch 03 removes the callback cs_etm_find_snapshot() which wrongly >> calculates the buffer headers; we can simply use the perf's common >> function __auxtrace_mmap__read() for headers calculation. >> >> This patch can be cleanly applied on the mainline kernel with: >> >> commit 97e5bf604b7a ("Merge branch 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu") >> >> And it has been tested on Arm64 Juno board. > > I have verified the patches on Chrome OS Trogdor device. > They fixed the problem discussed in > https://lists.linaro.org/pipermail/coresight/2021-May/006411.html. Are you able to confirm if the patch 3 alone fixes the above issue ? I am not convinced that Patch 1 is necessary. Suzuki