Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp200790lqr; Wed, 5 Jun 2024 03:33:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYzMLfvhyitDhLefn2r6YzS7GwjUU2rGCGJNjn5CMonLeFPR3C6pPkROaxlQJ8lOz4DUkIr7mmZgKR5x/kwO7iCeNp3N3yPVDc56i1sg== X-Google-Smtp-Source: AGHT+IHtoR4vBUX8JRNMtSNkHHG4s+4hWI4Uj3s3WHXZzpth7MondEiL9tWnyKqEYAFbWtFib298 X-Received: by 2002:a17:902:e84f:b0:1f6:7f16:4fce with SMTP id d9443c01a7336-1f6a5904025mr25366305ad.14.1717583599969; Wed, 05 Jun 2024 03:33:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717583599; cv=pass; d=google.com; s=arc-20160816; b=ovjqc7gSOJMhSqlFHlV4S2XL1PKOWFl541NKZ4faX1il0ax1SsFVHDoDXxl9JqsMF3 T+2yl9it9RNqvfdy3VMhEvBLJHawYaeTxBREscH8hFFVJOaK8Hh9Td75FR/sMZPYP/cn jfDcDxbBFEDYEzdcv1QtPrTy9V7vy+SJFZAjTOeWK+znbohSgNMOkenRfoOIMEbzSR6+ uLPJKQ/C93Iqf9Nrfd2M3LzD9pCFrxp3jg3TG2DZ6sYlihZJepuXnJGZB/KjK15JqMyI p30MItVmYj+Q93AnWt8IDSrcFtbSh9Sd4BW/4UJThCuWY6EH/WiqUrzmhwQQ6UEGFyoI X25g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=KAOBvSoCT5DSX9Ps/atj12rG9MQUwMXghh2qn084c+8=; fh=kVtozVL1euXPaXBltq9PHxfUjHhLO3/NBPq3XAWwMlc=; b=qUWP2sCAi53VGJvj8nrwceHbYbQTzNMfPhKq2FM79loFmXd2EN3lv3xLjDvEAT0kmX 8TybEli4CTRUyNsYtZBHgHU849UwkoC4erswTtvGncRiQl79Uw/pageQktamUL8FaLMJ RXKGQx0I/MZFHKNIj9nzEsQBwvxCSkUlPvRAQRtHFM3UKXyK0S1OnbBLV1FdMHXYpokv hziODRjy9OYlUg6lYSW3k5EdFD3nl5P5Rf51KDP9BdGqtshjdg3hKAEj7iZE9bK4NDCi WCq7a36xyxEIfn6w94M5IMaE8ZCy292eedmlluiTmEbtfIdDBvBx9Xw7z3l6V5nyL8HS vcyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-202170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f63240152esi2643735ad.467.2024.06.05.03.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-202170-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 862F5B24004 for ; Wed, 5 Jun 2024 10:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66D6D190050; Wed, 5 Jun 2024 10:10:07 +0000 (UTC) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2CB31946CA for ; Wed, 5 Jun 2024 10:10:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582206; cv=none; b=N9DzyY7scB6JHmPuoyU6fejBYgjuchom8NZcOr8+zvlDBUBvLFQx4UvvxaMnTVb+t7+EshWJBVolGxOGmy+Zu5QHjS74NTUhWhWk9moA5Lzmch1I03nL0IEmDqAQr9On9ZNBIJgJYH65XMV90q9KkpghdSA/l7aW+sUI1ZEm30U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582206; c=relaxed/simple; bh=3ExLlaLSQ0sVOpTNVr+H4S8gegN+K4KWDZWR+pIud18=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=EImDNxo6J3tbjNuJxF5ONc7fC+PjBTu4OyRde33zgXPYwPcDVZqr1LtgFgtdRS+NqQsb1IHOvT+nDK8iKUVlLIFCh9fqx+4EqosaCmaRo5zoXd3Gb+QHcuN9SuQgJqsYt5JxaFYtincryV4pWQhw9XOv5VtJsyTT7eEWLvna4Wo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4VvN4x6jpPz1xsK9; Wed, 5 Jun 2024 17:50:57 +0800 (CST) Received: from kwepemd200013.china.huawei.com (unknown [7.221.188.133]) by mail.maildlp.com (Postfix) with ESMTPS id 167121A0188; Wed, 5 Jun 2024 17:52:18 +0800 (CST) Received: from [10.67.110.108] (10.67.110.108) by kwepemd200013.china.huawei.com (7.221.188.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Wed, 5 Jun 2024 17:52:16 +0800 Message-ID: <3f9f0ef1-7290-21df-ef01-dc56b34a0195@huawei.com> Date: Wed, 5 Jun 2024 17:52:16 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v3 1/8] arm64/sysreg: Add definitions for immediate versions of MSR ALLINT To: Mark Brown CC: Mark Rutland , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20240415064758.3250209-1-liaochang1@huawei.com> <20240415064758.3250209-2-liaochang1@huawei.com> <9868a5ac-ae23-4481-afe6-ba3cd8dbfa47@sirena.org.uk> From: "Liao, Chang" In-Reply-To: <9868a5ac-ae23-4481-afe6-ba3cd8dbfa47@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemd200013.china.huawei.com (7.221.188.133) Hi, Mark 在 2024/6/4 21:29, Mark Brown 写道: > On Mon, Jun 03, 2024 at 11:26:39AM +0800, Liao, Chang wrote: > >> Mark, Is your concern is that the series of pstate related macro name in >> sysregs.h are lack of self-explanatory nature, which make it diffuclt to >> understand their functionality and purpose? If so, I daft some alternative >> macro names in the code below, looking forward to your feedback, or if you >> have any proposal for making these helpers discoverable. > > ... > >> -#define SET_PSTATE(x, r) __emit_inst(0xd500401f | PSTATE_ ## r | ((!!x) << PSTATE_Imm_shift)) >> +#define MSR_PSTATE_ENCODE(x, r) __emit_inst(0xd500401f | PSTATE_ ## r | ((!!x) << PSTATE_Imm_shift)) > > Possibly, yes? TBH I was thinking of a comment but that does have "MSR" > in it so might come up in greps. Not sure what others would prefer. I am going to push revision v4 of the interrupt masking patchset, this revision involves several improvements based on feedback and further testing: - Addressed feedback comes form Mark Brown. - Enrich the commit messages of patch includes major changes to provide more detailed explanations of the implemenations, purpose and potential result. This aims to improve developer understanding and reviewing efficiency. - Revising the function names of logical interrupt masking to better reflect their purpose. - Fixed bugs during local testing on platform with FEAT_NMI support. Additionally, i note you left a feedback as below. >...I've started looking at this in the series. There are some subtleties here, and >I don't think the helpers in this series are quite right as-is. I will try to get back to you next week with a description of those; it'll take a short while to write that up correctly and clearly... I appreciate your time and look forward your further feedback at your convenience. Thanks. -- BR Liao, Chang