Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14528419rwb; Mon, 28 Nov 2022 02:03:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf70sIsfG12VmQXmWVEqYVZNwiByaX3QpDdieTpbeq8N8VGUMz+ef8OEyqQ6uN+93wHT6+IH X-Received: by 2002:a05:6402:248e:b0:461:e2ab:912d with SMTP id q14-20020a056402248e00b00461e2ab912dmr30625120eda.93.1669629820849; Mon, 28 Nov 2022 02:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669629820; cv=none; d=google.com; s=arc-20160816; b=rnHyKkiqTf3E7F1ca56vmGhIMp04df/jv/6lmVceSaqafszVN00Iz08Tt9kNWQmZ8A DBqvNTQMsHdzUb9y1J5puMjFzqxBBlAczJLYKvZpJnPi7yWPL6mh9NLK0qyXqkiRqOke YpwW5j8pn9MfIuJv1vZLtyvzLy1V2kECmVQmPOc1LuNupPDQBq4qfT7QRRMdhXariFtF taBb1J9+EE19xjcmBS2L+crgVMIXfFuPY0ffqZ2tkreIJ7XvOsQfmESJ3k3nRi6yfHyy y615/hoqO0JX9H6+c8Tg7Qu0JrfzCfGpKokSeaS8t0JDqtHEH4HtL2gxwKL21464v136 8Z4w== 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 :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=7YoBzNpn8HKIEqf+GljIP7pMTP3BAzak4g4w5EjkCW8=; b=yZNzwvVl8xS1sdrFtPvJFs8ftZFUjezeChIwcA2du85OjfhEuAHK9nXnHXDJS0KgnN HnjJfd0cftQGV8zweRTktNs4YoSxh9+BOubixO0gaWE9s79t/lHrd+w0QyL2k8oygdQh du4FSQsB68Li68Zr/Pq2GCpf9FQHl8KSoRwb17QMYuqllmUROE9y2xMEss0yd30BAzgC xOPqLoSjCRqCpxNTbJcQTC+ADRFxhc/nRlBdRVo4Yhbv5MFz4MNHh/kHj3BPeZUNKBvG Z6+TozskxaULmnuIAGy1mX1WKOvbxxaB6CEl2V6oIMZCOeYWeGNrZkNQMdMruTeH/m5M z7ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail3 header.b=e6a0Q7kg; 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=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz20-20020a1709077d9400b0077d26491a9csi9129351ejc.141.2022.11.28.02.03.19; Mon, 28 Nov 2022 02:03:40 -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=pass header.i=@emersion.fr header.s=protonmail3 header.b=e6a0Q7kg; 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=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbiK1Jaf (ORCPT + 84 others); Mon, 28 Nov 2022 04:30:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbiK1Ja1 (ORCPT ); Mon, 28 Nov 2022 04:30:27 -0500 Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9580B18E3E for ; Mon, 28 Nov 2022 01:30:23 -0800 (PST) Date: Mon, 28 Nov 2022 09:30:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1669627820; x=1669887020; bh=7YoBzNpn8HKIEqf+GljIP7pMTP3BAzak4g4w5EjkCW8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=e6a0Q7kgfsIvwRrd7s0mNPezfQpbp4hVhdCqDnh7t8Bbs4uyrZedfPUiw4/x/fzlI ufQNrEHr0By4oYqkAm+bq6m/PNWqf0iFug+JjiLi2HKAB3S5T/cCE1Jo/VZJpyUaNV O3VnDLwk2PEpOyl+X/D1aE1tbMkAke7l8dglTV34mjjoaVli6qJkX4BJvJtE+9InQs J+36WETr//i2UuLRQ3JcJk+io6gDAcGH/Zcre4b6NW0QFBxyTEelDwkP1CwpFEnxVL ATm6rfZTjThM7rl4Hpa3fgzto02K5pkiaSQtXyXrf8DL4OvQJa7fsFwwgFrMHJlLPz ICxbR/Kb4vLfg== To: Pekka Paalanen From: Simon Ser Cc: =?utf-8?Q?Andr=C3=A9_Almeida?= , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, 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, Rob Clark , Andrey Grodzovsky , Daniel Vetter , Daniel Stone , =?utf-8?Q?=27Marek_Ol=C5=A1=C3=A1k=27?= , Dave Airlie , "Pierre-Loup A . Griffais" Subject: Re: [PATCH v3 0/2] drm: Add GPU reset sysfs Message-ID: <584UdQAqoPr4vSxCTJg70LFQm--HpHH-EhnAo78lRAZ89OnrDkUeKlTnDGT_DMzDT3PeEtmXNsrqB6GuiV4TsZv3pBU8kFWjyPLWGrevIMw=@emersion.fr> In-Reply-To: <20221128112528.1206b1f5@eldfell> References: <20221125175203.52481-1-andrealmeid@igalia.com> <20221128112528.1206b1f5@eldfell> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, 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 The PID is racy, the user-space daemon could end up killing an unrelated process=E2=80=A6 Is there any way we could use a pidfd instead?