Received: by 10.223.164.202 with SMTP id h10csp4546666wrb; Mon, 20 Nov 2017 17:54:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMawK9aaSfwTcRzN69LDjFMWbYDCNonPT0zhQzrPloOS2Stgk136tNIQdEAH73q4Chfz1bPG X-Received: by 10.84.235.201 with SMTP id m9mr2358002plt.30.1511229252888; Mon, 20 Nov 2017 17:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511229252; cv=none; d=google.com; s=arc-20160816; b=u21WsIlrXvKns1mEXcUc8ILREB1rx/K9B6O7dushZvr0hkPhxd3eGVEAMQ7H6OwzrC sDisu4IegvyctDH091XeDXSOYJSkvH+U6Mpl9Pp6LUPFMV7t5PKyfhyi7s7r/4gLAdnk 7iAHnyvM/L+GTWKQLRyAjjpx2ktynkQI3VbevMXKUU3/XwqazriMIOtgzaRtbNDPrP/k vttaXkzLbeRkM/WWD5bRYwzAf+rtkZnAT8EXfWo6Bjyv4731pQJaveXbsVvX/AimuZv8 GCnOicPDq3AJlMu2/7d5CNsa2qXU5WZWTGoMVLxAEcbFj9ZgsKB/6h7Vn+DRwQ+EboPI FwkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=zZP0DHrgV2Og3TiHdzi9KZ3tjmtBH8lzg1JMK6VXtuA=; b=r2RZUSqhOu4UB5CgWof/JA++J3ugA1ASjqOVCMikojI5hrW4RnNAgqtPFEk2n7U0+3 9n1X07QZJLbMJjihH/9T7vnUstgSXVxeCN8j0kbHT0jklQ3ImCixGSrN/3Bc26OOZZPe uV+ODRITTyiii4BTiBqLr39E9X2pZE622R78WllLJ8Ma3H1o/+LJ5d51spVSy0E6U9z6 y3z6T7HLIhUtU/aU3b7sQyIeCo2UhQhagrDDufy57C6ZIlsoMbqym0bdNKAAxFMm7V5D 4ipbW4I0pt9qR5ijc3LlxzQ+8ywnI3AujPgzZfq13zgxBVF2kJDyAI/mfh2KLqLldF+T 6JTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LEDGvKV7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si9252643plr.49.2017.11.20.17.54.02; Mon, 20 Nov 2017 17:54:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LEDGvKV7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbdKUBwS (ORCPT + 70 others); Mon, 20 Nov 2017 20:52:18 -0500 Received: from mail-qt0-f174.google.com ([209.85.216.174]:44901 "EHLO mail-qt0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbdKUBwQ (ORCPT ); Mon, 20 Nov 2017 20:52:16 -0500 Received: by mail-qt0-f174.google.com with SMTP id h42so17177721qtk.11 for ; Mon, 20 Nov 2017 17:52:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=zZP0DHrgV2Og3TiHdzi9KZ3tjmtBH8lzg1JMK6VXtuA=; b=LEDGvKV7bm6qjt+GNihXAwbRdfVwZB7qBEG6wjGqYG2CQmSLLP6Rcf8xGcXQLPGw23 wpT2gSim/zMyi8GQVbaBDFs4z9D+0VvnFGpQt2o7pSI2IqKnaSjmjZkbL6hgELGD/wGp W/GXgqblo5/uMyeO/MWipH5B6sOK4RoiRHKQNoa8l0n8zhjSEOvJXcOIoyR45oWuSN6x /TxJTci6buXFWdkD5Z/ehlu/n9IFx7qHFp8yJ8A6qsM7jQiBsbgmZnzEgTbrOEkr2k1u UOlpFDH6lgCTC3mZ5PfJaX5EngyvvZF1dNoxiqWvFjTZtAvEvSJXsZQVLZDjjkgBOaJ8 nZsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=zZP0DHrgV2Og3TiHdzi9KZ3tjmtBH8lzg1JMK6VXtuA=; b=fElFya0hIoEyS1ZxVychcZoerbQLJy0TfDlNPJf/yspo08AFVgU/bmhOsAoyX5Vy1n gO1Ws+IafeM0nU1P3FX7JJzk4lNHh8CJVDS7QB4ojVyCiZvarkMmQKZgpbQNPAGlcSD5 dV+FpYqflTdVx2WSESgoOsyyXDK46n4LX65xeCECt4G09aMf26XKXsTBAYkG5efvEl6P G99/6GxP/w+dCREUYhhxeentATf9nlcs/VfVNqZnEdtgzqlu+62BOlEVNDQuwcSbLG0G 33egjBpDIWc9dC7MIEB3QVGeLRZU51a3pUOkW+GUxUQBHS40EzJY2czDFbdw2jFYcIL8 UvEw== X-Gm-Message-State: AJaThX48ULuO8Hyvw4MB2FezgpkwgULWPQpQn0CLLHaE26r9YSwfz3f/ +Gkw5l9WXyb7CGds6pYmHGiWbrDHsHBe57wf0Wc= X-Received: by 10.200.55.121 with SMTP id p54mr25085688qtb.332.1511229135686; Mon, 20 Nov 2017 17:52:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.51.193 with HTTP; Mon, 20 Nov 2017 17:52:15 -0800 (PST) In-Reply-To: References: <201711171526.01053.linux@rainbow-software.org> <201711171833.52855.linux@rainbow-software.org> <201711172025.15121.linux@rainbow-software.org> From: Ilia Mirkin Date: Mon, 20 Nov 2017 20:52:15 -0500 X-Google-Sender-Auth: pI1wK02BwY0PTIK_xMNyEr-niPQ Message-ID: Subject: Re: Blank console but X11 works on MCP79 - old regression since 3.8 To: Ondrej Zary Cc: Ben Skeggs , "nouveau@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 18, 2017 at 12:23 AM, Ilia Mirkin wrote: > On Fri, Nov 17, 2017 at 2:37 PM, Ilia Mirkin wrote: >> On Fri, Nov 17, 2017 at 2:25 PM, Ondrej Zary wrote: >>> On Friday 17 November 2017 18:41:17 Ilia Mirkin wrote: >>>> On Fri, Nov 17, 2017 at 12:33 PM, Ondrej Zary >>>> >>>> wrote: >>>> > @@ -483,8 +483,8 @@ >>>> > nouveau 0000:02:00.0: disp: 0860: 00000000 -> 00000500 >>>> > nouveau 0000:02:00.0: disp: 0864: 00000000 >>>> > nouveau 0000:02:00.0: disp: 0868: 00000000 -> 04000500 >>>> > -nouveau 0000:02:00.0: disp: 086c: 00000000 -> 00100500 >>>> > -nouveau 0000:02:00.0: disp: 0870: 0000e900 -> 00001e00 >>>> > +nouveau 0000:02:00.0: disp: 086c: 00000000 -> 00100a00 >>>> > +nouveau 0000:02:00.0: disp: 0870: 0000e900 -> 0000e800 >>>> > nouveau 0000:02:00.0: disp: 0874: 00000000 -> ffff0000 >>>> > nouveau 0000:02:00.0: disp: 0878: 00000000 >>>> > nouveau 0000:02:00.0: disp: 0880: 05000000 >>>> > >>>> > Looks like it's using 8bpp (0x1e00) in 32MB case but 16bpp (0xe800) in >>>> > 64MB case. Why? >>>> > >>>> > I get blank screen even with 64MB with video=1280x1024-8 kernel >>>> > parameter. Console works with video=1280x1024-16 even with 32MB stolen >>>> > memory. >>>> > >>>> > Conclusions: 8-bit support is broken and bpp reduction is weird. >>>> >>>> OK, well that makes a *ton* of sense (8bpp being broken). >>>> >>>> I think the idea of bpp reduction is that when you're on your shiny >>>> new Riva TNT with 16MB of VRAM, you don't want to go crazy allocating >>>> all that to a pinned fbcon - almost half of that would go to a single >>>> 32bpp 1600x1200 buffer, more for 1920x1200. You want to be able to >>>> have at least a few fb-sized buffers for backbuffer rendering, etc. >>>> >>>> The specific limits could probably use tweaking - I think they only >>>> consider VRAM size, not the fb size. >>>> >>>> I guess 8bpp worked prior to the change you bisected though, so we >>>> should figure out what we did wrong in the new code. >>> >>> Yes, booted 3.7 (last working kernel) and it's running in 8bpp. >> >> By the way, instead of booting $kernel, you can use modetest from >> libdrm/tests. Not sure if it supports C8 though =/ > > It didn't. But it does now - I mailed a patch to dri-devel, also (with > slight fix) available at > > https://people.freedesktop.org/~imirkin/patches/0001-modetest-add-C8-support-to-generate-SMPTE-pattern.patch > > This works on GK208 but not on G92 (whose display unit is much closer > to your MCP79's). You can run as > > ./modetest -s DVI-I-1:1920x1200@C8 > > This should display a SMPTE pattern, and exit when you hit enter. When > it does so, it doesn't restore fbcon, but you can swtich to another > vty to get console back. > > I get a white picture on G92. Now just have to figure out how to fix > it. Someone should also test on a G80 if possible, since that takes a > different path as well. Someone tested out a GF100 and it had the same issue. I've since determined that the color is that of the first entry in the LUT. With the above program, it's (192, 192, 192) which looks white. -ilia From 1584457449422130025@xxx Sun Nov 19 01:52:54 +0000 2017 X-GM-THRID: 1584342040192660961 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread