Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1200595rda; Mon, 23 Oct 2023 05:54:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQ7XQuHB7sqEDHPh1cLzvo5Sdc0OgIFVyGbvJ4a2qNletE4Ef/dFDdL0KbBwVrmDzaeHRB X-Received: by 2002:a05:6a00:1704:b0:6bd:8c4a:ab8f with SMTP id h4-20020a056a00170400b006bd8c4aab8fmr8026744pfc.2.1698065645984; Mon, 23 Oct 2023 05:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698065645; cv=none; d=google.com; s=arc-20160816; b=0VRwD3Wt9XFn8w7mYbYPIPUxRc/gKWUIxklujEbRihWJfUAVG+x+JirlIP/Eag5i+4 kMfi0w5yUsnjXLY1/SeXWRmlG+1VDlZdbLv3RrsSHz28NRP5PLaW+MeQKRn5AbgxHujI TqEpv43NbPW+lHANmjOQnVxelfjMC4sRShkrRhfoEJ9uP5eB9K+OS6zCuyRoAG1V/p1B 0sW/9dLqtzdhoIb/00bwdwu1pzI5bC+E6z6T+GLOGvrW4oOKlfOranKA2crJal9mwWmn ljAq4RvOpTSCI2+UtRBK+KuNjBYOm0aXuhoiBfrGMpW29/Gxc/YH5Eqy9wlX+DK6UGOi 0Wng== 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=8TOj21DpFla94B3lrezd2m5FW2M9cR+LJFLebJcZV5s=; fh=YBgOIU932srd97krgl5mMkTNKMjZcIE+ODqCrOkYe+g=; b=ew7rNaPEDK9d3GWM0CAh/NHeyTLIOSFdrFlyjr0XQqglUJp4PatfwqAhFnhdNOukHt ncjE2gjf73g60po0tgh0b32j1occPhFkfvqYljFDAr6WwhLS+F9GJ5UMT97FN9gVRK5u xpt2C2MDq77GYRMu9USl0QQOQTora+V2nVxyMorLbSEu+dom3TJGlvzSBuq7VTB481HD LlF2V10GNkCAG6iemw/HzItusCzxmHDE9WJ2LIMDS7+CZLsvmd73WN83KmSUwx6cjUbq wnJF67l8Q9zGE9kyikJoygMxoWXIH4y49jIA2166i6BftIfqsvdAIPrexuBgd6+11u1Q 32QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z23NC1wV; 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 cm6-20020a056a020a0600b005aa0e024d5esi6846905pgb.656.2023.10.23.05.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:54:05 -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=z23NC1wV; 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 40FF280A7324; Mon, 23 Oct 2023 05:54:03 -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 S229589AbjJWMx4 (ORCPT + 99 others); Mon, 23 Oct 2023 08:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbjJWMxy (ORCPT ); Mon, 23 Oct 2023 08:53:54 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE6D8101 for ; Mon, 23 Oct 2023 05:53:51 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2c501bd6ff1so44639791fa.3 for ; Mon, 23 Oct 2023 05:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698065630; x=1698670430; 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=8TOj21DpFla94B3lrezd2m5FW2M9cR+LJFLebJcZV5s=; b=z23NC1wVaz34BCqtA40QAperMFvZmB7BOxefq4W7hduS3dFmx5J58L7w3aRiNCg/FD zpEjfNcTvoOh3DINOIxlH707OaoojK3f3pJtjHvxIdpyYXzAsP/QTnVvp7k1RZgDbHIx NV9ddqAV7ubFWVUZTo6eR2dwB7uM5ll6RDJ+rvbv25NuPxp43O4XIKMJ5lR2SOm8ea6x +mPubpgJ9tEAODWOqQ+jcFonLHBssDpHixpW6e1xUCzHYXVuIwvqTCAcnCV/NTUZtzoa VQuDGmvJWVnTwHFPQM7zxG542uLr5+HzwipaCXVkAGxe/cVOM/ZrxMjhEKFbA+GG9jox TaeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698065630; x=1698670430; 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=8TOj21DpFla94B3lrezd2m5FW2M9cR+LJFLebJcZV5s=; b=AwA5D2BGrBsr8kpIRjezXy/5LX6p0FeOanmdFDYwxb1E1XJXpUowSvOlQb4F7PkvIF lEAhPyhBYFnlj/LrzgqNH0I0Do0155kLvTzloG9f3J//UkljXEu+QLlM3NQqU4DBEWh0 oy3abNItwewoM7o7ixPjQnei93Wteg9I065Mtc+mx+86DPjCyVyGckstnD9fWeJvZ2B0 lu/EZ/SCHaNfgaqZ7mFvxRVkiwY0t6dEN8R2+47YVMMuMozgCbuZyF5f49Zkxd1afDGs aqrmnZ+KEE/ghjXFMj7w5txPf91z8gEmPHEZ7F5kc7cDcQF+19mBRQPgADpZGbG/1iGz +9iA== X-Gm-Message-State: AOJu0Yxfb8tQZacaOdygit2hjwXFjzYRFPSIP+07RU31R9xl5hSe1Ojl zKT9+v9VoH+hTv/iZfU/hvnoyg== X-Received: by 2002:a05:651c:1413:b0:2c5:cc7:d18a with SMTP id u19-20020a05651c141300b002c50cc7d18amr5649932lje.13.1698065630046; Mon, 23 Oct 2023 05:53:50 -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.53.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 05:53:49 -0700 (PDT) Message-ID: <2c8cc463-84dd-4f28-812d-f5eea922daef@linaro.org> Date: Mon, 23 Oct 2023 14:53:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/5] soc: qcom: memory_dump: Add memory dump driver 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> <1698052857-6918-4-git-send-email-quic_zhenhuah@quicinc.com> <5bac8188-7d27-4efe-9493-dec4393fbeb0@linaro.org> <454c4267-6bb7-456e-8dc1-cba83ffd1641@linaro.org> <1a5b2381-8987-2f92-d018-29fdbc23b826@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 HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6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Q== In-Reply-To: <1a5b2381-8987-2f92-d018-29fdbc23b826@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 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:54:03 -0700 (PDT) On 23/10/2023 14:19, Zhenhua Huang wrote: > > > On 2023/10/23 19:46, Krzysztof Kozlowski wrote: >> On 23/10/2023 13:43, Zhenhua Huang wrote: >>>>> + >>>>> + mem_dump_apply_offset(&dump_vaddr, &phys_addr, >>>>> + size + QCOM_DUMP_DATA_SIZE); >>>>> + if (phys_addr > phys_end_addr) { >>>>> + dev_err_probe(dev, -ENOMEM, "Exceeding allocated region\n"); >>>> >>>> ENOMEM? Does not look right then. >>> >>> ENOMEM means the memory allocated not enough? any suggestion? Thanks. >> >> The error code is okay, but we rarely need to print error messages for >> memory allocation failures. Core prints it already. > > It's not same as below case. Allocation is successful here, while the > driver used more than allocated size. $ man errno ENOMEM means: Not enough space/cannot allocate memory Best regards, Krzysztof