From owner-svn-src-all@freebsd.org Thu Feb 18 14:55:36 2016 Return-Path: Delivered-To: svn-src-all@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 E713AAADD01; Thu, 18 Feb 2016 14:55:36 +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 C8177972; Thu, 18 Feb 2016 14:55:36 +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 E0CCDB990; Thu, 18 Feb 2016 09:55:35 -0500 (EST) From: John Baldwin To: Zbigniew Bodek Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r295755 - in head/sys: arm/arm arm64/arm64 kern powerpc/powerpc sparc64/sparc64 sys Date: Thu, 18 Feb 2016 06:38:41 -0800 Message-ID: <15376407.tuYH0ZQ0Qn@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <201602181300.u1ID05qW056340@repo.freebsd.org> References: <201602181300.u1ID05qW056340@repo.freebsd.org> 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); Thu, 18 Feb 2016 09:55:36 -0500 (EST) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 14:55:37 -0000 On Thursday, February 18, 2016 01:00:04 PM Zbigniew Bodek wrote: > Author: zbb > Date: Thu Feb 18 13:00:04 2016 > New Revision: 295755 > URL: https://svnweb.freebsd.org/changeset/base/295755 > > Log: > Introduce bus_get_bus_tag() method > > Provide bus_get_bus_tag() for sparc64, powerpc, arm, arm64 and mips > nexus and its children in order to return a platform specific default tag. > > This is required to ensure generic correctness of the bus_space tag. > It is especially needed for arches where child bus tag does not match > the parent bus tag. This solves the problem with ppc architecture > where the PCI bus tag differs from parent bus tag which is big-endian. > > This commit is a part of the following patch: > https://reviews.freebsd.org/D4879 > > Submitted by: Marcin Mazurek > Obtained from: Semihalf > Sponsored by: Annapurna Labs > Reviewed by: jhibbits, mmel > Differential Revision: https://reviews.freebsd.org/D4879 It should be noted that this API is temporary. It should probably be marked as such so that no code depends on it long term. Once bus_map_resource is implemented in the parent drivers for this bus this should be removed. I hope to have that in place for 11 so that no release ships with this API. I have a review open on a prototype for bus_map_resource() in D5237. -- John Baldwin