From patchwork Thu May 23 13:00:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jocelyn Falempe X-Patchwork-Id: 13671820 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 09AD9C25B79 for ; Thu, 23 May 2024 13:10:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1347310E1C5; Thu, 23 May 2024 13:10:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="JBiBZZ98"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 87C6410E405 for ; Thu, 23 May 2024 13:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716469816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=R96fGo+DfZH9hA5gwNm1TzRqcm2JevVUUaq1h5oS1uA=; b=JBiBZZ98OnNPhxtLRKpu/8JZ88hwbfpEUq8grC7soOPa9KtFBrdAZ8V6qX3FXDu1D/B/g1 N05UZuHHC+Y0DNLBLUArj0+MR2mHJRjNvEZWAAvmzwaa1L5FNQwi+tLS021kyrR4XoET6A gx0W9gDwdLxnYW24TZZlXemxkJLpzCU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-611-li_6ucXwMqOWtV-kl5VNMA-1; Thu, 23 May 2024 09:10:12 -0400 X-MC-Unique: li_6ucXwMqOWtV-kl5VNMA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B3A3D8025FC; Thu, 23 May 2024 13:10:10 +0000 (UTC) Received: from hydra.redhat.com (unknown [10.39.192.217]) by smtp.corp.redhat.com (Postfix) with ESMTP id A96CFC15BF3; Thu, 23 May 2024 13:10:08 +0000 (UTC) From: Jocelyn Falempe To: dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Karol Herbst , Lyude Paul , Danilo Krummrich , nouveau@lists.freedesktop.org Cc: Jocelyn Falempe Subject: [PATCH 0/5] drm/nouveau: Add drm_panic support for nv50+ Date: Thu, 23 May 2024 15:00:33 +0200 Message-ID: <20240523130955.428233-1-jfalempe@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series adds basic drm_panic support for nouveau. Patches 1-4 Add missing bits in drm_panic (ABGR2101010, set_pixel() for tiling, ...) Patch 5 registers nouveau to drm_panic, and handle tiling. I've tested on a GTX1650, while running Gnome/Wayland desktop. I didn't find documentation about nVidia tiling, so it may not work on other GPU than GTX1650. To test it, you need to build your kernel with CONFIG_DRM_PANIC=y, and run echo c > /proc/sysrq-trigger or you can enable CONFIG_DRM_PANIC_DEBUG and run echo 1 > /sys/kernel/debug/dri/0/drm_panic_plane_0 Best regards,