Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp184999rwl; Wed, 9 Aug 2023 12:59:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwVX9h3PgVwkdA8EzLXOKHeZxK/fOF7xGvTI1BkcJMVgjsJ53FO6Q+J+aMimNR8HZ9Vex+ X-Received: by 2002:a2e:9590:0:b0:2b7:65:fca2 with SMTP id w16-20020a2e9590000000b002b70065fca2mr129586ljh.49.1691611181441; Wed, 09 Aug 2023 12:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691611181; cv=none; d=google.com; s=arc-20160816; b=qtNrMVcOsallyrKsw3lzthMr37+f2Gaqf/khYtdVJIFgZKkdez3OJH0ys9+zAqHJUH bJFVKj0MSOJ4Zpu/qEXyZj02Vbnvlx60qre3dSB6vxa4nv3bfD5KPafyySEK0nPrP8vZ bhtxKn9VHLhX4JqNrikx4sMEwR9StcXdZN6h2wGiIxCo6iH0b3Sz04MIZLiEdgQ8bCtd bQbO8wqYdCQgFfD4zjwW4oBXnhQm0gRw1I423JtfFAKE/8/ABa4G5I+Wfi6ZIQGwUdEu v0JpSyQsTdXxKZ2JiLF4emYZZflk6nWiGlgGP9yo7sE70wodrhGV58AEzgDw5ctdx6v6 Ou9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ih33D6tUiZAfLMClGioyRnGVJHXSceBJGFUENGWTcCM=; fh=L5Q9o25WwrmcB8isGxDHzrA8keXwnzvTuWraO3A7ZO4=; b=LR8C/DQMwv6H5Xgj0/oLZ9Mui5PkKpr+JoW+euLrFq/w12ZzKHYQGDth461SykBuVz HlpUhIiO05ekI/zZWD/LJNN4zStRPnj5II3aoD1FRofzkHeP6LQe+gGLOpaBvjN2iIiW vY9Sty1buHrjZZaagHGAW6LULpjDdUsuV8pFBQufb3voAWs0WOh5/GwzfIRj8/mlNrgy YCUYRmzjNjylYk6WZX2LYmSI+jYjsJi16qFVI1dPaFrrMwOT2nns9y7mayf7pmFdH/0h Xotk2RzQi2zdj4qgYZPfiPTeOMt4NoZJUAcKsv+SOCfr9CfAP55ph+dm5zkevxWrX1sL tqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Sqvs8vIm; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a170906384500b00993949aad30si9803071ejc.37.2023.08.09.12.58.41; Wed, 09 Aug 2023 12:59:41 -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=@gmail.com header.s=20221208 header.b=Sqvs8vIm; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232937AbjHITXf (ORCPT + 99 others); Wed, 9 Aug 2023 15:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233766AbjHITXQ (ORCPT ); Wed, 9 Aug 2023 15:23:16 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EA3535A3 for ; Wed, 9 Aug 2023 12:16:21 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b9ab1725bbso2847071fa.0 for ; Wed, 09 Aug 2023 12:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691608539; x=1692213339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ih33D6tUiZAfLMClGioyRnGVJHXSceBJGFUENGWTcCM=; b=Sqvs8vImIOvNM0R/NJECHqrRWJcQXlzLh4iNYEVO6/4xd/JQdBmZVHvRc1yzJx8tj+ DkQsb5BpJG1ZvhJkXFChG24teQ6ifDk2rs/a7sZMQF+l8Kb/Wsu36Vqqq6GC/BRnER3v ttuFeKNY9DHdMvEhu3z9la68E+7PIwFHSRFMQTl/i4fKjLqfKcIKkTU+now5G2zrgCC7 a9INIUkGuz1hR/3LUKrgOkWcyu+cw2t/L+WCR1lFQt0n3pQn6DA5iIbVyACF9kWih4Nz 7NuH/xOmuR26Tivw0nUE9k9+xTpXsWTM1v+DcY1ggv3owgEqhy0vbT4pZWaaP4FcSh9q +0kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691608539; x=1692213339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ih33D6tUiZAfLMClGioyRnGVJHXSceBJGFUENGWTcCM=; b=lNfpJjJ57o8IsYQqCGCCOVZ2W1BDRh7OvfDeW71jJJc/aCNVvQTIA1EkcoCehNku1O 6QOzamInfpLCjcqnhDMrsT+pFLagfye5cGd8QYiT+pJafNw1C37c3hbJQHTOiK03i3Lh uRtBLVNDwARPwKd82TW//HuglVluNmVv7EuzaD5rxHy9LMPX3rD1yX/wm/yfg8YeOv2F frzjmsGn2tR16bUMObxD5p98QY+uQrn6y5xjkhIWlDahrOuHwuMT2S3foBzWB4ETdmyJ UnfirAQ9NZhH8KJg6PFfwZffzQLXXAr+leK6T+l9o24ciGitciFMbX8mVArZ0jtwyy+O /Siw== X-Gm-Message-State: AOJu0YxBrunhy2z1U+stXT/WDuxwx7JkHkOnQ0S7OSE7LYIpRp1/zEUp mP8BAFbIqoiIAROy+MKiOvtMAyvwFlqSAYQ75DU= X-Received: by 2002:a2e:878d:0:b0:2b6:c8e8:915f with SMTP id n13-20020a2e878d000000b002b6c8e8915fmr103212lji.22.1691608539294; Wed, 09 Aug 2023 12:15:39 -0700 (PDT) MIME-Version: 1.0 References: <20230627132323.115440-1-andrealmeid@igalia.com> <3ca7a141-1385-351e-9186-00874e254165@mailbox.org> In-Reply-To: <3ca7a141-1385-351e-9186-00874e254165@mailbox.org> From: =?UTF-8?B?TWFyZWsgT2zFocOhaw==?= Date: Wed, 9 Aug 2023 15:15:02 -0400 Message-ID: Subject: Re: [PATCH v5 1/1] drm/doc: Document DRM device reset expectations To: =?UTF-8?Q?Michel_D=C3=A4nzer?= Cc: Sebastian Wick , pierre-eric.pelloux-prayer@amd.com, Samuel Pitoiset , Randy Dunlap , =?UTF-8?Q?Andr=C3=A9_Almeida?= , Pekka Paalanen , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, =?UTF-8?Q?Timur_Krist=C3=B3f?= , dri-devel@lists.freedesktop.org, kernel-dev@igalia.com, alexander.deucher@amd.com, Pekka Paalanen , christian.koenig@amd.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Wed, Aug 9, 2023 at 3:35=E2=80=AFAM Michel D=C3=A4nzer wrote: > > On 8/8/23 19:03, Marek Ol=C5=A1=C3=A1k 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 bou= nds 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 i= mplementation should do its best to keep the application running. It basically says that we can do anything. A frozen window or flipping between 2 random frames can't be described as "keeping the application running". That's the worst user experience. I will not accept it. A window system can force-enable robustness for its non-robust apps and control that. That's the best possible user experience and it's achievable everywhere. Everything else doesn't matter. Marek Marek