From owner-freebsd-current@freebsd.org Thu Jul 5 03:19:39 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46006103EAAD for ; Thu, 5 Jul 2018 03:19:39 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C4396838FA for ; Thu, 5 Jul 2018 03:19:38 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id auntfq8ESOFAwaunvfNkPc; Wed, 04 Jul 2018 21:19:36 -0600 X-Authority-Analysis: v=2.3 cv=Y4XWTCWN c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=8nJEP1OIZ-IA:10 a=R9QF1RCXAYgA:10 a=zxA2vyXaAAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=wZe-IHn6Cmi0W03oFDkA:9 a=wPNLvfGTeEIA:10 a=nK2txNHJmq7TfjpuLlwI:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 556195E0; Wed, 4 Jul 2018 20:19:31 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id w653JV7m075529; Wed, 4 Jul 2018 20:19:31 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id w653JUjY075521; Wed, 4 Jul 2018 20:19:30 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201807050319.w653JUjY075521@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: "O. Hartmann" cc: FreeBSD Current Subject: Re: atomic changes break drm-next-kmod? In-Reply-To: Message from "O. Hartmann" of "Tue, 03 Jul 2018 17:02:23 +0200." <20180703170223.266dbf5b@thor.intern.walstatt.dynvpn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 04 Jul 2018 20:19:30 -0700 X-CMAE-Envelope: MS4wfMpYikP26u28rrnHCKqnDaf+2QRDhTwSfKFJk3W5hW4JUhO6k4tsCgD1NeW/rKRSwN4IKvzJkSQzAbjwy8WIEnS6cL1w8eDi1IkqbXh3Mt4rxeiEf9v2 jM3Z+xXWNd1TDSBe/15SfjtUkTj/TQvRFy7FM9AwIuGnL8s6sXuMRoLhXAyg6MjKHROwUue4jNdXf9oBvbogGejfYKh0rBJPuiTlDVyfp4q512/rL9cz8el7 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 03:19:39 -0000 In message <20180703170223.266dbf5b@thor.intern.walstatt.dynvpn.de>, "O. Hartma nn" writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Am Tue, 3 Jul 2018 10:19:57 -0400 > Michael Butler schrieb: > > > It seems recent changes (SVN r335873?) may have broken drm-next-kmod .. > > > > --- i915_drv.o --- > > In file included from i915_drv.c:30: > > In file included from > > /usr/ports/graphics/drm-next-kmod/work/kms-drm-a753215/linuxkpi/gplv2/inclu > de/linux/acpi.h:26: > > In file included from > > /usr/ports/graphics/drm-next-kmod/work/kms-drm-a753215/linuxkpi/gplv2/inclu > de/linux/device.h:4: > > In file included from > > /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:35: > > In file included from > > /usr/src/sys/compat/linuxkpi/common/include/linux/types.h:37: > > In file included from /usr/src/sys/sys/systm.h:44: > > ./machine/atomic.h:450:29: error: invalid operand for instruction > > ATOMIC_ASM(clear, long, "andq %1,%0", "ir", ~v); > > ^ > > :1:7: note: instantiated into assembly here > > andq $9223372036854775807,40672(%r14) > > ^~~~~~~~~~~~~~~~~~~~~ > > 1 error generated. > > *** [i915_drv.o] Error code 1 > > > > make[3]: stopped in > > /usr/ports/graphics/drm-next-kmod/work/kms-drm-a753215/i915 > > --- i915_gem.o --- > > In file included from i915_gem.c:28: > > In file included from > > /usr/ports/graphics/drm-next-kmod/work/kms-drm-a753215/include/drm/drmP.h:3 > 8: > > In file included from /usr/src/sys/sys/malloc.h:42: > > In file included from /usr/src/sys/sys/systm.h:44: > > ./machine/atomic.h:449:29: error: invalid operand for instruction > > ATOMIC_ASM(set, long, "orq %1,%0", "ir", v); > > ^ > > :1:6: note: instantiated into assembly here > > orq $-9223372036854775808,40672(%r14) > > ^~~~~~~~~~~~~~~~~~~~~~ > > 1 error generated. > > *** [i915_gem.o] Error code 1 > > > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > It breaks also graphics/drm-stable-kmod (see PR 229484, > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229484, same error as you d > escribed > above) and also emulators/virtualbox-ose-kmod. As long as CURRENT revision is > < r335873, > those kmod compile well. The virtualbox-ose-kmod issue is different. It's namespace pollution caused by the inclusion of sys/param.h in sys/systm.h when _KERNEL is defined. sys/param.h includes sys/priority.h if LOCORE is not defined. virtualbox typedefs PVM as a struct whereas sys/priority.h defines it as a constant. Virtualbox undefines PVM in some headers, usually after including sys/param.h. I haven't looked at it further than this with the limited time I have tonight but I suspect one of the #undef PVM statements needs to move. > - -- > O. Hartmann > > Ich widerspreche der Nutzung oder Übermittlung meiner Daten für > Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). > -----BEGIN PGP SIGNATURE----- > > iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWzuQGgAKCRDS528fyFhY > lKHnAf0fIVHnw1xBVHzogeQQo4v+he17R2ln6l25lNR/pUE1AZOsFzPDamAkqbY+ > f1+Usr+P5o7jn26Bh4ob3UmIj25DAf4tJZpeZS4iGZ374lrCAemYFb53+MJ1fClW > aBLI6DVOiBiOt/UpLXZf1whl/dtQvo5yd1xywfYOwi9Jh8teHcNW > =mtMH > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.