Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp417580rdg; Tue, 10 Oct 2023 14:28:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3oAwsa76bAnGBjR6iwTNFDRCW/hDIV/ru8GGnupY+ZFOfmWnyJepFJz8VMG0/JZi/c7h2 X-Received: by 2002:a17:902:f7d6:b0:1c9:af6b:af2c with SMTP id h22-20020a170902f7d600b001c9af6baf2cmr2736283plw.20.1696973317602; Tue, 10 Oct 2023 14:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696973317; cv=none; d=google.com; s=arc-20160816; b=1KNSEim9UIPoOXGjn7SO30ZRoM5H0nb+z25xhPZnQgS3wDmWrh8yPPo+n2QU5zZ3hA ZS6Ci9k60w/9lq8u5hg9jEjzEZCBN0VQztvecawckOp0ZDOEPul9mmUuLV2XnRNNmPWa dWhilfgq4V3DBFXtvHWs68LRZoccM6rWiMU+2Opk6l9DMFuiu5ZkLhef7NQb1lMWzJN2 A3gALB5JPQRemAs90zb0wCm57KfsLnmqaq5uRTxVGin8Obj2+bbSyTWNjbnCA6Tkx2xE iKp8Rs8YpAplHpDNh3VnhxkKZmOmX1mIjCLSQ23PcSbgCkLWbRsS4tHiHJCc2tnqZd8/ ptyg== 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=apemo4mafJnoQdOvUmfvzVoj6gatjNwvh2GpddgC7yk=; fh=e8Wew8yjgNeUj/8OJpRBFuA9gfLC0RnU3M/LuPrvwhs=; b=lEiL8VxZAQs7tyKHjc2RCRWwtDS7y6BSkDZR3VctsI6iN66Jj05vq634rHE3Kiisvy 293wreRRTtdUNcpuAJGMBFbgX9ZywKmYinlEjRXs4roS1ltO6P0tE+6Nm0SoHWvMtP7s 958ymibNOndC5K5n95qnTbPQPd6tk1pxKdl13cgCQDWXNOwOiwxB7HdSjDyMsG3/N3VP iR4g+bSrEakEIYGwJ6/6vEn6ZGOsTMVOD42bxcDqqo0eCNPFPuLR2fdHFE6mbWudJjl/ ix2B5TiuA4iumzFdTHv6jjRCZrEl1k1Wu8hVEIQc427P0gymKusVYQ+HY/cJyeG46+nP 0+YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Bg7NakZr; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u16-20020a170902e5d000b001b8a3e851d2si13634462plf.342.2023.10.10.14.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 14:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Bg7NakZr; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D78C380D8FD2; Tue, 10 Oct 2023 14:28:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343941AbjJJV2a (ORCPT + 99 others); Tue, 10 Oct 2023 17:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344087AbjJJV23 (ORCPT ); Tue, 10 Oct 2023 17:28:29 -0400 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D94EC4; Tue, 10 Oct 2023 14:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1696973302; x=1728509302; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=apemo4mafJnoQdOvUmfvzVoj6gatjNwvh2GpddgC7yk=; b=Bg7NakZr1dhDP3yEvj2R/ixIyJPgGgOgXWjoT7ymh3/u6GA/MrxRDjaG mJSr11SeE1O17+5stS1ObhYq1veAqAcusKmAnpbNNYVVbZlZjPKbd7mY9 mIzdwR2wXjByj3iQ2/8c96sB6puJAaoBgby3NhBdIyd/1HZgh9fwp83Ar 8=; X-IronPort-AV: E=Sophos;i="6.03,213,1694736000"; d="scan'208";a="244707872" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2c-m6i4x-d2040ec1.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 21:28:19 +0000 Received: from EX19MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-m6i4x-d2040ec1.us-west-2.amazon.com (Postfix) with ESMTPS id 6C3DD40D40; Tue, 10 Oct 2023 21:28:18 +0000 (UTC) Received: from EX19D020UWC004.ant.amazon.com (10.13.138.149) by EX19MTAUWB001.ant.amazon.com (10.250.64.248) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Tue, 10 Oct 2023 21:28:18 +0000 Received: from [0.0.0.0] (10.253.83.51) by EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Tue, 10 Oct 2023 21:28:15 +0000 Message-ID: <80a54418-5ecb-47f2-8862-2b1097124985@amazon.com> Date: Tue, 10 Oct 2023 23:28:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5] misc: Add Nitro Secure Module driver Content-Language: en-US To: Christophe JAILLET , CC: , Arnd Bergmann , "Greg Kroah-Hartman" , Herbert Xu , Olivia Mackall , "Petre Eftime" , Erdem Meydanlli , Benjamin Herrenschmidt , David Woodhouse , "Michael S . Tsirkin" , Jason Wang , Xuan Zhuo References: <20231010191815.13641-1-graf@amazon.com> <7792f0ce-b6b4-4b20-9725-1792a888297f@wanadoo.fr> From: Alexander Graf In-Reply-To: <7792f0ce-b6b4-4b20-9725-1792a888297f@wanadoo.fr> X-Originating-IP: [10.253.83.51] X-ClientProxiedBy: EX19D045UWA001.ant.amazon.com (10.13.139.83) To EX19D020UWC004.ant.amazon.com (10.13.138.149) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 14: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