909 Commits

Author SHA1 Message Date
brentholtsclaw 2c6528a38f Update to verison 1.5.0
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
1.5.0
2020-05-01 16:46:46 -07:00
brentholtsclaw 731629a7d3 Add PCH_CODE_XXX to globals
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 12:17:11 -07:00
brentholtsclaw daba05d1b0 Fix xml configuration loading
ensure all filename and configuration names are consistently lowercase

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 12:17:11 -07:00
Nathaniel Mitchell 62eac70f7c Fixed extra closing tag
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2020-05-01 12:16:53 -07:00
brentholtsclaw c10d066a09 Modify xml load order
files with common name
files that are not platform/pch specific
files that are platform specific
files that are pch specific

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 11:32:09 -07:00
Martin Galvan c7da8f0f06 Apollo Lake/Gemini Lake: Fix register definitions
This commit fixes several register/field definitions for APL and GLK. I found
these mistakes after checking against the Intel datasheets.

In some cases (such as BDSM and friends) I saw that we can just fall back to the
'common' definitions, since those match the datasheets'.

Notice that I intentionally didn't fix ABASE for GLK, so as not to conflict with
PR #890.
2020-05-01 11:31:29 -07:00
brentholtsclaw 965793d148 Add pch_4xxh to config
Based on doc 620854 and 620855

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 11:19:56 -07:00
brentholtsclaw 57850deb2e Fixup spibar and pwrmbase for glk and spibar for apl
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 11:19:36 -07:00
Armour, Nicholas 3df8d27a4c fix abase definition 2020-05-01 11:17:28 -07:00
brentholtsclaw 54860e3d45 Update IOCTL_LOAD_UCODE_PATCH in linux driver
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 08:23:23 -07:00
brentholtsclaw acace8ec2c Modify rdmsr/wrmsr for linux driver
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 08:22:28 -07:00
brentholtsclaw 45ef668234 Add ability to use LENGTH and ADMSKXXX regs within client atom
Depends on #844
Fix for issue #877

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-01 08:21:45 -07:00
Ignacio Hernandez c920c932c2 Sort the reported result summaries
Makes easier to compare results between runs

Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2020-05-01 08:21:10 -07:00
Ignacio Hernandez 427ab13196 Adding markdown formatted output
Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2020-05-01 08:21:10 -07:00
brentholtsclaw 2d0233ad87 Fix broken module imports
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-28 16:14:11 -07:00
Frinzell 61c47d8877 Check device enabled based on reg 2020-04-28 16:09:58 -07:00
Frinzell 77835d7fe4 Update hex dump and print 2020-04-28 16:08:27 -07:00
Cr4sh 6d491162bf linux helper HAS_EFI bugfix 2020-04-28 16:07:53 -07:00
brentholtsclaw bdc5a20611 Move Cfg class to chipset.py
Delete file
Move class to chipset.py
Remove imports from common.py

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-22 16:26:11 -07:00
BrentHoltsclaw 4f3b7236ba Remove duplicate configuration from common.py and move specific configuration to hal files
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-04-22 16:26:11 -07:00
brentholtsclaw f2f1b54345 Address comments
Merged in changes from #871 will close PR

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
brentholtsclaw 42310edfb7 Apply suggested changes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
brentholtsclaw 55a3f7e700 Changes after rebase with 1.4.8
Fixup 300 split for the configuration
Fixup snb additions

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
BrentHoltsclaw 514c23d84d Modify files based upon chipset.py changes
Fixup files that relied on CHIPSET_ID_XXX logic
Modify files for functions moved within cs class

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
BrentHoltsclaw d88dc907f3 Modify chipset.py to load configuration dictionary from xml
Added initialize_xml which reads in pch and chipset dictionary
Added VID to dictinaries
Removed CHIPSET_ID_XXX and functionality

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
BrentHoltsclaw 194c9ec70b Reorganize xml
Add VID level directory
Move chipset_dictionary to chipset configurations
Move pch_dictionary to pch configurations

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
brentholtsclaw 12bb725351 Update copyright
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:23:07 -07:00
brentholtsclaw 9c47edabf7 Misc LGTM fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:23:07 -07:00
brentholtsclaw 8106f9718a Helper LGTM fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:13:26 -07:00
brentholtsclaw 4492206438 HAL fixes from LGTM (3/3)
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:13:02 -07:00
Ignacio Hernandez 87185860e3 Changed the method used for counting the number of threads
The current method breaks when 'process' is found in the CPU
brand string. Instead use the multiprocessing module to collect
this information.

We could get the information from the MSR but that method does
not work when one or more CPUs are offline.

Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2020-04-16 12:02:18 -07:00
Frinzell d7646897f7 Fix util command errors 2020-04-16 12:01:58 -07:00
brentholtsclaw 32d0633fcf HAL fixes from LGTM (2/3)
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-16 12:00:36 -07:00
brentholtsclaw f2b0d31d31 HAL fixes from LGTM (1/3)
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-16 12:00:18 -07:00
brentholtsclaw 604c3fc8b9 Update to version 1.4.9
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
1.4.9
2020-03-26 17:57:30 -07:00
Frinzell 58b652f260 Correct a typo and Py3 support 2020-03-26 16:47:02 -07:00
Frinzell 54746c41e5 Add common multi-bus routines
Add None checks

Updated per suggestions

Added changes
2020-03-26 14:31:35 -07:00
Frinzell cc0fd61fc2 Update conditional 2020-03-26 13:00:01 -07:00
Frinzell 51f986ac84 Add check for is_device_defined 2020-03-26 13:00:01 -07:00
brentholtsclaw dfd80953aa Edit display_SPI_Ranges_Access_Permissions output
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-03-26 12:58:09 -07:00
Matan Mates d2f3648b37 Added bootstrap CSS to static files & Moved utils to chipsec_tools 2020-03-25 13:56:08 -07:00
Matan Mates 5f9b822d34 Removed unused import 2020-03-25 13:56:08 -07:00
Matan Mates 3f3898b09e Chipsec XML to Human-readable HTML log parser
This includes a lxml parser and a flask/jinja2 server, after running
the server simply drag and drop the XML report and it will generate
a HTML report

Also included is an actual chipsec result XML for testing.
2020-03-25 13:56:08 -07:00
NicholasArmour f8b45ea3c0 Update uefi_cmd.py 2020-03-25 13:55:39 -07:00
NicholasArmour 3a5f12ecf5 suggested is_supported changes 2020-03-25 13:55:39 -07:00
Nicholas Armour be56670c0a bug fixes after testing 2020-03-25 13:55:39 -07:00
Armour, Nicholas 55a403a07b lgtm fixes 2020-03-25 13:55:39 -07:00
Armour, Nicholas 8edce67955 Using Argparse in uefi_cmd.py WIP 2020-03-25 13:55:39 -07:00
BrentHoltsclaw 1b547bcaea Update ept-finder to current CHIPSEC version
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-03-23 17:00:11 -07:00
mikhail-gorobets 76d90aeb2f Extended Page Table (EPT) Finder
finds ept in memory or memory dump
2020-03-23 17:00:11 -07:00