From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 0C8AB149C53 for ; Sun, 8 Jun 2025 16:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749401892; cv=none; b=V1lliEzRqC0fAKiipB6qwxXeQ0Oj17gRxiLh/CGUmAnzTIoqRIHls3pfNeE7kLTupznA1210qTss/osdD1q3WsSOJjG3RncAOpjLmg4JkYs5ujA22pZiomPKOxu476KsGB7+PLMx/d/+XBtCKIzZxDL+l8bKH1KyaucJy1lNSB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749401892; c=relaxed/simple; bh=u4wQyLjJp+430rQ0oMLZAAtB4ucOgT4UzH6dUPzhvIU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Yx6AlSdBIoM6rXepRSaCHewtmszXWwkHBR+nzE4cTR3+YJAzOGkjGKfNMAknwpeK2tyjIPrJGxxpcwK7SSGlqaBq/vWj3GXrwouSlHJXoZwMvhqkupWa/J4p6u/Qcg8wPOtL+1QVNnEqO1adPOrQcfW3AzK++sLibZHXtKh6LSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pdp7.com; spf=none smtp.mailfrom=pdp7.com; dkim=pass (2048-bit key) header.d=pdp7-com.20230601.gappssmtp.com header.i=@pdp7-com.20230601.gappssmtp.com header.b=ubv0t9Ts; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pdp7.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=pdp7.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pdp7-com.20230601.gappssmtp.com header.i=@pdp7-com.20230601.gappssmtp.com header.b="ubv0t9Ts" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2352e3db62cso33316445ad.2 for ; Sun, 08 Jun 2025 09:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdp7-com.20230601.gappssmtp.com; s=20230601; t=1749401889; x=1750006689; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nuldK7MCvX30cQFzWuI0PzalznhEarc6NW9MP8uHyXE=; b=ubv0t9TsGF7bJ5L5UAGBLT7VVfzMwkPEMnxeVbIs7hUxjNkeyvA/nXZHIGBSWR1QXW RrpuBIdAVpulaKdt663KHjNI0k8k1x23mLTWtyZvk503HnaUsyIG4BNvdjSxKiuGixaY zhFy+sPmiCDbmZTU3qZmxIVHs5ULE29mroS/N8nc3fp80eZfwnnRxEnIe+rpAh1xyhUj OqIKuO1Iigagd7Ikd0LfyHYGORKNCFUjubUeMPyzjBwwrNyTT8aHn7EG5axb2LpnFwmN Rz4/0CKTeICF2HsIWcMzd8Ekpp13T5JmT3e9otw6k6j23UuPBY9ctO6yYzyjaYC5ayWh qnQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749401889; x=1750006689; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nuldK7MCvX30cQFzWuI0PzalznhEarc6NW9MP8uHyXE=; b=UrDKkr+ntiAi0FkaVRgv5ExM7QrGrlqRj7NwwrLDYY5d/oPwNsKUYcq8vgO76BHlza 18mqHpIVAdgqnXezLkF1fER/bhzdqBCGkSxfhRtAmu5hO+3T6IozRXwZa1l5XDbmJadf 8USE3RIl/3n6PdBDWLCTlTGBa0tv6RfDzp8Bs7StnRvEYCbQ3qvllQGR6P5jCq9J+I90 aP58KPzprigPpmhTh8h3R0Bu0iIiNzkRGR2/Zjqdo+MYT9fM8XtQaYOkRzYYJyE/Gg+h 6raGgFhxWOvqqX9AIYx8Is4xhMFz6gXl2Jdpmxp8zHI9WX5xh8L4mJVTpKcDe/PqGPym V5tg== X-Forwarded-Encrypted: i=1; AJvYcCUMRDpMqRXGCtyX4MCfnnwKvoge+gDwav3f+KhliZXSBXSVF21NEN7mGCxC5oOacdixAe0KGUhZCe8QTJfd5A==@vger.kernel.org X-Gm-Message-State: AOJu0YwjR8a/KFw4nHlazA2X/KQqP5GqWL1KI6dX29gnhC9ncXXmm6P/ C5aVbEqRUnJZAA3ETmdpX42HXfAf3KlqZeAJw5RYaeBpeyd1am/wnFQELdRKc5EknDU= X-Gm-Gg: ASbGncuy0It/daobNEkapIKaSmfJeANP0nVIgSxSN73NeA4mL21NAjlrC9jdTXcCBbg /3ZJ2kLKzIsIyPe/xewsqi9Ofrtg5r5SRucVD+W61oTjbC4dzFz1xNxoTMNXMKM91za+8H4Oh3Y GqUSq/v3B7+OkffFJuYTnNto6fOANkzO5S1/3tH11LYcoJ9naTcICxhydUEMe6wgHpaRulPzz1i yl5BQdWp6bulegUl+6OWn5wNfkSrg4Fq7Jup7hTD2qtkfZ01oSRSNDyFwBfniSMXTS3hNUh18P+ 9bFbS74BWgaIdTOPBFEb613elnKdChCbiEPQb8NV9YdeTDu5EMWg7w== X-Google-Smtp-Source: AGHT+IHP9TwOiQS18SeLvT6WZ+KAoJi7YVDOIp4T0wyLfQJcuq/fKfkoNHs572ijakJZtNeFSPJvBA== X-Received: by 2002:a17:902:cf01:b0:234:ef42:5d6d with SMTP id d9443c01a7336-23601e78185mr142424575ad.23.1749401889406; Sun, 08 Jun 2025 09:58:09 -0700 (PDT) Received: from x1 ([97.120.245.255]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-236034056f8sm40902275ad.161.2025.06.08.09.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jun 2025 09:58:08 -0700 (PDT) Date: Sun, 8 Jun 2025 09:58:07 -0700 From: Drew Fustini To: Benno Lossin , Michal Wilczynski Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Marek Szyprowski , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH RFC 0/6] Rust Abstractions for PWM subsystem with TH1520 PWM driver Message-ID: References: <20250524-rust-next-pwm-working-fan-for-sending-v1-0-bdd2d5094ff7@samsung.com> 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=us-ascii Content-Disposition: inline In-Reply-To: On Mon, May 26, 2025 at 11:01:58AM +0200, Benno Lossin wrote: > On Mon May 26, 2025 at 10:22 AM CEST, Michal Wilczynski wrote: > > On 5/25/25 00:21, Drew Fustini wrote: > >> Thanks for the patch series. It will be great to have PWM working > >> upstream. > >> > >> I've not built Linux with Rust before, so I'm going through the quick > >> start [1]. I've also never built Linux with LLVM before but clang seems > >> like the best compiler to use for Rust. Are you using LLVM? > > > > Hi Drew, > > You're correct, Clang is the way to go for Rust in the kernel. I also > > followed the official quick start guide. To answer your question > > directly: yes, I'm using LLVM. > > Just to let you know, there is an effort to get rustc to work with a gcc > backend rustc_gcc_codegen [1]. And there also is the gccrs project [2] > trying to create a gnu Rust compiler. > > [1]: https://rust-for-linux.com/rustc_codegen_gcc > [2]: https://rust-for-linux.com/gccrs > > They have made a lot of progress over the last year, so we're hopeful > that they become usable in the near future. But for the moment, > Clang/LLVM is the way to go. > > Hope this helps! > > --- > Cheers, > Benno Thanks for letting me know about gccrs. I was able to build linux okay with clang: make LLVM=1 ARCH=riscv -j16 It booted okay on the lpi4a: Linux version 6.15.0-next-20250606 (pdp7@thelio) (Ubuntu clang version 18.1.3 (1ubuntu1), Ubuntu LLD 18.1.3) I installed rust with: rustup default beta rustup component add rust-src $ make LLVM=1 rustavailable *** *** Rust bindings generator 'bindgen' versions 0.66.0 and 0.66.1 may not *** work due to a bug (https://github.com/rust-lang/rust-bindgen/pull/2567), *** unless patched (like Debian's). *** Your version: 0.66.1 *** *** *** Please see Documentation/rust/quick-start.rst for details *** on how to set up the Rust support. *** Rust is available! I'm not sure if that bindgen warning matters? Thanks, Drew