Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp364840pxk; Thu, 3 Sep 2020 01:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN5FcdcewLovgx9Ooen30O1NpfPuVl82OGy+fluV2qurQy3jSBc9sDmg+y8vtrHzKuNKzJ X-Received: by 2002:a50:8062:: with SMTP id 89mr1829295eda.241.1599121827063; Thu, 03 Sep 2020 01:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599121827; cv=none; d=google.com; s=arc-20160816; b=G1Ydb3B54pvmJqrJOWYlf67N3BdrT6G6JP475DAaVAm4Xvh4RemLanRVPuqy4dpJDn ydjaLs7e22/tmuLVifzIOrOFD9YCljRnODzLeq8wTCjyMahpTcdyutFYiFOk8ZlXr3f9 BKhzoMXYZFYQe6XUEU2DKiuLgUG4VKwI55ivjFLcMROOhyKYnu0pUOAJ1BbJIWwFyNTl uMQfvlGmffxDaukEXZtvaMvNNcuyCdaCaIkr0rA+iTVMD8QWc8FqEMXiaGFyEARZkgeu 1Cn+JQmQutO4wySafLZcyRY2UAc692pyMFKA1SSWgZ+3/AxQxukZrr78vK502TA5o0ME PzaQ== 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=vt0+4Qw35A25yw9OAcReKEm/JuYjba3dZrHQjJIdxts=; b=kzDJIl8RkE3Y+4Y+oShllTBPvJh4B7s62TPcx95fsGtv2kAmshp40nfDlRnTPLsScm pLX2UwGjtluGlT7KpDwnBaHIb5j22em9zfcMxnyXYajrsSCk7vgJ0fcgJv/wibG0GvYZ IB8ONxBTLquD9/avBHSofU+A7Iaw04Mw5d4Xu7c0V0NqhOgcjHkJCQUM04lGQ7wvGYFf qTYRCULdb6mVZG7hCHumVqQLZVy9szotOltc0Vu37ILNSE7qeUKXUrpcHkceF/Sf41AM 4PmU1jKXgNixSTo/R/ZOkUpKSHuci0pclIu9vWKexLdhD1RR5XvYrEDgegzst8fkUOX0 4izA== 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 d14si1236462edx.156.2020.09.03.01.30.02; Thu, 03 Sep 2020 01:30:27 -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 S1728251AbgICI1S (ORCPT + 99 others); Thu, 3 Sep 2020 04:27:18 -0400 Received: from elvis.franken.de ([193.175.24.41]:50525 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgICI1O (ORCPT ); Thu, 3 Sep 2020 04:27:14 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kDkaL-0000I1-04; Thu, 03 Sep 2020 10:27:09 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 3FDDBC0E86; Thu, 3 Sep 2020 10:22:10 +0200 (CEST) Date: Thu, 3 Sep 2020 10:22:10 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH] MIPS: perf: Fix wrong check condition of Loongson event IDs Message-ID: <20200903082210.GE6220@alpha.franken.de> References: <1598515388-3604-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1598515388-3604-1-git-send-email-yangtiezhu@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 Thu, Aug 27, 2020 at 04:03:08PM +0800, Tiezhu Yang wrote: > According to the user's manual chapter 8.2.1 of Loongson 3A2000 CPU [1] > and 3A3000 CPU [2], we should take some event IDs such as 274, 358, 359 > and 360 as valid in the check condition, otherwise they are recognized > as "not supported", fix it. > > [1] http://www.loongson.cn/uploadfile/cpu/3A2000/Loongson3A2000_user2.pdf > [2] http://www.loongson.cn/uploadfile/cpu/3A3000/Loongson3A3000_3B3000user2.pdf > > Fixes: e9dfbaaeef1c ("MIPS: perf: Add hardware perf events support for new Loongson-3") > Signed-off-by: Tiezhu Yang > --- > arch/mips/kernel/perf_event_mipsxx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]