Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp634793ybz; Wed, 15 Apr 2020 15:36:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLMxm3rFP2gJXpa7dRleZzbmzP9l01AP9tBipDym3P8qsSeTG7CoMAMbYY08IHKrYGT/ySF X-Received: by 2002:a17:906:5918:: with SMTP id h24mr7205915ejq.210.1586990188632; Wed, 15 Apr 2020 15:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586990188; cv=none; d=google.com; s=arc-20160816; b=gkFQ9fujO+vdR2yDEMGWTt/CFGlKlBc/+MzE/v49CIuGg4BVQZoZuR+mYBTkNpE4GY 7lu36/w4Bm+kKet+k45lEFNc/7j2PMOThAW+YlZ9v+W9+7zfZTmCpgGOg2+Gr263i8Sv QEI6L0GnZXhvyyuI/nN2R27QeoCLqB/EeDXWGHGwvvIbFM8+qEYrwZ56yWn6LV5vEopx bfWmRDiGp7rYGETsVSrP0/PSo56j+Pr27Hg1GsOxGIITseid3Sxhih+jyLBkrBzz8xOb dhYX/1tjJFULdO/pTHecAbtalJ776tRw95Fbmcu9DHSNrXsiUCqDUmN1IXK/cGgcQ446 marA== 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=Z0HThtUmffZBbbIAXZOLoqqA4pcjjvyJutALHd9h9ec=; b=EZK3oLrpPLcK5WN/sYSgXuXIzv3h/dIAROWlym9M31GX49vTZ21wqwgMbuHQVDyHB4 9OwUbsI/h8lci7gnI/KOho7LOn1/uhoQnPa4NGXaKQF8K0oGCfmBZYFfI9HVkuyeXpQl E0XoQfQajooyhcTsYX6NOZsTycwFCNd0UquSYH880TxwnD8idZPC2yexWdx1oiF3z+PU AdGWaX7VWuO2Zeu0QGLheKKZ3o/T+WpFFM5fQzE1zkC7erk0eTS8c8yTJSg6K+NEMmxz q9jkDOift9rd+TrPHumqn5Dmb0bOtQzrq5LLoh8NxnhPjit6ITdAZvwkhS6Dy7s0CAAU R06g== 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 y11si11937908edp.155.2020.04.15.15.36.05; Wed, 15 Apr 2020 15:36:28 -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 S2408082AbgDOIbq (ORCPT + 99 others); Wed, 15 Apr 2020 04:31:46 -0400 Received: from elvis.franken.de ([193.175.24.41]:39993 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408073AbgDOIbo (ORCPT ); Wed, 15 Apr 2020 04:31:44 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jOdSN-0007IZ-00; Wed, 15 Apr 2020 10:31:39 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 11724C010E; Wed, 15 Apr 2020 10:31:18 +0200 (CEST) Date: Wed, 15 Apr 2020 10:31:18 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Florian Fainelli , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH v2] MIPS: Limit check_bugs32() to affected platform Message-ID: <20200415083117.GA3125@alpha.franken.de> References: <1586488859-18715-1-git-send-email-yangtiezhu@loongson.cn> <181cf95e-c5f6-3899-e8eb-3f8847ec86d9@loongson.cn> <20200414173208.GA22802@alpha.franken.de> <5e575f15-4efc-7bf7-e266-d01aca094bbc@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e575f15-4efc-7bf7-e266-d01aca094bbc@loongson.cn> 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, Apr 15, 2020 at 09:48:30AM +0800, Tiezhu Yang wrote: > On 04/15/2020 01:32 AM, Thomas Bogendoerfer wrote: > >On Sat, Apr 11, 2020 at 10:32:02AM +0800, Tiezhu Yang wrote: > >>On 04/11/2020 12:25 AM, Florian Fainelli wrote: > >>>On 4/9/2020 8:20 PM, Tiezhu Yang wrote: > >>>>In the current code, check_bugs32() only handles MIPS32 CPU type CPU_34K, > >>>>it is better to build and call it on the affected platform. > >>>> > >>>>Move check_bugs32() to the new added 34k-bugs32.c to indicate the fact that > >>>>the code is specific to the 34k CPU, and also add CONFIG_CPU_34K_BUGS32 to > >>>>control whether or not check the bugs. > >>>> > >>>>Signed-off-by: Tiezhu Yang > >>>This is not a whole lot of code, so moving this to a separate > >>>translation unit seems a bit heavy handed, also file renames, albeit > >>>tracked properly by git are always a challenge when doing back ports. > >>Hi Florian, > >> > >>There exists the following three ways to do it, I'm fine either way, > >>maybe the first way looks better. Let us wait for the MIPS maintainer > >>to say what he prefer. > >> > >>Hi Thomas, > >> > >>What is your opinion? > >I don't see a reason for doing that at all. The 34K workaround is only > >compiled in if CONFIG_SYS_HAS_CPU_MIPS32_R2 is defined. > > Hi Thomas, > > Thanks for your reply. My initial thought is to build and call check_bugs32() only for 34K CPU, > because it is useless for other CPU types. > > Do you mean to use the following modification? no, IMHO we don't need to change anything here. There is not much to save here. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]