From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yijing Wang Date: Mon, 15 Sep 2014 02:20:49 +0000 Subject: Re: [Patch Part3 V5 5/8] iommu/vt-d: Enhance intel_irq_remapping driver to support DMAR unit hotplug Message-Id: <54164D01.4060003@huawei.com> List-Id: References: <1410487848-6027-1-git-send-email-jiang.liu@linux.intel.com> <1410487848-6027-6-git-send-email-jiang.liu@linux.intel.com> In-Reply-To: <1410487848-6027-6-git-send-email-jiang.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jiang Liu , Joerg Roedel , David Woodhouse , Yinghai Lu , Bjorn Helgaas , Dan Williams , Vinod Koul , "Rafael J . Wysocki" Cc: Ashok Raj , Tony Luck , iommu@lists.linux-foundation.org, linux-pci@vger.kernel.org, linux-hotplug@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org > +static void ir_remove_ioapic_hpet_scope(struct intel_iommu *iommu) > +{ > + int i; > > - ir_parse_one_hpet_scope(scope, iommu); > - } > - start += scope->length; > - } > + for (i = 0; i < MAX_HPET_TBS; i++) > + if (ir_hpet[i].iommu = iommu) > + ir_hpet[i].iommu = NULL; Hi Gerry, why not reset whole ir_hpe and ir_ioapic data struct? > > - return 0; > + for (i = 0; i < MAX_IO_APICS; i++) > + if (ir_ioapic[i].iommu = iommu) > + ir_ioapic[i].iommu = NULL; > } >