Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5839481rdb; Thu, 14 Dec 2023 00:31:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiH7PkSZzJ4brPQ5C4EYO6qQYc8c1YZ/aYf3a6EvFdXiY5d/2mrHkzfZKg4dvBIkbxLKoy X-Received: by 2002:a05:6a00:8c08:b0:6ce:f5c6:92e0 with SMTP id ih8-20020a056a008c0800b006cef5c692e0mr7014318pfb.25.1702542695615; Thu, 14 Dec 2023 00:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702542695; cv=none; d=google.com; s=arc-20160816; b=U9cYNGhVfpJpDjN4GXVa85UZGRdnyz5rIX/gNadgE7HUv/JKztnBJhh9HiX9fzidFj WpDhbiuh6bsQ68UgVtVoxxUIGoGkxzoC1IqGHPQuHxCYjASxtUrjCQchVe24rlX3yTro 0+7VFXcrAk5xu3gDjzS4ya42Am86+CFdV+aLe0ifn2o7o9V+O5fQWCUa6Qho0srgr3RC FrRpgTQOeUem8auAYU0wnWbXOzNIQa9Hnb5At895te08/SCCaiu2RCk0vvGGQHqNO+tM nqozbtjjNeutE+xog4lFOhyUa6Nz3xisLVUmBlUGWNPIgYLjBrvKTUxSg+MNdmUVko2U 6/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k6/bNpZRbnXZm8PZxnPNOVowJ7rquMzKmQyEojny3X0=; fh=ohXht6pcu9RdSlmnZ3n6VAaigOvOw1AbG3EcOppiwJ4=; b=wyG8Tr4RDNB//BTupEH9z8w8MOw9P//0Dc4FbVOlpmIac2MEaCp1YwhTHnld7NMS5x HcxIfKbbNfZnElw7OSlTN1ewpvlMuCTzNtsNMwLLG8gSunvUu3RhsZVL8SXt4DI0IVuN VUOFUDMipZ/JZf5A2n3V7hDcQGBbDNkRTuk4qhH7bnG87kgVlwLoLX/UWHzKvfg3LzGJ rR3WSo/2vWX+8uOP5u3ihoV49BnGE074L7okix3f9jr5js7sKeY17QfQQf9Gj+xzbmyV CDhhVfBs57dx3OnFFhBuddbgpng2r5aR98+xlycMRMjvWUfQxF1g4gKFpgmDAtRrgIbF H6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kk+AZ+DV; 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=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z11-20020aa7888b000000b006ceb1a0fa60si10957483pfe.8.2023.12.14.00.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:31:35 -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=@linuxfoundation.org header.s=korg header.b=Kk+AZ+DV; 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=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A2623807BEF8; Thu, 14 Dec 2023 00:31:32 -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 S235681AbjLNIbU (ORCPT + 99 others); Thu, 14 Dec 2023 03:31:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235643AbjLNIbI (ORCPT ); Thu, 14 Dec 2023 03:31:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57869126 for ; Thu, 14 Dec 2023 00:31:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B431C433C8; Thu, 14 Dec 2023 08:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702542670; bh=XhtXMTLrB7TaL4OGwCq1/5AnWLeypq+BMzyNEqR5H9A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kk+AZ+DVVomEJXbQK/IGA23dG4WisCKhVO6q/x+A8aiuX4YFdzwJtFgPHS/E2cJIK /QDsWd4xgu5UuGhEXCmjVkOjVqZUiygkwA10BRlV00oZLJKvAP4CSEsygOj30LXQxU ZPUuEX4HqOK/bucObq8W7oUoD5kusVE/ub0N7oKk= Date: Thu, 14 Dec 2023 09:31:07 +0100 From: Greg Kroah-Hartman To: Vishal Verma Cc: Dan Williams , Dave Jiang , Andrew Morton , Oscar Salvador , linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, David Hildenbrand , Dave Hansen , Huang Ying , linux-mm@kvack.org, Li Zhijian , Jonathan Cameron Subject: Re: [PATCH v5 4/4] dax: add a sysfs knob to control memmap_on_memory behavior Message-ID: <2023121453-tiling-banshee-5acd@gregkh> References: <20231214-vv-dax_abi-v5-0-3f7b006960b4@intel.com> <20231214-vv-dax_abi-v5-4-3f7b006960b4@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214-vv-dax_abi-v5-4-3f7b006960b4@intel.com> 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]); Thu, 14 Dec 2023 00:31:32 -0800 (PST) On Thu, Dec 14, 2023 at 12:37:57AM -0700, Vishal Verma wrote: > +static ssize_t memmap_on_memory_show(struct device *dev, > + struct device_attribute *attr, char *buf) > +{ > + struct dev_dax *dev_dax = to_dev_dax(dev); > + > + return sprintf(buf, "%d\n", dev_dax->memmap_on_memory); checkpatch should have noticed that this should be sysfs_emit(), right? If not, please make the change anyway. > diff --git a/Documentation/ABI/testing/sysfs-bus-dax b/Documentation/ABI/testing/sysfs-bus-dax > index 6359f7bc9bf4..40d9965733b2 100644 > --- a/Documentation/ABI/testing/sysfs-bus-dax > +++ b/Documentation/ABI/testing/sysfs-bus-dax > @@ -134,3 +134,20 @@ KernelVersion: v5.1 > Contact: nvdimm@lists.linux.dev > Description: > (RO) The id attribute indicates the region id of a dax region. > + > +What: /sys/bus/dax/devices/daxX.Y/memmap_on_memory > +Date: October, 2023 It's not October anymore :) thanks, greg k-h