Received: by 10.223.185.116 with SMTP id b49csp6338188wrg; Wed, 28 Feb 2018 07:49:13 -0800 (PST) X-Google-Smtp-Source: AG47ELscqLSDWLFnN817OG1p7OOZFIv9Vww9/5vdJie+PFxZ/AQ8KobFe3sI0Ja32i22Y9E3s9jf X-Received: by 10.99.146.26 with SMTP id o26mr7319244pgd.309.1519832953681; Wed, 28 Feb 2018 07:49:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519832953; cv=none; d=google.com; s=arc-20160816; b=tZbt+V98SsWo84vhQX6ZRZT0CX4gzNiDtZHMHS0/2CH1AdylZEWHppm7XoO3Hp66RV Os6pZZVNNaNwasY2irtmpd+QCOHPQo5bpfy0BFhuOta3+uD7btKTO4kCN7HFT/fNlicP hf6kBwIMaQE482BSHiWPLfUqBVrRlBVqvzKT5MM4EqH8EuG1KUt50mM4Tpr2gcwvIlCN wptwYoYmUMt7y6fCfAuIHB0s/iwry2ASyiItkw+Z5tCz2DP/6JAGp49nVhpn5e18XURp +5j6820W4XQLLzOEVC3ObOs3yJporZK8FPnedLJl9upEvxYzaEYNgzy63RV6jrRnuZtE yrOw== 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=ZTL57iBDm+/TLr5LoS3GJUG+VE8c76MrT0JFGRDJyRs=; b=y3jQdbU7gbRCxsIt4OabOI3TW29cTWMTTEpzUKwPoPSeoddvVPUy6lKJoxOEZlrS6A U+oGeipIAfdVxRfXVCK/tN1XFRn7yYzeNz1NxKvaBRKZfKUCmdkS9vRzmdv7FrWQLAOt BZOVAzFLhhIiJegTalbxzYzyFMWSY2vN4y+/gXRKlB0ciWTXcx54gwhcKQNK0naDQIOD 4/h+3CWSIz/neVgg2LdTxYTg5dnkbr9S9yL9jfv9cO9lssspxKUH67D9KUvJiYlTF/Rk CuDcAQZiaaHiS0TVdypyc3WJHO62g1snS9bxP+WFclSPo2ZKxZOAtjXtDnoJJAntfGY7 VXjg== 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 u2si1162786pgc.321.2018.02.28.07.48.59; Wed, 28 Feb 2018 07:49:13 -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 S933560AbeB1PsX (ORCPT + 99 others); Wed, 28 Feb 2018 10:48:23 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53320 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933530AbeB1PsR (ORCPT ); Wed, 28 Feb 2018 10:48:17 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2F61687ABA; Wed, 28 Feb 2018 15:48:17 +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 E7C6B10B0F4A; Wed, 28 Feb 2018 15:48:11 +0000 (UTC) Date: Wed, 28 Feb 2018 17:48:11 +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: <20180228174635-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> 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.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 28 Feb 2018 15:48:17 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 28 Feb 2018 15:48:17 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 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? -- MST