From patchwork Fri Aug 16 14:44:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13766461 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C94381BF30D; Fri, 16 Aug 2024 14:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723819470; cv=none; b=K5abQQ4Cu0d3pYt5FD/OAGEWXEvm41EVI29o/TP+SWeE9xX+4mD6JWYLIlGi/fOPUWdZIrZzyKTvACqf0bIiV/GbU4z+crAOMyA1bwZB41/wbaN4mOEAxmyyTn4YD+yWBKprIqkcBLnNdIHMGW4H0Z55aMaArC8ZNmjKkBosJIg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723819470; c=relaxed/simple; bh=5VkggrFXyoRX+xFMFtPbi/ymdAmy5/e3QrX+vM16NIA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TBgMRn+13hdklfV0mttCzXOsvLS/OhYGp7acTQ384qHfDHjYGsV0BqpXZGGEPWwQutnt8lEAY0j+r/feYAIGruZo1VOEwFKhMcVF/K9mmzmyicKRPW+TpXGM0I9N8T3/YR9ZF4MmO4TPcuZHNbO8FdTqIp5gg9Wc40jeS+ZAa7A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jm6TUdBC; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jm6TUdBC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723819469; x=1755355469; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=5VkggrFXyoRX+xFMFtPbi/ymdAmy5/e3QrX+vM16NIA=; b=jm6TUdBC0GItp9/YQ7p1FCrXDiO/jSP4xhLXuSub6hSmdGH+RryPKAJn l5zb/CnLmW+SYZdSIrtc2uZQlCxbvQT/l7pg0VhLu051gzvmIc7iHkSlW +uDKpAjiR++mDpPWJhLkP7DJZsvZG9Lhhd9K7UqAoaLfbWEeI7Kg+HmlI 2+Ue+aJsgbrhlHUbnoGhkr/qeiswAsJmEpsuc9HS0f8aYPaJYgaOmnv7U UboEB0wMb/+VrafYrDHBRJK6LnEG//r0w5cCHsOYRCl1iIPQGgFAf/qqP Q4mMaMazNAaOgf2X1VdZ9wcI5wn9zdq7aQGwQ/eNaRxOy0rBt/cGIONJu w==; X-CSE-ConnectionGUID: h4yJFRP4S6GkBdXtNpBSmw== X-CSE-MsgGUID: wHVwyLOQR2qpU1wwAcADuA== X-IronPort-AV: E=McAfee;i="6700,10204,11166"; a="32753030" X-IronPort-AV: E=Sophos;i="6.10,152,1719903600"; d="scan'208";a="32753030" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2024 07:44:28 -0700 X-CSE-ConnectionGUID: Vg0Q0IITTIqDdX72RH4ByQ== X-CSE-MsgGUID: bk3/DhnPQZexI2ZGDWq3Hw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,152,1719903600"; d="scan'208";a="64086939" Received: from iweiny-mobl.amr.corp.intel.com (HELO localhost) ([10.125.111.52]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2024 07:44:27 -0700 From: Ira Weiny Date: Fri, 16 Aug 2024 09:44:11 -0500 Subject: [PATCH v3 03/25] dax: Document dax dev range tuple Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-dcd-type2-upstream-v3-3-7c9b96cba6d7@intel.com> References: <20240816-dcd-type2-upstream-v3-0-7c9b96cba6d7@intel.com> In-Reply-To: <20240816-dcd-type2-upstream-v3-0-7c9b96cba6d7@intel.com> To: Dave Jiang , Fan Ni , Jonathan Cameron , Navneet Singh , Chris Mason , Josef Bacik , David Sterba , Petr Mladek , Steven Rostedt , Andy Shevchenko , Rasmus Villemoes , Sergey Senozhatsky , Jonathan Corbet , Andrew Morton Cc: Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , Ira Weiny , linux-btrfs@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, nvdimm@lists.linux.dev X-Mailer: b4 0.15-dev-37811 X-Developer-Signature: v=1; a=ed25519-sha256; t=1723819455; l=1068; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=5VkggrFXyoRX+xFMFtPbi/ymdAmy5/e3QrX+vM16NIA=; b=dqn+/sYA0d6QfVn4nRQItm4pESDvQWH27evpeIYLF1KGTOVYPxe9VXmBocf16Ii4OmSAMPDmt 8uQeFUdJS+CD52Y782Ei8KPckQ5QkWDIUlj6SgNZu23+JOBJR20M1sa X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=noldbkG+Wp1qXRrrkfY1QJpDf7QsOEthbOT7vm0PqsE= The device DAX structure is being enhanced to track additional DCD information. The current range tuple was not fully documented. Document it prior to adding information for DC. Suggested-by: Jonathan Cameron Signed-off-by: Ira Weiny Reviewed-by: Dave Jiang --- Changes: [iweiny: move to start of series] --- drivers/dax/dax-private.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index 446617b73aea..ccde98c3d4e2 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h @@ -58,7 +58,10 @@ struct dax_mapping { * @dev - device core * @pgmap - pgmap for memmap setup / lifetime (driver owned) * @nr_range: size of @ranges - * @ranges: resource-span + pgoff tuples for the instance + * @ranges: range tuples of memory used + * @pgoff: page offset + * @range: resource-span + * @mapping: device to assist in interrogating the range layout */ struct dev_dax { struct dax_region *region;