Message ID | 20211007180644.9187-11-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=i8rlGqZS; 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 4HQK6S2blLz9sR4 for <incoming@patchwork.ozlabs.org>; Fri, 8 Oct 2021 05:07:28 +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 1mYXnc-0004g0-7e; Thu, 07 Oct 2021 18:07:20 +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 1mYXnJ-0004NX-30 for kernel-team@lists.ubuntu.com; Thu, 07 Oct 2021 18:07:01 +0000 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (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 D09163FFFC for <kernel-team@lists.ubuntu.com>; Thu, 7 Oct 2021 18:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1633630020; bh=6ojjTsJukJTNjk+779DoKbF9ezOqHTH5Dh9AgbWZpPI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=i8rlGqZSFOZJzfLmlBNFkoJy0TITB+1Bh8Ztoq8TFvMf9OW+jqG8h9yXv3KkkxzaB QaZXNFcSZcfLdZQXiI35Et+L1Kj+rw7OliblQw39JeWnctOjGgyeDbMF36QwD40OGG eZdpTTg9urzNujXOKLc7iiLy+waioEVTTnSxSssKOpqTqph3SxpfPc4zd0EpHBuYE1 nQ98m4lqtZwpA00mCDO8Dpyv/P/g+VlbsuFYjm7v7C+L+mYuDU1WWeOFZY9XzkB350 UDz7nihjLv0JT33edsyN6dMz/Y8wqixIEvkFBS1cVT9W4FcKn9pq7Uasq7Eu7eWXje bT9IuKsxtyYvQ== Received: by mail-qt1-f198.google.com with SMTP id o6-20020a05622a008600b002a6c2fbc853so5823882qtw.16 for <kernel-team@lists.ubuntu.com>; Thu, 07 Oct 2021 11:07:00 -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=6ojjTsJukJTNjk+779DoKbF9ezOqHTH5Dh9AgbWZpPI=; b=IdzPKM8uBHHoa9IAttqnr5QhmXmieISTZwWg3ZqxthMDKu+cX3qOYDIrr7P1m6RK0g Z9brH8z4MybuTq15YI94R9zvyHZwmh6lu/rcjmoTW9uMCFPsuroFSOWJnMVw0ZrR1ySj mfFlbhYXu07eFi9Oubx2WQGtXNr/owUEU1JjQF3r9TO4S1dJ5jIPmys76k2RzAacggDr 6Zt82v47gb9FQ8yWkMiirUWuCWtAzmLIWALGlmTmV/tHGx3yL0OIBHJAAO7oQX0kXzoz HMQ9iCB231vt1A9mERnQEtmhXFkC0Hkf+Fd6COq4lMO33gvFIHAirqmaFqPvvj7DQxCo OJ8g== X-Gm-Message-State: AOAM531FciWavEAc3lDcCO7kAaWq3vrVS9B8MAL2ClEHGLtb1SduhsOW uBW2dI2KMVjjdS7mxoiz0cgYlKpDg1CtEzv3zCU3Rlj09pbAkigeWLWuMZD9ZBOgLpDZJyLw803 t/R94B2/xKd4cZjbd0YSf5Ib9zCle3DdHEhNKqzfECg== X-Received: by 2002:a05:622a:14cb:: with SMTP id u11mr6853405qtx.218.1633630019915; Thu, 07 Oct 2021 11:06:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOLhrkP5N9zY2a+cqEYkORC2zCY2waeoFWjkcZZbL5hLVv0/8ObtX4ql/j81ltLkk/r2HMOA== X-Received: by 2002:a05:622a:14cb:: with SMTP id u11mr6853370qtx.218.1633630019610; Thu, 07 Oct 2021 11:06:59 -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 o22sm72382qkk.132.2021.10.07.11.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:06:59 -0700 (PDT) From: Khalid Elmously <khalid.elmously@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][PATCH 10/13] nvme-pci: set min_align_mask Date: Thu, 7 Oct 2021 14:06:41 -0400 Message-Id: <20211007180644.9187-11-khalid.elmously@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211007180644.9187-1-khalid.elmously@canonical.com> References: <20211007180644.9187-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/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index af516c35afe6f..414df0e0786d0 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2631,6 +2631,15 @@ static void nvme_reset_work(struct work_struct *work) */ dma_set_max_seg_size(dev->dev, 0xffffffff); + /* + * LP #1943902 + * The following 2 defines are from 6c3c05b087ada8947cd31895f67e433070446234 + * in Linux 5.12 and not intended to be changed. + */ + #define NVME_CTRL_PAGE_SHIFT 12 + #define NVME_CTRL_PAGE_SIZE (1 << NVME_CTRL_PAGE_SHIFT) + dma_set_min_align_mask(dev->dev, NVME_CTRL_PAGE_SIZE - 1); + mutex_unlock(&dev->shutdown_lock); /*