Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp218154iob; Mon, 2 May 2022 17:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv1IS16JymnlVY3YP1ZYsboaztnXOp8SBDw8nyd8xjvtzcFY69IWw+lDxFBaVTiXb/mfi+ X-Received: by 2002:a17:903:40c6:b0:15e:a8b5:5650 with SMTP id t6-20020a17090340c600b0015ea8b55650mr6274242pld.79.1651537955517; Mon, 02 May 2022 17:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537955; cv=none; d=google.com; s=arc-20160816; b=l75EkWqEJo4fWYy10VNJm2966ZSibueea9SnV3ZZsmH042L20pYPPUMu5tuoT2sd8L noP4Ex+dhbJBUXMLVEK69T2Eo0yqX9HdqNbgy8Ov7UXaDWjHmr3coz+MTeXKfILBIzmB +q0ZLfCFysiOW+heDicSWByrKgYu2D++G63P2G6rqm3wjNeYpD+5rSLVhSta5WPr+nmV L5l/GEE20oCdzRykcqqjfLQ2XS4lfwjOZY3dDGVTbrgDwNb4q0aAQSECiCP9EETKFN5C +WLHIzK+ipSQRbHB3nndc3S6OsFuc6Ywng6kb82IWrfMOgHUqYrugMxn8MfpxYKtZrEx sfqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kT+smoqxUUOo2Ktb3O9J5lGl3PYg+G58BG/KvkNJLgY=; b=0tZU1ZwX8zaTBFu8OE0XZQMYPCjeJMONba7V0RjscbwD3Rl4/MFnsy5wrznemCzOK4 FJIVCtrIEQ202t+t2rLZfYXTwbkNRLrvDy8f+KtffuYqhd8yc08hR/DxsTxV3ATcWHfz /w58c5S+xAAatoAX++mTt2p40EgUAfPL66cV5OBHcBw1Eah/PnIwk0u4AXUlxYGi1ChF gc5b6Pn6HR5c2Vw0tmW+6Br4XmFRlvXnf/JylfCnn4QJX79PALqoHVU4HaJF+N65T/oR I3Gooi6b6BXH/sDA/0L9eclSWdGYYAGONYi3qoWySukvxSs0HLL26paXQxB6PdpzE2Yy 7S+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dOOyVJ1D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m4-20020a170902f64400b001590118e14dsi14495031plg.108.2022.05.02.17.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dOOyVJ1D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0083E205D6; Mon, 2 May 2022 17:25:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382155AbiD3DkX (ORCPT + 99 others); Fri, 29 Apr 2022 23:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232757AbiD3DkV (ORCPT ); Fri, 29 Apr 2022 23:40:21 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1367E8165B; Fri, 29 Apr 2022 20:37:01 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id gh6so18724892ejb.0; Fri, 29 Apr 2022 20:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kT+smoqxUUOo2Ktb3O9J5lGl3PYg+G58BG/KvkNJLgY=; b=dOOyVJ1DSf5EiPM0yEiLtTWcQTVfi5wciGDnyaADIduC2+gcdvYlI5tRYQTCHnDhSr LXM7EkzvctBcMF1FminCCFJCS8vCeJtg89aARu0QtQuzx4LOFhqFXLU3eLjm4dWCYU6Q uhQeXljguvxrXhdWkrdjYoGZv31V4VjbY/1d3A/L1tEHt/0l3qyF5jRzpaRh9yUqh2eE kwpPGEpbRyu2V/jHmgUw1VNKSlc9yqC2a5stheuULoxj29pfhDmB6iO7y+p2zYWWYpz6 rYvifEr9NB8PQ9rBL5phInZwyTaiEOYcwb+u5YXNMLX0pXqm2BHHny8hO9UKg7ZEJjd5 u3Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kT+smoqxUUOo2Ktb3O9J5lGl3PYg+G58BG/KvkNJLgY=; b=p6kNj4EolSZ8O2yUel6FfMdvb8z3IuLrydGVsnO+fEMJ+YZ/8eFDb4p8WvZpEbkRPu CdvZ2idaN4nMPYRLQx2dX+U7lf/5YMHLeqrGao83U4Q3j4wFwNAKNfZrS7z2rItlxjjS +IkLpSfwYxgOK1wn5f88ol1CNx6fh/lws1VK/ttOlfiIWA1VRjbzXWzVOw+wuaB4WUbZ 4QpmOagUU77JmsbU6kZiTMQEq3/dcUbGORMVttVIJeaBksIez2COi7cwQHuNCGh1flyS gJnAbSWmzjXqGzPADFGcaxyuM9k+RIMnPsN5rP9eJypvu1oB4u8NRbSVezfV4lhTHzdC Fn5w== X-Gm-Message-State: AOAM532GiVcUJriZwP99A1SryzprePkR60+bREjZ0/WejsiaNkJLCvRN +LODXshzJz539K68TJ3nN888Il1DPuhwQ7v0E7g= X-Received: by 2002:a17:906:6a0d:b0:6f3:b341:3b94 with SMTP id qw13-20020a1709066a0d00b006f3b3413b94mr2262811ejc.31.1651289819573; Fri, 29 Apr 2022 20:36:59 -0700 (PDT) MIME-Version: 1.0 References: <20220429032621.674865-1-starzhangzsd@gmail.com> <20220429095104.GA11365@alpha.franken.de> In-Reply-To: From: Stephen Zhang Date: Sat, 30 Apr 2022 11:36:23 +0800 Message-ID: Subject: Re: [PATCH v2] MIPS: undefine and redefine cpu_has_fpu when it is overrided To: "Maciej W. Rozycki" , Thomas Bogendoerfer Cc: liam.howlett@oracle.com, ebiederm@xmission.com, alobakin@pm.me, f.fainelli@gmail.com, paul@crapouillou.net, linux@roeck-us.net, anemo@mba.ocn.ne.jp, zhangshida , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maciej W. Rozycki =E4=BA=8E2022=E5=B9=B44=E6=9C=8829=E6= =97=A5=E5=91=A8=E4=BA=94 23:11=E5=86=99=E9=81=93=EF=BC=9A > > Additionally I've thought of adding something like: > > #if cpu_has_fpu > # undef cpu_has_fpu > #endif > > or maybe even: > > #if cpu_has_fpu > # error "Forcing `cpu_has_fpu' to non-zero is not supported" > #endif > > to arch/mips/include/asm/cpu-features.h, but maybe that's an overkill. > > Maciej Yeah, but why do you think that's an overkill? There is a great chance people will ignore the note of 'cpu_has_fpu', and it did happen. When that happens, there should exist a way to point out or fix that. Thomas Bogendoerfer =E4=BA=8E2022=E5=B9=B44=E6= =9C=8829=E6=97=A5=E5=91=A8=E4=BA=94 18:01=E5=86=99=E9=81=93=EF=BC=9A > > I prefer just removing the #defines from ip27/ip30 cpu-feasture-overrides= .h. > Or isn't that enough for fixing the problem ? > > Thomas. So maybe that's why I don't think just removing the #defines from ip27/ip30 cpu-feasture-overrides.h. is enough for fixing the problem. Stephen.