From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1F41C433DF for ; Fri, 9 Oct 2020 22:23:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D2452231B for ; Fri, 9 Oct 2020 22:23:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D2452231B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alum.mit.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B8ACE6EE2D; Fri, 9 Oct 2020 22:23:51 +0000 (UTC) Received: from mail-ua1-f67.google.com (mail-ua1-f67.google.com [209.85.222.67]) by gabe.freedesktop.org (Postfix) with ESMTPS id 72B0D6EE2D; Fri, 9 Oct 2020 22:23:50 +0000 (UTC) Received: by mail-ua1-f67.google.com with SMTP id c1so3577426uap.3; 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=XZmOlRsOCHpujdKPV0Rl4sSCvaW3+YVO2UzijM1DQaULwXDmE3Dr/V8sq6nAj2UrQ2 ZpeIFQDI+n5W4yyaedQ9W9ha8JGVRNbVG9cW6TMKrHaHYE0yB4BEpj0ROqDaKt6a6nNr OFvwZxJcD75OHYduMT5/a91Ft9Sj3BYUslA81miQBcqkc6ECZebCO9XjND9xJRjPqcuK cuY4kUGz/ElQzi4marVROJSTU7cru0jVMNAWiCN5/SezZ/Un+hUCAfsRzefEYCxRCvNZ f51zJWlTpwY4eXBBBTj7UwXjP82cYbxcOoFi3B0AbyGwOPRzw9hkwHUqZD/1EMx3mgi4 Mekw== X-Gm-Message-State: AOAM533uK1950uzU2/EonVmnnNbe+yzp2SSasp2qq6oVxiCqTrYISAKV Dpt2DwFFvRpwU5dnVm3GE06yErckqVud/vpVGas= X-Google-Smtp-Source: ABdhPJxRORGEoBoiWaD7aBjfjM/aj4zhCreHXHY13cwCyqx2s3N45kFjyL/xYEYp1WZ89Nylw49RNQox0CWiW8A+VrU= 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nouveau , LKML , Ben Skeggs , dri-devel , Ondrej Zary Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel