Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3437490imw; Mon, 11 Jul 2022 08:38:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQ998VemIsnSu+3nCYltAj+4jMJ8tx4H/a2hHrlyzSg2V1fKgkIPh/Q5vnz0TDSUICh+CA X-Received: by 2002:a17:903:404b:b0:16c:28fd:54a with SMTP id n11-20020a170903404b00b0016c28fd054amr16551040pla.133.1657553895027; Mon, 11 Jul 2022 08:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657553895; cv=none; d=google.com; s=arc-20160816; b=AfZClvc0xTrwTd/xniHWHWRKh1p31fwCMZLjU5MX1aEkVsYEVc9OLp7cpuU+AgMd9M nGDPzRDIngF+m86Vat+6vIQrg8bJ6JvIurWDTJHp9KCx/wlbvA5tgwFcf/XfvbohhQXi 38+m4M6W0SgfchCtZrs0DK+uPvK7LP4yRbpwBMFkVDx7zwDIw6WAOCP0PsKiFNEyeziG QyuYF91fs1xYjL1BVoY3E4cMDYTnARoCh9Kw0mBO3rY9MZV2j/XEF4Yo67jq47ymSyg+ RpotDKlopJQafeXeht8Bd4el0MwVwc/OyuyQSlf4y3ckaOcZjNapqLjgjPbG9nhOTuHg sfbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ij+Qa3QKP/58wAi1xCzmAJt8YgMKwPMh0PLA9iuHS60=; b=RggQCQ3YaSVRdPvYK9oqF3J3NKg5fnDNLbE7Bl7pfwbDGBVrGqdHJ6ttNUe8rGgiQb to8hE/3UUs83BSjer5+AqjU/waPlH1lYmIISis/q1AD2DB4Zg3vAZRpLn9M2BrKHU/+A GVhMMQhSqDAv1nrMT2T6X02mMizrZLLXWvaNUz8hSkzvhuVtjvbsp9Tu8AOl0hEFH+Xu ApHDGArH7Q6IFYVhaz58QVRkSOOQVC8pQdSq80olzG91kPsoYBQ1ZxPdCwXjMVRQJoQh OmyShuvH1meoGoP6zlpQnG3lfXd2pGBtZKD/lEURInlmFnJhXUr7piATl9t5uv9tDcvt gOHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a056a00234400b0052ad122ec59si5578844pfj.353.2022.07.11.08.38.02; Mon, 11 Jul 2022 08:38:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232031AbiGKPHN (ORCPT + 99 others); Mon, 11 Jul 2022 11:07:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbiGKPHM (ORCPT ); Mon, 11 Jul 2022 11:07:12 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 186D059269; Mon, 11 Jul 2022 08:07:10 -0700 (PDT) Received: from mail-yw1-f178.google.com ([209.85.128.178]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MkYHO-1nhrW717Ak-00m1Cw; Mon, 11 Jul 2022 17:07:09 +0200 Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-31c8bb90d09so51972277b3.8; Mon, 11 Jul 2022 08:07:08 -0700 (PDT) X-Gm-Message-State: AJIora9eToO4KDIPYYTbpilbP7rgm/wNbT8EvFVhUlH5oRfDAhw7LlwX SIZDOZblIGawLjfp8Ug9ydbF5x8y9SlheY98FP0= X-Received: by 2002:a81:f82:0:b0:31c:f1ae:1ed6 with SMTP id 124-20020a810f82000000b0031cf1ae1ed6mr19994128ywp.249.1657552027874; Mon, 11 Jul 2022 08:07:07 -0700 (PDT) MIME-Version: 1.0 References: <20220711122459.13773-1-me@linux.beauty> <20220711122459.13773-2-me@linux.beauty> <181edbe0f3d.e1336ef3387914.4730240512950880256@linux.beauty> In-Reply-To: <181edbe0f3d.e1336ef3387914.4730240512950880256@linux.beauty> From: Arnd Bergmann Date: Mon, 11 Jul 2022 17:06:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] of: add struct page support to rmem To: Li Chen Cc: Arnd Bergmann , Catalin Marinas , Will Deacon , Rob Herring , Frank Rowand , Andrew Morton , Li Chen , Linux ARM , Linux Kernel Mailing List , DTML , Linux-MM Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:soLT3rJcjNSjCdFsvjKYBqi9Zwd2f8kyPgdtb4mJkM3zwMPQ8VG j3DVwbHaQn/YZwSQ0gfQimssLV94zL56FOwVOtGCtxpSem5l57Ut08XbboHXSBbySOb6rDd UL4Mz+kshMFzpxl/22XvZ6OypVlZ70ckXeQ8XeDRdq0bYvGfeDgT0oM/pDR52niGVFiCHkm U7ja9KvAs8OIiKtOUyvyw== X-UI-Out-Filterresults: notjunk:1;V03:K0:IKaYoq9n/Ec=:IbWAFkbCNbVkEijXVqShvj ffHJsxNQrvMxUCHq0n0NwAwDzqdxtHz1Qwp1jF+eUX4zqiM9gqPsekuZcqjJYxs6Ch/iBm43t M8MOyFCHBWAnYWhulo+cvhIfZlpfC4Nhu607TUDRPt2Gzed5lkJmFMQzXW3aZe7UbImKRGd+Q oBL+hR8czYyDlPddcfvNs8/4NlB0TIXGkvLhw+VrK+vigbd06ssuMrFrlA28u0kra5ZyjJHO0 cyDs2Z0srGNS4EfSwTQojGqj9fBXpWzf81pJwKfwOp5jAT2mrEX7JvaHws0LnGPTMcgUIjvN0 OCZZPRDjLMh0ewRz4Z2GrmvZSdX30n2sQJt5jzfEiaWifmJzvmx1J6BwNgSwZmd02mdDYWOZE TiBDFjJfXqVZFAyV65PhJdTWtwfSUJAK/2TDKe8bw2ilpqQdauxI+VFzl5Ccopu3CNnkLX+ty POzWtP50M364CQBj+adwup8kKPkcOAp2WlpPsEtT81jWPA3Xh201mWqQsXpYHVfskmmlj6U9c 1p3KDTSbM27LMIQWeMrJHApcQMzFlB58gh3jp10eTsnLzhCFCukqPTLFCWUd9hE5PZD7TKsCN 85ZiNqubavwbKrHIKqGb1DmIqdUdBZlLeMQ297mwriHCiyjYak6l1ARq8QCoUGxDzXazU+AZG Yb4yFk/0UXYKpWdRv44Rnw1qW7Zy80xT83iixFBF4eXo4Y5GEfqzWSP+qHUJW+ldVLKWkHowM XfWqjNbg38QKCsvvOCnlrXiCiJGgGjVPEBxnxjv9WM5VaYzLkScC/R14Y8GsrZHOFufoghNL7 uN9BEefdcIxF5oPAdCsOLVC1ZjgIvvCAYGml2bwhJyO/BBntLLXNhKKz0CPcTBCd6QemmSqS1 7SWE1rsdagnQpMIsEk7Y2nuCZo4o1zIrMplFMWd40= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 11, 2022 at 4:51 PM Li Chen wrote: > ---- On Mon, 11 Jul 2022 21:36:12 +0800 Arnd Bergmann wrote --- > > On Mon, Jul 11, 2022 at 2:24 PM Li Chen wrote: > > > > > +config OF_RESERVED_MEM_DIO_SUPPORT > > > + bool "add Direct I/O support to reserved_mem" > > > + depends on ZONE_DEVICE && ARCH_KEEP_MEMBLOCK > > > + help > > > + By default, reserved memory don't get struct page support, which > > > + means you cannot do Direct I/O from this region. This config takes > > > + uses of ZONE_DEVICE and treats rmem as hotplug mem to get struct > > > + page and DIO support. > > > > This probably does not need to be user visible, it's enough to select it from > > the drivers that need it. > > When you say "user visible", do you mean the config can be dropped or something else like Kconfig type other than bool? I mean this can be a hidden option, which you can do by leaving out the one-line description after the 'bool' keyword. The option will still be selectable in Kconfig files from other options, but not shown in 'make menuconfig'. Arnd