Received: by mail.netbsd.org (Postfix, from userid 605) id 3287484D98; Fri, 6 Dec 2019 06:38:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AB8B584D92 for ; Fri, 6 Dec 2019 06:38:40 +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 vqgNZWADrxyT for ; Fri, 6 Dec 2019 06:38:40 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id F0E8584D97 for ; Fri, 6 Dec 2019 06:38:39 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id DCB6FFA97; Fri, 6 Dec 2019 06:38:39 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 6 Dec 2019 06:38:39 +0000 From: "matthew green" Subject: CVS commit: src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20191206063839.DCB6FFA97@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: "matthew green" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: mrg Date: Fri Dec 6 06:38:39 UTC 2019 Modified Files: src/sys/arch/powerpc/include: types.h src/sys/arch/powerpc/powerpc: openfirm.c src/sys/dev/ofw: openfirmio.c Log Message: revert this change from early this year. it appears the changes macallan@ commited to fix FIRMWORKSBUGS issues in openfirmware() have fixed the hangs seen on PegasosII. hooray! --- Log Message: workaround a problem with the pegasos firmware interface: attempting to use /dev/openfirm on this machine hangs hard. this isn't a new problem, and i've been meaning to try to figure it out for years, but it's become a problem since the xf86-video-radeon driver gained code to look for the macppc model using this interface. this is why xorg-server 1.18 and 1.20 hang recently on the pegasosII. this change is fairly ugly but i couldn't think of a less ugly method to avoid /dev/openfirm working just on this one platform. introduce new __OPENFIRMIO_OPEN_CHECK_BROKEN macro and associated __openfirmio_open_check_broken(), and use them in the new openfirmopen() to fail opens. include proplib.h in macppc and ofppc autoconf.h since they use it. --- To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/arch/powerpc/include/types.h cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/powerpc/openfirm.c cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ofw/openfirmio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.