Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp723791pxf; Thu, 8 Apr 2021 11:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWkMZWhyp64DoqULK1LnUHxHLLLzsinS6EADAftX7iTL29jbbyYQuIbzYcsCrVwac8iElM X-Received: by 2002:aa7:c455:: with SMTP id n21mr9130430edr.48.1617906065899; Thu, 08 Apr 2021 11:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617906065; cv=none; d=google.com; s=arc-20160816; b=REdPMh+/H4Z/mkC6jyXc0vhIIRqXKMvEudKyCJ3NeyWyFljFGBUF6AX7CDUOdXDJsE 7kUaKpQWBCkh1dqzz1FVwtmEhfMaRW9V1vhan2OOoX1UMk+RherRtxfvaNpfJBe6t38j pzGLsM3FiKLUDekyts9+25JsZJZdE2R/axt+9SmyAwqPWqIsF6nKrfcL3idfJGG+6bbb 1cB5IN27kPwq/3sb3qVQa8aoWspFDomLMJN4pgLmoINOlOzAIZAAVvFw/ZAi0aedkUS9 TIZBg054wjCI7R0yJmczAZkapMIRsjhNYeN6Hix0si9mH35iSTs1m6Becms4yL5BWtFW dKYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=9R3LUNaapjZXbF7Q+/1FJfCvFZMoJkLxAm5tknjLmdc=; b=qvePknNOQu5kch2OvXCULzMr0qLC1RdyV+yuHexwWneU2620juTvbgRoTZ+9lSAyQw pSM9nzeDQjJq2nFRGHmMwEO0Rsfn6FPFwxoGljuHMR/Jthy07ML0xUpluDJChgWsUQ+g petxqkJsBaQb/dR/r/W5PKWuIB3U+zohRgbagYpB4Y02ozxFHMiakC1is0Vw+CbLJEr4 Qux5ljUjp67ERZTnZ4ThLvsgTC9vplVK0mFuhcN4uPZcvNs2FmaGgWTWDv7nLkmD8fwB CV5u1S9X3FIz57gA8z7js+/SZOM6YbEgKqej4hNcIiFtJG6Z9AghlBuPvEJH1T5zweZS GjmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hD9uoLYf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg20si20226ejc.183.2021.04.08.11.20.42; Thu, 08 Apr 2021 11:21:05 -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=@redhat.com header.s=mimecast20190719 header.b=hD9uoLYf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232281AbhDHST4 (ORCPT + 99 others); Thu, 8 Apr 2021 14:19:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38834 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbhDHSTy (ORCPT ); Thu, 8 Apr 2021 14:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617905982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9R3LUNaapjZXbF7Q+/1FJfCvFZMoJkLxAm5tknjLmdc=; b=hD9uoLYfpr4W0u1VYhnViY3Asdya/JF8O1fH4zgHY/ksD2Ac8LDJZC8droKk74WCRyDMae fhyKrr8Z+IW3cVuYWZgiUSWFR2AdQNFQdHnTFFYUZtH6Ei18digGPWVwX8Jljmh3ZksAXn iar4lsiouGeuRUI2yaxtxL6jIJ3qVJc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-543-tWNt4AkkN42UaNq7YJOckw-1; Thu, 08 Apr 2021 14:19:38 -0400 X-MC-Unique: tWNt4AkkN42UaNq7YJOckw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A726E801814; Thu, 8 Apr 2021 18:19:36 +0000 (UTC) Received: from [10.36.113.26] (ovpn-113-26.ams2.redhat.com [10.36.113.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1255610013D7; Thu, 8 Apr 2021 18:19:33 +0000 (UTC) Subject: Re: [PATCH v7 7/8] x86/Kconfig: Introduce ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE To: Christoph Hellwig , Oscar Salvador Cc: Andrew Morton , Michal Hocko , Anshuman Khandual , Pavel Tatashin , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210408121804.10440-1-osalvador@suse.de> <20210408121804.10440-8-osalvador@suse.de> <20210408133651.GA3875084@infradead.org> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Thu, 8 Apr 2021 20:19:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210408133651.GA3875084@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.04.21 15:36, Christoph Hellwig wrote: > On Thu, Apr 08, 2021 at 02:18:03PM +0200, Oscar Salvador wrote: >> Enable x86_64 platform to use the MHP_MEMMAP_ON_MEMORY feature. >> +config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE >> + def_bool y > > This needs to go into a common file, with the architectures just > selecting the symbol. > I'd like to point out that we have plenty of counter examples. Meaning: it's really hard to figure out what the correct way is. Unfortunately, the correct way also doesn't seem to be documented :( -- Thanks, David / dhildenb