Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp209940lqp; Thu, 4 Apr 2024 10:49:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJDb4Us8h5o9Tz9iq1ZlilLfIHEKr1L8ZD6sg0NfWK7h8y/IN6j6E+Nsn6gozXNhz8NylU+KudVelM88J5nL33d+By3MsU1/Lur3j7YQ== X-Google-Smtp-Source: AGHT+IFGKTqpeLk5dVf4byWP+2lGzRwlR2TY+FhhEflHLJOytQQvbfq+A4J8H6Pvlah76555D8e0 X-Received: by 2002:a17:902:ced1:b0:1e2:a5db:30d1 with SMTP id d17-20020a170902ced100b001e2a5db30d1mr306660plg.13.1712252968430; Thu, 04 Apr 2024 10:49:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712252968; cv=pass; d=google.com; s=arc-20160816; b=G+t/WsAUPv7H4VTroGAJVPIM0J+7uakS5NJcHRXKz9/WfzWZzZAtzJ+TdVjbWchjfL dSdoBZVT0xvD2L+3eok9L5+AoDwFymBSNBvsO6W2OGx5M8w28vFXGQRZZXinPoPIrQ23 cSFLgbY+/7SXEsx76FVjSbLUMa/wnBMiet9CyXTLlTELjOe22u8O8nKjxTCkazkjOV+9 UgUECExSEdV6NiFcD/33y7qo1HyrL1sIWDhTmzXrR0wAG6e9YWUT+JdXjSO++lXeou8j MarHooXG15Zgx+v7tQ4zCHhsRkJqHZq6YGaazDWs39GGmqRPquGyyaM47mTyFl3KQ5Bf Diog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=084KvjReEd7Ddvp9gjReD2kPfBgVzRWnA5fCJXbEm14=; fh=2w1+lYYWmlsepgenmRQ+IoRKCE/8EmW+j9NeCA4ErGw=; b=bBgVt7vkKfBn5CcGZZyhamp04DgchdC75MzcRp7sqmv21y0RNjadjNVE6BS6sh47yA Aijhuo0AbgcJ4Uvl3V0s5T/JQg+eyQEFXYtq4AEYTRlozgeG1bEnrbXiVSlHO55oGMFA 8DQllWEmHciXWwYk6DkKSdB4hiEtevg/cHI81xsHCnvgpS76lljNTIeyLg3AOQ/Egb4F ta7wnAsBztlpSGIsCLhxpSLxBuEtk2Gf6Jh3OQJx+1J0V7wxMvxidOc/UE6ThaWGe8w6 iK+hLW7cE3Kr00YlflAwbMaYz7asEVdDdS77axsEUjo2PJxxOTGdrB3AF7tSHBIHy1nn d6ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-131883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bf11-20020a170902b90b00b001e0e011e3d5si15345893plb.418.2024.04.04.10.49.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-131883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AF222B24027 for ; Thu, 4 Apr 2024 17:20:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0A9212DDA4; Thu, 4 Apr 2024 17:19:55 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 975B414A8B; Thu, 4 Apr 2024 17:19:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712251195; cv=none; b=Sf0LYT21qNtwR1VTBUmD+e5RF+FcyUTmdAZysFCZBZon1GkHH0knmqCmjdoPek9p2gVljEs7qOQ9EWdOfm069IwG3EQC8Ic7cnbWcDWMy1Azf/tro3uyrrOWu20FZVcIrkK3N9QW9Q0tx4U5FdMOVQ+AulMiet4l0rf2lRfNl8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712251195; c=relaxed/simple; bh=yD9gdc9DZs6Cc5MiJ5TdowOyM3xU2yJ4MReDIH+Q1VY=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KHMoYFp34GXeR7YSBDfeR5s19I1p6AJWPcxafjxqtnTb/xTQaJR0wBrfO+7A7TWmYGs0/jwJK3Y4MXoo+nLBSBs1jygDgJyu8cKsgKeSICmwZe1xtKmSfXgRJ7Ck989RRa0282FeBmT5xMElVd9T8c+nocdDa9BrtVc+NPOkvcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4V9Sxv3MCmz6J9bQ; Fri, 5 Apr 2024 01:18:27 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 91888140A86; Fri, 5 Apr 2024 01:19:50 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 4 Apr 2024 18:19:50 +0100 Date: Thu, 4 Apr 2024 18:19:49 +0100 From: Jonathan Cameron To: Ira Weiny CC: Dave Jiang , Fan Ni , "Navneet Singh" , Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , , , Subject: Re: [PATCH 20/26] dax: Document dax dev range tuple Message-ID: <20240404181949.0000505b@Huawei.com> In-Reply-To: <20240324-dcd-type2-upstream-v1-20-b7b00d623625@intel.com> References: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> <20240324-dcd-type2-upstream-v1-20-b7b00d623625@intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) 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="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500006.china.huawei.com (7.191.161.198) To lhrpeml500005.china.huawei.com (7.191.163.240) On Sun, 24 Mar 2024 16:18:23 -0700 Ira Weiny wrote: > 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 There is a style convention for nested structs. Maybe needs tweaking for a pointer like this though... Perhaps poke it with kernel-doc script an see what comes out. https://docs.kernel.org/doc-guide/kernel-doc.html#nested-structs-unions > > --- > 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; >