Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4588627rdb; Fri, 15 Sep 2023 06:52:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSi0iDQS/PWQtjTBJqqMLuODfV6sJPL1E/jk/gmKQf8GbUU4joORqhRRIqgSU6wY01xjmw X-Received: by 2002:a05:6a20:12d1:b0:134:135c:5a23 with SMTP id v17-20020a056a2012d100b00134135c5a23mr5862840pzg.18.1694785930049; Fri, 15 Sep 2023 06:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694785930; cv=none; d=google.com; s=arc-20160816; b=lJTrWTDHl6QULAT/KwGfsDAJJn4qxN85BdIxMwK5o5pVbqV4wLfVLsLgjVol5KnsD8 IjEStwI6TzPfXFYHT8crTiK1g9sAoQ8mrCx7WIpxO9os7qYkAzorEpWkDsCEkqWM4Fac dSJjRfZe/vkgg7mqGj5uQmvKbpABQG9om9SV7jj4I6Wvk0UxFnKUEf3q3jhYt0I9tawi VIe37lrlkKkRsIYtMfL8SN4I1N5FFoRiJPhLrWnJJ+pMTPYMMClJsv2kmnmwk9bHIv6/ uKkV9O0hSlQ8hvTbah7Jvm5kbU2+GmszewZOBbWJznSmD02vJ3uOMoDtOX42VyUXv/hA qL2A== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=MGQ0PkZGkLN9SWsgQWC0prw/bK0njQjk6Jvv4bmEaeY=; fh=TiyvtOtbBVSpDDiL6K/srA6u/0JA+9NTOFODnIw1gow=; b=CwyjGZ2aw6egZly3U4iX9+f5fC+uWPlBSVWhN5yChcFzz5qeFPolJ1gzp/gZX3amFn qzH8YGVz6kJpdOXKI7bvdH7uYSCi3pXxo4jEvZGISpABxLqdDUND+PsTFmRVnDMOiWw0 Adf7WD8EWh8esJYZ6cxS5bguaeRrwpsbI1qmoLrYinJryeCgOHxxQc3S9wTf68M1GElr qfl5fi0/XZuwsb82f9qWoJts3SOvnq7QknZiQDXY+rHhwD+36vGUazBSrap9VINdYEmJ 0h89ULTOsH3cTCmNV8lrajw3zHUD003ZopHA0+ycFWoKmFkVD7i5ERGBl7WLWEU60kMK GWxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id z16-20020a656650000000b0056433b221b9si3188915pgv.477.2023.09.15.06.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 06:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2890680C5CB2; Fri, 15 Sep 2023 06:50:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234736AbjIONur (ORCPT + 99 others); Fri, 15 Sep 2023 09:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234618AbjIONup (ORCPT ); Fri, 15 Sep 2023 09:50:45 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48D791FF5; Fri, 15 Sep 2023 06:50:39 -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 48AA91FB; Fri, 15 Sep 2023 06:51:16 -0700 (PDT) Received: from [192.168.1.3] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5A5D73F67D; Fri, 15 Sep 2023 06:50:37 -0700 (PDT) Message-ID: Date: Fri, 15 Sep 2023 14:50:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC PATCH v3 0/8] Coresight for Kernel panic and watchdog reset Content-Language: en-US To: Linu Cherian , suzuki.poulose@arm.com, mike.leach@linaro.org, leo.yan@linaro.org Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, sgoutham@marvell.com, gcherian@marvell.com References: <20230904050548.28047-1-lcherian@marvell.com> From: James Clark In-Reply-To: <20230904050548.28047-1-lcherian@marvell.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 06:50:52 -0700 (PDT) On 04/09/2023 06:05, Linu Cherian wrote: > This RFC v3 patch series is rebased on v6.5-rc7 and is dependent > on the below two patches. [...] > > Steps for reading trace data captured in previous boot > ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1. cd /sys/bus/coresight/devices/tmc_etrXX/ > > 2. Change to special mode called, read_prevboot. > > #echo 1 > read_prevboot > > 3. Dump trace buffer data to a file, > > #dd if=/dev/tmc_etrXX of=~/cstrace.bin Hi Linu, I left this comment on V2, but I tested it again and get the same result. Instead of linking it I'll just re-paste it here: I made a reserved region, but when I run this command I get "Unable to handle kernel paging request at virtual address 001f1921ed10ffae". Is there an extra step involved if there was no trace captured from a previous panic? I thought I'd just be able to read out uninitialised data. Or is it the uninitialised metadata that's causing this issue? Also that's without KASAN or lockdep turned on. If I have a kernel with either of those things I get a different warning for each one. I expect the lockdep one would happen even in the working scenario though? > > 4. Reset back to normal mode > > #echo 0 > read_prevboot >