From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55E25C433ED for ; Thu, 8 Apr 2021 18:19:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AF8B661130 for ; Thu, 8 Apr 2021 18:19:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF8B661130 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 11CD56B0036; Thu, 8 Apr 2021 14:19:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0CCA96B006C; Thu, 8 Apr 2021 14:19:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EAFC86B006E; Thu, 8 Apr 2021 14:19:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0042.hostedemail.com [216.40.44.42]) by kanga.kvack.org (Postfix) with ESMTP id CCBF16B0036 for ; Thu, 8 Apr 2021 14:19:43 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 891AA87C5 for ; Thu, 8 Apr 2021 18:19:43 +0000 (UTC) X-FDA: 78010013046.22.35C44DB Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf19.hostedemail.com (Postfix) with ESMTP id 8E16590009EC for ; Thu, 8 Apr 2021 18:19:33 +0000 (UTC) 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 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8E16590009EC X-Stat-Signature: c5rm9r3w5fcdytra4mnqqnm5nessaxag Received-SPF: none (redhat.com>: No applicable sender policy available) receiver=imf19; identity=mailfrom; envelope-from=""; helo=us-smtp-delivery-124.mimecast.com; client-ip=216.205.24.124 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1617905973-437331 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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