Release 4.14 arch/ia64/sn/kernel/irq.c
/*
* Platform dependent support for SGI SN
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (c) 2000-2008 Silicon Graphics, Inc. All Rights Reserved.
*/
#include <linux/irq.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/rculist.h>
#include <linux/slab.h>
#include <asm/sn/addrs.h>
#include <asm/sn/arch.h>
#include <asm/sn/intr.h>
#include <asm/sn/pcibr_provider.h>
#include <asm/sn/pcibus_provider_defs.h>
#include <asm/sn/pcidev.h>
#include <asm/sn/shub_mmr.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/sn_feature_sets.h>
static void register_intr_pda(struct sn_irq_info *sn_irq_info);
static void unregister_intr_pda(struct sn_irq_info *sn_irq_info);
extern int sn_ioif_inited;
struct list_head **sn_irq_lh;
static DEFINE_SPINLOCK(sn_irq_info_lock); /* non-IRQ lock */
u64 sn_intr_alloc(nasid_t local_nasid, int local_widget,
struct sn_irq_info *sn_irq_info,
int req_irq, nasid_t req_nasid,
int req_slice)
{
struct ia64_sal_retval ret_stuff;
ret_stuff.status = 0;
ret_stuff.v0 = 0;
SAL_CALL_NOLOCK(ret_stuff, (u64) SN_SAL_IOIF_INTERRUPT,
(u64) SAL_INTR_ALLOC, (u64) local_nasid,
(u64) local_widget, __pa(sn_irq_info), (u64) req_irq,
(u64) req_nasid, (u64) req_slice);
return ret_stuff.status;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 76 | 83.52% | 1 | 25.00% |
David Mosberger-Tang | 8 | 8.79% | 1 | 25.00% |
Mark Maule | 6 | 6.59% | 1 | 25.00% |
Prarit Bhargava | 1 | 1.10% | 1 | 25.00% |
Total | 91 | 100.00% | 4 | 100.00% |
void sn_intr_free(nasid_t local_nasid, int local_widget,
struct sn_irq_info *sn_irq_info)
{
struct ia64_sal_retval ret_stuff;
ret_stuff.status = 0;
ret_stuff.v0 = 0;
SAL_CALL_NOLOCK(ret_stuff, (u64) SN_SAL_IOIF_INTERRUPT,
(u64) SAL_INTR_FREE, (u64) local_nasid,
(u64) local_widget, (u64) sn_irq_info->irq_irq,
(u64) sn_irq_info->irq_cookie, 0, 0);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 71 | 94.67% | 1 | 50.00% |
David Mosberger-Tang | 4 | 5.33% | 1 | 50.00% |
Total | 75 | 100.00% | 2 | 100.00% |
u64 sn_intr_redirect(nasid_t local_nasid, int local_widget,
struct sn_irq_info *sn_irq_info,
nasid_t req_nasid, int req_slice)
{
struct ia64_sal_retval ret_stuff;
ret_stuff.status = 0;
ret_stuff.v0 = 0;
SAL_CALL_NOLOCK(ret_stuff, (u64) SN_SAL_IOIF_INTERRUPT,
(u64) SAL_INTR_REDIRECT, (u64) local_nasid,
(u64) local_widget, __pa(sn_irq_info),
(u64) req_nasid, (u64) req_slice, 0);
return ret_stuff.status;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Keller | 85 | 100.00% | 1 | 100.00% |
Total | 85 | 100.00% | 1 | 100.00% |
static unsigned int sn_startup_irq(struct irq_data *data)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 6 | 40.00% | 1 | 33.33% |
David Mosberger-Tang | 5 | 33.33% | 1 | 33.33% |
Thomas Gleixner | 4 | 26.67% | 1 | 33.33% |
Total | 15 | 100.00% | 3 | 100.00% |
static void sn_shutdown_irq(struct irq_data *data)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 6 | 60.00% | 2 | 66.67% |
Thomas Gleixner | 4 | 40.00% | 1 | 33.33% |
Total | 10 | 100.00% | 3 | 100.00% |
extern void ia64_mca_register_cpev(int);
static void sn_disable_irq(struct irq_data *data)
{
if (data->irq == local_vector_to_irq(IA64_CPE_VECTOR))
ia64_mca_register_cpev(0);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Russ Anderson | 16 | 59.26% | 1 | 33.33% |
Thomas Gleixner | 6 | 22.22% | 1 | 33.33% |
Patrick Gefre | 5 | 18.52% | 1 | 33.33% |
Total | 27 | 100.00% | 3 | 100.00% |
static void sn_enable_irq(struct irq_data *data)
{
if (data->irq == local_vector_to_irq(IA64_CPE_VECTOR))
ia64_mca_register_cpev(data->irq);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Russ Anderson | 16 | 55.17% | 1 | 25.00% |
Thomas Gleixner | 8 | 27.59% | 1 | 25.00% |
Patrick Gefre | 3 | 10.34% | 1 | 25.00% |
David Mosberger-Tang | 2 | 6.90% | 1 | 25.00% |
Total | 29 | 100.00% | 4 | 100.00% |
static void sn_ack_irq(struct irq_data *data)
{
u64 event_occurred, mask;
unsigned int irq = data->irq & 0xff;
event_occurred = HUB_L((u64*)LOCAL_MMR_ADDR(SH_EVENT_OCCURRED));
mask = event_occurred & SH_ALL_INT_MASK;
HUB_S((u64*)LOCAL_MMR_ADDR(SH_EVENT_OCCURRED_ALIAS), mask);
__set_bit(irq, (volatile void *)pda->sn_in_service_ivecs);
irq_move_irq(data);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Mosberger-Tang | 40 | 50.63% | 1 | 11.11% |
Jesse Barnes | 15 | 18.99% | 2 | 22.22% |
Thomas Gleixner | 12 | 15.19% | 2 | 22.22% |
Jack Steiner | 5 | 6.33% | 1 | 11.11% |
Patrick Gefre | 5 | 6.33% | 2 | 22.22% |
Colin Ngam | 2 | 2.53% | 1 | 11.11% |
Total | 79 | 100.00% | 9 | 100.00% |
struct sn_irq_info *sn_retarget_vector(struct sn_irq_info *sn_irq_info,
nasid_t nasid, int slice)
{
int vector;
int cpuid;
#ifdef CONFIG_SMP
int cpuphys;
#endif
int64_t bridge;
int local_widget, status;
nasid_t local_nasid;
struct sn_irq_info *new_irq_info;
struct sn_pcibus_provider *pci_provider;
bridge = (u64) sn_irq_info->irq_bridge;
if (!bridge) {
return NULL; /* irq is not a device interrupt */
}
local_nasid = NASID_GET(bridge);
if (local_nasid & 1)
local_widget = TIO_SWIN_WIDGETNUM(bridge);
else
local_widget = SWIN_WIDGETNUM(bridge);
vector = sn_irq_info->irq_irq;
/* Make use of SAL_INTR_REDIRECT if PROM supports it */
status = sn_intr_redirect(local_nasid, local_widget, sn_irq_info, nasid, slice);
if (!status) {
new_irq_info = sn_irq_info;
goto finish_up;
}
/*
* PROM does not support SAL_INTR_REDIRECT, or it failed.
* Revert to old method.
*/
new_irq_info = kmemdup(sn_irq_info, sizeof(struct sn_irq_info),
GFP_ATOMIC);
if (new_irq_info == NULL)
return NULL;
/* Free the old PROM new_irq_info structure */
sn_intr_free(local_nasid, local_widget, new_irq_info);
unregister_intr_pda(new_irq_info);
/* allocate a new PROM new_irq_info struct */
status = sn_intr_alloc(local_nasid, local_widget,
new_irq_info, vector,
nasid, slice);
/* SAL call failed */
if (status) {
kfree(new_irq_info);
return NULL;
}
register_intr_pda(new_irq_info);
spin_lock(&sn_irq_info_lock);
list_replace_rcu(&sn_irq_info->list, &new_irq_info->list);
spin_unlock(&sn_irq_info_lock);
kfree_rcu(sn_irq_info, rcu);
finish_up:
/* Update kernels new_irq_info with new target info */
cpuid = nasid_slice_to_cpuid(new_irq_info->irq_nasid,
new_irq_info->irq_slice);
new_irq_info->irq_cpuid = cpuid;
pci_provider = sn_pci_provider[new_irq_info->irq_bridge_type];
/*
* If this represents a line interrupt, target it. If it's
* an msi (irq_int_bit < 0), it's already targeted.
*/
if (new_irq_info->irq_int_bit >= 0 &&
pci_provider && pci_provider->target_interrupt)
(pci_provider->target_interrupt)(new_irq_info);
#ifdef CONFIG_SMP
cpuphys = cpu_physical_id(cpuid);
set_irq_affinity_info((vector & 0xff), cpuphys, 0);
#endif
return new_irq_info;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Keller | 114 | 34.55% | 2 | 13.33% |
Patrick Gefre | 78 | 23.64% | 3 | 20.00% |
Mark Maule | 70 | 21.21% | 2 | 13.33% |
Prarit Bhargava | 43 | 13.03% | 2 | 13.33% |
Andrew Morton | 15 | 4.55% | 3 | 20.00% |
Tony Luck | 5 | 1.52% | 1 | 6.67% |
Thomas Meyer | 3 | 0.91% | 1 | 6.67% |
Lai Jiangshan | 2 | 0.61% | 1 | 6.67% |
Total | 330 | 100.00% | 15 | 100.00% |
static int sn_set_affinity_irq(struct irq_data *data,
const struct cpumask *mask, bool force)
{
struct sn_irq_info *sn_irq_info, *sn_irq_info_safe;
unsigned int irq = data->irq;
nasid_t nasid;
int slice;
nasid = cpuid_to_nasid(cpumask_first_and(mask, cpu_online_mask));
slice = cpuid_to_slice(cpumask_first_and(mask, cpu_online_mask));
list_for_each_entry_safe(sn_irq_info, sn_irq_info_safe,
sn_irq_lh[irq], list)
(void)sn_retarget_vector(sn_irq_info, nasid, slice);
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Maule | 61 | 67.03% | 1 | 16.67% |
Thomas Gleixner | 21 | 23.08% | 2 | 33.33% |
Rusty Russell | 4 | 4.40% | 1 | 16.67% |
Yinghai Lu | 4 | 4.40% | 1 | 16.67% |
Patrick Gefre | 1 | 1.10% | 1 | 16.67% |
Total | 91 | 100.00% | 6 | 100.00% |
#ifdef CONFIG_SMP
void sn_set_err_irq_affinity(unsigned int irq)
{
/*
* On systems which support CPU disabling (SHub2), all error interrupts
* are targeted at the boot CPU.
*/
if (is_shub2() && sn_prom_feature_available(PRF_CPU_DISABLE_SUPPORT))
set_irq_affinity_info(irq, cpu_physical_id(0), 0);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Keller | 31 | 96.88% | 1 | 50.00% |
Lucas De Marchi | 1 | 3.12% | 1 | 50.00% |
Total | 32 | 100.00% | 2 | 100.00% |
#else
void sn_set_err_irq_affinity(unsigned int irq) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Keller | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.00% |
#endif
static void
sn_mask_irq(struct irq_data *data)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 6 | 60.00% | 1 | 50.00% |
Thomas Gleixner | 4 | 40.00% | 1 | 50.00% |
Total | 10 | 100.00% | 2 | 100.00% |
static void
sn_unmask_irq(struct irq_data *data)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 6 | 60.00% | 1 | 50.00% |
Thomas Gleixner | 4 | 40.00% | 1 | 50.00% |
Total | 10 | 100.00% | 2 | 100.00% |
struct irq_chip irq_type_sn = {
.name = "SN hub",
.irq_startup = sn_startup_irq,
.irq_shutdown = sn_shutdown_irq,
.irq_enable = sn_enable_irq,
.irq_disable = sn_disable_irq,
.irq_ack = sn_ack_irq,
.irq_mask = sn_mask_irq,
.irq_unmask = sn_unmask_irq,
.irq_set_affinity = sn_set_affinity_irq
};
ia64_vector sn_irq_to_vector(int irq)
{
if (irq >= IA64_NUM_VECTORS)
return 0;
return (ia64_vector)irq;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kenji Kaneshige | 23 | 100.00% | 1 | 100.00% |
Total | 23 | 100.00% | 1 | 100.00% |
unsigned int sn_local_vector_to_irq(u8 vector)
{
return (CPU_VECTOR_TO_IRQ(smp_processor_id(), vector));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 16 | 80.00% | 1 | 50.00% |
David Mosberger-Tang | 4 | 20.00% | 1 | 50.00% |
Total | 20 | 100.00% | 2 | 100.00% |
void sn_irq_init(void)
{
int i;
ia64_first_device_vector = IA64_SN2_FIRST_DEVICE_VECTOR;
ia64_last_device_vector = IA64_SN2_LAST_DEVICE_VECTOR;
for (i = 0; i < NR_IRQS; i++) {
if (irq_get_chip(i) == &no_irq_chip)
irq_set_chip(i, &irq_type_sn);
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Mosberger-Tang | 30 | 58.82% | 1 | 12.50% |
Thomas Gleixner | 8 | 15.69% | 2 | 25.00% |
Mark Maule | 8 | 15.69% | 1 | 12.50% |
Jesse Barnes | 3 | 5.88% | 2 | 25.00% |
Patrick Gefre | 1 | 1.96% | 1 | 12.50% |
Andrew Morton | 1 | 1.96% | 1 | 12.50% |
Total | 51 | 100.00% | 8 | 100.00% |
static void register_intr_pda(struct sn_irq_info *sn_irq_info)
{
int irq = sn_irq_info->irq_irq;
int cpu = sn_irq_info->irq_cpuid;
if (pdacpu(cpu)->sn_last_irq < irq) {
pdacpu(cpu)->sn_last_irq = irq;
}
if (pdacpu(cpu)->sn_first_irq == 0 || pdacpu(cpu)->sn_first_irq > irq)
pdacpu(cpu)->sn_first_irq = irq;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 48 | 63.16% | 1 | 25.00% |
Patrick Gefre | 13 | 17.11% | 1 | 25.00% |
Andrew Morton | 12 | 15.79% | 1 | 25.00% |
David Mosberger-Tang | 3 | 3.95% | 1 | 25.00% |
Total | 76 | 100.00% | 4 | 100.00% |
static void unregister_intr_pda(struct sn_irq_info *sn_irq_info)
{
int irq = sn_irq_info->irq_irq;
int cpu = sn_irq_info->irq_cpuid;
struct sn_irq_info *tmp_irq_info;
int i, foundmatch;
rcu_read_lock();
if (pdacpu(cpu)->sn_last_irq == irq) {
foundmatch = 0;
for (i = pdacpu(cpu)->sn_last_irq - 1;
i && !foundmatch; i--) {
list_for_each_entry_rcu(tmp_irq_info,
sn_irq_lh[i],
list) {
if (tmp_irq_info->irq_cpuid == cpu) {
foundmatch = 1;
break;
}
}
}
pdacpu(cpu)->sn_last_irq = i;
}
if (pdacpu(cpu)->sn_first_irq == irq) {
foundmatch = 0;
for (i = pdacpu(cpu)->sn_first_irq + 1;
i < NR_IRQS && !foundmatch; i++) {
list_for_each_entry_rcu(tmp_irq_info,
sn_irq_lh[i],
list) {
if (tmp_irq_info->irq_cpuid == cpu) {
foundmatch = 1;
break;
}
}
}
pdacpu(cpu)->sn_first_irq = ((i == NR_IRQS) ? 0 : i);
}
rcu_read_unlock();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 168 | 83.58% | 2 | 50.00% |
Prarit Bhargava | 32 | 15.92% | 1 | 25.00% |
Jesse Barnes | 1 | 0.50% | 1 | 25.00% |
Total | 201 | 100.00% | 4 | 100.00% |
void sn_irq_fixup(struct pci_dev *pci_dev, struct sn_irq_info *sn_irq_info)
{
nasid_t nasid = sn_irq_info->irq_nasid;
int slice = sn_irq_info->irq_slice;
int cpu = nasid_slice_to_cpuid(nasid, slice);
#ifdef CONFIG_SMP
int cpuphys;
#endif
pci_dev_get(pci_dev);
sn_irq_info->irq_cpuid = cpu;
sn_irq_info->irq_pciioinfo = SN_PCIDEV_INFO(pci_dev);
/* link it into the sn_irq[irq] list */
spin_lock(&sn_irq_info_lock);
list_add_rcu(&sn_irq_info->list, sn_irq_lh[sn_irq_info->irq_irq]);
reserve_irq_vector(sn_irq_info->irq_irq);
if (sn_irq_info->irq_int_bit != -1)
irq_set_handler(sn_irq_info->irq_irq, handle_level_irq);
spin_unlock(&sn_irq_info_lock);
register_intr_pda(sn_irq_info);
#ifdef CONFIG_SMP
cpuphys = cpu_physical_id(cpu);
set_irq_affinity_info(sn_irq_info->irq_irq, cpuphys, 0);
/*
* Affinity was set by the PROM, prevent it from
* being reset by the request_irq() path.
*/
irqd_mark_affinity_was_set(irq_get_irq_data(sn_irq_info->irq_irq));
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 60 | 37.74% | 1 | 12.50% |
John Keller | 37 | 23.27% | 2 | 25.00% |
Prarit Bhargava | 23 | 14.47% | 1 | 12.50% |
Dimitri Sivanich | 18 | 11.32% | 1 | 12.50% |
Jesse Barnes | 9 | 5.66% | 1 | 12.50% |
Mark Maule | 7 | 4.40% | 1 | 12.50% |
Thomas Gleixner | 5 | 3.14% | 1 | 12.50% |
Total | 159 | 100.00% | 8 | 100.00% |
void sn_irq_unfixup(struct pci_dev *pci_dev)
{
struct sn_irq_info *sn_irq_info;
/* Only cleanup IRQ stuff if this device has a host bus context */
if (!SN_PCIDEV_BUSSOFT(pci_dev))
return;
sn_irq_info = SN_PCIDEV_INFO(pci_dev)->pdi_sn_irq_info;
if (!sn_irq_info)
return;
if (!sn_irq_info->irq_irq) {
kfree(sn_irq_info);
return;
}
unregister_intr_pda(sn_irq_info);
spin_lock(&sn_irq_info_lock);
list_del_rcu(&sn_irq_info->list);
spin_unlock(&sn_irq_info_lock);
if (list_empty(sn_irq_lh[sn_irq_info->irq_irq]))
free_irq_vector(sn_irq_info->irq_irq);
kfree_rcu(sn_irq_info, rcu);
pci_dev_put(pci_dev);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Prarit Bhargava | 90 | 81.08% | 3 | 60.00% |
Mark Maule | 19 | 17.12% | 1 | 20.00% |
Lai Jiangshan | 2 | 1.80% | 1 | 20.00% |
Total | 111 | 100.00% | 5 | 100.00% |
static inline void
sn_call_force_intr_provider(struct sn_irq_info *sn_irq_info)
{
struct sn_pcibus_provider *pci_provider;
pci_provider = sn_pci_provider[sn_irq_info->irq_bridge_type];
/* Don't force an interrupt if the irq has been disabled */
if (!irqd_irq_disabled(irq_get_irq_data(sn_irq_info->irq_irq)) &&
pci_provider && pci_provider->force_interrupt)
(*pci_provider->force_interrupt)(sn_irq_info);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Mark Maule | 44 | 78.57% | 1 | 25.00% |
Mike Habeck | 6 | 10.71% | 1 | 25.00% |
Tony Luck | 3 | 5.36% | 1 | 25.00% |
Thomas Gleixner | 3 | 5.36% | 1 | 25.00% |
Total | 56 | 100.00% | 4 | 100.00% |
/*
* Check for lost interrupts. If the PIC int_status reg. says that
* an interrupt has been sent, but not handled, and the interrupt
* is not pending in either the cpu irr regs or in the soft irr regs,
* and the interrupt is not in service, then the interrupt may have
* been lost. Force an interrupt on that pin. It is possible that
* the interrupt is in flight, so we may generate a spurious interrupt,
* but we should never miss a real lost interrupt.
*/
static void sn_check_intr(int irq, struct sn_irq_info *sn_irq_info)
{
u64 regval;
struct pcidev_info *pcidev_info;
struct pcibus_info *pcibus_info;
/*
* Bridge types attached to TIO (anything but PIC) do not need this WAR
* since they do not target Shub II interrupt registers. If that
* ever changes, this check needs to accommodate.
*/
if (sn_irq_info->irq_bridge_type != PCIIO_ASIC_TYPE_PIC)
return;
pcidev_info = (struct pcidev_info *)sn_irq_info->irq_pciioinfo;
if (!pcidev_info)
return;
pcibus_info =
(struct pcibus_info *)pcidev_info->pdi_host_pcidev_info->
pdi_pcibus_info;
regval = pcireg_intr_status_get(pcibus_info);
if (!ia64_get_irr(irq_to_vector(irq))) {
if (!test_bit(irq, pda->sn_in_service_ivecs)) {
regval &= 0xff;
if (sn_irq_info->irq_int_bit & regval &
sn_irq_info->irq_last_intr) {
regval &= ~(sn_irq_info->irq_int_bit & regval);
sn_call_force_intr_provider(sn_irq_info);
}
}
}
sn_irq_info->irq_last_intr = regval;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 68 | 48.23% | 1 | 14.29% |
Patrick Gefre | 54 | 38.30% | 1 | 14.29% |
Mark Maule | 10 | 7.09% | 1 | 14.29% |
Björn Helgaas | 4 | 2.84% | 1 | 14.29% |
Andrew Morton | 3 | 2.13% | 1 | 14.29% |
Prarit Bhargava | 1 | 0.71% | 1 | 14.29% |
Lucas De Marchi | 1 | 0.71% | 1 | 14.29% |
Total | 141 | 100.00% | 7 | 100.00% |
void sn_lb_int_war_check(void)
{
struct sn_irq_info *sn_irq_info;
int i;
if (!sn_ioif_inited || pda->sn_first_irq == 0)
return;
rcu_read_lock();
for (i = pda->sn_first_irq; i <= pda->sn_last_irq; i++) {
list_for_each_entry_rcu(sn_irq_info, sn_irq_lh[i], list) {
sn_check_intr(i, sn_irq_info);
}
}
rcu_read_unlock();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jesse Barnes | 31 | 44.93% | 1 | 25.00% |
Prarit Bhargava | 19 | 27.54% | 1 | 25.00% |
David Mosberger-Tang | 13 | 18.84% | 1 | 25.00% |
Patrick Gefre | 6 | 8.70% | 1 | 25.00% |
Total | 69 | 100.00% | 4 | 100.00% |
void __init sn_irq_lh_init(void)
{
int i;
sn_irq_lh = kmalloc(sizeof(struct list_head *) * NR_IRQS, GFP_KERNEL);
if (!sn_irq_lh)
panic("SN PCI INIT: Failed to allocate memory for PCI init\n");
for (i = 0; i < NR_IRQS; i++) {
sn_irq_lh[i] = kmalloc(sizeof(struct list_head), GFP_KERNEL);
if (!sn_irq_lh[i])
panic("SN PCI INIT: Failed IRQ memory allocation\n");
INIT_LIST_HEAD(sn_irq_lh[i]);
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Prarit Bhargava | 86 | 96.63% | 1 | 33.33% |
Jesse Barnes | 2 | 2.25% | 1 | 33.33% |
Jes Sorensen | 1 | 1.12% | 1 | 33.33% |
Total | 89 | 100.00% | 3 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick Gefre | 576 | 28.32% | 6 | 11.11% |
Prarit Bhargava | 322 | 15.83% | 5 | 9.26% |
John Keller | 286 | 14.06% | 4 | 7.41% |
Mark Maule | 225 | 11.06% | 4 | 7.41% |
Jesse Barnes | 213 | 10.47% | 2 | 3.70% |
David Mosberger-Tang | 131 | 6.44% | 1 | 1.85% |
Thomas Gleixner | 87 | 4.28% | 7 | 12.96% |
Russ Anderson | 39 | 1.92% | 1 | 1.85% |
Andrew Morton | 34 | 1.67% | 4 | 7.41% |
Kenji Kaneshige | 23 | 1.13% | 1 | 1.85% |
Kamezawa Hiroyuki | 21 | 1.03% | 1 | 1.85% |
Dimitri Sivanich | 18 | 0.88% | 1 | 1.85% |
Tony Luck | 8 | 0.39% | 2 | 3.70% |
Jes Sorensen | 6 | 0.29% | 2 | 3.70% |
Mike Habeck | 6 | 0.29% | 1 | 1.85% |
Ingo Molnar | 5 | 0.25% | 2 | 3.70% |
Jack Steiner | 5 | 0.25% | 1 | 1.85% |
Rusty Russell | 4 | 0.20% | 1 | 1.85% |
Yinghai Lu | 4 | 0.20% | 1 | 1.85% |
Lai Jiangshan | 4 | 0.20% | 1 | 1.85% |
Björn Helgaas | 4 | 0.20% | 1 | 1.85% |
Tejun Heo | 3 | 0.15% | 1 | 1.85% |
Franck Bui-Huu | 3 | 0.15% | 1 | 1.85% |
Thomas Meyer | 3 | 0.15% | 1 | 1.85% |
Colin Ngam | 2 | 0.10% | 1 | 1.85% |
Lucas De Marchi | 2 | 0.10% | 1 | 1.85% |
Total | 2034 | 100.00% | 54 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.