Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4956140rwb; Wed, 21 Sep 2022 00:42:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61FzjnA6O3vMgR1GLoSiFxKJ4gJ5T8tmo6i3nX3EQJfYipnCZjkb72o4FJppKklzz0nYOH X-Received: by 2002:a05:6402:3552:b0:451:2037:639e with SMTP id f18-20020a056402355200b004512037639emr23942025edd.136.1663746149069; Wed, 21 Sep 2022 00:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663746149; cv=none; d=google.com; s=arc-20160816; b=zxsFFYh2/Y4IWNdgPmtgXXy+cCMVbNiZWqbkzs6RliNPHIW4HkahaNlg/OWhDb8/aW 4TVe+B3tqjfJVaDTmadTB5tbJKPSb0fQRpIB0Vsk3Yr4gYI8x8mT0C/yuM1JwXXiIjBS wGZg2wOGproBRzlFRSJ4GK9LbnmfnbkYN9EaXq08+sqffUvUjGqSBCN2liLyX79Ifskh SCyHw3UEBGMzrY8NwU3urGEtOQehsAv4fo17SuWqmUBNKIS93QtE2mcty24ycSkHzH2l +vhX2D/Es8aT4D27Y+Jv7qkBQUaeexy4jQL6AWbxDNeZpAt2WnB5qCMA3KpCNfiXZKAh gJyA== 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=2s5lxGbf4cvyY0Y4pz0pmATsk4vxoVx5/GPuUckLOdk=; b=ySqQhBoiLg0QGK//yGFzB+x6EPHfgK0rfq2xlyiuU6b7xWlWrcm3W/96CjHJ3+ovut aJrmOIEo1D0Wm8z3IVlt3q/pewhJpfpZzYeQOFz9nweJcVsHAmF5FTmxpSmlVc0YAIFe Nfy7q32ChCtW/EUO3Mi9QDu/nPI27Pxu7+z1BKqc3qgL0a/3AZyMO6tfKXk2nHZkOUII oDpBDztl79ncOipfvdrvh28whH9WXki/FZj3G6YAD1bqIkfthoH6hg9Rh1DqQKCVnKJF iQHWXRcYHlHegbf8TkQVfkhwem22L15AEbaVrzFvKHMNhYIfLIzt7FKQAOR/EyDfu8Gm LSjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LuHeP+1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx2-20020a05640222a200b0045251875154si1508905edb.531.2022.09.21.00.42.03; Wed, 21 Sep 2022 00:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LuHeP+1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbiIUH2X (ORCPT + 99 others); Wed, 21 Sep 2022 03:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbiIUH2R (ORCPT ); Wed, 21 Sep 2022 03:28:17 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 742C083BE2 for ; Wed, 21 Sep 2022 00:28:16 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j16so7775695lfg.1 for ; Wed, 21 Sep 2022 00:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=2s5lxGbf4cvyY0Y4pz0pmATsk4vxoVx5/GPuUckLOdk=; b=LuHeP+1tR0AIDRsBxb1Ekcmt+YHYmYvl477n9lTq3EbygeOzZMSO4QZ73Mp0FwrMd5 Op/InV2JCc2lG2J49qqG3H0a2IWx226hi66gfjmPQkm+AOIWssTJe5+8XOk78Xp9Jhwi TqREd5ju/xYEe5rVad7x7Q3vPRskOZ1RK+LeVfdzxw1u2eIpVAvkUcbz8AkhaIa+lwEF gcCcCzVLt6RmYYjGFI+TL+ifvvP4KD73c3Du7wL7p4DSzO5bwkIr9v2CAEypDdoauqsX FMJMwq/0A8Ln0LIdIZgqppfACoc4QEIoZzXbWvAf3GEXkp38KEJGRQTcmfgvk/pHsIEP ixVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=2s5lxGbf4cvyY0Y4pz0pmATsk4vxoVx5/GPuUckLOdk=; b=YSa6BTs36hMk7xCrWU6v0ewOb1FAUkkZ8kzd4H+g5s2cdvSs0sxnDVaDWVGYFqdnR3 eC1j7lZILxNEvYVJa6DvDhXTF1B1CZt3RTHQV07Lz49bWtcmGywtsZehWW1CKaWepYRx qJG5YhIcS90ewoe3hDfYXCGWmzEz0rzHXJlqCYbE5QopfVR0ntZ2Kn5QKMQ/AU/YP5uo NMLxttCurFXabMYzdeZNxC6QodmHlZSlqOvrBs3RELaIZ0wKueTPjIgBXnbpARPBiSp+ F+n4xBwHRwpO6UOu6SGtKIaneVO1LTDPLLmZYM+YiYnXH0ZslbsUeEWj5tkxMxOMPZnp cF8Q== X-Gm-Message-State: ACrzQf1eYgyU1R1jtj2DYza/ux2ZqL6lxsJWiPh6FnDxBX6nEcOdT7lJ SqDlS0DeOfqTnmg1GnVRMpUqMw== X-Received: by 2002:a05:6512:15a5:b0:49a:84f4:9284 with SMTP id bp37-20020a05651215a500b0049a84f49284mr10659192lfb.477.1663745294807; Wed, 21 Sep 2022 00:28:14 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id 6-20020a2e1546000000b0025e4dcc48b1sm320173ljv.19.2022.09.21.00.28.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Sep 2022 00:28:14 -0700 (PDT) Message-ID: Date: Wed, 21 Sep 2022 09:28:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v3 1/8] memory: tegra: Add API for retrieving carveout bounds Content-Language: en-US To: Mikko Perttunen , Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Jonathan Hunter Cc: Mikko Perttunen , Ashish Mhetre , Sameer Pujar , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220920081203.3237744-1-cyndis@kapsi.fi> <20220920081203.3237744-2-cyndis@kapsi.fi> From: Krzysztof Kozlowski In-Reply-To: <20220920081203.3237744-2-cyndis@kapsi.fi> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 20/09/2022 10:11, Mikko Perttunen wrote: > From: Mikko Perttunen > > On Tegra234 NVDEC firmware is loaded from a secure carveout, where it > has been loaded by a bootloader. When booting NVDEC, we need to tell it > the address of this firmware, which we can determine by checking the > starting address of the carveout. As such, add an MC API to query the > bounds of carveouts, and add related information on Tegra234. > > Signed-off-by: Mikko Perttunen > --- > v2: > - Add check for 64-bit phys_addr_t. In practice phys_addr_t > is always 64 bits where this runs, but it avoids warnings in > compile test. > --- > drivers/memory/tegra/mc.c | 25 +++++++++++++++++++++++++ > drivers/memory/tegra/tegra234.c | 5 +++++ > include/soc/tegra/mc.h | 11 +++++++++++ I still need here Thierry's ack. Best regards, Krzysztof