Commit Graph

613770 Commits

Author SHA1 Message Date
Wyon Bi
a8a8abb754 arm64: dts: rockchip: Add support for PX30 Z7-A0 board
Change-Id: Ide6b4520306f21484d206ee3d31c581bbc42226a
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-29 10:17:32 +08:00
Wyon Bi
0573096c0e drm/rockchip: rk618: Add support for dsi
Change-Id: I14e43f6edccf62392ac6a005ce12cf0961583573
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-29 10:17:32 +08:00
William Wu
56eefb4ebb phy: rockchip-inno-combphy: disable lane 0 for usb3 to save power
For rk1808 platform, when system enters deep sleep,
it doesn't need usb3 phy to detect any signals, so
we can disable lane 0 to reduce power consumption.

With this patch, I test the 0.8V and 1.8V power
consumption for USB 3.0 mode while system enters
deep sleep on RK1808-EVB.

- 0.8V : 3.5mA
- 1.8V : 0.3mA

Change-Id: I2c080b2787e5358c7495b9a237d0d2b338cc145e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-11-29 10:15:23 +08:00
Finley Xiao
6e0dcc43d0 arm64: dts: rockchip: rk3308: Add wide-temperature configure for cpu
Change-Id: I951c82b40dd9cca919cdbe0c5bd06bda71059904
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-28 17:43:32 +08:00
Hu Kejun
c39d9b99cd media: rockchip: isp1: support get embedded data
support get embedded data on rk3399/rk3288

Change-Id: I2ee2be79d23917384661173714f3e5cb6482ae04
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-11-28 11:57:47 +08:00
Hu Kejun
5b63dff013 media: rockchip: isp1: add version of isp in querycap
Change-Id: Ie6953c8cf48ff8629d5bcb166d88fd6946e5405f
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-11-28 11:56:45 +08:00
Jiri Slaby
4542ef41d3 UPSTREAM: usb: devio, do not warn when allocation fails
usbdev_mmap allocates a buffer. The size of the buffer is determined
by a user. So with this code (no need to be root):

	int fd = open("/dev/bus/usb/001/001", O_RDONLY);
	mmap(NULL, 0x800000, PROT_READ, MAP_SHARED, fd, 0);

we can see a warning:

WARNING: CPU: 0 PID: 21771 at ../mm/page_alloc.c:3563 __alloc_pages_slowpath+0x1036/0x16e0()
...
Call Trace:
 [<ffffffff8117a3ae>] ? warn_slowpath_null+0x2e/0x40
 [<ffffffff815178b6>] ? __alloc_pages_slowpath+0x1036/0x16e0
 [<ffffffff81516880>] ? warn_alloc_failed+0x250/0x250
 [<ffffffff8151226b>] ? get_page_from_freelist+0x75b/0x28b0
 [<ffffffff815184e3>] ? __alloc_pages_nodemask+0x583/0x6b0
 [<ffffffff81517f60>] ? __alloc_pages_slowpath+0x16e0/0x16e0
 [<ffffffff810565d4>] ? dma_generic_alloc_coherent+0x104/0x220
 [<ffffffffa0269e56>] ? hcd_buffer_alloc+0x1d6/0x3e0 [usbcore]
 [<ffffffffa0269c80>] ? hcd_buffer_destroy+0xa0/0xa0 [usbcore]
 [<ffffffffa0228f05>] ? usb_alloc_coherent+0x65/0x90 [usbcore]
 [<ffffffffa0275c05>] ? usbdev_mmap+0x1a5/0x770 [usbcore]
...

Allocations like this one should be marked as __GFP_NOWARN. So do so.

The size could be also clipped by something like:
	if (size >= (1 << (MAX_ORDER + PAGE_SHIFT - 1)))
		return -ENOMEM;
But I think the overall limit of 16M (by usbfs_increase_memory_usage)
is enough, so that we only silence the warning here.

Change-Id: I4765cb06f86fc39da83172cf116a63838e2586eb
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Steinar H. Gunderson <sesse@google.com>
Cc: Markus Rechberger <mrechberger@gmail.com>
Fixes: f7d34b445a (USB: Add support for usbfs zerocopy.)
Cc: 4.6+ <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 70f7ca9a02)
2018-11-27 19:47:04 +08:00
Steinar H. Gunderson
377e6b874e BACKPORT: USB: Add support for usbfs zerocopy.
Add a new interface for userspace to preallocate memory that can be
used with usbfs. This gives two primary benefits:

 - Zerocopy; data no longer needs to be copied between the userspace
   and the kernel, but can instead be read directly by the driver from
   userspace's buffers. This works for all kinds of transfers (even if
   nonsensical for control and interrupt transfers); isochronous also
   no longer need to memset() the buffer to zero to avoid leaking kernel data.

 - Once the buffers are allocated, USB transfers can no longer fail due to
   memory fragmentation; previously, long-running programs could run into
   problems finding a large enough contiguous memory chunk, especially on
   embedded systems or at high rates.

Memory is allocated by using mmap() against the usbfs file descriptor,
and similarly deallocated by munmap(). Once memory has been allocated,
using it as pointers to a bulk or isochronous operation means you will
automatically get zerocopy behavior. Note that this also means you cannot
modify outgoing data until the transfer is complete. The same holds for
data on the same cache lines as incoming data; DMA modifying them at the
same time could lead to your changes being overwritten.

There's a new capability USBDEVFS_CAP_MMAP that userspace can query to see
if the running kernel supports this functionality, if just trying mmap() is
not acceptable.

Largely based on a patch by Markus Rechberger with some updates. The original
patch can be found at:

  http://sundtek.de/support/devio_mmap_v0.4.diff

Change-Id: I22f101b6e1a1fb027288f1c345da1750c39396c9
Signed-off-by: Steinar H. Gunderson <sesse@google.com>
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit f7d34b445a)
2018-11-27 19:47:04 +08:00
Guochun Huang
6e65b8ce4b arm64: dts: rockchip: Add new dts file for rk3399-tve1030g avb and separate android firmware
Change-Id: I71217d8e261aa136f93dc8fdaada1e78dbfedfba
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2018-11-27 19:32:23 +08:00
Xing Zheng
c977309705 dt-bindings: sound: rockchip: i2s-tdm: add property for RX/TX path route mapping
This patch add property 'rockchip,i2s-rx-route' and
'rockchip,i2s-tx-route' for capture/playback data
route mapping.

Change-Id: I8c790bfaf33b8e72c19e0b0ad5115d5d45de1662
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-11-27 18:10:59 +08:00
Xing Zheng
e2e5c0bb24 ASoC: rockchip: i2s-tdm: add supports i2s RX/TX route map
Change-Id: I4a6834a95bf34a8fd75613296488517134321c9d
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-11-27 18:10:59 +08:00
Wyon Bi
d1db910421 arm64: dts: rockchip: Add support for PX30 EVB EXT RK618 board
Change-Id: I4310f7eb7eef115b10477e85e5b5a6e1bfe8e10e
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 17:44:39 +08:00
Wyon Bi
4cbeda81d9 arm64: dts: rockchip: Add support for PX30 AD-R35-MB board
Change-Id: Id3a800d8dcea0e9f93bf0f82b8892861a8b8a87f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 17:44:38 +08:00
Wyon Bi
755c427fda drm/rockchip: rk618: Add support for hdmi
Change-Id: I009e39d4d81e3e0c3f3937ea830f170f08272e21
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 17:44:37 +08:00
Wyon Bi
c3b4580d4e Revert "drm/rockchip: inno_hdmi: add support for rk618"
This reverts commit 9ff817b7ab.

Change-Id: Id0f247c9a867928a62a00874cbb17f1f3b80cef2
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 17:44:33 +08:00
Wyon Bi
0b5d5eafb1 drm/rockchip: rk618: refactor display pipeline
It's hard to do platform specific initialization in the current pipeline.
This patch convert to generic bridge interface and let it attach to
a platform specific encoder.

   CRTC    -->  Encoder  --> Bridge --> Connector --> Panel
(platform)

This patch changed the pipeline to:

   CRTC    -->  Encoder  --> Bridge --> Connector --> Panel
(platform)     (platform)

Change-Id: I43e0dab05e41965767f55cfe15b3674a71911312
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 17:44:31 +08:00
Wyon Bi
90c831e971 mfd: rk618: Fix subdevices name
Change-Id: I4e88bdabdbc2c26ac3c734da914eca6e467bde1d
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 15:09:00 +08:00
Wyon Bi
92fe3507da clk/rockchip/rk618: pll: support bypass mode
Change-Id: I698f73b69354d4f32f38a7c9874520b3813d0900
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 15:09:00 +08:00
Sandy Huang
f534c950b8 drm/rockchip: vop: add rk312x vop premultiplied alpha config
Change-Id: I444a7c36731da8984e23368dc11e5af8221b0da8
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-11-27 14:12:38 +08:00
Wyon Bi
2238180c42 drm/panel: panel-simple: Fix possible unbalanced regualtor_disable in shutdown
Change-Id: I67b663fca8e65437dc1f7b410b32e90f64cf1734
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-27 08:32:36 +08:00
Wyon Bi
51135826cf PM / devfreq: rockchip_dmc: support DPI connector
Change-Id: I8ec24e5763da307e4a030cbe81af0c0805540df9
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Wyon Bi
7399c982ae clk: rockchip: clk-ddr: support DPI connector
Change-Id: If78851e4908b5f4547cb93496d928d916e893eac
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Wyon Bi
ecd9353665 drm/rockchip: vop: Add support for DPI connector
Change-Id: I26ae8d35b8d0eccb2ac39c14277cbd8260fe4805
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Wyon Bi
74ff2ba980 drm/rockchip: lvds: Fix encoder and connector type
Change-Id: I35c06179306502859e1d1a01f95c5cb1d688baae
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Wyon Bi
da0896f658 drm/rockchip: rgb: Fix encoder and connector type
Change-Id: Iebe61f16f4348a605289dae3be447324c6478267
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-26 21:16:13 +08:00
Eric Anholt
bfd253e111 BACKPORT: drm: Add an encoder and connector type enum for DPI.
Right now exynos is exposing DPI as a TMDS encoder and VGA connector,
which seems rather misleading.  This isn't just an internal detail,
since xrandr actually exposes "VGA" as the output name.  Define some
new enums so that vc4's DPI can have a more informative name.

I considered other names for the connector as well.  For VC4, the
Adafruit DPI kippah takes the 28 GPIO pins and routes them to a
standard-ish 40-pin FPC connector, but "40-pin FPC" doesn't uniquely
identify an ordering of pins (apparently some other orderings exist),
doesn't explain things as well for the user (who, if anything, knows
their product is a DPI kippah/panel combo), and actually doesn't have
to exist (one could connect the 28 GPIOs directly to something else).
Simply "DPI" seems like a good compromise name to distinguish from the
HDMI, DSI, and TV connectors .

Change-Id: Ic7b79c2e50f3629f56bc78c432834e2c58938cd9
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 0b27c02a7f)
2018-11-26 21:16:13 +08:00
Shixiang Zheng
2c9beff6a3 video/rockchip: rga2: fix stuck problem on rk3368
Change-Id: Ic7a3d693c526857959a96607a68b490e56897be5
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-11-26 17:27:36 +08:00
Elaine Zhang
bfc67611a9 clk: rockchip: rk1808: fix up the mac clk setting
Change-Id: I589f86a629ac8607fa24025cc90dd9bf21b414d5
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-11-23 19:54:42 +08:00
Hu Kejun
5aa0e68cf3 arm64: dts: rockchip: px30: add grf for rkisp1
when connect to dvp camera, we need grf to config cif data width

Change-Id: I798d841149e1fd9f7c3fb58bd39d1706bf85ee5d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-11-23 19:50:14 +08:00
Weixin Zhou
62cd4c439b arm64: dts: rockchip: rk3399pro-evb: adjust sdmmc gpio drive strength
Change-Id: I8c33804715300fbbc0fc7782b26323d870eb6408
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 17:47:35 +08:00
Weixin Zhou
959beb17c8 arm64: dts: rockchip: rk3399: add gpio drive strength 10ma
Change-Id: Iff6303af2e87425b0509fd962b9e6b2fca8eb896
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 17:47:05 +08:00
Zhangbin Tong
c83f890fe9 arm64: dts: rockchip: rk3328-box-liantong: Add sleep mode configuration
The board is adjusted with pwm regulator for logic and arm voltage.

The regulator sleep mode is notified by the GPIO pin issued by the soc
The pwm regulator has no pin control for sleep switching, and needs to
notify the soc pmu special processing.

Change-Id: Id2c22f26abcdae427a8e30716afbcaab471ea183
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-11-23 17:46:03 +08:00
XiaoDong Huang
f466d1ed8f arm64: dts: rockchip: rk3328: initialize sleep_mode_config
Change-Id: I7e54b5b4ba55a85f967a03bc990640c5d3bdf2e1
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-23 17:45:10 +08:00
XiaoDong Huang
62e6d82613 dt-bindings: suspend: rk3328: add sleep mode config defines
Change-Id: Idb7c031061f5fe115b3a206ce82830e8c024a4c2
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-23 17:44:13 +08:00
Weixin Zhou
f85d9e08a3 arm64: dts: rockchip: rk3399pro-evb-v10: add sdcrad uhs config
Change-Id: I22ba12a1562be3635769894324c84db282ff6568
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 11:17:48 +08:00
Mathias Nyman
a2dc6f6438 UPSTREAM: xhci: fix endpoint context tracer output
Fix incorrent values showed for max Primary stream and
Linear stream array (LSA) values in the endpoint context
decoder.

Change-Id: I05bffa3801f2ff5919d5434c9bbc93711806d424
Fixes: 19a7d0d65c ("usb: host: xhci: add Slot and EP Context tracers")
Cc: <stable@vger.kernel.org> # v4.12+
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 97ef0faf57)
2018-11-22 17:06:59 +08:00
Mathias Nyman
75223156e9 UPSTREAM: xhci: trace slot context when calling xhci_configure_endpoint()
Add trace showing content of input slot context for
configure endpoint and evaluate context commands

Change-Id: I0c6af9e1528edd5d8c36629a28a7969190a2a572
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit e3a78ff022)
2018-11-22 17:06:59 +08:00
Lu Baolu
fca1672f58 UPSTREAM: usb: xhci: Add debugfs interface for xHCI driver
This adds debugfs consumer for xHCI driver. The debugfs entries
read all host registers, device/endpoint contexts, command ring,
event ring and various endpoint rings. With these entries, users
can check the registers and memory spaces used by a host during
run time, or save all the information with a simple 'cp -r' for
post-mortem programs.

The file hierarchy looks like this.

[root of debugfs]
|__usb
|____[e,u,o]hci                 <---------[root for other HCIs]
|____xhci                       <---------------[root for xHCI]
|______0000:00:14.0             <--------------[xHCI host name]
|________reg-cap                <--------[capability registers]
|________reg-op                 <-------[operational registers]
|________reg-runtime            <-----------[runtime registers]
|________reg-ext-#cap_name      <----[extended capability regs]
|________command-ring           <-------[root for command ring]
|__________cycle                <------------------[ring cycle]
|__________dequeue              <--------[ring dequeue pointer]
|__________enqueue              <--------[ring enqueue pointer]
|__________trbs                 <-------------------[ring trbs]
|________event-ring             <---------[root for event ring]
|__________cycle                <------------------[ring cycle]
|__________dequeue              <--------[ring dequeue pointer]
|__________enqueue              <--------[ring enqueue pointer]
|__________trbs                 <-------------------[ring trbs]
|________devices                <------------[root for devices]
|__________#slot_id             <-----------[root for a device]
|____________name               <-----------------[device name]
|____________slot-context       <----------------[slot context]
|____________ep-context         <-----------[endpoint contexts]
|____________ep#ep_index        <--------[root for an endpoint]
|______________cycle            <------------------[ring cycle]
|______________dequeue          <--------[ring dequeue pointer]
|______________enqueue          <--------[ring enqueue pointer]
|______________trbs             <-------------------[ring trbs]

Change-Id: I61b412883e547a257bffc1234ee42fd221b940a6
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 02b6fdc2a1)
2018-11-22 17:06:59 +08:00
Mathias Nyman
0ccd5573b8 UPSTREAM: xhci: add port status tracing
Track the port status in a human readble way each time we get a
port status change event

Change-Id: I14ac1a720e0faca54c694d3b0eb52eac42bccd5d
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 8ca1358bd9)
2018-11-22 17:06:59 +08:00
Mathias Nyman
6ef65af130 UPSTREAM: xhci: Add port status decoder for tracing purposes
Add PORTSC Port status and control register decoder to
show human readable tracing of portsc register

Change-Id: I617493712e58546197748c01eea3f6b33b6dd377
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 2e77a8253d)
2018-11-22 17:06:59 +08:00
Mathias Nyman
70bbbbfe94 UPSTREAM: xhci: add definitions for all port link states
Add definitions for all port link states defined in xhci
specification for PORTSC register.

Will be needed for human readable port status tracing

Change-Id: I1de382f7e45c0a6a5481b92eabb2cf3b3fc68419
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 7344ee328c)
2018-11-22 17:06:59 +08:00
Mathias Nyman
f5137e89e0 UPSTREAM: xhci: rename temp and temp1 variables
temp and temp1 variables are used for port status (portsc) and
command register. Give them more descriptive names

No functional changes

Change-Id: Ic278965bbf21910b36404c90da955c74df69fc95
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 76a0f32b28)
2018-11-22 17:06:58 +08:00
Lu Baolu
57877a9606 UPSTREAM: usb: xhci: refine xhci_decode_trb()
Replace 'TRB_FIELD_TO_TYPE(field3)' with 'type' to simplify
code.

Change-Id: I0553a13c372bf130c195706e597701c691885093
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit d2561626b9)
2018-11-22 17:06:58 +08:00
Lu Baolu
3a3260b23f UPSTREAM: usb: xhci: fix link trb decoding
xhci_decode_trb() treats a link trb in the same way as that for
an event trb. This patch fixes this by decoding the link trb
according to the spec.

Change-Id: Ia582395d828b0823c6279c45247fdcec89a19680
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 96d9a6eb97)
2018-11-22 17:06:58 +08:00
Lu Baolu
b733c7bbe4 UPSTREAM: usb: xhci: remove xhci_dbg_ctx()
XHCI context changes have already been traced by the trace
events. It's unnecessary to put the same message in kernel
log. This patch removes the use of xhci_dbg_ctx().

Change-Id: I0279d03a772ee06965b146b42937ca74f74ffb75
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit c8844f2ddb)
2018-11-22 17:06:58 +08:00
Lu Baolu
b63494bd47 UPSTREAM: usb: xhci: remove xhci_debug_trb()
Every XHCI TRB has already been traced by the trb trace events.
It is unnecessary to put the same message in kernel log. This
patch removes xhci_debug_trb().

Change-Id: I0e5c452f2c133fb4cb8ec62bd5a9c3ef4163a1f2
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 8c10152ec5)
2018-11-22 17:06:58 +08:00
Lu Baolu
b7529e9a64 UPSTREAM: usb: xhci: remove ring debugging code
XHCI ring changes have already been traced by the ring trace
events. It's unnecessary to put the same messages in kernel
log. This patch removes the debugging code for a ring.

Change-Id: Ie15a464c9e82e61adf2e18167c145e78fb1d1fe8
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 121dcf1190)
2018-11-22 17:06:58 +08:00
Lu Baolu
7478583db7 UPSTREAM: usb: xhci: remove xhci_dbg_ep_rings()
xhci_dbg_ep_rings() isn't used in xhci driver anymore. Remove
it to reduce the module binary size.

Change-Id: Ib6c0bf47e60f643f2219c6b01d14ab13f6f6c726
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b7d09fe863)
2018-11-22 17:06:58 +08:00
Lu Baolu
4423e25cae UPSTREAM: usb: xhci: add xhci_log_ring trace events
This patch creates a new event class called xhci_log_ring, and
defines the events used for tracing the change of all kinds of
rings used by an xhci host. An xHCI ring is basically a memory
block shared between software and hardware. By tracing changes
of rings, it makes the life easier for debugging hardware or
software problems.

This info can be used, later, to print, in a human readable way,
the life cycle of an xHCI ring using the trace-cmd tool and the
appropriate plugin.

Change-Id: Ib5934eed68e044054305b1f15925751a870b93a8
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b2d6edbb95)
2018-11-22 17:06:58 +08:00
Zhengjun Xing
0da0fff6c6 UPSTREAM: xhci: add slot and endpoint numbers to debug messages in handle_tx_event
There's one annoyance in how xhci prints debug messages, we often
get logs with messages but it's hard to say from which device and
endpoint the message originates. Add slot_id, ep_index messages
in handle_tx_event.

Change-Id: I0d4fd42e95d8f85a5ba7de0a7ad45d4a2858a78a
Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b7f769ae1b)
2018-11-22 17:06:58 +08:00