Received: by 10.213.65.68 with SMTP id h4csp1210225imn; Wed, 21 Mar 2018 05:32:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELt3jPnvvqcrwGucIdcPPZ2V1stJz6L9fCxv2lyudxHZjOsSNj2x9uGyO3MqKmLJDrppai2N X-Received: by 2002:a17:902:149:: with SMTP id 67-v6mr20909226plb.296.1521635533519; Wed, 21 Mar 2018 05:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521635533; cv=none; d=google.com; s=arc-20160816; b=oDCb07CRTCyLkRn85SpGYDWbLCVUoXLwyWwsdbE1k/r2CVX+55WdRIGjYgVzy4/tUy +YmcuazJM4m+E/W42g7yICRS0HnAPRM2FJTVli9obHjHvTdgF+0erXjszYVUa09iwf88 KOSaFn6nxvBEDs5lu+998eFDp+X8/Y5tNJdAyqFyBg3EmZSL7wuGYDTC/WR1f/ugY1Vt AUcU3Y8sOn6sqozL3mpvaxmpoGSErsuxm/25dHX7LvujBveR3blJGOZouQ+lzzGY9Gdk Fp09yeCDVwPCngPRJohArA1XMHP2QionwpUM8R0RCHPzWhvpGY45qG+mh6yKKhUhZyfH Gipg== 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:arc-authentication-results; bh=peCzQriN6ufM6pB/Y5Rirzvrw0RgkuXiNK6ptk6mTrI=; b=ikkJKMc9givJgIW9MR4ig7cU8zCO1fXKO7LgNOebmHdjlUQEv2yzeIhIudQzhvdDHp zQQ2IA6at9AvfzObrKyEHtewTTu8HIhq6s3dTCZvbwzdZMGiwTtQbj1CvtVntwZiF8br iEE6lQxKIEsrScbLB9n7QkaUTF48Eb70crMYq7qRLIjwr6B86v7rfCc1oEKn+NuWfb28 5rgS799ksnCaIFf86yOFZNzjo/S7Bk8cuVoJxJkQXAZ///3Oh5zix1cGVvWupKv1qNvE c9pNxKAyDz81gRsuKdqbNJts8ye5bPEiMaeZC/RwnCHDLVVZ5ctp0az3xkjXZyhMjZe+ WuCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 d18si2659327pgp.283.2018.03.21.05.31.58; Wed, 21 Mar 2018 05:32:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752031AbeCUM3T (ORCPT + 99 others); Wed, 21 Mar 2018 08:29:19 -0400 Received: from stargate.chelsio.com ([12.32.117.8]:19166 "EHLO stargate.chelsio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbeCUM3R (ORCPT ); Wed, 21 Mar 2018 08:29:17 -0400 Received: from localhost (scalar.blr.asicdesigners.com [10.193.185.94]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id w2LCSm8w024757; Wed, 21 Mar 2018 05:28:49 -0700 Date: Wed, 21 Mar 2018 17:58:08 +0530 From: Rahul Lakkireddy To: David Laight Cc: Thomas Gleixner , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "mingo@redhat.com" , "hpa@zytor.com" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "torvalds@linux-foundation.org" , Ganesh GR , Nirranjan Kirubaharan , Indranil Choudhury Subject: Re: [RFC PATCH 2/3] x86/io: implement 256-bit IO read and write Message-ID: <20180321122807.GB3245@chelsio.com> References: <6ec3e7e0c70e85a804933f27bb4275d5363c044b.1521469118.git.rahul.lakkireddy@chelsio.com> <20180320133206.GB25574@chelsio.com> <5f43882155104f50bbd2e5cf63d432f2@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f43882155104f50bbd2e5cf63d432f2@AcuMS.aculab.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, March 03/20/18, 2018 at 20:10:19 +0530, David Laight wrote: > From: Rahul Lakkireddy > > Sent: 20 March 2018 13:32 > ... > > On High Availability Server, the logs of the failing system must be > > collected as quickly as possible. So, we're concerned with the amount > > of time taken to collect our large on-chip memory. We see improvement > > in doing 256-bit reads at a time. > > Two other options: > > 1) Get the device to DMA into host memory. > Unfortunately, our device doesn't support doing DMA of on-chip memory. > 2) Use mmap() (and vm_iomap_memory() in your driver) to get direct > userspace access to the (I assume) PCIe memory space. > You can then use whatever copy instructions the cpu has. > (Just don't use memcpy().) > We also need to collect this in kernel space i.e. from crash recovery kernel. Thanks, Rahul