Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in xpciepsu.c #188

Open
wants to merge 3,734 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
3734 commits
Select commit Hold shift + click to select a range
87b5e7d
aiefal: src: rsc: intialize EventVal for perf
Aug 17, 2021
6b9803c
xilpm: versal: server: Add support to register notifier for CPU idle
rajanv-xilinx Aug 20, 2021
96a88d8
xilpm: versal: server: Send CPU idle cb during force power down core
rajanv-xilinx Aug 20, 2021
f881c7c
xilpm: versal: server: Send CPU idle cb during force powerdown subsystem
rajanv-xilinx Aug 20, 2021
4d304cd
xilpm: versal: server: Add support to process pending force power down
rajanv-xilinx Aug 20, 2021
c1ca030
xilpm: versal: server: Add support to power down core/subsystem if no…
rajanv-xilinx Aug 20, 2021
c877e08
xilpm: versal: server: Add support for blocking ack for force power down
rajanv-xilinx Aug 20, 2021
9ca8228
xilplmi: Skip providing Ack for force power down command
rajanv-xilinx Aug 20, 2021
29d3b0b
xilpm: versal: server: Add support for sending acknowledgement callback
rajanv-xilinx Aug 20, 2021
1dd5337
xilpm: versal: server: Add support for CPU idle during subsystem restart
rajanv-xilinx Aug 20, 2021
fe51fe8
sw_services :xilplmi: Fix logical error in XPlmi_MemSetBytes
Aug 22, 2021
77e6582
xilsem: Added payload validation for NPI table commands
Aug 18, 2021
607acee
aienginev2: remove license text
Aug 19, 2021
fd832f6
XilSecure: Rename XSecure_AesPmcDmaCfgByteSwap API to XSecure_AesPmcD…
Aug 22, 2021
05e142a
XilSecure: Update doxygen description for client XSecure_Sha3Initialize
Aug 22, 2021
010e5c5
dfxasm: Fix dfxasm example compilation issue with c++ compiler
Aug 10, 2021
7a6e069
lwip211: Remove code that disables interrupts in emacps_sgsend
Aug 20, 2021
2fd0092
lwip211: Remove the avoidable barrier from emacps_sgsend.
Aug 20, 2021
53284b0
lwip211: Support for use case for udp send functionality to block til…
Aug 20, 2021
0199a0c
sw_apps: Add support in udp client applications for blocking tx behavior
Aug 20, 2021
e751a36
sw_apps: Reduce the number of parallel clients in udp perf client app…
Aug 20, 2021
7ae7549
zynqmp: xilsecure: Add EXPORT CONTROL eFuse check in crypto init func…
Aug 23, 2021
e38c54b
sw_services: xilplmi: Rename error node and event ID
Aug 23, 2021
2c55eec
BSP: Fix warnings reported with -Wstrict-prototypes flag
mubinsyed Aug 23, 2021
328ca05
xilpm: versal: server: Add PM_CAP_SECURE to RPU0 in default subsystem…
Aug 19, 2021
93ba22c
xilpm: versal: server: Add TTC in default pre-alloc device list
rajanv-xilinx Aug 23, 2021
3682d4c
xilsem: Adds fixes for Doxygen warnings in client files
Aug 19, 2021
96f3f70
sdps: Fix doxygen warnings
Aug 20, 2021
6564ecb
sw_services:xilloader: Added redundancy to XLoader_CheckIpiAccess
Aug 23, 2021
1d531f7
sw_apps: versal_plm: Move XPlmi_InitDebugLogBuffer and XPlm_InitProc …
Aug 24, 2021
9c40375
cpu: Remove fsl.h
mubinsyed Aug 23, 2021
23b40c0
sdps: Fix compilation warnings
Aug 24, 2021
098817a
mipicsiss: Updated MIPI src files
Aug 23, 2021
1e656ac
mipicsiss: Uprevved mdd for file changes
Aug 23, 2021
05c3609
Updated MIPI VCK190 files
Aug 23, 2021
627d42e
plm: Add support to extract metaheader
Aug 24, 2021
3fef363
freertos10_xilinx: Fix compilation errors with freertos os
Aug 25, 2021
9771c03
sw_services:xilsecure:Add license header
Aug 23, 2021
4404f5e
zdma: Fix bugs in various examples
Aug 24, 2021
d387ab5
sw_services:xilpuf:Add comment regarding supported IRO frequency
Aug 23, 2021
9e6986d
rfdc: VOP DC Coupling
Aug 25, 2021
a52b4dc
plm: Remove PDI load register write from extract metaheader
Aug 26, 2021
b43b32f
bram: Updated interrupt example for peripheral test.
mubinsyed Aug 25, 2021
de32b01
bram: Updated doxygen tags
mubinsyed Aug 25, 2021
d965dac
xilplmi: Use macro instead of hard coded value for extracting API ID
rajanv-xilinx Aug 23, 2021
b416300
aienginev2: src: Makefiles: Add missing copyright and license text
Aug 19, 2021
75717f6
aienginev2: src: add dma padding and wrap checks
tejus26 Aug 23, 2021
348c5e3
xilsem: Added protection for registering ISR handler in CFR init
Aug 25, 2021
ee99189
video_common: Fix vertical parameters of VMIDs
Aug 24, 2021
5da4bf3
video_common: Add missing video timing modes
Aug 24, 2021
11c5607
sw_services:xilsecure:Size of AAD must be quad-word aligned
Aug 23, 2021
a385632
sw_services :xilloader: Code clean up of XilLoader
Aug 27, 2021
29ae95a
vpss driver: VDMA data path is disabled during progressive video
Aug 26, 2021
891d10c
xilpm: versal: server: fix build error for non-IPI design
rajanv-xilinx Aug 25, 2021
e5f048a
xilplmi: Check module ID for force power down command
rajanv-xilinx Aug 26, 2021
af4244f
usb: usbpsu: src: fix plm compilation warnings
Aug 30, 2021
8b1e6ae
BSP: Fix warnings reported with -Wundef flag
mubinsyed Aug 30, 2021
a9b77aa
Revert "sw_services :xilloader: Code clean up of XilLoader"
Sep 3, 2021
a78de43
dfeccf: remove spaces in dependency prop
Aug 30, 2021
b77063e
dfeequ: remove spaces in dependency prop
Aug 30, 2021
3546ae0
dfemix: remove spaces in dependency prop
Aug 30, 2021
1b41671
dfeprach: remove spaces in dependency prop
Aug 30, 2021
64164e9
sw_services :xilloader: Code clean up of Xilloader library
Aug 31, 2021
f2b2816
iomodule: Fix tcl logic for HW designs with un-connected interrupts
mubinsyed Aug 24, 2021
83dc15a
sw_services: xilplmi: Handle errors in SSIT Slave SLRs
Sep 1, 2021
c924ce6
sw_services: xilloader: Fix issue in clearing CFI and CFU errors
Sep 1, 2021
52d7124
ospipsv: Limit RX maximum number of taps to 127
Aug 31, 2021
369bb62
changelog: Update for ospipsv
Aug 31, 2021
13de815
v_hdmirxss1: app: This patch updates Onsemi redriver and GT settings …
Aug 31, 2021
a2f48fc
v_hdmitxss1: app: This patch updates Onsemi redriver and GT settings …
Aug 31, 2021
ec5596d
sw_services :xilloader: Skip device copy when remaining CDO length is…
Sep 1, 2021
41f3134
Updated src files addtogroup versions with mdd version for dp14txss d…
Aug 30, 2021
e3afb71
Updated src files addtogroup versions with mdd version for v_hdmiphy1…
Aug 30, 2021
2eccb97
Updated src files addtogroup versions with mdd version for v_hdmirxss…
Aug 30, 2021
1ff4dd0
Updated src files addtogroup versions with mdd version for v_hdmirxss…
Aug 30, 2021
3403cfe
Updated src files addtogroup versions with mdd version for v_hdmitxss…
Aug 30, 2021
02d9ed2
Updated src files addtogroup versions with mdd version for v_hdmitxss…
Aug 30, 2021
b013a18
Updated src files addtogroup versions with mdd version for vtc driver…
Aug 30, 2021
92e5d9c
sw_services:xilloader:Added local volatile variable to avoid compiler…
Sep 1, 2021
1105f20
sysmonpsv: Resolved warnings
Sep 1, 2021
13a688c
xilpm: versal: server: Add dummy NPI register read in AieBisr()
rajanv-xilinx Aug 27, 2021
62a940c
aienginev2: src: events: remove uninitialized Event variable warning
Sep 1, 2021
332aa1a
aienginev2: src: io_backend: baremetal: remove unused variable warning
Sep 1, 2021
281c7e4
aienginev2: src: remove unnecessary invalid module print
Sep 1, 2021
ee6ff8f
scugic: Update scugic copyright year
Sep 2, 2021
43ede6a
versal_psmfw: Resolve compile time warnings
Aug 31, 2021
db3e480
versal_psmfw: Add missing compiler options
Aug 31, 2021
a04e678
scugic: Add variable Cpu_CoreId to fix misrac violation
Aug 5, 2021
6104b9d
scugic: Typecast with u32 to fix misrac violation
Aug 5, 2021
8a478f8
scugic: Typecast to fix misra_c_12_2 violations
Aug 5, 2021
be721f3
scugic: Typecast expression to overcome assigning of object with wide…
Aug 5, 2021
1c2027a
scugic: Add declaration to header file to overcome multiple definitions
Aug 5, 2021
43ff1bc
scugic: Modify the Cpu_Id parameter to Cpu_Identifer
Aug 5, 2021
bb11de9
scugic: Add const to pointer variables in static functions
Aug 5, 2021
a48e588
scugic: Typecast the composite expression to fix the misrac violation
Aug 5, 2021
bbf7c7e
scugic: Modify XScuGic_RegisterHandler to fix misrac violation
Aug 5, 2021
fc93890
scugic: Modify the USE_AMP controlling expression to fix misrac viola…
Aug 5, 2021
32e2ddf
scugic: Remove commented code to fix misra-c violation
Aug 5, 2021
a2e618a
scugic: Add boolean check for Xil_SpinLockEnabled function
Aug 5, 2021
f59e330
scugic : Add braces to make the if condition as compound statement
Aug 5, 2021
6655a60
scugic: Remove function declarations to fix misrac violations
Aug 5, 2021
949bb54
BSP: cortexa9: Skip SCU invalidation when USE_AMP is set to 1
mubinsyed Sep 2, 2021
8ce908a
scugic: Update datatype of CpuBaseAddress and DistBaseAddress
Sep 1, 2021
dd30e12
xilsem: Adds fix for Doxygen warnings in XilSEM server
Sep 3, 2021
7685fbb
xilplmi: Fix MISRA C R2.5 violations
rajanv-xilinx Aug 27, 2021
3db96fe
Updated src files addtogroup versions with mdd version for v_warp_ini…
Sep 2, 2021
18888c1
mipicsiss: Updated ZCU102 sw files
Aug 28, 2021
c5265f1
sw_apps: zynqmp_pmufw: Handle APU restart gracefully if copying FSBL …
Sep 3, 2021
f275ee9
sw_services:xilloader:Updated PLM KAT status
Sep 3, 2021
0e75b7e
sw_services :xilloader: Disable prints in slave boot modes in case of…
Sep 5, 2021
240d2df
sw_services:xilsecure:Updated doxygen comment for XSecure_Sha3Initialize
Sep 3, 2021
8b6939f
xilsem: Adds fix to set CorError GPO after diagnosis
Sep 3, 2021
31931f7
sw_services:xilnvm:Added client-server support to program or read puf…
Sep 3, 2021
490659a
sw_services:xilpuf:Replaced xilnvm server API's with xilnvm client AP…
Sep 3, 2021
a67e9d5
sw_services:xilnvm:Resolved compilation warnings
Sep 6, 2021
796c61d
video_common: Manage EDID verbosity from BSP settings
Aug 24, 2021
ecc33a7
xilpm: versal: fix doxygen comments
rajanv-xilinx Sep 3, 2021
13ac0ef
xilpm: zynqmp: Add missing enum info
rajanv-xilinx Sep 3, 2021
6a4fb1c
xilpm: zynqmp: client: Fix doxygen warnings
rajanv-xilinx Sep 3, 2021
74b3b7e
sw_services:xilsecure:Updated check for Size in Client XSecure_AesKek…
Sep 6, 2021
0f57dca
BSP: cortexr5: Xil_MemMap doxygen update
kernelchuk Sep 4, 2021
6890206
freertos10_xilinx: ARM_CR5: Fix xPortStartScheduler
mubinsyed Aug 25, 2021
c8f95ad
freertos10_xilinx: ARM_CR5: Remove duplicate macro
mubinsyed Aug 25, 2021
d493125
v_hdmi_common:Add missing video resolutions IDs
Aug 30, 2021
988563d
sw_apps: memtest: Removed illegal write to DXnGTR0.WDQSL register field
mnarani Sep 8, 2021
e6bf579
sw_apps :zynqmp_fsbl: Added MultiDie read support for Micron 2Gb flas…
Sep 9, 2021
064fb15
xilpm: versal: common: Add node IDs information for error events
agodhasa-xilinx Sep 7, 2021
8c18265
dp14txss:zcu_pt_dp14_hdcp: Added the SRM Keys
Sep 9, 2021
35eec47
sw_services:xilloader:Fixed SW-BP-ZEROIZE issue in XLoader_LoadAndSta…
Sep 8, 2021
4d1c7c0
sw_services: xilloader: Skip multiple SPK Authentication while authen…
Sep 9, 2021
88288a3
xilpm: versal: server: Fix MISRA Rule 15.5
Sep 9, 2021
5c5913e
xilpm: versal: server: Fix MISRA rule 8.13
Sep 9, 2021
5d58aea
xilpm: versal: server: Fix MISRA Rule 17.8
Sep 9, 2021
1cfd683
xilpm: versal: server: Fix MISRA Rule 10.3
Sep 9, 2021
c3a2b21
xilpm: versal: server: skip PSM proc force power down
rajanv-xilinx Sep 7, 2021
92f3785
axivdma: examples: Fix read/write done comparision in vdma interrupt …
radheyxilinx Sep 9, 2021
906018e
axivdma: examples: Fix GCC unused variable 'Index1' warning
radheyxilinx Sep 9, 2021
561c785
trngpsv: Add support for TRNG driver in Versal
Sep 11, 2021
a0cf273
sw_services :xilnvm: Versionless support for XilNvm
Sep 13, 2021
ed2ecf8
xilpm: versal: server: Fix MISRA rule 8.13
Sep 13, 2021
5e35c13
sw_services: xilplmi: Print PLM banner first
Sep 13, 2021
010bd40
updated for doc changelog changes
Sep 14, 2021
cf5b93e
plm: Merge pre-boot tasks into a single task
Sep 13, 2021
062d777
xilpm: versal: server: Resolve compile time warnings
Sep 10, 2021
58dcd9c
xilpm: versal: Add missing compiler options
Sep 10, 2021
affb924
sw_services:xilsecure: Fixed ECDSA signature verification error for P…
Sep 13, 2021
4babd34
sw_services:xilloader:Avoid Blind writes in XLoader_SecureClear
Sep 14, 2021
f3c0ac3
sw_services:xilloader:Avoid blind writes in XLoader_AuthEncClear
Sep 14, 2021
c38eda8
vprocss: Reverting back the vdma related driver changes.
Sep 10, 2021
fd4e435
sw_services:xilsecure:Added check for DecKeySrc in XSecure_AesKekDecrypt
Sep 14, 2021
b40d8f8
scugic: Fix warnings reported by gcc compiler
Sep 14, 2021
e4cbf8f
updated for changelog 2021.2
Sep 15, 2021
7dd6098
updated for changelog 2021.2 llfifo_v5_6
Sep 15, 2021
8fab650
doc: ChangeLog: Updated changelog for Versal, ZynqMP & Zynq
Sep 15, 2021
b3dc1f1
updated for changelog 2021.2 ipipsu_v2_10
Sep 16, 2021
f88b713
updated for changelog 2021.2 scugic_v4_6
Sep 16, 2021
342744a
hdmitxss: Fix compilation error for XVMaskColorId
vishals-xlnx Sep 17, 2021
b030243
aienginev2: src: Add mask polling op code
Sep 16, 2021
cb5b3b2
aienginev2: src: npi: Execute mask polling op code
Sep 16, 2021
b4a5e68
updated for changelog 2021.2 vtc_v8_4 and others
Sep 20, 2021
75f6077
xilpm: server: Apply VCCAUX workaround delay only for PMCv1
Sep 14, 2021
c2bca49
sw_services:xilloader:Modified check for PUF HD in XLoader_SecureEncO…
Sep 15, 2021
1e46cbf
emacps: Fix compilation warnings in emacps
Sep 15, 2021
acafd6a
xilfpga: src: Fix compilation warning
Sep 13, 2021
cf73c70
xilfpga: examples: Fix compilation warning
Sep 13, 2021
0809bf6
usb: usbps: data: license update for props file
Sep 16, 2021
846265d
xilpm: versal: server: unlock PCSR before copy GT BISR data
rajanv-xilinx Sep 16, 2021
e65a6e5
sw_services:xilnvm: Changed PLM and Data Partition IV formatting to LE
Sep 20, 2021
54cfc58
lib: sw_apps: Update license header for lwip apps
harini-katakam Sep 15, 2021
ab5d876
lwip211: Update license header in dependencies file
harini-katakam Sep 15, 2021
e09d32a
axiethernet: Update license header in dependencies file
harini-katakam Sep 15, 2021
017363c
vdma: Update license header in dependencies file
harini-katakam Sep 15, 2021
88580fa
emacps: Update license header for dependencies file
harini-katakam Sep 15, 2021
fed454f
emaclite: Udpate license header in dependencies file
harini-katakam Sep 15, 2021
3c49890
xxvethernet: Update license header in dependencies file
harini-katakam Sep 15, 2021
65c85f4
ospipsv: Add Copyright and License to dependency.props
Sep 16, 2021
91d65e4
xilffs: Add Xilinx copyright to the diskio.c file
Sep 16, 2021
a5413cb
sw_services: zynqmp-xilsecure: Fix warnings reported by gcc compiler
Sep 17, 2021
2d394fd
xilloader: MJTAG workaround in PLM
Sep 20, 2021
18d1c4f
sw_apps: zynq_memtest: Add license information
mnarani Sep 17, 2021
3d2a447
xilpm: versal: server: Add AIE support for VE1752
Sep 17, 2021
6064e85
BSP: ARMv8: 64bit: Fix warning reported with -Wconversion option
mubinsyed Sep 17, 2021
5f272d3
BSP: cortexr5: Fix warning related to "deprecate" attribute
mubinsyed Sep 17, 2021
0b5afd9
lib: Add missing copyright in source files
mubinsyed Sep 17, 2021
428f8e1
BSP: arm: common: Fix compilation warnings reported with -Wundef option
mubinsyed Sep 17, 2021
8662996
lwip211: Fix compilation warning in init_axiemac function
Sep 17, 2021
052b391
lwip211: Fix compilation warning in xaxiemacif_init function
Sep 17, 2021
c28e7c9
lwip211: Fix compilation warning in is_checksum_valid function
Sep 17, 2021
35723d1
sw_services:xilnvm: Replaced magic number 0x0 with FALSE
Sep 17, 2021
fc0590e
sw_services:xilnvm:Check for Trim2 instead of Trim 3 for protection b…
Sep 17, 2021
7c51a96
sw_services:xilnvm:Check if efuse bit is already programmed before pr…
Sep 19, 2021
ba18664
aiefal: rsc: use driver API to get combo/user events
Sep 17, 2021
5af8c64
aiefal: rsc: implement driver API to check BC checkerboard
Sep 17, 2021
73c9e10
aiefal: rsc: use driver API to get idle port event base
Sep 17, 2021
58a21f9
aiefal: rsc: use driver API to get perf counter base event
Sep 17, 2021
9908fba
aiefal: src: rsc: add memtile support in setrscs
Sep 17, 2021
23b3c9b
aiefal: src: common: remove unused get loc functions
Sep 17, 2021
3464a52
aiefal: src: rsc: remove unused code in broadcast
Sep 17, 2021
baa7973
sw_services :xilloader: sw_services :xilloader: Fix bug in processing…
Sep 20, 2021
657e37e
updated for changelog dfxasm_v1_1
Sep 22, 2021
75e81e5
sw_services:xilloader:Fixed SW-BP-INIT-FAIL in XLoader_GetAHWRoT
Sep 15, 2021
f00c385
sw_services:xilloader:Fixed SW-BP-INIT-FAIL in XLoader_GetSHWRoT
Sep 15, 2021
44632ba
sw_services:xilloader: Fixed SW-BP-REDUNDANCY issue
Sep 20, 2021
96b40c4
sw_services:xilloader:AuthFailCounter should only allow 1 attempt to …
Sep 20, 2021
35593ab
sw_services:xilloader: Renamed BHSignature to IHTSignature
Sep 20, 2021
b16b2fa
sw_services:xilloader:Fixed checksum issue incase of delay load
Sep 21, 2021
4cecc4d
aienginev2: src: enable npi access for uio backend
tejus26 Sep 21, 2021
9c4ba0f
aiefal: Makefile: fix for Windows
Sep 22, 2021
a99033d
xilsem: Added more description on error injection
Sep 21, 2021
4697c6e
sw_apps: Fix for freertos lwip echo server bug
Sep 21, 2021
a6ce479
sw_apps :versal_plm: Versionless updates for Versal PLM 2021.2
Sep 21, 2021
86892ef
sw_apps :zynqmp_fsbl: Versionless updates for Zynqmp_fsbl 2021.2
Sep 23, 2021
58ec0f6
Changelog updated xilfpga_v6_1
Sep 23, 2021
df8382c
aiefal: license: Add license text header to make files
Sep 17, 2021
1fa51a8
sw_services:xilsecure: Added check for Export Control bit
Sep 18, 2021
15e6aed
plm: Fix R5 partition load issue for non-TCM cases
Sep 23, 2021
ef9ffdb
sw_services :xilloader: Fix secondary boot issue in SD when multiboot…
Sep 24, 2021
a510160
sw_services :xilloader: Rectify incorrect value of VINITHI mask
Sep 24, 2021
20b69af
usb: usb: update copyright year
Sep 16, 2021
35ecf45
usb: usb: xilinx license updates for props and header file
Sep 16, 2021
207d2b8
doc: ChangeLog: Updated changelog for Versal PLM & ZynqMP FSBL 2021.2
Sep 27, 2021
5a54d43
doc: ChangeLog: Updated typo error
Sep 27, 2021
d1a63d1
sw_services:client:xilsecure: Fixed compilation warnings
Sep 27, 2021
8ee5dba
sysmonpsv: Fixed warning in case of zero supplies in design
Sep 21, 2021
acc7b17
updated for changelog sysmonpsv
Sep 28, 2021
566c401
aiefal: rsc: perf: fix get perfcounter event
Sep 24, 2021
970dbd3
aiefal: tests: verify perfcounter event
Sep 24, 2021
6e4f23d
update embeddedsw license file for 2021.2 release
Sep 28, 2021
9202b54
doc: ChangeLog updated for cframe and cfupmc
Sep 29, 2021
b322ed8
BSP: Add copyright in mss file
mubinsyed Sep 29, 2021
0bd4d09
Revert "scugic: Update datatype of CpuBaseAddress and DistBaseAddress"
mubinsyed Sep 28, 2021
d8fd136
rfdc: MTS IMR Modes
Sep 22, 2021
859bf31
usb: usbpsu: data: license update for props file
Sep 30, 2021
8ec9e5e
lib: sw_apps: srec_spi_bootloader: Add license information
Sep 30, 2021
7cc1ab8
mbox: Add license information
Sep 30, 2021
3b548ea
qspipsu: Add license information
Sep 30, 2021
59d9414
changelog: libmetal_v2_2 update
kernelchuk Oct 1, 2021
4276329
sysmonpsv: Force OT alarm to trigger
Sep 28, 2021
b5e0a4b
rfdc: Fix Rounding Error
Sep 22, 2021
9a0e745
dp14txss:zcu_pt_dp14_hdcp: Corrected the color and stream format for …
Sep 29, 2021
a09e084
rfdc: Changelog
Oct 5, 2021
3b3cb8a
updated for changelog dfeccf
Oct 6, 2021
dcdb525
rfdc: Add Copyright Message
Oct 1, 2021
169dfd5
updated for aiefal changelog
Oct 8, 2021
b20b1ff
updated for changelog
Oct 10, 2021
f600f1d
xilpm: versal: server: Remove code to un write BISR trigger bit
rajanv-xilinx Oct 4, 2021
bd51b72
aienginev2: src: interrupt: Block error broadcasts in NoC tile
NishadSaraf Oct 9, 2021
49c6694
update EmbeddedSW license for 2021.2 release
Oct 12, 2021
a8e6ff6
Published Doxygen documentation for drivers, libraries and PDF's for …
Oct 28, 2021
729a01c
Fixed typo in xpciepsu.c
nbstrong Mar 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
plm: Add support to extract metaheader
This patch updates the existing decrypt metaheader logic to
extract metaheader from Full or Partial PDIs. This logic is
using generic XLoader_PdiInit which supports both secure and
non-secure cases.

Signed-off-by: Bharath Mulagondla <bharath.mulagondla@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <krishna.chaitanya.patakamuri@xilinx.com>
  • Loading branch information
Bharath Mulagondla authored and Siva Addepalli committed Aug 27, 2021
commit 627d42e6c574ffee96b5a89907c94d7fb0bbcd45
12 changes: 10 additions & 2 deletions lib/sw_services/xilloader/src/xloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
* bm 08/09/2021 Removed obsolete XLoader_PMCStateClear API
* bsv 08/17/2021 Code clean up
* rb 08/11/2021 Fix compilation warnings
* bm 08/24/2021 Added Extract Metaheader support
*
* </pre>
*
Expand Down Expand Up @@ -645,7 +646,8 @@ static int XLoader_ReadAndValidateHdrs(XilPdi* PdiPtr, u32 RegVal)
/*
* Read meta header from PDI source
*/
if (PdiPtr->PdiType == XLOADER_PDI_TYPE_FULL) {
if ((PdiPtr->PdiType == XLOADER_PDI_TYPE_FULL) ||
(PdiPtr->PdiType == XLOADER_PDI_TYPE_FULL_METAHEADER)) {
XilPdi_ReadBootHdr(&PdiPtr->MetaHdr);
/*
* Print FW Rsvd fields Details
Expand Down Expand Up @@ -682,6 +684,11 @@ static int XLoader_ReadAndValidateHdrs(XilPdi* PdiPtr, u32 RegVal)
else {
PdiPtr->MetaHdr.FlashOfstAddr = PdiPtr->PdiAddr;
}

if (PdiPtr->PdiType == XLOADER_PDI_TYPE_FULL_METAHEADER) {
XPlmi_Out32((UINTPTR)&PdiPtr->MetaHdr.BootHdrPtr->BootHdrFwRsvd.MetaHdrOfst,
XPlmi_In64(PdiPtr->PdiAddr + XIH_BH_META_HDR_OFFSET));
}
}
else {
PdiPtr->ImageNum = 0U;
Expand Down Expand Up @@ -1578,7 +1585,8 @@ int XLoader_LoadImageInfoTbl(u64 DestAddr, u32 MaxSize, u32 *NumEntries)
u64 ImageInfoOffset = 0U;

if (Len > MaxLen) {
Len = MaxLen;
Status = XLOADER_ERR_INVALID_DEST_IMGINFOTBL_SIZE;
goto END;
}

while (Count < Len) {
Expand Down
20 changes: 18 additions & 2 deletions lib/sw_services/xilloader/src/xloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
* 1.04 bm 07/16/2021 Updated XLoader_PdiInit prototype
* bsv 07/19/2021 Disable UART prints when invalid header is encountered
* in slave boot modes
* bm 07/30/2021 Added Metaheader PDI type
* bsv 08/02/2021 Updated function return type as part of code clean up
* bm 08/09/2021 Removed obsolete XLoader_PMCStateClear API prototype
* bm 08/24/2021 Added Extract Metaheader support
*
* </pre>
*
Expand Down Expand Up @@ -153,7 +153,7 @@ extern "C" {
#define XLOADER_PDI_TYPE_FULL (0x1U)
#define XLOADER_PDI_TYPE_PARTIAL (0x2U)
#define XLOADER_PDI_TYPE_RESTORE (0x3U)
#define XLOADER_PDI_TYPE_METAHEADER (0x4U)
#define XLOADER_PDI_TYPE_FULL_METAHEADER (0x4U)

/*
* Secondary boot mode related macros
Expand Down Expand Up @@ -259,6 +259,22 @@ enum {
UsbPrivateData */
XLOADER_ERR_MEMSET_DFU_OBJ, /**< 0xD - Error during memset on
DfuObj */
XLOADER_ERR_INVALID_METAHDR_BUFF_SIZE, /**< 0xE- Error when buffer size given by user
is less than the metaheader length */
XLOADER_ERR_INVALID_PDI_INPUT, /**< 0xF - Error when PDI given is not a full PDI
or partial PDI */
XLOADER_ERR_INVALID_DEST_IMGINFOTBL_SIZE, /**< 0x10 - Error when the destination
buffer provided to store image info
table is less than the current length
of image info table */
XLOADER_ERR_INVALID_METAHEADER_SRC_ADDR, /**< 0x11 - Error when invalid source address
is passed as a input to extract metaheader
command */
XLOADER_ERR_INVALID_METAHEADER_DEST_ADDR, /**< 0x12 - Error when invalid destination address
is passed as a input to extract metaheader
command */
XLOADER_ERR_INVALID_METAHEADER_OFFSET, /**< 0x13 - Error when the metaheader offset provided
in full PDI is not present in DDR */
};

/* Multiboot register offset mask */
Expand Down
22 changes: 3 additions & 19 deletions lib/sw_services/xilloader/src/xloader_auth_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
* XLoader_CheckAuthJtagIntStatus scheduler task
* har 07/15/21 Fixed doxygen warnings
* td 07/15/21 Fixed doxygen warnings
* bm 07/30/21 Updated decrypt metaheader logic to support full PDIs
* bsv 08/17/21 Code clean up
* rb 08/11/21 Fix compilation warnings
* bm 08/24/2021 Added Extract Metaheader support
*
* </pre>
*
Expand Down Expand Up @@ -601,13 +601,8 @@ int XLoader_ImgHdrTblAuth(XLoader_SecureParams *SecurePtr)
}

/* Copy Authentication certificate */
if (SecurePtr->PdiPtr->PdiType == XLOADER_PDI_TYPE_METAHEADER) {
AcOffset = SecurePtr->PdiPtr->MetaHdr.FlashOfstAddr + XIH_IHT_LEN;
}
else {
AcOffset = SecurePtr->PdiPtr->MetaHdr.FlashOfstAddr +
((u64)(ImgHdrTbl->AcOffset) * XIH_PRTN_WORD_LEN);
}
AcOffset = SecurePtr->PdiPtr->MetaHdr.FlashOfstAddr +
((u64)(ImgHdrTbl->AcOffset) * XIH_PRTN_WORD_LEN);

Status = SecurePtr->PdiPtr->MetaHdr.DeviceCopy(AcOffset,
(UINTPTR)SecurePtr->AcPtr, XLOADER_AUTH_CERT_MIN_SIZE, 0U);
Expand Down Expand Up @@ -738,17 +733,6 @@ int XLoader_ReadAndVerifySecureHdrs(XLoader_SecureParams *SecurePtr,
/* Read headers to a buffer */
/* Read IHT and PHT to buffers along with encryption overhead */
TotalSize = MetaHdr->ImgHdrTbl.TotalHdrLen * XIH_PRTN_WORD_LEN;
if (SecurePtr->PdiPtr->PdiType == XLOADER_PDI_TYPE_METAHEADER) {
if (SecurePtr->IsAuthenticated == (u8)TRUE) {
ImgHdrAddr = ((MetaHdr->ImgHdrTbl.ImgHdrAddr -
MetaHdr->ImgHdrTbl.AcOffset) *
XIH_PRTN_WORD_LEN) + XIH_IHT_LEN;
}
else {
ImgHdrAddr = XIH_IHT_LEN;
}
}

if ((SecurePtr->IsAuthenticated == (u8)TRUE) ||
(SecurePtr->IsAuthenticatedTmp == (u8)TRUE)) {
XPlmi_Printf(DEBUG_INFO, "Authentication is enabled\n\r");
Expand Down
85 changes: 66 additions & 19 deletions lib/sw_services/xilloader/src/xloader_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* 1.06 bm 07/16/2021 Added decrypt metaheader support
* bm 07/30/2021 Updated decrypt metaheader logic to support full PDIs
* kpt 08/22/2021 Added redundancy to XLoader_CheckIpiAccess
* bm 08/24/2021 Updated decrypt metaheader command to extract metaheader
*
* </pre>
*
Expand Down Expand Up @@ -101,6 +102,11 @@ static XPlmi_Module XPlmi_Loader;
#define XLOADER_CMD_MULTIBOOT_IMG_LOCATION_INDEX (1U)
#define XLOADER_CMD_IMGSTORE_PDIADDR_HIGH_INDEX (0U)
#define XLOADER_CMD_IMGSTORE_PDIADDR_LOW_INDEX (1U)
#define XLOADER_CMD_EXTRACT_METAHDR_PDIADDR_HIGH_INDEX (0U)
#define XLOADER_CMD_EXTRACT_METAHDR_PDIADDR_LOW_INDEX (1U)
#define XLOADER_CMD_EXTRACT_METAHDR_DESTADDR_HIGH_INDEX (2U)
#define XLOADER_CMD_EXTRACT_METAHDR_DESTADDR_LOW_INDEX (3U)
#define XLOADER_CMD_EXTRACT_METAHDR_DEST_SIZE_INDEX (4U)
#define XLOADER_RESP_CMD_EXEC_STATUS_INDEX (0U)
#define XLOADER_RESP_CMD_FEATURES_CMD_SUPPORTED (1U)
#define XLOADER_RESP_CMD_READBACK_PROCESSED_LEN_INDEX (1U)
Expand All @@ -127,7 +133,7 @@ static XPlmi_Module XPlmi_Loader;
#define XLOADER_IMG_HDR_TBL_EXPORT_MASK0 (0x00021F7FU)
#define XLOADER_IMG_HDR_EXPORT_MASK0 (0x00003FFBU)
#define XLOADER_PRTN_HDR_EXPORT_MASK0 (0x00001DFFU)
#define XLOADER_META_HDR_LEN_OFFSET (0x30U)
#define XLOADER_DDR_LOW_END_ADDR (0x7FFFFFFFU)

/************************** Function Prototypes ******************************/

Expand Down Expand Up @@ -679,34 +685,75 @@ static void XLoader_GetExportableBuffer(u32 *Buffer, u32 Mask, u32 Size)
* @return XST_SUCCESS on success and error code on failure
*
*****************************************************************************/
static int XLoader_DecryptMetaheader(XPlmi_Cmd *Cmd)
static int XLoader_ExtractMetaheader(XPlmi_Cmd *Cmd)
{
int Status = XST_FAILURE;
XilPdi* PdiPtr = &SubsystemPdiIns;
u64 SrcAddr = (u64)Cmd->Payload[0U];
u64 DestAddr = (u64)Cmd->Payload[3U];
u32 SrcSize = (u32)Cmd->Payload[2U];
u32 DestSize = (u32)Cmd->Payload[5U];
u32 DataSize = 0U;
u32 Index = 0U;
u64 SrcAddr = (u64)Cmd->Payload[XLOADER_CMD_EXTRACT_METAHDR_PDIADDR_HIGH_INDEX];
u64 DestAddr = (u64)Cmd->Payload[XLOADER_CMD_EXTRACT_METAHDR_DESTADDR_HIGH_INDEX];
u32 DestSize = (u32)Cmd->Payload[XLOADER_CMD_EXTRACT_METAHDR_DEST_SIZE_INDEX];
u32 IdString;
u32 DataSize;
u64 MetaHdrOfst;
u32 Index;

XPlmi_SetPlmMode(XPLMI_MODE_CONFIGURATION);
SrcAddr = ((u64)Cmd->Payload[1U]) | (SrcAddr << 32U);
DestAddr = ((u64)Cmd->Payload[4U]) | (DestAddr << 32U);
DataSize = XPlmi_In64(SrcAddr + XLOADER_META_HDR_LEN_OFFSET);
DataSize *= XPLMI_WORD_LEN;
if ((SrcSize < DataSize) || (DestSize < DataSize)) {
Status = XPlmi_UpdateStatus(
XLOADER_ERR_INVALID_METAHDR_BUFF_SIZE, 0);
SrcAddr = ((u64)Cmd->Payload[XLOADER_CMD_EXTRACT_METAHDR_PDIADDR_LOW_INDEX]) |
(SrcAddr << 32U);
DestAddr = ((u64)Cmd->Payload[XLOADER_CMD_EXTRACT_METAHDR_DESTADDR_LOW_INDEX]) |
(DestAddr << 32U);

IdString = XPlmi_In64(SrcAddr + XIH_BH_IMAGE_IDENT_OFFSET);
if (IdString == XIH_BH_IMAGE_IDENT) {
PdiPtr->PdiType = XLOADER_PDI_TYPE_FULL_METAHEADER;
}
else {
IdString = XPlmi_In64(SrcAddr + SMAP_BUS_WIDTH_LENGTH +
XIH_IHT_IDENT_STRING_OFFSET);
if (IdString == XIH_IHT_PPDI_IDENT_VAL) {
PdiPtr->PdiType = XLOADER_PDI_TYPE_PARTIAL;;
}
else {
Status = XLOADER_ERR_INVALID_PDI_INPUT;
goto END;
}
}

Status = XPlmi_VerifyAddrRange(SrcAddr, SrcAddr + (XPLMI_WORD_LEN - 1U));
if (Status != XST_SUCCESS) {
Status = XLOADER_ERR_INVALID_METAHEADER_SRC_ADDR;
goto END;
}

/* Check if Metaheader offset is pointing to a valid location */
if (PdiPtr->PdiType == XLOADER_PDI_TYPE_FULL_METAHEADER) {
MetaHdrOfst = SrcAddr + (u64)XPlmi_In64(SrcAddr +
XIH_BH_META_HDR_OFFSET);
if ((MetaHdrOfst > XLOADER_DDR_LOW_END_ADDR) &&
(MetaHdrOfst <= (u64)XPAR_PSV_OCM_RAM_0_S_AXI_HIGHADDR)) {
Status = XLOADER_ERR_INVALID_METAHEADER_OFFSET;
goto END;
}
}

Status = XPlmi_VerifyAddrRange(DestAddr, DestAddr + DestSize - 1U);
if (Status != XST_SUCCESS) {
Status = XLOADER_ERR_INVALID_METAHEADER_DEST_ADDR;
goto END;
}

PdiPtr->PdiType = XLOADER_PDI_TYPE_METAHEADER;
PdiPtr->IpiMask = Cmd->IpiMask;
/* Decrypt Metaheader by using PdiInit */
/* Extract Metaheader using PdiInit */
XSECURE_TEMPORAL_CHECK(END, Status, XLoader_PdiInit, PdiPtr,
XLOADER_PDI_SRC_DDR, SrcAddr);

DataSize = (PdiPtr->MetaHdr.ImgHdrTbl.TotalHdrLen * XPLMI_WORD_LEN) +
XIH_IHT_LEN;
if (DestSize < DataSize) {
Status = XLOADER_ERR_INVALID_METAHDR_BUFF_SIZE;
goto END;
}

/* Zeroize non-exportable fields of image header table */
XLoader_GetExportableBuffer((u32 *)&PdiPtr->MetaHdr.ImgHdrTbl,
XLOADER_IMG_HDR_TBL_EXPORT_MASK0, XIH_IHT_LEN);
Expand Down Expand Up @@ -744,7 +791,7 @@ static int XLoader_DecryptMetaheader(XPlmi_Cmd *Cmd)
if (Status != XST_SUCCESS) {
goto END;
}
XPlmi_Printf(DEBUG_GENERAL, "Decrypted Metaheader Successfully\n\r");
XPlmi_Printf(DEBUG_GENERAL, "Extracted Metaheader Successfully\n\r");

END:
XPlmi_Out32(PMC_GLOBAL_DONE, XLOADER_PDI_LOAD_COMPLETE);
Expand Down Expand Up @@ -814,7 +861,7 @@ static const XPlmi_ModuleCmd XLoader_Cmds[] =
XPLMI_MODULE_COMMAND(XLoader_GetImageInfo),
XPLMI_MODULE_COMMAND(XLoader_SetImageInfo),
XPLMI_MODULE_COMMAND(XLoader_GetImageInfoList),
XPLMI_MODULE_COMMAND(XLoader_DecryptMetaheader),
XPLMI_MODULE_COMMAND(XLoader_ExtractMetaheader),
XPLMI_MODULE_COMMAND(XLoader_LoadReadBackPdi),
XPLMI_MODULE_COMMAND(XLoader_UpdateMultiboot),
XPLMI_MODULE_COMMAND(XLoader_AddImageStorePdi),
Expand Down
18 changes: 18 additions & 0 deletions lib/sw_services/xilpdi/src/xilpdi.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* har 03/31/2021 Added PdiId in XilPdi_ImgHdrTbl structure
* 1.06 td 07/08/2021 Fix doxygen warnings
* bsv 08/16/2021 Code clean up
* bm 08/24/2021 Added Extract Metaheader support
*
* </pre>
*
Expand Down Expand Up @@ -78,6 +79,17 @@ extern "C" {
#define XIH_MIN_IMGS (1U)
#define XIH_MAX_IMGS (32U)

/**
* Boot header identification string
*/
#define XIH_BH_IMAGE_IDENT (0x584C4E58U) /**< XLNX pattern */
#define XIH_BH_IMAGE_IDENT_OFFSET (0x14U)

/**
* Offset to the metaheader offset field present in boot header
*/
#define XIH_BH_META_HDR_OFFSET (0xC4U)

/**
* Boot header address in PRAM copied by ROM
*/
Expand Down Expand Up @@ -131,6 +143,12 @@ extern "C" {

#define XIH_IHT_EXT_IDCODE_MASK (0x3FU)

/*
* IHT Identification string
*/
#define XIH_IHT_IDENT_STRING_OFFSET (0x28U)
#define XIH_IHT_PPDI_IDENT_VAL (0x50504449U)

/**
* Secondary Boot Device (SBD) in IHT Attributes
*/
Expand Down
3 changes: 0 additions & 3 deletions lib/sw_services/xilplmi/src/xplmi_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
* bm 07/12/2021 Added error code for setting IRO frequency
* bsv 07/16/2021 Fix doxygen warnings
* bsv 07/16/2021 Added Macronix flash support
* bm 07/16/2021 Added error code for decrypt metaheader
* bm 08/09/2021 Cleared PMC CDO buffer by default after processing
* bsv 08/17/2021 Code clean up
*
Expand Down Expand Up @@ -517,8 +516,6 @@ typedef enum {
XLOADER_ERR_REQUEST_BOOT_DEVICE, /**< 0x368 - Failed to Request Boot Device */
XLOADER_ERR_RELEASE_BOOT_DEVICE, /**< 0x369 - Failed to Release Boot Device */
XLOADER_ERR_OSPI_DUAL_BYTE_OP_DISABLE, /**< 0x36A - Failed to disable DUAL BYTE OP */
XLOADER_ERR_INVALID_METAHDR_BUFF_SIZE, /**< 0x36B - Error when buffer size given by user
is less than the metaheader length */

/**< Security Major error codes */
XLOADER_ERR_INIT_GET_DMA = 0x600,
Expand Down