Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753685Ab3FRBu3 (ORCPT ); Mon, 17 Jun 2013 21:50:29 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:54263 "EHLO mx4-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752535Ab3FRBu2 (ORCPT ); Mon, 17 Jun 2013 21:50:28 -0400 Date: Mon, 17 Jun 2013 21:49:27 -0400 (EDT) From: David Airlie To: Dave Jones Cc: Linux Kernel , bskeggs@redhat.com, dri-devel@lists.freedesktop.org Message-ID: <1257782958.19234314.1371520167209.JavaMail.root@redhat.com> In-Reply-To: <20130618013602.GC2200@redhat.com> References: <20130618013602.GC2200@redhat.com> Subject: Re: [3.10rc6] /proc/dri/0/vma broken on nouveau. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_19234312_393872653.1371520167207" X-Originating-IP: [10.5.82.12] X-Mailer: Zimbra 8.0.3_GA_5664 (ZimbraWebClient - FF19 (Linux)/8.0.3_GA_5664) Thread-Topic: /proc/dri/0/vma broken on nouveau. Thread-Index: OF92I/YgP1WHKj0AYXHAUkHHKWZsDw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6370 Lines: 99 ------=_Part_19234312_393872653.1371520167207 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit > Reading /proc/dri/0/vma causes bad things to happen on a box with nouveau > loaded. > (Note, no X running on that box) > > Trace below shows trinity, but I can reproduce it with just cat > /proc/dri/0/vma How about this, lets just rip it all out. Dave. ------=_Part_19234312_393872653.1371520167207 Content-Type: text/x-patch; name=0001-drm-remove-vma-debug-code.patch Content-Disposition: attachment; filename=0001-drm-remove-vma-debug-code.patch Content-Transfer-Encoding: base64 RnJvbSA1NGY5NjA1NzM3NDM3MjcyZjQ0MGJiYzZjYzRhZGY4MDUzMzQ4ODRiIE1vbiBTZXAgMTcg MDA6MD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=_Part_19234312_393872653.1371520167207-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/