From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 6F66022B8C5 for ; Fri, 17 Apr 2026 15:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776439404; cv=none; b=ctIEIs0jHdRIGaMq6MKZp5tkh+0AP7eQazzv0PO8BFWmsj2CCxvVaWD3K9P0/4HNcrw9K4PhVSI8iiMvmAYbsSv/+OmOGWh5k0KWB7kmUuNvf7etBUTicpbrwNl6y9xoN/mahawFq1gxtIMXIxuxz4iOz5w4FvtNNYGDltn50X4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776439404; c=relaxed/simple; bh=ibcRw7B4Yx2bCabsi8PMkjt2ss/D1T2TOOq6t1gyS6s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Dov3iLHtL9wLgekw4NBNhli6qBMTj/w2ybb7KyI+5HEJRAp7+r4n5guU0+A8xtcvD+LteRp5zQWRtcSqAHNOFpuRQKBaAK/AkSuxTJj0XEtvRyXaemGM6yzRNQfe+V77CmuqXX2nSSbVYgLNRtc0xpCNwitRfomwt5TeFz4+66g= 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=LdEcG/Z/; arc=none smtp.client-ip=209.85.215.177 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="LdEcG/Z/" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-c736261ee8dso321993a12.1 for ; Fri, 17 Apr 2026 08:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776439403; x=1777044203; 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=aMmJ/7DZqgJfjSSozz++1zO4MV2X84JpIm5qryS5QKk=; b=LdEcG/Z/b0PoP8x8rKTf8i5bdo4L3FvGSorA+uDF2g2A3ZC1Re0c7i1HaZcQFj7YXt UbHLrrjcnbiDm+naAiZ2T7nWorr+a/xvRZUeqsBS89mwp0pOA4BOq+D+b8o9cawuaVdq CuiIMPK+dYHMXVZXvnxqhN7BKO77NWyVyVYwIr50FRRJcIiEuylEzCXfsiHj3viOzjVy JRN/vQozjVHlplxTvkd0Qairgc6L4Cj0RFDQCWvRwaNTx3FPwF0qoXHqXxXinXc0fZj3 A2yLk9JZuatiuAYqh8ejh+KjJ48RFqnm+/dut85mpIbLEGxPOgIDxnvHCxV9DQxd0Mua XkIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776439403; x=1777044203; 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=aMmJ/7DZqgJfjSSozz++1zO4MV2X84JpIm5qryS5QKk=; b=f8GEUBDMYaDpMySs/2hS0TMFy9MifgS+wM4wed+dbzVSAlCZy3SW/vazXFoMiZpepX +pCj6trW7YS3TV6Jso3yLBeNml0WdleWw+ITu/aj5k0A4bs6bpHPOHzvpzfFPUnPXtu6 pGFGEYtiai+9tEPZYWzhwO74Jglbv4oWAk9Sq4ZkaZxBAYvlzyI/eAcPqWLN4HmgG1N7 hUUyyYs+4d1a0sEIJgzhn4bUpTsHfTgH215h9XpM3h6HLa9WQ7w+bsgQrOXI+HZpwujq 3iU0Kl3kwTjTiWqNR6kA++/eiIBC1MMSBJKcx3kXb9lxH+DRN6/KySviTTGEsQWWE8Ql R29g== X-Forwarded-Encrypted: i=1; AFNElJ9LYmsnExjahn5LCeMPdmj3A1OkG2st9ZuYBMTLCZc3rec9KQyUmAwY3eREHAB1NvE0YWdVbH7EMjdea4E=@vger.kernel.org X-Gm-Message-State: AOJu0YykTyMEasziDdwNP2tJVzrc1aQ7QkPDkKIv5uY9lSY5CGp5iJhK FzLijFDV3Opi62i0U5ToFvZZnt9Qe67fP1LhNvXtJouzRhY19hFOiVZB X-Gm-Gg: AeBDievKlOA3d0Feq2+MNGPXus0TBwGKMp/x1yGL2s3Koajlr6jAaYveQVAUo90xuPf +7vUuCGD0PZcdt4K6XMdVeSzRwP0Qr+ksFIYFtgAxYpyPUVm9QDd2GWBi58o2l1nbp3dIpNj9Ry AFPCFQcrDoz1OivxDqpFXm7DAHvreNV7Xx1XNPYHRiWJQcnTMSX9z3v1WuUYM+CN+6nkr3gYpnX otnN9/Q5H7mXztlYn/9zTBhLtbMZtmT4m6G4e25I3KZRLsGtT+USjufTdWUN84xP4klLpiCOfNR g9ySehslTD7yf3aNVMI48ogYHifpp5Zm48NFz0/gB7WnfdaPUH3qNeRQe/LhZca/2i0c7UOeGfS 3f3syLcTl7UB7mW0OqL/bN7YtALi1ZZ/E6+hnsHz2jTBv7N1HMVQAzSEJvFu7Pf6rIBi5PKD2LV 0cnl7o268s99Si4/i2sL0tuPko2gjJdwCpdkj7bddoFkuH03MFcALfPZ4xz4FZOltcA9kWhXN2k F9G/uklJC+SQQ50tmc00FnS/Q== X-Received: by 2002:a05:6300:2788:10b0:39e:f994:f685 with SMTP id adf61e73a8af0-3a08d703732mr2161771637.6.1776439402392; Fri, 17 Apr 2026 08:23:22 -0700 (PDT) Received: from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com ([106.51.164.157]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8ebb3829sm2384373b3a.31.2026.04.17.08.23.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2026 08:23:22 -0700 (PDT) From: "Mukesh Kumar Chaurasiya (IBM)" To: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, peterz@infradead.org, jpoimboe@kernel.org, jbaron@akamai.com, aliceryhl@google.com, rostedt@goodmis.org, ardb@kernel.org, ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, tmgross@umich.edu, dakr@kernel.org, nathan@kernel.org, nick.desaulniers+lkml@gmail.com, morbo@google.com, justinstitt@google.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, llvm@lists.linux.dev Cc: "Mukesh Kumar Chaurasiya (IBM)" Subject: [PATCH V11 0/4] Rust support for powerpc Date: Fri, 17 Apr 2026 20:52:49 +0530 Message-ID: <20260417152253.2312961-1-mkchauras@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 Enable experimental rust support for ppc64le and ppc32be. The patch for ppc32 has been provided by Link Mauve[1] and ppc64le support[2] has been merged over it. ppc32 needs some toolchain fixes mentioned in the patch `rust: Add PowerPC support` and the discussion for that is done here[1]. This has been tested on - powernv9 hardware - pseries P11 hardware - pseries(9, 10) qemu - powernv(9, 10) qemu - rustdoc on x86 and powerpc64le - rusttest on x86 and powerpc64le We are actively working with our LLVM team to get the target for ppc, ppc64 and ppc64le in the rust compiler. [1] https://lore.kernel.org/all/20260204030507.8203-1-linkmauve@linkmauve.fr [2] https://lore.kernel.org/all/20260204042417.83903-1-mkchauras@gmail.com Changelog: V10 -> V11: - Updated `rust/Makefile` - Not all libraries are move to `rust/host` directory now. Only proc_macro2, quote and syn are moved - Special handling for pin init is added. Details in commit - Removed mkdir for `rust/host`, this is now handled by toolchain. V10: https://lore.kernel.org/all/20260406200149.3727922-1-mkchauras@gmail.com/ V9 -> V10: - rust/Makefile updated with review comments from Miguel - Patch 1/4 updated with commit message and subject V9: https://lore.kernel.org/all/20260404121610.1956528-1-mkchauras@gmail.com/ V8 -> V9: - rust/Makefile updated with a directory instead of abspath V8: https://lore.kernel.org/all/20260403145308.1042622-1-mkchauras@gmail.com/ V7 -> V8: - rust/Makefile updated to separate host libraries from target V7: https://lore.kernel.org/all/20260329160254.2592207-1-mkchauras@gmail.com/ Changelog: V6 -> V7: - Documentation removed as powerpc is still under development - Added a fix for race condition in rust/Makefile V6: https://lore.kernel.org/all/20260210090023.2587534-1-mkchauras@gmail.com V5 -> V6: - Added a missing Tested by from Venkat which got missed since V3 - Support is marked as Maintained instead of experimental V5: https://lore.kernel.org/all/20260210053756.2088302-1-mkchauras@gmail.com V4 -> V5: - Removed a nested ifdef from PPC64 for Little endian toolchain V4: https://lore.kernel.org/all/20260209105456.1551677-1-mkchauras@gmail.com V3 -> V4: - Co-developed-by header added in patch 1 V3: https://lore.kernel.org/all/20260205180429.3280657-1-mkchauras@gmail.com V2 -> V3: - Splited HAVE_RUST in 2 lines - BINDGEN_TARGET_powerpc initialized before assigning the same to BINDGEN_TARGET V2: https://lore.kernel.org/all/20260204210125.613350-1-mkchauras@gmail.com V1 -> V2: - jump label fix for rust has been moved to a separate patch - PPC32 support has been taken - rust support has been marked experimental - target.json dependency has been removed - HAVE_RUST now depends on CPU_LITTLE_ENDIAN for PPC64 Link Mauve (1): rust: Add PowerPC support Mukesh Kumar Chaurasiya (IBM) (3): rust: Fix "multiple candidates for rmeta dependency core" error powerpc/jump_label: adjust inline asm to be consistent powerpc: Enable Rust for ppc64le arch/powerpc/Kconfig | 2 ++ arch/powerpc/Makefile | 7 ++++ arch/powerpc/include/asm/jump_label.h | 23 +++++++------ rust/Makefile | 48 +++++++++++++++++---------- 4 files changed, 52 insertions(+), 28 deletions(-) -- 2.53.0