Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp68814lqo; Wed, 27 Mar 2024 07:12:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAXYWImqGhpG45XqS0Wt+yLgy2gz3OWVxYWTNtHmQpY25PHUt4X3+ahmMYDRcInNxKeym2W/U8+1XYKCUjKu9SjviavMVLb43sDbnpDg== X-Google-Smtp-Source: AGHT+IHVCDrwoA4NzETaNyCo+aVhSdNqeU6sI8p/6Q1M6r0aF4TibOxMNXdfunoGH58D1jTH4ceu X-Received: by 2002:a17:906:da83:b0:a4e:e18:2011 with SMTP id xh3-20020a170906da8300b00a4e0e182011mr488985ejb.8.1711548748157; Wed, 27 Mar 2024 07:12:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711548748; cv=pass; d=google.com; s=arc-20160816; b=uZZBmyZihGlZv08NETQfCYXe+AIEOYEukZj1xWWJIMHH7Bk+s7b2cJHTABuSSrvlyK sGruCmJuzNWtnHGHnQm9BDmguJqqTgjDUvI5+CU+MN2gYRNbpwkHV9PQoeUu7GoJ2ano BfxJjbnT5ngiKIyiHqOWUQzbbfHtlf+hV+tEnTivjIgml/Fm7TKz5ifkft1mo/wCUMpd Npkxa9LhLDQqKQCakyyYNaCtkRQm1aSXMZ3WhtbsCAGkG6MQum/G2wwjpeofweUBv0Id vmGCL79VHCvrQkGfJyTP50NBuJON97zzhY43B+uWYulG2rC/udhxvM/b6x+LRWX9clpu m8QQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=c40n/o6hgcvL0saB8/xE9nKL/S8WVbXm71U8p6V6d2Q=; fh=eUq3jpTDujaa9CTA/ODuOCnOd6fBoU51QpnK38jhHCQ=; b=MgNpxUVxm9/SnJe3brfKZAg2qLzuhi/jvtbHJr9vQwKZqQ8ZAbJbGOXvf70MRQelo3 pGqkHc0XkjpvI6kV4jN0F0BbOGXTxkeFToNFrDc1vKefl1qb1HS2c5KS4xtWyhJzds4o 8Gdu6RnNcTfHlI+Vz7uoIwcQFviLsGXrptmRaiRyp2oTbJASPw8gt6k5jS4tTUog4h2A /gv5l7rWcKazXqZcIaJ8/40Ai8eppH9CyJlVkK5elZ8Z/83t8kLc+T/+FLkDMj3h8wpm DRy30IHcyOcfpA9YQYu5Aps9NPdptCUpnDsaJLqEXrWAgQvphs6/0mcAKMyWYj8pvXy/ o/Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LJVQ79+d; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-121293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bh9-20020a170906a0c900b00a4733c1f15dsi4830694ejb.518.2024.03.27.07.12.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 07:12:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LJVQ79+d; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-121293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A3F9C1F2C4EC for ; Wed, 27 Mar 2024 14:12:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEA68144D08; Wed, 27 Mar 2024 12:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="LJVQ79+d" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96BEA13280D; Wed, 27 Mar 2024 12:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543242; cv=none; b=LuB0lykPzK/F+LaNNX7+EWDvo6USPhMx48z4SqkOOYuYxwPCaQ8PhPMa6Prlt96rGBlWSOtOH4C5y6MhLtcqO9r8Hh5/cxeOUsuBNci/Nu8sNyf3P4eib1HX4ruUhlDNsIPEu+pu6fT5yTHVvngQu99OK/D1tYJ0fLmENNsDzX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543242; c=relaxed/simple; bh=Go2MGwGVcRF8lUeW+BNK0qGYRxUUf5O+KQEFEsGmpP8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Wh5GK27hjoC3F1bOys5/FHrq/borzbv8xELQOhd/AFU7n7Gl0ThDN9uxZcI5j+LuxSW5c5rmsx0+qXpBFrs9MiOhKhhAFrNxCQU7GNGEh60RvsFKCsI2WmmGKkcqSJbq0GpP0PRt/f/Er/4wCwj80Cj5pqQ7V31UPCW20tTF0og= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=LJVQ79+d; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711543238; bh=Go2MGwGVcRF8lUeW+BNK0qGYRxUUf5O+KQEFEsGmpP8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LJVQ79+dK0efazRAGk2tpWGFlKyfQydaCTZTnv5YHDxy/JngESoyC3DVlCkdpQXZD JJLYhQdzZV6KPvtPwHrc1ZoPDTK0nNOzteGPCnQMybFmkwVtb8P0cN/OUDipeeuwQ4 R7cOJ6wXMfII1T6Ci0eG21Tmme4cCsKJYY+53Xo1r1vkP4ZQvJZiWFUGCKEJc/XZ2G 6jkY3c4/nWfVLE4B6SUp235J5vtW9K4fcNTtadp1auYewSVRKH/P772pqCh/OQwSz6 4efTPUgFFtgIBP66D8ISaA3BnVskFORrWjuV6miyW258hEtMgF4gJuiOB3cKQcAvXV vkPHoYJbmNSPw== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 389D137811CD; Wed, 27 Mar 2024 12:40:38 +0000 (UTC) Message-ID: <6860673c-927e-446b-98f7-feb9dcae2eb3@collabora.com> Date: Wed, 27 Mar 2024 13:40:37 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] remoteproc: mediatek: Make sure IPI buffer fits in L2TCM To: Mathieu Poirier Cc: andersson@kernel.org, matthias.bgg@gmail.com, tzungbi@kernel.org, tinghan.shen@mediatek.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, kernel@collabora.com References: <20240321084614.45253-1-angelogioacchino.delregno@collabora.com> <20240321084614.45253-2-angelogioacchino.delregno@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 21/03/24 16:25, Mathieu Poirier ha scritto: > Good day, > > On Thu, Mar 21, 2024 at 09:46:13AM +0100, AngeloGioacchino Del Regno wrote: >> The IPI buffer location is read from the firmware that we load to the >> System Companion Processor, and it's not granted that both the SRAM >> (L2TCM) size that is defined in the devicetree node is large enough >> for that, and while this is especially true for multi-core SCP, it's >> still useful to check on single-core variants as well. >> >> Failing to perform this check may make this driver perform R/W >> oeprations out of the L2TCM boundary, resulting (at best) in a > > s/oeprations/operations > > I will fix that when I apply the patch. > Thanks for that. Cheers, Angelo