Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1201573rda; Mon, 23 Oct 2023 05:56:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFe6QzcsfWuEiPr2s+TDx1lrSpZBQTYQZWsJTVGFwczoB0LPLL5alrkEVVge6bgOvQKG9UX X-Received: by 2002:a05:6a20:72a5:b0:174:7f7:e19f with SMTP id o37-20020a056a2072a500b0017407f7e19fmr8022672pzk.47.1698065770181; Mon, 23 Oct 2023 05:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698065770; cv=none; d=google.com; s=arc-20160816; b=03EpQCcp2SiWBwsnsfqNG7HZfy3CUnf9Dt1pFGe0FyT2kFi8Yxyb5WRtv72dH3NwuB e+mqjJnTTcxz32rlD83UBebOd907tR7SAyb+w17/APuVlsjePm/rzi7K9jhm4pYwfAsh GuoSjyC040Jgj/qhKAydki4SKTi35LDbMv5DvGqLwo8UtHZHyOvkpsh2etQJxHQhid5p /1cxKeSqt06b29QwROTubdTVOVuX+A2EXnss+Yj5rtA/jIGLGSDYn3YR9t1dk23oEW/u zfNAbx+54LgyJOjPaSIBzjHYMqVxk+XteenhxEV8N4acg/3e2enZd4QYx27O2Hm0KPsE DWCg== 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=bauWTuO13BcYojF8Q9XKoja26EpZMbhqGAwdScx4+Xo=; fh=YBgOIU932srd97krgl5mMkTNKMjZcIE+ODqCrOkYe+g=; b=O4oed5wulao9C3gcMNaFzR56S/SAIgmcMqqHobRPQBC0egri6jF7Hjlj2hBF9O0X7q 5GSlK4OS8FcsQRF/Fhjz4KSw0Lze7QBPouVpmxXnbc6276f/gFmJWGwIr5iMedjuFVJz mf6XXauFhcDW9blpvIjNTHMdZEzSieA4tQuagflzACT+5NkRnLoMEI+pynNZp/SxHyG5 kvXoGLdVr11OrGKuhomsbW8SHScqL4wIAXaSIx914fESsbR5g9Wrywa+e61pEmz/yAVn R9YEPv4YJeq1BqABCSQaGiAG2KhTj6m8XTwVflRLCUGews7lM06AkEuCmTXmCKC83G0Q uRtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JdKOH+RD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id m28-20020a638c1c000000b005b7180bc067si6718377pgd.17.2023.10.23.05.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:56:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JdKOH+RD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 15121807D8CB; Mon, 23 Oct 2023 05:55:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbjJWMyx (ORCPT + 99 others); Mon, 23 Oct 2023 08:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbjJWMyv (ORCPT ); Mon, 23 Oct 2023 08:54:51 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FE93102 for ; Mon, 23 Oct 2023 05:54:48 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c504a5e1deso51023781fa.2 for ; Mon, 23 Oct 2023 05:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698065686; x=1698670486; 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=bauWTuO13BcYojF8Q9XKoja26EpZMbhqGAwdScx4+Xo=; b=JdKOH+RDlYDzTx/BRl+rQEt46jvulcwu0uenz3Tj0xOXSXVduyAx9yaQ7Rl3TN0cRE P4ZQoxRb8ve0p2n9T/4JF0R6EEContsCQj3mYxsrIKGKp9+E6eckT+sY6iMDC0lSz6v0 PM+R+7Zl0zZ8HOGCXsFi3H24tTjiVU5om3AnQdFo5pC0rqBaXKmyYYyYJuRnQQ1yD6T6 jaxruCnvdqSMsJwbHfzOrTCPm5uIfkiJOTCDdqxF51viuT8eiWu6uEPrr1zVNaRCBUW+ ttgPisae0Z1ckHFHpGhoSnsUMKCYg4FkwxoGfBsgSgm1PusD1VxzEq98i2Lwt+MkYLhe 8ZpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698065686; x=1698670486; 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=bauWTuO13BcYojF8Q9XKoja26EpZMbhqGAwdScx4+Xo=; b=JzowZmhm9Ct0elkBcrf7zOAnpMnSMq6v/flogO1MgIn2Ku7+vfuhls+2YQmRvRXwCN z217gvMzv3zRuXwZdtU0BLIvaxtYW3eE8BiZn8FcmjKd8IsFgC8YX5fOzmWmsKmnE0zJ XiodF+xfJeQtjzxPnsN+m4jQJHcDSRmaWQNKLqxZ8Lr8+R2nA1MFvZAjg+WvGH7OB+8Q UTJF6fa7nptI/ULhNJgfCBvvcA6kZ6KqKGDUcEcKAt22nFhNcoGJSC7f1L5pldhfUM+N t0gQw0Nd2EC+seXcaUN1Avr9smkZUoLH38Y2eZVhqrDn8bpuJ4GNFWVTQ7egrUNPXm5B 2m6g== X-Gm-Message-State: AOJu0YxWe8GEtbQDTFawyjzg/0Lu7qw0Jrk4tlCIugvtNBdlqp6HiXS6 nnZV5tRvheRFFjNgOoVr1tHq2g== X-Received: by 2002:a2e:a167:0:b0:2c5:12ae:adb3 with SMTP id u7-20020a2ea167000000b002c512aeadb3mr6047586ljl.44.1698065686284; Mon, 23 Oct 2023 05:54:46 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id i21-20020a05600c355500b00405bbfd5d16sm9509384wmq.7.2023.10.23.05.54.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 05:54:45 -0700 (PDT) Message-ID: <2887644a-2286-47f2-ac38-1a9f7b757014@linaro.org> Date: Mon, 23 Oct 2023 14:54:44 +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, konrad.dybcio@linaro.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> <70072874-6fa8-46ba-bf26-c35aa6ec7bb6@linaro.org> <10848e69-b994-b562-d5d3-25a7ca40cb97@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng473E8ZFhXfr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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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:55:18 -0700 (PDT) On 23/10/2023 14:18, Zhenhua Huang wrote: > > > On 2023/10/23 17:25, Krzysztof Kozlowski wrote: >> On 23/10/2023 11:20, Zhenhua Huang wrote: >>> Qualcomm memory dump driver is to cooperate with firmware, providing the >>> 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. >>> >>> 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. >> >> How does it relate to minidump? > > Minidump is used for dumping *software* related data/information. While > the memory dump is used to communicate with firmware to dump *hardware* > related information. I would argue then you should integrate both things... Best regards, Krzysztof