Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp334728lqp; Mon, 10 Jun 2024 05:52:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIhaDEuUe3WEHbSSA47uhoci9+kP6V5bSTOT25aeVSCceMwH58aJxUv2hOR5TKBlvpR8sef/nJF6qaPxVmXvMMshpdYm1Glcwpqsh5Mw== X-Google-Smtp-Source: AGHT+IGn7mfVk/sQeeajUtZLxT1e4R+M8kaXEnd8W1Wkm09DYTDi35seLE9LPXHlwUPGlDg7sdG9 X-Received: by 2002:a05:6102:b15:b0:47b:f1ae:9c77 with SMTP id ada2fe7eead31-48c277979afmr11209142137.23.1718023972420; Mon, 10 Jun 2024 05:52:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718023972; cv=pass; d=google.com; s=arc-20160816; b=kZC33sTLBv9KjjJm92YZiIjhUpDbAi/GfuKiMTIYjYPDaGTl/MuTzmqrLlgA0j63Hs OLnwzRZ/yqoJuuSCzQEP97hfCrOW6St6zRkcrX8XyXygf1g3y8kBxW7zAikcPoW/S/sK WSmOoCwzWvaWZ/f3lN0guKL0mh4sJPUHHNE761Mqf43gXPdhD/E0hP7tKxcXHh4NtyNx GTm8pWIe8Oh+Ybq1O8x2v9EmZsazIUjLeWIG6Lurg2uH8vwWGIHNEPS+uzCc3GX97OyR //gqAMdf8TzjJGbl0jx9NFEAvjEJiRU+zziDlki0sb2iMFZ7aGbetSA8oK6PnYgbws6Q Lr1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MNyMG3UNAL6Sc8i1K2Tl8gyCNYCtq54XofHbrxpAG/M=; fh=yhFxtOfcn84dR3z0QhLFnaWC6tt0zj1pdT90TRFX2e4=; b=g6EjrsSGAu3wZJgY48QXp5Xa8Iy9ap2fue7Tk4WBYQ/Vp8zDPl3a9OkIQgNe2MRr3M DPHMQQkdfdwOMaLxlDsa7qR90h4xq7pb/fpWJyGcDK7H2+7nWdPgBwaHW7qq/Ox0BiYG oaaSRs6lBXH01nCug+2+o7IG24oXG3QbNru8/WGwNyFOiSG8v3450KzDc6GUibxdvVRk ZJunHXb3/gFTIXQG42o1Dno5jBFVxs1mmjUgDuj7eWsciU/mO0lw9ld/SVXEEprou8hT cxYLlnE/vP8/g87+uU0r6OHj08yWsY5vRnTtrj+PUSqFnsDJS31k6vPrxJAi8+F6o+JM 7cHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQeiIwpl; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-208184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795331cad69si1073909885a.261.2024.06.10.05.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KQeiIwpl; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-208184-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A5511C21DF6 for ; Mon, 10 Jun 2024 12:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E91A281729; Mon, 10 Jun 2024 12:52:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KQeiIwpl" Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8EB380C1C for ; Mon, 10 Jun 2024 12:52:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023965; cv=none; b=VJtb72HeFnxuFTsaWL2NTbmxerT1WjncmiuBs7336VXhclSgyyT3TdYhyDzS7oGjA+IlM0n805gZ83FuQtA6UNQ/sLI1lyFM89rpbFVK77Vv/deD3TaPnIwT/KSxdP+ELdETTEjKv94ycOpb37lenfh53nGf15W1oVZUGdmTV4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023965; c=relaxed/simple; bh=Pb4ILEn1rx7BaUK688G74zQ8ueGofBspL2NxeMpyZXU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SVhOKU81E31x7ubRID4W+YJji6eaLFBm2jQ+ZJFfLZXY5k0/L0PoF0O4rpnq8byDKsGQp1pY6unkqwWArSaDTiIQ2TAQ3I0dDvnYmHQzqZVss4dq396kqJPgXN95qvNnL41zVW9uCOrdILXK7TxCi/7xBBB8g2UXYq08uU9DgX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KQeiIwpl; arc=none smtp.client-ip=209.85.161.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5b9a5be6668so2249263eaf.1 for ; Mon, 10 Jun 2024 05:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718023963; x=1718628763; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MNyMG3UNAL6Sc8i1K2Tl8gyCNYCtq54XofHbrxpAG/M=; b=KQeiIwplc6apgOu25MCr8dRl7RR+RWss2dc7rZVLhom5KTEHpcoRyMTw/1eOQRTN+O y7O9BlRJwePfyGQXhAMjQway3wfVCaUeUPnRE15Y/ue3nqcJFeXDceogfcS7EhJTfhKu m363niMfsEUW41I1tm9r8lP3bDpeZxNKSx2RNjbyQy2Rgjs9Dp1VVr2UiOw3Z/ik7sYY 3/DWI6s6pd2zwLHxpMcUjw2UeTMbDOFUz4/7/cK8UrG2OIYhphGNCfwSqBGdmq+gju06 25/vz74sPN+92ihK5okPPJETNac6hL8NZZ1nw6OXJgWhXzbY8VxEjyXkTQwi+GH+lTNv 8GGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718023963; x=1718628763; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MNyMG3UNAL6Sc8i1K2Tl8gyCNYCtq54XofHbrxpAG/M=; b=Hk+T+cScX7aW9GsHQLOHvVdxMrkwjSwtsSK6vZYmqe74GOXj0RXqpQmcs9yP5Hc/1k Zp5xsAMtkgzfXaC0fPC17Z8hmRyOxxmi0XlyNY+87y+Zh+Xq7nW+lSGUCiAUMmD0hcBw T17YQWafw/ugBIytygWhnhV6MPTKGcN46J/oLQu7dmqOqMnzngHmQlrAHo/w0XGmjOiL +ajcGFTHzPHHECmT8Qm7uk1jwpdQcfVcduqGIx9ruuvWSp3B7dc5hHN3GouWeT9trGBG Wr0oZH2VW4por5qrxapMjhi4JdF82cLKSQzyuhk9GPqOjOLJOZvXByJIktzXcPbZcT/z cScQ== X-Gm-Message-State: AOJu0YysPIDjAVbpXmmdfGO5hj1IdOItpKyebhVM6UTtmcfHLdS3XCux WPaUw6B0PJk6mI2Mx2gkURlBuoP92mOPdx09V5Vgxq0kW8D83ewF/9BfPc96q8YrFbyZqiaHDSU Z66oYSF4V+ZVI+yD7viprNhOtwI/UHT0yCrhwPg== X-Received: by 2002:a05:6820:1c90:b0:5ba:e2cb:c853 with SMTP id 006d021491bc7-5bae2cbd02cmr4030715eaf.5.1718023962852; Mon, 10 Jun 2024 05:52:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240527121340.3931987-1-jens.wiklander@linaro.org> <20240527121340.3931987-5-jens.wiklander@linaro.org> In-Reply-To: From: Jens Wiklander Date: Mon, 10 Jun 2024 14:52:31 +0200 Message-ID: Subject: Re: [PATCH v7 4/4] optee: probe RPMB device using RPMB subsystem To: Manuel Traut Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, op-tee@lists.trustedfirmware.org, Shyam Saini , Ulf Hansson , Linus Walleij , Jerome Forissier , Sumit Garg , Ilias Apalodimas , Bart Van Assche , Randy Dunlap , Ard Biesheuvel , Arnd Bergmann , Greg Kroah-Hartman , Mikko Rapeli Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Manuel, On Mon, Jun 3, 2024 at 11:10=E2=80=AFAM Manuel Traut wrot= e: > > On 14:13 Mon 27 May , Jens Wiklander wrote: > > --- a/drivers/tee/optee/ffa_abi.c > > +++ b/drivers/tee/optee/ffa_abi.c > > @@ -7,6 +7,7 @@ > > > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -903,6 +904,10 @@ static int optee_ffa_probe(struct ffa_device *ffa_= dev) > > optee->ffa.bottom_half_value =3D U32_MAX; > > optee->rpc_param_count =3D rpc_param_count; > > > > + if (IS_REACHABLE(CONFIG_RPMB) && > > + (sec_caps & OPTEE_FFA_SEC_CAP_RPMB_PROBE)) > > + optee->in_kernel_rpmb_routing =3D true; > > The SEC_CAP_RPMB_PROBE flag seems to be missing in optee_os at the moment= . > If I remove this check here, the series works for me. You're right, I missed pushing those flags to optee_os. I've pushed them no= w. Cheers, Jens