Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp566565lqs; Thu, 13 Jun 2024 21:00:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwUvXrNKpVImbNh+FGBLk2CQj8ChFbPqnzCwgDUM6+gDXMWZ28xhXtTlgW+gWFxQ/QnrHb4bxKczIsQLGwAm2dN1030Y2RUJfkQTU3VA== X-Google-Smtp-Source: AGHT+IGxtjsFGg0VfwnKLHMvxrUp4Ykd8aLRzuD3nomNRkGigZAh97w/nyER8tXm1hBX/qHB/i0T X-Received: by 2002:a17:906:a447:b0:a6e:372c:cc5e with SMTP id a640c23a62f3a-a6f60dc7faamr83798666b.61.1718337658459; Thu, 13 Jun 2024 21:00:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718337658; cv=pass; d=google.com; s=arc-20160816; b=L8ogRXRk77r4pEMmyvUb2OhDuyRJCmI5PQN8h89RLZ5hB09pNdlx5c38CVq9nYItxk UVVfivHAlBI5tgUZBNPbAwQIRuLCPMWh8Oji8tObWRjsPVrE7/tytNrZQTT0/bwZglhC ikQxSCEkvM5jLekYdaTLyj5HfF1UiqsTPAZ7a351wjmftzvz6gJdshTlvq1VIWbTKk8x NZtpIXdzIV/oWfFi87G34lEc2twdmzOZsr/qiEEbRhcrUwZDS/u2STqUP8XiVgiUnMeu W23+VdGXRcrWoOBCiuB1YI8y/yzpN+VGTvX/fqrCpeyinzr+wELYlEb6W+Tat0M8LLjC G1Rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=niPSulZ9xaDs+52fF0WA8MmxhdeH0ccH+0NjkyCEsKw=; fh=kVtozVL1euXPaXBltq9PHxfUjHhLO3/NBPq3XAWwMlc=; b=o9/1vs5+QxLdo7NsQdnA1MSSN+cQnXeUEAXnSqepz+UrsKvENth/hQOtWr8f/as+6z F9jZ/Y4xQMVf1NN+DRQtFRpUfXVFBsO9Z4dyIRyzCUXgTC3XPijqZey2zGOIimBh+h/R 4hI6WEFF6E6dzC4gM1X7lWLvYYKuYe15xacOLbHUeD6hE88RevLgVCP6lGfTXjHKqUxD RaAI9s4A+aRdQ43R+m6oikYtvHahwvTv1D9ZtR8b5pjFj8N4M6ZaeJ3R78hAoCEtiqty ORWfjyFgqfCPF2cC/mGLobVdbV/IXv0ueK0zY195dVdz71q1SgQBqzQpWGGX7JQBmlqC HKrg==; 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-214328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e7d60dsi131615266b.953.2024.06.13.21.00.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 21:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-214328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214328-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 30DB21F22FE1 for ; Fri, 14 Jun 2024 04:00:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D74C1474AE; Fri, 14 Jun 2024 04:00:39 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 D3A221E519 for ; Fri, 14 Jun 2024 04:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718337638; cv=none; b=EqHdwSXVZ5SyaHZStuNVIhtdLMSVOwLXtz0hKQZAI3s8tQd3dFv55BMXrbMnoCYGJxjB+C2qbeh5h3nWvHjo3aiJ0LMluZeeJJ1LswmKPhVRr9PSMilQKD1fcJIkmCxyvDzqKNLZUSqsW7pRQoyjvCNA4wG00BsWB5DSn0wVvo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718337638; c=relaxed/simple; bh=UWhBNIvEleEJlp8kJ8o4z4qdLSaB5WqNPToWO9eMztQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=CC8apNm8q/p9yomNd8rVDuLFQlEGDiiEz2je0lk5xS25SPV/jlQP/s6fNXotKykb7aFEN3L9E+WNpjNdzpL69cFFJkIHkCzf2geKNmMiNgaKTMxVG+yTssm6mSyy+W3BPkJxAigqxt2f2zT3yCsY+9Wng63QIKY1iut/VpI1YBM= 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.187 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.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4W0lnm0KRFzxQwN; Fri, 14 Jun 2024 11:56:28 +0800 (CST) Received: from kwepemd200013.china.huawei.com (unknown [7.221.188.133]) by mail.maildlp.com (Postfix) with ESMTPS id 5772C14066B; Fri, 14 Jun 2024 12:00:34 +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; Fri, 14 Jun 2024 12:00:32 +0800 Message-ID: <41702bd8-2a1f-90dd-d90e-fb5cba2fffa7@huawei.com> Date: Fri, 14 Jun 2024 12:00:32 +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 From: "Liao, Chang" 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> <3f9f0ef1-7290-21df-ef01-dc56b34a0195@huawei.com> In-Reply-To: <3f9f0ef1-7290-21df-ef01-dc56b34a0195@huawei.com> 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/5 17:52, Liao, Chang 写道: > 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: > Kindly ping, the new revsion is available at the link: https://lore.kernel.org/all/20240614034433.602622-1-liaochang1@huawei.com/ -- BR Liao, Chang