Message ID | 20231211-vv-dax_abi-v3-0-acf6cc1bde9f@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7383946vqy; Mon, 11 Dec 2023 14:52:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYr+XdTkx6H0BGMzrnQjV2U/tcMbKKw7h0M+h+/1ZRolYBZYyvpSJUVbXUUCsSVe9ieQ+H X-Received: by 2002:a05:6a20:1483:b0:18c:9855:e949 with SMTP id o3-20020a056a20148300b0018c9855e949mr4507108pzi.15.1702335161057; Mon, 11 Dec 2023 14:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702335161; cv=none; d=google.com; s=arc-20160816; b=vNpT1vyeudSgwdTEiPerPQWxu/qLrHnYD/W8CDHK1SEkPiqlVlRaq2KH+c5m21rWi6 PvpyINg+So4zchYaOO69+lRyluyydFV7edOE55PfmyHy4uLWnkaG3GcIcvnUABbYcx6H lhYKVY2+pgZhDyplI7Q4pabwSgiNzGWkebg/lotkECj7NSg/ch/GB96SIKIQe5GO5gwH yDvK3KkVatTf+1i3XWl+USJqceByJLd2yvOz+qj2sNomqAG1xCRxE4FC9Ld1uJkp2ycF 8zo56HGGkuJYhVx68RaPCaD7oUggZYWfI3wTeiQEJcDwtNQLU5OVGyLMjWYhes5hYJD6 vsyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=mwY6Boe5IeEl+m4UlaqUQKsb+ZU1wLBC6TPTy/YX+/w=; fh=JpvfM3e+aJyUWlVhWivfe3Bpai8TmGDwtLUms+5GK1w=; b=GwkSk+SR7dXR5jLO8JTpdYiDKEdOzXl6iqW2UzSt3TYd6Mo1Xbchg1vSigGp18BiYc i2yssxzhdzBvtzaZgfcfE18DmWdxXI9p+V1C4KlDhntUmFYYoR9W3zqBaBFiYadGlU4J YP2sTFGH2VsHIGAvvWAIHRNBhYA+mgLCRXgHcTP2YVNb5hZeYIIHJlhh547L6YslVrk+ z5sMhIKbriX0+PbV4E0JUgnTOQPb1BPdLALMDHrPgpNpVva9qJSL6Gr8GWznRCRJYvRW rxda7nvpYS9wS0T2SG2UMz1O0EbVbVSVbxaYyyxjuGCXXHbgreiT1l4jN/1tK6kIjCNJ IHCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XPvOROPa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r77-20020a632b50000000b005c66b0c9dd7si6723881pgr.786.2023.12.11.14.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:52:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XPvOROPa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3495080A1399; Mon, 11 Dec 2023 14:52:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbjLKWw1 (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Mon, 11 Dec 2023 17:52:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjLKWwZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 11 Dec 2023 17:52:25 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB12AD9; Mon, 11 Dec 2023 14:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702335151; x=1733871151; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to:cc; bh=eRjouxxYbp6BIJhAGRJgKvaoh/ihepCgDQj/UtlSTMk=; b=XPvOROPayMCbxTv6umRNUnsyQVrrK0lsgEp/cr6AdL/0cXT4ZbXTXZo1 ykxq4Tnc4IT9UU9PjXTumQp+2g5YppkSIpmWXKy9Y4j/VxyO6AOAVL788 nZ+ddZZGxvCWrt9h/UVS1cXC7w9/2tohXBhvZ6xKC7zVnuW1ciPi04S2V o0Xhm0CBdtP36FqPIQ/SLg4kktTf7kinvVwY2TUda7WEpGwFzRPljEyK0 0OPqg7+dMFPBLp1vBFc6lhLwJd71JSkC6tchIA22VLjcIcW2RqWP8B7ms SAMLt0jNYlebUA7SXNRGf8A1ToWBykHAzdVpdJnNgMYmqsFOY5EZoWR42 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="8083752" X-IronPort-AV: E=Sophos;i="6.04,268,1695711600"; d="scan'208";a="8083752" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2023 14:52:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="946511328" X-IronPort-AV: E=Sophos;i="6.04,268,1695711600"; d="scan'208";a="946511328" Received: from tlyon-mobl2.amr.corp.intel.com (HELO [192.168.1.200]) ([10.212.89.19]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2023 14:52:28 -0800 From: Vishal Verma <vishal.l.verma@intel.com> Subject: [PATCH v3 0/2] Add DAX ABI for memmap_on_memory Date: Mon, 11 Dec 2023 15:52:16 -0700 Message-Id: <20231211-vv-dax_abi-v3-0-acf6cc1bde9f@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKGSd2UC/3WMQQ6CMBBFr2K6tmY6rQVdeQ9jTCmDTKJgWtJgC He34IaN+av3k/cmESkwRXHeTSJQ4sh9l0Hvd8K3rnuQ5DqzQECtAI8yJVm78e4qlqpwqE7eWCi syMI7UMPjGrveMrcchz581nZSy/vLINhtJikJ0hSGqrIkBOUv3A30PPj+JZZMwv8qZrUxeai1r aHcqvM8fwE5O/0+3wAAAA== To: Dan Williams <dan.j.williams@intel.com>, Vishal Verma <vishal.l.verma@intel.com>, Dave Jiang <dave.jiang@intel.com> Cc: linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, David Hildenbrand <david@redhat.com>, Dave Hansen <dave.hansen@linux.intel.com>, Huang Ying <ying.huang@intel.com>, Li Zhijian <lizhijian@fujitsu.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com> X-Mailer: b4 0.13-dev-433a8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1502; i=vishal.l.verma@intel.com; h=from:subject:message-id; bh=eRjouxxYbp6BIJhAGRJgKvaoh/ihepCgDQj/UtlSTMk=; b=owGbwMvMwCXGf25diOft7jLG02pJDKnlk1b7del86Ps/ZemT3JJDSXPsMlaksYg2sJQ5JmU++ 1fn4Tm9o5SFQYyLQVZMkeXvno+Mx+S25/MEJjjCzGFlAhnCwMUpABNRCmH4nxGiJlTs9PKc7gKe /GsbXulelYp/vdkihq9lgQlrwoyqh4wM952ENK+nPHNbO3fD1si6SYtfb5GauvSdwdmOH4UbCxg iOAE= X-Developer-Key: i=vishal.l.verma@intel.com; a=openpgp; fpr=F8682BE134C67A12332A2ED07AFA61BEA3B84DFF X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 14:52:36 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785027793973529577 X-GMAIL-MSGID: 1785027793973529577 |
Series |
Add DAX ABI for memmap_on_memory
|
|
Message
Verma, Vishal L
Dec. 11, 2023, 10:52 p.m. UTC
The DAX drivers were missing sysfs ABI documentation entirely. Add this missing documentation for the sysfs ABI for DAX regions and Dax devices in patch 1. Add a new ABI for toggling memmap_on_memory semantics in patch 2. The missing ABI was spotted in [1], this series is a split of the new ABI additions behind the initial documentation creation. [1]: https://lore.kernel.org/linux-cxl/651f27b728fef_ae7e7294b3@dwillia2-xfh.jf.intel.com.notmuch/ Changes in v3: - Fix typo in ABI docs (Zhijian Li) - Add kernel config and module parameter dependencies to the ABI docs entry (David Hildenbrand) - Ensure kmem isn't active when setting the sysfs attribute (Ying Huang) - Simplify returning from memmap_on_memory_store() - Link to v2: https://lore.kernel.org/r/20231206-vv-dax_abi-v2-0-f4f4f2336d08@intel.com Changes in v2: - Fix CC lists, patch 1/2 didn't get sent correctly in v1 - Link to v1: https://lore.kernel.org/r/20231206-vv-dax_abi-v1-0-474eb88e201c@intel.com --- Vishal Verma (2): Documentatiion/ABI: Add ABI documentation for sys-bus-dax dax: add a sysfs knob to control memmap_on_memory behavior drivers/dax/bus.c | 47 +++++++++ Documentation/ABI/testing/sysfs-bus-dax | 168 ++++++++++++++++++++++++++++++++ 2 files changed, 215 insertions(+) --- base-commit: c4e1ccfad42352918810802095a8ace8d1c744c9 change-id: 20231025-vv-dax_abi-17a219c46076 Best regards,