Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp94169pxm; Fri, 25 Feb 2022 04:42:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzB3tuh4ahsf5O2AV9x89UAtU5hDH70QdiG0b1/4G7YYPpFdBXK10wuQoTQW5lMDuuX1bTQ X-Received: by 2002:aa7:8d42:0:b0:4bd:265:def4 with SMTP id s2-20020aa78d42000000b004bd0265def4mr7698718pfe.24.1645792930587; Fri, 25 Feb 2022 04:42:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645792930; cv=none; d=google.com; s=arc-20160816; b=nVF3SccS+MUItGcfzesjBvlGtKDO7VQ+FQSlIM1HjNYaa9QzoSefZ1joIGvUB1ppzT u8NLU5UUqQ9hE9adeuzc2r9Oq60cHkrL4rb+a8nhOYxYayvZQqZaltqRj/PvuR2TKBfZ /SxcXTXLzCJB6gRtSdsfmNFYovMp3cPDhWBx7t8Kk4gsMwtrvzpWzHi37P2jwyl3+p6/ HFnk1oVPKXOVMvUMEKzFNp+a9NmandlpnVaUgxh3JH6U3gK5WD/0bsNFur/i+KowVuYt MZqcbU7X2nbx9Z0TTgDqPPvdkym4Di2KtqIn4SY9fVkm5C5C837BOcAqMogLN2JWC3nF 5Q+Q== 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:from:references :cc:to:subject; bh=2+kx3lucxkbY9/NE3OH2NTE/kI1tyAf3hdB0zFrD4ww=; b=dlA9TUUW+nDYOuYChDlgJX0wM6AwIP8jg9Rv72U5l7iT91rQMOUhZa0bjeD3Y8ErwV zohu3iQotJ98uT+z5uMDSjqkXmGP57EmRCQ59/cXATgkS8Rv1bMv2ASWjUMJ1tWwTTlS u0UFFlaVKYQZoCDDoCMQhzy2kdiWwEdd2eY3NDztUDH4vu8A7eFXXeF+LOHWhBwt0jAf +PKgE4pcXRf451UBJMUztHeO9xZrrTujJWD8PDcUettqfvpyanQEnU7YgQm25I4DhShl prFRSNrg6kFZ/xe9xdvpelzA6Gz4Ijj9NZ5FCPbZ2psW3sKOnpX9U5iS+znQffse+BiI h+TQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a170902ff0200b0014fea7944f6si1651095plj.417.2022.02.25.04.41.39; Fri, 25 Feb 2022 04:42:10 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239150AbiBYJgO (ORCPT + 99 others); Fri, 25 Feb 2022 04:36:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234262AbiBYJgM (ORCPT ); Fri, 25 Feb 2022 04:36:12 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20DE71F7679; Fri, 25 Feb 2022 01:35:41 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DF2EF106F; Fri, 25 Feb 2022 01:35:40 -0800 (PST) Received: from [10.163.51.16] (unknown [10.163.51.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A5E803F70D; Fri, 25 Feb 2022 01:35:38 -0800 (PST) Subject: Re: [PATCH V2 08/30] m68k/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT To: Geert Uytterhoeven , Andrew Morton Cc: Linux MM , Linux Kernel Mailing List , Christoph Hellwig , Linux-Arch , Thomas Bogendoerfer , linux-m68k References: <1645425519-9034-1-git-send-email-anshuman.khandual@arm.com> <1645425519-9034-9-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: Date: Fri, 25 Feb 2022 15:05:36 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2/25/22 2:32 PM, Geert Uytterhoeven wrote: > Hi Anshuman, Andrew, > > On Mon, Feb 21, 2022 at 12:54 PM Geert Uytterhoeven > wrote: >> On Mon, Feb 21, 2022 at 9:45 AM Anshuman Khandual >> wrote: >>> This defines and exports a platform specific custom vm_get_page_prot() via >>> subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX >>> macros can be dropped which are no longer needed. >>> >>> Cc: Thomas Bogendoerfer >>> Cc: linux-m68k@lists.linux-m68k.org >>> Cc: linux-kernel@vger.kernel.org >>> Signed-off-by: Anshuman Khandual >> >> Thanks for your patch! >> >>> --- a/arch/m68k/mm/init.c >>> +++ b/arch/m68k/mm/init.c >>> @@ -128,3 +128,107 @@ void __init mem_init(void) >>> memblock_free_all(); >>> init_pointer_tables(); >>> } >>> + >>> +#ifdef CONFIG_COLDFIRE >>> +/* >>> + * Page protections for initialising protection_map. See mm/mmap.c >>> + * for use. In general, the bit positions are xwr, and P-items are >>> + * private, the S-items are shared. >>> + */ >>> +pgprot_t vm_get_page_prot(unsigned long vm_flags) >> >> Wouldn't it make more sense to add this to arch/m68k/mm/mcfmmu.c? > > It's not just about sense, but also about correctness. > The CF_PAGE_* definitions below exist only if CONFIG_MMU=y, > thus causing breakage for cfnommu in today's linux-next. > http://kisskb.ellerman.id.au/kisskb/buildresult/14701640/ As mentioned before, will do all these necessary changes in the next version probably sometime earlier next week. I was waiting for other reviews (if any) till now.