cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-xhci-make-port-reset-trace-point-more-verbose.patch

9ae3a8
From 41b79f8a3a86f20b45b073f9f28e3a6f9f4dc6d9 Mon Sep 17 00:00:00 2001
9ae3a8
From: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Date: Fri, 11 Jul 2014 14:21:09 +0200
9ae3a8
Subject: [PATCH 29/43] xhci: make port reset trace point more verbose
9ae3a8
9ae3a8
Message-id: <1405088470-24115-37-git-send-email-kraxel@redhat.com>
9ae3a8
Patchwork-id: 59840
9ae3a8
O-Subject: [RHEL-7.1 qemu-kvm PATCH 36/37] xhci: make port reset trace point more verbose
9ae3a8
Bugzilla: 980833
9ae3a8
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
9ae3a8
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
(cherry picked from commit 7bd3055ffd5f87d83f04659e496c91fbfc839143)
9ae3a8
---
9ae3a8
 hw/usb/hcd-xhci.c | 2 +-
9ae3a8
 trace-events      | 2 +-
9ae3a8
 2 files changed, 2 insertions(+), 2 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/usb/hcd-xhci.c | 2 +-
9ae3a8
 trace-events      | 2 +-
9ae3a8
 2 files changed, 2 insertions(+), 2 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
9ae3a8
index dc10ab0..32568cb 100644
9ae3a8
--- a/hw/usb/hcd-xhci.c
9ae3a8
+++ b/hw/usb/hcd-xhci.c
9ae3a8
@@ -2854,7 +2854,7 @@ static void xhci_port_update(XHCIPort *port, int is_detach)
9ae3a8
 
9ae3a8
 static void xhci_port_reset(XHCIPort *port, bool warm_reset)
9ae3a8
 {
9ae3a8
-    trace_usb_xhci_port_reset(port->portnr);
9ae3a8
+    trace_usb_xhci_port_reset(port->portnr, warm_reset);
9ae3a8
 
9ae3a8
     if (!xhci_port_have_device(port)) {
9ae3a8
         return;
9ae3a8
diff --git a/trace-events b/trace-events
9ae3a8
index 117c2ce..e7bb7e0 100644
9ae3a8
--- a/trace-events
9ae3a8
+++ b/trace-events
9ae3a8
@@ -363,7 +363,7 @@ usb_xhci_irq_msix_use(uint32_t nr) "nr %d"
9ae3a8
 usb_xhci_irq_msix_unuse(uint32_t nr) "nr %d"
9ae3a8
 usb_xhci_queue_event(uint32_t vector, uint32_t idx, const char *trb, const char *evt, uint64_t param, uint32_t status, uint32_t control) "v %d, idx %d, %s, %s, p %016" PRIx64 ", s %08x, c 0x%08x"
9ae3a8
 usb_xhci_fetch_trb(uint64_t addr, const char *name, uint64_t param, uint32_t status, uint32_t control) "addr %016" PRIx64 ", %s, p %016" PRIx64 ", s %08x, c 0x%08x"
9ae3a8
-usb_xhci_port_reset(uint32_t port) "port %d"
9ae3a8
+usb_xhci_port_reset(uint32_t port, bool warm) "port %d, warm %d"
9ae3a8
 usb_xhci_port_link(uint32_t port, uint32_t pls) "port %d, pls %d"
9ae3a8
 usb_xhci_port_notify(uint32_t port, uint32_t pls) "port %d, bits %x"
9ae3a8
 usb_xhci_slot_enable(uint32_t slotid) "slotid %d"
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8