Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp835752lqj; Mon, 3 Jun 2024 02:10:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7UTixFDcVm2sQVA1iAMBX67lodyTFsRqWO7w1hBVrzmthfw17z2WvEBQBAWSs/kAhlR578z6regxJFfW5/ASGIPvRn60SnpD8l4+n/A== X-Google-Smtp-Source: AGHT+IFhgb2tTAz8ZmafwWIDYKn7DEd7OX3rCmcF3Sc7kIaGC13LoxkN70gMBNizad7ZKg5N6r47 X-Received: by 2002:aca:c45:0:b0:3d1:d44a:a342 with SMTP id 5614622812f47-3d1e35c4a29mr8676432b6e.53.1717405825749; Mon, 03 Jun 2024 02:10:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717405825; cv=pass; d=google.com; s=arc-20160816; b=cMccXCbzzqQHNdDDs2+S5lHdqy8epCwy31LhziUYue776rorefEW3/9HI1GhMvunne 1o394UhQmEfjyKflYnXqaKcd7bXo+05zc1QCA3hOHVgL3y3MUWBW8KfFdZY16BTJltHd /Poa7K95JcgRLNrqzIIdnDKvAWbJSviCNelAwber5CHizMTNgl0RvVEhL5UxJHMzrTBk Pi9nb4nSGF6W6zbIBYTNiNsto1r3XmRM8JTGzw7JV3tO87vabbjobzYVEbdqDs6wBnW9 PKC10GAIWEGP7ljlZUOiL46Ohwe77sjb/Ca7kNwjIelhWPEfht1DNrESL17Th9HWmnzL ORNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wB6f1Nb31Di89MCKRjVrkz9LZOtmyEp1NvyS+oLpRbY=; fh=cyAE2v8R3MBCi3v0IbgyOwDnd+skax/emGw0UnfOIQM=; b=nyINQ6sn0cPq+qUR9BSYKqTmPL9kHUvpJSFmcNN92U7icbN6HZQbGN6N6eDjGyMTG/ /knEEmM3Jn852UjI+sYZdwZlcKQz5OaOPXYneGYZeavY70H6VEZi2j1Io8ilYt0Uup1k AmziY7NDa3uQeaHV4ws4sNaFwarK3ZHmZWzNyQV4Kordoxjhkr+YreRRt4UiKo9rfEZm H70vs39W0GqYrYqVBXdS5oR6uEZKkcCy/vgFD9+ikhmE3egmp5lwyMwOJ5MwHhaObqYd vMRmeWKRYOdCDXo3UBdDo+JV2tpD4cGu/g8D7M0RWotYaDTtQDQl3XAC8rsfNPU+QnsW bQzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@mecka.net header.s=2016.11 header.b=rekliKSH; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-198839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198839-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff23d9207si83662551cf.170.2024.06.03.02.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@mecka.net header.s=2016.11 header.b=rekliKSH; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-198839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198839-linux.lists.archive=gmail.com@vger.kernel.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 7216F1C2135A for ; Mon, 3 Jun 2024 09:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0480A7E574; Mon, 3 Jun 2024 09:10:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mecka.net header.i=@mecka.net header.b="rekliKSH" Received: from mecka.net (mecka.net [159.69.159.214]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 686DF58AA5; Mon, 3 Jun 2024 09:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.159.214 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717405817; cv=none; b=qoibs/JNk9pu6sDSBqrbmVIeocDL5WbkGOqIMre6ZdyHNBX7QHwGK9sNcuMrwCnbH64dGILiwc+NcLBTPfvaj4Y1bBYWNmbH2+Gb5q84+IL5x79z559CuYE12GSMACTlypMYj7KVAdZWDrUGVYNO46NMk7V9QwvSnCgM4JXOVQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717405817; c=relaxed/simple; bh=oS5YZddoPc4pdpbHd3+FPlRMuiMilpWAdNoYT9363KQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s8Kop4M+fP1OtDp8LWnmZcHt6IePm6f+UwSiqSsCgb590mAvkWDE6bENTBkpuAOV4irhUHDThUZWiG7N/L0Cgth98jdlhPld2ujCxeu24y6dQ5X/KGyaRCV80ROPh3qMTsAWfQNFcGeAST6S2MmUilAJEQ/D/dgJ5TLomSMyZXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mecka.net; spf=none smtp.mailfrom=manut.de; dkim=fail (0-bit key) header.d=mecka.net header.i=@mecka.net header.b=rekliKSH reason="key not found in DNS"; arc=none smtp.client-ip=159.69.159.214 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mecka.net Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=manut.de DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mecka.net; s=2016.11; t=1717405805; bh=oS5YZddoPc4pdpbHd3+FPlRMuiMilpWAdNoYT9363KQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rekliKSHCind4MUrk/8G3AJXqOlSTrnFhXiuGX+m/TIb4xl0QB5r8M0485lu/JRgJ 2+rS0xnduZ2+v61t76tL4Fx2Bd6CiBENRrnfUf7KgAdUZVmP7dRZ8ay8XcXhEukglT 6r/n3gwigb7u8DXX2YTT3VMfBLbWv8FcNX0tsKt1IfpF7XCaQZa9LQ0QvE7kd3EHHO WtpWHUkGmmShUxuHqq1Pjzqs0Ry2q2RJIRpvv9nvY5ce95LOKhi87fQ/pbI9RcAkVL MMAzWh1dxEYSmKvhjTz8MyWiNC+Jbxfq38FZxblWsWqhYThWvC8KldhiMwnt5A8bCG Fjrn2atMya2gg== Received: by mecka.net (Postfix, from userid 1000) id A46F950F212; Mon, 3 Jun 2024 11:10:05 +0200 (CEST) Date: Mon, 3 Jun 2024 11:10:05 +0200 From: Manuel Traut To: Jens Wiklander 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 Subject: Re: [PATCH v7 4/4] optee: probe RPMB device using RPMB subsystem Message-ID: References: <20240527121340.3931987-1-jens.wiklander@linaro.org> <20240527121340.3931987-5-jens.wiklander@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240527121340.3931987-5-jens.wiklander@linaro.org> 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 = U32_MAX; > optee->rpc_param_count = rpc_param_count; > > + if (IS_REACHABLE(CONFIG_RPMB) && > + (sec_caps & OPTEE_FFA_SEC_CAP_RPMB_PROBE)) > + optee->in_kernel_rpmb_routing = 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. Cheers Manuel