Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp40267pxj; Wed, 16 Jun 2021 19:42:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0DKcuEVhLIgP0bnTZE8slFTR309BSGSr0OksWS/6wi2FsrE4wP+ApkmgFUZzDes+i+Kyg X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr2693063ejb.143.1623897740593; Wed, 16 Jun 2021 19:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623897740; cv=none; d=google.com; s=arc-20160816; b=KbzCgapUb49R0V/zIQpURTSuzCqADSe+vSX2BJdvgNLHRWfwdviVsuQ/4Fh64NoB4+ 5vApHNULri5J9F9quZxxYeSv5ZnVTPrCwa4xChGOKjWX3w3Oa02IF58DQpiynYWcvZLs ecta8T+hLxc74xcYjjPTbUJBPMUHp8TpNWjrLzygFqJCvj/PcsFtX5CF43GUCP2jjFtt yYFkkmSPYizejjUTugzZFZInL0yiLMWnsPh1nkP3QdkKKHkUlWoU8Nj06YIE5R4s1+9U Jo/tdPxXXgPy6oWETNCHbAa5XCVObLqKrbQDsMViM4kHHs8aAih55JIqGUSsFhK7g4UK w36A== 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=kzwC23yl7EiPEJTyDQAXknKKdn4AQMgQSpCxCXmT79o=; b=FYL1iQAmoUzEesOIUMuS8o1/Gip5ds6Uu2AKOJgIHoOoIT0/MTVZL4qoN+B1MhRHD3 AF+rbHoncfMdVg7Ml32N0JXhfHz1I8qb9lqQbsifIHYNL4N808m+svSLUzC6KduWe6A0 2dEwT3a/JPm4iSFIy/LQE+8bpElN4tMp35yzu/7g0N/R6eB/iK083mqEgxk4itccM0cI GvXQ+TdW5SEBV0Jt++xNzhL9/k7QoRUGp3vID6kFexfDevVZ4gRmOfjWu7iH7316hKYx UMkEan7CG1DtVUyohBEFsJmKBNgtCiDUJb5m+Rvbr4PhKCJ0dR8pjhSTieAAFVKGcqyn Rcwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz21si3672531edb.281.2021.06.16.19.41.57; Wed, 16 Jun 2021 19:42:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235043AbhFQAlj (ORCPT + 99 others); Wed, 16 Jun 2021 20:41:39 -0400 Received: from gw.atmark-techno.com ([13.115.124.170]:36994 "EHLO gw.atmark-techno.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235055AbhFQAlh (ORCPT ); Wed, 16 Jun 2021 20:41:37 -0400 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by gw.atmark-techno.com (Postfix) with ESMTPS id 401BC80425 for ; Thu, 17 Jun 2021 09:39:29 +0900 (JST) Received: by mail-pf1-f198.google.com with SMTP id b8-20020a056a000a88b02902e97a71383dso2627418pfl.13 for ; Wed, 16 Jun 2021 17:39:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kzwC23yl7EiPEJTyDQAXknKKdn4AQMgQSpCxCXmT79o=; b=Tl3+KyMjzRWnrjM4krwiZ/sz2ACIPEFneQKMK+IsJBlIJyszjaDRfTtuCjWy0oYKC4 euZSWqly1hBwcqkEGAe5Of27e+R4Ao7RzwZW4xh08Ic/kqWEexdaxBpHMc7E5lp33PC+ ijFVN18E1eBBnFX+5SiUt/jeDqGs1jFuggAiSRQZN9tQlcdo9q3OvuXxeuZMyo+sxDSZ PXU2CfzeJw6ASZaKWkwYnLdJ83T5BLn/2W7vYIH/K0x0BHo02KQKdlOChj0Le9K/03eD fRqurortkEmizfY+mWGS4x9DOcCvsAfVqTlsBacxvBIyyW+XcRLFdBph76ZMYxf1GHo/ SX4Q== X-Gm-Message-State: AOAM531bn+lATOl9DuCyv8TGGR4Jyz6YT46cumI9vZqJOAiCBFs+WiUu NMjH8TP3VzivUkAU0O3ynxoT6V2LFTe+qOYkf9TgefE/3JaLf/fXhmsig5GQrAUMZBvmj5yW/Kg n9dKheyzrGDDsUVcqzFw63imKbbNg X-Received: by 2002:a17:902:bb90:b029:11a:cf7c:997c with SMTP id m16-20020a170902bb90b029011acf7c997cmr2127484pls.80.1623890368374; Wed, 16 Jun 2021 17:39:28 -0700 (PDT) X-Received: by 2002:a17:902:bb90:b029:11a:cf7c:997c with SMTP id m16-20020a170902bb90b029011acf7c997cmr2127467pls.80.1623890368156; Wed, 16 Jun 2021 17:39:28 -0700 (PDT) Received: from pc-0115 (35.112.198.104.bc.googleusercontent.com. [104.198.112.35]) by smtp.gmail.com with ESMTPSA id mg22sm3149090pjb.26.2021.06.16.17.39.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jun 2021 17:39:27 -0700 (PDT) Received: from martinet by pc-0115 with local (Exim 4.94.2) (envelope-from ) id 1ltg45-00FKxj-UT; Thu, 17 Jun 2021 09:39:25 +0900 Date: Thu, 17 Jun 2021 09:39:15 +0900 From: Dominique MARTINET To: Konrad Rzeszutek Wilk Cc: Jianxiong Gao , Konrad Rzeszutek Wilk , Christoph Hellwig , Linus Torvalds , Horia =?utf-8?Q?Geant=C4=83?= , "linux-kernel@vger.kernel.org" , Lukas Hartmann , Aymen Sghaier , Herbert Xu , "David S. Miller" , "linux-crypto@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Marc Orr , Erdem Aktas , Peter Gonda Subject: Re: swiotlb/caamjr regression (Was: [GIT PULL] (swiotlb) stable/for-linus-5.12) Message-ID: References: <2e899de2-4b69-c4b6-33a6-09fb8949d2fd@nxp.com> <20210611062153.GA30906@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Konrad Rzeszutek Wilk wrote on Wed, Jun 16, 2021 at 08:27:39PM -0400: > Thank you for testing that - and this is a bummer indeed. Hm, actually not that surprising if it was working without the offset adjustments and doing non-aligned mappings -- perhaps the nvme code just needs to round the offsets down instead of expecting swiotlb to do it? Note I didn't look at that part of the code at all, so I might be stating the obvious in a way that's difficult to adjust... > Dominique, Horia, > > Are those crypto devices somehow easily available to test out the > patches? The one I have is included in the iMX8MP and iMX8MQ socs, the later is included in the mnt reform and librem 5 and both have evaluation toolkits but I wouldn't quite say they are easy to get... I'm happy to test different patch variants if Horia doesn't beat me to it though, it's not as practical as having the device but don't hesitate to ask if I can run with extra debugs or something. -- Dominique