From owner-svn-src-all@freebsd.org Wed May 11 00:41:42 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 087B7B36FB5; Wed, 11 May 2016 00:41:42 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C034A168F; Wed, 11 May 2016 00:41:41 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4B0feDO039125; Wed, 11 May 2016 00:41:40 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4B0fejm039124; Wed, 11 May 2016 00:41:40 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201605110041.u4B0fejm039124@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Wed, 11 May 2016 00:41:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299399 - head/sys/dev/dpaa X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 00:41:42 -0000 Author: jhibbits Date: Wed May 11 00:41:40 2016 New Revision: 299399 URL: https://svnweb.freebsd.org/changeset/base/299399 Log: Don't mark the initial portal registers as fully mapped. BMan and QMan will do this at attach time. Even though the registers are mapped now, dpaa_portal_map_registers() will be called at BMan and QMan attach time, updating the mappings to be private, and in the case of cache-enabled registers, marked as coherent memory mappings. Modified: head/sys/dev/dpaa/portals_common.c Modified: head/sys/dev/dpaa/portals_common.c ============================================================================== --- head/sys/dev/dpaa/portals_common.c Wed May 11 00:37:15 2016 (r299398) +++ head/sys/dev/dpaa/portals_common.c Wed May 11 00:41:40 2016 (r299399) @@ -91,7 +91,6 @@ dpaa_portal_alloc_res(device_t dev, stru sc->sc_rrid[0], sc->sc_rres[0]); return (ENXIO); } - sc->sc_dp[PCPU_GET(cpuid)].dp_regs_mapped = 1; } /* Acquire portal's CE_PA and CI_PA */ rle = resource_list_find(res, SYS_RES_MEMORY, 0);