Message ID | 20200204095208.269131-20-k.jensen@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=+Gw+=3Y=nongnu.org=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A7ED892A for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 4 Feb 2020 09:55:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E7742087E for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 4 Feb 2020 09:55:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="a5oDYhhT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E7742087E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:55296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1iyuvb-0002pt-MO for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Feb 2020 04:55:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55989) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <k.jensen@samsung.com>) id 1iyusq-0004ZJ-HP for qemu-devel@nongnu.org; Tue, 04 Feb 2020 04:52:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <k.jensen@samsung.com>) id 1iyusp-0007k6-FQ for qemu-devel@nongnu.org; Tue, 04 Feb 2020 04:52:40 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39379) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <k.jensen@samsung.com>) id 1iyusp-0007Iz-9Y for qemu-devel@nongnu.org; Tue, 04 Feb 2020 04:52:39 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200204095228euoutp02eb530756f70395c63cd902dbc7862fda~wKkXLtW7W2946329463euoutp02R for <qemu-devel@nongnu.org>; Tue, 4 Feb 2020 09:52:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200204095228euoutp02eb530756f70395c63cd902dbc7862fda~wKkXLtW7W2946329463euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1580809948; bh=mfUvDxHlnHRvW20FJPrrta98RCok2EM3cc2TPEyj3Zc=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=a5oDYhhTR2pPpv0uS/7E+XaJjxASR7nOOSu6aqIRGtqlnc/+363QvudvMGPleAERb pqHvnJe+FC3nvBDrq8s1wH/kDFNxn9/lZ2XUKDEPY63oTfczTMSW0bTHKSVTiMNbtS NkYiQm3XKMCziIjzrpBTyFSuihgJEIJ8zqiMH5Zg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200204095228eucas1p137cfe587e2106258f919547c5b3be6f7~wKkW8ut8_0251202512eucas1p1b; Tue, 4 Feb 2020 09:52:28 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 95.9E.61286.CDE393E5; Tue, 4 Feb 2020 09:52:28 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200204095227eucas1p2d86cd6abcb66327dc112d58c83664139~wKkWlhNnB2189621896eucas1p2M; Tue, 4 Feb 2020 09:52:27 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200204095227eusmtrp2aa79ed0055e556e3389419acb40dad8e~wKkWk-VRd0487104871eusmtrp2r; Tue, 4 Feb 2020 09:52:27 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-0e-5e393edcf30c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FE.6A.07950.BDE393E5; Tue, 4 Feb 2020 09:52:27 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200204095227eusmtip239e6d654c21cb411f9ebfa37a940e860~wKkWcbWnH2319123191eusmtip2P; Tue, 4 Feb 2020 09:52:27 +0000 (GMT) Received: from CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 4 Feb 2020 09:52:27 +0000 Received: from apples.local (106.110.32.41) by CAMSVWEXC01.scsc.local (106.1.227.71) with Microsoft SMTP Server id 15.0.1320.4 via Frontend Transport; Tue, 4 Feb 2020 09:52:26 +0000 From: Klaus Jensen <k.jensen@samsung.com> To: <qemu-block@nongnu.org> Subject: [PATCH v5 19/26] pci: pass along the return value of dma_memory_rw Date: Tue, 4 Feb 2020 10:52:01 +0100 Message-ID: <20200204095208.269131-20-k.jensen@samsung.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200204095208.269131-1-k.jensen@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRmVeSWpSXmKPExsWy7djPc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SW2StGGFkZ6hpYWekYmlnqGxuaxVkamSvp2NimpOZllqUX6dgl6Ge3v trEVXOWoOPeik6WBsZ29i5GTQ0LAROLovD2MXYxcHEICSxkltje+ZoJIyEh8uvIRqkhY4s+1 LjaIoo+MEn//djFBOKcZJXZtf8cO4exklDjxbBsLSAubgKbE9j//wWwRAWmJ9quTWEFsZoHf jBJ/+gJBbGEBb4nj1/eCxVkEVCSeP7wIZvMKWEvsbzjEDLFaXmJ242k2EJsTJL7qBNBmDqBl VhKtR7khygUlTs58wgIxXlOidftvdghbXqJ562zmCYzCs5CUzUJSNgtJ2QJG5lWMIqmlxbnp ucVGesWJucWleel6yfm5mxiBUbft2M8tOxi73gUfYhTgYFTi4dVwtIgTYk0sK67MPcQowcGs JMJ7Xt8yTog3JbGyKrUoP76oNCe1+BCjKdBvE5mlRJPzgQkhryTe0NTQ3MLS0NzY3NjMQkmc t0PgYIyQQHpiSWp2ampBahFMHxMHp1QD48n1na9qPzI8ebCZ8fKCuPn3287/UmGPPehYXi/K 85RH+vDBFzN1jA7ePnelNubf7ox5jAp9uftL1zLs0DnGdstvy8473hfylujszbwc1W2S9a7V V4iTaeLxkusLmBesCL07+1JTyqMbGv/qDh1bIWTYfXe34cGUkP+id+QLvqtJhHAEzkjc4KXE UpyRaKjFXFScCACvDZgT0AIAAA== X-CMS-MailID: 20200204095227eucas1p2d86cd6abcb66327dc112d58c83664139 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200204095227eucas1p2d86cd6abcb66327dc112d58c83664139 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200204095227eucas1p2d86cd6abcb66327dc112d58c83664139 References: <20200204095208.269131-1-k.jensen@samsung.com> <CGME20200204095227eucas1p2d86cd6abcb66327dc112d58c83664139@eucas1p2.samsung.com> Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 210.118.77.12 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Kevin Wolf <kwolf@redhat.com>, Beata Michalska <beata.michalska@linaro.org>, qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>, Klaus Jensen <its@irrelevant.dk>, Keith Busch <kbusch@kernel.org>, Javier Gonzalez <javier.gonz@samsung.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> |
Series |
nvme: support NVMe v1.3d, SGLs and multiple namespaces
|
expand
|
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 2acd8321af2f..b5013b834b20 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -783,8 +783,7 @@ static inline AddressSpace *pci_get_address_space(PCIDevice *dev) static inline int pci_dma_rw(PCIDevice *dev, dma_addr_t addr, void *buf, dma_addr_t len, DMADirection dir) { - dma_memory_rw(pci_get_address_space(dev), addr, buf, len, dir); - return 0; + return dma_memory_rw(pci_get_address_space(dev), addr, buf, len, dir); } static inline int pci_dma_read(PCIDevice *dev, dma_addr_t addr,