From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-137.mta1.migadu.com [95.215.58.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84D9E3491C9 for ; Tue, 18 Aug 2026 20:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.137 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787084616; cv=none; b=nWLv/ieSinQD+vlWprci/Xy+apNc5ailQjUcBFT5dAh1gu9h7WNW7Ltd/mQN4sTHyj4Yknd5JzucmnMHAdib3GirNiYE8FXgYdDKK9Mh/06UuL+p+aNnXDHN+OeoqoVRHlKOKy/UAPlpfUoRY21+Awcli3Kmam+g4PghH4dW09M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787084616; c=relaxed/simple; bh=AqJeH+5LKRNmRQzJ4ZHVSBjhlvotk7eHnatQlagjm3E=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=Je+PEAGNq1k4y70VEcShntYVoBXe2RQu64icudg00OwmqQr11q2GM7hSVEQSxaqbyx62sK/V+GweCghdKQr3+gJhJRDoSrzgLR15OHRRGbIGeAL0u0iQjrhBJpl8F5uZMmMNJvEfmLjzzcRCDnNO3JM9WCVrejVIw3muc/YefmY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow-tech.com; spf=pass smtp.mailfrom=cknow-tech.com; dkim=pass (2048-bit key) header.d=cknow-tech.com header.i=@cknow-tech.com header.b=EuV0Ut8m; arc=none smtp.client-ip=95.215.58.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow-tech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cknow-tech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cknow-tech.com header.i=@cknow-tech.com header.b="EuV0Ut8m" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=AqJeH+5LKRNmRQzJ4ZHVSBjhlvotk7eHnatQlagjm3E=; c=simple/simple; d=cknow-tech.com; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787084609; v=1; x=1787689409; b=EuV0Ut8m3bx+Jytvwzqdg2h8IEQsQw453LdXkbQtrC3ORpOre07Tbei7lUgOTZi3qUtj+JsH fYOYY6vJhb8ocWkfupU9xrzbw38FuQ4QVsFVN5SKzhuQv4fvzlggrAK1iDo6Ki3inl5TDlsAsPr FsWizV7G/i8RuUEXHSVYaI17hehjI0H+qjZq2Ti9V1D5BHj6/NMsM0XkrD3tdiBASUL2494i4V2 LAOlenuPwemcftck0H1udTkgnPxgDl7zpA6kc6TFyqBbnrEjAOiu4gjs6wn2g/zxHznh9X4cglb EAQ07jyqXAA93/F7oOkavbjtWiwqcIcYsxhsi4yl8E4+g== X-Envelope-To: linux-kernel@vger.kernel.org Received: from localhost (92.254.112.55) by smtp.migadu.com with ESMTPS id 00a65aeb1c26adae; Tue, 18 Aug 2026 20:23:19 +0000 X-Migadu-Flow: FLOW_OUT Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 18 Aug 2026 22:23:18 +0200 Message-Id: Cc: "Dawid Olesinski" , "Herbert Xu" , "David S . Miller" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Heiko Stuebner" , "Corentin Labbe" , , , , , Subject: Re: [PATCH v2 0/4] crypto: rockchip: Add RK356x/RK3588 cryptographic offloader From: "Diederik de Haas" To: "Eric Biggers" , "Diederik de Haas" X-Mailer: aerc 0.22.0-9-ge948bb7230f4 References: <20260708175837.1718437-1-dawidro@gmail.com> <20260818185810.GA7030@quark> <20260818200454.GA2718123@google.com> In-Reply-To: <20260818200454.GA2718123@google.com> On Tue Aug 18, 2026 at 10:04 PM CEST, Eric Biggers wrote: > tcrypt.c reports cycle counts from get_cycles(), which has an > architecture-dependent meaning. On x86_64 it is something approximating > the CPU cycles (3-5 GHz) whereas on arm64 it is the ARM Generic Timer > which tends to be around 24 MHz or so, over 100 times slower than the > actual CPU. So 9044 vs 115 "cycles" for x86_64 vs arm64 sounds about > expected, and they suggest the real times are likely similar but > slightly faster on x86_64 as expected. Phew, thanks for the explanation :-) > This sort of thing is why benchmarks usually should measure real time. > The legacy module tcrypt.c unfortunately uses get_cycles() instead. What would be a better/non-legacy way to test crypto performance? Is that documented somewhere? Cheers, Diederik