Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1112466imd; Thu, 1 Nov 2018 10:22:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5d57OBxgI5JDLI7AR9JFhNrxIS5tkS8+z2CMEJOvAy94mLF36SH2NimYcHxcFDJzLpTTqZp X-Received: by 2002:a17:902:343:: with SMTP id 61-v6mr8118494pld.327.1541092929758; Thu, 01 Nov 2018 10:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541092929; cv=none; d=google.com; s=arc-20160816; b=BcAYBz7AF9OfCxsRTedihNn+Puaf2/BjXSmU6poConqVNXK8skx6CHzOzMQyuyh6+l xPk/Ip+vGRaHGa4GysdpLjzWOWuS0oz5rGBi4LjHzclchn1HKo8i8IvIe8rp7W9VbMsB nrV3XszYzG4gEAHMJeDvQtTCM1znj4WrgWDB/hY6wJVsAb3eWOLojPw9Ouc2mBqhDi4Z XAF5EhFs4hOXTUBUa+BIchtUQxvM0u6DOE5C70VY1+SmRi6JzawlAYxF5FZYPpfQ47vu MOpMrVv/OUx3uqVHDLJAzNE8l31YiSBgBLdKR4hlMiHHdtDh3AoL9JKMyi3Hu2Z8Ozas /Lig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nSai6ptFovwf12HhXChp9SksxZNPqvxDg9dyqxc5eqM=; b=unvyfbDARnt33QWm29GdDTMtXLc23CeSlpFAFMyYwCSc9z3l6Xi+LDWWYKOwBxPBIp kYdgmURXQclIHmbye+oC44MaqT7/q0rvJXOLS3CjyF3qM6RYP0tfaPnZHFjVfVpkakYB JeO3uJnSU9xvaWbeT79McaZHYSLpvHW6GQBR9sIX4swQpnzdfZR4zPgjUP5txxkgsTpM FicZaaugWF+hio+God2AI6p0Q/yNbT/t0BTQqbf/Z5xgEO2K5H1CEjy4AlXFz1ArmtDV Kd2R7ksix6DGbqoScZIMIFybM/sxfFzZj3I5whWdpziGLjqlSQei/kHE0QXZF/fMSiEB 7LSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=NaiY80cQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7-v6si7098021plq.290.2018.11.01.10.21.54; Thu, 01 Nov 2018 10:22:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=NaiY80cQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727673AbeKBCYN (ORCPT + 99 others); Thu, 1 Nov 2018 22:24:13 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35435 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbeKBCYN (ORCPT ); Thu, 1 Nov 2018 22:24:13 -0400 Received: by mail-lf1-f65.google.com with SMTP id d7-v6so14752480lfi.2 for ; Thu, 01 Nov 2018 10:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nSai6ptFovwf12HhXChp9SksxZNPqvxDg9dyqxc5eqM=; b=NaiY80cQlgfVrO1fqSVryJYTWU2Uk5xgdwq4aHvqHnfXa1YaA2YU0i+wuaF8ErVEU4 dyz7MsigK3s+D9BisRK1j/VHNABNEK1Oa1hOJxx/YVYBxHcxek11LeKeHgA9+Z8t/MD0 T+zOXyHP75iEBUMw5wY0I59Vi5x/C6+jWp7QphBKb0xc/2iqjf0/0T343vcQPdntn0cZ +nVIpUDZrFha1m/xwjx2MiuuhKSmJBgkEkueBtKOmZKGmmKY8ngn7auVYadnccKSro6/ DMZZw/tKMw1Ztqohty7y9E0XMwl0MOtvehGgU8RAslhRc6yJtuBTlw8z0cnku01DDNBy oy2w== 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=nSai6ptFovwf12HhXChp9SksxZNPqvxDg9dyqxc5eqM=; b=JLWM2h231Tevt30S/BVLYrsPYqYEW87ZBfrDDtZts5yjxj2L4990qYo3xnd9iW1A/q r8Umsjqom1xnz/JWCCZlw0RpGqTJ/Ur4QNcLhxNO3nLDpI4i0rhlMNTowtUa/5g0qzYj hwQc9tk/+gPpdc0C5iSXw6ievbmnh7REkmSLWGEcSEaHIX2v+kA15lhf8RkouooosLCr xhsnFTRFb6gdwkkrgl87dnBy2NQPaOm2qnLaIkb2nkzBOntQrwXz7KCpkArZ2k2IU5aN ylZiDx5sLRuONlqW8ZPAaOZqZOaGqzBwWGLocQwo1BkdemIvgCFqTev1NSGxY9v/h8ol WXDg== X-Gm-Message-State: AGRZ1gJpKg1eZIAe4noEcFkO2bptRAfV3u7npf/XdsJ1DIIsTkqzN9jK ppHMC+TRuA2a5GDNaAFmPHt7sHES4hHrZqD0t9jplg== X-Received: by 2002:a19:a28e:: with SMTP id l136mr5279633lfe.87.1541092818819; Thu, 01 Nov 2018 10:20:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Olof Johansson Date: Thu, 1 Nov 2018 10:20:06 -0700 Message-ID: Subject: Re: [PATCH 0/3] RISC-V: A few build/warning fixes and cleanup To: Palmer Dabbelt Cc: logang@deltatee.com, philip.li@intel.com, Fengguang Wu , Albert Ou , kbuild test robot , kbuild@lists.01.org, Zong Li , Linux Kernel Mailing List , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 1, 2018 at 9:17 AM Palmer Dabbelt wrote: > > On Thu, 01 Nov 2018 08:43:15 PDT (-0700), logang@deltatee.com wrote: > > > > > > On 2018-10-31 8:19 p.m., Li, Philip wrote: > >>>> I think it would also be very nice to get the existing kbuild test robot > >>>> to start compile testing a few riscv configs. It already does most of > >> thanks Logan, the support to riscv and nds32 has been in our TODO list for > >> a while, but whole team is blocked by other effort. We will focus on this soon > >> to complete it within 2-3 weeks. > > > > Thanks! Glad to hear it. > > We should probably at least have builds for rv32imac, rv32imafdc, rv64imac, and > rv64imafdc. It's probably also good to test SMP/non-SMP as well as > medlow/medany, as I doubt those get regularly tested. If you'd like I can > write up the configs, just point me to something that describes what I should > do. It might make sense to either do a pseudo-arch for riscv32, or maybe a config snippet to generate these arch-specific configs. For the ISA options, it's a bit trickier. Ideally we want to build just one kernel that can boot everywhere, and enable the rest dynamically ('fd' in particular). Whether the kernel itself is built with 'c' could be a config option to enable (like THUMB kernel on 32-bit ARM), but in general we probably want to watch out for explosions of combinations here. Embedded/low-end users will want a way to disable whatever they don't need, so there's a balance to be found. FWIW, the configs I build today are: if [ -f arch/riscv/Makefile ] ; then (grep -v "CONFIG_SMP=y" arch/riscv/configs/defconfig ; echo "CONFIG_SMP=n") > arch/riscv/configs/nosmp_defconfig (grep -v "CONFIG_ARCH_RV32I is not" arch/riscv/configs/defconfig ; echo "CONFIG_ARCH_RV32I=y") > arch/riscv/configs/rv32_defconfig fi + tinyconfig, allmodconfig, allnoconfig and in some cases allyesconfig. allmod and allyes take forever so I'm trying to figure out what targets to build those for. Maybe linux-next only or something. So doing allmod+ISA combinations would be quite a time addition for build turnarounds for me. -Olof