Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3536818imw; Mon, 11 Jul 2022 10:27:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLWT1Px5dOISvyxYyIQBMi1N4taHDC67CFFSuYGAFzzV52hKMgBxw93ntVhez/zwWO9Rwa X-Received: by 2002:a17:907:2cd3:b0:72b:5cc2:bc1f with SMTP id hg19-20020a1709072cd300b0072b5cc2bc1fmr4324153ejc.574.1657560420842; Mon, 11 Jul 2022 10:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657560420; cv=none; d=google.com; s=arc-20160816; b=0hVQgzT03UXNGVvE/Ka26nomgURWt5hYJ6Suc/8FFjjfw6W2NojLxPw6R8AjI2gjyC XQ1G/Gn790MadNed7QIWto+Vgyy7IinSdnFn6iOP+ZxKIN6GfaVLLODgnZp8Wvo9H4pe wtMi8zuuUCAvpyDyKZ6uxGI8fGXihxjtscQ1vh4BghbLaBHMddAbOUyW8MoWafLeoWRm 6IR5Yh9MSbZ8QO3HyyItwPsBPfNXeTbHPHOT2LuKV8poPaRea8B5RYhufoK/i82klVXC 6/hJsVDVcQ3iMF2PB8Q3skIf1lQwSlKuB1gVBF5nG9zXMCMHPspK69PCJNlAHSufe4TY w01A== 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:dkim-signature; bh=MNiOG9VLTXfyIumAzSkdBTE4Ro/vczfTyGGlVgeFa4E=; b=eD9lBR93Z+alQn3x/4KkWcp/l04L7jfDrXHS2td8HBhUimsTUDy2emmfGeJFD7pKxn v0LQCGSnozv56/SrNTtHaIEDEX2LWTf/WC+CAI//6wzf9mhmZLlMhKhbeeI6zenSQxdG CzCrsrvjgUHQrlcZZWagHvWWtlf4gdslUpXVRr3J7/uooo2vR+a2cGcMYixWOr0bM4wR afEFsTLMFpNq0gjhXiGCGSE3umIrk74WOjTqfjMIBRZSs5QQRAjGl9TB+xOe0KSAEwxY bC4iFKkqtH0BirQYPDTwslOcWR0JHf9dmomV7uwtKvYJE++/c2edcbt9ljk6bOJj6Chp BAvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=TEsjKApZ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb2-20020a170906edc200b0070790bfa9a2si9580163ejb.154.2022.07.11.10.26.32; Mon, 11 Jul 2022 10:27:00 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=TEsjKApZ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbiGKQ1G (ORCPT + 99 others); Mon, 11 Jul 2022 12:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiGKQ1F (ORCPT ); Mon, 11 Jul 2022 12:27:05 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6D97A526 for ; Mon, 11 Jul 2022 09:27:04 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-31c8bb90d09so54545097b3.8 for ; Mon, 11 Jul 2022 09:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MNiOG9VLTXfyIumAzSkdBTE4Ro/vczfTyGGlVgeFa4E=; b=TEsjKApZIm2eGVFXX6zjsDd7ABvdwUwkWxz0rYWMXDFUGDLUjnYfCbSEh8axaflEcf /XAr0TEV8rX+gPcA0+uljGw/dhOFVhYtwVaJfH/iJZzU8Zl9ttHoRuTvQCNKLVlL8au0 3zPqttuKlbdSz8ISmN8t7W1UOYA8ZrDRI5lCKPMSixLQXgh7Jn8yPSiKsQw08yTUdZL0 fLEnLlY1fQ4/ZXeGTZzytVnyhHPgk+fmSFRNyB3kHmNQtFfPUaq1d4vdLWJxwt9rEGwT oYED+Sgjnb2pGD++4nURXUCClA1/XfbK7RNX65wwZQAx6AsAxtCq6ItH03wFIU9LttK1 POzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MNiOG9VLTXfyIumAzSkdBTE4Ro/vczfTyGGlVgeFa4E=; b=z9icRFGkx+6eXjNFQ7a+6bZQN8B9KItQgYG8nfQff4o6F8eqFr/qwbcI/Kd0bbGq/Q YdOyOo8AJ5DtU1BA4rfbZTkYa7YpHuqsZxGlYJ/2xMz528+Nb6ZSK4Cet61DHyWVgmTs YNuvXgkoUXPDlTCj9QPWOeX8mZHQmeZoxvSEW/HQPAqPrlCyyMxu/GG3RRr1BbuIpC/J 8ZG3xvHQvaTeFfKKawnaFZOu5XMmaAk4KXfGE/cj5XWKjayRhRxHi5TXFapsfRGcvlGa EAvpfcfg21hoDgky77o+cFypLPrzWEdzHw11+DNpClJ58Ph9I+X7YYmifSTlkiaZ0PlW JLcg== X-Gm-Message-State: AJIora9jIzFJykyRlLBfyIWhqvref6X6NCFFkhmTPBIcaFQ4tE2LVXCD X4YKYkifzQh3gaArHqUbg/2vbIAGfHe+X6zzp9yxFw== X-Received: by 2002:a81:98d:0:b0:31c:921c:9783 with SMTP id 135-20020a81098d000000b0031c921c9783mr20064789ywj.316.1657556823180; Mon, 11 Jul 2022 09:27:03 -0700 (PDT) MIME-Version: 1.0 References: <20220701142310.2188015-1-glider@google.com> <20220701142310.2188015-11-glider@google.com> In-Reply-To: <20220701142310.2188015-11-glider@google.com> From: Marco Elver Date: Mon, 11 Jul 2022 18:26:27 +0200 Message-ID: Subject: Re: [PATCH v4 10/45] libnvdimm/pfn_dev: increase MAX_STRUCT_PAGE_SIZE To: Alexander Potapenko Cc: Alexander Viro , Alexei Starovoitov , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Fri, 1 Jul 2022 at 16:23, Alexander Potapenko wrote: > > KMSAN adds extra metadata fields to struct page, so it does not fit into > 64 bytes anymore. Does this somehow cause extra space being used in all kernel configs? If not, it would be good to note this in the commit message. > Signed-off-by: Alexander Potapenko Reviewed-by: Marco Elver > --- > Link: https://linux-review.googlesource.com/id/I353796acc6a850bfd7bb342aa1b63e616fc614f1 > --- > drivers/nvdimm/nd.h | 2 +- > drivers/nvdimm/pfn_devs.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h > index ec5219680092d..85ca5b4da3cf3 100644 > --- a/drivers/nvdimm/nd.h > +++ b/drivers/nvdimm/nd.h > @@ -652,7 +652,7 @@ void devm_namespace_disable(struct device *dev, > struct nd_namespace_common *ndns); > #if IS_ENABLED(CONFIG_ND_CLAIM) > /* max struct page size independent of kernel config */ > -#define MAX_STRUCT_PAGE_SIZE 64 > +#define MAX_STRUCT_PAGE_SIZE 128 > int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap); > #else > static inline int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, > diff --git a/drivers/nvdimm/pfn_devs.c b/drivers/nvdimm/pfn_devs.c > index 0e92ab4b32833..61af072ac98f9 100644 > --- a/drivers/nvdimm/pfn_devs.c > +++ b/drivers/nvdimm/pfn_devs.c > @@ -787,7 +787,7 @@ static int nd_pfn_init(struct nd_pfn *nd_pfn) > * when populating the vmemmap. This *should* be equal to > * PMD_SIZE for most architectures. > * > - * Also make sure size of struct page is less than 64. We > + * Also make sure size of struct page is less than 128. We > * want to make sure we use large enough size here so that > * we don't have a dynamic reserve space depending on > * struct page size. But we also want to make sure we notice > -- > 2.37.0.rc0.161.g10f37bed90-goog >