Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp695598rwo; Wed, 2 Aug 2023 02:41:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGOLeTMh4boZy4ZepSjx5Sc3iVha2HP9h+WlfPLHiqNLAqv+TNM03G/g+v3Hw9/VHxYzPs X-Received: by 2002:a05:6a00:891:b0:64f:aea5:7b49 with SMTP id q17-20020a056a00089100b0064faea57b49mr19034725pfj.17.1690969290432; Wed, 02 Aug 2023 02:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690969290; cv=none; d=google.com; s=arc-20160816; b=AhU4+mTchm0i2oyUTetwW5QiV2jFoOkKfpQje5UmoY32D/9hW7mLCziEy9mXHlapxP KEYa9++6a9Cnbd9ZgT3hZH6iaHP8zzLJCkHg4gxz/0VecwkTnzI9/b5q0RIiWMnG8VI7 7PVaYoN/kDMjVdeLfzY6fwXP3udUNXXK2vS12cUlNNr9XwnlxeaMNYjH62xk7enyEIBu HaIDl1AJlg4UIgQU1hzcUvoO6RYzSEbTXaLdi6Y7uMMTChqVomJWydzYHF9TPpxGJb2g S/evw2/QpQ50XBx1isv4yLMXs0lEl+AhSRX/Etgc5Yt0GzPB0olCK7j6l6iI//xsXxr4 ndgQ== 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=fPZCXWwaboiCsosFBV+TGKPHI0NZRD50bC97h4h0b6M=; fh=JIDs5RgMaIUG6c0Gy5ljjvF9HXcK/uyQBO+AA/UTuqI=; b=VZd2nhFIoA6IdVaTnYZbuHCLwAjImu/gQi7NnjgvsMxHxQybupXv+mV7OQoQDHJnYN d2mRrumNr20fygzfqSo2CFi0mvw6Xma8PCGOFWZelUam4RJ0XqZUrCFVsgnJpsfBS1HZ USqyQOy4iYWrWEbz9KgAWzxSRlt0Y9tdGdOJe0lRTcQm8TNqDHJfNdZYNZ/K9RNXZ7MW YTnIkKJtcjzgjoXiDSdomfPl7TtkxEp/ZSuGDbrGr91axAa0U+H6qoJvvv+xtbxRGLG5 z/a35XliBwdxsQy6TOdeeCgPGwwlb9s198im2Ow1F+mo197/Annb7aan7kg75hembHYJ 9JNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=xrKrYKWk; 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 a6-20020a056a0011c600b00682acfc5dacsi10395079pfu.53.2023.08.02.02.41.08; Wed, 02 Aug 2023 02:41:30 -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=xrKrYKWk; 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 S232274AbjHBIeh (ORCPT + 99 others); Wed, 2 Aug 2023 04:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbjHBIef (ORCPT ); Wed, 2 Aug 2023 04:34:35 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C595171B for ; Wed, 2 Aug 2023 01:34:33 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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-102.mailbox.org (Postfix) with ESMTPS id 4RG4ys2vdcz9sTy; Wed, 2 Aug 2023 10:34:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1690965269; 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=fPZCXWwaboiCsosFBV+TGKPHI0NZRD50bC97h4h0b6M=; b=xrKrYKWk7/9Bk+7eCol7EaX/N4y3Pz1aH1PnjKD71QZcedm26Jh9Mm9niIonqFhr8MDYkn AbjGhgo3g0szGmjT/aAR+YWy764hlSZsWlQFQ4Cmjh9RAcJBUmhQxm9jAmT4sv/V8MNZBO UJzI35F4HJ7rIZMtfrUPGaAxwYg8WAKsHeTmdK0tIxfDLzxV1z045Yt2AkOVaq4bc77G38 Hn+OYwq8wIhN0HgrT6P8A0NghZJOs6mmAR7VHQzyWfGdlA+qrhgdrbjYAj6c8gsFwo5USl 8te9MAgp+Mk+D3iYHoG4S/WRdVlWsyg7dHktbEof5M2Th6a6N8G1oUqWoad6eA== Message-ID: Date: Wed, 2 Aug 2023 10:34:26 +0200 MIME-Version: 1.0 Subject: Re: Non-robust apps and resets (was 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, Samuel Pitoiset , =?UTF-8?Q?Andr=c3=a9_Almeida?= , =?UTF-8?Q?Timur_Krist=c3=b3f?= , Randy Dunlap , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Pekka Paalanen , dri-devel@lists.freedesktop.org, kernel-dev@igalia.com, alexander.deucher@amd.com, Pekka Paalanen , christian.koenig@amd.com References: <20230627132323.115440-1-andrealmeid@igalia.com> <45a1e527-f5dc-aa6f-9482-8958566ecb96@mailbox.org> <8eb58a5f-02d0-fadf-1d5a-790b6af2d81e@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: 6a027a11499082f043b X-MBO-RS-META: qnjcf7y89rjz4khb5t5tdbymgemp7ina 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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/2/23 09:38, Marek Olšák wrote: > > The precedent from the CPU land is pretty strong here. There is > SIGSEGV for invalid CPU memory access and SIGILL for invalid CPU > instructions, yet we do nothing for invalid GPU memory access and > invalid GPU instructions. Sending a terminating signal from the kernel > would be the most natural thing to do. After an unhandled SIGSEGV or SIGILL, the process is in an inconsistent state and cannot safely continue executing. That's why the process is terminated by default in those cases. The same is not true when an OpenGL context stops working. Any threads / other parts of the process not using that OpenGL context continue working normally. And any attempts to use that OpenGL context can be safely ignored (or the OpenGL implementation couldn't support the robustness extensions). -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and Xwayland developer