Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4287720rdb; Mon, 11 Dec 2023 14:52:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHp6xGKTSLs5kqFBjKLFswkkx1AnZxKL9tkPY+dpD6rS0akeQ2NNa69mtR5nqI1z09thVNc X-Received: by 2002:a05:6a20:7fa0:b0:187:d4e3:c13a with SMTP id d32-20020a056a207fa000b00187d4e3c13amr7037931pzj.22.1702335172327; Mon, 11 Dec 2023 14:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702335172; cv=none; d=google.com; s=arc-20160816; b=Z39OuOpqdUUo7ZuTU4rGFnOZ6Hq45AX2prcslODXSJzewoxCvnf0u96S2Yd3O+z1Jy l5N2QdCXhL38fxAi4dpPCPzbboHBxpQJvdgih1myqtMac03AA+PAJkEyHiLS64LhXeMT x+PfH7ypScf5+cK7x5jyxm43v6mGDz0nkqhvP0wI05i6X7rM8fanRQY0L0gPlCSK8Wv2 FDOyyUCjqYJGOvnStMKvmA5pSAChznIXiHhtUzPdflUgotROsR3U921kWrxMV2CJttIf HFoFyC7Am0WMf9Tq2GTvjqIPzIL0G5nx6hlRDpMOc5jbxeAMUClQmQZXigSrZzyrS8Ls uuBA== 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y9-20020a63e249000000b005c1b2d93e52si6844728pgj.368.2023.12.11.14.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:52:52 -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 1DB5480A4F79; Mon, 11 Dec 2023 14:52:46 -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 + 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 ); 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 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 , Vishal Verma , Dave Jiang Cc: linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, David Hildenbrand , Dave Hansen , Huang Ying , Li Zhijian , Jonathan Cameron 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: 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:46 -0800 (PST) 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, -- Vishal Verma