From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97044322A for ; Fri, 20 Feb 2026 02:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771554408; cv=none; b=hrXGP9LisxlYbDBZunog/PiRsvHgXV/48V5Oidttr5I7nIG/TZIZzk8/gs3pgC0Ernm4zDca8Hal9N9jvCU4LRbCdt3twBm1DsdM+GiiBjCSWWV3JlB9Z/xJFwTHUZvvogMkhoaCXLwRi8DJ7zuqgPEznhHXpa60wXhgDjRSaTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771554408; c=relaxed/simple; bh=xrwtKR/impoFj784sbKzLCljvsWQ+DTI1q0UljUme7c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=D+Tl3OpmVREuRAas7QkbFYn17TqRZKkKA6nRQ70q6MPcssvKr24cxVp6feJs8r7Yzkp4rIRA4iiZg8FX4IHogeoaQFWRp5MDtNAE+o2ym1yhUURZFq7uxnIey01GxtYrgKbMufzhx8t7NuX/wU2XbtbENiE4iYJju+OcA991mog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Pcc7M8Xq; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Pcc7M8Xq" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-4362197d174so1015541f8f.3 for ; Thu, 19 Feb 2026 18:26:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771554405; x=1772159205; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yEQpxCeDm90fLB/aP08V3YF/uMR2wnZvQmEsrQgnh/8=; b=Pcc7M8XqkiKYRHZPx7RUayM/6vuhqEd912FSjTSjSxR2YwhX6oRV6MqvbK9OOsgMVS pxMzsgcFOSlgN4pG/m3crMvXCGwA42q3Z+jJnKLxwx3e6eCN7dNbmRTgIURhOv0dpaOE dx3jWUt+VTSxveiyg9yi9WPraYMBvKXHs7S+AkWJvpxnV4Jts5jDZBCUMX/FYbmiee9A jF4zjk7ihYD2n5XkPAY2XH54FuuEm4CtvEBR+qgoDJm4iPvIg++fIXS16g4Wp9E75tq/ goK7+jGkxZeSZnUeiRxWfg1udqe3Mx5lhTCpO9rQV7shOpWkTCs/YWsuc3xhdag4RmV4 eWCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771554405; x=1772159205; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yEQpxCeDm90fLB/aP08V3YF/uMR2wnZvQmEsrQgnh/8=; b=YaqcjtIAgzDxL0gmdb9Jq+rRH56L3gOFckg+SffHSTfqpAumPP0mmAXMlqv9xRLF/B ze2o65+ApStjYvqit7696GA8bafBGC6ckLW+WC0qJFKgze1gT8OchevUmgYGXaMTPSrX h4aynS67hpV/ha7+rUv3N5I8m0ygwqdh0gKqhC3GKUO3axbnP7S4p4TbnR3qF9gGGUJm BustiuKLYiE85Z6o7e732TxJwrfqxjKsYa58oAFem5pf7Nt4uS53BnD6tEkP3kHnheej 2LOnsNzTWkktP5QbDSpJwdVt+wq/IZyg7wifiJ/iHpjNL8zvTQyNFwPwIirnOeeqaIFS ymng== X-Forwarded-Encrypted: i=1; AJvYcCUofsI/Bp252aAZDxYDukHhOgZ56YS4ttogk3dMJ8XluS65SCi5OZSj/Y8qFZ+q/QU/Kq8CL/XkzKEsnEw=@vger.kernel.org X-Gm-Message-State: AOJu0YyN6sGtxRf7gQ79vcyZOKebwJ/qy09cPc+kh576oB8HKS8gUqzq +BSCd0Zz5rnPeU7yN5el17ytKPtVdxWYnYgAr9I2rVqFSOcqTcapqnUb X-Gm-Gg: AZuq6aLCR/fj4D2QlHvF5SEXljnYEBDVPd3ZGthv62yVQLZ9RUKacjxOV5R9zIst5df llMcM/vk6g0559SbcPe0aIyjYDqxeh6Iw0H26uidBOLk3fnv4YeREr/MDTGYvvYwwJX0+/CCGjp rQveUevIy6LiC5nUI6byBUfGAh6+bkZbZ2LLCv2cGs8jTwQ67NuKVJsh0Eje5YxBARtzgDL3OfV YlJ2FL/xoh1cHZWmxcdAC6qkV6mD++7cMRnHYBsYrvsVBXut83EToROJbp7mesXuQSpCtp6BpjS SKP2tbjiR2Rn4hAhKq9Ct1VDytUGzmB+zyCaXEKXUtJ+57kRgkLJLnqd3kRhnl197yHu4T8WGpc h6easJRwUHSWIVKA36oFkKz1m0NmxvMUsk/m2txgwl95OKZ/mbkiCrhWO8NhwI+45ja3Epq4a5K OXX/AJf9icwiOkTt6HTasPV7NZ+mCb5H2FDCnBUPzScbLLpzZIFUqWz6pNvS57/yqCh9REy7jK1 lFFw0U= X-Received: by 2002:a05:6000:2482:b0:432:586f:2a9d with SMTP id ffacd0b85a97d-43958e3bdffmr14148383f8f.32.1771554404499; Thu, 19 Feb 2026 18:26:44 -0800 (PST) Received: from Arch-Spectre.dur.ac.uk ([129.234.0.168]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796ad0166sm53446975f8f.35.2026.02.19.18.26.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Feb 2026 18:26:44 -0800 (PST) From: Yicong Hui To: christian.koenig@amd.com, michel.daenzer@mailbox.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, david.hunter.linux@gmail.com, Yicong Hui Subject: [RFC PATCH v2 0/3] Querying errors from drm_syncobj Date: Fri, 20 Feb 2026 02:26:25 +0000 Message-ID: <20260220022631.2205037-1-yiconghui@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch series adds 2 new flags, DRM_SYNCOBJ_QUERY_FLAGS_ERROR and DRM_SYNCOBJ_WAIT_FLAGS_ABORT_ON_ERROR for 3 ioctl operations DRM_IOCTL_SYNCOBJ_QUERY, DRM_IOCTL_SYNCOBJ_WAIT and DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT to allow them to batch-request error codes from multiple syncobjs and abort early upon error of any of them. Based on discussions from Michel Dänzer and Christian König, and a starter task from the DRM todo documentation. See https://gitlab.gnome.org/GNOME/mutter/-/issues/4624 for discussions on userspace implementation. --- Changes: v2: * Went from adding a new ioctl to implementing flags for existing ones. v1: https://lore.kernel.org/all/20260213120836.81283-1-yiconghui@gmail.com/T/#mfdbc7f97e91ca5731b51b69c8cf8173cb0b2fb3e Yicong Hui (3): drm/syncobj: Add flag DRM_SYNCOBJ_QUERY_FLAGS_ERROR to query errors drm/syncobj: Add DRM_SYNCOBJ_WAIT_FLAGS_ABORT_ON_ERROR ioctl flag drm/syncobj/doc: Remove starter task from todo list Documentation/gpu/todo.rst | 16 ---------- drivers/dma-buf/dma-fence-chain.c | 52 +++++++++++++++++++++++++++++++ drivers/gpu/drm/drm_syncobj.c | 46 ++++++++++++++++++++++++--- include/linux/dma-fence-chain.h | 1 + include/uapi/drm/drm.h | 2 ++ 5 files changed, 96 insertions(+), 21 deletions(-) -- 2.53.0