Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2022875rdb; Tue, 3 Oct 2023 08:06:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/wn+SWPQ15MVBhCBFE+QzlikhS1aV5RPAPqXYbKpK2/A1nWfkIwgIThDepGkr05cvNkjE X-Received: by 2002:a05:6a20:100a:b0:15e:921d:19c5 with SMTP id gs10-20020a056a20100a00b0015e921d19c5mr13687927pzc.54.1696345595109; Tue, 03 Oct 2023 08:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696345595; cv=none; d=google.com; s=arc-20160816; b=eYnxL7L9GEdFSp5P11WOTuhPXjuOs2kcr+nZnt0UhmHdkXJzhbXuuNeAfFc2tLvdac eUjVPdB4FYHYqx5EGrGT6hIS5bAmivgo9jTOqCwLFjWkz/Brhg4LlmjI3n43keKq4QaR dvlInCng8yuc8ICBetrvN+M4I1NeGjiotelW07QZE760wZfbpT+khKeG3LDTMppxpqNZ YYpVWT0HN3TgTt2KCedfcCvvhuSQFvHKdRCJuBuCHHQC1aH2tsGppqKVaFU9HdqG6iHG nPx1NPiKOwE/Ew/GRjMow4qe17+dosEb2aF1yjyylO7EkJtoDR+X9vPwSMLuBvanNDn/ PlNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=FY73+2t2diC+z4SVgtOHIPTzTAz8E8/DSlEDZ4D+T54=; fh=meSffXLLz0qwfgMbZcm4yKyLlzOWNL8FCVGaxdcJzQY=; b=JNMvZ6iwmSpZA8oaGYdTX0tXQg1+QxCXQtOsRY5rMv0oJThvczkR5Y2ur93xK56tqj Wrz7PdX/iYZUbcZTYWYiWxfGgb7XVXV2SlAkHmuwHeLSehxRKrGeHQO+qCK2gzOnSHsO KtHfQi1D3YMSlNAHyRAPDHru5E9uu58SjsqrLInizxZC6rxXsUbYyZ26UI7VtwoDNCXk O4bbQO2UWadyyS4kvljwBgEuERdp/qsnOpk7E4FvihAf8yh3JCseDa3V3ucI0OZIZfJE yL3uUpyyCRMqTuUr1M6YZmPlYFR5pGdYB3//qZ3WIGmCNTIDcquNhgFCzq3bT7O0XdxM 0bYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q11-20020a056a00088b00b0069339f19f7dsi1725653pfj.199.2023.10.03.08.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2A9ED8074795; Tue, 3 Oct 2023 08:06:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240194AbjJCPGJ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Oct 2023 11:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230511AbjJCPGI (ORCPT ); Tue, 3 Oct 2023 11:06:08 -0400 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E824A1; Tue, 3 Oct 2023 08:06:05 -0700 (PDT) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3ae473c0bd6so167619b6e.0; Tue, 03 Oct 2023 08:06:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696345563; x=1696950363; 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=zfoixr3m5U2kSBjb6JlXLVlRiawHL3INUa4p8i7QVO8=; b=EGKiHwssB+3hEl7sR8ziEiP0wm+YTLupvnzkQCvwAkgBUlpX+N5U0YWhYJH1q+frXS X2wsRniSuSqszKP5MJd58HRpz4vuahVOhz018FKh5xOexQa5IESpOZaVs0h+wa4ODJyg /nQwpYyMmYJWXmPaV9dwQtbwfei9TxPLEHQNh4gKuIxXAiWxILwL4wKjTprLh/JibxYg cer6/vfOy3DtGHWkhq96/rElQnMFscDfkW1TiydAWOSBf2/EhQYrXk36t5r5nSkjCQF8 JOZTj9zEusFAub7i0JIT99+CO7cl4GVHd142HMaYEX2zQfyw+YNGStbG+NJIZiXP1q5s Y9BA== X-Gm-Message-State: AOJu0Yy156lKQfNA5ccMMsD3om797F5kSD1GeilgfohDn9oW8/EvgZcx AkGQZ0DhcQ5+32PV3ObVfcH+OVsquwzao00JOpk= X-Received: by 2002:a05:6808:3c47:b0:3ad:af12:2fe0 with SMTP id gl7-20020a0568083c4700b003adaf122fe0mr16914427oib.3.1696345563091; Tue, 03 Oct 2023 08:06:03 -0700 (PDT) MIME-Version: 1.0 References: <20230927-pcc_defines-v2-0-0b8ffeaef2e5@arm.com> <20230927-pcc_defines-v2-1-0b8ffeaef2e5@arm.com> <20231003142916.6nbg5sfwd3tk6ol4@bogus> In-Reply-To: <20231003142916.6nbg5sfwd3tk6ol4@bogus> From: "Rafael J. Wysocki" Date: Tue, 3 Oct 2023 17:05:51 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] ACPI: PCC: Add PCC shared memory region command and status bitfields To: Sudeep Holla Cc: "Rafael J. Wysocki" , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Andi Shyti , Jean Delvare , Guenter Roeck , Huisong Li Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:06:11 -0700 (PDT) On Tue, Oct 3, 2023 at 4:29 PM Sudeep Holla wrote: > > On Tue, Oct 03, 2023 at 03:29:16PM +0200, Rafael J. Wysocki wrote: > > On Wed, Sep 27, 2023 at 6:32 PM Sudeep Holla wrote: > > > > > > Define the common macros to use when referring to various bitfields in > > > the PCC generic communications channel command and status fields. > > > > > > Currently different drivers that need to use these bitfields have defined > > > these locally. This common macro is intended to consolidate and replace > > > those. > > > > > > Cc: Rafael J. Wysocki > > > Signed-off-by: Sudeep Holla > > > --- > > > include/acpi/pcc.h | 13 +++++++++++++ > > > 1 file changed, 13 insertions(+) > > > > > > diff --git a/include/acpi/pcc.h b/include/acpi/pcc.h > > > index 73e806fe7ce7..021891a7434f 100644 > > > --- a/include/acpi/pcc.h > > > +++ b/include/acpi/pcc.h > > > @@ -18,7 +18,20 @@ struct pcc_mbox_chan { > > > u16 min_turnaround_time; > > > }; > > > > > > +/* Generic Communications Channel Shared Memory Region */ > > > +#define PCC_SIGNATURE 0x50424300 > > > +/* Generic Communications Channel Command Field */ > > > +#define PCC_CMD_GENERATE_DB_INTR BIT(15) > > > +/* Generic Communications Channel Status Field */ > > > +#define PCC_STATUS_CMD_COMPLETE BIT(0) > > > +#define PCC_STATUS_SCI_DOORBELL BIT(1) > > > +#define PCC_STATUS_ERROR BIT(2) > > > +#define PCC_STATUS_PLATFORM_NOTIFY BIT(3) > > > +/* Initiator Responder Communications Channel Flags */ > > > +#define PCC_CMD_COMPLETION_NOTIFY BIT(0) > > > + > > > #define MAX_PCC_SUBSPACES 256 > > > + > > > #ifdef CONFIG_PCC > > > extern struct pcc_mbox_chan * > > > pcc_mbox_request_channel(struct mbox_client *cl, int subspace_id); > > > > > > -- > > > > Do you want me to pick up this lot? > > I have applied this to me branch [1]. It also has long pending PCC driver > changes. I will send the pull request by end of this week. Sounds good, thanks!