Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2340301rdb; Thu, 21 Sep 2023 16:09:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLscB20u7Ke2VvPwT2YMiaa5tOJU0zC2FLatpy+cyCZKKHVbgN73RysHhmVsl30YSxghou X-Received: by 2002:a17:902:efc1:b0:1c4:4a24:dfe2 with SMTP id ja1-20020a170902efc100b001c44a24dfe2mr4894587plb.68.1695337753735; Thu, 21 Sep 2023 16:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695337753; cv=none; d=google.com; s=arc-20160816; b=RWzhZCoM8Zx3dkaxM9mvLtI7LJNBqmMXsYqWnsBEGwY7Epq1Wz+j3480yJCR/eyfJn WcBPtehVE168NE2oFDvwyb3HucKC6ek2uOZfUhMpg9RVFwU/fp6nTWkXolFzyFWUiQlx o2Ksb9/h46Vq2kBQ6FV8YO28qZgULFXnFnx283Eo1EXmy37vLhufHYmjomboIeIqrZUG OuWFvu5wBnbPPQ5fFrfcxyGW8gJ48ekKLBW56mCzGCsKpU102PJTR6qSXkDDHvzGjxfI K+bSegHZjTogjxbJKXYNWQPWGvShSlDmtLYE2Zj7eMHH8CxMb4A65xO6oKkTVCZ6u1PD KRDQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9L+Ayd4AVCY39J9Hxvd6MFEArOTVMascukL1YJniY/w=; fh=YApP0vAPFGT7SOJuXPF6BQ3Gx5dK3ArzinZlO3dRdfQ=; b=BL4syunoq9d7mrD7z3AWUdySr32wLrvklEP4kyQTf4tV5yFOx/pqtpLf9ytqi3UuhQ OkvL4OBHqNdX15R6QsEz/jWpdQbPT0pwK0yo3ZLjN9+USahIcYTvUYyO59g83fY01bqg PKWedW3XyCXHTz2jRdyO41ovKkJs0K6YsZ6xpSw7Wd1UNs1/QHYiooIJ/203UyKvI+D7 LHOz3TxGokB7Bm2TCKanFgA2kkrqaaMYcAc/70Z7BoZ1+Fr2ieVSombLcn/wgp/lWzHJ UKqJNLnL/RFf31wdrKWNfeDQZKzlQL6bUtReRVaMkzIeqmswigvAxHPWw7i60PXldWGk LKuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=of1sp3YR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s3-20020a17090330c300b001bc2c086880si2310280plc.306.2023.09.21.16.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 16:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=of1sp3YR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id A9A4880E7132; Thu, 21 Sep 2023 11:53:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230417AbjIUSxw (ORCPT + 99 others); Thu, 21 Sep 2023 14:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbjIUSxU (ORCPT ); Thu, 21 Sep 2023 14:53:20 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 638EF90A60 for ; Thu, 21 Sep 2023 10:47:02 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50306b2920dso1501753e87.0 for ; Thu, 21 Sep 2023 10:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695318420; x=1695923220; darn=vger.kernel.org; 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=9L+Ayd4AVCY39J9Hxvd6MFEArOTVMascukL1YJniY/w=; b=of1sp3YRm1q3WvbsgMNMeyNdRKRhbJzk0fdYK27meP8H+/AXA5X9fIQmvVoEt9KlZq bHwxuqyOhAKFy/9s9dZKSdfNlqstpH3Dow8315rJ/Gdbuq8JZWCyxjqyPDBppSj4Qt24 3M7aEvTdx09LiC/z4VvvjWkSPgkOpeqD3s54oJO5XpQ47dw1zJOWqY1LRLVt9MWNbXu/ +fyMOhHqy/4od/0ysRIbAT3IBTZds92FZjnW8c0OqhLapzoXGGLIziPgqZoF8Xs3tJle qrgr+1/UbudwToG7oVi/vfPa+Pq/W2Ckh2uMH7oCdnLz9dojFiXp7hdSZAQI924T7vJY 1S3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695318420; x=1695923220; 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=9L+Ayd4AVCY39J9Hxvd6MFEArOTVMascukL1YJniY/w=; b=tb5Xkcny5PcaBL157CAH7P5Ecz8WGRUWy9RV+52mCaWngUAfGr2Z2GiNpKvV6mI0Ri 1RByf6831p83aoC3hotvKtPrhTmgYakK2qRp6FspbBhfEISnZRB3rUllPwg50TvOGyk7 jwLxUE8YQBsvW4Y8gr2xHRu8OZ82yDVLl8d+QVbE2EbkfoSGAfyoHPOQzFt1tjT5Oxdg SWJXtxrwl+SWmb6x9pEgkDHjrMjiSkJd557hnvTv7XPsqSc2BK93DxDXvzc0VO1mF4U5 JsoR0IM865K+JSW+Zv3DGJ0FT9fzzNf5YquAUG8+B5rUsIDYbN/pDPpaOe9QvlDOQY8T 1Eag== X-Gm-Message-State: AOJu0Yz5uvRvbH7WxbSaOEYBv2CfSc2rMHwkhfFHAFT2HxHHEU1PlNw8 q8v3LTC2QsKBbpCo1qfIHOJ0/1XuryWeqoYG3AgXjQ== X-Received: by 2002:a17:907:3e15:b0:9ad:e3fd:d46c with SMTP id hp21-20020a1709073e1500b009ade3fdd46cmr11318009ejc.10.1695280184740; Thu, 21 Sep 2023 00:09:44 -0700 (PDT) Received: from [172.20.15.189] (static-212-193-78-212.thenetworkfactory.nl. [212.78.193.212]) by smtp.gmail.com with ESMTPSA id i13-20020a1709061ccd00b00991faf3810esm594634ejh.146.2023.09.21.00.09.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 00:09:44 -0700 (PDT) Message-ID: <01af3370-1d70-aea4-c808-5a96ecb5ee18@linaro.org> Date: Thu, 21 Sep 2023 09:09:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v3 3/3] soc: qcom: rtmfs: Handle reserved-memory allocation issues Content-Language: en-US To: Bjorn Andersson , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230920-rmtfs-mem-guard-pages-v3-0-305b37219b78@quicinc.com> <20230920-rmtfs-mem-guard-pages-v3-3-305b37219b78@quicinc.com> From: Konrad Dybcio In-Reply-To: <20230920-rmtfs-mem-guard-pages-v3-3-305b37219b78@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:53:56 -0700 (PDT) On 9/21/23 04:37, Bjorn Andersson wrote: > In the even that Linux failed to allocate the reserved memory range > specified in the DeviceTree, the size of the reserved_mem will be 0, > which results in a oops when memory remapping is attempted. > > Detect this and report that the memory region was not found instead. > > Signed-off-by: Bjorn Andersson > --- typo in subject: rtmfs Acked-by: Konrad Dybcio Konrad