iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V4 0/4] Code refine for Intel IOMMU
@ 2016-04-14 14:55 Wei Yang
       [not found] ` <1460645710-22656-1-git-send-email-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Wei Yang @ 2016-04-14 14:55 UTC (permalink / raw)
  To: joro-zLv9SwRftAIdnm+yROfE0A, jiang.liu-VuQAYsv1563Yd54FQh9/CA,
	tglx-hfZtesqFncYOwBW4kG4KsQ
  Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Wei Yang

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.

V4:
  * add similar change for struct dmar_atsr_unit in patch 1
  * add similar change for rmrr and atsr in patch 2

V3:
  * change hdr to drhd from type acpi_dmar_header to acpi_dmar_hardware_unit 
  * add reason in changelog for the change in Patch 1

V2:
  * add patch 3 and 4

Wei Yang (4):
  iommu/vt-d: replace *hdr with {drhd/atsr}[0] in struct
    dmar_{drhd/atsr}_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                |  129 +++++++++++++++++------------------
 drivers/iommu/intel-iommu.c         |   26 +++----
 drivers/iommu/intel_irq_remapping.c |   10 ++-
 include/acpi/actbl2.h               |   33 +++++----
 include/linux/dmar.h                |    3 +-
 5 files changed, 102 insertions(+), 99 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-09 22:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 14:55 [PATCH V4 0/4] Code refine for Intel IOMMU Wei Yang
     [not found] ` <1460645710-22656-1-git-send-email-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-14 14:55   ` [PATCH V4 1/4] iommu/vt-d: replace *hdr with {drhd/atsr}[0] in struct dmar_{drhd/atsr}_unit Wei Yang
2016-04-14 14:55   ` [PATCH V4 2/4] iommu/vt-d: use zero-sized array in DMAR related ACPI structures Wei Yang
2016-04-14 14:55   ` [PATCH V4 3/4] iommu/vt-d: check Register Base Address at the beginning of dmar_parse_one_drhd() Wei Yang
2016-04-14 14:55   ` [PATCH V4 4/4] iommu/vt-d: refine dmar_acpi_dev_scope_init() with dmar_walk_dmar_table() Wei Yang
2016-05-08 13:22   ` [PATCH V4 0/4] Code refine for Intel IOMMU Wei Yang
     [not found]     ` <20160508132253.GA2708-yrDqe6+Pica9sAcnBtTtJQ@public.gmane.org>
2016-05-09 11:24       ` Joerg Roedel
     [not found]         ` <20160509112401.GC13275-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2016-05-09 22:20           ` Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).