From owner-freebsd-x11@freebsd.org Fri Nov 24 09:32:02 2017 Return-Path: Delivered-To: freebsd-x11@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 8FD19DDE204 for ; Fri, 24 Nov 2017 09:32:02 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14FBE6CC69; Fri, 24 Nov 2017 09:32:01 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f51.google.com with SMTP id m1so24727074lfj.9; Fri, 24 Nov 2017 01:32:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=OQwOCEmn6OucHZbIEMd2GQ6cYwncy8vlvm+SItwfyf8=; b=mdNwcgYM8qgIqKeblNvbr5Ix5Nsf7if/hdbiOPov9U0RGuaAP0RTOdJk4FPqYH8uyH CnBRzDSiLFlBhNReOCkTzQ/7BL2wQLVa5W0uUFz8h46UwRd4WNXtkIFh9xY4ZLD402gh fUiyAdHevE9cglptIm7d4Yp06qdsbeBa+l9qkWINzciJJfPpl+l0TjKf+Ws018qJVFxZ BYa+RzerJzeMRZUWIgrZNbstpCp3wFkmgtgVvmL12foS9Uzy1pB2SE2yW4mW+wGd1B+7 0lzCuT1urboVBy9X7Kv1MD69ZzwADAshhC9B0Om9Vkx9+KYeysAvfvPyCu+zDrRpX0ne P0gw== X-Gm-Message-State: AJaThX7rQG+wbeXJmgaZ9T9lri8f89A4FVg+ANIzIp3LU7zEX30yJHYZ Y2n9Ll2Fap7HC+LKzm0pYrcpNc7T X-Google-Smtp-Source: AGs4zMaSsvYsYrjAZwXH1hsrIFRuhYV8n29YmALQwdKlMHAPzg/XjHA1nylgcWEQUtbFc2Sr8vvzoQ== X-Received: by 10.25.37.82 with SMTP id l79mr6121642lfl.81.1511515913887; Fri, 24 Nov 2017 01:31:53 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id z10sm4460096ljb.75.2017.11.24.01.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Nov 2017 01:31:53 -0800 (PST) To: Alexey Dokuchaev , freebsd-x11 From: Andriy Gapon Subject: couple of nvidia-driver issues Cc: "Conrad E. Meyer" Message-ID: <07b9dbda-60ef-3643-308f-18a05e8ca958@FreeBSD.org> Date: Fri, 24 Nov 2017 11:31:51 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2017 09:32:02 -0000 I have reported a couple of nvidia-driver issues in the FreeBSD section of the nVidia developer forum, but no replies so far. Well, the first issue is not with the driver, but with a utility that comes with it, nvidia-smi: https://devtalk.nvidia.com/default/topic/1026589/freebsd/nvidia-smi-query-gpu-spins-forever-on-freebsd-head-amd64-/ I wonder if I am the only one affected or if I see the problem because I am on head or something else. I am pretty sure that the problem is caused by a programming bug related to strtok_r. The second issue is with the FreeBSD support for the kernel driver: https://devtalk.nvidia.com/default/topic/1026645/freebsd/panic-related-to-nvkms_timers-lock-sx-lock-/ I would like to get some feedback on my analysis. I am testing this patch right now: https://people.freebsd.org/~avg/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c Also, what's the best place or who are the best people with whom to discuss such issues? Thank you! -- Andriy Gapon