audk/SourceLevelDebugPkg
Star Zeng df67a480eb SourceLevelDebugPkg DebugCommUsb3: Return error when debug cap is reset
When source level debug is enabled, but debug cable is not connected,
XhcResetHC() in XhciReg.c will reset the host controller, the debug
capability registers will be also reset. After the code in
InitializeUsbDebugHardware() sets DCE bit and LSE bit to "1" in DCCTRL,
there will be DMA on 0 (the value of some debug capability registers
for data transfer is 0) address buffer, fault info like below will
appear when IOMMU based on VTd is enabled.

  VER_REG     - 0x00000010
  CAP_REG     - 0x00D2008C40660462
  ECAP_REG    - 0x0000000000F050DA
  GSTS_REG    - 0xC0000000
  RTADDR_REG  - 0x0000000086512000
  CCMD_REG    - 0x2800000000000000
  FSTS_REG    - 0x00000002
  FECTL_REG   - 0xC0000000
  FEDATA_REG  - 0x00000000
  FEADDR_REG  - 0x00000000
  FEUADDR_REG - 0x00000000
  FRCD_REG[0] - 0xC0000006000000A0 0000000000000000
    Fault Info - 0x0000000000000000
    Source - B00 D14 F00
    Type - 1 (read)
    Reason - 6
  IVA_REG     - 0x0000000000000000
  IOTLB_REG   - 0x1200000000000000

This patch is to return error for the case.

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-03-20 20:23:53 +08:00
..
DebugAgentDxe SourceLevelDebugPkg: Convert all .uni files to utf-8 2015-12-15 04:58:48 +00:00
DebugAgentPei SourceLevelDebugPkg: Convert all .uni files to utf-8 2015-12-15 04:58:48 +00:00
Include SourceLevelDebugPkg DebugUsb3: Fix some typos 2018-02-08 16:43:55 +08:00
Library SourceLevelDebugPkg DebugCommUsb3: Return error when debug cap is reset 2018-03-20 20:23:53 +08:00
Readme.txt Correct the location where the HOST software can be downloaded. 2013-03-27 05:50:20 +00:00
SourceLevelDebugPkg.dec SourceLevelDebugPkg DebugUsb3: Fix some typos 2018-02-08 16:43:55 +08:00
SourceLevelDebugPkg.dsc SourceLevelDebugPkg DSC: Add build option to disable deprecated APIs 2016-08-08 11:00:11 +08:00
SourceLevelDebugPkg.uni SourceLevelDebugPkg DebugUsb3: Fix some typos 2018-02-08 16:43:55 +08:00
SourceLevelDebugPkgExtra.uni SourceLevelDebugPkg: Convert all .uni files to utf-8 2015-12-15 04:58:48 +00:00

Readme.txt

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

UDK based firmware on UEFI IA-32 and UEFI x64 platforms can be debugged with
SourceLevelDebugPkg in conjunction with Intel(R) UEFI Development Kit Debugger
Tool (Intel (R) UDK Debugger Tool).

The Intel(R) UDK Debugger Tool and its detailed user manual can be obtained
from: http://www.uefidk.com/develop.