Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3487454rwj; Mon, 19 Dec 2022 19:59:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXtMoC76Ditzwf7Jnu1Lem4t4k7Zxgd9u+iYiEB5454mY5neCqaTHqbAJ/8VNCSlkBv2EW/0 X-Received: by 2002:a17:906:9f1e:b0:7c0:7d35:e9db with SMTP id fy30-20020a1709069f1e00b007c07d35e9dbmr2036034ejc.15.1671508750507; Mon, 19 Dec 2022 19:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671508750; cv=none; d=google.com; s=arc-20160816; b=jGVYOFuE4jYuSxndE4cwZOIjBFEtkN/0Pj/PH+Dajt267JxGEMbA9xPYaoNNrWSNVL O+acKF5E94UblDG11IHWtHycMVlizTRP+CpX2qn8+PWWbh4AXU624g04/cL0kf280iQ1 vkGVEqsYC09GowPQwttXFq/KtjCq0WaGjwe0PVjZQ8SItJEBXKhXmv8jF4+v/mlaXsxH CdmRKU8Y38NTXjANKRTLCv8OVWTsESQymn4DWgvnBDhATiW2E3V2Ps6J3FoAtF83l/iJ BqIjO/1kLqsSHAJ3TmRAGDiGFySQjV5zYBnhxVD5puN9xosudvAEhplqHLdKXuYwAedf bhzg== 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=AhkJWWGUBYOHtGPi2RSEcj6BqSx6ZlVOd8aDvqMYE9M=; b=s0CBh6T07W/HiVcwLZbPBky3eEn/dql+AvsHDL2Pht+WqmJrmlUcdgbpES+4O0pCe4 6nsY+fnw8vB5zF7GZRTFFk9Lgu+zdhVfyi2Nu86pXZerQbz47aIDWPW+20OxhFV6kIqZ q4b7Lv0lHZIM5I7sp2rK7BOSc2fQDWO8kpG+X+U6himHqD+RGcLd/aFvJUZ3f6zndWLq 9oIAYQ9JFczCgis/f1jcQFuu+wKyWli9z+88bVmk0uFuz5YCUr24rOgFRUlov6fOt6iF aJcQyN+FJgA/NzxSI4m7ig0ZYAW1+yFkT1V02NCTxpQPxk3drRaHwhfJZhFDvdrnnA0c kPxw== 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 qf16-20020a1709077f1000b007e545980769si6560278ejc.738.2022.12.19.19.58.46; Mon, 19 Dec 2022 19:59:10 -0800 (PST) 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 S232054AbiLTDzx (ORCPT + 99 others); Mon, 19 Dec 2022 22:55:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiLTDzu (ORCPT ); Mon, 19 Dec 2022 22:55:50 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB008B1DD; Mon, 19 Dec 2022 19:55:48 -0800 (PST) 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 1p7TjE-008kHh-3m; Tue, 20 Dec 2022 11:55:45 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 20 Dec 2022 11:55:44 +0800 Date: Tue, 20 Dec 2022 11:55:44 +0800 From: Herbert Xu To: Robert Elliott Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] crypto: tcrypt - yield at end of test Message-ID: References: <20221219203733.3063192-1-elliott@hpe.com> <20221219203733.3063192-4-elliott@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221219203733.3063192-4-elliott@hpe.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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-crypto@vger.kernel.org On Mon, Dec 19, 2022 at 02:37:33PM -0600, Robert Elliott wrote: > Call cond_resched() to let the scheduler reschedule the > CPU at the end of each test pass. > > If the kernel is configured with CONFIG_PREEMPT_NONE=y (or > preempt=none is used on the kernel command line), the only > time the scheduler will intervene is when cond_resched() > is called. So, repeated calls to > modprobe tcrypt mode= > > hold the CPU for a long time. > > Signed-off-by: Robert Elliott > --- > crypto/tcrypt.c | 1 + > 1 file changed, 1 insertion(+) I don't really see the point of this. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt