From owner-freebsd-emulation@freebsd.org Tue Feb 23 14:28:11 2016 Return-Path: Delivered-To: freebsd-emulation@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 DA20DAB23DF for ; Tue, 23 Feb 2016 14:28:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C52D3EEC for ; Tue, 23 Feb 2016 14:28:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C2664AB23DE; Tue, 23 Feb 2016 14:28:11 +0000 (UTC) Delivered-To: emulation@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 C1F7FAB23DD for ; Tue, 23 Feb 2016 14:28:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 98E5AEEA for ; Tue, 23 Feb 2016 14:28:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1NESBgj030638 for ; Tue, 23 Feb 2016 14:28:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 206711] Export linux_ioctl_{,un}register_handler from linux64 for x11/nvidia-driver Date: Tue, 23 Feb 2016 14:28:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: danfe@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 14:28:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206711 --- Comment #3 from Jan Beich --- (In reply to Dmitry Chagin from comment #2) The patch here is the result of failed attempt to register 64bit |struct linux_ioctl_handler| from within nvidia-driver. All in-tree kernel modules register only 32bit ioctls, the rest is done by linux64 (drm2, v4l2, consol= e, etc). How do you expect ports drivers to support linux64 without examples? $ nm -A /boot/kernel/*.ko | fgrep ioctl_register_handler /boot/kernel/amr_linux.ko: U linux_ioctl_register_handler /boot/kernel/ipmi_linux.ko: U linux_ioctl_register_handler /boot/kernel/linux.ko: 0000000000009480 t linux_ioctl_register_handler /boot/kernel/linux64.ko: 00000000000093e0 t linux_ioctl_register_handler /boot/kernel/mfi_linux.ko: U linux_ioctl_register_handler /boot/kernel/mrsas_linux.ko: U linux_ioctl_register_handler nvidia_linux.c doesn't have much MD code but the following has no effect ev= en on the hashsum of its object file. --- src/nvidia/nvidia_linux.c~ +++ src/nvidia/nvidia_linux.c @@ -18,13 +18,8 @@ #define LINUX_IOCTL_NVIDIA_MIN 0x4600 #define LINUX_IOCTL_NVIDIA_MAX 0x46ff -#if defined(NVCPU_X86) #include "machine/../linux/linux.h" #include "machine/../linux/linux_proto.h" -#elif defined(NVCPU_X86_64) -#include "machine/../linux32/linux.h" -#include "machine/../linux32/linux32_proto.h" -#endif #include --=20 You are receiving this mail because: You are on the CC list for the bug.=