From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 6F1C72DB7BD for ; Tue, 17 Feb 2026 11:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771328155; cv=none; b=NVuufcTJlR2iPMdkKzUxFS24U3xSnZ1RdobMkLsXZAmPJvwZt2g8RRXQiRIUdMFtMY79//WouLNhndc6apeP+FaD1IJ7YUApWaTzuqPPssQ8Pd5tuOOx9pw/i/Z/pAMeeWeuoK/Oe5oezWdOSkL1gz4rYqSrk0QKQ3asF2Ye1cI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771328155; c=relaxed/simple; bh=/mYq2mgQ8AzcXGSReoxS/Ed830cdC5EHc+YB2rRAxNQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lmmPnSdFqYymcN8qqZ2nHPBp+IP95+as2CVpB1TIErq8PVa5MrKoqaYCeloYCPz+u6S+wjCZgJVV14GhkAF1Rwz9dYZ0vAM8q3istyKvxvV7sqMYhrZLw+Pv4TEJ2PZimTCkZhIrD4Wv7HfGk/sNiFVWBkVX9PStq/LR/QW9uyU= 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=TMYq+L7+; arc=none smtp.client-ip=209.85.221.46 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="TMYq+L7+" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-43622089851so3785367f8f.3 for ; Tue, 17 Feb 2026 03:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771328153; x=1771932953; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LgQNKr8r/V604Sp9uPvt3G5BJw9jwxBK5OgFuLEJ6t8=; b=TMYq+L7+deZWdyIo7GnqI2tx+3FzgcT/lzTIsHUUyao9gUGCPtIUkh6My3ygTWflzu UlbH+bhwViFJW89+cUqEwoCn8Z68mrfTs8NS5/+m8gwXPVEzUUHs1eh1PBCb3mpHldCk zQg7CwpTSDL2DXjZRtMCijY8a0q51BP32RLYN39Jxf9WsS9PwCpoVIS0riTmotaEVtW7 jmQORAOeBemDioJYWeDSIA53ZQDg+dvKzFhthHXFBfRjFdZg90wweKbuyrzXgWGlerO1 dvzHUtFbZIyyoW8GA7w0ER1xGNzx68igfcgzxlcP+BKX2QRFRS2aE0SI3azxPfudGVfo WmAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771328153; x=1771932953; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LgQNKr8r/V604Sp9uPvt3G5BJw9jwxBK5OgFuLEJ6t8=; b=agSrcakxMGIsHmWCxJtHEZb7Uf20xkNnXhdmIgpH+trLJcJMw/S/yVbPhVhSbLZjTe fZZJodXbggnYn4hiULvUIJJ4gKPStcEHMO5cXFMapqi4Pu5Cwas6JjairEwF4G4rG2Ve MbUMhQXl8jLOSnDAcjj8gwmbB+lrxVRJPuJ4tLkMI5SmNkMlzuwtwMe4kjFSPfQxEvOQ NsEPPLjvP4QNVb3RDIZbkYEaidlH56pgnAcCOBnHD6ZRzYqw+y1N+vgpIu5nE2WBwQr4 At0KR/VEQmG5Cu73PX2i7kNmJUkRyYwLszuzIHXMlp+f94EJxPGYB1YOvwBIO9okmU6d dNAw== X-Forwarded-Encrypted: i=1; AJvYcCVKj8uJdWxfJPp8dCzQJjGhPZ9RnVdTuIxuiYHJ5mQjC6AaPMbdtQFDjv/I4BYubhpMCP+Ynk3OhjHpC50=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3EPqgNAmXncmFePumHfMi3TpeluqQHXCC+qMIL18XhOiMt0qG b//arc/yXWTjST9j7sZ0EZKCwyZ1MtJJlOTKrtgxtmuEnj3uvenAc+R8 X-Gm-Gg: AZuq6aLmYfjtgwhA2k87YM7FrrVrxAvyWs9bBBCm3i/XY6uqaejHib5hhH3uK9/NKhy QF2omVJ1TWms+Sagveamswaole7iK7ZapYie1IT59RsWGGLbCqk5Ij3ntZAtDJAf66BAT6xja1S 9BImNIv88zark6ub4I4k69hlff6I2vedYN8wMbzxkV7JOrr7GgrpHlpgrpqHst6vcR84C2ZmuK5 VwmUVEdxZ+46chP0xU0ZfvMTkUaoGAq3cNtqgqjz6yPbcQQq8ehkMzEhKwRG8TUnL7anUH2NNSi qKyj5aWReOQvPr24NUDJCCx2kRcILlHYjjx/PqisQgwBvGW88aA/uuh9hv7Jl7SmlLV6uMiL6In Z0vfeYgQ3o/E9Nw2BcneG4AKISoQThX4eSiARP5uhhtpWGf99eOYh/cipAYee49HZmhAQ0Lt2Nt TK0WAr5Sk/isuBnh4NC9c1NAjF6JPIRDvggIm/qaRJaf2BfabSuRnLexidkMY= X-Received: by 2002:a05:6000:40ca:b0:437:8f37:887 with SMTP id ffacd0b85a97d-43797917e2emr23844398f8f.36.1771328152605; Tue, 17 Feb 2026 03:35:52 -0800 (PST) Received: from [10.247.12.125] ([129.234.0.168]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796ac8d82sm33685378f8f.31.2026.02.17.03.35.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Feb 2026 03:35:52 -0800 (PST) Message-ID: <2648bf28-5ac9-462a-899a-2bfa3905dcb5@gmail.com> Date: Tue, 17 Feb 2026 11:35:51 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v1 1/2] drm/syncobj: Add DRM_IOCTL_SYNCOBJ_QUERY_ERROR to query fence error status To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, david.hunter.linux@gmail.com, =?UTF-8?Q?Michel_D=C3=A4nzer?= References: <20260213120836.81283-1-yiconghui@gmail.com> <20260213120836.81283-2-yiconghui@gmail.com> Content-Language: en-US From: Yicong Hui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/17/26 10:29 AM, Christian König wrote: > On 2/13/26 13:08, Yicong Hui wrote: >> Add DRM_IOCTL_SYNCOBJ_QUERY_ERROR to allow userspace to query the error >> status of a fence held by a timeline/binary syncobj. > > Not bad for a first try, but quite a bunch of general comments. > > First of all to get that merged you need to point out a Mesa merge request where this interface is actually used in userspace, so that we can look at the full solution. > My educated guess is that userspace doesn't want to call this IOCTL separately because of performance reasons. > > Instead add some additional flag to DRM_SYNCOBJ_WAIT_FLAGS_* so that the IOCTL aborts the wait and returns an error as soon as it sees any fence with an error. > > Another DRM_SYNCOBJ_QUERY_FLAGS_* is potentially also useful to query the error on a number of drm_syncobjs at the same time. > > But in general since this is not a HW feature the userspace developers need to voice their requirements and explain how they want to have that implemented. > > So adding Michel on CC, I've briefly discussed that topic with him on XDC last year. > > Thanks, > Christian. Hi, thank you for the feedback! :D Shall I just wait for Michel's input on what interface would work best for Mesa? Thank you! -Yicong