From owner-freebsd-current@freebsd.org Tue Jul 3 18:28:28 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 D8676103B2F0 for ; Tue, 3 Jul 2018 18:28:27 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (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 7273090A42 for ; Tue, 3 Jul 2018 18:28:27 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 41Kt0n3DYqzDhYt; Tue, 3 Jul 2018 18:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1530642504; bh=3aHO+tmm8lpy5GEvcP66Bted MG0siaYPA4qTFSdutyg=; b=ptPaVvz7DGOcGcEZNYVoHYSlN//3k5YpqINb+SRd 4dUViiqPX3zXUq5VUia74EGciV6oMS+q6T3+rWNzfhG+x1ggedaCjJ8iUq1Z+i5x LKg3Aqjut+V7TTjeZeoPe5lfXOD6sKt50L/lAFDqZV56Dtmqsas2ISm0OeJhnjwN iNY= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id d09L_VQQYKT3; Tue, 3 Jul 2018 18:28:24 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:9eda:3eff:fe70:24c0]) by mail.daemonic.se (Postfix) with ESMTPSA id 41Kt0m5HX8zDhFd; Tue, 3 Jul 2018 18:28:24 +0000 (UTC) Subject: Re: atomic changes break drm-next-kmod? To: "O. Hartmann" , FreeBSD Current References: <20180703170223.266dbf5b@thor.intern.walstatt.dynvpn.de> From: Niclas Zeising Message-ID: Date: Tue, 3 Jul 2018 20:28:23 +0200 User-Agent: Mutt/1.5.21 MIME-Version: 1.0 In-Reply-To: <20180703170223.266dbf5b@thor.intern.walstatt.dynvpn.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Tue, 03 Jul 2018 18:28:28 -0000 On 07/03/18 17:02, O. Hartmann wrote: > -----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/include/linux/acpi.h:26: >> In file included from >> /usr/ports/graphics/drm-next-kmod/work/kms-drm-a753215/linuxkpi/gplv2/include/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:38: >> 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 described > above) and also emulators/virtualbox-ose-kmod. As long as CURRENT revision is < r335873, > those kmod compile well. We are looking into why both the drm ports fail. Regards -- Niclas