Message ID | 20210118094705.56772-1-its@irrelevant.dk (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=JWMk=GV=nongnu.org=qemu-devel-bounces+qemu-devel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC8A3C433E0 for <qemu-devel@archiver.kernel.org>; Mon, 18 Jan 2021 09:50:59 +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 F243D2067C for <qemu-devel@archiver.kernel.org>; Mon, 18 Jan 2021 09:50:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F243D2067C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=irrelevant.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org>) id 1l1RBY-0002Vc-2o for qemu-devel@archiver.kernel.org; Mon, 18 Jan 2021 04:50:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <its@irrelevant.dk>) id 1l1R7x-0000eh-CL; Mon, 18 Jan 2021 04:47:13 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <its@irrelevant.dk>) id 1l1R7v-0000yY-CL; Mon, 18 Jan 2021 04:47:13 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2CE6B5C0114; Mon, 18 Jan 2021 04:47:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 18 Jan 2021 04:47:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=qoJaB/EPhlGdBC9rtVhyCg/RjZ URJg930lHQLZJPOTQ=; b=Han1yvcNLbtKh+bu1J6vzquYUoc0JvPQhlkRc10A84 OBZUkdxDj40j278YKDuXZVqwWOuXmzroMH/WlxBkriS9hQ3fGEKDartEIAipq08Z FyNSFeLa8eZgB9zeRxoRBU537/MMhUBUuPEa/DUe+5o1cmYuELl5nMvhezaZiNKT UMtzP44ch+YQWJDzwEa0O0qTDzwsXjvXwlxaTizIsxrAVHK4L7keD2DloTuK7/jn 0nJKrgH3G7n4D0K5IuRsajnF4Ecbl9aBlvEWKnUZL/4RSlliBrvp7FhtvT7ixMus 0IUondkqSacpKFT/GEXOBT1rQIFxvqCVpX2O3MrGJ7SA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=qoJaB/ EPhlGdBC9rtVhyCg/RjZURJg930lHQLZJPOTQ=; b=ePbTVoiW4/fDI7nIhIwk0r I6b8iH6WCsDXMEi7ir53I9kg2inBApCpm4rul9f6HgXH3hE1805WJkbjpng+WIHG wde4xK0Hyrh1x6H0zrnNA+MLrTKkR+Pq4sGhpm+CibBjbgvCCBZBd6WzPU1W2A81 jT6S0yh1NvVM6kAQQzrvvaeWJUJlxsyn8XJL/+uoTEYIYQ47bWNooOefgJYvm0UC /vAmPK3E5OXsBpPF/csGQI+DR7WJn31lF+itULDymEQNqjBdGe0PJDsqPNjMU3fJ KrvuFp1/urojbFWpL0tXEBx1fpKDbRQrZCj94paNsCA2KPvvEHguJT/X3LSZSK7Q == X-ME-Sender: <xms:HFkFYC2h3mphpRli3qkt-ar26oXjHgvVsQ2GYNJ4MRi7Osi4a8N9zg> <xme:HFkFYFEqC2kNpo7ONLVuojnlcbWipw7kjjOBa_giKEptE5inq9eevoe1QfClotO_I Ldi9WB5G0Tddshz-Aw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrtdekgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpefmlhgruhhsucfl vghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtthgvrh hnpeevteelfeegkefhleekvdffudelfedvfeegjeejheefvedtueelhfdutefggfdtgfen ucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeektddrudeijedrleekrddule dtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihht shesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: <xmx:HFkFYK4i0vncXHR5Fws5W5AKi_-TEzu183PA86GEOzb-7thSX1bfbw> <xmx:HFkFYD2E7EovPbo-IJEEe8g1alW3fDzTwridwO0FSH70bvKuQou3_Q> <xmx:HFkFYFHgAnBPs9iRcltnflxvxSuUzQ7HuFfNnb1AKgkXZLq-6mWKHw> <xmx:HlkFYK6rmnOx1cnubnf0EhKQricu0sUrU7FOxaQgS9B_xgROHXUl8w> Received: from apples.local (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by mail.messagingengine.com (Postfix) with ESMTPA id C028024005D; Mon, 18 Jan 2021 04:47:07 -0500 (EST) From: Klaus Jensen <its@irrelevant.dk> To: qemu-devel@nongnu.org Subject: [PATCH v2 00/12] hw/block/nvme: misc cmb/pmr patches and bump to v1.4 Date: Mon, 18 Jan 2021 10:46:53 +0100 Message-Id: <20210118094705.56772-1-its@irrelevant.dk> X-Mailer: git-send-email 2.30.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.29; envelope-from=its@irrelevant.dk; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Fam Zheng <fam@euphon.net>, Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org, Klaus Jensen <k.jensen@samsung.com>, Max Reitz <mreitz@redhat.com>, Klaus Jensen <its@irrelevant.dk>, Stefan Hajnoczi <stefanha@redhat.com>, Keith Busch <kbusch@kernel.org> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> |
Series |
hw/block/nvme: misc cmb/pmr patches and bump to v1.4
|
expand
|
From: Klaus Jensen <k.jensen@samsung.com> This is a resend of "hw/block/nvme: allow cmb and pmr to coexist" with some more PMR work added (PMR RDS/WDS support). This includes a resurrection of Andrzej's series[1] from back July. Andrzej's main patch basically moved the CMB from BAR 2 into an offset in BAR 4 (located after the MSI-X table and PBA). Having an offset on the CMB causes a bunch of calculations related to address mapping to change. So, since I couldn't get the patch to apply cleanly I took a stab at implementing the suggestion I originally came up with: simply move the MSI-X table and PBA from BAR 4 into BAR 0 (up-aligned to a 4 KiB boundary after the main NVMe controller registers). This way we can keep the CMB at offset zero in its own BAR and free up BAR 4 for use by PMR. This makes the patch simpler and does not impact any of the existing address mapping code. [1]: https://lore.kernel.org/qemu-devel/20200729220107.37758-1-andrzej.jakowski@linux.intel.com/ Changes for v2 ~~~~~~~~~~~~~~ - Rebased on nvme-next - Added a fix for 64 bit register hi/lo split writes - Added the patches from "hw/block/nvme: cmb enhancements and bump to v1.4" to the back of this. - As suggested by Keith, I removed "legacy CMB" support - the patch now exclusively bumps the support to the "v1.4 variant", so the linux kernel nvme gang have to get their game on ;) Andrzej Jakowski (1): hw/block/nvme: indicate CMB support through controller capabilities register Klaus Jensen (9): hw/block/nvme: add size to mmio read/write trace events hw/block/nvme: fix 64 bit register hi/lo split writes hw/block/nvme: move msix table and pba to BAR 0 hw/block/nvme: allow cmb and pmr to coexist hw/block/nvme: rename PMR/CMB shift/mask fields hw/block/nvme: remove redundant zeroing of PMR registers hw/block/nvme: disable PMR at boot up hw/block/nvme: bump to v1.4 hw/block/nvme: lift cmb restrictions Naveen Nagar (1): hw/block/nvme: add PMR RDS/WDS support Padmakar Kalghatgi (1): hw/block/nvme: move cmb logic to v1.4 hw/block/nvme.h | 3 + include/block/nvme.h | 125 ++++++++++++++--- hw/block/nvme.c | 307 +++++++++++++++++++++++++++--------------- hw/block/trace-events | 6 +- 4 files changed, 314 insertions(+), 127 deletions(-)