From owner-svn-src-head@freebsd.org Thu Aug 31 17:02:07 2017 Return-Path: Delivered-To: svn-src-head@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 ACD40E0208C; Thu, 31 Aug 2017 17:02:07 +0000 (UTC) (envelope-from mav@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 7ACCEA49; Thu, 31 Aug 2017 17:02:07 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7VH26r5024142; Thu, 31 Aug 2017 17:02:06 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7VH26px024141; Thu, 31 Aug 2017 17:02:06 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201708311702.v7VH26px024141@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Thu, 31 Aug 2017 17:02:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323059 - head/sys/dev/ntb/ntb_hw X-SVN-Group: head X-SVN-Commit-Author: mav X-SVN-Commit-Paths: head/sys/dev/ntb/ntb_hw X-SVN-Commit-Revision: 323059 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 17:02:07 -0000 Author: mav Date: Thu Aug 31 17:02:06 2017 New Revision: 323059 URL: https://svnweb.freebsd.org/changeset/base/323059 Log: Remove unneeded pmap_change_attr() calls. Reported by: kib MFC after: 13 days Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_plx.c ============================================================================== --- head/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Thu Aug 31 16:32:11 2017 (r323058) +++ head/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Thu Aug 31 17:02:06 2017 (r323059) @@ -316,8 +316,6 @@ ntb_plx_attach(device_t dev) device_printf(dev, "Can't allocate configuration BAR.\n"); return (ENXIO); } - pmap_change_attr((vm_offset_t)rman_get_start(sc->conf_res), - rman_get_size(sc->conf_res), VM_MEMATTR_UNCACHEABLE); /* Identify chip port we are connected to. */ val = bus_read_4(sc->conf_res, 0x360); @@ -337,8 +335,6 @@ ntb_plx_attach(device_t dev) mw->mw_size = rman_get_size(mw->mw_res); mw->mw_vbase = rman_get_virtual(mw->mw_res); mw->mw_map_mode = VM_MEMATTR_UNCACHEABLE; - pmap_change_attr((vm_offset_t)mw->mw_vbase, mw->mw_size, - mw->mw_map_mode); sc->mw_count++; /* Skip over adjacent BAR for 64-bit BARs. */