From owner-freebsd-arm@freebsd.org Mon Apr 3 13:37:13 2017 Return-Path: Delivered-To: freebsd-arm@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 1CD86D2C79B for ; Mon, 3 Apr 2017 13:37:13 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fry.fubar.geek.nz (fry.fubar.geek.nz [139.59.165.16]) by mx1.freebsd.org (Postfix) with ESMTP id DD1B3894 for ; Mon, 3 Apr 2017 13:37:12 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from dhcp-10-248-121-82.eduroam.wireless.private.cam.ac.uk (global-5-144.nat-2.net.cam.ac.uk [131.111.5.144]) by fry.fubar.geek.nz (Postfix) with ESMTPSA id F18524E6DC; Mon, 3 Apr 2017 13:37:05 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Coherent bus_dma for ARMv7 From: Andrew Turner In-Reply-To: Date: Mon, 3 Apr 2017 14:37:05 +0100 Cc: Adrian Chadd , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0EA39E6B-3460-45B9-8247-CB6CC8631C5F@fubar.geek.nz> References: To: Marcin Wojtas X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2017 13:37:13 -0000 > On 3 Apr 2017, at 14:16, Marcin Wojtas wrote: >=20 > Hi Adrian, >=20 > Frankly we are not such experts in armv6 bus_dma, which looks more > complicated than one in arm64, so we thought it's much safer no to mix > the two solutions and leave for the user a single switch to decide, > which one to pick. Afaik Andrew Turner did the oposite for arm64 > (implement not coherent solution on top of coherent bus_dma), however > I'm not sure if it's possible here in an easy way - there's also > pretty significant risk of regression for all platforms. Please let me > know your opinion. Do you think some sort of update of armv6 is > doable? I don=E2=80=99t see any reason to think it would be difficult to add = support for coherent hardware to the existing armv6 busdma code. It=E2=80=99= s mostly skipping cache operations based on a flag in the dam tag. Andrew