Received: by 10.213.65.68 with SMTP id h4csp161881imn; Wed, 28 Mar 2018 00:42:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx496ya4JfWLowC+J/CyMndyU8P+fc7dtP9hNEXRWvhyBN71ugfqqd87qp+6tIINx5Y1bQ0jl X-Received: by 10.99.110.198 with SMTP id j189mr1763440pgc.71.1522222950351; Wed, 28 Mar 2018 00:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522222950; cv=none; d=google.com; s=arc-20160816; b=wNvey8zztqYjTlJYCFbOpcaRZKWRTdYAuIEP4v0fANbAL6BTCsl1bXygirk6cxL0AI 59GB1v7+fAhjXq9XgiO37YabA2JEAQ4DIEWx/w8AedJQi8d0wASoQo5CWEGhutix4J6t Rk7K86Sc8S+euWkj72LoHkRbzg7SbQP4gzCfITDpaYiDuvkY0t97giCLyAOcy/gA4uzo EQxP+a1LWKeoC53NnbmrN2wIa+hZuCwfcM16UZ9Nf+cfA4mOIUmujsN/kUmVZu+CSff3 Ohux6H+QNbrVVsGRGaNasYqWftbLoqUhBj1y4QgZuLbX9HITmYDI72CTvVM3mriPae8T ZiJA== 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=iY36U6mPBCEc/8rZEmRkGQU8R+3u7vXlcI8lW5lFOu0=; b=xQcaFOHko/ZDvqk6OzCbXLBCgqWDQ8Y9iGHe46zcuWq7Z3GaatYgn2veFZhe9nIYKH n2CgqxoDK5BCSr2zSmlBLrRCoomgG+nzHvPgA3kPQTOm5hAvnVgP6L1EMXlZLmhP02sI bDmeJDfBmpYq643TneulFQ+ZpJLULtUjP77Fh8hIo9ycgMhuHcxvO/883s0zOYWaNzI6 PbtBZbzma+5SHGIlE1EPkxAitto8ALiDPXuWkMA98hTWqQDMduas/TAxRkdWcSGonkAY 48RCGHKBS7ozEDZfZASeib1iHBipxdaQBTQXNTTVocOLnS7CrB2RfSNO8+tiuHpjcwF+ wrKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RiZL7ooK; 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 l6-v6si3304458plk.489.2018.03.28.00.42.16; Wed, 28 Mar 2018 00:42:30 -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=RiZL7ooK; 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 S1753508AbeC1Hky (ORCPT + 99 others); Wed, 28 Mar 2018 03:40:54 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:37279 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501AbeC1Hkv (ORCPT ); Wed, 28 Mar 2018 03:40:51 -0400 Received: by mail-qk0-f196.google.com with SMTP id w6so1475179qkb.4; Wed, 28 Mar 2018 00:40:50 -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=iY36U6mPBCEc/8rZEmRkGQU8R+3u7vXlcI8lW5lFOu0=; b=RiZL7ooKSxOwSWcdtYoX+L4pAnRkWAvlgxkmfaHbJVzPko7ahowORc4gigkWFCdAmB NBV2qC3Aaw50YT6qogbsiWhtoCuZvMDnGSWFvutQV0CTkASq+D4e5Aqn/5HitPXBSxaq Nnl6IvjfnyZr26d/kl0JD1EAhf9Z7SLCenh0O87SSusitx2MH8QLNlXdsBvhGod6ZqvC csXyzzA9IjAiwSbeaC7V2S9t4EaxjGQaA6J/RZtEQk8Au9K/bhxdRgtkvM+uaOgKkxtd XUdN8HKqPi22tzO97FPJ7P2h09Ip4aBJiIr+qo6TwHQEg2ofrVJXFDyJHMqzoa1WeRC+ CtoA== 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=iY36U6mPBCEc/8rZEmRkGQU8R+3u7vXlcI8lW5lFOu0=; b=sqcTVQ6LDYnU5SMMPt8CL+W40JISHclb3ILJowrDuptztzDt5Edz23O8Eu4XSG+sjx +cqbrkRSgCwEip/AZRr2ctMyIYIGI3BHZ8fdbSTbjG2YFqtPOBQ/L8VTGjzKpM2YxtMx GiyJlE1DOBX8PisG3ykb35U9TxRDz8NCETnQCo6RC7ySaxYoA7JXn/JSQi2KtOk9KQwI kbdzXisLsPaVEAOWmOnkbETN0KZmaZ4lvatOoc8nfIS5LEujjHsiccKeQyQ14ZtOJ1Mg U7qeLi4jXlgh18DKtEZ2SU6FZrt71r8UDH/iH4lTAxMHzuXLoM8cFry2qNHUCgRJkbwO pRPw== X-Gm-Message-State: ALQs6tC+Bh1WRiKWShW2glOpAMghTas5/mcCerilfBUrsNH9AuaK0H2v eq4FsHATDmDMZo1PoEtO9cnSsbeaGRKI0stGQQmiTA== X-Received: by 10.55.158.137 with SMTP id h131mr3531213qke.330.1522222850433; Wed, 28 Mar 2018 00:40:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Wed, 28 Mar 2018 00:40:49 -0700 (PDT) In-Reply-To: <20180328034957.GA4482@guoren> References: <20180320131342.GA31542@guoren> <20180321124137.GA21320@guoren> <20180327023927.GA11454@guoren> <20180328034957.GA4482@guoren> From: Arnd Bergmann Date: Wed, 28 Mar 2018 09:40:49 +0200 X-Google-Sender-Auth: jZTAAgvqAGJnvYy-7zsiLPm-bZk 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 Wed, Mar 28, 2018 at 5:49 AM, Guo Ren wrote: > Hi Arnd, > > On Tue, Mar 27, 2018 at 09:38:56AM +0200, Arnd Bergmann wrote: >> 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. >> > ck807 ck810 ck860 are diffrent architecture, so they can not be strict > superset and there is no option like '-mcpu=generic' in our gcc and > binutils. > > I know you want one vmlinux which could run on all ck807 ck810 ck860 with > different dts-setting. But now, may I keep current design for abiv1&abiv2? > > In abiv3, we will take your advice seriously. Ok, thanks for the clarification. Obviously if they are mutually incompatible, there is no point in using a common kernel, so your current version is absolutely fine, and this is similar to how we cannot have a common kernel between ARMv5, ARMv7-A and ARMv7-M, which are all incompatible at the kernel level. One more question for my understanding: Are the three types of ck8xx CPUs mutually incompatible in user space as well, or are the differences only for the kernel? For the ARM example, ARMv5 and ARMv7 fundamentally require separate kernels, but both can run user space programs built for ARMv5. Arnd