Message ID | 20230123202646.356592-1-andrealmeid@igalia.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1804285wrn; Mon, 23 Jan 2023 12:36:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXsAo7DLBbNTY607FJsb8YpwgUmKT2WSdMwT/VZu5afwbH2DSZ/L6DNk+niHNSGjjRUJeSC8 X-Received: by 2002:a05:6a20:7b1b:b0:b8:7c95:de84 with SMTP id s27-20020a056a207b1b00b000b87c95de84mr22671556pzh.33.1674506188887; Mon, 23 Jan 2023 12:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674506188; cv=none; d=google.com; s=arc-20160816; b=hHZ3p2c0oCAJvS4+qnxJsPKZAll2nOMfvw5j+M+hO1jYST2YZas3mbZvloqpQ1//8B ls/89KSp9xjyrTyFGZdyB8xOlklfM2v3HSj3pYmEQ7RqWiAf3VAnEFTUcbf9n1diijse 2QwROxdcxeuiRKdH8QysFXL0MQBfs0nyiI+2rqLNtjNj+37gLsmMoO8z78n75l4SlB+c +ZX5lI9IWRCp4lbI6wtePFqUfoMnwZ6aq+If35Gr5SubGR+ZhF3iHqSgFfJsJIa8SqBa KXUmbM47W4Xu5DrN4ys8T42GnUKo8fAoevHjwCHciRtcY4Lrj0VgLsb4r8gAQrMRMU8c osyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RULCWiPhPuqguKPxWggrB48SbG5JaPHXTn2zv7ytB64=; b=kJycmuyuo7ETgzLLKmTbzX0x2DcKEfXe3kLPFIIxnMjYbKxQHVqJVal1I3QRcG1diN 9FJpcxCb3K4C4JqJW8+JhC7n+H65RScBVXZ6rm8sFK0nUI/WAjGcymwjo7Q7niRCvKtX oLudDgdQA4atbG2d1kgU0VJvqJh/u+4jRYilqckIk7H5zo46/Rym7i0pZnqZfJhhPnFY 5TEUW60FHnXE0z5pdT0nFuvjWyzEkVgptOFoNO9j9Dn1fxc7N6V+bkNZm+6i48urXQNx o/kkelO9V8rVxvP89jcBkBf5TuZwYabrILdxhrUqrgxAfY4pbaYVtspEkPLddH7fVY8u Cr+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=YvKRnLol; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a63f202000000b004ac71b079b6si49515116pgh.349.2023.01.23.12.36.16; Mon, 23 Jan 2023 12:36:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=YvKRnLol; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232266AbjAWU1t (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 23 Jan 2023 15:27:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbjAWU1r (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Jan 2023 15:27:47 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B157D10F3 for <linux-kernel@vger.kernel.org>; Mon, 23 Jan 2023 12:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RULCWiPhPuqguKPxWggrB48SbG5JaPHXTn2zv7ytB64=; b=YvKRnLol1Xw+H2O5RNLQhlw80B C4GL+k78PIKX1nhXWFGIny2Iv0jnH3PHAgLh6De7d1V5lxiAlthVWeps0xXvbXB8ta68onFQn7h6c VSL+j5Lwv4ZMTdHJDw103YVRi3/pJSwkCpbIKcQxTxOrV+qJdXCeyAcW/es12ns4T69mmL4PcZxlE Sy11atYU5ev2mcP7XQGLslGNJoXjpAKrvag3bHckfi72jmwEz+3yIKi0ovVlsUtfsZMvT+vGMa3nH UGBsT01Ux8IRVCPYwQjn7Xq3mdACL9P6B7d3JDfY4WN4WDOdYC+vqrRTG4RAMoawNn2rxiYzE4j4y yeBXmuyA==; Received: from [177.102.82.39] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pK3Po-00GEfP-Kd; Mon, 23 Jan 2023 21:27:41 +0100 From: =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com> To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, contactshashanksharma@gmail.com, amaranath.somalapuram@amd.com, christian.koenig@amd.com, pierre-eric.pelloux-prayer@amd.com, Simon Ser <contact@emersion.fr>, Rob Clark <robdclark@gmail.com>, Pekka Paalanen <ppaalanen@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Daniel Stone <daniel@fooishbar.org>, =?utf-8?b?J01hcmVrIE9sxaHDoWsn?= <maraeo@gmail.com>, Dave Airlie <airlied@gmail.com>, "Pierre-Loup A . Griffais" <pgriffais@valvesoftware.com>, =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Almeida?= <andrealmeid@igalia.com> Subject: [RFC PATCH 0/1] drm: Add doc about GPU reset Date: Mon, 23 Jan 2023 17:26:45 -0300 Message-Id: <20230123202646.356592-1-andrealmeid@igalia.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755847001850414040?= X-GMAIL-MSGID: =?utf-8?q?1755847001850414040?= |
Series |
drm: Add doc about GPU reset
|
|
Message
André Almeida
Jan. 23, 2023, 8:26 p.m. UTC
Due to the complexity of its stack and the apps that we run on it, GPU resets are for granted. What's left for driver developers is how to make resets a smooth experience as possible. While some OS's can recover or show an error message in such cases, Linux is more a hit-and-miss due to its lack of standardization and guidelines of what to do in such cases. This is the goal of this document, to proper define what should happen after a GPU reset so developers can start acting on top of this. An IGT test should be created to validate this for each driver. Initially my approach was to expose an uevent for GPU resets, as it can be seen here[1]. However, even if an uevent can be useful for some use cases (e.g. telemetry and error reporting), for the "OS integration" case of GPU resets it would be more productive to have something defined through the stack. Thanks, André [1] https://lore.kernel.org/amd-gfx/20221125175203.52481-1-andrealmeid@igalia.com/ André Almeida (1): drm: Create documentation about device resets Documentation/gpu/drm-reset.rst | 51 +++++++++++++++++++++++++++++++++ Documentation/gpu/index.rst | 1 + 2 files changed, 52 insertions(+) create mode 100644 Documentation/gpu/drm-reset.rst