From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 96AF01A08A4 for ; Wed, 13 Jan 2016 14:57:35 +1100 (AEDT) Message-ID: <1452657437.2403.17.camel@kernel.crashing.org> Subject: Re: [RFC PATCH V1 14/33] powerpc/mm: Use helper for finding pte bits mapping I/O area From: Benjamin Herrenschmidt To: Denis Kirjanov , "Aneesh Kumar K.V" Cc: paulus@samba.org, mpe@ellerman.id.au, Michael Neuling , linuxppc-dev@lists.ozlabs.org Date: Wed, 13 Jan 2016 14:57:17 +1100 In-Reply-To: References: <1452582968-22669-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1452582968-22669-15-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2016-01-12 at 10:42 +0300, Denis Kirjanov wrote: > > +static inline unsigned long pte_io_cache_bits(void) > > +{ > > +     return _PAGE_NO_CACHE | _PAGE_GUARDED; > > +} > This could be just plain #define Or just use pgprot_noncached() Cheers, Ben.