Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4009559pxb; Tue, 25 Jan 2022 01:16:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA7zgvfd0p08QMcw/eOxERhXFn40orILWz1YtKMJwu5QnzTNwxcUeA6Duo0JRewgkz/GAJ X-Received: by 2002:aa7:c90b:: with SMTP id b11mr18578403edt.392.1643102179807; Tue, 25 Jan 2022 01:16:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643102179; cv=none; d=google.com; s=arc-20160816; b=alp6tFg7ABvVrr3Vx24GlBktbvpY1AW+x7e3EmxQK6z7Lx0Kk8WUo4geZBLORpD2NM Mw4uLuU6GSBFO9CW2tZoCZCKvRfrXBROhXG6AMv8oXool7NiLUVrCzQgUML4p8nYHH6I 18MuMswB2edxE4FrYwSFNSr2JRCkXXHWYN8FUL3//sfYzlVRVv+wHVzmtEY3kB0MmlNg UwfDw1JorEXYiYxts8FcPh7QMfLTtfF6+bvMAyYgDidT76DOStrl3DyHI2S8jKssntzP thY/MYc9uIKzFrRDay08h9aNLrz1AtQCJgaOHmk437Yz0OxgXUFQJZDL4nrGYuCe5T/b SqdQ== 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=dlOKuRSY/d4gi8lrD1QdSZduOb7BwlQTpegjxb1Vs7A=; b=yzmO3NNi7dXRBBGx7DS0pFmbgUibFRi+VcC73jcgtACae0OH1bNLdzUuZFm3w7xZGJ wHB1OAQgagvYX1lr+koGd2fCmjQPBuZrkXcscjlNIx5lJnx9P3jOb2HJS/VqBma0jT9s nAQooVdQhaaat2OWFgYkWpDXuDKP0Ga9FOuBFvfIdLhk71xpVbUlcPjxY3c81cqAMhQS JiXq5eaAbM4rteAO6EYkXlcxQZ18hDv70Rmk0NKyQBsEZyHyeNgeavoBKtpFcdyUHLKs x7XZAxdfifAUO8JTfxfSSYr9oVyWA4nAdAZfDC8IFPzNN4J0TC7HQltTHOneXv1xeRpb cFpg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si11658645edf.602.2022.01.25.01.15.55; Tue, 25 Jan 2022 01:16:19 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443984AbiAYHSU (ORCPT + 99 others); Tue, 25 Jan 2022 02:18:20 -0500 Received: from foss.arm.com ([217.140.110.172]:39688 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230400AbiAYDmH (ORCPT ); Mon, 24 Jan 2022 22:42:07 -0500 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 E1A911FB; Mon, 24 Jan 2022 19:42:00 -0800 (PST) Received: from [10.163.42.113] (unknown [10.163.42.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 478853F766; Mon, 24 Jan 2022 19:41:57 -0800 (PST) Subject: Re: [RFC V1 08/31] m68k/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT To: Andreas Schwab Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, hch@infradead.org, akpm@linux-foundation.org, Thomas Bogendoerfer , linux-m68k@lists.linux-m68k.org References: <1643029028-12710-1-git-send-email-anshuman.khandual@arm.com> <1643029028-12710-9-git-send-email-anshuman.khandual@arm.com> <87mtjl8bnl.fsf@igel.home> From: Anshuman Khandual Message-ID: Date: Tue, 25 Jan 2022 09:12:04 +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: <87mtjl8bnl.fsf@igel.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/24/22 7:43 PM, Andreas Schwab wrote: > On Jan 24 2022, Anshuman Khandual wrote: > >> +pgprot_t vm_get_page_prot(unsigned long vm_flags) >> +{ >> + switch (vm_flags & (VM_READ | VM_WRITE | VM_EXEC | VM_SHARED)) { >> + case VM_NONE: >> + return __pgprot(pgprot_val(PAGE_NONE_C)|_PAGE_CACHE040); > > _PAGE_CACHE040 should only be present when running on a 040 or 060. > Right, seems like I have missed the conditionality on CPU_IS_040_OR_060 while moving the code, will fix it.