Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175467
b: refs/heads/master
c: 8638c49
h: refs/heads/master
i:
  175465: c184559
  175463: 53e53b8
v: v3
  • Loading branch information
Joerg Roedel committed Dec 10, 2009
1 parent 570b257 commit fe77a88
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7cc9554bc73641c9ed4d7eb74b2d6e78f20abea
refs/heads/master: 8638c4914f34fedc1c13b1cc13f6d1e5a78c46b4
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/amd_iommu_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern void amd_iommu_apply_erratum_63(u16 devid);
extern void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu);
extern int amd_iommu_init_devices(void);
extern void amd_iommu_uninit_devices(void);
extern void amd_iommu_init_notifier(void);
#ifndef CONFIG_AMD_IOMMU_STATS

static inline void amd_iommu_stats_init(void) { }
Expand Down
7 changes: 5 additions & 2 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,11 @@ static struct notifier_block device_nb = {
.notifier_call = device_change_notifier,
};

void amd_iommu_init_notifier(void)
{
bus_register_notifier(&pci_bus_type, &device_nb);
}

/*****************************************************************************
*
* The next functions belong to the dma_ops mapping/unmapping code.
Expand Down Expand Up @@ -2250,8 +2255,6 @@ int __init amd_iommu_init_dma_ops(void)

register_iommu(&amd_iommu_ops);

bus_register_notifier(&pci_bus_type, &device_nb);

amd_iommu_stats_init();

return 0;
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,8 @@ static int __init amd_iommu_init(void)
if (ret)
goto free;

amd_iommu_init_notifier();

enable_iommus();

if (iommu_pass_through)
Expand Down

0 comments on commit fe77a88

Please sign in to comment.