mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
usb: host: replace %p with %pK
Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write zero to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: Ib2b999693224b33241141e290b70724f9e27183f Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
This commit is contained in:
parent
207681796f
commit
61b86dc345
@ -89,7 +89,7 @@ static void dbg_hcc_params(struct ehci_hcd *ehci, char *label)
|
||||
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,
|
||||
ehci_dbg(ehci, "%s td %pK 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),
|
||||
@ -107,7 +107,7 @@ 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,
|
||||
ehci_dbg(ehci, "%s qh %pK 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);
|
||||
}
|
||||
@ -115,7 +115,7 @@ dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh)
|
||||
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",
|
||||
ehci_dbg(ehci, "%s [%d] itd %pK, next %08x, urb %p\n",
|
||||
label, itd->frame, itd, hc32_to_cpu(ehci, itd->hw_next),
|
||||
itd->urb);
|
||||
ehci_dbg(ehci,
|
||||
@ -146,7 +146,7 @@ dbg_itd(const char *label, struct ehci_hcd *ehci, struct ehci_itd *itd)
|
||||
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",
|
||||
ehci_dbg(ehci, "%s [%d] sitd %pK, next %08x, urb %p\n",
|
||||
label, sitd->frame, sitd, hc32_to_cpu(ehci, sitd->hw_next),
|
||||
sitd->urb);
|
||||
ehci_dbg(ehci,
|
||||
@ -406,7 +406,7 @@ static void qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh,
|
||||
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)"
|
||||
"qh/%pK 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),
|
||||
@ -454,7 +454,7 @@ static void qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh,
|
||||
break;
|
||||
}
|
||||
temp = scnprintf(next, size,
|
||||
"\n\t%p%c%s len=%d %08x urb %p"
|
||||
"\n\t%pK%c%s len=%d %08x urb %pK"
|
||||
" [td %08x buf[0] %08x]",
|
||||
td, mark, type,
|
||||
(scratch >> 16) & 0x7fff,
|
||||
@ -674,7 +674,7 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
|
||||
switch (hc32_to_cpu(ehci, tag)) {
|
||||
case Q_TYPE_QH:
|
||||
hw = p.qh->hw;
|
||||
temp = scnprintf(next, size, " qh%d-%04x/%p",
|
||||
temp = scnprintf(next, size, " qh%d-%04x/%pK",
|
||||
p.qh->ps.period,
|
||||
hc32_to_cpup(ehci,
|
||||
&hw->hw_info2)
|
||||
@ -709,21 +709,21 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
|
||||
p = p.qh->qh_next;
|
||||
break;
|
||||
case Q_TYPE_FSTN:
|
||||
temp = scnprintf(next, size,
|
||||
" fstn-%8x/%p", p.fstn->hw_prev,
|
||||
temp = scnprintf (next, size,
|
||||
" fstn-%8x/%pK", 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);
|
||||
temp = scnprintf (next, size,
|
||||
" itd/%pK", 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",
|
||||
temp = scnprintf (next, size,
|
||||
" sitd%d-%04x/%pK",
|
||||
p.sitd->stream->ps.period,
|
||||
hc32_to_cpup(ehci, &p.sitd->hw_uframe)
|
||||
& 0x0000ffff,
|
||||
@ -895,7 +895,7 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf)
|
||||
}
|
||||
|
||||
if (!list_empty(&ehci->async_unlink)) {
|
||||
temp = scnprintf(next, size, "async unlink qh %p\n",
|
||||
temp = scnprintf(next, size, "async unlink qh %pK\n",
|
||||
list_first_entry(&ehci->async_unlink,
|
||||
struct ehci_qh, unlink_node));
|
||||
size -= temp;
|
||||
|
@ -1017,7 +1017,7 @@ idle_timeout:
|
||||
/* caller was supposed to have unlinked any requests;
|
||||
* that's not our job. just leak this memory.
|
||||
*/
|
||||
ehci_err (ehci, "qh %p (#%02x) state %d%s\n",
|
||||
ehci_err (ehci, "qh %pK (#%02x) state %d%s\n",
|
||||
qh, ep->desc.bEndpointAddress, qh->qh_state,
|
||||
list_empty (&qh->qtd_list) ? "" : "(has tds)");
|
||||
break;
|
||||
|
@ -268,7 +268,7 @@ ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status)
|
||||
|
||||
#ifdef EHCI_URB_TRACE
|
||||
ehci_dbg (ehci,
|
||||
"%s %s urb %p ep%d%s status %d len %d/%d\n",
|
||||
"%s %s urb %pK ep%d%s status %d len %d/%d\n",
|
||||
__func__, urb->dev->devpath, urb,
|
||||
usb_pipeendpoint (urb->pipe),
|
||||
usb_pipein (urb->pipe) ? "in" : "out",
|
||||
@ -354,7 +354,7 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)
|
||||
/* Report Data Buffer Error: non-fatal but useful */
|
||||
if (token & QTD_STS_DBE)
|
||||
ehci_dbg(ehci,
|
||||
"detected DataBufferErr for urb %p ep%d%s len %d, qtd %p [qh %p]\n",
|
||||
"detected DataBufferErr for urb %pK ep%d%s len %d, qtd %pK [qh %pK]\n",
|
||||
urb,
|
||||
usb_endpoint_num(&urb->ep->desc),
|
||||
usb_endpoint_dir_in(&urb->ep->desc) ? "in" : "out",
|
||||
@ -931,7 +931,7 @@ qh_make (
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ehci_dbg(ehci, "bogus dev %p speed %d\n", urb->dev,
|
||||
ehci_dbg(ehci, "bogus dev %pK speed %d\n", urb->dev,
|
||||
urb->dev->speed);
|
||||
done:
|
||||
qh_destroy(ehci, qh);
|
||||
@ -1119,7 +1119,7 @@ submit_async (
|
||||
struct ehci_qtd *qtd;
|
||||
qtd = list_entry(qtd_list->next, struct ehci_qtd, qtd_list);
|
||||
ehci_dbg(ehci,
|
||||
"%s %s urb %p ep%d%s len %d, qtd %p [qh %p]\n",
|
||||
"%s %s urb %pK ep%d%s len %d, qtd %pK [qh %pK]\n",
|
||||
__func__, urb->dev->devpath, urb,
|
||||
epnum & 0x0f, (epnum & USB_DIR_IN) ? "in" : "out",
|
||||
urb->transfer_buffer_length,
|
||||
|
@ -549,7 +549,7 @@ static void qh_link_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh)
|
||||
unsigned period = qh->ps.period;
|
||||
|
||||
dev_dbg(&qh->ps.udev->dev,
|
||||
"link qh%d-%04x/%p start %d [%d/%d us]\n",
|
||||
"link qh%d-%04x/%pK start %d [%d/%d us]\n",
|
||||
period, hc32_to_cpup(ehci, &qh->hw->hw_info2)
|
||||
& (QH_CMASK | QH_SMASK),
|
||||
qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs);
|
||||
@ -642,7 +642,7 @@ static void qh_unlink_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh)
|
||||
: (qh->ps.usecs * 8);
|
||||
|
||||
dev_dbg(&qh->ps.udev->dev,
|
||||
"unlink qh%d-%04x/%p start %d [%d/%d us]\n",
|
||||
"unlink qh%d-%04x/%pK start %d [%d/%d us]\n",
|
||||
qh->ps.period,
|
||||
hc32_to_cpup(ehci, &qh->hw->hw_info2) & (QH_CMASK | QH_SMASK),
|
||||
qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs);
|
||||
@ -752,7 +752,7 @@ static void end_unlink_intr(struct ehci_hcd *ehci, struct ehci_qh *qh)
|
||||
* FIXME kill the now-dysfunctional queued urbs
|
||||
*/
|
||||
else {
|
||||
ehci_err(ehci, "can't reschedule qh %p, err %d\n",
|
||||
ehci_err(ehci, "can't reschedule qh %pK, err %d\n",
|
||||
qh, rc);
|
||||
}
|
||||
}
|
||||
@ -870,7 +870,7 @@ static int qh_schedule(struct ehci_hcd *ehci, struct ehci_qh *qh)
|
||||
|
||||
/* reuse the previous schedule slots, if we can */
|
||||
if (qh->ps.phase != NO_FRAME) {
|
||||
ehci_dbg(ehci, "reused qh %p schedule\n", qh);
|
||||
ehci_dbg(ehci, "reused qh %pK schedule\n", qh);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1549,7 +1549,7 @@ iso_stream_schedule(
|
||||
|
||||
/* no room in the schedule */
|
||||
if (!done) {
|
||||
ehci_dbg(ehci, "iso sched full %p", urb);
|
||||
ehci_dbg(ehci, "iso sched full %pK", urb);
|
||||
status = -ENOSPC;
|
||||
goto fail;
|
||||
}
|
||||
@ -1603,7 +1603,7 @@ iso_stream_schedule(
|
||||
|
||||
/* Is the schedule about to wrap around? */
|
||||
if (unlikely(!empty && start < period)) {
|
||||
ehci_dbg(ehci, "request %p would overflow (%u-%u < %u mod %u)\n",
|
||||
ehci_dbg(ehci, "request %pK would overflow (%u-%u < %u mod %u)\n",
|
||||
urb, stream->next_uframe, base, period, mod);
|
||||
status = -EFBIG;
|
||||
goto fail;
|
||||
@ -1632,7 +1632,7 @@ iso_stream_schedule(
|
||||
/* How many uframes and packets do we need to skip? */
|
||||
skip = (now2 - start + period - 1) & -period;
|
||||
if (skip >= span) { /* Entirely in the past? */
|
||||
ehci_dbg(ehci, "iso underrun %p (%u+%u < %u) [%u]\n",
|
||||
ehci_dbg(ehci, "iso underrun %pK (%u+%u < %u) [%u]\n",
|
||||
urb, start + base, span - period, now2 + base,
|
||||
base);
|
||||
|
||||
@ -1659,7 +1659,7 @@ iso_stream_schedule(
|
||||
use_start:
|
||||
/* Tried to schedule too far into the future? */
|
||||
if (unlikely(start + span - period >= mod + wrap)) {
|
||||
ehci_dbg(ehci, "request %p would overflow (%u+%u >= %u)\n",
|
||||
ehci_dbg(ehci, "request %pK would overflow (%u+%u >= %u)\n",
|
||||
urb, start, span - period, mod + wrap);
|
||||
status = -EFBIG;
|
||||
goto fail;
|
||||
@ -1955,7 +1955,7 @@ static int itd_submit(struct ehci_hcd *ehci, struct urb *urb,
|
||||
|
||||
#ifdef EHCI_URB_TRACE
|
||||
ehci_dbg(ehci,
|
||||
"%s %s urb %p ep%d%s len %d, %d pkts %d uframes [%p]\n",
|
||||
"%s %s urb %p ep%d%s len %d, %d pkts %d uframes [%pK]\n",
|
||||
__func__, urb->dev->devpath, urb,
|
||||
usb_pipeendpoint(urb->pipe),
|
||||
usb_pipein(urb->pipe) ? "in" : "out",
|
||||
@ -2335,8 +2335,8 @@ static int sitd_submit(struct ehci_hcd *ehci, struct urb *urb,
|
||||
}
|
||||
|
||||
#ifdef EHCI_URB_TRACE
|
||||
ehci_dbg(ehci,
|
||||
"submit %p dev%s ep%d%s-iso len %d\n",
|
||||
ehci_dbg (ehci,
|
||||
"submit %pK dev%s ep%d%s-iso len %d\n",
|
||||
urb, urb->dev->devpath,
|
||||
usb_pipeendpoint(urb->pipe),
|
||||
usb_pipein(urb->pipe) ? "in" : "out",
|
||||
|
@ -256,7 +256,7 @@ static void ohci_dump_td (const struct ohci_hcd *ohci, const char *label,
|
||||
{
|
||||
u32 tmp = hc32_to_cpup (ohci, &td->hwINFO);
|
||||
|
||||
ohci_dbg (ohci, "%s td %p%s; urb %p index %d; hw next td %08x\n",
|
||||
ohci_dbg (ohci, "%s td %pK%s; urb %pK index %d; hw next td %08x\n",
|
||||
label, td,
|
||||
(tmp & TD_DONE) ? " (DONE)" : "",
|
||||
td->urb, td->index,
|
||||
@ -314,7 +314,7 @@ ohci_dump_ed (const struct ohci_hcd *ohci, const char *label,
|
||||
u32 tmp = hc32_to_cpu (ohci, ed->hwINFO);
|
||||
char *type = "";
|
||||
|
||||
ohci_dbg (ohci, "%s, ed %p state 0x%x type %s; next ed %08x\n",
|
||||
ohci_dbg (ohci, "%s, ed %pK state 0x%x type %s; next ed %08x\n",
|
||||
label,
|
||||
ed, ed->state, edstring (ed->type),
|
||||
hc32_to_cpup (ohci, &ed->hwNextED));
|
||||
@ -415,7 +415,7 @@ show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
|
||||
struct td *td;
|
||||
|
||||
temp = scnprintf (buf, size,
|
||||
"ed/%p %cs dev%d ep%d%s max %d %08x%s%s %s",
|
||||
"ed/%pK %cs dev%d ep%d%s max %d %08x%s%s %s",
|
||||
ed,
|
||||
(info & ED_LOWSPEED) ? 'l' : 'f',
|
||||
info & 0x7f,
|
||||
@ -437,7 +437,7 @@ show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
|
||||
cbp = hc32_to_cpup (ohci, &td->hwCBP);
|
||||
be = hc32_to_cpup (ohci, &td->hwBE);
|
||||
temp = scnprintf (buf, size,
|
||||
"\n\ttd %p %s %d cc=%x urb %p (%08x)",
|
||||
"\n\ttd %pK %s %d cc=%x urb %pK (%08x)",
|
||||
td,
|
||||
({ char *pid;
|
||||
switch (info & TD_DP) {
|
||||
@ -516,7 +516,7 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
|
||||
next += temp;
|
||||
|
||||
do {
|
||||
temp = scnprintf (next, size, " ed%d/%p",
|
||||
temp = scnprintf (next, size, " ed%d/%pK",
|
||||
ed->interval, ed);
|
||||
size -= temp;
|
||||
next += temp;
|
||||
|
@ -280,7 +280,7 @@ static int ohci_urb_enqueue (
|
||||
ed->interval);
|
||||
if (urb_priv->td_cnt >= urb_priv->length) {
|
||||
++urb_priv->td_cnt; /* Mark it */
|
||||
ohci_dbg(ohci, "iso underrun %p (%u+%u < %u)\n",
|
||||
ohci_dbg(ohci, "iso underrun %pK (%u+%u < %u)\n",
|
||||
urb, frame, length,
|
||||
next);
|
||||
}
|
||||
@ -388,7 +388,7 @@ sanitize:
|
||||
/* caller was supposed to have unlinked any requests;
|
||||
* that's not our job. can't recover; must leak ed.
|
||||
*/
|
||||
ohci_err (ohci, "leak ed %p (#%02x) state %d%s\n",
|
||||
ohci_err (ohci, "leak ed %pK (#%02x) state %d%s\n",
|
||||
ed, ep->desc.bEndpointAddress, ed->state,
|
||||
list_empty (&ed->td_list) ? "" : " (has tds)");
|
||||
td_free (ohci, ed->dummy);
|
||||
@ -1033,7 +1033,7 @@ int ohci_restart(struct ohci_hcd *ohci)
|
||||
case ED_UNLINK:
|
||||
break;
|
||||
default:
|
||||
ohci_dbg(ohci, "bogus ed %p state %d\n",
|
||||
ohci_dbg(ohci, "bogus ed %pK state %d\n",
|
||||
ed, ed->state);
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ td_free (struct ohci_hcd *hc, struct td *td)
|
||||
if (*prev)
|
||||
*prev = td->td_hash;
|
||||
else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0)
|
||||
ohci_dbg (hc, "no hash for td %p\n", td);
|
||||
ohci_dbg (hc, "no hash for td %pK\n", td);
|
||||
dma_pool_free (hc->td_cache, td, td->td_dma);
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ static void periodic_link (struct ohci_hcd *ohci, struct ed *ed)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
ohci_dbg(ohci, "link %sed %p branch %d [%dus.], interval %d\n",
|
||||
ohci_dbg(ohci, "link %sed %pK branch %d [%dus.], interval %d\n",
|
||||
(ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "",
|
||||
ed, ed->branch, ed->load, ed->interval);
|
||||
|
||||
@ -287,7 +287,7 @@ static void periodic_unlink (struct ohci_hcd *ohci, struct ed *ed)
|
||||
}
|
||||
ohci_to_hcd(ohci)->self.bandwidth_allocated -= ed->load / ed->interval;
|
||||
|
||||
ohci_dbg(ohci, "unlink %sed %p branch %d [%dus.], interval %d\n",
|
||||
ohci_dbg(ohci, "unlink %sed %pK branch %d [%dus.], interval %d\n",
|
||||
(ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "",
|
||||
ed, ed->branch, ed->load, ed->interval);
|
||||
}
|
||||
@ -787,7 +787,7 @@ static int td_done(struct ohci_hcd *ohci, struct urb *urb, struct td *td)
|
||||
|
||||
if (cc != TD_CC_NOERROR)
|
||||
ohci_dbg(ohci,
|
||||
"urb %p iso td %p (%d) len %d cc %d\n",
|
||||
"urb %pK iso td %pK (%d) len %d cc %d\n",
|
||||
urb, td, 1 + td->index, dlen, cc);
|
||||
|
||||
/* BULK, INT, CONTROL ... drivers see aggregate length/status,
|
||||
@ -819,7 +819,7 @@ static int td_done(struct ohci_hcd *ohci, struct urb *urb, struct td *td)
|
||||
|
||||
if (cc != TD_CC_NOERROR && cc < 0x0E)
|
||||
ohci_dbg(ohci,
|
||||
"urb %p td %p (%d) cc %d, len=%d/%d\n",
|
||||
"urb %pK td %pK (%d) cc %d, len=%d/%d\n",
|
||||
urb, td, 1 + td->index, cc,
|
||||
urb->actual_length,
|
||||
urb->transfer_buffer_length);
|
||||
@ -885,7 +885,7 @@ static void ed_halted(struct ohci_hcd *ohci, struct td *td, int cc)
|
||||
/* fallthrough */
|
||||
default:
|
||||
ohci_dbg (ohci,
|
||||
"urb %p path %s ep%d%s %08x cc %d --> status %d\n",
|
||||
"urb %pK path %s ep%d%s %08x cc %d --> status %d\n",
|
||||
urb, urb->dev->devpath,
|
||||
usb_pipeendpoint (urb->pipe),
|
||||
usb_pipein (urb->pipe) ? "in" : "out",
|
||||
|
@ -48,7 +48,7 @@ static int uhci_show_td(struct uhci_hcd *uhci, struct uhci_td *td, char *buf,
|
||||
u32 status, token;
|
||||
|
||||
status = td_status(uhci, td);
|
||||
out += sprintf(out, "%*s[%p] link (%08x) ", space, "", td,
|
||||
out += sprintf(out, "%*s[%pK] link (%08x) ", space, "", td,
|
||||
hc32_to_cpu(uhci, td->link));
|
||||
out += sprintf(out, "e%d %s%s%s%s%s%s%s%s%s%sLength=%x ",
|
||||
((status >> 27) & 3),
|
||||
@ -106,9 +106,9 @@ static int uhci_show_urbp(struct uhci_hcd *uhci, struct urb_priv *urbp,
|
||||
char *ptype;
|
||||
|
||||
|
||||
out += sprintf(out, "urb_priv [%p] ", urbp);
|
||||
out += sprintf(out, "urb [%p] ", urbp->urb);
|
||||
out += sprintf(out, "qh [%p] ", urbp->qh);
|
||||
out += sprintf(out, "urb_priv [%pK] ", urbp);
|
||||
out += sprintf(out, "urb [%pK] ", urbp->urb);
|
||||
out += sprintf(out, "qh [%pK] ", urbp->qh);
|
||||
out += sprintf(out, "Dev=%d ", usb_pipedevice(urbp->urb->pipe));
|
||||
out += sprintf(out, "EP=%x(%s) ", usb_pipeendpoint(urbp->urb->pipe),
|
||||
(usb_pipein(urbp->urb->pipe) ? "IN" : "OUT"));
|
||||
@ -178,13 +178,13 @@ static int uhci_show_qh(struct uhci_hcd *uhci,
|
||||
default: qtype = "Skel" ; break;
|
||||
}
|
||||
|
||||
out += sprintf(out, "%*s[%p] %s QH link (%08x) element (%08x)\n",
|
||||
out += sprintf(out, "%*s[%pK] %s QH link (%08x) element (%08x)\n",
|
||||
space, "", qh, qtype,
|
||||
hc32_to_cpu(uhci, qh->link),
|
||||
hc32_to_cpu(uhci, element));
|
||||
if (qh->type == USB_ENDPOINT_XFER_ISOC)
|
||||
out += sprintf(out,
|
||||
"%*s period %d phase %d load %d us, frame %x desc [%p]\n",
|
||||
"%*s period %d phase %d load %d us, frame %x desc [%pK]\n",
|
||||
space, "", qh->period, qh->phase, qh->load,
|
||||
qh->iso_frame, qh->iso_packet_desc);
|
||||
else if (qh->type == USB_ENDPOINT_XFER_INT)
|
||||
|
@ -125,9 +125,9 @@ static struct uhci_td *uhci_alloc_td(struct uhci_hcd *uhci)
|
||||
static void uhci_free_td(struct uhci_hcd *uhci, struct uhci_td *td)
|
||||
{
|
||||
if (!list_empty(&td->list))
|
||||
dev_WARN(uhci_dev(uhci), "td %p still in list!\n", td);
|
||||
dev_WARN(uhci_dev(uhci), "td %pK still in list!\n", td);
|
||||
if (!list_empty(&td->fl_list))
|
||||
dev_WARN(uhci_dev(uhci), "td %p still in fl_list!\n", td);
|
||||
dev_WARN(uhci_dev(uhci), "td %pK still in fl_list!\n", td);
|
||||
|
||||
dma_pool_free(uhci->td_pool, td, td->dma_handle);
|
||||
}
|
||||
@ -294,7 +294,7 @@ static void uhci_free_qh(struct uhci_hcd *uhci, struct uhci_qh *qh)
|
||||
{
|
||||
WARN_ON(qh->state != QH_STATE_IDLE && qh->udev);
|
||||
if (!list_empty(&qh->queue))
|
||||
dev_WARN(uhci_dev(uhci), "qh %p list not empty!\n", qh);
|
||||
dev_WARN(uhci_dev(uhci), "qh %pK list not empty!\n", qh);
|
||||
|
||||
list_del(&qh->node);
|
||||
if (qh->udev) {
|
||||
@ -744,7 +744,7 @@ static void uhci_free_urb_priv(struct uhci_hcd *uhci,
|
||||
struct uhci_td *td, *tmp;
|
||||
|
||||
if (!list_empty(&urbp->node))
|
||||
dev_WARN(uhci_dev(uhci), "urb %p still on QH's list!\n",
|
||||
dev_WARN(uhci_dev(uhci), "urb %pK still on QH's list!\n",
|
||||
urbp->urb);
|
||||
|
||||
list_for_each_entry_safe(td, tmp, &urbp->td_list, list) {
|
||||
@ -1317,7 +1317,7 @@ static int uhci_submit_isochronous(struct uhci_hcd *uhci, struct urb *urb,
|
||||
else if (!uhci_frame_before_eq(next,
|
||||
frame + (urb->number_of_packets - 1) *
|
||||
qh->period))
|
||||
dev_dbg(uhci_dev(uhci), "iso underrun %p (%u+%u < %u)\n",
|
||||
dev_dbg(uhci_dev(uhci), "iso underrun %pK (%u+%u < %u)\n",
|
||||
urb, frame,
|
||||
(urb->number_of_packets - 1) *
|
||||
qh->period,
|
||||
|
@ -30,27 +30,27 @@ void xhci_dbg_regs(struct xhci_hcd *xhci)
|
||||
{
|
||||
u32 temp;
|
||||
|
||||
xhci_dbg(xhci, "// xHCI capability registers at %p:\n",
|
||||
xhci_dbg(xhci, "// xHCI capability registers at %pK:\n",
|
||||
xhci->cap_regs);
|
||||
temp = readl(&xhci->cap_regs->hc_capbase);
|
||||
xhci_dbg(xhci, "// @%p = 0x%x (CAPLENGTH AND HCIVERSION)\n",
|
||||
xhci_dbg(xhci, "// @%pK = 0x%x (CAPLENGTH AND HCIVERSION)\n",
|
||||
&xhci->cap_regs->hc_capbase, temp);
|
||||
xhci_dbg(xhci, "// CAPLENGTH: 0x%x\n",
|
||||
(unsigned int) HC_LENGTH(temp));
|
||||
xhci_dbg(xhci, "// HCIVERSION: 0x%x\n",
|
||||
(unsigned int) HC_VERSION(temp));
|
||||
|
||||
xhci_dbg(xhci, "// xHCI operational registers at %p:\n", xhci->op_regs);
|
||||
xhci_dbg(xhci, "// xHCI operational registers at %pK:\n", xhci->op_regs);
|
||||
|
||||
temp = readl(&xhci->cap_regs->run_regs_off);
|
||||
xhci_dbg(xhci, "// @%p = 0x%x RTSOFF\n",
|
||||
xhci_dbg(xhci, "// @%pK = 0x%x RTSOFF\n",
|
||||
&xhci->cap_regs->run_regs_off,
|
||||
(unsigned int) temp & RTSOFF_MASK);
|
||||
xhci_dbg(xhci, "// xHCI runtime registers at %p:\n", xhci->run_regs);
|
||||
xhci_dbg(xhci, "// xHCI runtime registers at %pK:\n", xhci->run_regs);
|
||||
|
||||
temp = readl(&xhci->cap_regs->db_off);
|
||||
xhci_dbg(xhci, "// @%p = 0x%x DBOFF\n", &xhci->cap_regs->db_off, temp);
|
||||
xhci_dbg(xhci, "// Doorbell array at %p:\n", xhci->dba);
|
||||
xhci_dbg(xhci, "// @%pK = 0x%x DBOFF\n", &xhci->cap_regs->db_off, temp);
|
||||
xhci_dbg(xhci, "// Doorbell array at %pK:\n", xhci->dba);
|
||||
}
|
||||
|
||||
static void xhci_print_cap_regs(struct xhci_hcd *xhci)
|
||||
@ -58,7 +58,7 @@ static void xhci_print_cap_regs(struct xhci_hcd *xhci)
|
||||
u32 temp;
|
||||
u32 hci_version;
|
||||
|
||||
xhci_dbg(xhci, "xHCI capability registers at %p:\n", xhci->cap_regs);
|
||||
xhci_dbg(xhci, "xHCI capability registers at %pK:\n", xhci->cap_regs);
|
||||
|
||||
temp = readl(&xhci->cap_regs->hc_capbase);
|
||||
hci_version = HC_VERSION(temp);
|
||||
@ -155,7 +155,7 @@ static void xhci_print_status(struct xhci_hcd *xhci)
|
||||
|
||||
static void xhci_print_op_regs(struct xhci_hcd *xhci)
|
||||
{
|
||||
xhci_dbg(xhci, "xHCI operational registers at %p:\n", xhci->op_regs);
|
||||
xhci_dbg(xhci, "xHCI operational registers at %pK:\n", xhci->op_regs);
|
||||
xhci_print_command_reg(xhci);
|
||||
xhci_print_status(xhci);
|
||||
}
|
||||
@ -175,8 +175,8 @@ static void xhci_print_ports(struct xhci_hcd *xhci)
|
||||
ports = HCS_MAX_PORTS(xhci->hcs_params1);
|
||||
addr = &xhci->op_regs->port_status_base;
|
||||
for (i = 0; i < ports; i++) {
|
||||
for (j = 0; j < NUM_PORT_REGS; j++) {
|
||||
xhci_dbg(xhci, "%p port %s reg = 0x%x\n",
|
||||
for (j = 0; j < NUM_PORT_REGS; ++j) {
|
||||
xhci_dbg(xhci, "%pK port %s reg = 0x%x\n",
|
||||
addr, names[j],
|
||||
(unsigned int) readl(addr));
|
||||
addr++;
|
||||
@ -196,35 +196,35 @@ void xhci_print_ir_set(struct xhci_hcd *xhci, int set_num)
|
||||
if (temp == XHCI_INIT_VALUE)
|
||||
return;
|
||||
|
||||
xhci_dbg(xhci, " %p: ir_set[%i]\n", ir_set, set_num);
|
||||
xhci_dbg(xhci, " %pK: ir_set[%i]\n", ir_set, set_num);
|
||||
|
||||
xhci_dbg(xhci, " %p: ir_set.pending = 0x%x\n", addr,
|
||||
xhci_dbg(xhci, " %pK: ir_set.pending = 0x%x\n", addr,
|
||||
(unsigned int)temp);
|
||||
|
||||
addr = &ir_set->irq_control;
|
||||
temp = readl(addr);
|
||||
xhci_dbg(xhci, " %p: ir_set.control = 0x%x\n", addr,
|
||||
xhci_dbg(xhci, " %pK: ir_set.control = 0x%x\n", addr,
|
||||
(unsigned int)temp);
|
||||
|
||||
addr = &ir_set->erst_size;
|
||||
temp = readl(addr);
|
||||
xhci_dbg(xhci, " %p: ir_set.erst_size = 0x%x\n", addr,
|
||||
xhci_dbg(xhci, " %pK: ir_set.erst_size = 0x%x\n", addr,
|
||||
(unsigned int)temp);
|
||||
|
||||
addr = &ir_set->rsvd;
|
||||
temp = readl(addr);
|
||||
if (temp != XHCI_INIT_VALUE)
|
||||
xhci_dbg(xhci, " WARN: %p: ir_set.rsvd = 0x%x\n",
|
||||
xhci_dbg(xhci, " WARN: %pK: ir_set.rsvd = 0x%x\n",
|
||||
addr, (unsigned int)temp);
|
||||
|
||||
addr = &ir_set->erst_base;
|
||||
temp_64 = xhci_read_64(xhci, addr);
|
||||
xhci_dbg(xhci, " %p: ir_set.erst_base = @%08llx\n",
|
||||
xhci_dbg(xhci, " %pK: ir_set.erst_base = @%08llx\n",
|
||||
addr, temp_64);
|
||||
|
||||
addr = &ir_set->erst_dequeue;
|
||||
temp_64 = xhci_read_64(xhci, addr);
|
||||
xhci_dbg(xhci, " %p: ir_set.erst_dequeue = @%08llx\n",
|
||||
xhci_dbg(xhci, " %pK: ir_set.erst_dequeue = @%08llx\n",
|
||||
addr, temp_64);
|
||||
}
|
||||
|
||||
@ -233,15 +233,15 @@ void xhci_print_run_regs(struct xhci_hcd *xhci)
|
||||
u32 temp;
|
||||
int i;
|
||||
|
||||
xhci_dbg(xhci, "xHCI runtime registers at %p:\n", xhci->run_regs);
|
||||
xhci_dbg(xhci, "xHCI runtime registers at %pK:\n", xhci->run_regs);
|
||||
temp = readl(&xhci->run_regs->microframe_index);
|
||||
xhci_dbg(xhci, " %p: Microframe index = 0x%x\n",
|
||||
xhci_dbg(xhci, " %pK: Microframe index = 0x%x\n",
|
||||
&xhci->run_regs->microframe_index,
|
||||
(unsigned int) temp);
|
||||
for (i = 0; i < 7; i++) {
|
||||
temp = readl(&xhci->run_regs->rsvd[i]);
|
||||
if (temp != XHCI_INIT_VALUE)
|
||||
xhci_dbg(xhci, " WARN: %p: Rsvd[%i] = 0x%x\n",
|
||||
xhci_dbg(xhci, " WARN: %pK: Rsvd[%i] = 0x%x\n",
|
||||
&xhci->run_regs->rsvd[i],
|
||||
i, (unsigned int) temp);
|
||||
}
|
||||
|
@ -1021,7 +1021,7 @@ int xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id,
|
||||
|
||||
/* Point to output device context in dcbaa. */
|
||||
xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma);
|
||||
xhci_dbg(xhci, "Set slot id %d dcbaa entry %p to 0x%llx\n",
|
||||
xhci_dbg(xhci, "Set slot id %d dcbaa entry %pK to 0x%llx\n",
|
||||
slot_id,
|
||||
&xhci->dcbaa->dev_context_ptrs[slot_id],
|
||||
le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id]));
|
||||
@ -1196,7 +1196,7 @@ int xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *ud
|
||||
if (udev->tt->multi)
|
||||
slot_ctx->dev_info |= cpu_to_le32(DEV_MTT);
|
||||
}
|
||||
xhci_dbg(xhci, "udev->tt = %p\n", udev->tt);
|
||||
xhci_dbg(xhci, "udev->tt = %pK\n", udev->tt);
|
||||
xhci_dbg(xhci, "udev->ttport = 0x%x\n", udev->ttport);
|
||||
|
||||
/* Step 4 - ring already allocated */
|
||||
@ -2024,15 +2024,15 @@ static int xhci_test_trb_in_td(struct xhci_hcd *xhci,
|
||||
if (seg != result_seg) {
|
||||
xhci_warn(xhci, "WARN: %s TRB math test %d failed!\n",
|
||||
test_name, test_number);
|
||||
xhci_warn(xhci, "Tested TRB math w/ seg %p and "
|
||||
xhci_warn(xhci, "Tested TRB math w/ seg %pK and "
|
||||
"input DMA 0x%llx\n",
|
||||
input_seg,
|
||||
(unsigned long long) input_dma);
|
||||
xhci_warn(xhci, "starting TRB %p (0x%llx DMA), "
|
||||
"ending TRB %p (0x%llx DMA)\n",
|
||||
xhci_warn(xhci, "starting TRB %pK (0x%llx DMA), "
|
||||
"ending TRB %pK (0x%llx DMA)\n",
|
||||
start_trb, start_dma,
|
||||
end_trb, end_dma);
|
||||
xhci_warn(xhci, "Expected seg %p, got seg %p\n",
|
||||
xhci_warn(xhci, "Expected seg %pK, got seg %pK\n",
|
||||
result_seg, seg);
|
||||
trb_in_td(xhci, input_seg, start_trb, end_trb, input_dma,
|
||||
true);
|
||||
@ -2181,7 +2181,7 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
|
||||
rhub = &xhci->usb2_rhub;
|
||||
} else {
|
||||
xhci_warn(xhci, "Ignoring unknown port speed, "
|
||||
"Ext Cap %p, revision = 0x%x\n",
|
||||
"Ext Cap %pK, revision = 0x%x\n",
|
||||
addr, major_revision);
|
||||
/* Ignoring port protocol we can't understand. FIXME */
|
||||
return;
|
||||
@ -2196,7 +2196,7 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
|
||||
port_offset = XHCI_EXT_PORT_OFF(temp);
|
||||
port_count = XHCI_EXT_PORT_COUNT(temp);
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"Ext Cap %p, port offset = %u, "
|
||||
"Ext Cap %pK, port offset = %u, "
|
||||
"count = %u, revision = 0x%x",
|
||||
addr, port_offset, port_count, major_revision);
|
||||
/* Port count includes the current port offset */
|
||||
@ -2258,7 +2258,7 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
|
||||
for (i = port_offset; i < (port_offset + port_count); i++) {
|
||||
/* Duplicate entry. Ignore the port if the revisions differ. */
|
||||
if (xhci->port_array[i] != 0) {
|
||||
xhci_warn(xhci, "Duplicate port entry, Ext Cap %p,"
|
||||
xhci_warn(xhci, "Duplicate port entry, Ext Cap %pK,"
|
||||
" port %u\n", addr, i);
|
||||
xhci_warn(xhci, "Port was marked as USB %u, "
|
||||
"duplicated as USB %u\n",
|
||||
@ -2394,7 +2394,7 @@ static int xhci_setup_port_arrays(struct xhci_hcd *xhci, gfp_t flags)
|
||||
NUM_PORT_REGS*i;
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"USB 2.0 port at index %u, "
|
||||
"addr = %p", i,
|
||||
"addr = %pK", i,
|
||||
xhci->usb2_ports[port_index]);
|
||||
port_index++;
|
||||
if (port_index == xhci->num_usb2_ports)
|
||||
@ -2415,7 +2415,7 @@ static int xhci_setup_port_arrays(struct xhci_hcd *xhci, gfp_t flags)
|
||||
NUM_PORT_REGS*i;
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"USB 3.0 port at index %u, "
|
||||
"addr = %p", i,
|
||||
"addr = %pK", i,
|
||||
xhci->usb3_ports[port_index]);
|
||||
port_index++;
|
||||
if (port_index == xhci->num_usb3_ports)
|
||||
@ -2455,7 +2455,7 @@ int xhci_event_ring_setup(struct xhci_hcd *xhci, struct xhci_ring **er,
|
||||
erst->num_entries = ERST_NUM_SEGS;
|
||||
erst->erst_dma_addr = dma;
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"intr# %d: num segs = %i, virt addr = %p, dma addr = 0x%llx",
|
||||
"intr# %d: num segs = %i, virt addr = %pK, dma addr = 0x%llx",
|
||||
intr_num,
|
||||
erst->num_entries,
|
||||
erst->entries,
|
||||
@ -2527,7 +2527,7 @@ int xhci_sec_event_ring_setup(struct usb_hcd *hcd, unsigned int intr_num)
|
||||
|| !xhci->sec_event_ring || !xhci->sec_erst ||
|
||||
intr_num >= xhci->max_interrupters) {
|
||||
xhci_err(xhci,
|
||||
"%s:state %x ir_set %p evt_ring %p erst %p intr# %d\n",
|
||||
"%s:state %x ir_set %pK evt_ring %pK erst %pK intr# %d\n",
|
||||
__func__, xhci->xhc_state, xhci->sec_ir_set,
|
||||
xhci->sec_event_ring, xhci->sec_erst, intr_num);
|
||||
return -EINVAL;
|
||||
@ -2654,7 +2654,7 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags)
|
||||
memset(xhci->dcbaa, 0, sizeof *(xhci->dcbaa));
|
||||
xhci->dcbaa->dma = dma;
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"// Device context base array address = 0x%llx (DMA), %p (virt)",
|
||||
"// Device context base array address = 0x%llx (DMA), %pK (virt)",
|
||||
(unsigned long long)xhci->dcbaa->dma, xhci->dcbaa);
|
||||
xhci_write_64(xhci, dma, &xhci->op_regs->dcbaa_ptr);
|
||||
|
||||
@ -2695,7 +2695,7 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags)
|
||||
if (!xhci->cmd_ring)
|
||||
goto fail;
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"Allocated command ring at %p", xhci->cmd_ring);
|
||||
"Allocated command ring at %pK", xhci->cmd_ring);
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init, "First segment DMA is 0x%llx",
|
||||
(unsigned long long)xhci->cmd_ring->first_seg->dma);
|
||||
|
||||
|
@ -325,7 +325,7 @@ static void xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhci,
|
||||
|
||||
i_cmd->status = COMP_COMMAND_RING_STOPPED;
|
||||
|
||||
xhci_dbg(xhci, "Turn aborted command %p to no-op\n",
|
||||
xhci_dbg(xhci, "Turn aborted command %pK to no-op\n",
|
||||
i_cmd->command_trb);
|
||||
|
||||
trb_to_noop(i_cmd->command_trb, TRB_CMD_NOOP);
|
||||
@ -595,7 +595,7 @@ void xhci_find_new_dequeue_state(struct xhci_hcd *xhci,
|
||||
"Cycle state = 0x%x", state->new_cycle_state);
|
||||
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
||||
"New dequeue segment = %p (virtual)",
|
||||
"New dequeue segment = %pK (virtual)",
|
||||
state->new_deq_seg);
|
||||
addr = xhci_trb_virt_to_dma(state->new_deq_seg, state->new_deq_ptr);
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
||||
@ -757,7 +757,7 @@ static void xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id,
|
||||
* short, don't muck with the stream ID after
|
||||
* submission.
|
||||
*/
|
||||
xhci_warn(xhci, "WARN Cancelled URB %p "
|
||||
xhci_warn(xhci, "WARN Cancelled URB %pK "
|
||||
"has invalid stream ID %u.\n",
|
||||
cur_td->urb,
|
||||
cur_td->urb->stream_id);
|
||||
@ -1117,7 +1117,7 @@ static void xhci_handle_cmd_set_deq(struct xhci_hcd *xhci, int slot_id,
|
||||
ep_ring, ep_index);
|
||||
} else {
|
||||
xhci_warn(xhci, "Mismatch between completed Set TR Deq Ptr command & xHCI internal state.\n");
|
||||
xhci_warn(xhci, "ep deq seg = %p, deq ptr = %p\n",
|
||||
xhci_warn(xhci, "ep deq seg = %pK, deq ptr = %pK\n",
|
||||
ep->queued_deq_seg, ep->queued_deq_ptr);
|
||||
}
|
||||
}
|
||||
@ -4029,7 +4029,7 @@ void xhci_queue_new_dequeue_state(struct xhci_hcd *xhci,
|
||||
int ret;
|
||||
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
||||
"Set TR Deq Ptr cmd, new deq seg = %p (0x%llx dma), new deq ptr = %p (0x%llx dma), new cycle = %u",
|
||||
"Set TR Deq Ptr cmd, new deq seg = %pK (0x%llx dma), new deq ptr = %pK (0x%llx dma), new cycle = %u",
|
||||
deq_state->new_deq_seg,
|
||||
(unsigned long long)deq_state->new_deq_seg->dma,
|
||||
deq_state->new_deq_ptr,
|
||||
@ -4041,7 +4041,7 @@ void xhci_queue_new_dequeue_state(struct xhci_hcd *xhci,
|
||||
deq_state->new_deq_ptr);
|
||||
if (addr == 0) {
|
||||
xhci_warn(xhci, "WARN Cannot submit Set TR Deq Ptr\n");
|
||||
xhci_warn(xhci, "WARN deq seg = %p, deq pt = %p\n",
|
||||
xhci_warn(xhci, "WARN deq seg = %pK, deq pt = %pK\n",
|
||||
deq_state->new_deq_seg, deq_state->new_deq_ptr);
|
||||
return;
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ DECLARE_EVENT_CLASS(xhci_log_ctx,
|
||||
((HCC_64BYTE_CONTEXT(xhci->hcc_params) + 1) * 32) *
|
||||
((ctx->type == XHCI_CTX_TYPE_INPUT) + ep_num + 1));
|
||||
),
|
||||
TP_printk("ctx_64=%d, ctx_type=%u, ctx_dma=@%llx, ctx_va=@%p",
|
||||
TP_printk("\nctx_64=%d, ctx_type=%u, ctx_dma=@%llx, ctx_va=@%pK",
|
||||
__entry->ctx_64, __entry->ctx_type,
|
||||
(unsigned long long) __entry->ctx_dma, __entry->ctx_va
|
||||
)
|
||||
|
@ -621,7 +621,7 @@ int xhci_run(struct usb_hcd *hcd)
|
||||
|
||||
temp = readl(&xhci->ir_set->irq_pending);
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||
"// Enabling event ring interrupter %p by writing 0x%x to irq_pending",
|
||||
"// Enabling event ring interrupter %pK by writing 0x%x to irq_pending",
|
||||
xhci->ir_set, (unsigned int) ER_IRQ_ENABLE(temp));
|
||||
writel(ER_IRQ_ENABLE(temp), &xhci->ir_set->irq_pending);
|
||||
xhci_print_ir_set(xhci, 0);
|
||||
@ -1498,7 +1498,7 @@ static int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
|
||||
i = urb_priv->num_tds_done;
|
||||
if (i < urb_priv->num_tds)
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
||||
"Cancel URB %p, dev %s, ep 0x%x, "
|
||||
"Cancel URB %pK, dev %s, ep 0x%x, "
|
||||
"starting at offset 0x%llx",
|
||||
urb, urb->dev->devpath,
|
||||
urb->ep->desc.bEndpointAddress,
|
||||
@ -1573,7 +1573,7 @@ static int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev,
|
||||
if (xhci->xhc_state & XHCI_STATE_DYING)
|
||||
return -ENODEV;
|
||||
|
||||
xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev);
|
||||
xhci_dbg(xhci, "%s called for udev %pK\n", __func__, udev);
|
||||
drop_flag = xhci_get_endpoint_flag(&ep->desc);
|
||||
if (drop_flag == SLOT_FLAG || drop_flag == EP0_FLAG) {
|
||||
xhci_dbg(xhci, "xHCI %s - can't drop slot or ep 0 %#x\n",
|
||||
@ -1600,7 +1600,7 @@ static int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev,
|
||||
xhci_get_endpoint_flag(&ep->desc)) {
|
||||
/* Do not warn when called after a usb_device_reset */
|
||||
if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL)
|
||||
xhci_warn(xhci, "xHCI %s called with disabled ep %p\n",
|
||||
xhci_warn(xhci, "xHCI %s called with disabled ep %pK\n",
|
||||
__func__, ep);
|
||||
return 0;
|
||||
}
|
||||
@ -1695,7 +1695,7 @@ static int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev,
|
||||
* ignore this request.
|
||||
*/
|
||||
if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) {
|
||||
xhci_warn(xhci, "xHCI %s called with enabled ep %p\n",
|
||||
xhci_warn(xhci, "xHCI %s called with enabled ep %pK\n",
|
||||
__func__, ep);
|
||||
return 0;
|
||||
}
|
||||
@ -2689,7 +2689,7 @@ static int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev)
|
||||
(xhci->xhc_state & XHCI_STATE_REMOVING))
|
||||
return -ENODEV;
|
||||
|
||||
xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev);
|
||||
xhci_dbg(xhci, "%s called for udev %pK\n", __func__, udev);
|
||||
virt_dev = xhci->devs[udev->slot_id];
|
||||
|
||||
command = xhci_alloc_command(xhci, false, true, GFP_KERNEL);
|
||||
@ -2779,7 +2779,7 @@ static void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev)
|
||||
return;
|
||||
xhci = hcd_to_xhci(hcd);
|
||||
|
||||
xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev);
|
||||
xhci_dbg(xhci, "%s called for udev %pK\n", __func__, udev);
|
||||
virt_dev = xhci->devs[udev->slot_id];
|
||||
/* Free any rings allocated for added endpoints */
|
||||
for (i = 0; i < 31; i++) {
|
||||
@ -2829,7 +2829,7 @@ static void xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci,
|
||||
if (addr == 0) {
|
||||
xhci_warn(xhci, "WARN Cannot submit config ep after "
|
||||
"reset ep command\n");
|
||||
xhci_warn(xhci, "WARN deq seg = %p, deq ptr = %p\n",
|
||||
xhci_warn(xhci, "WARN deq seg = %pK, deq ptr = %pK\n",
|
||||
deq_state->new_deq_seg,
|
||||
deq_state->new_deq_ptr);
|
||||
return;
|
||||
@ -3858,7 +3858,7 @@ static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev,
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_address,
|
||||
"Op regs DCBAA ptr = %#016llx", temp_64);
|
||||
xhci_dbg_trace(xhci, trace_xhci_dbg_address,
|
||||
"Slot ID %d dcbaa entry @%p = %#016llx",
|
||||
"Slot ID %d dcbaa entry @%pK = %#016llx",
|
||||
udev->slot_id,
|
||||
&xhci->dcbaa->dev_context_ptrs[udev->slot_id],
|
||||
(unsigned long long)
|
||||
|
Loading…
x
Reference in New Issue
Block a user