Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp453952rdb; Thu, 5 Oct 2023 10:33:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7kGENRk0OJYLQPM4vzbTZCyeCLTyDD+nSV0sCLIQWPPJC09reCLyyTYbuFxYE+d8kTjSV X-Received: by 2002:a9d:6a50:0:b0:6c4:f91d:2d9c with SMTP id h16-20020a9d6a50000000b006c4f91d2d9cmr5803034otn.23.1696527224876; Thu, 05 Oct 2023 10:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696527224; cv=none; d=google.com; s=arc-20160816; b=AD13s8heYv9zjEVKThpfymK+5vHAtFyakfbr36W2kGhCr2RoKQGNwNyOISCoNM8qhX bvFTrKjKXvddJOoRbUM70gmz79Yl3x97KIueeFNuRmPkf6E67tCGByqFA/NYLp6cR17J TP/FgAP+RCfWlGI78KW4xYmRorwgvEV9RYhgiOk6D8cRx2PlAZVuW1RlqnTegIzn9TVC 1rtDwoV5hTZlbblnO1lLICyuQjFev0l9ub5cg7ObOVq8vjtx89N2Ua/dtKAL9zWMg/mp EdJqX1kyR1YHEGEglr5RyuWtBfsmJaIA9H6qCImFpI1lseqi8nGTqDzaE67ZgpdMC7NZ r49w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5WqzrI7q7VxFVGLhwze896WHc0RJuajZrVNJMhk6uzc=; fh=DX+SgtbUVMvYDf2qrUUurlP5YMeh7LhAi/nyXIQPZo8=; b=NgpXK6HCUqK7RJ/dOiPnXwbSFzURIoSghP44JZipBTaFjFIX7Pege5wWE8SLWYEolq Mct+/p8gIeiFjCJAHmHu27rMS5btVfKpRsV+crbBiEzPc6akC19rrqN7l1IOlfE3BZXH QGujs0XR+pO+8FI6cMt490W0FOOsqBBjifzvDSia5ulhA649FbpFrKB1RVZBcabvyIC0 bzEREXz1CP4TZV1uzUBcdZcmLBJ/orqIEnFFdHMM3WkwDhxjctosDTO/5cgpx/dwaKy8 VS4g9GYhKrIojfbnMqrjPe/RiFoSxErjHwOT23wZjW/IYZxai19lrKDg2wzVVzmD/Y2J 6MVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s63-20020a632c42000000b00578d71884b4si1860848pgs.194.2023.10.05.10.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 10:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D19328345292; Thu, 5 Oct 2023 10:33:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjJERaM (ORCPT + 99 others); Thu, 5 Oct 2023 13:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjJER30 (ORCPT ); Thu, 5 Oct 2023 13:29:26 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6027F3A81; Thu, 5 Oct 2023 10:27:01 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qoLYI-003l8C-Dy; Thu, 05 Oct 2023 18:25:55 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 05 Oct 2023 18:25:58 +0800 Date: Thu, 5 Oct 2023 18:25:58 +0800 From: Herbert Xu To: "Chang S. Bae" Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, ebiggers@kernel.org, x86@kernel.org Subject: Re: [PATCH v2 0/3] crypto: x86/aesni - Improve XTS data type Message-ID: References: <20230925151752.162449-1-chang.seok.bae@intel.com> <20230928072508.218368-1-chang.seok.bae@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928072508.218368-1-chang.seok.bae@intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 10:33:44 -0700 (PDT) On Thu, Sep 28, 2023 at 12:25:05AM -0700, Chang S. Bae wrote: > V1->V2: > * Drop the unnecessary casts (Eric). > * Put the 'Link:' tag right after 'Suggested-by' (Eric). > > --- > > The field within the struct aesni_xts_ctx is currently defined as a > byte array, sized to match the struct crypto_aes_ctx. However, it > actually represents the struct data type. > > To accurately redefine the data type, some adjustments have to be made > to the address alignment code. It involved refactoring the common > alignment code initially, followed by updating the structure's > definition. Finally, the XTS alignment is now performed early in the > process, rather than at every access point. > > This change was suggested during Eric's review of another series > intended to enable an alternative AES implementation [1][2]. I viewed > it as an enhancement to the mainline, independent of the series. > > I have divided these changes into incremental pieces, making them > considerably more reviewable and maintainable. > > The series is based on the cryptodev's master branch: > > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master > > Thanks, > Chang > > [1] https://lore.kernel.org/all/ZFWQ4sZEVu%2FLHq+Q@gmail.com/ > [2] https://lore.kernel.org/all/20230526065414.GB875@sol.localdomain/ > > Chang S. Bae (3): > crypto: x86/aesni - Refactor the common address alignment code > crypto: x86/aesni - Correct the data type in struct aesni_xts_ctx > crypto: x86/aesni - Perform address alignment early for XTS mode > > arch/x86/crypto/aesni-intel_glue.c | 52 ++++++++++++++---------------- > 1 file changed, 25 insertions(+), 27 deletions(-) > > > base-commit: 1c43c0f1f84aa59dfc98ce66f0a67b2922aa7f9d > -- > 2.34.1 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt