From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 2B1CF2E22AB for ; Sat, 27 Sep 2025 14:03:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758981825; cv=none; b=JK2x6RpcD33LC5Tllyk2Zh12lljxFOfUVIYIbToHV5Wt8ro2Cis9IqjQ/g/MjkAmcSoRdXYicmVEiSLkQOo2W/crf3wBXWVf9LruZDtvDHxGnBvO/T/6rAkQNBj89qvGHTw/YM4sYl8dEciO3k/UsP5q6A9OyRhAerjl28GNCzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758981825; c=relaxed/simple; bh=iZIouQAWI0nC2znsT3y23S97+/Gt8E8XVf9A0+wMI68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A1K35VDNPQtSoe2jNdNdNRIb6xKIyw9T4yeUPUv7Fo+1q/+GzJl/rYJOpC7rgNwlvjXF+dFNFC+DfthpnUvkHsgDb0iOcEu6FBXS0yytbsVCS/BSfWurNdfjoY3gsfiR1hFsGnnNbTGVyDCu84/Ya6oZtz1rBL7sMJ+ekapd20c= 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=Pdu/Li2e; arc=none smtp.client-ip=209.85.222.171 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="Pdu/Li2e" Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-858183680b4so409564185a.2 for ; Sat, 27 Sep 2025 07:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758981823; x=1759586623; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=1RowTgROwHl16yIt+/YH6L82gef48dxD9rHygNzwZv8=; b=Pdu/Li2ezlqIt8JEvn2C7/xnHjfuP5EauZ+eLkqElJ640trRwjvGJC1CCIzMjqxtzN HY0rVDTRJyJk54g9Jo4gJ4PxGkF9mcJPkl4xiZDcyO1etW7dKkFDqRSrtXLdQhxBo/QJ tobLP3y+/t6mW0Gzj3prUmkRNRRDa2OyahXtEcQajJ9NFHgDtb/vGluWBlJ+IZNuRsNS tc2fmZ3eYCixVIiSm9RC/0uW78S8NVvlKFveI5vfTmIzv8Z7RHzRbd3mjeVCKu+v7ye8 619eyPg858tv0pX4f87gs040WA3ywmehsca8z+3/J1JbbHjn7Y4TJVXSmXsIxoqKHeMp YCsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758981823; x=1759586623; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1RowTgROwHl16yIt+/YH6L82gef48dxD9rHygNzwZv8=; b=jlFMRjL6lIUhmxshlteDlgXKJWJXVDCvK//R+SeS0D4wsq4Z2o4caM/yYnzA+zgp8H 6MgzE1ZZLI+/8HIQ3POZoWBsgQ49gmlBCVtCnJxn9vqQ1YtZ4auVxykJzLWs+o8DCcPB 6bhuXmukgt8I+wWwmIy1KmhLTqwVssXB73WkaGetax9ebwDfrx8wc+czbtZsGB7ORJVb CBqF60JlAn/pvRVxnA+1UfJowLNjA/wZkIIB8oZbdKgEhx1gPHfq9LdT+5eWeVxdV0A0 ew6hXRFQdDPPlTGcUIkrxj7K5TKMKmS6jURcZ8rERH0kI9KeWTiedeIo8m2MnLOpPKOj AamA== X-Forwarded-Encrypted: i=1; AJvYcCUpbXBhBeWZWrCAvVXSX0ynMbCoChcHUzJuSOgiQrTJuT66FQTtowKoDVVskbretHF0xGjJSXm0YcnGrNdkOQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yyl4+warSNTVS6nvIjqxuJqQ8o7oSVRczSiOcPYU3z/24E6w0BX aoGGMAangtiiTQsAX4ZEIHjzyAYftWsvxgBRwfik3YEn7b/TBvZ/or+X X-Gm-Gg: ASbGncspMpIZTXeGOWm7NznaBIq9LTo3gb0Wj8K5FuphfbpXP3I353pW1jfJ+62LMb5 Fq/j1XU3k2vSE5Cb3lRq/uAwYeZyjl9tHVBJ9WNUArwMiqX/DjANqmDZD+vCo/lsLW0MDE5h61D fuZyFRN3auTxWQphjtSkqFwwu9ZTTNPYCd9INhMQG0OmTZ1Vz80rAftvI+C612XwO7RfwzQjoTJ zN/UGhJzFiQ/hEq1NPdcEQYCtGInmD0aOB0153TwpD5WsawU7XOCpSqLmzdHiZnyZcdG3+0eHAo xKVH2qBI6n06kJE1hp5LWulk0O/xCxh6/0eS5pqA6YvxlLASYg14lGnCwRuhCcr1345O6Zyugrw vuYPiZEHffnyzHSvQCS6A2lMZAOSpU+nF6UCyIHNkWndl7Cr4TnanS/Pf1tcebY+P2PO/Lbuxgc 9LOZXK2NGwUwQzcephbEppvZCtUpTGJUfXF8M2VXLA3DKX X-Google-Smtp-Source: AGHT+IEjsLJZDcVKW7VjD94SJTTQGuy7D2CuSP0XnP5QiF1Og6sVMZnEnghTHukI4UHYi90JuQhxLA== X-Received: by 2002:a05:620a:2681:b0:862:79a9:eae9 with SMTP id af79cd13be357-86279a9ed9bmr629769085a.85.1758981821539; Sat, 27 Sep 2025 07:03:41 -0700 (PDT) Received: from fauth-a2-smtp.messagingengine.com (fauth-a2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id af79cd13be357-85c3218ed08sm441368585a.50.2025.09.27.07.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Sep 2025 07:03:41 -0700 (PDT) Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfauth.phl.internal (Postfix) with ESMTP id 32CA4F40068; Sat, 27 Sep 2025 10:03:40 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Sat, 27 Sep 2025 10:03:40 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdejvdegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtugfgjgesthekrodttddtjeenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrghtth gvrhhnpeffleekfedutefhkefhheekhfelvdejgfegvdejjeffudelkedtffeiveejteet udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsoh hquhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeiledvgeehtdeigedq udejjeekheehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhlrdgtohhmsehfihigmh gvrdhnrghmvgdpnhgspghrtghpthhtohepfeeipdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehmihhguhgvlhdrohhjvggurgdrshgrnhguohhnihhssehgmhgrihhlrdgtoh hmpdhrtghpthhtohepphhhrghsthgrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopeho jhgvuggrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopegrlhgvgidrghgrhihnohhrse hgmhgrihhlrdgtohhmpdhrtghpthhtohepghgrrhihsehgrghrhihguhhordhnvghtpdhr tghpthhtohepsghjohhrnhefpghghhesphhrohhtohhnmhgrihhlrdgtohhmpdhrtghpth htoheplhhoshhsihhnsehkvghrnhgvlhdrohhrghdprhgtphhtthhopegrrdhhihhnuggs ohhrgheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprghlihgtvghrhihhlhesghhooh hglhgvrdgtohhm X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 27 Sep 2025 10:03:39 -0400 (EDT) Date: Sat, 27 Sep 2025 07:03:38 -0700 From: Boqun Feng To: Miguel Ojeda Cc: Philipp Stanner , Miguel Ojeda , Alex Gaynor , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Greg Kroah-Hartman , Viresh Kumar , Asahi Lina , Daniel Almeida , Tamir Duberstein , Wedson Almeida Filho , FUJITA Tomonori , Krishna Ketan Rai , Lyude Paul , Mitchell Levy , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, llvm@lists.linux.dev, dri-devel@lists.freedesktop.org Subject: Re: [RFC PATCH] rust: sync: Add dma_fence abstractions Message-ID: References: <20250918123100.124738-2-phasta@kernel.org> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Sep 27, 2025 at 02:14:22PM +0200, Miguel Ojeda wrote: > On Fri, Sep 26, 2025 at 6:10 PM Boqun Feng wrote: > > > > Thoughts? Miguel, Greg, Danilo and Lyude, any idea or suggestion? > > Either way sounds OK. > > More generally, one thing to consider nowadays is whether we will want > something to eventually live in its own crate etc., but for this I > don't think it applies and being in the `kernel` crate is fine. > Being in the `kernel` crate is fine to me as well assuming dma-buf is also in the `kernel` crate, but I think it's not fine to put it in kernel::sync (see my reply to Philipp) as it is. IMO, we have a few other issues of file hierarchy as well, so I'm trying to avoid more. For example: - It may actually make more sense to revocable.rs in kernel::sync. - device_id.rs and devres.rs may be better in kernel::device? - maybe we should create a kernel::bus and put auxiliary.rs, faux.rs, pci.rs and platform.rs into it? - cpumask.rs could be in kernel::cpu? Regards, Boqun > By the way, should Gustavo and -media be Cc'd? > > Thanks! > > Cheers, > Miguel