From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2E0D139D1B; Fri, 9 May 2025 05:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.145 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746769583; cv=none; b=MkCd0H1AdMjKFedN1vE+424AhWWkOW3UwZQ1xDkiUpyNidVUGNdXZn6hPfwI39FcPA85n2EoEDrYW9nj69Vl2oxAaNnXghMixTpjRNDdGDN9OD6QbwZGyIsd14aTafgW6DuaeNSIg1oIhtiVHJOIb6UhtHhzmtPndWqX7Wfo8H4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746769583; c=relaxed/simple; bh=pegWLxC3W/vcloC/8GtIKLtU/BfGQH4YpW9iN4psbqI=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=S2Hhs7IjXfKjmNEbNZQ4Cr3dMWx+S/KDlHBtm2QMSfe5my+cMGuHNq7WOY7oG/Utw0m2/YJOSL0hKJyVL1zQd4KPsImaAI9xImU2Uf/5A3zxgPqaM/sRAzrD4HcQw+MZxSdi8eXqlEkQcG+oipW1PVsr086WnlFMaxaQeYedP4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=yFlhotKn; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=L8WjzyeN; arc=none smtp.client-ip=103.168.172.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="yFlhotKn"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="L8WjzyeN" Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id C8B231380299; Fri, 9 May 2025 01:46:19 -0400 (EDT) Received: from phl-imap-12 ([10.202.2.86]) by phl-compute-05.internal (MEProxy); Fri, 09 May 2025 01:46:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1746769579; x=1746855979; bh=+1+xZSC34osRgfIQqLNaRNA6WjmcAgoDcTg1LRLRZG4=; b= yFlhotKnpiER4XVR3XsZRORud1Hs6z+IS4WAiNu6CxBdmq61ylLYy8NEt7mxM3wC 5359Tg6X9Rzo9y6AgYvjQCnETFR5m0eo/Wo/ucMLxS7qbvahpbcNGlyje+YGyUaW IuhqINGDcw/PIDvPpOpPVMnJdUo9hmHcazeNNRn28mzyxnI99tupsjedlz+PfSVf TTF/VayGTPRkXzDMTAoLbrvgD5s5xxUtdxT70EG9QvWEvkwhct6zbZsUys28HGqx gGL+ac8UlQ/IfVDCGoEoaPy+rA3V+3Zr6JKvgfUl5hvIVEp5AxnCQAKjDGx23yE8 9ZKmlgQlydumUqKSKL0WTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1746769579; x= 1746855979; bh=+1+xZSC34osRgfIQqLNaRNA6WjmcAgoDcTg1LRLRZG4=; b=L 8WjzyeNnoFxWxb5qxjG5+LHsSUlA9er35Tu4NHVXBdN/sNbfaGHLTMBdLMeP9HKL 4l0ASB13YcOrdL3FVK+rL+h1+A0ot2AofCpPZeJh1OXntysiMgcnl6ODofKpEKK+ 5LuFgDpasqbu1/PRNX+HpJPmALS1XOS8SyY5YW1xSaMGwMWOjg37JOnR853TnjT/ WYFGss9q4+1CTT6jGpBA3R3nniEUKN8Pe85UMXwPIC1HrSxb76utVgeVuo0+X11k EjFk0F4PbXyWesufZrAtnwTg0N1eRYlx6I/DmYR3ZAXSjgBrUTtMtP+dWFAp8gnE Gi+wuUpKybXnXkN55qj0g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvledukeduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtjeertder tddtnecuhfhrohhmpedftehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnug gsrdguvgeqnecuggftrfgrthhtvghrnhephfdthfdvtdefhedukeetgefggffhjeeggeet fefggfevudegudevledvkefhvdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohep vdekpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegurghnihgvlhdrrghlmhgvih gurgestgholhhlrggsohhrrgdrtghomhdprhgtphhtthhopehsihhmohhnrgesfhhffihl lhdrtghhpdhrtghpthhtohepghgrrhihsehgrghrhihguhhordhnvghtpdhrtghpthhtoh eprghirhhlihgvugesghhmrghilhdrtghomhdprhgtphhtthhopegrlhgvgidrghgrhihn ohhrsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprghnughrvgifjhgsrghllhgrnhgtvg esghhmrghilhdrtghomhdprhgtphhtthhopegsohhquhhnrdhfvghnghesghhmrghilhdr tghomhdprhgtphhtthhopehfuhhjihhtrgdrthhomhhonhhorhhisehgmhgrihhlrdgtoh hmpdhrtghpthhtoheprghlihgtvghrhihhlhesghhoohhglhgvrdgtohhm X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E5AE31C20068; Fri, 9 May 2025 01:46:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: Tef2df9750d8374d1 Date: Fri, 09 May 2025 07:45:58 +0200 From: "Arnd Bergmann" To: "Andrew Ballance" , "Danilo Krummrich" , "Dave Airlie" , "Simona Vetter" , "Andrew Morton" , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Greg Kroah-Hartman" , "Rafael J . Wysocki" , bhelgaas@google.com, =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , "Raag Jadav" , "Andy Shevchenko" , me@kloenk.dev, "FUJITA Tomonori" , daniel.almeida@collabora.com Cc: "nouveau@lists.freedesktop.org" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-pci@vger.kernel.org Message-Id: <3ad271f7-12e3-4e92-82eb-cd8cd5dbd703@app.fastmail.com> In-Reply-To: <20250509031524.2604087-8-andrewjballance@gmail.com> References: <20250509031524.2604087-1-andrewjballance@gmail.com> <20250509031524.2604087-8-andrewjballance@gmail.com> Subject: Re: [PATCH 07/11] rust: io: add from_raw_cookie functions Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, May 9, 2025, at 05:15, Andrew Ballance wrote: > +} > +#[cfg(not(CONFIG_GENERIC_IOMAP))] > +mod io_backend { > + // for everyone who does not use generic iomap > + // except for alpha and parisc, neither of which has a rust compiler, > + // ioread/iowrite is defined in `include/asm-generic/io.h`. I think you should special-case x86 here then. The GENERIC_IOMAP variant is likely to need another hack for powernv to actually work. Hopefully we won't have to support m68k/q40 here. Arnd