Skip to content

Commit f6f7b52

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: [WATCHDOG] hpwdt: Fix kdump when using hpwdt [WATCHDOG] hpwdt: set the mapped BIOS address space as executable [WATCHDOG] iTCO_wdt: add PCI ID's for ICH9 & ICH10 chipsets [WATCHDOG] iTCO_wdt : correct status clearing [WATCHDOG] iTCO_wdt : problem with rebooting on new ICH9 based motherboards [WATCHDOG] fix mtx1_wdt compilation failure
2 parents 51eaaa6 + 290172e commit f6f7b52

4 files changed

Lines changed: 116 additions & 88 deletions

File tree

‎drivers/watchdog/hpwdt.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <linux/bootmem.h>
4141
#include <linux/slab.h>
4242
#include <asm/desc.h>
43+
#include <asm/cacheflush.h>
4344

4445
#define PCI_BIOS32_SD_VALUE 0x5F32335F /* "_32_" */
4546
#define CRU_BIOS_SIGNATURE_VALUE 0x55524324
@@ -394,6 +395,8 @@ static void __devinit dmi_find_cru(const struct dmi_header *dm)
394395
smbios_cru64_ptr->double_offset;
395396
cru_rom_addr = ioremap(cru_physical_address,
396397
smbios_cru64_ptr->double_length);
398+
set_memory_x((unsigned long)cru_rom_addr & PAGE_MASK,
399+
smbios_cru64_ptr->double_length >> PAGE_SHIFT);
397400
}
398401
}
399402
}
@@ -482,7 +485,7 @@ static int hpwdt_pretimeout(struct notifier_block *nb, unsigned long ulReason,
482485
"Management Log for details.\n");
483486
}
484487

485-
return NOTIFY_STOP;
488+
return NOTIFY_OK;
486489
}
487490

488491
/*

‎drivers/watchdog/iTCO_vendor_support.c‎

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* intel TCO vendor specific watchdog driver support
33
*
4-
* (c) Copyright 2006 Wim Van Sebroeck <wim@iguana.be>.
4+
* (c) Copyright 2006-2008 Wim Van Sebroeck <wim@iguana.be>.
55
*
66
* This program is free software; you can redistribute it and/or
77
* modify it under the terms of the GNU General Public License
@@ -19,8 +19,7 @@
1919

2020
/* Module and version information */
2121
#define DRV_NAME "iTCO_vendor_support"
22-
#define DRV_VERSION "1.01"
23-
#define DRV_RELDATE "11-Nov-2006"
22+
#define DRV_VERSION "1.02"
2423
#define PFX DRV_NAME ": "
2524

2625
/* Includes */
@@ -78,24 +77,6 @@ MODULE_PARM_DESC(vendorsupport, "iTCO vendor specific support mode, default=0 (n
7877
* 20.6 seconds.
7978
*/
8079

81-
static void supermicro_old_pre_start(unsigned long acpibase)
82-
{
83-
unsigned long val32;
84-
85-
val32 = inl(SMI_EN);
86-
val32 &= 0xffffdfff; /* Turn off SMI clearing watchdog */
87-
outl(val32, SMI_EN); /* Needed to activate watchdog */
88-
}
89-
90-
static void supermicro_old_pre_stop(unsigned long acpibase)
91-
{
92-
unsigned long val32;
93-
94-
val32 = inl(SMI_EN);
95-
val32 &= 0x00002000; /* Turn on SMI clearing watchdog */
96-
outl(val32, SMI_EN); /* Needed to deactivate watchdog */
97-
}
98-
9980
static void supermicro_old_pre_keepalive(unsigned long acpibase)
10081
{
10182
/* Reload TCO Timer (done in iTCO_wdt_keepalive) + */
@@ -247,18 +228,14 @@ static void supermicro_new_pre_set_heartbeat(unsigned int heartbeat)
247228
void iTCO_vendor_pre_start(unsigned long acpibase,
248229
unsigned int heartbeat)
249230
{
250-
if (vendorsupport == SUPERMICRO_OLD_BOARD)
251-
supermicro_old_pre_start(acpibase);
252-
else if (vendorsupport == SUPERMICRO_NEW_BOARD)
231+
if (vendorsupport == SUPERMICRO_NEW_BOARD)
253232
supermicro_new_pre_start(heartbeat);
254233
}
255234
EXPORT_SYMBOL(iTCO_vendor_pre_start);
256235

257236
void iTCO_vendor_pre_stop(unsigned long acpibase)
258237
{
259-
if (vendorsupport == SUPERMICRO_OLD_BOARD)
260-
supermicro_old_pre_stop(acpibase);
261-
else if (vendorsupport == SUPERMICRO_NEW_BOARD)
238+
if (vendorsupport == SUPERMICRO_NEW_BOARD)
262239
supermicro_new_pre_stop();
263240
}
264241
EXPORT_SYMBOL(iTCO_vendor_pre_stop);

0 commit comments

Comments
 (0)