From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3B18C77B7D for ; Tue, 18 Apr 2023 15:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232170AbjDRP0q (ORCPT ); Tue, 18 Apr 2023 11:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbjDRP0p (ORCPT ); Tue, 18 Apr 2023 11:26:45 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A3812C90 for ; Tue, 18 Apr 2023 08:26:23 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id u3so22224083ejj.12 for ; Tue, 18 Apr 2023 08:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681831582; x=1684423582; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=s9M4Cy3RAneTyQNPZZI73IssUJ+/tbZ24lCmil8/wy0=; b=htQXPSbwfbKehEj5O/7VedrIOI3id8b1ElfrdoQSSii8SiWKOLqlzSn6hWxhFIS8dg 4oqduLcxCDchk60CK9IA7cQrPgG2/ON/bOhTOkF72rA/FpQq8gkL8nH0c5u/XUvbfwoG Lx1nWaGc9ruXXr9Vks/3SYMXKpEIjNpC3N1/neydjeKlWS/OAOJEvpg/P2djaizMOdDb c7zkFjq7XmHLex1XKayPQHWTKnuyxqHZ420lhoLFaygx5xwDvU5uPIx192J6wf2NyNUs B5Zz/GRuXQcipbrTJf+oyjWtJdDMJsnO7bzm87XX/sdMFXYNn2xkljaBlbJTSAAG9UuB VvDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681831582; x=1684423582; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s9M4Cy3RAneTyQNPZZI73IssUJ+/tbZ24lCmil8/wy0=; b=cj1AuiSA+BPoGVREZ/uBmaqAwLTwrzLNAHDIDdMZTi4eVrbHftgnP7eegvQGCI8KSN bc+6o94yHdYK4u4lcPnMHY5LwawLu/3EdhrnNZFUhrc0N60H5401ioiYFlLH0xNcoiNU JqbG4oh6ENapLNaM4GgDfV+1EgPA3wk+3Fi7nzeABOS96ecSQ2getz70JNGzVRmgexim ZMDNSKbK3dgK26OpJ/FZ6a96mOd9eJnWDk6hrI6jBB60nU0dttit6PKJl1nRanWPKXUM ro2/vg5E99+LX2mwyZsDzC8XfmvpgxT5j1qnT6+L1BneGwvfEnOG+LJWGqoqbC5vpuj8 HBMQ== X-Gm-Message-State: AAQBX9dJ6uw1Q2DuSezbkaaG90p0zvXEE+H7L7Vu7YehDeS1oxWvr/fN WHesZw3yLgSHQbCehJXwOZ6Ajg== X-Google-Smtp-Source: AKy350Y55KT8s6wtLY+JUO1aCm8Wql7NeBtVJbi/L7pgsU7v6MZvKexJNZSfPBUyTFJDx+wtKF8qXQ== X-Received: by 2002:a17:907:918c:b0:94d:f66c:3cdc with SMTP id bp12-20020a170907918c00b0094df66c3cdcmr9596474ejb.51.1681831582049; Tue, 18 Apr 2023 08:26:22 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id gv35-20020a1709072be300b0094f07545d43sm5646849ejc.188.2023.04.18.08.26.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Apr 2023 08:26:21 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2023 16:26:20 +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: [PATCH v2 3/6] docs: qcom: Add qualcomm minidump guide Content-Language: en-US To: Mukesh Ojha , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, corbet@lwn.net, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, Brian Masney References: <1679491817-2498-1-git-send-email-quic_mojha@quicinc.com> <1679491817-2498-4-git-send-email-quic_mojha@quicinc.com> <24ec8534-60a4-b308-0831-9ab6b983d902@linaro.org> <55d3dc01-8909-db69-fbac-60e7636febdc@quicinc.com> From: Srinivas Kandagatla In-Reply-To: <55d3dc01-8909-db69-fbac-60e7636febdc@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On 18/04/2023 16:19, Mukesh Ojha wrote: > +@Brian > > On 4/14/2023 4:01 AM, Srinivas Kandagatla wrote: >> >> >> On 22/03/2023 13:30, Mukesh Ojha wrote: >>> +Dump collection >>> +--------------- >>> + >>> +The solution supports extracting the minidump produced either over >>> USB or >>> +stored to an attached storage device. >>> + >>> +By default, dumps are downloaded via USB to the attached x86_64 machine >>> +running PCAT (Qualcomm tool) software. Upon download, we will see >> >> Are these both PCAT and dexter tools public? > > I think, PCAT comes as part of Qcom Package Kit. yes, this is part of Qualcomm Package Manager. > > Last time, I checked with @Brian, he was saying the they use PCAT > software tool running on x86_64 machine attached to QCOM device to > get the dump(via USB) out of the device. > > Dexter.exe seems private tool, that only requires if we use storage > (via ufs/emmc) to save minidump on the target device itself and later > use adb to pull out the rawdump partition dump and pass it through > dexter to convert it to same binary blobs which we got directly through > PCAT. > > I don't at least have any way to avoid dexter tool at the moment. > However, i will think if we can develop any script which does the > same. That would be nice! --srini > > -- Mukesh > >> >> --srini >>> +a set of binary blobs starts with name md_* in PCAT configured >>> directory >>> +in x86_64 machine, so for above example from the client it will be >>> +md_REGION_A.BIN. This binary blob depends on region content to >>> determine >>> +whether it needs external parser support to get the content of the >>> region, >>> +so for simple plain ASCII text we don't need any parsing and the >>> content >>> +can be seen just opening the binary file. >>> + >>> +To collect the dump to attached storage type, one need to write >>> appropriate >>> +value to IMEM register, in that case dumps are collected in rawdump >>> +partition on the target device itself. >>> + >>> +One need to read the entire rawdump partition and pull out content to >>> +save it onto the attached x86_64 machine over USB. Later, this rawdump >>> +can be pass it to another tool dexter.exe(Qualcomm tool) which converts >>> +this into the similar binary blobs which we have got it when >>> download type >>> +was set to USB i.e a set of registered region as blobs and their name >>> +starts with md_*. >>> -- 2.7.4