Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1890052ybk; Mon, 11 May 2020 06:53:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+JB3BWc9dqIMQQji9Wowp2kQ5Csr7IMesM9qnVxAdMtCWAgoEi5TtlVvd6O5duYexrOlC X-Received: by 2002:a17:906:1fd6:: with SMTP id e22mr13818064ejt.150.1589205234789; Mon, 11 May 2020 06:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589205234; cv=none; d=google.com; s=arc-20160816; b=nh7xfx8723mBFvImLYXVi/mCex6Qfxrh3yVO4KxIFgud7ro9tXSxF/4QvzBYMvmTUL BCq8g0ycf27cpGLJkoUY+DNUDMnVxSVHxlktXrTCeyEAqghC/7uHBdjPC9H3mqG3usTM eh8MpTWr7zXV8BHDJCat08vS9s7CfJGuAAPtPKAs8y/mLrby09QLFIK/2WlXgtnEBZ2z m6SBEl6Cr9nu2vK5E4i+e3Q0hcVAakUZGEEAsYOfK7YdiqtO9Yzo8n0vuQw/iNmxGMLW zugnss/dYu/kM/miZK+QJj0k+ffhgxht8FnWDBHP81lBS1rD+5LdY7fdEtcyDIiTq4Xl rTjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4rPpMLzUp9bspNeARk829RL9zhdg6LdCbnWGM4mXn5M=; b=xgi+MClOdZBsD7Exz4zyv5dSEyBpEz/nDXc94RzSi2YrvboKUlHbvLlRbwCwoeopfx /E3Cvo2iIsXbH8yULCbXGmwYpWTW4+hvagUhY8QLu2m+xhbvlK7D37UwMBM+nTjNfglH oN0GlKEvNyiIwBXypFJPfBy0Rj7GQwuNtf2ne15i5HZ5P0VdjZtxG2J1b+OutOaToMn5 QO8E5m7ENyJowwyH4Y4Zsgu9iroPqURcZRUbqwMfe2UnNQ+wFnKmXwOJEhVbSmmviPqc oRvkKHddeIp7r+H6MfRY8x4D8c2tLDHkuE2CoH0HSmG6iFHfF7l+WQjo9SvdphWUN1a9 pCyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fTLHNSai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si5886086ejw.454.2020.05.11.06.53.30; Mon, 11 May 2020 06:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fTLHNSai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730228AbgEKNt5 (ORCPT + 99 others); Mon, 11 May 2020 09:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729957AbgEKNt4 (ORCPT ); Mon, 11 May 2020 09:49:56 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67557C061A0C for ; Mon, 11 May 2020 06:49:56 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id g185so9728455qke.7 for ; Mon, 11 May 2020 06:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4rPpMLzUp9bspNeARk829RL9zhdg6LdCbnWGM4mXn5M=; b=fTLHNSaidCTBTVafRZ88/JPpZndAW4JKAiqp+xUjmlcGq11JBx+zkoc/gLYyuRZMpU 8huyG7Lesc6lj13AkjhSbtSdyaW0HhfFpl0iYlVpDT1IiP7SHlaVI+MZSY7RwrTYhtBq RQNBgrM8IvriB2Mvvs4e8HQwdfhdtIbJbykV3RNu3vDxx3lnpyWu6MdARnOn+R62z8Jc KN8rcWegPekMEUZip8kruV0JwYQbPzQPKIlrCHz/KHExck9xbphKWhwcVarhbGi64Uoa alGo+ohiWuSyQC8pRj3oZO/AC0G930Xueg4XAOk+AAPwsMsi4evR7ZHEiIxrpqeKQKyH 7Trg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4rPpMLzUp9bspNeARk829RL9zhdg6LdCbnWGM4mXn5M=; b=HKGVZuU2CAP/IwQBEaag49nsioIweaLFuCmhRjqZ6slToWpJG/u9mxuB/TiUsIqRym wg/uriz3ZoWVRzyIBm70JpRHd3E3CDYt7oKpw9IX6fY/fLEvPAFmzgYlwyAvUd7Gk62Z ZayUBgLBfpjwSI/Vx9m6jFM/VoL6ZJdgh7l5PT3anXVdLM3LJuQgpjJO+FKYlfDUQG9N 2IQ4nMdXs9Wrbm9+L4hy8KmnIU5znROioJRbkHoSvpe3f5C2MTmTPE+O774AY0pss5VJ d/mALqqj6Js/r7Ln6ySfYhfb4/Ml3lsEZIUFy4S0Yf92idzHZzrdXr1Afpe4r8AXqSYg LbMA== X-Gm-Message-State: AGi0PuY/JfhqEWWsbzxJUrb98DB6LfTviWwyqqOYlwgqgPglrN8R+bgt Vv2q00W6Rw3qCgckZ8bQwuKgIdMjiis= X-Received: by 2002:a05:620a:2019:: with SMTP id c25mr15376455qka.320.1589204995576; Mon, 11 May 2020 06:49:55 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id i10sm1542178qkk.128.2020.05.11.06.49.54 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 May 2020 06:49:55 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jY8oc-0005UB-FF; Mon, 11 May 2020 10:49:54 -0300 Date: Mon, 11 May 2020 10:49:54 -0300 From: Jason Gunthorpe To: Andrew Morton Cc: linux-mm@kvack.org, Ralph Campbell , Alex Deucher , amd-gfx@lists.freedesktop.org, Ben Skeggs , Christian =?utf-8?B?S8O2bmln?= , "David (ChunMing) Zhou" , dri-devel@lists.freedesktop.org, Felix Kuehling , Christoph Hellwig , intel-gfx@lists.freedesktop.org, =?utf-8?B?SsOpcsO0bWU=?= Glisse , John Hubbard , linux-kernel@vger.kernel.org, Niranjana Vishwanathapura , nouveau@lists.freedesktop.org, "Yang, Philip" Subject: Re: [PATCH hmm v2 1/5] mm/hmm: make CONFIG_DEVICE_PRIVATE into a select Message-ID: <20200511134954.GS26002@ziepe.ca> References: <0-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com> <1-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com> <20200509171612.94ee332ad4f494521d911ac0@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200509171612.94ee332ad4f494521d911ac0@linux-foundation.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 09, 2020 at 05:16:12PM -0700, Andrew Morton wrote: > On Fri, 1 May 2020 15:20:44 -0300 Jason Gunthorpe wrote: > > > From: Jason Gunthorpe > > > > There is no reason for a user to select this or not directly - it should > > be selected by drivers that are going to use the feature, similar to how > > CONFIG_HMM_MIRROR works. > > > > Currently all drivers provide a feature kconfig that will disable use of > > DEVICE_PRIVATE in that driver, allowing users to avoid enabling this if > > they don't want the overhead. > > > > I'm not too sure what's going on here, but i386 allmodconfig broke. > > kernel/resource.c: In function '__request_free_mem_region': > kernel/resource.c:1653:28: error: 'PA_SECTION_SHIFT' undeclared (first use in this function); did you mean 'SECTIONS_PGSHIFT'? > size = ALIGN(size, 1UL << PA_SECTION_SHIFT); > > because in current mainline, allmodconfig produces > CONFIG_DEVICE_PRIVATE=n but in current linux-next, allmodconfig > produces CONFIG_DEVICE_PRIVATE=y. But CONFIG_SPARSEMEM=n so the build > breaks. I think Arnd identified this, let us just revet the patch that caused it. > Bisection fingers this commit, but reverting it doesn't seem to fix > things. Could you take a look please? There is a latter patch adding a 'select DEVICE_PRIVATE' so reverting this needs to swap that to 'depends on'. I've done both and updated git Regards, Jason