Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1368537ybb; Thu, 9 Apr 2020 00:12:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLcCAE/NEFII138NKw11AybYExt0mD7Z8XVTXMB6SoCJrQVboJGGmd3Vqrl1Q45D+HP77RT X-Received: by 2002:aca:3117:: with SMTP id x23mr645694oix.163.1586416325872; Thu, 09 Apr 2020 00:12:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586416325; cv=pass; d=google.com; s=arc-20160816; b=LFV5Dl2cutbNwXsUjgNBmAHXIxySHzGTxpLogD3mUN9bPPZBlk31z4ZRN4aqffPNiF NxU8e2j7J5VjzZGR3LW1xwb61TJmfZtMrwq8Pib0hFGJTf6mM20NFts5dHFGY/hYPhrh 5ZiMr/P4ZTS0xVvOB7eczRUD2Cq4NwP46pPNEzkAENOJgt8fol/Qvz+FPBizk8TSWUK1 O1kx1tPmi5J9ZZXyVedCUiPiwWr4MElBav0XTo+hE+Eebm0xgq3pnfjomN6Gpq/HzvBN +NSt38k27q3hE4uzjv0r3ePwM3NhZ3N8dradAQorQMIXJIym+jyYlVTWVEKy1HKonoAh IGwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Qa2n9evYcQirCgCpxB3IDp9QTiqPYtFJmnGql3MTeb8=; b=Elc0US4wTAiS+GpVe0z2eL7c3euPwxughX9ZJUmpOpUNMio2snTDQwHXJi9TBdv40y Bw6+OMrWL/DjMdIwtfR0HoLWrgKmnyUmFGvLVUNtFHmaYYlGCxfAYE0QPSJuNpcimX2/ rRp5vQ+NPJdnwMf8lbgz2q2g/VCSAU+I4bb94IM1xfe4LB+ZtDB2YIttOyGeH5D0QZGp /iIRnuEaU9r5h1Fs5woQ9GCC+xHa1/CU/rzFRYgOL5aVRnxFkBN+HS+iaSH2jpCSKW7C psxELl8oNCGkwJkjRskw5RH4sNlaS87sGQqjc4q48IOAG1oePm7XV7bKxNiAYVYL5Eu6 oCag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=Rn346rSU; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dmarc=pass fromdomain=flygoat.com>); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si3177640oiy.151.2020.04.09.00.11.51; Thu, 09 Apr 2020 00:12:05 -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=@flygoat.com header.s=mail header.b=Rn346rSU; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dmarc=pass fromdomain=flygoat.com>); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726574AbgDIHKC (ORCPT + 99 others); Thu, 9 Apr 2020 03:10:02 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17833 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgDIHKA (ORCPT ); Thu, 9 Apr 2020 03:10:00 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1586416166; cv=none; d=zoho.com.cn; s=zohoarc; b=Wobei5WInAshMdDygBVluMCD7o9t7TapeJXQK82SdObVJZK7WIRu1ef+g0DEdPKAb4NihMBgGC95mH/COHr2mDwhK5ftrFhLjlahVBYZkoZVs/cWazRrKafjahLVFr1ah/9yzzKp9doKPad27EQVbEOkmLMCi2MEgFaYDi082GY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1586416166; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Qa2n9evYcQirCgCpxB3IDp9QTiqPYtFJmnGql3MTeb8=; b=P3bM1gBFwIY5AN1PVPkki5jLmeClwQNmRudkjeYe5Us0InylAecwEu/wVJfwqNBZy1boaYIOHWM8wEJFZ9tqUcuytIK3fKN9LR1VGJ5PQsfjiCagUsw2qtHdEhSH0YhM4a5oUbPV/s4ob/ayyxjpXQ5A7M8C2z9FsA8JRRQ17OU= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=flygoat.com; spf=pass smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1586416166; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Qa2n9evYcQirCgCpxB3IDp9QTiqPYtFJmnGql3MTeb8=; b=Rn346rSUB56UKQTyGi9/TAn+tnlZa9mO9YJECtbdJu0t56UJPKRZVzcnIidSCzze VtIC9aWgAoJ3yr3d9ytiNbakVSw0tpzB3T+bgwQqaIxko6DwA1mvUyAWBT/XrjkPWdi 75y5QlFet0/84yqaveSQpLa0G2VRtG9Sol53OgRk= Received: from flygoat-x1e (122.235.212.87 [122.235.212.87]) by mx.zoho.com.cn with SMTPS id 1586416164370380.5460093713225; Thu, 9 Apr 2020 15:09:24 +0800 (CST) Date: Thu, 9 Apr 2020 15:09:23 +0800 From: Jiaxun Yang To: YunQiang Su Cc: Tiezhu Yang , Thomas Bogendoerfer , linux-mips , LKML , Xuefeng Li Subject: Re: [PATCH] MIPS: Limit check_bugs32() under CONFIG_32BIT Message-ID: <20200409150923.5b224361@flygoat-x1e> In-Reply-To: References: <1586401829-22242-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Apr 2020 12:43:28 +0800 YunQiang Su wrote: > Tiezhu Yang =E4=BA=8E2020=E5=B9=B44=E6=9C=889=E6= =97=A5=E5=91=A8=E5=9B=9B > =E4=B8=8A=E5=8D=8811:10=E5=86=99=E9=81=93=EF=BC=9A > > > > There is no need to build and call check_bugs32() under > > CONFIG_64BIT, just limit it under CONFIG_32BIT. =20 >=20 > Since 32bit is subset of 64bit, and due to the code, I think that the > initial purpose > of check_bugs32() is also willing to run even with CONFIG_64BIT. >=20 > For example, if we have a CPU which is 64bit, and work well on 64bit > mode, while has a bug only on 32bit mode, check_bugs32 should be used > here. >=20 > Loongson's 3A 1000 is the example, I cannot support FP32 mode well. In this case bugs32 only contains a workaround for MIPS34K, which is a MIPS32 processor. It's safe to do so. But my suggestion is if you're going to clean-up bugs and workarounds you'd better establish a file for silicon bugs and provide Kconfig options to enable & disable them. Manage bug dependencies by Kconfig will be easier. Thanks. -- Jiaxun Yang