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 42FF3C6FD1D for ; Sat, 1 Apr 2023 06:34:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D41B386025; Sat, 1 Apr 2023 08:33:06 +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="izBXFi1l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 609F185FF7; Sat, 1 Apr 2023 08:32:23 +0200 (CEST) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 C5EA685FF6 for ; Sat, 1 Apr 2023 08:32:16 +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-ed1-x532.google.com with SMTP id r11so98151837edd.5 for ; Fri, 31 Mar 2023 23:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680330736; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VZle7TWmjQycH6pyEWrWfJ6N6KWuBS/IrobiebXqYRA=; b=izBXFi1lBfD9zzsWhbtWPU6Mb8xzrWldU7bUpQ5aPZxt4qqb1xLiIw+0cct4/APObi ojsS12+DYYs5BnwtIwVI0E2Kmq0xMzfr6g2CcwtWl65pOgPIUQIe6Q/cWqOby7O8ZjxQ S7+YoLfReaB+JIaW4du2iyK6HBB6jkeZpiXuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680330736; 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=VZle7TWmjQycH6pyEWrWfJ6N6KWuBS/IrobiebXqYRA=; b=q2ygysrDEK64D4FWsm1I3DTrTDUDUYVWjwNcluXxWENj4gFvhczXQlSyejRNo1hHio ICmt9HU7dCGcUnSiWWsp0VoklRIDAXHSicHBS/j+YAELtlSklkwI5KBjGkh9HUboin6l TepBhWcU0lhciRHfDmhnfbQaLDIxZUSA8S8ETEpQ8oitbh7kXyz1giGXKlKFASIV3fAx 5BJlwCdwJkB1DPtQNanbi/oaoFyJzrE36/mECB9aOkIURRUqSJm5mvdKW+aPsHaALQhM JqTwMf5fag8EdP48EAILbiXiAcbsWLWNZFUnBUPuuP829F/NzJB49sg8lDjvek0+pnBy s2Hg== X-Gm-Message-State: AAQBX9d72lfRycs5cNpKMVoMnpHitNkHReAYOEiqY7Tsa0jhGUbBvBQK thatYNkeEDr1DoKI1kP4F9+QYpjc67yO2FCvgpPvUQ== X-Google-Smtp-Source: AKy350ZdOPDa1mOnysRY16jgfHhnIReXrbM4FJ2QhhCpKWA+w7xpXYPI5GXDkBzvcF/ApF6m2zjNTvrVHI0tvkunRq8= X-Received: by 2002:a17:906:7217:b0:932:6a2:ba19 with SMTP id m23-20020a170906721700b0093206a2ba19mr15383240ejk.14.1680330735855; Fri, 31 Mar 2023 23:32:15 -0700 (PDT) MIME-Version: 1.0 References: <20230329142500.682922-1-paul.liu@linaro.org> <20230329142500.682922-5-paul.liu@linaro.org> In-Reply-To: <20230329142500.682922-5-paul.liu@linaro.org> From: Simon Glass Date: Sat, 1 Apr 2023 19:32:01 +1300 Message-ID: Subject: Re: [PATCH 4/6] virtio: Add helper functions to attach/detach vring descriptors 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:26, Ying-Chun Liu (PaulLiu) wrote: > > From: Will Deacon > > Move the attach and detach logic for manipulating vring descriptors > out into their own functions so that we can later extend these to > bounce the data for devices with VIRTIO_F_IOMMU_PLATFORM set. > > 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/+/f73258a4bfe968c5f935db45f2ec5cc0104ee796 > --- > drivers/virtio/virtio_ring.c | 6 ++++++ > 1 file changed, 6 insertions(+) > Reviewed-by: Simon Glass