Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp246227lql; Mon, 11 Mar 2024 00:57:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVIp1c45n84KNBgPH160uhb+RxndMSNR5lyFjs7Je+oHsmC0ysAWQIhZyyt7bDxPMAmD8d4UMPOq6IbxYzS3RYNE+zIkWDY+iux8vZzA== X-Google-Smtp-Source: AGHT+IFqpAK/rM7RZ43lyIJ8tSu+lXZ/kGtbdD2FrwKs46E+xNdFKDEZdcFD+aKPW5RzESrYm0ji X-Received: by 2002:a05:6a20:7483:b0:1a1:2f28:a56d with SMTP id p3-20020a056a20748300b001a12f28a56dmr3414008pzd.56.1710143830425; Mon, 11 Mar 2024 00:57:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710143830; cv=pass; d=google.com; s=arc-20160816; b=wWySKc0ud+tNDtNgib8eCgI63M9LpJ5mj47WXNgFodQ2e4ZTnUZ0GPJ/4e93TD3atH XbTkonbLtj4VOvamQHyp3/UoDP/+PBUERppsNpJDZ6Y5m3StWe2ZUB2a45ttGvuwqxes VyMohJtYKwiIuHNLniJ5ybJYwhq9zRitkwsiHDlYiFHPyJx5Xpnr2DUM8ztFDoWA2Zc+ e675PLWc0/f4fptX/fpJ8udZJUztWLbZfvz2rglJzOBQefR1eNHyi9O2Rha/9dLt7DWZ 7Ip30QEXbtYfLNk71gY1IQBSTn/hzVS38DVHJydSgQkX69uk13sOjTds9Vt/zV/gzIBQ MOLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=l1GlUN2HihV5LZtSj9DtGfp1vdhPKdNbmWkJ1oSjdUk=; fh=iWKZj8V/gDb+kjPKOg5UzXRrV87kKY/5i7340IYI/T8=; b=EeSu0qYr8+N29Tv7LFev5X6aS6R/tavDefNk4VHHFi9UfzCOIkEuErCDpB1S8RJD8Y wqO+DmrPS8jaNbcoF1jmw3EE41Ep387QLWqz31DDYwldl15kvezPoazRfTs4Mlw0OFVX 3JDE5R7nj5hJ3te+NOnbJSf6dhzm519YkUjq/NGqVYee4/Nx1UemrDQDN65nbvkK5gkV mEdkgCoQTPbIGfbo72kLSU6+MDbsllibxRMtoXaAyAzJR31OwGNlIT7GLWXtkSm5Xmx1 9COdBXov2Vo7aP2EoDB2DbTX21drfFTOUYQOtTUIFgswk7aM72E41pq1xIWHIatYawKL 2P+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Vp7o9uXQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98526-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z10-20020a17090ab10a00b0029becd7eba4si2552215pjq.137.2024.03.11.00.57.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 00:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98526-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Vp7o9uXQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-98526-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1F7DF2822AF for ; Mon, 11 Mar 2024 07:57:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DFB810A16; Mon, 11 Mar 2024 07:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Vp7o9uXQ" Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E72331C33 for ; Mon, 11 Mar 2024 07:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710143825; cv=none; b=U7hdkzyRqNArgJqfOfC9EwOIYQXxx7AohqLp/q3EHsGVmO0ZbW/X7jza3wrQSkbcvxZ6HE0f01Yw7LRHiFD0az6qFnZADnh2Tj6NZvF5QTjXhIFrnx4KpyOusWpwbCeqzmOCK0l6qnBoTX/IFX/U370eCfmVJcBAIVqFPM2T2Uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710143825; c=relaxed/simple; bh=l1GlUN2HihV5LZtSj9DtGfp1vdhPKdNbmWkJ1oSjdUk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lyiEzCHOnc1sbNGhyFAo9fC2kkstEJNQ9xO1hXI74agpxmIQ/abhpEIXJvPPyTR0fbGP8R51jmYwHMWZhbALzptlaQhfs1u17UeLEV9EPwerOtY6Ly3Bnv+Le21FTNO0xqNOlSDre7KbJAQuMAWLBlUaZfMEI7ZTdYcLCABDJzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Vp7o9uXQ; arc=none smtp.client-ip=209.85.219.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-dccb1421bdeso3518736276.1 for ; Mon, 11 Mar 2024 00:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710143822; x=1710748622; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=l1GlUN2HihV5LZtSj9DtGfp1vdhPKdNbmWkJ1oSjdUk=; b=Vp7o9uXQyhhX2v0i4fq4tPHIp4Ob5RIfj9ZfxL/PpbVe09OsEPmsppxLOf0FkbVg3J gRCpXYp5y9srvjeMO8WrJvumu5eB8nYo+vJ3Wh1CPkXNtUXUeN6L4z/6MsD7fmaU+XnI AFd5/E7c0lTfPbPm6Z2uIK+R9Gww9No5bSQJNvfMA7AWXMXOokpXInpwulc5YXjgLWcl bqWd61bjWEUpitkyXrSUuC5mCe5+l2ZHO4onZFjQI46gets0IWCa7N1NImtHLCZalPI2 Rg7H3Tkt1ZMwLJQ0giHgJZtnO9INSxFmx7OPCNlIXQKVi2P4t4iM7fCzuEhukqr0Tpzp v/ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710143822; x=1710748622; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l1GlUN2HihV5LZtSj9DtGfp1vdhPKdNbmWkJ1oSjdUk=; b=OUD73FumCt9qlFsvvdWe59wAayhqrwBdHCvs2JWKJ0+KjYfhqc3//ODUtABij0WhnH fUIftxDh1EkPQNs6V2pGOoExdU6cz6Iiw3z2UDHG/tAowh6nRxiRL9+LxY1cgUiJWZ2S 53H7GI776Ml2u+8490QpJy0TMnaIJDVeaeZ26hE9e0zSBR0Njkqgw0JH0T3X51MJTKZy V7AzVAHa548gyFwtVI12HQrrhq3DO+SL5oB8lGW8KSAEeJDj2OnU9RsZ2smV2sfKOVq5 htOyfXmRFYeBVvGgww8hG4y5Py7xG3liZUcAn0YyETITm8/siaoW+x7aicU++fR2aEfr FDig== X-Forwarded-Encrypted: i=1; AJvYcCXH6IPQuE/V2r7SBxKD85q+9ttcsjciXgxnrSgjO47knhBH7lVVhY3lu37E2Ko+0ji7Hv9ZOQWJy4WZ+o8HnrBnct7o2phsTH60SJ84 X-Gm-Message-State: AOJu0Yw8dT6/n8WpT/R/ULzRMxlN/lo3jL3mNzpJ1Ec4YH6VlQ1m1P06 A/x0EUN11//9LchUw/1wnUT5757akZ+6UAYg8bMwmjDqPm7FrEJvBFpt0LDFMeoquQM/2QQEkKp WxxtpuyZEFQLvBcHRRf3pSY9+IDM= X-Received: by 2002:a05:6902:c7:b0:dd0:c2a:26f9 with SMTP id i7-20020a05690200c700b00dd00c2a26f9mr3178090ybs.27.1710143821857; Mon, 11 Mar 2024 00:57:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240311063018.1886757-1-dqfext@gmail.com> In-Reply-To: From: Qingfang Deng Date: Mon, 11 Mar 2024 15:56:29 +0800 Message-ID: Subject: Re: [PATCH] perf: RISC-V: fix IRQ detection on T-Head C908 To: Inochi Amaoto Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Andrew Jones , Conor Dooley , Heiko Stuebner , Guo Ren , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Inochi, On Mon, Mar 11, 2024 at 3:13=E2=80=AFPM Inochi Amaoto wrote: > > On Mon, Mar 11, 2024 at 02:30:18PM +0800, Qingfang Deng wrote: > > T-Head C908 has the same IRQ num and CSR as previous C9xx cores, but > > reports non-zero marchid and mimpid. Remove the ID checks. > > > > Hi, Qingfang, > > IIRC, the existed C908 SoC (such as K230) have an early version > of C908 core. But C908 core itself may support Sscofpmf. > So I do not think removing the ID checks is a good idea. Instead, > I suggest adding CPUID of your SoC to this check. As of Feb 2024, the latest C908 revision does not support Sscofpmf. You may Google "C908R1S0" to see its user manual. But I think you're right. Even though C908 does not have Sscofpmf, T-Head may release new SoCs which do have Sscofpmf, and the check will break. I will submit a new patch with your suggested changes. Regards, Qingfang > > Regards, > Inochi >