Message ID | 20211013065007.1302-9-khalid.elmously@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=SawK6AHP; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HTjpf3T5Lz9sR4 for <incoming@patchwork.ozlabs.org>; Wed, 13 Oct 2021 17:50:34 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1maY5p-0006AK-9L; Wed, 13 Oct 2021 06:50:25 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <khalid.elmously@canonical.com>) id 1maY5l-00066K-4T for kernel-team@lists.ubuntu.com; Wed, 13 Oct 2021 06:50:21 +0000 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id CC45240011 for <kernel-team@lists.ubuntu.com>; Wed, 13 Oct 2021 06:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634107819; bh=bJy0qIPi4DVrWHGjEUtiNv+1+KVZcy1FotN79rCQKT8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=SawK6AHPUXY7SyO9fgU1K0IlbLmJQUsnS4tMTVCdZxIC2/eTewLlVObeBFn63LFeV MPDPFxdQ3XpA9VCp2GuiX5nQnAnQRCwLHT+iP79EHr/Lev/vJy8FN3x+IlV+BPqso1 5FiXL9b0D91meW3Ji9Tnti8Jb0vhY1eQ58dREesSach3nHzQxssqorGyCT2ssiS/VB bM6y9yn5eSBKJvrN5WMtvPrZDWBaCM3MWpYjf/wAsY7kOQwtDHy0bOFNV8v2oH9I+t yw9XWshj5/UMqkrgWk0ffzbAOiW04CL1VoU2Uy0Hec7NakymBH81bfvvjUpeaw6NI/ TeMRsN7gkBbww== Received: by mail-qt1-f199.google.com with SMTP id 103-20020aed2170000000b002a79b815862so817919qtc.11 for <kernel-team@lists.ubuntu.com>; Tue, 12 Oct 2021 23:50:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bJy0qIPi4DVrWHGjEUtiNv+1+KVZcy1FotN79rCQKT8=; b=kuUjJtF7NcpCWuTCNtoLrCXdeSike8L7Zf1wGpgZ4g4gsU+KJ3rDAlStmLlAuStvW1 GZlk/4ytLprcNWpPuAW6chl2N0NU3+2trNV30DhXLuuHW3QlCDskRXqyfWbZCcOxFqZz 0Kw/OeRpZDLXe7bFzGl0F8y6HCvzW6VriojpUU9dx+aHcs/UfYAgEqeKiA/R0D5ifUTK TYturLdc0hqBx4U57LT78UQKjzJ6c4KPkfemdkTdqZnAFBMt1a2qp2HVloI7cTxg/iad 0spgB4YlG4SNzaYIgAxNhxYOpgRznE0rADLvhDuLW3xcORVINahSS8GqaDefRBFdCAxj jq2A== X-Gm-Message-State: AOAM532YT6jjgFjcZebZQbVl/7yLXvJw2Fp2iziVx1nSR5nqgHk9n5AZ kmDkcdgjw6YPtT+l7WCAQjkPYIikoEsCx2nN9ZYPYAS/q2BIRbRMf69xmmxomptvXuVR9qWYvr5 aN2bJK6dqy852e49oNyiDtQQyiHUKLak3nTBbfV+Fhg== X-Received: by 2002:a05:622a:1305:: with SMTP id v5mr22210677qtk.62.1634107818889; Tue, 12 Oct 2021 23:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6LrZOf+SD2gqZ5Wb2sNp0HZdStvjpeuh5E78AHQcx0KBDf0O2LPOM1eqrnaS9RDPgDG+d0w== X-Received: by 2002:a05:622a:1305:: with SMTP id v5mr22210660qtk.62.1634107818602; Tue, 12 Oct 2021 23:50:18 -0700 (PDT) Received: from kbuntu2.fuzzbuzz.org (dhcp-24-53-240-12.cable.user.start.ca. [24.53.240.12]) by smtp.gmail.com with ESMTPSA id t19sm5727298qtn.26.2021.10.12.23.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 23:50:18 -0700 (PDT) From: Khalid Elmously <khalid.elmously@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH 08/13] swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single Date: Wed, 13 Oct 2021 02:50:02 -0400 Message-Id: <20211013065007.1302-9-khalid.elmously@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211013065007.1302-1-khalid.elmously@canonical.com> References: <20211013065007.1302-1-khalid.elmously@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Fix nvme errors w/ swiotlb in confidential VMs
|
expand
|
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 3ab8a701083cc..b5a0bc7d71f2f 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -645,7 +645,6 @@ void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr, if (orig_addr == INVALID_PHYS_ADDR) return; - orig_addr += (unsigned long)tlb_addr & (IO_TLB_SIZE - 1); switch (target) { case SYNC_FOR_CPU: