Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp359709rdh; Sat, 23 Sep 2023 13:50:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvCnqRqu4VaNaXGNpQYXFAQNdMKmKOPokAev6BMrINqhHVfTbXIsPQ8apdffTSe0FJSWwU X-Received: by 2002:aca:2305:0:b0:3a7:540f:ca96 with SMTP id e5-20020aca2305000000b003a7540fca96mr3684939oie.4.1695502235878; Sat, 23 Sep 2023 13:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695502235; cv=none; d=google.com; s=arc-20160816; b=ISs3Ipy2Q2yodnpTeN1RohfmKt6WpFRJq/90HzTER2xIFpD15k4kGEDHLk8D5faDc9 imsc90Nzh30OcB8zCBaBNCQ1qB8/khJ+xm8XomCDqT7bNC37OD5R9F6EcWbWtjYcrE1V WxoOnCFGgZDlfCvd3mGDjS5rYEFKcujGi1b2uG+7ts6R6wj+2I17k+t3g4HOQJADdXC1 G52Vjp1FF82mkErPF8HXj0wDwcNOPc0baUB11QQZQ1Hwe+KPTcZAHuW3e8kH8mandwx+ DATZVhqtpr/OPq3BdsUzJUNYuI/SPGi0hAPT76aOZBDo9B+fid0Mi5dMJFEMihA6Lv0j VwaQ== 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=zpKk21cNUHADpHved85Mc4llwz1lMTxoOCJMbiwCyKA=; fh=Y+x0CvleNHN6XoO1BbBd7YHmJqOc9rknX48nQwsw5+M=; b=tZzDDlxzVh8B/bpCYjnFUmbP4D0yb9eTbaKHfFaSEA5sAsnrTxZ5snf3RCGrJiB022 Le5AaJ80R/J6c2bmCpggE8qYRGJ/VK+1kv9rfII4rYa5zs6X7hbn2C9uUvi44D1xKlLZ evJVJ7O5SX0zVMvlVZKtsPoU1/gIyCNHsmZEeV2u5eGjTDBlR1bZ5Be14WcW1YLAPWkK kNa3oxuzeNzyd03BNnJ3yJ9K4ILVj0CdjhB8UGlya+VcZLE7PVdhEmCCKK7OkgodCgzx 1ockgT25SCIAbbqWrDytgFU40spyl9X/Fs1BpcjCSErwSkIUxT4Ftn0bnqFhG455pjKQ wGOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jUveVYLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kq7-20020a170903284700b001bdd1f48f91si6289806plb.564.2023.09.23.13.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 13:50:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jUveVYLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id E9D6180879C5; Sat, 23 Sep 2023 10:46:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbjIWRqM (ORCPT + 99 others); Sat, 23 Sep 2023 13:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232006AbjIWRqL (ORCPT ); Sat, 23 Sep 2023 13:46:11 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D02136 for ; Sat, 23 Sep 2023 10:46:04 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-532aaba8747so4727910a12.3 for ; Sat, 23 Sep 2023 10:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695491163; x=1696095963; 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=zpKk21cNUHADpHved85Mc4llwz1lMTxoOCJMbiwCyKA=; b=jUveVYLaTDRThjLRrEMWOdk4MUEuUdHNVyFxMLDdVcSan3R4wxY99zm6zUXXYPfuiU Q1W9kKabVn/u3RArr+6yf7MEJGQp9WQREuL0iUyLo9Q1rbk3B2Uc+6xihquUiP8EziIa sgdgnHYVReK9uqiTWRNlyCwaaTWZitmxTka2T1F3NF3BPA0qjiouExjNckDijPLigfCq i7CIJKm1m9fuQapqlh9fHK8tUv+FPt8X6RYSx3N4Iqy8vnDErO6CGtk110Oz5WyX7mat g8cO2d3dRygZeP9whkCKVTJF/TBkwOvGoM/L15+ZQdPu/0S8BeNq0lLH39SutSYzmQy5 0H5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695491163; x=1696095963; 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=zpKk21cNUHADpHved85Mc4llwz1lMTxoOCJMbiwCyKA=; b=OuQGerDk6HSsRdxmPsccv5cQBktqDtj7izP6+EpyNMASlgUEYOe+s8rqDSj1us7RWl o+WE5d7+pFfhHXtpL/8sd8TPn3mxPkv2KpkhEG3v5p6hzpdzQpUCIOL6E2kT9AUr+pI7 8hQH/POO1tk+EK3luD9WSzg9EFsBIdUwwmgrxR/Qw3zuAoFgH+pZtQsKAIoolRo7WUhG NVI1rg5qj6qtu+H+otRoI985xnvshZyKorCHcVhSVnFnpOh5UdMvoquyhHT9PcsRq/fi UqZz026Ck3TBXeof8CW8Q9Q3Sf69rh/S974Dha6uFQqpMEVK6jmea45ooBWLKZ+pSVj1 m28Q== X-Gm-Message-State: AOJu0YzVFcXf2Rpt6DozM+NYHL//ToOrvwOolTOtm/L6y8tm4CgcIlBR hyvdgW7NIi5UghzAVjYiT73ROw== X-Received: by 2002:aa7:c318:0:b0:525:442b:6068 with SMTP id l24-20020aa7c318000000b00525442b6068mr2340355edq.13.1695491163142; Sat, 23 Sep 2023 10:46:03 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.100]) by smtp.gmail.com with ESMTPSA id fi9-20020a056402550900b00533bab9d9f1sm962586edb.1.2023.09.23.10.46.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Sep 2023 10:46:02 -0700 (PDT) Message-ID: <8d7672a6-67e9-f983-b22f-37f1ee47f125@linaro.org> Date: Sat, 23 Sep 2023 19:46:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v3 1/3] dt-bindings: reserved-memory: rmtfs: Allow guard pages Content-Language: en-US To: Bjorn Andersson , Andy Gross , Bjorn Andersson , Konrad Dybcio , 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-1-305b37219b78@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20230920-rmtfs-mem-guard-pages-v3-1-305b37219b78@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sat, 23 Sep 2023 10:46:12 -0700 (PDT) X-Spam-Level: * On 21/09/2023 04:37, Bjorn Andersson wrote: > On some Qualcomm platforms the firwmare, or hardware, does not > gracefully handle memory protection of the rmtfs memory region when > placed adjacent to other protected region. Some DeviceTree authors have > worked around this issue by explicitly reserving the space around the > region, but this prevents such author to use rely on the OS to place the > region, through the use of "size" (instead of a fixed location). > Reviewed-by: Krzysztof Kozlowski > + > + When this is set, the first and last 4kB should be left unused, and the > + effective size of the region will thereby shrink with 8kB. Maybe we should not reference the actual size (4 and 8 kB), but rather page - "the first and last pages in mapping should be left unused ..." etc? Best regards, Krzysztof