From patchwork Fri Apr 8 21:00:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hotran X-Patchwork-Id: 8786171 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3103FC0553 for ; Fri, 8 Apr 2016 21:00:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DCAB20328 for ; Fri, 8 Apr 2016 21:00:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C7C520222 for ; Fri, 8 Apr 2016 21:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755306AbcDHVAf (ORCPT ); Fri, 8 Apr 2016 17:00:35 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33946 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752864AbcDHVAe (ORCPT ); Fri, 8 Apr 2016 17:00:34 -0400 Received: by mail-pf0-f178.google.com with SMTP id c20so82472258pfc.1 for ; Fri, 08 Apr 2016 14:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=mime-version:from:to:cc:subject:date:message-id; bh=ux8cutCcHmBBJfj26aU5DMp+y7kpQvlY+jgw+W4GPFg=; b=ldkEF/4267hHjn1ponq/xV6kwLrhHAzXGyJfPV5KL25MFqhmd6KrZWJD/KfR/1Yrna OguV+1DHVSHnIafyZgezIjlBf8anIobTo0+cjs8kqLjPKfyBkKRxgpl6B/S4x9k+beh2 sBGaRvr63FoRIaVPJbwg+nwfvvxYa2qx67Zy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id; bh=ux8cutCcHmBBJfj26aU5DMp+y7kpQvlY+jgw+W4GPFg=; b=WsM3V5Yxe3pjhouAwsWpqfhmA5MuPzGtp9GdWG1gd5e7pvWxJe+VL92v9aokolYgtn xX2XnToSsl9LSpbyziFeJd4z636SI853BOAsd4c9qVXE25EquU5JKFfaEi2Ks3NHPURg gzUhSK/DuocK7WaNMEAhhCx5w6tafL34DvPqfcXsv5Bgvks03bc4VysFyR7YWt2/zg3n 3uFycUzPvOD3A58Ve7f4OHASY5GxGwqUVLJsaqUVhQfw+EIXQIRH4z/jLM7vrqiWOs+c 0cDPOqDwH+h4kGDptf+NOGZo+XDewue5wOBS+maYWC/XomUAKponQWghnzkFM9aOBZOT JPxQ== X-Gm-Message-State: AD7BkJKxkYyge677ApyRZLOaqQeW99zXzW1cjVF2uCJiNRHJoYXRHjc9KWyz+HxY+fIdt3hYUouwu22WdrIWR6DGsKju+5XV4ddczdvY+AvQFNXYFiORa0Vzg851GvQC0K3sfnHC MIME-Version: 1.0 X-Received: by 10.98.68.91 with SMTP id r88mr15503778pfa.12.1460149233641; Fri, 08 Apr 2016 14:00:33 -0700 (PDT) Received: from hotran_localhost.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id p8sm20622947pfa.71.2016.04.08.14.00.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Apr 2016 14:00:33 -0700 (PDT) From: hotran To: "Rafael J. Wysocki" , Len Brown , Robert Moore , Lv Zheng , linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org Cc: lho@apm.com, hotran@apm.com, dhdang@apm.com Subject: [PATCH] ACPICA: ACPI 6.1: Add PCC HW-Reduced Communication Subspace Type 2 Date: Fri, 8 Apr 2016 14:00:05 -0700 Message-Id: <1460149205-10502-1-git-send-email-hotran@apm.com> X-Mailer: git-send-email 1.9.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ACPI 6.1 PCC has a HW-Reduced Communication Subspace Type 2 intended for using on HW-Reduce ACPI Platform, which requires read-modify-write sequence to acknowledge doorbell interrupt. This patch adds the Communication Subspace Type 2. Signed-off-by: Hoan Tran --- include/acpi/actbl3.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index ddf5e66..5937075 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h @@ -476,7 +476,8 @@ struct acpi_table_pcct { enum acpi_pcct_type { ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0, ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1, - ACPI_PCCT_TYPE_RESERVED = 2 /* 2 and greater are reserved */ + ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2, + ACPI_PCCT_TYPE_RESERVED = 3 /* 3 and greater are reserved */ }; /* @@ -498,7 +499,7 @@ struct acpi_pcct_subspace { u16 min_turnaround_time; }; -/* 1: HW-reduced Communications Subspace (ACPI 5.1) */ +/* 1 or 2: HW-reduced Communications Subspace (ACPI 6.1) */ struct acpi_pcct_hw_reduced { struct acpi_subtable_header header; @@ -513,6 +514,9 @@ struct acpi_pcct_hw_reduced { u32 latency; u32 max_access_rate; u16 min_turnaround_time; + struct acpi_generic_address doorbell_ack_register; + u64 ack_preserve_mask; + u64 ack_write_mask; }; /* Values for doorbell flags above */