Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp829938pxb; Wed, 13 Jan 2021 17:41:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5JS8J+3l4BP+2dFCIZKJOR3F/tagvDfkmfGadUk4OTl0oIIFElJmW18K7xRsk+mtepZsS X-Received: by 2002:a17:906:f919:: with SMTP id lc25mr1879519ejb.323.1610588519068; Wed, 13 Jan 2021 17:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610588519; cv=none; d=google.com; s=arc-20160816; b=F++YYax7q5Go7ApjpjXe5kXpk0rxGItTBC6yZphalyYWfdHzm4f7TVDKyPtsGmtAE/ 6sS+A5OlTCZQDmXk3OwwTcYo0U/uCrP+Gib4Pi8fkQcQllTJoGv32IEzoNK+IBqx7KLf 0QMP3QyrwcgQchamAGxYU9AMJmpQ88E6TL+tV32shVnkLvNC2vx39i6x4jWmaBu3PcCY E/wSR1yVxA1py5P8WjlznwR5NaUaDFcaGu81L8Nqr5scS0hyrmEn11UjR1xzTf8mG2jm kp1WyJYaEmYlDKaboGhoL+codKjUGCVUka1rCU/YZqEBjaUNKCtW2YMmGzbDa3ODpEss zBew== 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=XrnFQm3yxmGSlxVmkfzcamv4pi81tiqdYqSnRQXjXoY=; b=j77WQyxBjAM0tn6hFOBP3U7KVR+hbF/7thgZcoHEJynfa5c4x1pxT7Ul06jq8+W/9D kfc7fMN9SWGdKJN5CM6PmXKgtSS3VUfyDtRzLyl4FGNYz/44mH3Bggl93FW2nOjyhief rcQqcLh2BrZjie5q5pQw3sCd3rFH3gB0I8vNKTmyccvrUqEFoLYrWmkzMTzSDTfiDdIE jcF7lBtjw9l8ZhOXPmouK/7LSD62zU9LrXndpSY73GMyv2euE2M1a4aac2tGtYIiSEdu LSE2uCkUfB/PCsdmi7zR5b2+yMhqHRy2JyJjIqawJWZP9eQK2sU80HnEVxJ6tG00Ol9l jDQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=djIUI+EE; 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 bf17si1808964edb.344.2021.01.13.17.41.35; Wed, 13 Jan 2021 17:41:59 -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=djIUI+EE; 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 S1727680AbhANBcn (ORCPT + 99 others); Wed, 13 Jan 2021 20:32:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbhANBVr (ORCPT ); Wed, 13 Jan 2021 20:21:47 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3AFC061794 for ; Wed, 13 Jan 2021 17:20:12 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id b8so2094005plx.0 for ; Wed, 13 Jan 2021 17:20:12 -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=XrnFQm3yxmGSlxVmkfzcamv4pi81tiqdYqSnRQXjXoY=; b=djIUI+EEAUGfRcY+LCI4jhslBWN5DrE+mWfMPojsOc731gQz9i1Onk19CCZS0dxNL1 0MHtAG191+3TNBpT/W9kh2WeaZ+9ZUJtYCMrbBbt6g02lK0ivDZx1sfH6YyXZhUPdjhW H8LkmveziTB5VMCjH5yxqjl5/CEstNnuFnJjungjjZPfMyZW2mdaXqR7Vr8uMbdpEJTC wToYN7jeSsHZmaMmt5L0/xYhUf0BM9TmBuRrb45fb8idUoRhjlQPOB7TAajzA6/eUK4G 7y+hvQM5KoVDVodaSW8A2/XHa9mPJcrCBouwEgO0XTKjYN3+b9yNCsB+TjIDP9Zzlm6q 5LMw== 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=XrnFQm3yxmGSlxVmkfzcamv4pi81tiqdYqSnRQXjXoY=; b=g7RnNZKSGId9s035H/mnODZ3Vhtg3fnkA1s/Hfp1LYDJQCFz6FK+gvzuudvaECbRXZ wJm/MsH8b8mJGzqrfYqyE7a7PPW74fiSTgQBUpMvHaiyniCt3HVnEOH/N7IxE1gslZsu kzArxv8laqGgx/bW76gtND2l/vetKwp5jVfHyapNPUvV75BJDfu4FyD9YEL6vPf2I+Vl gFOp51sJVRWozA9upU8joHFa+4ehTNGnVEPN7XjB6zsVMkmNqsUg3x+Kxrw2ahBzKT+f pw3y8OZBbJ0jRTQAkm7K51sF8kPt/F+Bu0b/UEpkH5ruYlkMIBaTDzUz4iEM47VoI1QB 6+DA== X-Gm-Message-State: AOAM532+EMy3pkkj5V6Y0vqqd68EoIyMCudPWZ6K2UW9gzA96ETB1uXe tGE0RPSFIIRYWHp+rd7/8iT9vWKJx2CBorOvme/rpg== X-Received: by 2002:a17:902:ed14:b029:da:9da4:3091 with SMTP id b20-20020a170902ed14b02900da9da43091mr5031901pld.29.1610587211830; Wed, 13 Jan 2021 17:20:11 -0800 (PST) MIME-Version: 1.0 References: <20210114003447.7363-1-natechancellor@gmail.com> In-Reply-To: <20210114003447.7363-1-natechancellor@gmail.com> From: Nick Desaulniers Date: Wed, 13 Jan 2021 17:19:59 -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 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 SPHINX htmldocs --> file:///android0/linux-next/Documentation/output make[2]: Nothing to be done for 'html'. WARNING: The kernel documentation build process support for Sphinx v3.0 and above is brand new. Be prepared for possible issues in the generated output. Warning: The Sphinx 'sphinx_rtd_theme' HTML theme was not found. Make sure you have the theme installed to produce pretty HTML output. Falling back to the default theme. enabling CJK for LaTeX builder ./drivers/usb/dwc3/core.h:1259: warning: Function parameter or member 'gadget_max_speed' not described in 'dwc3' ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:340: warning: Incorrect use of kernel-doc format: * @active_vblank_irq_count ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:379: warning: Function parameter or member 'active_vblank_irq_count' not described in 'amdgpu_display_manager' ./include/linux/rcupdate.h:884: warning: Excess function parameter 'ptr' description in 'kfree_rcu' ./include/linux/rcupdate.h:884: warning: Excess function parameter 'rhf' description in 'kfree_rcu' 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