Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2012 17:37:59 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Ian Lepore <freebsd@damnhippie.dyndns.org>
Cc:        Peter Jeremy <peter@rulingia.com>, scottl@freebsd.org, current@freebsd.org
Subject:   Re: Adding support for WC (write-combining) memory to bus_dma
Message-ID:  <alpine.BSF.2.00.1207121735500.77339@fledge.watson.org>
In-Reply-To: <1342105327.1123.66.camel@revolution.hippie.lan>
References:  <201207121040.27116.jhb@freebsd.org> <1342105327.1123.66.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 12 Jul 2012, Ian Lepore wrote:

> To be clear, I'm not objecting to your proposed changes, I'm more just 
> musing that similar problems exist in non-x86 architectures and maybe an MI 
> solution is possible (or at least the groundwork could be laid)?

I was likewise going to comment that there are known defficiencies in handling 
page table attributes on non-x86 -- for example, they are ignored on MIPS.  I 
encountered this when trying to add memory mapping support for a device driver 
and discovered that all entries were being installed cached instead of the 
requested uncached.  I have local patches that propagate the same non-solution 
used by FreeBSD/MIPS within the kernel to the d_mmap interface -- namely, if 
you try to export something that isn't memory, then it knows it has to be 
uncached.  I plan to commit these fixes to the MIPS TLB code pretty soon, but 
have been preoccupied with other things for the last few months.  However, 
some heavier lifting is required to add attribute support, and it's quite 
desirable to do so.

Robert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1207121735500.77339>