lkml.org 
[lkml]   [2009]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fix interrupt remapping hang if interrupt remapping disable in BIOS
[Youquan Song - Mon, Sep 07, 2009 at 10:13:13AM -0400]
...
| static int disable_intremap;
| static __init int setup_nointremap(char *str)
| @@ -607,9 +608,14 @@ end:
| int __init intr_remapping_supported(void)
| {
| struct dmar_drhd_unit *drhd;
| -
| + struct acpi_table_dmar *dmar;
| +
| if (disable_intremap)
| return 0;
| +
| + dmar = (struct acpi_table_dmar *)dmar_tbl;
| + if (!(dmar->flags & 0x1))
| + return 0;
|
| for_each_drhd_unit(drhd) {
| struct intel_iommu *iommu = drhd->iommu;

Hi Youquan,

perhaps we could move this test to helper function
in dmar.c instead of plain external variable test?

-- Cyrill


\
 
 \ /
  Last update: 2009-09-07 17:03    [W:0.041 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site