Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1236751rda; Mon, 23 Oct 2023 06:50:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEY7JL97Yxrb/CcL/rSNz8S4joR6v0bwvGBey3xY8TJ+Qiv7Yqw5Ztjy71zUHTCu8TyVN74 X-Received: by 2002:a05:6359:5aa:b0:168:e419:f7db with SMTP id ee42-20020a05635905aa00b00168e419f7dbmr1874730rwb.14.1698069031453; Mon, 23 Oct 2023 06:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698069031; cv=none; d=google.com; s=arc-20160816; b=HGK3XUjwuBWzX/NoC0/30Nf2BKTSXwGsyT8gPxL/TbVsbPNxVsg2o58OMGkIyDEPZY kBv88mWaCuuuT3wNdRii1d4/HxikzLxySaiy7TTjMoPe3KIdB2KUnUDSdNtxQU0MYD2p qfzSyNnxMYA8/hFHeP7j6dQOoslQRwkupkR9xNIBMDu/0BXaI6qZIFV0lbUmJWC8R79F HHr0X+zaCXmS4YPeX267YO+xgm8vAA34qe3ih4dXc8Lp/NE5Tn7Ol2cE8DK/BVDU4nlb 5a2TJRGkO5enj6herdyG2yaBTSq+Ui7cHwgil3qchnZLFcITKK8c+JHpUpiAOqn6B/Ma +58w== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=p4dzCg7KZAa1pqs+2lmIym8cEv1bEx0TEnLwptO2/Vg=; fh=QC5v4qlXqYy4VVu3uF0TUduBgHBHsKbmf29g+kkbe18=; b=QQEUxcNsWYlT3oyP+ltX9W5p9ZCUVR5dba2/ckdEOLDyTroiXsj+gyR55ASoh3AAUb ByaiQxsTpB350ucJu4xdpC0yKJr5+ovvXjBHp+VyyMRS7UFKR/4B9mbbhnyIf6MbZ5Tn Px67/Z6BH31uAmij7/0O6ja3Jfj1uUVAwhY8OMgQA7QkwzmuAowdb0QT+V7+wXrEgXp1 3o8m51WFuySxVLMwIHfPaZ6eS8y5Wo2mTv2pfNMAFDOpiVyKChurx4zTKdk++qQE1+Zz wA4tNAyndGofPWQjjcfVUtckhBksnO5WtDo86pFbeQ0pfgYkGucu4VEQYYKFTH+fmdKk jTVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bF6GF3aa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d2-20020a633602000000b005aa5852227fsi6788646pga.622.2023.10.23.06.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 06:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bF6GF3aa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C204F807C5FD; Mon, 23 Oct 2023 06:50:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbjJWNuM (ORCPT + 99 others); Mon, 23 Oct 2023 09:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjJWNuL (ORCPT ); Mon, 23 Oct 2023 09:50:11 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E5F0E5 for ; Mon, 23 Oct 2023 06:50:08 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c5039d4e88so49727521fa.3 for ; Mon, 23 Oct 2023 06:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698069006; x=1698673806; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=p4dzCg7KZAa1pqs+2lmIym8cEv1bEx0TEnLwptO2/Vg=; b=bF6GF3aa+B8fKRZaclavnJeA26/axrIhpi2izruqx39LdI6xayPUjC8KtCXUIYrxAV VlwB+h65a2VcB5WEOvXuY4Vx5cWDYTP84TXmSh09EDJLWMun2FHgyNwWtMKwiAbY+0Ud Elx2aEZPriKRo8UmWP1+mTs//CwBjdyXNN2SlTyIiF2McctxxfL59s91SSF8b1VQoGJW Ilj2cb0iH7SVWcmNzmIaCc6fvg3H2ekWhDoXxbQiaBaN3zZ4vpH62Zfu3PtC5JWBlOT+ m4/DveEhus9AdOluA50XIR5v9JNJ9Zac23t1+HvRGjmRPDyixSfy0AQp37ZhWkHiHwy0 dIVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698069006; x=1698673806; h=content-transfer-encoding:in-reply-to:autocrypt: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=p4dzCg7KZAa1pqs+2lmIym8cEv1bEx0TEnLwptO2/Vg=; b=oo7DfPdeS3d8F2/UKRRpiMgcNfmY7Y+5xb7dM5Howw0wVfFflZ25pv4ctyJFGKb0d7 4Ah9GWpd4KXWGryUO7KqAR9s28fzQGg+PtnGm8rSxc6oyXHSTX2JHPGTmQZIGOr5deai 9NOq5XVbkYrf58I4q3IgpgYRPh63yJkNiL3fgbicWpJMkB7JRlP8OnLEGyuU+gs+bTRx Ya1le+S+8FJk4lU9HoNSrpTJ2SyrsJmGCApl5MZXt/WZ6LuP4y1kF9YhNVLwnP71KpMF TApnMY9k99jwWu7AWgtQyBQexnFsJdh+RY2bDjPGu0RISw7a2WTT3FrNvpdIxrbOZ5B7 Hstw== X-Gm-Message-State: AOJu0YyievpJeV1g51ErQ9O4Zn6tl3mQ70XixcppMOU+Gbey49hV1srK 7Zfl9L70kKJfYaHvdB+UEuPAcQ== X-Received: by 2002:a2e:3c03:0:b0:2c5:2357:be98 with SMTP id j3-20020a2e3c03000000b002c52357be98mr6559362lja.44.1698069006480; Mon, 23 Oct 2023 06:50:06 -0700 (PDT) Received: from [192.168.204.110] (178235177080.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.80]) by smtp.gmail.com with ESMTPSA id c15-20020a2e680f000000b002c504d8260esm1596302lja.24.2023.10.23.06.50.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 06:50:06 -0700 (PDT) Message-ID: <757382c1-142b-454c-b2b5-7ec97bd7328d@linaro.org> Date: Mon, 23 Oct 2023 15:50:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 0/5] soc/arm64: qcom: add initial version of memory dump Content-Language: en-US To: Zhenhua Huang , agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, quic_tingweiz@quicinc.com References: <1698052857-6918-1-git-send-email-quic_zhenhuah@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJSJq3kNG68NjPg2vkP6CMltC/X3ohAo xL2UgwN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COTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <1698052857-6918-1-git-send-email-quic_zhenhuah@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 06:50:22 -0700 (PDT) On 23.10.2023 11:20, Zhenhua Huang wrote: > Qualcomm memory dump driver is to cooperate with firmware, providing the Firmware == The hypervisor? The TZ? Some uncore chip? > hints(id and size) of storing useful debugging information into pre-allocated > memory. Firmware then does the real data capture. The debugging information > includes cache contents, internal memory, registers. Exposing all of the user's data.. Is this enabled by default? > > The driver dynamically reserves memory and provides the hints(dump id and size) > following specified protocols with firmware. After crash and warm reboot, > firmware scans these information and stores contents into reserved memory > accordingly. Firmware then enters into full dump mode which dumps whole DDR > to host through USB. Is that only something that works on engineering / prototype devices? > User then get full dump using PCAT and can parse out these informations. Is PCAT open-source, or at least freely available? > > Dump id and size are provided by bootconfig. The expected format of a > bootconfig file is as follows:- Is it the same bootconfig that Google invented? Wasn't that just key=val? > memory_dump_config { > { > id = > size = > } > } > > for example: > memory_dump_config { > c0_context_dump { > id = 0 > size = 0x800 > } > } > > Test based on 6.6-rc1. That's sorta ancient, especially since you're likely looking to get this merged in 6.8.. -next would probably be a better target. Konrad