From 69126ad1cf0a3c499dcc8a8fef543b5240d8fb59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 17 May 2016 07:01:27 +0200 Subject: [PATCH] usbip: hide "Not yet implemented" message to improve performance QubesOS/qubes-issues#531 --- .../usbip-disable-not-implemented-error.patch | 17 +++++++++++++++++ series.conf | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 patches.qubes/usbip-disable-not-implemented-error.patch diff --git a/patches.qubes/usbip-disable-not-implemented-error.patch b/patches.qubes/usbip-disable-not-implemented-error.patch new file mode 100644 index 0000000..3afdd12 --- /dev/null +++ b/patches.qubes/usbip-disable-not-implemented-error.patch @@ -0,0 +1,17 @@ +vhci_get_frame_number is called really often for USB cameras and this message +alone is responsible for major performance drop. Since the driver seems to +function ok, simply disable the message for now. + +diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c +index 7fbe19d..313a79b 100644 +--- a/drivers/usb/usbip/vhci_hcd.c ++++ b/drivers/usb/usbip/vhci_hcd.c +@@ -928,7 +928,7 @@ static void vhci_stop(struct usb_hcd *hcd) + + static int vhci_get_frame_number(struct usb_hcd *hcd) + { +- pr_err("Not yet implemented\n"); ++ //pr_err("Not yet implemented\n"); + return 0; + } + diff --git a/series.conf b/series.conf index dbfad8a..985ea2b 100644 --- a/series.conf +++ b/series.conf @@ -11,6 +11,8 @@ patches.xen/irq-bind-debug-log.patch patches.xen/pvops-blkfront-removable-flag.patch patches.xen/pvops-blkfront-eject-support.patch +patches.qubes/usbip-disable-not-implemented-error.patch + # Security fixes patches.xen/xsa155-linux-0008-xen-Add-RING_COPY_RESPONSE.patch patches.xen/xsa155-linux44-0009-xen-netfront-copy-response-out-of-shared-buffer-befo.patch