Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp739542ybk; Sat, 9 May 2020 17:18:02 -0700 (PDT) X-Google-Smtp-Source: APiQypIcS2lQeqafUZm9LnTqqvt4XFBdKdep3Mphrl/64ThuZo5b3UepOCtF+LaJSfnjkaVuDy2B X-Received: by 2002:a17:906:4e46:: with SMTP id g6mr7564916ejw.36.1589069881887; Sat, 09 May 2020 17:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589069881; cv=none; d=google.com; s=arc-20160816; b=DvuwwM0JpEcxFypXPke2Zwkt/rWEzFXBGYzw/uvm1d5psb9/9ZSIhWoXFJzCXBG50q lnoGo6tumiQqBTHLbnzQARijpUQvNq1KdYzzgacjAY9NkU00MN5SxowP7rM5HSeyVAAf eg2B3/5+J3pwNQxd1y3dn3pKRgOImyfGRaew9eX2wQLnAJgrXQcHBmo7frHF5OFz8KA6 cv2O4qTW6u/aq8+IA5Rh3PubJe2s5VFNy0kMIXDVV1+fvgGFrEHD0/95Wl8FXis0aJYU 8zro4g1V93f4A5wQb4w1ToMY5i3NE7v4LpKTjYc5TDxgQ46X98bwUnpxqn6dFtd89+AN ZEFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=LYxocsmEA4/QUgoIqErSaQXDQUTABtanDj45hJselzc=; b=G/0DvwNNY768C8JEQx7OUcJ6gk8O8xQp5SidbApNgFw8YsTp9tbOLCIxZajjS+OHA2 VdF4Y1K/BpWdLOybG0N5AtiZ4lEsIIL63H6aeasJk4Wt7QIivhlOV+RKAqIMwq5LiQxE B2yggizsnDA3zeCPt19l92ORYJDPjjFcYZCdgnbEoq/BWyVWcH8AQOU2FPACyjulBKOb bJiF1p2pAkO/e8BOd/fO+4qnwXyPzP0Gj6XbohBz0eglLwnI9rkiqne5sShYMRQQ6Cup aH1pER2Qmj3yql1aqCTkmrgaV+OZUVUWkV/T1CxHmdRZXJtAAeV/0YnNVZdLIGV/Edqu VRMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="W/CJP4rf"; 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 co1si3377068edb.82.2020.05.09.17.17.38; Sat, 09 May 2020 17:18:01 -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=@kernel.org header.s=default header.b="W/CJP4rf"; 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 S1726778AbgEJAQP (ORCPT + 99 others); Sat, 9 May 2020 20:16:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:49284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgEJAQO (ORCPT ); Sat, 9 May 2020 20:16:14 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 924AF20735; Sun, 10 May 2020 00:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589069774; bh=rcEsrsDljCvjlGQcVUHPCm18WB0VkP4lxtaiG5DbAyw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W/CJP4rfOuAYUekGlno04mT1Bs4lSQLdciQD+tx1rHltWBYBtvFb+B4LUrQlbHjBw UW04g6EtzWPm5sfdxjNzKUcndsgGiQnoKqJbwTmr1gRmhfy5sziX1U8aQ0QHjqGc6a IYL4qvBvGH/VJgSMEmkxSCU36sL9Vj/k7/fB2KjE= Date: Sat, 9 May 2020 17:16:12 -0700 From: Andrew Morton To: Jason Gunthorpe Cc: linux-mm@kvack.org, Ralph Campbell , Alex Deucher , amd-gfx@lists.freedesktop.org, Ben Skeggs , Christian =?ISO-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" , dri-devel@lists.freedesktop.org, Felix Kuehling , Christoph Hellwig , intel-gfx@lists.freedesktop.org, =?ISO-8859-1?Q?J=E9r=F4me?= 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: <20200509171612.94ee332ad4f494521d911ac0@linux-foundation.org> In-Reply-To: <1-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com> References: <0-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com> <1-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Bisection fingers this commit, but reverting it doesn't seem to fix things. Could you take a look please? I'm seeing this from menuconfig: WARNING: unmet direct dependencies detected for DEVICE_PRIVATE Depends on [n]: ZONE_DEVICE [=n] Selected by [m]: - DRM_NOUVEAU_SVM [=y] && HAS_IOMEM [=y] && DRM_NOUVEAU [=m] && MMU [=y] && STAGING [=y] - TEST_HMM [=m] && RUNTIME_TESTING_MENU [=y] && TRANSPARENT_HUGEPAGE [=y] `select' rather sucks this way - easy to break dependencies. Quite a number of years ago the Kconfig gurus were saying "avoid", but I don't recall the details.