Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp890199ybs; Mon, 25 May 2020 01:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy54MJDuQeIQrhV/30JCg8kY6GxvF6eLt/ImmnSphK8eWTPXIIZl0qrvAa1NgPevWIVaRl7 X-Received: by 2002:a17:906:2cc2:: with SMTP id r2mr17310433ejr.269.1590395838759; Mon, 25 May 2020 01:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590395838; cv=none; d=google.com; s=arc-20160816; b=bNx94YwIqf+UUm3E0ZGBQzzV9xsR4nq+CxTB+Y8oT/d0rmrpLKUG5sJCbQ1ZnXGRRn Rjqmzy7Y/ClXm1FwN4XotZ+dId6geHS9+/IHhcxOs+totlHDY4U3lXMXPPECQn4+OpJA XvD6g+JGknNyAsh1U/TVB/22iv1CaWuCGRKsiD5Vg7lTpOPaANvUe0/5zj8aHqcQQyyH 7u5f6DKXa89XGg+iuBSOsZ4EvswXTVItwKVOVT2Xj7p+/+xlNiUKTQ3VQuI1wCU5WNy6 9ndNF/B9FOjKqrKiBqkWrSLeQ2zW6dBGsV3Yv2t5utr5RyQEfZmPtHLi3zDnCfULeMbS tLKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=H1BMSVZkWADjrieVFVAXMCwoV1IdaPZXkmLHmjV4How=; b=TBCePGgSnCNs5ugObi3DRYL3L++BI4DLqcMYhkua0UjPplJXYU6MD2opoTUtXT2f1s lNDLB6q4Uw/vtEhMlY0b1gmeQXBxhlVvgnk6M9dvDAAZ6VfEmJRbMCrUx9VB4s9E5OE+ eXr+pWXS5rhk2gXqtgs/S+3eCyeGUs8s3/nI91quT8wnkwYSeGU64JcNd181/Rss5CcL ia9+NrsiLuksBEcBKeWUFilT7Uuh4xrJxM0K2IYHtkBUuRcnVMNXk6F7IQQ8nVR3bXET 1/L+6vsNB9DIpp+n1vUmekRPszg8nsIygoNb4uhf/bks3oVy2GtC7fiaJGyCc6/vHcE4 MKiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b="STMrmb/z"; 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 la5si8891925ejb.229.2020.05.25.01.36.54; Mon, 25 May 2020 01:37:18 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b="STMrmb/z"; 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 S2388182AbgEYIeu (ORCPT + 99 others); Mon, 25 May 2020 04:34:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388175AbgEYIet (ORCPT ); Mon, 25 May 2020 04:34:49 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FACC061A0E for ; Mon, 25 May 2020 01:34:49 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id z18so19790653lji.12 for ; Mon, 25 May 2020 01:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=H1BMSVZkWADjrieVFVAXMCwoV1IdaPZXkmLHmjV4How=; b=STMrmb/zILaP/upNG1yawI1y2T4i0zG4i9EdgF8IXLjhr7HU9YXW/UR3jFxrVFa1Tn SHCZwWaGqSL8QbwMcYsy7IrlAfTzW/QBlSB5oPfjsV/h8gi7RGIlNgyy8GaEtL1tr6Gy kSyudst1CEFDQsbv2HCRu44+/B5GFXkdP48pEXF7J2ZxHSABBGs35KM81OU7kpF0PmKn CagFAXyZTTAtawkncJ1OlE9yMMi9r9Tv6CsjkiZCoSdGdeDxDF8O3/bCHNhAbPFulnXk ktTOR29Q0jYAK7h2gP7IMiOqUqw0sUcq5BepQ12h+N8d10JmhdmN4wcU8/fQ6lugo02w HH3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=H1BMSVZkWADjrieVFVAXMCwoV1IdaPZXkmLHmjV4How=; b=UqMHpl1TGUjXvnpM8SRrMZ9Q6svirUY8Ey9j6df0R45ieHLBIRfCSaBQ4aMniji1hZ ekBT9k+Jd+9iDAgbwWZAm1TSb+YgiyzA4anNmRvBvQ84Jz4vT773DQnYdAXkaKatqqq7 gSFT5ZOSwBstiUA/B0zJGdSEK5JOzFmfCBk0FMEltk4YJC+Wlc4rYHIqxM1m8Tn7ZI0n 21Y0rKurAXOIm1r5ldwp6zQxuySv/SdnvBjFA6kGp5s7whjsUzuVGUrROALamFFIpAKD UItlLeel2Ik9EeimvPaCwOar52/hIvVMxAgBOWxsoOrdPHSbtWHTGC7L8C3d6dFTN5C2 V7/w== X-Gm-Message-State: AOAM5331wB7D+uyfGn1uIugfr/lq18q6qLCRvnU2hLZVvFdUroVFeQvf 0IT0Ma8GVIvU9hABu35GGFs+RCTbDfuJkw== X-Received: by 2002:a05:651c:33c:: with SMTP id b28mr1858300ljp.219.1590395687723; Mon, 25 May 2020 01:34:47 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:425b:15e7:251c:5b3:d625:2d43? ([2a00:1fa0:425b:15e7:251c:5b3:d625:2d43]) by smtp.gmail.com with ESMTPSA id o4sm4639825lff.78.2020.05.25.01.34.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 May 2020 01:34:46 -0700 (PDT) Subject: Re: [PATCH] MIPS: Fix IRQ tracing when call handle_fpe() To: YuanJunQing , 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: <20200525033123.13114-1-yuanjunqing66@163.com> From: Sergei Shtylyov Message-ID: <0cb09824-73c3-d0d0-3bfe-b94e382536d9@cogentembedded.com> Date: Mon, 25 May 2020 11:34:40 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200525033123.13114-1-yuanjunqing66@163.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 25.05.2020 6:31, YuanJunQing wrote: > 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 variment of register "a1" may send SIGFPE signal Variment? > to task when call do_fpe(),and this may kill the task. Need space after comma. > Signed-off-by: YuanJunQing > --- > arch/mips/kernel/genex.S | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S > index 8236fb291e3f..956a76429773 100644 > --- a/arch/mips/kernel/genex.S > +++ b/arch/mips/kernel/genex.S > @@ -480,16 +480,18 @@ NESTED(nmi_handler, PT_SIZE, sp) > /* gas fails to assemble cfc1 for some archs (octeon).*/ \ > .set mips1 > SET_HARDFLOAT > - cfc1 a1, fcr31 > + cfc1 s0, fcr31 > .set pop > CLI > TRACE_IRQS_OFF > + move a1,s0 Need space after comma. > .endm > > .macro __build_clear_msa_fpe > - _cfcmsa a1, MSA_CSR > + _cfcmsa s0, MSA_CSR > CLI > TRACE_IRQS_OFF > + move a1,s0 Ditto. [...] MBR, Sergei