Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179982
b: refs/heads/master
c: 73472a4
h: refs/heads/master
v: v3
  • Loading branch information
Pallipadi, Venkatesh authored and Ingo Molnar committed Jan 23, 2010
1 parent 857e6b0 commit 36706d0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a5fc0e40cb467e692737bc798bc99773c81e1e2
refs/heads/master: 73472a46b5b28116b145fb5fc05242c1aa8e1461
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/hpet.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ extern unsigned long hpet_address;
extern unsigned long force_hpet_address;
extern u8 hpet_blockid;
extern int hpet_force_user;
extern u8 hpet_msi_disable;
extern int is_hpet_enabled(void);
extern int hpet_enable(void);
extern void hpet_disable(void);
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
*/
unsigned long hpet_address;
u8 hpet_blockid; /* OS timer block num */
u8 hpet_msi_disable;

#ifdef CONFIG_PCI_MSI
static unsigned long hpet_num_timers;
#endif
Expand Down Expand Up @@ -596,6 +598,9 @@ static void hpet_msi_capability_lookup(unsigned int start_timer)
unsigned int num_timers_used = 0;
int i;

if (hpet_msi_disable)
return;

if (boot_cpu_has(X86_FEATURE_ARAT))
return;
id = hpet_readl(HPET_ID);
Expand Down Expand Up @@ -928,6 +933,9 @@ static __init int hpet_late_init(void)
hpet_reserve_platform_timers(hpet_readl(HPET_ID));
hpet_print_config();

if (hpet_msi_disable)
return 0;

if (boot_cpu_has(X86_FEATURE_ARAT))
return 0;

Expand Down
13 changes: 13 additions & 0 deletions trunk/arch/x86/kernel/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,19 @@ void force_hpet_resume(void)
break;
}
}

/*
* HPET MSI on some boards (ATI SB700/SB800) has side effect on
* floppy DMA. Disable HPET MSI on such platforms.
*/
static void force_disable_hpet_msi(struct pci_dev *unused)
{
hpet_msi_disable = 1;
}

DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS,
force_disable_hpet_msi);

#endif

#if defined(CONFIG_PCI) && defined(CONFIG_NUMA)
Expand Down

0 comments on commit 36706d0

Please sign in to comment.