Received: by 10.223.185.116 with SMTP id b49csp6433452wrg; Wed, 28 Feb 2018 09:18:47 -0800 (PST) X-Google-Smtp-Source: AH8x224V9+hE7br+qMpRFKNix/wg1jf/ZrvqXz4743jOMrX/nvIafL9927Mrz3GAkwtM7B0pHqZw X-Received: by 10.98.58.129 with SMTP id v1mr18412740pfj.203.1519838327440; Wed, 28 Feb 2018 09:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519838327; cv=none; d=google.com; s=arc-20160816; b=jOncaEtAAI4MrCUnKP67Cct28tKe1ZC/rK7i1DCHzDqGShSEOmQ7vfVsUNrYwEORR0 f78eGbnPwzb0JHygQr0zmWPg6obvlFUi+JipP6bUCdtXKPmOIvcotHX43JlP5I63ykt6 fwlS/qfxMm+kz4ryVTE9kIHf0aDV/ynEVeMp1wEtMrOUgd64Xz+4IHhcHQdw6hpVbaB2 zw56+KtqIFDFFLgyv6jBvO57fuZvX6ghQZ3W1fccS1bNKHaG047TReL7ZASsvM2Q8ihF hR8sKYPjqqBmnhfmM9eyvsAeFAF7q2NshAT3N2KO3m5pxGhBlfLLo8QAN6zaFlZc6e2a HL+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=93q0BgitfRT/AW9BlFZOlIYRQQzyoIq+WEdE2Lm36Og=; b=qlIXMFl68gXK/mAu8LcEcKNjQH/7FM9FAu3zVk6UjMeatasOoUt+KhCEJWGCD6eUnn QiLN4OcYMC0V/E+q3HiST7sV4/gajT5ot6yjvdcUPK1Wy5Mj6M6JtgpWELJ20b/w+ACB BuRdC+LJPlExzcq5Eg/mgiKShItmarTsFydqjgSSICeynwVM1iy4adO1CIIKts5wrCAa eLw4Yq2l8G+TeP6lQHubja25O618wkUxZihn25K8zlAYN3mDwcF4hJWaqKdqS31KKjiO TY3RkuawP02uVQRO0Nn+nTp2S0VnWO2jjE5I1DRHwXYaz6kwHX+4ErxSt3u1uHmXdYin tyGg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si1478086pfg.278.2018.02.28.09.18.32; Wed, 28 Feb 2018 09:18:47 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933577AbeB1RQm (ORCPT + 99 others); Wed, 28 Feb 2018 12:16:42 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57066 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752679AbeB1RQl (ORCPT ); Wed, 28 Feb 2018 12:16:41 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C7753814DF58; Wed, 28 Feb 2018 17:16:40 +0000 (UTC) Received: from redhat.com (ovpn-123-220.rdu2.redhat.com [10.10.123.220]) by smtp.corp.redhat.com (Postfix) with ESMTP id DAF0F9C04D; Wed, 28 Feb 2018 17:16:35 +0000 (UTC) Date: Wed, 28 Feb 2018 19:16:35 +0200 From: "Michael S. Tsirkin" To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Cc: Linux Kernel Mailing List , Sergio Lopez Pascual , Baoquan He , "Somlo, Gabriel" , xiaolong.ye@intel.com Subject: Re: [PATCH v15 11/11] RFC: fw_cfg: do DMA read operation Message-ID: <20180228191553-mutt-send-email-mst@kernel.org> References: <20180215213312.29234-1-marcandre.lureau@redhat.com> <20180215213312.29234-12-marcandre.lureau@redhat.com> <20180227020104-mutt-send-email-mst@kernel.org> <20180228173444-mutt-send-email-mst@kernel.org> <20180228174635-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 28 Feb 2018 17:16:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 28 Feb 2018 17:16:40 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 05:00:58PM +0100, Marc-Andr? Lureau wrote: > Hi > > On Wed, Feb 28, 2018 at 4:48 PM, Michael S. Tsirkin wrote: > > On Wed, Feb 28, 2018 at 04:41:51PM +0100, Marc-Andr? Lureau wrote: > >> I don't know if it's always safe to enable dma in read_raw(), how > >> could we know? Is there a check we could use to choose one or ther > >> other (and thus avoiding explicit dma/readfn argument)? > > > > I'm not sure - but does it really matter? Is anyone reading large files > > like this in production where speed matters? > > Why even bother with DMA? > > The difference is quite significante for not so small files, as shown above. > > And if they access the fw_cfg entries at boot time, or when starting > things etc, this may speed things up. Question would be whether anyone at all does this. -- MST