Commit a2b663f6 authored by Muli Ben-Yehuda's avatar Muli Ben-Yehuda Committed by Linus Torvalds

x86_64: generalize calgary_increase_split_completion_timeout

... will be used by CalIOC2 later
Signed-off-by: default avatarMuli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9596017e
...@@ -775,8 +775,8 @@ static void calgary_watchdog(unsigned long data) ...@@ -775,8 +775,8 @@ static void calgary_watchdog(unsigned long data)
} }
} }
static void __init calgary_increase_split_completion_timeout(void __iomem *bbar, static void __init calgary_set_split_completion_timeout(void __iomem *bbar,
unsigned char busnum) unsigned char busnum, unsigned long timeout)
{ {
u64 val64; u64 val64;
void __iomem *target; void __iomem *target;
...@@ -802,7 +802,7 @@ static void __init calgary_increase_split_completion_timeout(void __iomem *bbar, ...@@ -802,7 +802,7 @@ static void __init calgary_increase_split_completion_timeout(void __iomem *bbar,
/* zero out this PHB's timer bits */ /* zero out this PHB's timer bits */
mask = ~(0xFUL << phb_shift); mask = ~(0xFUL << phb_shift);
val64 &= mask; val64 &= mask;
val64 |= (CCR_2SEC_TIMEOUT << phb_shift); val64 |= (timeout << phb_shift);
writeq(cpu_to_be64(val64), target); writeq(cpu_to_be64(val64), target);
readq(target); /* flush */ readq(target); /* flush */
} }
...@@ -836,7 +836,8 @@ static void __init calgary_enable_translation(struct pci_dev *dev) ...@@ -836,7 +836,8 @@ static void __init calgary_enable_translation(struct pci_dev *dev)
* http://bugzilla.kernel.org/show_bug.cgi?id=7180 * http://bugzilla.kernel.org/show_bug.cgi?id=7180
*/ */
if (busnum == 1) if (busnum == 1)
calgary_increase_split_completion_timeout(bbar, busnum); calgary_set_split_completion_timeout(bbar, busnum,
CCR_2SEC_TIMEOUT);
init_timer(&tbl->watchdog_timer); init_timer(&tbl->watchdog_timer);
tbl->watchdog_timer.function = &calgary_watchdog; tbl->watchdog_timer.function = &calgary_watchdog;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment