Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3525518pxb; Mon, 24 Jan 2022 11:24:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmLmQIzszhM2vS73MnOVbhDssaqpu8op+zKPNbwQ8Mfwbtgq34diyXBN4RgLF3qpY8WOqU X-Received: by 2002:a05:6a00:1308:b0:4c5:e231:afd4 with SMTP id j8-20020a056a00130800b004c5e231afd4mr15491402pfu.34.1643052144873; Mon, 24 Jan 2022 11:22:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643052144; cv=none; d=google.com; s=arc-20160816; b=vqq9ZhyanTl8fdVdYXN76xKUyWq2dGeXjK/Em+NXg8oy6buydMDYzqMTZFHACfezNR tFjjoIzZEGZoAWTI8J4BgIFh+EbVUEfdk60+O9tKqH8EagkS9YyBPLSfl4TbYf7PJOZj fujpxyMZHgVdCP9eGi71K8m+G5SuT9Mt/9UfcBbfR5cSJwj907d56lirIRq7e/YjfUAr BLj+B344cFPCLjtG3ZwPAIpDgj8V6lg1CpRDxJ+Nwqv+g79nx1m32IezH7imlfLTFSKn /K/7Xpbg9vNSiiRJLz+r/mKpOtIxrNhM44lFp8FNHATJf7pj4gwnarnBHPdNOtWbnSLr a6QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=TexHu0gdlsjUNaynVGmJ/9Yhr3HdT0ekRGdttgd8DEg=; b=V30dL4Av888T9H05u2a+ZqEFg4cbA57KLnHh4HkSVPsQMl2mrmIY4lW0SAPq+W+C4/ IwOd7Fl1FOJfGMc2YgF1u16ptZuIFbKYGoh7pHAlCcUH/cmsy6gEHmh4PlNv5S0tziV0 OxSFS0A++nCGIIbbCrOlN8227MBFwSa31rlIdkuVDwkrPFCnVz6+cFAag1LxczEXD0dw UZGH5BMFHkPBUPzjvTC4J6Y6COBdqkgFTxvLtdqAuOf3LHhc/wvFU+a5A3eAZjtzYc/+ uaj6r4yl37lBBr43rCfhNYqFMQun8XEbSBg0O0Vrfc7cNEsAbemv+62HCoss6U0Z1DsV jrLg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s67si14884553pgs.322.2022.01.24.11.22.11; Mon, 24 Jan 2022 11:22:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232052AbiAXONY (ORCPT + 99 others); Mon, 24 Jan 2022 09:13:24 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:59904 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231544AbiAXONX (ORCPT ); Mon, 24 Jan 2022 09:13:23 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4JjBlz4K4dz1r3fB; Mon, 24 Jan 2022 15:13:19 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4JjBlz3MpPz1qqkC; Mon, 24 Jan 2022 15:13:19 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 2ksgDqrlUy4J; Mon, 24 Jan 2022 15:13:18 +0100 (CET) X-Auth-Info: Gyh3dmqKeEnmIGEzViLL2XXKQrVMn7AY/WYEBsXfO/cgaBONH15/ik6zgQOkwvO2 Received: from igel.home (ppp-46-244-179-110.dynamic.mnet-online.de [46.244.179.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 24 Jan 2022 15:13:18 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 32A102C37B9; Mon, 24 Jan 2022 15:13:18 +0100 (CET) From: Andreas Schwab To: Anshuman Khandual 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 Subject: Re: [RFC V1 08/31] m68k/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT References: <1643029028-12710-1-git-send-email-anshuman.khandual@arm.com> <1643029028-12710-9-git-send-email-anshuman.khandual@arm.com> X-Yow: Were these parsnips CORRECTLY MARINATED in TACO SAUCE? Date: Mon, 24 Jan 2022 15:13:18 +0100 In-Reply-To: <1643029028-12710-9-git-send-email-anshuman.khandual@arm.com> (Anshuman Khandual's message of "Mon, 24 Jan 2022 18:26:45 +0530") Message-ID: <87mtjl8bnl.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."