Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp845077pxb; Wed, 13 Jan 2021 18:08:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIOtE/CShFKDBUfLMqWmlfnZGn7Z8bGk9qPp3Ke14hJfKqcpKkTuYGAZStuhYD3WYO5Rzd X-Received: by 2002:a17:906:bfcc:: with SMTP id us12mr3559018ejb.163.1610590091982; Wed, 13 Jan 2021 18:08:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610590091; cv=none; d=google.com; s=arc-20160816; b=YAB0j8XdQFMzCpZDoyLGQ5GLGz4mZk/QPkGVCz1hhdwFk63zZFFnC9+MnPmuMi2rHC oAqfMW/nEd/vQ+dVwtpsUEEQJ+iyend1iDTkJa6O4KYSPwcxLxXlWzNTut2wKDxfb1l3 xPSSklz34nw0623MfC3qdM1mVyasJyaCMk28zUm/OtODtB8664VKziCJQjGuzYtYsmyu OESMRjCqE6uCAtCmuh6jWaoPsWqlTHbzSCjH5VLyi5wEWIot+Jguy2zrdFmdDowIEamp JGLeBJTXIP5uiBnWGr+pBv4CH14toWI6qa0yf0A4ePkWEI4R6y9cuOMoz9HtFV9bRMnA LWqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2y4dk7RPy1+H0zBuDXTEaauzgo/RetPwOeAaLDfjsos=; b=qTD1uDUgiBGj7wDcosByZBOwFeHGXljQOcN7TTBlibvtJoUIFqTWCfLB4DbQtVxqfh kVwpcbyzaojGcdiDO4SW81apqCLfL++tVNXEDz1xE2ehKuFzcAp6HBaGULzmdMVNF8aI 1lgFeEmrqSlAK6NUQR10mG3Bpq4si2ZrlPxnXyxidjEYQrzpyVqkYEtzu0J1pFQ0LGae NrKk2iH5LNIu/AniC51sOu6Jpi6IdI7EMI4gXsAP4riSaKia6tELAy2TgGE+RGX5wWYM yMgMuhsyCTmILDaWbJNPS4L1EXsJgL61nNYShk8XMEsg7kU017Usm8u8oODuqtUUyKNz TI0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UpT9ATiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e22si1898686edv.437.2021.01.13.18.07.48; Wed, 13 Jan 2021 18:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UpT9ATiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729878AbhANCGe (ORCPT + 99 others); Wed, 13 Jan 2021 21:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729881AbhANCGZ (ORCPT ); Wed, 13 Jan 2021 21:06:25 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 632F8C061794 for ; Wed, 13 Jan 2021 18:05:45 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id w1so3904252pjc.0 for ; Wed, 13 Jan 2021 18:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2y4dk7RPy1+H0zBuDXTEaauzgo/RetPwOeAaLDfjsos=; b=UpT9ATiPlrxe65QqRf52h7JcDgIOjOU50wd3rc5S9/fV1avkZ2eqPth/QvTvho4x9w qsTlhFHkubqvIgFbgFHx92IbNW4Y3kv8zfzJfv4tAuMY/DtxjjfucLRzjFgpIcN82NFu /FE54vyYFFQtcmNzhkpjpGtv04Mnk6SM9dkBZ53AhH9ruh4Qf2WIYv+Z+qI9BxN8s9QF U/eGBztIpNLXb+49weYiN70xs4ZdpUMCKIIKsImGXNuVcKfiEPOAjj7VeNUV3hiuDx+0 rimY09LTPOCmJZLN0mvnpkZ5D3ycFug3NZKq8vIC086Xu565ybhjJ+ZeQ9cf78tGVMfE 1khg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2y4dk7RPy1+H0zBuDXTEaauzgo/RetPwOeAaLDfjsos=; b=kuBqKcFHyWBjzBz3Dw52z28Uw2bZCp74KH312vpgMvXnb3CW7h/8hksr3Vh0IF+vFB ZB3VCvHiHTxwioXOdsrCTUu3APPobWvt0eHK9bbrXO5pisVb5mi97ePnU/bJ5/fO8GCS ALrKZhJknFssjawUh0Bb1vJSGcRL/Iv/2CjnzvWtIcYcN0SHEwwkxkFCTKOMDWnrOYOZ qQeZ4aHxJb+k3fpC5InkOXUMTNZCakidDW0XsbaCByc9na1KrBJzY2DoQTbzRY19GrWq kBKm/jZ8SPEI19BHAKFskkrgbnd/MBPnw8jyvSejbf8onHSf7v+Nzynendowsro0n413 gC6A== X-Gm-Message-State: AOAM533fsCyFxlH2uPuzQkvIke0ESWMO/ojZQAiOUqIaSYudYra/GYTV m0XlMNCBtv7oEj1vpewR02sqNv2zCtIKJwmqjmJYTw== X-Received: by 2002:a17:90a:9915:: with SMTP id b21mr2352305pjp.101.1610589944646; Wed, 13 Jan 2021 18:05:44 -0800 (PST) MIME-Version: 1.0 References: <20210114003447.7363-1-natechancellor@gmail.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 13 Jan 2021 18:05:32 -0800 Message-ID: Subject: Re: [PATCH] Documentation/llvm: Add a section about supported architectures To: Nathan Chancellor , Jonathan Corbet Cc: Masahiro Yamada , Michal Marek , clang-built-linux , Linux Kbuild mailing list , Linux Doc Mailing List , LKML , Miguel Ojeda Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 5:19 PM Nick Desaulniers wrote: > > Patch looks fine, but `make -j htmldocs` seems to be taking forever > for me so I can't render it. Is this a known issue? > > $ make -j htmldocs Just took a while, lots of warning spew (but not from this addition AFAICT). Reviewed-by: Nick Desaulniers > > On Wed, Jan 13, 2021 at 4:35 PM Nathan Chancellor > wrote: > > > > The most common question around building the Linux kernel with clang is > > "does it work?" and the answer has always been "it depends on your > > architecture, configuration, and LLVM version" with no hard answers for > > users wanting to experiment. LLVM support has significantly improved > > over the past couple of years, resulting in more architectures and > > configurations supported, and continuous integration has made it easier > > to see what works and what does not. > > > > Add a section that goes over what architectures are supported in the > > current kernel version, how they should be built (with just clang or the > > LLVM utilities as well), and the level of support they receive. This > > will make it easier for people to try out building their kernel with > > LLVM and reporting issues that come about from it. > > > > Suggested-by: Miguel Ojeda > > Signed-off-by: Nathan Chancellor > > --- > > Documentation/kbuild/llvm.rst | 44 +++++++++++++++++++++++++++++++++++ > > 1 file changed, 44 insertions(+) > > > > diff --git a/Documentation/kbuild/llvm.rst b/Documentation/kbuild/llvm.rst > > index 21c847890d03..b18401d2ba82 100644 > > --- a/Documentation/kbuild/llvm.rst > > +++ b/Documentation/kbuild/llvm.rst > > @@ -63,6 +63,50 @@ They can be enabled individually. The full list of the parameters: :: > > Currently, the integrated assembler is disabled by default. You can pass > > ``LLVM_IAS=1`` to enable it. > > > > +Supported Architectures > > +----------------------- > > + > > +LLVM does not target all of the architectures that Linux supports and > > +just because a target is supported in LLVM does not mean that the kernel > > +will build or work without any issues. Below is a general summary of > > +architectures that currently work with ``CC=clang`` or ``LLVM=1``. Level > > +of support corresponds to "S" values in the MAINTAINERS files. If an > > +architecture is not present, it either means that LLVM does not target > > +it or there are known issues. Using the latest stable version of LLVM or > > +even the development tree will generally yield the best results. > > +An architecture's ``defconfig`` is generally expected to work well, > > +certain configurations may have problems that have not been uncovered > > +yet. Bug reports are always welcome at the issue tracker below! > > + > > +.. list-table:: > > + :widths: 10 10 10 > > + :header-rows: 1 > > + > > + * - Architecture > > + - Level of support > > + - ``make`` command > > + * - arm > > + - Supported > > + - ``LLVM=1`` > > + * - arm64 > > + - Supported > > + - ``LLVM=1`` > > + * - mips > > + - Maintained > > + - ``CC=clang`` > > + * - powerpc > > + - Maintained > > + - ``CC=clang`` > > + * - riscv > > + - Maintained > > + - ``CC=clang`` > > + * - s390 > > + - Maintained > > + - ``CC=clang`` > > + * - x86 > > + - Supported > > + - ``LLVM=1`` > > + > > Getting Help > > ------------ > > > > > > base-commit: 7c53f6b671f4aba70ff15e1b05148b10d58c2837 > > -- > > 2.30.0 > > > > > -- > Thanks, > ~Nick Desaulniers -- Thanks, ~Nick Desaulniers