Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp782796rwl; Thu, 10 Aug 2023 01:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeN8czazUaG1VmTFQhzrlQCbxbkKvnqjwaYH92QKk+UJPzhz/JjSaBrG1g3eah4USIHDmz X-Received: by 2002:a17:906:5a42:b0:993:d6e8:2389 with SMTP id my2-20020a1709065a4200b00993d6e82389mr1450866ejc.26.1691655153081; Thu, 10 Aug 2023 01:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691655153; cv=none; d=google.com; s=arc-20160816; b=R8HHmPcZ/1rYE6fKlzaHpgXPlXvmq68fG5MgnsZedbCiYKzoEkyRzW8/pZmlJXloVz 8W87scmeUav5a1DzCSdup0DQbG28wEOa826KqM1scKiy8X5bNWhrLRHfpDx410bsDesp p7QpnaiffgMmp924uOASvAiOkP+Dh45/X4Db5IlIe43Rl25rugNF5SmFe0sZxH3B47I1 QM0b7xdJzevvue/ruESh2HhgWtIulM5to9zqoHcmmH/yczuN2KGljo5YDIgWqNt4gO4y sTbg6lEKfFqg3kAjRSp11nbsa2vNbntxx4drS9aESB9Z0EctLgCbfStakbILyCc0mFUt pgig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=7kO91zdzhxanEBFqk2+XfHfxHDjDWHOzAnP1IEWCqVA=; fh=d9qfZk34XFbwng2QWod61zWmoRXuhc43TvLOegAYu0E=; b=w9kUReav+Vp+0Tlkhs/DVstVh0puhvw+R6j2IrPty+GCvAX029lG4E9u7lmPfu8WmZ /lZiXzN2X3W6sFRMsOt0NmcgbN6yL5nOIIUQEumFxMKy7WkPHf9bJVIlMClAsPVqA4l5 FbIQ2E5+1Su/opG0N1Nyp9A1TYzUq2X/iZUbJpSPIgYZkVQNvGG9FsYiLK64T+zX7Q5N q7tMuF911G+gvthSnGV+cSHvh3nHMl/cLGWe6yhDBo/b1rgcz38OSkDr2uPWKuRdlC+s HCWw77lQ894FqodpsWtGYEFvLMMoTbPBaQHmcT3jC5PHIB+4A671tUDVye2+KgDAGZ2h 0m/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=AEVWOGGR; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a1709062c5200b0099325282818si1123909ejh.571.2023.08.10.01.12.08; Thu, 10 Aug 2023 01:12:33 -0700 (PDT) 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=pass header.i=@mailbox.org header.s=mail20150812 header.b=AEVWOGGR; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232925AbjHJHd7 (ORCPT + 99 others); Thu, 10 Aug 2023 03:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjHJHd6 (ORCPT ); Thu, 10 Aug 2023 03:33:58 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDD7510E9 for ; Thu, 10 Aug 2023 00:33:57 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4RLzFD0594z9sSN; Thu, 10 Aug 2023 09:33:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1691652832; 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: in-reply-to:in-reply-to:references:references; bh=7kO91zdzhxanEBFqk2+XfHfxHDjDWHOzAnP1IEWCqVA=; b=AEVWOGGR8/yhmcHJ2oJl5zhMmvXnLH7yJSiV09svBXyKk0FEV+3pzTAEzPQ45mSmNHaIfO K4vu//fN+r39zx+ICKVbBMGkiMxgh6lCgj/W/+Y3Ya0bPb2jU6P+mw3n3zOwt45SIXw/y6 YERZjJ6mtKtkohUB7tbpxBJ3+F4ixe/sRSuN/IyukyOHEkqy5FV++rNtUvAa96r7W0pDSw CbFDW2Yh6NPE8Bwa9OMj1+X1ESeaLsqWua8pTNi+gkdOmqKgjxiKNKsjg/ZmPCEjnxB+ej +eeJH1uGk8toay0/TNnNmcaA4vSQUHMbQOWR9NrPmfUhlcypNZcG54vjz+mGsw== Message-ID: Date: Thu, 10 Aug 2023 09:33:47 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v5 1/1] drm/doc: Document DRM device reset expectations Content-Language: de-CH-frami, en-CA To: =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= Cc: pierre-eric.pelloux-prayer@amd.com, Sebastian Wick , =?UTF-8?Q?Andr=c3=a9_Almeida?= , =?UTF-8?Q?Timur_Krist=c3=b3f?= , dri-devel@lists.freedesktop.org, Randy Dunlap , linux-kernel@vger.kernel.org, Samuel Pitoiset , Pekka Paalanen , amd-gfx@lists.freedesktop.org, kernel-dev@igalia.com, alexander.deucher@amd.com, Pekka Paalanen , christian.koenig@amd.com References: <20230627132323.115440-1-andrealmeid@igalia.com> <3ca7a141-1385-351e-9186-00874e254165@mailbox.org> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 36edb37f26a661c29d2 X-MBO-RS-META: uxaa54m9bc6urrh93kfgws1pkrjfkjch X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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: X-Mailing-List: linux-kernel@vger.kernel.org On 8/9/23 21:15, Marek Olšák wrote: > On Wed, Aug 9, 2023 at 3:35 AM Michel Dänzer wrote: >> On 8/8/23 19:03, Marek Olšák wrote: >>> It's the same situation as SIGSEGV. A process can catch the signal, >>> but if it doesn't, it gets killed. GL and Vulkan APIs give you a way >>> to catch the GPU error and prevent the process termination. If you >>> don't use the API, you'll get undefined behavior, which means anything >>> can happen, including process termination. >> >> Got a spec reference for that? >> >> I know the spec allows process termination in response to e.g. out of bounds buffer access by the application (which corresponds to SIGSEGV). There are other causes for GPU hangs though, e.g. driver bugs. The ARB_robustness spec says: >> >> If the reset notification behavior is NO_RESET_NOTIFICATION_ARB, >> then the implementation will never deliver notification of reset >> events, and GetGraphicsResetStatusARB will always return >> NO_ERROR[fn1]. >> [fn1: In this case it is recommended that implementations should >> not allow loss of context state no matter what events occur. >> However, this is only a recommendation, and cannot be relied >> upon by applications.] >> >> No mention of process termination, that rather sounds to me like the GL implementation should do its best to keep the application running. > > It basically says that we can do anything. Not really? If program termination is a possible outcome, the spec otherwise mentions that explicitly, ala "including program termination". > A frozen window or flipping between 2 random frames can't be described > as "keeping the application running". This assumes that an application which uses OpenGL cannot have any other purpose than using OpenGL. -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and Xwayland developer