Received: by 10.213.65.68 with SMTP id h4csp384659imn; Tue, 27 Mar 2018 00:40:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELvdUEGATztFzPwhRrQzJjYj0Ukc2ELRQbhmIC8IQ80vJG2BKqhw1Ivke6J7vgJNPlhRUa9b X-Received: by 10.98.103.199 with SMTP id t68mr32327174pfj.24.1522136433202; Tue, 27 Mar 2018 00:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522136433; cv=none; d=google.com; s=arc-20160816; b=drbh0tZhyTuO2fZJEyXYddy8+K5UQ8yRSLwkYq2DI/1mrDmgHfyFVwFlEBMtXXzhJp JT1s2sAa3j/Ba1tVZE9xh1ipPz6VRKidqxSsLaHkg0fDhx17prvJDt0oelmkKnKt0M3+ cK53xy+mcM86yip/IC/BehriMHBx5jMoqXqm3MZvw4DbW3acfuRcxLfHYqjYpU78L2Se Qdkrf9FJRJsj7Uj0F9Y8TYjxHIvZ0j3nPRYIkM9F21tNPnr9gzHnJhvOv8aM0Pre9ccm cFN7tMXyfq9hdYEq5OI0u0gZfMn72nhSCEVdl9raHRj904+XjXQakuVsGpu0TKHagUWb bWvA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=QrxncUkKsS5+bLRtGaU3JaHuv0cEZ36HXJvhB7NER0k=; b=t7dL0lSISPUndXIdsHbDMA7Ff1+hLhzOdMH4nAaiZqE5GHAHLe7+dx1F6GznFZ4Rtj +6caNezJRT2d9Uq/dpzaFJHRkWkI172UwFINvZZYBOSFc6XL0jwXWp4RpOhg5z/JCBRR RqVabJipP2m2Hmjm5tJ7/O6i79+1RyFfgzRwlwAQiV3WIevysas79IHds1vqETBAfdI7 eKrbbBovVZWSn3yketSDPJ/Dy0JzEO3sTUAmLe74h/5YEXX8lfMP/8/9urqncTu1eRSS Ao4qzIZA5dR/09Lhs9k+iRwCxd+HIo7zG+l9/NvtFW+IaxHGV0dRaseW1soIjwVMx46W obOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vdZi4eDG; 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 j8si465689pgt.582.2018.03.27.00.40.18; Tue, 27 Mar 2018 00:40:33 -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=fail header.i=@gmail.com header.s=20161025 header.b=vdZi4eDG; 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 S1751674AbeC0HjA (ORCPT + 99 others); Tue, 27 Mar 2018 03:39:00 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:33090 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbeC0Hi7 (ORCPT ); Tue, 27 Mar 2018 03:38:59 -0400 Received: by mail-qt0-f193.google.com with SMTP id i8so22609991qtj.0; Tue, 27 Mar 2018 00:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QrxncUkKsS5+bLRtGaU3JaHuv0cEZ36HXJvhB7NER0k=; b=vdZi4eDGN3HNORf5NbcYpgjqJpCQl+YrvejSfRUxZXAUTWbgrwwP4JD/UReDxvHWjw +c9x7Hz0JQ0f09PsiVHxcSo7RXxk0UajvXnWtV7N0Z1jaJyJrDPHyJILDJhYxB/Az0kd nHpVNifX353d5ko+8Zh4uMzwht+4eOa0fKyJAs0e3LYtSU+PRD+vG9SLUDoy0DuXFrzG FQUKG3YgK7emPFwM/YF5DMlyLF+s4VGnDOaqR3207dNkrKggrw4vlivtaLTPzr5AOlGf 4IScX8ADOgRCVYKUACEkLsJVPKHO2KKNY+attpQj51vKsCYboa2vrHvno5GVL5Ue0Twn f5OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=QrxncUkKsS5+bLRtGaU3JaHuv0cEZ36HXJvhB7NER0k=; b=m0wQPD2dhJ43CIe6jNbdcBM0Ju8shw8M1seELhieaCpTiaN7gVgpJ0PY7Xi4lgPSTu Yc4cuMvIr8lc997A7amk4x67E6sQEwNd5Xg63hZo543cFK86UyANZUELVxT7Ag80ZMk+ Zu/ABymunhLImtfh3TpuOJpT2cKWibnB05JVsgNQyBbGzcbaR6wqlKXxvg/FTpPwoShy oOnNY7t+9wC5abwMfyAVyfGiDjt4rJgjJ3t/LTjHYtlIR9Cbonmt4kBMLcAMVQyGiei0 TcQeH8YJP/s5iZOKgEvaMV685Naup4s2w5+zBbeIRTLNh3I9EwzIDVHPW1fvtnyQA6pM p13Q== X-Gm-Message-State: AElRT7EJdU2OMGK2ZS9RG8T7HO4/nMNtDrONxTPRhOikB9pc/W7agnxz XsiDWUfgsJ/J2sqU7zIROlVRiItId+k35BOUKAU= X-Received: by 10.200.82.15 with SMTP id r15mr62414538qtn.75.1522136338060; Tue, 27 Mar 2018 00:38:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Tue, 27 Mar 2018 00:38:56 -0700 (PDT) In-Reply-To: <20180327023927.GA11454@guoren> References: <20180320131342.GA31542@guoren> <20180321124137.GA21320@guoren> <20180327023927.GA11454@guoren> From: Arnd Bergmann Date: Tue, 27 Mar 2018 09:38:56 +0200 X-Google-Sender-Auth: DmLscn8qQyoyyn5d4b5lK9T7QNc Message-ID: Subject: Re: [PATCH 15/19] csky: Build infrastructure To: Guo Ren Cc: linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.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 Tue, Mar 27, 2018 at 4:39 AM, Guo Ren wrote: > On Mon, Mar 26, 2018 at 03:00:00PM +0200, Arnd Bergmann wrote: >> Ok, I understand the part about ck610 being incompatible, but I'm >> still not sure about the 8xx ones: Do you mean it's impossible to >> have one kernel that runs across all of them for some other reason, >> or is it something you haven't allowed because you see no use for it? > > Sorry, Csky gcc need "-mcpu=ck807" or "-mcpu=ck810" or "-mcpu=ck860" to > determine the back-end policy. So I must seperate them with different vmlinux. Usually the way gcc handles this, either each CPU is a strict superset of another one, so you just need to specify the one with the smallest instruction set, or you have an option like -mcpu=generic that produces the common subset. >> This is basically the same question as above: For c610, using the fixed >> value is sufficient, because it's incompatible with the others. But if you want >> to run the same kernel on both ck810 and ck860, then it needs some form >> of runtime detection. > Sorry, currently no runtime detection. > But I agree with you that one vmlinux for all cpus is a good design for compat. > >> On other architectures, the L1_CACHE_BYTES constant is the maximum >> possible cache line size, and the cache flush function uses the actual size > The same with above, we don't detect cpus on runtime. So we just make it > simple here. Ok, fair enough. It's something that can always be added later, as long as we keep this in mind early on. Arnd