Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp658978ybj; Thu, 7 May 2020 04:46:03 -0700 (PDT) X-Google-Smtp-Source: APiQypK//NNE/FUlPChwXjwAPTq3xbIOEeuIkoYppEGxnBHnWR/Zg5GlfuKC9D6dxeXi6bjQRR/N X-Received: by 2002:a05:6402:3094:: with SMTP id de20mr11532141edb.158.1588851963025; Thu, 07 May 2020 04:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588851963; cv=none; d=google.com; s=arc-20160816; b=vRK2gaYPlIX4X5R+DcsQrOFedcJ9jIhHc1ohCll6OFUny8GF9kzNuqXoUlc2CYlPkG 4/QM1gsHme1LzGdT9Ct3Ct0EYZdjKjQdH9laBe8PtxXwMeMG3yVTOXmSU0u9CGEHDWt1 e8xE+YYkUVqJnWEG0FFmWWW83YqrvE+Hkx39GimEXTyK7xaCLeyQB1dhEgw0drgPabUZ eit/lWW3H+ZcdgcEDf47lOul9xjTM1g4/FUfo1xpRxeJgGYH7yjMTykh2GNsqvdnMStz ACtNTf8+ljPIKIM863hdbZtR2+vqBcRo4u5++2n43JmxiT6eHZ5WVqWVQwB3NHLcC9rA xKlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8p+uVfo9xcLFPWExrBqw6u8YgcOKn2qWwuXWm89F9Kk=; b=JrisD6U9tsA4YvkQKJddihxztlvqCJv+Zx0/svkcZcMwnSOsZ9SGW7OnuMyJvTj8dI WVcgOl4rudM8cz2o1CciEy0oG1pTjuHOEVgMo5qEjWTAE5dX4wXyrMtdR/EAwfY4EHec 4UT5yaGdfNMbmTdSRHYXZ/Wjyjcw0kAlkSZWyffQdoxMvKERvi/5YxfxvveNobsfFk8u 10o0xEL2sTHZGuNBTQOJUo1FqMw5YF/xC6QquGAfTpqNhUKiCg5lp91kqMc9sUPsxmMA EELP1B6aE636cSpoX5gKcjhHt218eYVRAU3GRbsMlFzRCCmRm8h3PQfvJlOWo362tl2W IzGg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si265163edt.570.2020.05.07.04.45.39; Thu, 07 May 2020 04:46:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbgEGLni (ORCPT + 99 others); Thu, 7 May 2020 07:43:38 -0400 Received: from elvis.franken.de ([193.175.24.41]:43600 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgEGLnW (ORCPT ); Thu, 7 May 2020 07:43:22 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jWevq-00081e-05; Thu, 07 May 2020 13:43:14 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 89780C0409; Thu, 7 May 2020 13:17:35 +0200 (CEST) Date: Thu, 7 May 2020 13:17:35 +0200 From: Thomas Bogendoerfer To: Sergey.Semin@baikalelectronics.ru Cc: Serge Semin , Alexey Malahov , Paul Burton , Ralf Baechle , Arnd Bergmann , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Jiaxun Yang , Alexander Lobakin , Huacai Chen , Cedric Hombourger , =?iso-8859-1?Q?Ren=E9?= van Dorst , Ard Biesheuvel , Jessica Yu , Masahiro Yamada , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 07/20] mips: Add MIPS Warrior P5600 support Message-ID: <20200507111735.GF11616@alpha.franken.de> References: <20200306124807.3596F80307C2@mail.baikalelectronics.ru> <20200506174238.15385-1-Sergey.Semin@baikalelectronics.ru> <20200506174238.15385-8-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506174238.15385-8-Sergey.Semin@baikalelectronics.ru> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 08:42:25PM +0300, Sergey.Semin@baikalelectronics.ru wrote: > > +config CPU_P5600 > + bool "MIPS Warrior P5600" > + depends on SYS_HAS_CPU_P5600 > + select CPU_HAS_PREFETCH > + select CPU_SUPPORTS_32BIT_KERNEL > + select CPU_SUPPORTS_HIGHMEM > + select CPU_SUPPORTS_MSA > + select CPU_SUPPORTS_UNCACHED_ACCELERATED > + select CPU_SUPPORTS_CPUFREQ > + select CPU_MIPSR2_IRQ_VI > + select CPU_MIPSR2_IRQ_EI > + select HAVE_KVM > + select MIPS_O32_FP64_SUPPORT > + help > + Choose this option to build a kernel for MIPS Warrior P5600 CPU. > + It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes, > + MMU with two-levels TLB, UCA, MSA, MDU core level features and system > + level features like up to six P5600 calculation cores, CM2 with L2 > + cache, IOCU/IOMMU (though might be unused depending on the system- > + specific IP core configuration), GIC, CPC, virtualisation module, > + eJTAG and PDtrace. > + > config CPU_R3000 > bool "R3000" > depends on SYS_HAS_CPU_R3000 > @@ -1841,7 +1863,8 @@ endchoice > config CPU_MIPS32_3_5_FEATURES > bool "MIPS32 Release 3.5 Features" > depends on SYS_HAS_CPU_MIPS32_R3_5 > - depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 > + depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \ > + CPU_P5600 > help > Choose this option to build a kernel for release 2 or later of the > MIPS32 architecture including features from the 3.5 release such as > @@ -1861,7 +1884,7 @@ config CPU_MIPS32_3_5_EVA > config CPU_MIPS32_R5_FEATURES > bool "MIPS32 Release 5 Features" > depends on SYS_HAS_CPU_MIPS32_R5 > - depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 > + depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600 > help > Choose this option to build a kernel for release 2 or later of the > MIPS32 architecture including features from release 5 such as > @@ -2016,6 +2039,10 @@ config SYS_HAS_CPU_MIPS64_R6 > bool > select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT > > +config SYS_HAS_CPU_P5600 > + bool > + select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT > + P5600 is CPU_MIPS_R5 so can't you select it here and drop all the || CPU_5600 above/below ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]