Re: [BUG][NOUVEAU] G70 broken since 5.10-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



Hi Mark,

Am 26.11.20 um 13:26 schrieb Mark Hounschell:
On 11/26/20 7:05 AM, Christian König wrote:
Hi Mark,

Am 26.11.20 um 10:59 schrieb Mark Hounschell:
On 11/26/20 3:35 AM, Christian König wrote:
I'm running an older "NVIDIA Corporation G70 [GeForce 7800 GT] (rev a1)" card in a newer BIOSTAR B550GTA MB. Kernel 5.10-rcx does not work. I get no virtual consoles or X screen.

thanks for the dmesg.

Problem is I don't have the slightest idea what's going wrong here :)

The code should be functional identical, it was just moved from TTM to nouveau, so we are missing some detail in the handling.

Can you run the following test for me: First you need to disable loading of the nouveau kernel module by adding modprobe.blacklist=nouveau to the kernel command line.

Then log into the system over the network and run the following commands:

sudo modprobe ttm
sudo bash -c "echo 'ttm_bo_kmap' > /sys/kernel/debug/tracing/set_graph_function" sudo bash -c "echo function_graph > /sys/kernel/debug/tracing/current_tracer"
sudo modprobe nouveau
sudo bash -c "cat /sys/kernel/debug/tracing/trace" > trace.log

Please then send me the resulting trace.log file so that I can investigate why mapping the framebuffer fails during driver load.

Thanks in advance,
Christian.

I hope this is what you need. I do normally turn off a lot of debug features. Let me know if I need to change the kernel config.

It was not what I had expected but it pointed me in the right direction. I think I've found the problem, it's just an uninitialized return value for your hardware generation.

Please try the attached patch and let me know if it fixes the problem.

Thanks in advance,
Christian.
>From 293d608f04f7be857739a7403adaf044dd6ef80a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@xxxxxxx>
Date: Thu, 26 Nov 2020 13:35:08 +0100
Subject: [PATCH] drm/nouveau: make sure ret is initialized in
 nouveau_ttm_io_mem_reserve
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This wasn't initialized for pre NV50 hardware.

Signed-off-by: Christian König <christian.koenig@xxxxxxx>
---
 drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 7aa4286784ae..42292b3a6eb9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -1135,8 +1135,8 @@ nouveau_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_resource *reg)
 			}
 
 			reg->bus.offset = handle;
-			ret = 0;
 		}
+		ret = 0;
 		break;
 	default:
 		ret = -EINVAL;
-- 
2.25.1

_______________________________________________
Nouveau mailing list
Nouveau@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/nouveau

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux