Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3329440iob; Sat, 7 May 2022 02:27:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj0hKEqvaXfbi5pxigLeVdAhRFM6RdgnI4XO07aqbKBawOubqFkLCzY82mqOKY29GdrbgS X-Received: by 2002:a4a:bb10:0:b0:35e:d6a9:3208 with SMTP id f16-20020a4abb10000000b0035ed6a93208mr2488170oop.85.1651915644087; Sat, 07 May 2022 02:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651915644; cv=none; d=google.com; s=arc-20160816; b=xiPn8jxNSw1bimNbt2ygGSG3q1dk+ViiqKbLOf9AnKrQU67d0FLJ6Tyb/zPH2tIKy0 /+JUC4+vfalkb/pwZzDdZhuqN7yVHZZ5EkrQgGiS4gs1dMLs2i1xwF4/1HvmoWl5bj0w ZFbpbA3u6ev5K1394BNohfzvZLvDJVrHu8QVFboEYtNMSJ5ROoZEHdoVsJkEg5zpRq2v Nn9wt44EisnKp4EB+gt8ZV2mPNNO5Jp/ns5fMMIB3UlgUURFJNhLU318Zcx2ZJ6199mv QCNXjbEat5p8KlL/ovkzAEJGPeW95xEUxZorGHUHH9+uBMNd2HDtrzmF2dh6DCkHFuJb SaMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=5IrMMelPNYAhZdnWRkairTdf0eGjAQF/idft+B2jBYw=; b=mX3nbEEL8UfzEO5SM5gPtONSh8VUzovrMgG8zGxODH1CSNZMsms2ZIWmPEGly142Hx wakrf27TIvdZvGg5FY6z05L5GUV8t7GxArGiyyCyUQb2zA0pWgjxB4Tiben5n3jOXZSm TJ6aKqU8DCK1vDe3A7N0SwQbdSVU4wNX/iHeVqINEQXS9bT29Vh4Urll6BW0McS3+G9W 5v1FhprX1ZGhtn0Q5H6qz53XC85E3S3afaOGMq4ZBIDNH6l4xirKKYx7CjF4E3sjDKj1 R9NuodTUNlwbxEP6XGh9/PeqFULUXyjnjUIAxtnBMUD6aNaShy0JTzDGStO2rS0zdbXO lEIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a9d6851000000b00606475b307bsi4643118oto.298.2022.05.07.02.26.55; Sat, 07 May 2022 02:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381185AbiEEPRL convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 May 2022 11:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381199AbiEEPRJ (ORCPT ); Thu, 5 May 2022 11:17:09 -0400 X-Greylist: delayed 902 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 05 May 2022 08:13:28 PDT Received: from mail.actia.se (212-181-117-226.customer.telia.com [212.181.117.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E90A5C35C; Thu, 5 May 2022 08:13:27 -0700 (PDT) Received: from S036ANL.actianordic.se (10.12.31.117) by S035ANL.actianordic.se (10.12.31.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 5 May 2022 16:58:24 +0200 Received: from S036ANL.actianordic.se ([fe80::e13e:1feb:4ea6:ec69]) by S036ANL.actianordic.se ([fe80::e13e:1feb:4ea6:ec69%10]) with mapi id 15.01.2375.024; Thu, 5 May 2022 16:58:24 +0200 From: John Ernberg To: "a.fatoum@pengutronix.de" CC: "andreas@rammhold.de" , "davem@davemloft.net" , "david@sigma-star.at" , "dhowells@redhat.com" , "ebiggers@kernel.org" , "franck.lenormand@nxp.com" , "herbert@gondor.apana.org.au" , "horia.geanta@nxp.com" , "j.luebbe@pengutronix.de" , "jarkko@kernel.org" , "jejb@linux.ibm.com" , "jmorris@namei.org" , "kernel@pengutronix.de" , "keyrings@vger.kernel.org" , "linux-crypto@vger.kernel.org" , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "matthias.schiffer@ew.tq-group.com" , "pankaj.gupta@nxp.com" , "richard@nod.at" , "s.trumtrar@pengutronix.de" , "serge@hallyn.com" , "sumit.garg@linaro.org" , "tharvey@gateworks.com" , "zohar@linux.ibm.com" , John Ernberg Subject: Re: [PATCH v8 0/6] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys Thread-Topic: [PATCH v8 0/6] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys Thread-Index: AQHYYJCRaP1BJI53pkGuwIjy0ObIWw== Date: Thu, 5 May 2022 14:58:23 +0000 Message-ID: <20220505145756.2492566-1-john.ernberg@actia.se> References: <20220428140145.870527-1-a.fatoum@pengutronix.de> In-Reply-To: <20220428140145.870527-1-a.fatoum@pengutronix.de> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.35.1 x-originating-ip: [10.12.12.58] x-esetresult: clean, is OK x-esetid: 37303A293105C852667D6B Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-crypto@vger.kernel.org Gave this a go on iMX8QXP with Linux 5.17.5 and I can't quite get it working. I get -ENODEV from add_key() via keyctl. When I traced it in dmesg I couldn't get an as clear picture as I would like but CAAM (and thus possibly JRs?) initialzing after trusted_key. dmesg snips: [ 1.296772] trusted_key: Job Ring Device allocation for transform failed ... [ 1.799768] caam 31400000.crypto: device ID = 0x0a16040000000100 (Era 9) [ 1.807142] caam 31400000.crypto: job rings = 2, qi = 0 [ 1.822667] caam algorithms registered in /proc/crypto [ 1.830541] caam 31400000.crypto: caam pkc algorithms registered in /proc/crypto [ 1.841807] caam 31400000.crypto: registering rng-caam I didn't quite have the time to get a better trace than that. Best regards // John Ernberg