Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2527655lqp; Mon, 25 Mar 2024 01:12:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXa0sfplZmd/+/gds0krZn6WIzPWOhhY8eyhxnD0y524LeAQXyYmk5RxgZcylTT+7eVYO/kG8/r0fGy5QpX11+IwTJdtcCCZuHVVg5cAA== X-Google-Smtp-Source: AGHT+IEuVHU24Kp3tw5NR68vMMbaOQyGfGiCFKPDK7qHj8Jvsh+Hvp/lX26tgt4L5CRk42fk1H8r X-Received: by 2002:a05:6871:110:b0:222:8fd3:24f with SMTP id y16-20020a056871011000b002228fd3024fmr7542825oab.13.1711354369055; Mon, 25 Mar 2024 01:12:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711354369; cv=pass; d=google.com; s=arc-20160816; b=1ClgAU/N9ScHa33XLq1WZtAHYj/HPm6lrk6CWUWpZYQg7LmvsKacPY+pKsUwSXwN3h 9SXWdtstIq9g4h4D0W+zRjRJsM6r38vPLlLlBjFZx1GuG2SGbnmcZEzxELmo2j7Pi8xa SOQzPgVbhDYlwhPe+mj0O8FGbjysJpwRhqW9YsjFBFEswmEm3Isdl6l+WC5JBw1DoEXf 4SG4GzTpr2nG9/Tf6OCTkrkXmXy3sU0q51q4ihET9L7cAe+UNDNF8L8QV5q6vAaOvaCE cAdSIMUptJ/pvdLlIOtWcBvO5OgQQkApn/tOdPu8Vq5NWGeHw1NbzW5Whz1LqJS+g3h+ gYYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Kl/4mnBgevej3megiqmvu2ggfdQJ2ecuBF5ZrVk02Lc=; fh=jwXaZJRrOM4egV/vk4EDc5NAOlRIQo+IhUtiKaNRnyo=; b=pqBHiOOEw/ymudHeeM73WtzrElEOQHtpeVealtm46vD4YAayZsb4CwcxmzuhvHSZw3 HE7Eviq17sIMyPpyPStK5Rnioihp1+JRxv0pY0spsNHuYBi0W9vr2Vs9jJPwTgMeDdE6 o280j2c+FEGkSbr7DToQzERaiILZcIEIMp6ScMkS4IXV53xRNWIzXno3rPQgixbK5A6r hS+YK9lP7lbr7IEKaH00AEhiOn02iST99lQRncfW0mzkRLOCAxgbACwR/EcjCg7YpoF5 4eHbx89WWsTmG2I5UruHMron7rQL51XEGIHvdMQYKQM79Rr1+zJaRPAn8+3n5P2wwqKx /WRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Iow/FmYU"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-115984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g17-20020aa79dd1000000b006e69b40d4adsi4649854pfq.100.2024.03.25.01.12.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:12:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Iow/FmYU"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-115984-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B206C296846 for ; Mon, 25 Mar 2024 08:12:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A39E398687; Mon, 25 Mar 2024 03:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Iow/FmYU" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 7D0DB236D0A; Sun, 24 Mar 2024 23:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322309; cv=none; b=ICxoUtKaUvuw0Kl5MP7wUe7BDSZJamDydxG5VlFdjKh2CZ0jLtuqjsMBZnMsE6ONAKpeHtXUvqWThIlQkS1TZaBHPebJl6DJ9pplS1xvB1X6NphfQPiXweMnfG6iL+2Q3SeGxr/OH64DEJaj4U1LzyoeITJyL/TOeuhk6wzRKxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322309; c=relaxed/simple; bh=+DJc1mIap7mEkFNzdwzl72773SLqKqtas6uS8idaz98=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AZd8J5O6s7/qr4Ew6wsaEHA06Kp7FP+LfMw2TWAxJBZQZmCY2FQq83eopwTq9KhS36ndzY/+HDPcYJPU6NaiNka4EsMnpiVvxQO4L5if46Y2TvMy/l00DjkTB11vI4iZn3v21Xci2ZTmootHbjDHqdt8r6OmZNyR6Lh0bqBpc8A= 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=Iow/FmYU; arc=none smtp.client-ip=198.175.65.18 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711322308; x=1742858308; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=+DJc1mIap7mEkFNzdwzl72773SLqKqtas6uS8idaz98=; b=Iow/FmYULklMNX+0qCkIU5tFysnN2RcUiMlsfRUOqzxr15Thn0yQfpvE 8DuKxmUzaue5rDMd2bf8CuR2wr4vLwGuf6DwJ/bhehSP93Hb8O0a1FDOT SYppxywdShgZOwT/KBWKjvG5fVTqvYST73BjqTWNhBu0bUb8sUmU8wV8R gJENH9095XkZP84VQmSmMiajCOufQH706vwZOnI34MAfR82+ThAgW+drh 1T/+MsytyZ0R8lE87J5mRCZZ6Saw2RKFc2IaG2rWfyAAoGUAxtPn7n+RB w2+5FwhNKgRAESG/xRM7gCK+wN5ojFLDvf059rVi09LLMF+RV4OdjmSnT Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="6431757" X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="6431757" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2024 16:18:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="15464727" Received: from iweiny-mobl.amr.corp.intel.com (HELO localhost) ([10.213.186.165]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2024 16:18:21 -0700 From: Ira Weiny Date: Sun, 24 Mar 2024 16:18:23 -0700 Subject: [PATCH 20/26] dax: Document dax dev range tuple Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240324-dcd-type2-upstream-v1-20-b7b00d623625@intel.com> References: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> In-Reply-To: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> To: Dave Jiang , Fan Ni , Jonathan Cameron , Navneet Singh 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 X-Mailer: b4 0.13-dev-2d940 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711322284; l=1060; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=+DJc1mIap7mEkFNzdwzl72773SLqKqtas6uS8idaz98=; b=PUQMR0mymeyY/LriUmBNTsS94i+lzbBY8csOAgPv7zWU+jRoNvvbcOd4mM6iKKXvl18QxJVjt VuuyFuZUZRmCMduN5qFdVGLi5EDLGi7Ra6czf/F83o95lhq//so/i8F 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 --- Changes for v1 [iweiny: new patch] --- 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 c6319c6567fb..ac1ccf158650 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h @@ -70,7 +70,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; -- 2.44.0