Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp617103yba; Wed, 15 May 2019 07:09:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRbKH8Q9Kg+Vi66Wy4c9c6EMZBv9+4Nft6Jy7hTge2OyKHI1tUkpxUOlTO5l3UXRl7FyV0 X-Received: by 2002:a63:36c6:: with SMTP id d189mr30400452pga.8.1557929351002; Wed, 15 May 2019 07:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557929350; cv=none; d=google.com; s=arc-20160816; b=PT4P7SkPMnON5pgKSK4UVE+ldrk4BB+QNuQ+MpZs9AEYtY/9p07bgLf8ZodmMmA78A p1qC4/KOCoI25FL44bhvZqY4WqZx2GXWaQVwmG1fIIRSR4PWGMLb3MpaArTvYxZmoXoE D3bZDQqSDpZrAW/Yvz9oQ5oltjSxXXewCUnWwzvphuQYoICfvi/vqPex1ECKKogLyctz pRmeESjlmCi6pJ8qKIhyW+Y75lCEvaMNdpmsu3NovYV5Z0mGBAfsQ/r0l1MOvuPXAnhK VDsxGCgCW883J6UPFGxu/CWu122Wa2ARMbzvsHzyyfiXRe1Onz49CaK9ydC+DhDC7FUE vmwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JNz8CU4lC0vuNQf0kxetwAnPlZOldE96fJxOcKb9ezY=; b=cwF0yx2GWCStF6L4U2uq9T9klov7KINU/ZdDK/MlCYR20UoVlHh6F9HCe0ngKISpsQ eK6io6HGh4YGisw+2JhqzNlwd3YPVj5uBG/Gpc6o7w8O5rZPv8s2P+1JdJhh9dmedKuP CN0NG8h40o7tbFOWP5/i3cFox3zahEqLHn9O3IvEtNepLy2aCLWSTAg1OaBgNYGTe8Gw qyZs9Y4+nH1xXz+JoWXqIzyAPaw+BDD6oawdLNeY2CB5+OlHXxlllQY+8L/3lGKdT32l MONg/mn29GzR5HIClQzJxwjL+LvgLnxyyXDcExvDLR7EkZ0Ie4nLFRpu3inyygjLFv7E ifnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u15si1899263pgn.177.2019.05.15.07.08.55; Wed, 15 May 2019 07:09:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726999AbfEOOIC (ORCPT + 99 others); Wed, 15 May 2019 10:08:02 -0400 Received: from orcrist.hmeau.com ([5.180.42.13]:37002 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbfEOOIC (ORCPT ); Wed, 15 May 2019 10:08:02 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hQu9A-0004bO-Py; Wed, 15 May 2019 21:40:40 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hQu95-00054E-FJ; Wed, 15 May 2019 21:40:35 +0800 Date: Wed, 15 May 2019 21:40:35 +0800 From: Herbert Xu To: Pascal Van Leeuwen Cc: Christophe Leroy , Eric Biggers , "linux-crypto@vger.kernel.org" Subject: Re: Can scatterlist elements cross page boundary ? Message-ID: <20190515134035.uu3gpmruq5fijnh5@gondor.apana.org.au> References: <798a42c9-bcda-6612-088c-cb90c35a578f@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 15, 2019 at 12:08:45PM +0000, Pascal Van Leeuwen wrote: > Hi Christophe, > > I ran into a similar issue with the Inside Secure driver. > > If I understood correctly, scatter buffers do not need to be enclosed in a single page as long as the scatter buffer as a whole is contiguous in memory. So it can be multiple pages, but then they have to be back-to-back in physical/device memory. > > The latter should be guaranteed by the kernel allocator. Yes this is correct. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt