Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1904772rda; Tue, 24 Oct 2023 06:58:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXwazfMaMaYyPEgelNo2jSCETj39oDcWMzVd7Vw0vcQixw+HOgnz+5z9UwrYRtDF8bMsyK X-Received: by 2002:a17:90a:fe98:b0:27d:8ad:c4e1 with SMTP id co24-20020a17090afe9800b0027d08adc4e1mr11093936pjb.19.1698155915125; Tue, 24 Oct 2023 06:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698155915; cv=none; d=google.com; s=arc-20160816; b=uYK0mPPxkHhaQz9nWczjztJBVdEClBp3yFzOW5qWgDHWq4eAktP7UZ2Q0M4NToGecS hWOXPUBM/q+JOHtrCa6pfzJ8qHGtm+pk/HY8WsLiw3vDHGOFYm6LBbagGZXC41x6l97O 4fru75BOyMEHPpH30GxVkFH3VdNeEy2VF6IRhLpGWheAU344B8cOsJ48dBKNW7gQ04WT dJD719G/WkC7pvRbstJ+tYGRavd0k3GvUfFmPHVhbR511Y+NsKgUQXCLVDXmMJmQkFWv sIs1f2Lq7JKo8H/sDWly61XwI3lgDRCBTQdtwgR2b4KKZAypjCSq5CV9sktlz+ZXM8Dn ydlg== 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=xwuYd5sYrMCGsWOHHrwWAyZKh6dV4sRNYK3tgcSb8O0=; fh=YBgOIU932srd97krgl5mMkTNKMjZcIE+ODqCrOkYe+g=; b=BfEQkVQO8ZKsMYxoBzDArOI4/Na8GOLuRIXldiAnLA/fNusTr8C/+ujrDpXVxuNCeX TQVqW9OXF9aR1H3yngmDOvPIlZttzFWcaxL9f2423cjMpqMcFRaa0Fb4hAANF191yRUV YEN5UlDN9/jH64oq1E3sbq0LNd/6ZKhAaVCJQVdfx3g4I4ZiTZtuUhYx/GuNWhWaa/hO b/X5IM9Km60sJgg//ghob/kYns+npp9YWj2V3EYNV/i7HFDj9HzTd2os4kXmCwXcVW6d /i4Fcijrw2gdhW/jl5AvIqLfDJpcxblGif1G39uXBqa1oTcgApHm5+KO70xErG6QbVCU jnqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v+LZCGfn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id mq8-20020a17090b380800b002773294d636si11725196pjb.103.2023.10.24.06.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v+LZCGfn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 127FD80B1E55; Tue, 24 Oct 2023 06:58:32 -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 S1343540AbjJXN61 (ORCPT + 99 others); Tue, 24 Oct 2023 09:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234753AbjJXN6U (ORCPT ); Tue, 24 Oct 2023 09:58:20 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 833DE110 for ; Tue, 24 Oct 2023 06:58:18 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4083740f92dso37433545e9.3 for ; Tue, 24 Oct 2023 06:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698155897; x=1698760697; 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=xwuYd5sYrMCGsWOHHrwWAyZKh6dV4sRNYK3tgcSb8O0=; b=v+LZCGfneTsqFTMx0lrYKqKHDCLdEvdIJTiHgCv4+IRILA5PSBS3UZ43YZet8AKbni km5vmeE+RObUAvaqBfOo/0t22BeebN9jWJIUtxCjR6QmWC2RVlk5QoDiVj7BEf18DxSC S8E677JvHlxzVmMhm3l51Ul/znAgaaIj/xA9JcC1hCXix6hDnwhFlvGw7MzCXAKzI0sb tvkNxbirBFYdV7VCkRy1qMGVCLKIcG9twuabht+y+XaxHKTKuVTKD443JAh9iyXSNtCQ PM/NC9AUDf8UUAbU/abO5rDeHW10CrCOmH6G/pK37Cb/350h2ocApI3tNLJJcBZzMNIn GL0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698155897; x=1698760697; 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=xwuYd5sYrMCGsWOHHrwWAyZKh6dV4sRNYK3tgcSb8O0=; b=s+N7AKG+znBK+HYs7vS5T//HmzDcx1ZeEijJ2Lv69shEYVXqA+rX+d5kbbLkHVUsPE l54O9Fcji4v2rxIVLkOQ6SuxSWZM0S4NmkmkR0EaUuAJt3+wojBInAhkqsSQF1Wlvpqf RwopTE50rSHTGfDvtZeivPoVV4vGWwJGuNsXdGGiEdCDWxfiWrrGoolVYDA4IugBAvcz czbF5KoyyZ4I/sKbo95XY7DY62D6F7EuNJtCwsOp4ObcC3yyMKGEP7YZar16Vw81HiJa AOPmPXsvGkmCyLwOSgJ3mYaE0X5HylkRobPlM/qwxA3MJvpJF9qYgBnnGjlStZxaMJrS L8ow== X-Gm-Message-State: AOJu0Yw9zvNhsS+es2BVxgA7MJGCLKUptba++rq0CbJ33WN8FFe7muEd DHDMKMRHushUvCYb9UMSaI3kMQ== X-Received: by 2002:adf:e7d2:0:b0:32d:9541:b1e3 with SMTP id e18-20020adfe7d2000000b0032d9541b1e3mr8791941wrn.26.1698155896855; Tue, 24 Oct 2023 06:58:16 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id p17-20020a5d68d1000000b0032d687fd9d0sm9991972wrw.19.2023.10.24.06.58.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Oct 2023 06:58:16 -0700 (PDT) Message-ID: <3431a8aa-714d-4abe-b9a7-cde26615d8d5@linaro.org> Date: Tue, 24 Oct 2023 15:58:14 +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> <2c8cc463-84dd-4f28-812d-f5eea922daef@linaro.org> <45b115e2-9e44-266c-e2ec-751392ce1c21@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+BxMCGwMFCRRfreEFCwkIB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L6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <45b115e2-9e44-266c-e2ec-751392ce1c21@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 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]); Tue, 24 Oct 2023 06:58:32 -0700 (PDT) On 24/10/2023 12:57, Zhenhua Huang wrote: > > > On 2023/10/23 20:53, Krzysztof Kozlowski wrote: >>> 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 > > I think "Not enough space" should be applicable here? To me: not. This is some configuration problem, not lack of mmaped address space or lack of free pages. It's true that NOMEM is also used for limits (e.g. "The process's maximum number of mappings would have been exceeded.", "The process's RLIMIT_DATA limit, described in getrlimit(2), would have been exceeded."), but I am not sure whether this fits this case. Best regards, Krzysztof