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

More Lenovo laptops support #49

Closed
elichai opened this issue Jul 2, 2018 · 2 comments
Closed

More Lenovo laptops support #49

elichai opened this issue Jul 2, 2018 · 2 comments

Comments

@elichai
Copy link

elichai commented Jul 2, 2018

Hi,

I'm running SGX on both Lenovo YOGA 720 and Lenovo Carbon X1 (both have an option in the BIOS and I develop SGX code on them (HW Mode))

@ayeks
Copy link
Owner

ayeks commented Jul 9, 2018

Hey,

thanks a lot for the information. To some researchers it is really interesting if SGX 1 or 2 is enabled in the devices. Could you please execute the test-sgx.c and paste the results if you have any spare time?

$ gcc test-sgx.c -o test-sgx
$ ./test-sgx

Thanks a lot!

@elichai
Copy link
Author

elichai commented Jul 9, 2018

Here:

$ inxi -F
System:    Host: elichai2-YOGA-720 Kernel: 4.15.18-041518-generic x86_64 bits: 64 Desktop: KDE Plasma 5.12.4
           Distro: Ubuntu 17.10
Machine:   Device: un-determined System: LENOVO product: 80X7 v: Lenovo YOGA 720-15IKB serial: N/A
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: N/A
           UEFI: LENOVO v: 4MCN31WW(V2.03) date: 03/08/2018
Battery    BAT1: charge: 66.6 Wh 98.4% condition: 67.7/72.2 Wh (94%)
CPU:       Quad core Intel Core i7-7700HQ (-HT-MCP-) cache: 6144 KB
           clock speeds: max: 2800 MHz 1: 994 MHz 2: 999 MHz 3: 999 MHz 4: 994 MHz 5: 998 MHz 6: 998 MHz
           7: 999 MHz 8: 999 MHz
Graphics:  Card-1: Intel Device 591b
           Card-2: NVIDIA GP107M [GeForce GTX 1050 Mobile]
           Display Server: x11 (X.Org 1.19.5 ) drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) version: 4.5 Mesa 17.2.8
Audio:     Card-1 Intel Device a171 driver: snd_hda_intel Sound: ALSA v: k4.15.18-041518-generic
           Card-2 Lenovo driver: USB Audio
Network:   Card: Intel Wireless 8265 / 8275 driver: iwlwifi
           IF: wlp2s0 state: up mac: b8:08:cf:e4:c4:8d
Drives:    HDD Total Size: NA (-)
           ID-1: /dev/nvme0n1 model: N/A size: 512.1GB
Partition: ID-1: / size: 461G used: 201G (46%) fs: ext4 dev: /dev/nvme0n1p2
           ID-2: swap-1 size: 8.19GB used: 0.00GB (0%) fs: swap dev: /dev/nvme0n1p3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 60.0C mobo: 29.8C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 305 Uptime: 18:26 Memory: 5606.2/15769.2MB Client: Shell (bash) inxi: 2.3.37 


$ ./test-sgx 
eax: 906e9 ebx: 5100800 ecx: 7ffafbbf edx: bfebfbff
stepping 9
model 14
family 6
processor type 0
extended model 9
extended family 0
smx: 0

Extended feature bits (EAX=07H, ECX=0H)
eax: 0 ebx: 29c67af ecx: 0 edx: c000000
sgx available: 1

CPUID Leaf 12H, Sub-Leaf 0 of Intel SGX Capabilities (EAX=12H,ECX=0)
eax: 1 ebx: 0 ecx: 0 edx: 241f
sgx 1 supported: 1
sgx 2 supported: 0
MaxEnclaveSize_Not64: 1f
MaxEnclaveSize_64: 24

CPUID Leaf 12H, Sub-Leaf 1 of Intel SGX Capabilities (EAX=12H,ECX=1)
eax: 36 ebx: 0 ecx: 1f edx: 0

CPUID Leaf 12H, Sub-Leaf 2 of Intel SGX Capabilities (EAX=12H,ECX=2)
eax: 30200001 ebx: 0 ecx: 5d80001 edx: 0

CPUID Leaf 12H, Sub-Leaf 3 of Intel SGX Capabilities (EAX=12H,ECX=3)
eax: 0 ebx: 0 ecx: 0 edx: 0

CPUID Leaf 12H, Sub-Leaf 4 of Intel SGX Capabilities (EAX=12H,ECX=4)
eax: 0 ebx: 0 ecx: 0 edx: 0

CPUID Leaf 12H, Sub-Leaf 5 of Intel SGX Capabilities (EAX=12H,ECX=5)
eax: 0 ebx: 0 ecx: 0 edx: 0

CPUID Leaf 12H, Sub-Leaf 6 of Intel SGX Capabilities (EAX=12H,ECX=6)
eax: 0 ebx: 0 ecx: 0 edx: 0

CPUID Leaf 12H, Sub-Leaf 7 of Intel SGX Capabilities (EAX=12H,ECX=7)
eax: 0 ebx: 0 ecx: 0 edx: 0

CPUID Leaf 12H, Sub-Leaf 8 of Intel SGX Capabilities (EAX=12H,ECX=8)
eax: 0 ebx: 0 ecx: 0 edx: 0

CPUID Leaf 12H, Sub-Leaf 9 of Intel SGX Capabilities (EAX=12H,ECX=9)
eax: 0 ebx: 0 ecx: 0 edx: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants