Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755692AbcCTN6b (ORCPT ); Sun, 20 Mar 2016 09:58:31 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:32870 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755519AbcCTN6a (ORCPT ); Sun, 20 Mar 2016 09:58:30 -0400 From: Wei Yang To: joro@8bytes.org, jiang.liu@linux.intel.com, tglx@linutronix.de Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [Patch V2 0/4] Code refine for Intel IOMMU Date: Sun, 20 Mar 2016 13:57:27 +0000 Message-Id: <1458482251-7939-1-git-send-email-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 26 These four patches try to refine the Intel IOMMU. Patch 1/2 tries to make it more user friendly by add a zero-sized array in some dmar data structure. Patch 3 move the ckeck of Register Base Address ahead to avoid cleanup when it is NULL. Patch 4 re-use dmar_walk_dmar_table() to make the code easy to understand. V2: * add patch 3 and 4 Wei Yang (4): iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit iommu/vt-d: use zero-sized array in DMAR related ACPI structures iommu/vt-d: check Register Base Address at the beginning of dmar_parse_one_drhd() iommu/vt-d: refine dmar_acpi_dev_scope_init() with dmar_walk_dmar_table() drivers/iommu/dmar.c | 127 ++++++++++++++++++++++++------------------------- include/acpi/actbl2.h | 31 ++++++------ include/linux/dmar.h | 2 +- 3 files changed, 81 insertions(+), 79 deletions(-) -- 1.7.9.5