Release 4.7 drivers/usb/host/ehci-dbg.c
/*
* Copyright (c) 2001-2002 by David Brownell
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
*/
/* this file is part of ehci-hcd.c */
#ifdef CONFIG_DYNAMIC_DEBUG
/*
* check the values in the HCSPARAMS register
* (host controller _Structural_ parameters)
* see EHCI spec, Table 2-4 for each value
*/
static void dbg_hcs_params(struct ehci_hcd *ehci, char *label)
{
u32 params = ehci_readl(ehci, &ehci->caps->hcs_params);
ehci_dbg(ehci,
"%s hcs_params 0x%x dbg=%d%s cc=%d pcc=%d%s%s ports=%d\n",
label, params,
HCS_DEBUG_PORT(params),
HCS_INDICATOR(params) ? " ind" : "",
HCS_N_CC(params),
HCS_N_PCC(params),
HCS_PORTROUTED(params) ? "" : " ordered",
HCS_PPC(params) ? "" : " !ppc",
HCS_N_PORTS(params));
/* Port routing, per EHCI 0.95 Spec, Section 2.2.5 */
if (HCS_PORTROUTED(params)) {
int i;
char buf[46], tmp[7], byte;
buf[0] = 0;
for (i = 0; i < HCS_N_PORTS(params); i++) {
/* FIXME MIPS won't readb() ... */
byte = readb(&ehci->caps->portroute[(i >> 1)]);
sprintf(tmp, "%d ",
(i & 0x1) ? byte & 0xf : (byte >> 4) & 0xf);
strcat(buf, tmp);
}
ehci_dbg(ehci, "%s portroute %s\n", label, buf);
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
linus torvalds | linus torvalds | 190 | 94.06% | 1 | 20.00% |
david brownell | david brownell | 8 | 3.96% | 2 | 40.00% |
benjamin herrenschmidt | benjamin herrenschmidt | 3 | 1.49% | 1 | 20.00% |
geyslan g. bem | geyslan g. bem | 1 | 0.50% | 1 | 20.00% |
| Total | 202 | 100.00% | 5 | 100.00% |
/*
* check the values in the HCCPARAMS register
* (host controller _Capability_ parameters)
* see EHCI Spec, Table 2-5 for each value
*/
static void dbg_hcc_params(struct ehci_hcd *ehci, char *label)
{
u32 params = ehci_readl(ehci, &ehci->caps->hcc_params);
if (HCC_ISOC_CACHE(params)) {
ehci_dbg(ehci,
"%s hcc_params %04x caching frame %s%s%s\n",
label, params,
HCC_PGM_FRAMELISTLEN(params) ? "256/512/1024" : "1024",
HCC_CANPARK(params) ? " park" : "",
HCC_64BIT_ADDR(params) ? " 64 bit addr" : "");
} else {
ehci_dbg(ehci,
"%s hcc_params %04x thresh %d uframes %s%s%s%s%s%s%s\n",
label,
params,
HCC_ISOC_THRES(params),
HCC_PGM_FRAMELISTLEN(params) ? "256/512/1024" : "1024",
HCC_CANPARK(params) ? " park" : "",
HCC_64BIT_ADDR(params) ? " 64 bit addr" : "",
HCC_LPM(params) ? " LPM" : "",
HCC_PER_PORT_CHANGE_EVENT(params) ? " ppce" : "",
HCC_HW_PREFETCH(params) ? " hw prefetch" : "",
HCC_32FRAME_PERIODIC_LIST(params) ?
" 32 periodic list" : "");
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
linus torvalds | linus torvalds | 112 | 70.44% | 1 | 20.00% |
alek du | alek du | 36 | 22.64% | 1 | 20.00% |
david brownell | david brownell | 7 | 4.40% | 1 | 20.00% |
benjamin herrenschmidt | benjamin herrenschmidt | 3 | 1.89% | 1 | 20.00% |
masanari iida | masanari iida | 1 | 0.63% | 1 | 20.00% |
| Total | 159 | 100.00% | 5 | 100.00% |
static void __maybe_unused
dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd)
{
ehci_dbg(ehci, "%s td %p n%08x %08x t%08x p0=%08x\n", label, qtd,
hc32_to_cpup(ehci, &qtd->hw_next),
hc32_to_cpup(ehci, &qtd->hw_alt_next),
hc32_to_cpup(ehci, &qtd->hw_token),
hc32_to_cpup(ehci, &qtd->hw_buf[0]));
if (qtd->hw_buf[1])
ehci_dbg(ehci, " p1=%08x p2=%08x p3=%08x p4=%08x\n",
hc32_to_cpup(ehci, &qtd->hw_buf[1]),
hc32_to_cpup(ehci, &qtd->hw_buf[2]),
hc32_to_cpup(ehci, &qtd->hw_buf[3]),
hc32_to_cpup(ehci, &qtd->hw_buf[4]));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 109 | 75.69% | 4 | 57.14% |
stefan roese | stefan roese | 24 | 16.67% | 1 | 14.29% |
david rientjes | david rientjes | 10 | 6.94% | 1 | 14.29% |
linus torvalds | linus torvalds | 1 | 0.69% | 1 | 14.29% |
| Total | 144 | 100.00% | 7 | 100.00% |
static void __maybe_unused
dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh)
{
struct ehci_qh_hw *hw = qh->hw;
ehci_dbg(ehci, "%s qh %p n%08x info %x %x qtd %x\n", label,
qh, hw->hw_next, hw->hw_info1, hw->hw_info2, hw->hw_current);
dbg_qtd("overlay", ehci, (struct ehci_qtd *) &hw->hw_qtd_next);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 51 | 68.00% | 3 | 60.00% |
alek du | alek du | 14 | 18.67% | 1 | 20.00% |
david rientjes | david rientjes | 10 | 13.33% | 1 | 20.00% |
| Total | 75 | 100.00% | 5 | 100.00% |
static void __maybe_unused
dbg_itd(const char *label, struct ehci_hcd *ehci, struct ehci_itd *itd)
{
ehci_dbg(ehci, "%s [%d] itd %p, next %08x, urb %p\n",
label, itd->frame, itd, hc32_to_cpu(ehci, itd->hw_next),
itd->urb);
ehci_dbg(ehci,
" trans: %08x %08x %08x %08x %08x %08x %08x %08x\n",
hc32_to_cpu(ehci, itd->hw_transaction[0]),
hc32_to_cpu(ehci, itd->hw_transaction[1]),
hc32_to_cpu(ehci, itd->hw_transaction[2]),
hc32_to_cpu(ehci, itd->hw_transaction[3]),
hc32_to_cpu(ehci, itd->hw_transaction[4]),
hc32_to_cpu(ehci, itd->hw_transaction[5]),
hc32_to_cpu(ehci, itd->hw_transaction[6]),
hc32_to_cpu(ehci, itd->hw_transaction[7]));
ehci_dbg(ehci,
" buf: %08x %08x %08x %08x %08x %08x %08x\n",
hc32_to_cpu(ehci, itd->hw_bufp[0]),
hc32_to_cpu(ehci, itd->hw_bufp[1]),
hc32_to_cpu(ehci, itd->hw_bufp[2]),
hc32_to_cpu(ehci, itd->hw_bufp[3]),
hc32_to_cpu(ehci, itd->hw_bufp[4]),
hc32_to_cpu(ehci, itd->hw_bufp[5]),
hc32_to_cpu(ehci, itd->hw_bufp[6]));
ehci_dbg(ehci, " index: %d %d %d %d %d %d %d %d\n",
itd->index[0], itd->index[1], itd->index[2],
itd->index[3], itd->index[4], itd->index[5],
itd->index[6], itd->index[7]);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 249 | 81.11% | 2 | 50.00% |
stefan roese | stefan roese | 48 | 15.64% | 1 | 25.00% |
david rientjes | david rientjes | 10 | 3.26% | 1 | 25.00% |
| Total | 307 | 100.00% | 4 | 100.00% |
static void __maybe_unused
dbg_sitd(const char *label, struct ehci_hcd *ehci, struct ehci_sitd *sitd)
{
ehci_dbg(ehci, "%s [%d] sitd %p, next %08x, urb %p\n",
label, sitd->frame, sitd, hc32_to_cpu(ehci, sitd->hw_next),
sitd->urb);
ehci_dbg(ehci,
" addr %08x sched %04x result %08x buf %08x %08x\n",
hc32_to_cpu(ehci, sitd->hw_fullspeed_ep),
hc32_to_cpu(ehci, sitd->hw_uframe),
hc32_to_cpu(ehci, sitd->hw_results),
hc32_to_cpu(ehci, sitd->hw_buf[0]),
hc32_to_cpu(ehci, sitd->hw_buf[1]));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 80 | 74.07% | 2 | 50.00% |
stefan roese | stefan roese | 18 | 16.67% | 1 | 25.00% |
david rientjes | david rientjes | 10 | 9.26% | 1 | 25.00% |
| Total | 108 | 100.00% | 4 | 100.00% |
static int __maybe_unused
dbg_status_buf(char *buf, unsigned len, const char *label, u32 status)
{
return scnprintf(buf, len,
"%s%sstatus %04x%s%s%s%s%s%s%s%s%s%s%s",
label, label[0] ? " " : "", status,
(status & STS_PPCE_MASK) ? " PPCE" : "",
(status & STS_ASS) ? " Async" : "",
(status & STS_PSS) ? " Periodic" : "",
(status & STS_RECL) ? " Recl" : "",
(status & STS_HALT) ? " Halt" : "",
(status & STS_IAA) ? " IAA" : "",
(status & STS_FATAL) ? " FATAL" : "",
(status & STS_FLR) ? " FLR" : "",
(status & STS_PCD) ? " PCD" : "",
(status & STS_ERR) ? " ERR" : "",
(status & STS_INT) ? " INT" : "");
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 135 | 87.10% | 3 | 50.00% |
alek du | alek du | 11 | 7.10% | 1 | 16.67% |
david rientjes | david rientjes | 8 | 5.16% | 1 | 16.67% |
andrew morton | andrew morton | 1 | 0.65% | 1 | 16.67% |
| Total | 155 | 100.00% | 6 | 100.00% |
static int __maybe_unused
dbg_intr_buf(char *buf, unsigned len, const char *label, u32 enable)
{
return scnprintf(buf, len,
"%s%sintrenable %02x%s%s%s%s%s%s%s",
label, label[0] ? " " : "", enable,
(enable & STS_PPCE_MASK) ? " PPCE" : "",
(enable & STS_IAA) ? " IAA" : "",
(enable & STS_FATAL) ? " FATAL" : "",
(enable & STS_FLR) ? " FLR" : "",
(enable & STS_PCD) ? " PCD" : "",
(enable & STS_ERR) ? " ERR" : "",
(enable & STS_INT) ? " INT" : "");
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 95 | 82.61% | 2 | 40.00% |
alek du | alek du | 11 | 9.57% | 1 | 20.00% |
david rientjes | david rientjes | 8 | 6.96% | 1 | 20.00% |
andrew morton | andrew morton | 1 | 0.87% | 1 | 20.00% |
| Total | 115 | 100.00% | 5 | 100.00% |
static const char *const fls_strings[] = { "1024", "512", "256", "??" };
static int
dbg_command_buf(char *buf, unsigned len, const char *label, u32 command)
{
return scnprintf(buf, len,
"%s%scommand %07x %s%s%s%s%s%s=%d ithresh=%d%s%s%s%s "
"period=%s%s %s",
label, label[0] ? " " : "", command,
(command & CMD_HIRD) ? " HIRD" : "",
(command & CMD_PPCEE) ? " PPCEE" : "",
(command & CMD_FSP) ? " FSP" : "",
(command & CMD_ASPE) ? " ASPE" : "",
(command & CMD_PSPE) ? " PSPE" : "",
(command & CMD_PARK) ? " park" : "(park)",
CMD_PARK_CNT(command),
(command >> 16) & 0x3f,
(command & CMD_LRESET) ? " LReset" : "",
(command & CMD_IAAD) ? " IAAD" : "",
(command & CMD_ASE) ? " Async" : "",
(command & CMD_PSE) ? " Periodic" : "",
fls_strings[(command >> 2) & 0x3],
(command & CMD_RESET) ? " Reset" : "",
(command & CMD_RUN) ? "RUN" : "HALT");
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 135 | 71.43% | 3 | 60.00% |
alek du | alek du | 53 | 28.04% | 1 | 20.00% |
andrew morton | andrew morton | 1 | 0.53% | 1 | 20.00% |
| Total | 189 | 100.00% | 5 | 100.00% |
static int
dbg_port_buf(char *buf, unsigned len, const char *label, int port, u32 status)
{
char *sig;
/* signaling state */
switch (status & (3 << 10)) {
case 0 << 10:
sig = "se0";
break;
case 1 << 10: /* low speed */
sig = "k";
break;
case 2 << 10:
sig = "j";
break;
default:
sig = "?";
break;
}
return scnprintf(buf, len,
"%s%sport:%d status %06x %d %s%s%s%s%s%s "
"sig=%s%s%s%s%s%s%s%s%s%s%s",
label, label[0] ? " " : "", port, status,
status >> 25, /*device address */
(status & PORT_SSTS) >> 23 == PORTSC_SUSPEND_STS_ACK ?
" ACK" : "",
(status & PORT_SSTS) >> 23 == PORTSC_SUSPEND_STS_NYET ?
" NYET" : "",
(status & PORT_SSTS) >> 23 == PORTSC_SUSPEND_STS_STALL ?
" STALL" : "",
(status & PORT_SSTS) >> 23 == PORTSC_SUSPEND_STS_ERR ?
" ERR" : "",
(status & PORT_POWER) ? " POWER" : "",
(status & PORT_OWNER) ? " OWNER" : "",
sig,
(status & PORT_LPM) ? " LPM" : "",
(status & PORT_RESET) ? " RESET" : "",
(status & PORT_SUSPEND) ? " SUSPEND" : "",
(status & PORT_RESUME) ? " RESUME" : "",
(status & PORT_OCC) ? " OCC" : "",
(status & PORT_OC) ? " OC" : "",
(status & PORT_PEC) ? " PEC" : "",
(status & PORT_PE) ? " PE" : "",
(status & PORT_CSC) ? " CSC" : "",
(status & PORT_CONNECT) ? " CONNECT" : "");
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 212 | 73.87% | 2 | 40.00% |
alek du | alek du | 73 | 25.44% | 1 | 20.00% |
andrew morton | andrew morton | 1 | 0.35% | 1 | 20.00% |
geyslan g. bem | geyslan g. bem | 1 | 0.35% | 1 | 20.00% |
| Total | 287 | 100.00% | 5 | 100.00% |
static inline void
dbg_status(struct ehci_hcd *ehci, const char *label, u32 status)
{
char buf[80];
dbg_status_buf(buf, sizeof(buf), label, status);
ehci_dbg(ehci, "%s\n", buf);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
geyslan g. bem | geyslan g. bem | 41 | 83.67% | 1 | 33.33% |
david brownell | david brownell | 5 | 10.20% | 1 | 33.33% |
linus torvalds | linus torvalds | 3 | 6.12% | 1 | 33.33% |
| Total | 49 | 100.00% | 3 | 100.00% |
static inline void
dbg_cmd(struct ehci_hcd *ehci, const char *label, u32 command)
{
char buf[80];
dbg_command_buf(buf, sizeof(buf), label, command);
ehci_dbg(ehci, "%s\n", buf);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
geyslan g. bem | geyslan g. bem | 41 | 83.67% | 1 | 50.00% |
david brownell | david brownell | 8 | 16.33% | 1 | 50.00% |
| Total | 49 | 100.00% | 2 | 100.00% |
static inline void
dbg_port(struct ehci_hcd *ehci, const char *label, int port, u32 status)
{
char buf[80];
dbg_port_buf(buf, sizeof(buf), label, port, status);
ehci_dbg(ehci, "%s\n", buf);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
geyslan g. bem | geyslan g. bem | 44 | 81.48% | 1 | 33.33% |
david brownell | david brownell | 10 | 18.52% | 2 | 66.67% |
| Total | 54 | 100.00% | 3 | 100.00% |
/*-------------------------------------------------------------------------*/
/* troubleshooting help: expose state in debugfs */
static int debug_async_open(struct inode *, struct file *);
static int debug_bandwidth_open(struct inode *, struct file *);
static int debug_periodic_open(struct inode *, struct file *);
static int debug_registers_open(struct inode *, struct file *);
static ssize_t debug_output(struct file*, char __user*, size_t, loff_t*);
static int debug_close(struct inode *, struct file *);
static const struct file_operations debug_async_fops = {
.owner = THIS_MODULE,
.open = debug_async_open,
.read = debug_output,
.release = debug_close,
.llseek = default_llseek,
};
static const struct file_operations debug_bandwidth_fops = {
.owner = THIS_MODULE,
.open = debug_bandwidth_open,
.read = debug_output,
.release = debug_close,
.llseek = default_llseek,
};
static const struct file_operations debug_periodic_fops = {
.owner = THIS_MODULE,
.open = debug_periodic_open,
.read = debug_output,
.release = debug_close,
.llseek = default_llseek,
};
static const struct file_operations debug_registers_fops = {
.owner = THIS_MODULE,
.open = debug_registers_open,
.read = debug_output,
.release = debug_close,
.llseek = default_llseek,
};
static struct dentry *ehci_debug_root;
struct debug_buffer {
ssize_t (*fill_func)(struct debug_buffer *); /* fill method */
struct usb_bus *bus;
struct mutex mutex; /* protect filling of buffer */
size_t count; /* number of characters filled into buffer */
char *output_buf;
size_t alloc_size;
};
static inline char speed_char(u32 info1)
{
switch (info1 & (3 << 12)) {
case QH_FULL_SPEED:
return 'f';
case QH_LOW_SPEED:
return 'l';
case QH_HIGH_SPEED:
return 'h';
default:
return '?';
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
geyslan g. bem | geyslan g. bem | 40 | 90.91% | 1 | 50.00% |
david brownell | david brownell | 4 | 9.09% | 1 | 50.00% |
| Total | 44 | 100.00% | 2 | 100.00% |
static inline char token_mark(struct ehci_hcd *ehci, __hc32 token)
{
__u32 v = hc32_to_cpu(ehci, token);
if (v & QTD_STS_ACTIVE)
return '*';
if (v & QTD_STS_HALT)
return '-';
if (!IS_SHORT_READ(v))
return ' ';
/* tries to advance through hw_alt_next */
return '/';
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 42 | 72.41% | 2 | 50.00% |
stefan roese | stefan roese | 9 | 15.52% | 1 | 25.00% |
al viro | al viro | 7 | 12.07% | 1 | 25.00% |
| Total | 58 | 100.00% | 4 | 100.00% |
static void qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh,
char **nextp, unsigned *sizep)
{
u32 scratch;
u32 hw_curr;
struct list_head *entry;
struct ehci_qtd *td;
unsigned temp;
unsigned size = *sizep;
char *next = *nextp;
char mark;
__le32 list_end = EHCI_LIST_END(ehci);
struct ehci_qh_hw *hw = qh->hw;
if (hw->hw_qtd_next == list_end) /* NEC does this */
mark = '@';
else
mark = token_mark(ehci, hw->hw_token);
if (mark == '/') { /* qh_alt_next controls qh advance? */
if ((hw->hw_alt_next & QTD_MASK(ehci))
== ehci->async->hw->hw_alt_next)
mark = '#'; /* blocked */
else if (hw->hw_alt_next == list_end)
mark = '.'; /* use hw_qtd_next */
/* else alt_next points to some other qtd */
}
scratch = hc32_to_cpup(ehci, &hw->hw_info1);
hw_curr = (mark == '*') ? hc32_to_cpup(ehci, &hw->hw_current) : 0;
temp = scnprintf(next, size,
"qh/%p dev%d %cs ep%d %08x %08x (%08x%c %s nak%d)"
" [cur %08x next %08x buf[0] %08x]",
qh, scratch & 0x007f,
speed_char (scratch),
(scratch >> 8) & 0x000f,
scratch, hc32_to_cpup(ehci, &hw->hw_info2),
hc32_to_cpup(ehci, &hw->hw_token), mark,
(cpu_to_hc32(ehci, QTD_TOGGLE) & hw->hw_token)
? "data1" : "data0",
(hc32_to_cpup(ehci, &hw->hw_alt_next) >> 1) & 0x0f,
hc32_to_cpup(ehci, &hw->hw_current),
hc32_to_cpup(ehci, &hw->hw_qtd_next),
hc32_to_cpup(ehci, &hw->hw_buf[0]));
size -= temp;
next += temp;
/* hc may be modifying the list as we read it ... */
list_for_each(entry, &qh->qtd_list) {
char *type;
td = list_entry(entry, struct ehci_qtd, qtd_list);
scratch = hc32_to_cpup(ehci, &td->hw_token);
mark = ' ';
if (hw_curr == td->qtd_dma) {
mark = '*';
} else if (hw->hw_qtd_next == cpu_to_hc32(ehci, td->qtd_dma)) {
mark = '+';
} else if (QTD_LENGTH(scratch)) {
if (td->hw_alt_next == ehci->async->hw->hw_alt_next)
mark = '#';
else if (td->hw_alt_next != list_end)
mark = '/';
}
switch ((scratch >> 8) & 0x03) {
case 0:
type = "out";
break;
case 1:
type = "in";
break;
case 2:
type = "setup";
break;
default:
type = "?";
break;
}
temp = scnprintf(next, size,
"\n\t%p%c%s len=%d %08x urb %p"
" [td %08x buf[0] %08x]",
td, mark, type,
(scratch >> 16) & 0x7fff,
scratch,
td->urb,
(u32) td->qtd_dma,
hc32_to_cpup(ehci, &td->hw_buf[0]));
size -= temp;
next += temp;
if (temp == size)
goto done;
}
temp = scnprintf(next, size, "\n");
size -= temp;
next += temp;
done:
*sizep = size;
*nextp = next;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 387 | 67.54% | 7 | 46.67% |
geyslan g. bem | geyslan g. bem | 83 | 14.49% | 3 | 20.00% |
stefan roese | stefan roese | 39 | 6.81% | 1 | 6.67% |
alan stern | alan stern | 38 | 6.63% | 1 | 6.67% |
alek du | alek du | 24 | 4.19% | 1 | 6.67% |
andrew morton | andrew morton | 1 | 0.17% | 1 | 6.67% |
al viro | al viro | 1 | 0.17% | 1 | 6.67% |
| Total | 573 | 100.00% | 15 | 100.00% |
static ssize_t fill_async_buffer(struct debug_buffer *buf)
{
struct usb_hcd *hcd;
struct ehci_hcd *ehci;
unsigned long flags;
unsigned temp, size;
char *next;
struct ehci_qh *qh;
hcd = bus_to_hcd(buf->bus);
ehci = hcd_to_ehci(hcd);
next = buf->output_buf;
size = buf->alloc_size;
*next = 0;
/*
* dumps a snapshot of the async schedule.
* usually empty except for long-term bulk reads, or head.
* one QH per line, and TDs we know about
*/
spin_lock_irqsave(&ehci->lock, flags);
for (qh = ehci->async->qh_next.qh; size > 0 && qh; qh = qh->qh_next.qh)
qh_lines(ehci, qh, &next, &size);
if (!list_empty(&ehci->async_unlink) && size > 0) {
temp = scnprintf(next, size, "\nunlink =\n");
size -= temp;
next += temp;
list_for_each_entry(qh, &ehci->async_unlink, unlink_node) {
if (size <= 0)
break;
qh_lines(ehci, qh, &next, &size);
}
}
spin_unlock_irqrestore(&ehci->lock, flags);
return strlen(buf->output_buf);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 154 | 74.76% | 5 | 35.71% |
alan stern | alan stern | 25 | 12.14% | 3 | 21.43% |
tony jones | tony jones | 11 | 5.34% | 1 | 7.14% |
greg kroah-hartman | greg kroah-hartman | 8 | 3.88% | 1 | 7.14% |
lei ming | lei ming | 5 | 2.43% | 1 | 7.14% |
andrew morton | andrew morton | 1 | 0.49% | 1 | 7.14% |
geyslan g. bem | geyslan g. bem | 1 | 0.49% | 1 | 7.14% |
linus torvalds | linus torvalds | 1 | 0.49% | 1 | 7.14% |
| Total | 206 | 100.00% | 14 | 100.00% |
static ssize_t fill_bandwidth_buffer(struct debug_buffer *buf)
{
struct ehci_hcd *ehci;
struct ehci_tt *tt;
struct ehci_per_sched *ps;
unsigned temp, size;
char *next;
unsigned i;
u8 *bw;
u16 *bf;
u8 budget[EHCI_BANDWIDTH_SIZE];
ehci = hcd_to_ehci(bus_to_hcd(buf->bus));
next = buf->output_buf;
size = buf->alloc_size;
*next = 0;
spin_lock_irq(&ehci->lock);
/* Dump the HS bandwidth table */
temp = scnprintf(next, size,
"HS bandwidth allocation (us per microframe)\n");
size -= temp;
next += temp;
for (i = 0; i < EHCI_BANDWIDTH_SIZE; i += 8) {
bw = &ehci->bandwidth[i];
temp = scnprintf(next, size,
"%2u: %4u%4u%4u%4u%4u%4u%4u%4u\n",
i, bw[0], bw[1], bw[2], bw[3],
bw[4], bw[5], bw[6], bw[7]);
size -= temp;
next += temp;
}
/* Dump all the FS/LS tables */
list_for_each_entry(tt, &ehci->tt_list, tt_list) {
temp = scnprintf(next, size,
"\nTT %s port %d FS/LS bandwidth allocation (us per frame)\n",
dev_name(&tt->usb_tt->hub->dev),
tt->tt_port + !!tt->usb_tt->multi);
size -= temp;
next += temp;
bf = tt->bandwidth;
temp = scnprintf(next, size,
" %5u%5u%5u%5u%5u%5u%5u%5u\n",
bf[0], bf[1], bf[2], bf[3],
bf[4], bf[5], bf[6], bf[7]);
size -= temp;
next += temp;
temp = scnprintf(next, size,
"FS/LS budget (us per microframe)\n");
size -= temp;
next += temp;
compute_tt_budget(budget, tt);
for (i = 0; i < EHCI_BANDWIDTH_SIZE; i += 8) {
bw = &budget[i];
temp = scnprintf(next, size,
"%2u: %4u%4u%4u%4u%4u%4u%4u%4u\n",
i, bw[0], bw[1], bw[2], bw[3],
bw[4], bw[5], bw[6], bw[7]);
size -= temp;
next += temp;
}
list_for_each_entry(ps, &tt->ps_list, ps_list) {
temp = scnprintf(next, size,
"%s ep %02x: %4u @ %2u.%u+%u mask %04x\n",
dev_name(&ps->udev->dev),
ps->ep->desc.bEndpointAddress,
ps->tt_usecs,
ps->bw_phase, ps->phase_uf,
ps->bw_period, ps->cs_mask);
size -= temp;
next += temp;
}
}
spin_unlock_irq(&ehci->lock);
return next - buf->output_buf;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 508 | 100.00% | 2 | 100.00% |
| Total | 508 | 100.00% | 2 | 100.00% |
static unsigned output_buf_tds_dir(char *buf, struct ehci_hcd *ehci,
struct ehci_qh_hw *hw, struct ehci_qh *qh, unsigned size)
{
u32 scratch = hc32_to_cpup(ehci, &hw->hw_info1);
struct ehci_qtd *qtd;
char *type = "";
unsigned temp = 0;
/* count tds, get ep direction */
list_for_each_entry(qtd, &qh->qtd_list, qtd_list) {
temp++;
switch ((hc32_to_cpu(ehci, qtd->hw_token) >> 8) & 0x03) {
case 0:
type = "out";
continue;
case 1:
type = "in";
continue;
}
}
return scnprintf(buf, size, " (%c%d ep%d%s [%d/%d] q%d p%d)",
speed_char(scratch), scratch & 0x007f,
(scratch >> 8) & 0x000f, type, qh->ps.usecs,
qh->ps.c_usecs, temp, 0x7ff & (scratch >> 16));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
geyslan g. bem | geyslan g. bem | 157 | 100.00% | 1 | 100.00% |
| Total | 157 | 100.00% | 1 | 100.00% |
#define DBG_SCHED_LIMIT 64
static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
{
struct usb_hcd *hcd;
struct ehci_hcd *ehci;
unsigned long flags;
union ehci_shadow p, *seen;
unsigned temp, size, seen_count;
char *next;
unsigned i;
__hc32 tag;
seen = kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC);
if (!seen)
return 0;
seen_count = 0;
hcd = bus_to_hcd(buf->bus);
ehci = hcd_to_ehci(hcd);
next = buf->output_buf;
size = buf->alloc_size;
temp = scnprintf(next, size, "size = %d\n", ehci->periodic_size);
size -= temp;
next += temp;
/*
* dump a snapshot of the periodic schedule.
* iso changes, interrupt usually doesn't.
*/
spin_lock_irqsave(&ehci->lock, flags);
for (i = 0; i < ehci->periodic_size; i++) {
p = ehci->pshadow[i];
if (likely(!p.ptr))
continue;
tag = Q_NEXT_TYPE(ehci, ehci->periodic[i]);
temp = scnprintf(next, size, "%4d: ", i);
size -= temp;
next += temp;
do {
struct ehci_qh_hw *hw;
switch (hc32_to_cpu(ehci, tag)) {
case Q_TYPE_QH:
hw = p.qh->hw;
temp = scnprintf(next, size, " qh%d-%04x/%p",
p.qh->ps.period,
hc32_to_cpup(ehci,
&hw->hw_info2)
/* uframe masks */
& (QH_CMASK | QH_SMASK),
p.qh);
size -= temp;
next += temp;
/* don't repeat what follows this qh */
for (temp = 0; temp < seen_count; temp++) {
if (seen[temp].ptr != p.ptr)
continue;
if (p.qh->qh_next.ptr) {
temp = scnprintf(next, size,
" ...");
size -= temp;
next += temp;
}
break;
}
/* show more info the first time around */
if (temp == seen_count) {
temp = output_buf_tds_dir(next, ehci,
hw, p.qh, size);
if (seen_count < DBG_SCHED_LIMIT)
seen[seen_count++].qh = p.qh;
} else {
temp = 0;
}
tag = Q_NEXT_TYPE(ehci, hw->hw_next);
p = p.qh->qh_next;
break;
case Q_TYPE_FSTN:
temp = scnprintf(next, size,
" fstn-%8x/%p", p.fstn->hw_prev,
p.fstn);
tag = Q_NEXT_TYPE(ehci, p.fstn->hw_next);
p = p.fstn->fstn_next;
break;
case Q_TYPE_ITD:
temp = scnprintf(next, size,
" itd/%p", p.itd);
tag = Q_NEXT_TYPE(ehci, p.itd->hw_next);
p = p.itd->itd_next;
break;
case Q_TYPE_SITD:
temp = scnprintf(next, size,
" sitd%d-%04x/%p",
p.sitd->stream->ps.period,
hc32_to_cpup(ehci, &p.sitd->hw_uframe)
& 0x0000ffff,
p.sitd);
tag = Q_NEXT_TYPE(ehci, p.sitd->hw_next);
p = p.sitd->sitd_next;
break;
}
size -= temp;
next += temp;
} while (p.ptr);
temp = scnprintf(next, size, "\n");
size -= temp;
next += temp;
}
spin_unlock_irqrestore(&ehci->lock, flags);
kfree(seen);
return buf->alloc_size - size;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 526 | 83.89% | 7 | 30.43% |
stefan roese | stefan roese | 22 | 3.51% | 1 | 4.35% |
lei ming | lei ming | 16 | 2.55% | 2 | 8.70% |
alek du | alek du | 15 | 2.39% | 1 | 4.35% |
greg kroah-hartman | greg kroah-hartman | 13 | 2.07% | 2 | 8.70% |
geyslan g. bem | geyslan g. bem | 12 | 1.91% | 4 | 17.39% |
andrew morton | andrew morton | 8 | 1.28% | 1 | 4.35% |
alan stern | alan stern | 8 | 1.28% | 2 | 8.70% |
tony jones | tony jones | 5 | 0.80% | 1 | 4.35% |
al viro | al viro | 1 | 0.16% | 1 | 4.35% |
christoph lameter | christoph lameter | 1 | 0.16% | 1 | 4.35% |
| Total | 627 | 100.00% | 23 | 100.00% |
#undef DBG_SCHED_LIMIT
static const char *rh_state_string(struct ehci_hcd *ehci)
{
switch (ehci->rh_state) {
case EHCI_RH_HALTED:
return "halted";
case EHCI_RH_SUSPENDED:
return "suspended";
case EHCI_RH_RUNNING:
return "running";
case EHCI_RH_STOPPING:
return "stopping";
}
return "?";
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 48 | 100.00% | 2 | 100.00% |
| Total | 48 | 100.00% | 2 | 100.00% |
static ssize_t fill_registers_buffer(struct debug_buffer *buf)
{
struct usb_hcd *hcd;
struct ehci_hcd *ehci;
unsigned long flags;
unsigned temp, size, i;
char *next, scratch[80];
static char fmt[] = "%*s\n";
static char label[] = "";
hcd = bus_to_hcd(buf->bus);
ehci = hcd_to_ehci(hcd);
next = buf->output_buf;
size = buf->alloc_size;
spin_lock_irqsave(&ehci->lock, flags);
if (!HCD_HW_ACCESSIBLE(hcd)) {
size = scnprintf(next, size,
"bus %s, device %s\n"
"%s\n"
"SUSPENDED (no register access)\n",
hcd->self.controller->bus->name,
dev_name(hcd->self.controller),
hcd->product_desc);
goto done;
}
/* Capability Registers */
i = HC_VERSION(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase));
temp = scnprintf(next, size,
"bus %s, device %s\n"
"%s\n"
"EHCI %x.%02x, rh state %s\n",
hcd->self.controller->bus->name,
dev_name(hcd->self.controller),
hcd->product_desc,
i >> 8, i & 0x0ff, rh_state_string(ehci));
size -= temp;
next += temp;
#ifdef CONFIG_PCI
/* EHCI 0.96 and later may have "extended capabilities" */
if (dev_is_pci(hcd->self.controller)) {
struct pci_dev *pdev;
u32 offset, cap, cap2;
unsigned count = 256 / 4;
pdev = to_pci_dev(ehci_to_hcd(ehci)->self.controller);
offset = HCC_EXT_CAPS(ehci_readl(ehci,
&ehci->caps->hcc_params));
while (offset && count--) {
pci_read_config_dword(pdev, offset, &cap);
switch (cap & 0xff) {
case 1:
temp = scnprintf(next, size,
"ownership %08x%s%s\n", cap,
(cap & (1 << 24)) ? " linux" : "",
(cap & (1 << 16)) ? " firmware" : "");
size -= temp;
next += temp;
offset += 4;
pci_read_config_dword(pdev, offset, &cap2);
temp = scnprintf(next, size,
"SMI sts/enable 0x%08x\n", cap2);
size -= temp;
next += temp;
break;
case 0: /* illegal reserved capability */
cap = 0;
/* FALLTHROUGH */
default: /* unknown */
break;
}
temp = (cap >> 8) & 0xff;
}
}
#endif
/* FIXME interpret both types of params */
i = ehci_readl(ehci, &ehci->caps->hcs_params);
temp = scnprintf(next, size, "structural params 0x%08x\n", i);
size -= temp;
next += temp;
i = ehci_readl(ehci, &ehci->caps->hcc_params);
temp = scnprintf(next, size, "capability params 0x%08x\n", i);
size -= temp;
next += temp;
/* Operational Registers */
temp = dbg_status_buf(scratch, sizeof(scratch), label,
ehci_readl(ehci, &ehci->regs->status));
temp = scnprintf(next, size, fmt, temp, scratch);
size -= temp;
next += temp;
temp = dbg_command_buf(scratch, sizeof(scratch), label,
ehci_readl(ehci, &ehci->regs->command));
temp = scnprintf(next, size, fmt, temp, scratch);
size -= temp;
next += temp;
temp = dbg_intr_buf(scratch, sizeof(scratch), label,
ehci_readl(ehci, &ehci->regs->intr_enable));
temp = scnprintf(next, size, fmt, temp, scratch);
size -= temp;
next += temp;
temp = scnprintf(next, size, "uframe %04x\n",
ehci_read_frame_index(ehci));
size -= temp;
next += temp;
for (i = 1; i <= HCS_N_PORTS(ehci->hcs_params); i++) {
temp = dbg_port_buf(scratch, sizeof(scratch), label, i,
ehci_readl(ehci,
&ehci->regs->port_status[i - 1]));
temp = scnprintf(next, size, fmt, temp, scratch);
size -= temp;
next += temp;
if (i == HCS_DEBUG_PORT(ehci->hcs_params) && ehci->debug) {
temp = scnprintf(next, size,
" debug control %08x\n",
ehci_readl(ehci,
&ehci->debug->control));
size -= temp;
next += temp;
}
}
if (!list_empty(&ehci->async_unlink)) {
temp = scnprintf(next, size, "async unlink qh %p\n",
list_first_entry(&ehci->async_unlink,
struct ehci_qh, unlink_node));
size -= temp;
next += temp;
}
#ifdef EHCI_STATS
temp = scnprintf(next, size,
"irq normal %ld err %ld iaa %ld (lost %ld)\n",
ehci->stats.normal, ehci->stats.error, ehci->stats.iaa,
ehci->stats.lost_iaa);
size -= temp;
next += temp;
temp = scnprintf(next, size, "complete %ld unlink %ld\n",
ehci->stats.complete, ehci->stats.unlink);
size -= temp;
next += temp;
#endif
done:
spin_unlock_irqrestore(&ehci->lock, flags);
return buf->alloc_size - size;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 816 | 87.27% | 10 | 34.48% |
alan stern | alan stern | 35 | 3.74% | 8 | 27.59% |
benjamin herrenschmidt | benjamin herrenschmidt | 28 | 2.99% | 1 | 3.45% |
andrew morton | andrew morton | 11 | 1.18% | 1 | 3.45% |
greg kroah-hartman | greg kroah-hartman | 10 | 1.07% | 1 | 3.45% |
geyslan g. bem | geyslan g. bem | 9 | 0.96% | 2 | 6.90% |
lei ming | lei ming | 7 | 0.75% | 1 | 3.45% |
kay sievers | kay sievers | 6 | 0.64% | 1 | 3.45% |
tony jones | tony jones | 5 | 0.53% | 1 | 3.45% |
deepak saxena | deepak saxena | 3 | 0.32% | 1 | 3.45% |
wang yijing | wang yijing | 3 | 0.32% | 1 | 3.45% |
jan andersson | jan andersson | 2 | 0.21% | 1 | 3.45% |
| Total | 935 | 100.00% | 29 | 100.00% |
static struct debug_buffer *alloc_buffer(struct usb_bus *bus,
ssize_t (*fill_func)(struct debug_buffer *))
{
struct debug_buffer *buf;
buf = kzalloc(sizeof(*buf), GFP_KERNEL);
if (buf) {
buf->bus = bus;
buf->fill_func = fill_func;
mutex_init(&buf->mutex);
buf->alloc_size = PAGE_SIZE;
}
return buf;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 61 | 79.22% | 1 | 20.00% |
lei ming | lei ming | 6 | 7.79% | 1 | 20.00% |
david brownell | david brownell | 6 | 7.79% | 1 | 20.00% |
alan stern | alan stern | 2 | 2.60% | 1 | 20.00% |
geyslan g. bem | geyslan g. bem | 2 | 2.60% | 1 | 20.00% |
| Total | 77 | 100.00% | 5 | 100.00% |
static int fill_buffer(struct debug_buffer *buf)
{
int ret = 0;
if (!buf->output_buf)
buf->output_buf = vmalloc(buf->alloc_size);
if (!buf->output_buf) {
ret = -ENOMEM;
goto out;
}
ret = buf->fill_func(buf);
if (ret >= 0) {
buf->count = ret;
ret = 0;
}
out:
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 72 | 86.75% | 1 | 25.00% |
lei ming | lei ming | 7 | 8.43% | 1 | 25.00% |
alan stern | alan stern | 3 | 3.61% | 1 | 25.00% |
david brownell | david brownell | 1 | 1.20% | 1 | 25.00% |
| Total | 83 | 100.00% | 4 | 100.00% |
static ssize_t debug_output(struct file *file, char __user *user_buf,
size_t len, loff_t *offset)
{
struct debug_buffer *buf = file->private_data;
int ret = 0;
mutex_lock(&buf->mutex);
if (buf->count == 0) {
ret = fill_buffer(buf);
if (ret != 0) {
mutex_unlock(&buf->mutex);
goto out;
}
}
mutex_unlock(&buf->mutex);
ret = simple_read_from_buffer(user_buf, len, offset,
buf->output_buf, buf->count);
out:
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 101 | 89.38% | 1 | 20.00% |
david brownell | david brownell | 5 | 4.42% | 1 | 20.00% |
greg kroah-hartman | greg kroah-hartman | 4 | 3.54% | 1 | 20.00% |
alan stern | alan stern | 2 | 1.77% | 1 | 20.00% |
lei ming | lei ming | 1 | 0.88% | 1 | 20.00% |
| Total | 113 | 100.00% | 5 | 100.00% |
static int debug_close(struct inode *inode, struct file *file)
{
struct debug_buffer *buf = file->private_data;
if (buf) {
vfree(buf->output_buf);
kfree(buf);
}
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 44 | 95.65% | 1 | 50.00% |
lei ming | lei ming | 2 | 4.35% | 1 | 50.00% |
| Total | 46 | 100.00% | 2 | 100.00% |
static int debug_async_open(struct inode *inode, struct file *file)
{
file->private_data = alloc_buffer(inode->i_private, fill_async_buffer);
return file->private_data ? 0 : -ENOMEM;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 37 | 94.87% | 1 | 50.00% |
david brownell | david brownell | 2 | 5.13% | 1 | 50.00% |
| Total | 39 | 100.00% | 2 | 100.00% |
static int debug_bandwidth_open(struct inode *inode, struct file *file)
{
file->private_data = alloc_buffer(inode->i_private,
fill_bandwidth_buffer);
return file->private_data ? 0 : -ENOMEM;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 39 | 100.00% | 1 | 100.00% |
| Total | 39 | 100.00% | 1 | 100.00% |
static int debug_periodic_open(struct inode *inode, struct file *file)
{
struct debug_buffer *buf;
buf = alloc_buffer(inode->i_private, fill_periodic_buffer);
if (!buf)
return -ENOMEM;
buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8) * PAGE_SIZE;
file->private_data = buf;
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
lei ming | lei ming | 38 | 54.29% | 1 | 20.00% |
tony jones | tony jones | 26 | 37.14% | 1 | 20.00% |
david brownell | david brownell | 5 | 7.14% | 2 | 40.00% |
greg kroah-hartman | greg kroah-hartman | 1 | 1.43% | 1 | 20.00% |
| Total | 70 | 100.00% | 5 | 100.00% |
static int debug_registers_open(struct inode *inode, struct file *file)
{
file->private_data = alloc_buffer(inode->i_private,
fill_registers_buffer);
return file->private_data ? 0 : -ENOMEM;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 39 | 100.00% | 1 | 100.00% |
| Total | 39 | 100.00% | 1 | 100.00% |
static inline void create_debug_files(struct ehci_hcd *ehci)
{
struct usb_bus *bus = &ehci_to_hcd(ehci)->self;
ehci->debug_dir = debugfs_create_dir(bus->bus_name, ehci_debug_root);
if (!ehci->debug_dir)
return;
if (!debugfs_create_file("async", S_IRUGO, ehci->debug_dir, bus,
&debug_async_fops))
goto file_error;
if (!debugfs_create_file("bandwidth", S_IRUGO, ehci->debug_dir, bus,
&debug_bandwidth_fops))
goto file_error;
if (!debugfs_create_file("periodic", S_IRUGO, ehci->debug_dir, bus,
&debug_periodic_fops))
goto file_error;
if (!debugfs_create_file("registers", S_IRUGO, ehci->debug_dir, bus,
&debug_registers_fops))
goto file_error;
return;
file_error:
debugfs_remove_recursive(ehci->debug_dir);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 74 | 51.39% | 2 | 28.57% |
tony jones | tony jones | 31 | 21.53% | 1 | 14.29% |
alek du | alek du | 23 | 15.97% | 1 | 14.29% |
lei ming | lei ming | 10 | 6.94% | 1 | 14.29% |
david brownell | david brownell | 6 | 4.17% | 2 | 28.57% |
| Total | 144 | 100.00% | 7 | 100.00% |
static inline void remove_debug_files(struct ehci_hcd *ehci)
{
debugfs_remove_recursive(ehci->debug_dir);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tony jones | tony jones | 15 | 78.95% | 1 | 25.00% |
david brownell | david brownell | 3 | 15.79% | 2 | 50.00% |
lei ming | lei ming | 1 | 5.26% | 1 | 25.00% |
| Total | 19 | 100.00% | 4 | 100.00% |
#else /* CONFIG_DYNAMIC_DEBUG */
static inline void dbg_hcs_params(struct ehci_hcd *ehci, char *label) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
static inline void dbg_hcc_params(struct ehci_hcd *ehci, char *label) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
static inline void __maybe_unused dbg_qh(const char *label,
struct ehci_hcd *ehci, struct ehci_qh *qh) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 22 | 100.00% | 1 | 100.00% |
| Total | 22 | 100.00% | 1 | 100.00% |
static inline int __maybe_unused dbg_status_buf(const char *buf,
unsigned int len, const char *label, u32 status)
{ return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 28 | 100.00% | 1 | 100.00% |
| Total | 28 | 100.00% | 1 | 100.00% |
static inline int __maybe_unused dbg_command_buf(const char *buf,
unsigned int len, const char *label, u32 command)
{ return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 28 | 100.00% | 1 | 100.00% |
| Total | 28 | 100.00% | 1 | 100.00% |
static inline int __maybe_unused dbg_intr_buf(const char *buf,
unsigned int len, const char *label, u32 enable)
{ return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 28 | 100.00% | 1 | 100.00% |
| Total | 28 | 100.00% | 1 | 100.00% |
static inline int __maybe_unused dbg_port_buf(char *buf,
unsigned int len, const char *label, int port, u32 status)
{ return 0; }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 30 | 100.00% | 1 | 100.00% |
| Total | 30 | 100.00% | 1 | 100.00% |
static inline void dbg_status(struct ehci_hcd *ehci, const char *label,
u32 status) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 19 | 100.00% | 1 | 100.00% |
| Total | 19 | 100.00% | 1 | 100.00% |
static inline void dbg_cmd(struct ehci_hcd *ehci, const char *label,
u32 command) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 19 | 100.00% | 1 | 100.00% |
| Total | 19 | 100.00% | 1 | 100.00% |
static inline void dbg_port(struct ehci_hcd *ehci, const char *label,
int port, u32 status) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 22 | 100.00% | 1 | 100.00% |
| Total | 22 | 100.00% | 1 | 100.00% |
static inline void create_debug_files(struct ehci_hcd *bus) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 11 | 100.00% | 1 | 100.00% |
| Total | 11 | 100.00% | 1 | 100.00% |
static inline void remove_debug_files(struct ehci_hcd *bus) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
alan stern | alan stern | 11 | 100.00% | 1 | 100.00% |
| Total | 11 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_DYNAMIC_DEBUG */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
david brownell | david brownell | 3071 | 49.02% | 25 | 32.89% |
alan stern | alan stern | 1079 | 17.22% | 16 | 21.05% |
tony jones | tony jones | 641 | 10.23% | 1 | 1.32% |
geyslan g. bem | geyslan g. bem | 436 | 6.96% | 10 | 13.16% |
linus torvalds | linus torvalds | 326 | 5.20% | 1 | 1.32% |
alek du | alek du | 261 | 4.17% | 2 | 2.63% |
stefan roese | stefan roese | 160 | 2.55% | 1 | 1.32% |
lei ming | lei ming | 97 | 1.55% | 3 | 3.95% |
david rientjes | david rientjes | 56 | 0.89% | 1 | 1.32% |
greg kroah-hartman | greg kroah-hartman | 36 | 0.57% | 3 | 3.95% |
benjamin herrenschmidt | benjamin herrenschmidt | 34 | 0.54% | 1 | 1.32% |
andrew morton | andrew morton | 25 | 0.40% | 1 | 1.32% |
arnd bergmann | arnd bergmann | 15 | 0.24% | 1 | 1.32% |
al viro | al viro | 9 | 0.14% | 2 | 2.63% |
kay sievers | kay sievers | 6 | 0.10% | 1 | 1.32% |
deepak saxena | deepak saxena | 3 | 0.05% | 1 | 1.32% |
wang yijing | wang yijing | 3 | 0.05% | 1 | 1.32% |
jan andersson | jan andersson | 2 | 0.03% | 1 | 1.32% |
oliver neukum | oliver neukum | 2 | 0.03% | 1 | 1.32% |
xenia ragiadakou | xenia ragiadakou | 1 | 0.02% | 1 | 1.32% |
christoph lameter | christoph lameter | 1 | 0.02% | 1 | 1.32% |
masanari iida | masanari iida | 1 | 0.02% | 1 | 1.32% |
| Total | 6265 | 100.00% | 76 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.