Received: by mail.netbsd.org (Postfix, from userid 605) id 5F80584D38; Thu, 7 Jun 2018 15:52:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9FC3E84DCE for ; Thu, 7 Jun 2018 15:52:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id g2NBSS4XO1ko for ; Thu, 7 Jun 2018 15:52:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id F359484D38 for ; Thu, 7 Jun 2018 15:52:54 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id BCDCCFBEC; Thu, 7 Jun 2018 15:52:54 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 7 Jun 2018 15:52:54 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-8] src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20180607155254.BCDCCFBEC@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Thu Jun 7 15:52:54 UTC 2018 Modified Files: src/sys/arch/x86/x86 [netbsd-8]: efi.c src/sys/dev/pci [netbsd-8]: pci_map.c pcivar.h Log Message: Pull up following revision(s) (requested by jakllsch in ticket #832): sys/dev/pci/pcivar.h: revision 1.112 sys/dev/pci/pci_map.c: revision 1.34,1.35 sys/arch/x86/x86/efi.c: revision 1.15 Enable the appropriate memory or I/O space decode in the PCI Command/Status Register upon mapping a BAR. This should fix PR #53286. It's also possible there are other similar PRs that might be fixed by this. - Refine previous change to enable PCI window decoding in Command Register upon mapping; conditionalize on a global variable, that is set to true on x86 machines booting under EFI. For now, initialize the global variable at compile time to false. This is intended to limit potential problems for other NetBSD ports, should this changeset be pulled up to netbsd-8. Related to PR #53286. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.6.1 src/sys/arch/x86/x86/efi.c cvs rdiff -u -r1.33 -r1.33.6.1 src/sys/dev/pci/pci_map.c cvs rdiff -u -r1.109 -r1.109.8.1 src/sys/dev/pci/pcivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.