Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3009135pxu; Sat, 10 Oct 2020 15:55:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3+Y/6dj1AgHnMSPd7ZGrSsPT1dGccHtbTWP1T1xoU0Hz/cKvHoZP83cKyBOTTA9tCmjtp X-Received: by 2002:a17:906:4c84:: with SMTP id q4mr21595568eju.525.1602370547785; Sat, 10 Oct 2020 15:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602370547; cv=none; d=google.com; s=arc-20160816; b=fPHvQ3TrcCag5kolpet81nq4Wvv18A6YBUXIqTodMMZsRkD1PA1SudnHAlS+e47btU SqbU4DaL5Z4ZujtBO4TMxfvAnqxeYmFGwjUifaTzvJwmqZSmfEfb+QwSYejCmAmQoauY heM7n01lkdDJJSvvjmhkALWT5xpdYc3SUfF0kTTgVnu4MlGl7vhOkdVan/Uqj+hBu58T 4gnCDhlHkGmyLIs3ym3JsGnGzJQLMnzJhNjDUxfYM6Sgd54PnZ/PzbjNspbSr4K0fqis NNTEH41LsLF3YOsvnIMEToi5OTqtfaq9t8/KyEQ+ciKrsninB5/h8bC6S/4Ls6E5ZK8E jn5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=MC2fdfaVlH+mre+0j68WIGjdkJNggJpOVWSfFdZZdnw=; b=RWO6I6Q4SMOunqF21BFsGO+HXCQ48YZw6oBma2G30+vbcXenZ5gmN4fF9z+616q+nV mPKhn0gr65j1xhyPpGs17vlPqaIsUvoiQhLjZGJ2WmCkAkI56A2efe/SOu9UMEMSpB3B bNg8OjuJQS5Z0mhrCrdcth3iSNuOZ9zCUhrahMd9wA3XkCI8wdJM/Q1uyRDIEDaEF5Fo tlBjZCdsSwHMV3l4YPkjh+nOpnkDvvRFr1y9DBxHhNLro4r1+tZPwh8OYVrPvMwj3gM1 AqsuyHT/0HALaPE/R3pP+45ua0+xN6dbun6X84G9tphEhCPOtegLSu2UsvwT8/jkBr5w khAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si9325982ejy.388.2020.10.10.15.55.24; Sat, 10 Oct 2020 15:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391118AbgJIWXv (ORCPT + 99 others); Fri, 9 Oct 2020 18:23:51 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:34860 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727737AbgJIWXu (ORCPT ); Fri, 9 Oct 2020 18:23:50 -0400 Received: by mail-ua1-f67.google.com with SMTP id z19so3589340uap.2 for ; Fri, 09 Oct 2020 15:23:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MC2fdfaVlH+mre+0j68WIGjdkJNggJpOVWSfFdZZdnw=; b=az91tVZTUBdxnuI9LV+dxxyMWTqdA/bHYPhGfvSsKwDnirOHCpbo4oT7zAEWqCprPG P24C7AX6QCDeP+LgDEt/d5nK4W16DTqukAQYYJduzJT9HdwAH0sMWR8jtu3E2Dd4LtWk j+f1KZs5XJW1OYXwTBCWiVxS1u0RfpuKqEUiRKW4vQELEwMlE2XctXVtdeDZuh1afM6o E3krHczNLaFgOWcJlfoCSY/J4iTgZ9TkoWE7QdJGOoAOgDFultTNgq2dd82vtIfwyJaW 5Gf1P1qWWlA4zo2OVET3UhegqpbTADu07er8mLxLUnvOTirta7rEcId9BLN3o+wcc5HJ ll8w== X-Gm-Message-State: AOAM530HMo9X7nt96DIDgTZ/MdvCBIXl0d7PpJCpE2bfgQoBocYES6fx Nv96OtGRXbEJeCohA518eMtcYbE+rPW6W8iBW8E= X-Received: by 2002:ab0:2117:: with SMTP id d23mr8803869ual.15.1602282229545; Fri, 09 Oct 2020 15:23:49 -0700 (PDT) MIME-Version: 1.0 References: <202010092326.20482.linux@zary.sk> In-Reply-To: From: Ilia Mirkin Date: Fri, 9 Oct 2020 18:23:38 -0400 Message-ID: Subject: Re: [Nouveau] nouveau broken on Riva TNT2 in 5.9.0-rc8: GPU not supported on big-endian To: Karol Herbst Cc: Ondrej Zary , nouveau , Ben Skeggs , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 9, 2020 at 5:54 PM Karol Herbst wrote: > > On Fri, Oct 9, 2020 at 11:35 PM Ondrej Zary wrote: > > > > Hello, > > I'm testing 5.9.0-rc8 and found that Riva TNT2 stopped working: > > [ 0.000000] Linux version 5.9.0-rc8+ (zary@gsql) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #326 SMP Fri Oct 9 22:31:40 CEST 2020 > > ... > > [ 14.771464] nouveau 0000:01:00.0: GPU not supported on big-endian > > [ 14.771782] nouveau: probe of 0000:01:00.0 failed with error -38 > > > > big-endian? WTF? The machine is x86. > > > > mhh, we reworked the endianess checks a bit and apparently that broke > something... I will give it some thoughts, but could you be so kind > and create an mmiotrace under 5.9 with nouveau? You won't need to > start X or anything while doing it. Just enable the trace and modprobe > nouveau and collect the trace. Looks like nvkm_device_endianness unconditionally reads out 0x4. I don't think that reg is there pre-NV11. At least NV4, NV5, NV10 and maybe NV15 (which is logically pre-NV11) don't support big-endian mode. Not sure about NV1A, which was the IGP of the series and IIRC logically pre-NV11 as well (but clearly could only be used with x86 chips, since it was part of the motherboard). Aha, it's documented in rnndb: https://github.com/envytools/envytools/blob/master/rnndb/bus/pmc.xml -ilia