Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1999806rdb; Tue, 3 Oct 2023 07:30:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHke1NJOFYC053AEWHcX/LrNyg9UOM2sHclxgM+hPHVmlQoyTnwno1cVaUkHzFEMrhMyHQD X-Received: by 2002:a05:6830:32aa:b0:6bc:f276:717f with SMTP id m42-20020a05683032aa00b006bcf276717fmr14556841ott.13.1696343447749; Tue, 03 Oct 2023 07:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696343447; cv=none; d=google.com; s=arc-20160816; b=Zx4aW1eJsJMsXMn0EaZ70Z+dVsgL2yjusALWAj7/LGY9UUp5vGJOgQ988dQWUiKoGp j73XoliDLrDRVHeyeBxw3dhg/uaolMDz01VnRmMW6NkBrHuUX6y4XRWdj+/snTqQB8Ip YBu8Bjysc0lXRouZrmtXxpBj+JAjPUXFM/s2dz47jVJzspn2UhpovJZy+NfSDS7VG6Sb 2lzF2/a6Vxt9AOGRvz2hT2xilXEc9GIQ0ARATp0CLSK+FQNjdls4bxsGij1P9o4J9eIN z01/i7CcK4wPix2NK2eyyAe6/DXA5QWjLpYD2MpmZXIwKpIeIuV4MQNazZMkInYzWSXh XsZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=irZgX1cjegh99P2CseY6AT0w0rIAx/M9tU8+XiotjPk=; fh=9soOd993ta17me97qktbY9Ipe+UKG2unyQr2C/LoEEQ=; b=FY1OASOwULru/SogEOndQsGo1X8xRBe4MY7dLvWShLdqVG+AG8HPnBWhjUxVw5UKIp rkJawwKFTwCbFz/D+YPbCijGCfFNKdtUocUwhxucpcMvbQrYORPEzDtkM0DYKoOLyWVt ZErdi01RHAw4wgvGLSbchYXbF00HnS1n/lnGtK5fuYyPLwPVn5JD8G6MdkyGt3J5p2h+ INgWEFGi5eg/0mjdMUc/FqIN8nQMD3srzOdrxtNyOD41XmbK2DYo6DwbGymPAC5HT9f8 MqQspzrmoOXV13F/tRLY4K0qs+wYEOUkehF/1wwJBQTeQ3x+ojF96vmidH5lFY8tE3qb KSrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w8-20020a63f508000000b00584a4a74243si1522535pgh.771.2023.10.03.07.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3E5F88038B07; Tue, 3 Oct 2023 07:29:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240060AbjJCO3Z (ORCPT + 99 others); Tue, 3 Oct 2023 10:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239859AbjJCO3Y (ORCPT ); Tue, 3 Oct 2023 10:29:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E050DB0; Tue, 3 Oct 2023 07:29:20 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 295DDC15; Tue, 3 Oct 2023 07:29:59 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C0603F59C; Tue, 3 Oct 2023 07:29:19 -0700 (PDT) Date: Tue, 3 Oct 2023 15:29:16 +0100 From: Sudeep Holla To: "Rafael J. Wysocki" Cc: 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 Subject: Re: [PATCH v2 1/4] ACPI: PCC: Add PCC shared memory region command and status bitfields Message-ID: <20231003142916.6nbg5sfwd3tk6ol4@bogus> References: <20230927-pcc_defines-v2-0-0b8ffeaef2e5@arm.com> <20230927-pcc_defines-v2-1-0b8ffeaef2e5@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:29:54 -0700 (PDT) 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. -- Regards, Sudeep [1] https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/log/?h=for-next/pcc/updates