From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04171C6FD1D for ; Sat, 1 Apr 2023 06:35:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E4DB85FFB; Sat, 1 Apr 2023 08:34:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="jmu6mcSZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 46E5E8608F; Sat, 1 Apr 2023 08:33:19 +0200 (CEST) Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8BEA88603F for ; Sat, 1 Apr 2023 08:33:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-yb1-xb35.google.com with SMTP id e65so29644822ybh.10 for ; Fri, 31 Mar 2023 23:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680330789; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PlxZ/3jY4jBSACc+4z8To1Zk8ZAd0DZAhZ92cipPU70=; b=jmu6mcSZsKMWA0MA+COcDyUR3Wzg5oxGfS/HPqjjaZXYjPuizBfuuSAplF1IxgK58B Kg3b27ZL5G5byVbXsn4ZwaZ+F2tEnpZMhFN6lLmhaUrkZTwwOq/4lF6JvvhEma6/l/Eo DVKb/aaP6X21uAy32N5gbeMz3ey5dAtaFbhnc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680330789; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PlxZ/3jY4jBSACc+4z8To1Zk8ZAd0DZAhZ92cipPU70=; b=PTxWiOngjSDmdg8A4t+K48NLq0KKIf3Yd2L8DXJR7B0lVv4/UcdE+dAa/SGx5FMWYI THCpCkkEXgKFfyZC27/14jR78mvzJ4Taa1jlxvo0aYLnve7HLU0dRXUPmPM0p9D4WE/J /YkVNHVJzKA+HCrEVwMz304Mh5DFsGwU+1l9FaYICuChgFGHflbxfQRGrNOI/oan3Yqo Xz5BoKl/8Hn+NBAGLSq3aAjDpgo2qLTn8WmkUWCB6s6OABvhf6iIjBAgOCt50Fz0OO0T Sczvcr5+aZQLU4kKAaSuXLj3ffNR5M5tKUAFlNxiPorIuSd4CLBSLI54xDB4o5tMbLIp MKtA== X-Gm-Message-State: AAQBX9fTXgBGLJYuJBgs6vOX7NAP0PO5VRGMWb3zTsQm4PIi8KKfXJTZ wAMcLwOxP76PWbiGZByDUfwKduqcVuZ7ph9o6VauROrOL1jvKsYOa+8= X-Google-Smtp-Source: AKy350Yvz5R3FipkmGA36UBtYd+Y0RlpVacxA735v0mXfPkFoyRRHoKXzzieh19aPL6DR29BLELqgQuwTQ9O8Z8IpcU= X-Received: by 2002:a25:24c3:0:b0:a02:a3a6:78fa with SMTP id k186-20020a2524c3000000b00a02a3a678famr15123680ybk.12.1680330788913; Fri, 31 Mar 2023 23:33:08 -0700 (PDT) MIME-Version: 1.0 References: <20230329142500.682922-1-paul.liu@linaro.org> <20230329142500.682922-6-paul.liu@linaro.org> In-Reply-To: <20230329142500.682922-6-paul.liu@linaro.org> From: Simon Glass Date: Sat, 1 Apr 2023 19:32:08 +1300 Message-ID: Subject: Re: [PATCH 5/6] virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM To: "Ying-Chun Liu (PaulLiu)" Cc: u-boot@lists.denx.de, Will Deacon , Bin Meng Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Thu, 30 Mar 2023 at 03:27, Ying-Chun Liu (PaulLiu) wrote: > > From: Will Deacon > > In preparation for bouncing virtio data for devices advertising the > VIRTIO_F_IOMMU_PLATFORM feature, allocate an array of bounce buffer > structures in the vring, one per descriptor. > > Signed-off-by: Will Deacon > [ Paul: pick from the Android tree. Rebase to the upstream ] > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Bin Meng > Link: https://android.googlesource.com/platform/external/u-boot/+/3e052749e7c50c4c1a6014e645ae3b9be3710c07 > --- > drivers/virtio/virtio_ring.c | 25 ++++++++++++++++++++----- > include/virtio_ring.h | 5 ++++- > 2 files changed, 24 insertions(+), 6 deletions(-) Reviewed-by: Simon Glass