Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp402998ybm; Thu, 28 May 2020 05:55:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzJm86+y6TD66Esd8p6Jm7agTQmVgu+qKiJJaRTfDYApCyTzjPRfqv1+pmpybev+hyWDBX X-Received: by 2002:aa7:d1d9:: with SMTP id g25mr2958228edp.301.1590670513902; Thu, 28 May 2020 05:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590670513; cv=none; d=google.com; s=arc-20160816; b=fGhu3SW9cPQjiaKSRzA457zp+2W/7IqzQrhvs5qJaJfr+XDeUPQ0umtuZe+wMhqtZs 75ikst9wCuFF5t6fSgUa9oM2KR50BQapFPxavjToF09y4q1Vl29fazctT3LCI0GN8bxi JpWaryjtH7pmgzRrAHI98Dn+Ct60vyskw6x2MMX70GR8y7yv/qYrhGn0nyecufuWxH6V pK+iSuP2ep7yH/a1C7l/VlxMsm4kEJZyIfdi1H0uqQoIYSBsGjEb9F72K1MsGiN6Yzqv 9kpl6VXt0kbQ2pnbasD04v3MWlaX5QiXNZAs+9OlDdaFlt07uyZPXLxLmJNauB4zD6di saZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2DyepfzfBy/KOzfvHORsBmKYgJNqknyTEsRuBABT7qc=; b=nACtczf/kGwD9+BFJOYkgmVUgoZCiIgLX1zz35bsazpgdt1xgMUMPne9ECi3GWz1g0 ++LAk0jpH7HqXN9g//57TMJ8Bp8eES4UCII+vYO5bkPKI+LeJdu70JajgmxTNZWX0wIW pCdlD2sfIIIzqON+ksK+W2paFhFFbQXB6zagq71ODl849yu664kEqvX0BxcA7HEauS6R gWuYClTEWNpb2K6+WAW2HaH8NkeRjHmCs1bEuoXxxPe3gVpbZSFQoXYjIWYlwE0boSMk dtI0mpKrDfraKn7UyPcA+ifRKD7at1F601bo9MUTAXNt4tezkA5B79YNIsAKk3AOLgAN OiUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="Foj/fqXx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si3497758eds.254.2020.05.28.05.54.50; Thu, 28 May 2020 05:55:13 -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; dkim=pass header.i=@163.com header.s=s110527 header.b="Foj/fqXx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389885AbgE1Mw5 (ORCPT + 99 others); Thu, 28 May 2020 08:52:57 -0400 Received: from mail-m974.mail.163.com ([123.126.97.4]:44044 "EHLO mail-m974.mail.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389828AbgE1Mw4 (ORCPT ); Thu, 28 May 2020 08:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Subject:From:Message-ID:Date:MIME-Version; bh=2Dyep fzfBy/KOzfvHORsBmKYgJNqknyTEsRuBABT7qc=; b=Foj/fqXxXyDIVuGFEl7qi UlBxG5Za9tlCt3B/5YEQmywa9p9RNwgyUZ3sKhVgyOQct6Nm5A8MA45/q45nIOVV d2IetGiMAgSzc2tcmXfXYc6hGmD3t9slGCecKoMbJXhVFssB/29qGB0pvht5WzJ5 o1NrqGhEWXp+XeJEda3KzE= Received: from [172.20.10.2] (unknown [124.64.18.22]) by smtp4 (Coremail) with SMTP id HNxpCgB3LyuIsM9ev5+aBA--.24S2; Thu, 28 May 2020 20:37:37 +0800 (CST) Subject: Re: [PATCH] MIPS: Fix IRQ tracing when call handle_fpe() and handle_msa_fpe() To: tsbogend@alpha.franken.de Cc: paulburton@kernel.org, chenhc@lemote.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, liulichao@loongson.cn References: <20200528123505.4219-1-yuanjunqing66@163.com> From: yuanjunqing Message-ID: <57a8191b-1c64-9a5e-7935-050263d715fb@163.com> Date: Thu, 28 May 2020 20:37:28 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200528123505.4219-1-yuanjunqing66@163.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID: HNxpCgB3LyuIsM9ev5+aBA--.24S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wr4UAr18Cw1kWry5Aw1UZFb_yoWkJFc_Kr 42kw4DKrn8Grn3ur17tay8X3s7tw4agrnayr1qvw1Yvr45Wrn0kFZ5K3Wvqwn3XrsakF4I y3W5JFnFkF1IyjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUe-Vy7UUUUU== X-Originating-IP: [124.64.18.22] X-CM-SenderInfo: h1xd0ypxqtx0rjwwqiywtou0bp/xtbBzxEyXFaD7WC+bwAAs5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sorry! ?? 2020/5/28 ????8:35, YuanJunQing ะด??: > Register "a1" is unsaved in this function, > when CONFIG_TRACE_IRQFLAGS is enabled, > the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), > and this may change register "a1". > The changed register "a1" as argument will be send > to do_fpe() and do_msa_fpe(). > > Signed-off-by: YuanJunQing > --- > arch/mips/kernel/genex.S | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S > index 8236fb291e3f..a1b966f3578e 100644 > --- a/arch/mips/kernel/genex.S > +++ b/arch/mips/kernel/genex.S > @@ -476,20 +476,20 @@ NESTED(nmi_handler, PT_SIZE, sp) > .endm > > .macro __build_clear_fpe > + CLI > + TRACE_IRQS_OFF > .set push > /* gas fails to assemble cfc1 for some archs (octeon).*/ \ > .set mips1 > SET_HARDFLOAT > cfc1 a1, fcr31 > .set pop > - CLI > - TRACE_IRQS_OFF > .endm > > .macro __build_clear_msa_fpe > - _cfcmsa a1, MSA_CSR > CLI > TRACE_IRQS_OFF > + _cfcmsa a1, MSA_CSR > .endm > > .macro __build_clear_ade