From owner-freebsd-amd64@freebsd.org Tue Dec 1 21:46:39 2015 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57C3EA3C159 for ; Tue, 1 Dec 2015 21:46:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 360DA1CAF for ; Tue, 1 Dec 2015 21:46:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B72D2B94C; Tue, 1 Dec 2015 16:46:37 -0500 (EST) From: John Baldwin To: freebsd-amd64@freebsd.org Subject: Re: PAT and identity mapped pages. Date: Tue, 01 Dec 2015 13:43:59 -0800 Message-ID: <8158167.l79YmRxDI1@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <424171448014497@web5m.yandex.ru> References: <424171448014497@web5m.yandex.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 01 Dec 2015 16:46:37 -0500 (EST) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 21:46:39 -0000 On Friday, November 20, 2015 11:14:57 AM AlexandreFressange wrote: > Hi, > > On x86_64, every memory page entry has a bit (4) to control its cache method: write-back or write-through. > > But even on identity mapped pages, you still use paging. Say, I want a page to be uncached; I can use the PAT to Uncached. > > In this case, what happens to the bit 4 of the accessed page? is it ignored? Can you clarify more what you mean by an identity mapped page? If you mean the direct map, the OS has to ensure that all mappings of a given physical page use the same PAT settings, so when a page is mapped with a non-default PAT setting the page entries for the direct map have to be updated as well as any other mappings. -- John Baldwin