Star Zeng
1f279e7a53
Revert "DebugUsb3: Support IOMMU"
...
This reverts commit de8373fa07
.
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2018-03-15 14:14:15 +08:00
Star Zeng
373b1d0ee3
Revert "DebugUsb3: Fix GCC build failures"
...
This reverts commit ad6040ec9b
.
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2018-03-15 14:14:11 +08:00
Star Zeng
abea3bca82
Revert "DebugUsb3: Check mUsb3Instance before dereferencing it"
...
This reverts commit 6ef394ffe2
.
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2018-03-15 14:14:07 +08:00
Star Zeng
6ef394ffe2
SourceLevelDebugPkg DebugUsb3: Check mUsb3Instance before dereferencing it
...
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2018-02-11 10:32:27 +08:00
Star Zeng
ad6040ec9b
SourceLevelDebugPkg DebugUsb3: Fix GCC build failures
...
Fix GCC build failures below.
variable 'EvtTrb' set but not used [-Werror=unused-but-set-variable]
variable 'Index' set but not used [-Werror=unused-but-set-variable]
The build failure could only be caught with -D SOURCE_DEBUG_USE_USB3
build flag.
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2018-02-09 10:50:04 +08:00
Star Zeng
de8373fa07
SourceLevelDebugPkg DebugUsb3: Support IOMMU
...
For PEI, allocate granted DMA buffer from IOMMU PPI.
For DXE, map DMA buffer by PciIo.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
2018-02-08 16:43:55 +08:00
Star Zeng
f4043414da
SourceLevelDebugPkg DebugUsb3: Fix some typos
...
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2018-02-08 16:43:55 +08:00
Star Zeng
9c6a26d643
SourceLevelDebugPkg/DebugCommLibUsb3: Remove IntelFrameworkPkg.dec
...
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2017-09-04 10:37:56 +08:00
Star Zeng
364f63c065
SourceLevelDebugPkg/DebugCommLibUsb3Pei: Make sure alloc physical mem
...
PI 1.6 has supported pre permanent memory page allocation,
to make sure the allocated memory is physical memory for DMA,
the patch is to check memory discovered PPI installed or not first
before calling AllocatePages.
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
2017-09-04 10:37:46 +08:00
Gary Lin
74cdb367ad
SourceLevelDebugPkg: Fix typos in comments
...
- descrption -> description
- Libary -> Library
- funciton -> function
- paramter -> parameter
- triggerred -> triggered
- hanlde -> handle
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-10-24 09:10:15 +08:00
Eric Dong
95055567a6
SourceLevelDebugPkg: DebugCommunicationLibUsb3: Update local variable type.
...
Update the local variable type to avoid potential data overflow.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Hao Wu <hao.wu@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19734 6f19259b-4bc3-4df7-8a09-765794883524
2016-01-25 03:33:45 +00:00
Jordan Justen
4542f67ed8
SourceLevelDebugPkg: Convert all .uni files to utf-8
...
To convert these files I ran:
$ python3 BaseTools/Scripts/ConvertUni.py SourceLevelDebugPkg
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19263 6f19259b-4bc3-4df7-8a09-765794883524
2015-12-15 04:58:48 +00:00
Feng Tian
b753b3cc6e
SourceLevelDebugPkg/DebugCommunicationLibUsb3: Fix the completed transfer length
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17202 6f19259b-4bc3-4df7-8a09-765794883524
2015-04-27 05:18:42 +00:00
Jeff Fan
08021523f8
SourceLevelDebugPkg: Use CPU Local APIC timer to handle timeout.
...
Use CPU Local APIC timer to handle timeout when read data from debug port, instead of the TimerLib in Debug Communication lib instances.
It could remove much duplicated code in Debug Communication Lib instances.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17089 6f19259b-4bc3-4df7-8a09-765794883524
2015-04-01 07:51:15 +00:00
Elvin Li
5d6507a146
Use MaxPacketSize as the initial buffer size to read data.
...
If host sends more than 8 bytes of data, BABBLE error would happen if USB3 debug library uses 8 byte of buffer to read data.
We need use MaxPacketSize in USB3 debug descriptor to create buffer and read data into this buffer.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Elvin Li <elvin.li@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16762 6f19259b-4bc3-4df7-8a09-765794883524
2015-02-05 01:15:09 +00:00
Shumin Qiu
4e4a6f3d23
SourceLevelDebugPkg: Refine the format of meta data files.
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16618 6f19259b-4bc3-4df7-8a09-765794883524
2015-01-19 02:44:10 +00:00
Elvin Li
2cb6eabe0b
Add DebugCommunicationLibUsb3 for USB3.0 source level debug support.
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Elvin Li <elvin.li@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16224 6f19259b-4bc3-4df7-8a09-765794883524
2014-10-22 05:01:58 +00:00