Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp231165pxx; Thu, 29 Oct 2020 00:48:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwoWwEw3R/NKxeP1RqoaUzKN7whfVwbLMwiN0yrveRyqMZ7Zlzjrp3Gs2B25we8//u8JYU X-Received: by 2002:a05:6402:1457:: with SMTP id d23mr2555889edx.311.1603957695169; Thu, 29 Oct 2020 00:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603957695; cv=none; d=google.com; s=arc-20160816; b=pvL/Xv7nXRBnQFPa0KR1Sz8aJoYBZ73VWKRpnxuj8RFJia4IAPFPV5EDQbrM174rKO F4yO6XmNEc0/d97kXAMynu5Am2HvB3p1I3ZLQG3LUASWkQImJ++5YLdmvO9pTxpYrzYM OSku4hjkBsOnXY8kZPLbnfYhNrkHsjQlOtETdc/Imu566b0TUJQMpUVzZ7GYJXSasmbU szbn/Dm14hyxVB76gw4aQ66tADx8uAbW21rBui1T7vjUJjvwgdERYYX8py99MEMGl2JH pJmHq2ahzKh9GC5CoX3TX86QR1QiBFbuOwHWqIQ6Z7WyNOcEAwm8zvQ39AxEEXRfGJnN sznA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from; bh=ch9pwEmWQaV+/p28VTM8UlQMYRLr5p9yG2+EAJ2tsKI=; b=0hLZ08ukZtcEdXJRDMaK20XPG4zy/hJCQUIyabIJK0IoifVIR8uG6Y+/VgU9Ulskxp NAyIxJbOfqlLV7kAXPlvSWPKqvNzuluEB08w1qRPBnT6+9nOZKfPZQWFg1poDpLro6o0 XqptsHsKhfKgHEkpiWVLn1pe02HviA/c49X69bXjqiAXBSUxnNWjmWElf9QsLkJLY4hV jtlRCl+jF6BIXqcSFWww3o1jTLLy/SgEQMy6VN5b6zyhhkdRgF/6px2GE+B2626jD0bU NvX5R/sGh73iB2C4AOU/zGXERdhGJRbxINiFCqYhOrgFVirvH5RvbSFMix8vWgA4j9Zc ZLZg== 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 i23si1296611ejz.318.2020.10.29.00.47.53; Thu, 29 Oct 2020 00:48:15 -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 S2389206AbgJ1Woq (ORCPT + 99 others); Wed, 28 Oct 2020 18:44:46 -0400 Received: from hosting.gsystem.sk ([212.5.213.30]:50340 "EHLO hosting.gsystem.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730295AbgJ1WmX (ORCPT ); Wed, 28 Oct 2020 18:42:23 -0400 Received: from [192.168.0.2] (188-167-68-178.dynamic.chello.sk [188.167.68.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id 502DD7A00EE; Wed, 28 Oct 2020 21:15:37 +0100 (CET) From: Ondrej Zary To: Karol Herbst Subject: Re: [Nouveau] nouveau broken on Riva TNT2 in 5.9.0-rc8: GPU not supported on big-endian Date: Wed, 28 Oct 2020 21:15:32 +0100 User-Agent: KMail/1.9.10 Cc: Ilia Mirkin , nouveau , Ben Skeggs , "dri-devel" , LKML References: <202010092326.20482.linux@zary.sk> In-Reply-To: X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202010282115.32811.linux@zary.sk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 10 October 2020 02:02:42 Karol Herbst wrote: > On Sat, Oct 10, 2020 at 12:23 AM Ilia Mirkin wrote: > > > > 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 > > > > > > ohh, I should have checked there.. yeah, will write a fix for it then. > Before my patch we just always tried to switch it, but never threw an > error. Any progress with the patch? -- Ondrej Zary