All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lv Zheng <lv.zheng@intel.com>
To: "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	Robert Moore <robert.moore@intel.com>,
	Len Brown <len.brown@intel.com>, Lv Zheng <lv.zheng@intel.com>,
	"David E . Box" <david.e.box@intel.com>
Cc: Lv Zheng <zetalog@gmail.com>, linux-acpi@vger.kernel.org
Subject: [PATCH 10/15] ACPICA: iasl: Fix IORT SMMU GSI disassembling
Date: Wed, 26 Apr 2017 16:18:49 +0800	[thread overview]
Message-ID: <63b0875a5374260513152f35d1d85fc32b4cdf25.1493194142.git.lv.zheng@intel.com> (raw)
In-Reply-To: <cover.1493194142.git.lv.zheng@intel.com>

ACPICA commit 637b88de24a78c20478728d9d66632b06fcaa5bf

If the IORT template is compiled and then iort.aml binary disassembled to
iort.dsl, SMMUv1 node lists incorrect offset for SMMU_Nsg_cfg_irpt Interrupt:
[0ECh 0236   8]       SMMU_Nsg_irpt Interrupt : 0000000000000000
[0ECh 0236   8]    SMMU_Nsg_cfg_irpt Interrupt : 0000000000000000
This is because iasl hasn't implemented SMMU GSI decoding yet.

This patch fixes this issue by preparing structures for decoding IORT SMMU
GSI. ACPICA BZ 1340, reported by Alexei Fedorov, fixed by Lv Zheng.

Link: https://github.com/acpica/acpica/commit/637b88de
Link: https://bugs.acpica.org/show_bug.cgi?id=1340
Reported-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
---
 include/acpi/actbl2.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 7aee9fb..83666cb 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -783,6 +783,15 @@ struct acpi_iort_smmu {
 #define ACPI_IORT_SMMU_DVM_SUPPORTED    (1)
 #define ACPI_IORT_SMMU_COHERENT_WALK    (1<<1)
 
+/* Global interrupt format */
+
+struct acpi_iort_smmu_gsi {
+	u32 nsg_irpt;
+	u32 nsg_irpt_flags;
+	u32 nsg_cfg_irpt;
+	u32 nsg_cfg_irpt_flags;
+};
+
 struct acpi_iort_smmu_v3 {
 	u64 base_address;	/* SMMUv3 base address */
 	u32 flags;
-- 
2.7.4


  parent reply	other threads:[~2017-04-26  8:18 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-26  8:17 [PATCH 00/15] ACPICA 20170303 Release Lv Zheng
2017-04-26  8:17 ` [PATCH 01/15] ACPICA: Disassembler: Enhance resource descriptor detection Lv Zheng
2017-06-05 15:57   ` Linda Knippers
2017-06-05 18:21     ` Linda Knippers
2017-06-05 20:42       ` Rafael J. Wysocki
2017-06-05 20:51         ` Linda Knippers
2017-06-05 20:55           ` Rafael J. Wysocki
2017-06-09 20:29             ` Graeme Gregory
2017-06-13 13:42             ` Linda Knippers
2017-06-13 15:13               ` Rafael J. Wysocki
2017-06-13 20:22               ` Moore, Robert
2017-04-26  8:17 ` [PATCH 02/15] ACPICA: Update some function headers, no funtional change Lv Zheng
2017-04-26  8:17 ` [PATCH 03/15] ACPICA: Fix a module for excessive debug output Lv Zheng
2017-04-26  8:18 ` [PATCH 04/15] ACPICA: Fix several incorrect invocations of ACPICA return macro Lv Zheng
2017-04-26  8:18 ` [PATCH 05/15] ACPICA: Namespace: fix operand cache leak Lv Zheng
2017-04-26  8:18 ` [PATCH 06/15] ACPICA: Update for automatic repair code for objects returned by evaluate_object Lv Zheng
2017-04-26  8:18 ` [PATCH 07/15] ACPICA: debugger: fix memory leak on Pathname Lv Zheng
2017-04-26  8:18 ` [PATCH 08/15] ACPICA: Debugger: Add interpreter blocking mark for single-step mode Lv Zheng
2017-04-26  8:18 ` [PATCH 09/15] ACPICA: Cleanup AML opcode definitions, no functional change Lv Zheng
2017-04-26  8:18 ` Lv Zheng [this message]
2017-04-26  8:18 ` [PATCH 11/15] ACPICA: Disassembler: Do not unconditionally remove temporary names Lv Zheng
2017-04-26  8:19 ` [PATCH 12/15] ACPICA: iasl: add ASL conversion tool Lv Zheng
2017-04-26 19:45   ` kbuild test robot
2017-04-27  1:43     ` Zheng, Lv
2017-04-27 15:07       ` Rafael J. Wysocki
2017-04-26  8:19 ` [PATCH 13/15] ACPICA: Local cache support: Allow small cache objects Lv Zheng
2017-04-26  8:20 ` [PATCH 14/15] ACPICA: Fix build for FreeBSD kernel Lv Zheng
2017-04-26  8:20 ` [PATCH 15/15] ACPICA: Update version to 20170303 Lv Zheng
2017-04-28  0:53 ` [PATCH v2] ACPICA: iasl: add ASL conversion tool Lv Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63b0875a5374260513152f35d1d85fc32b4cdf25.1493194142.git.lv.zheng@intel.com \
    --to=lv.zheng@intel.com \
    --cc=david.e.box@intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rjw@rjwysocki.net \
    --cc=robert.moore@intel.com \
    --cc=zetalog@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.