Benjamin Doron has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only. ......................................................................
mb/acer/aspire_vn7_572g: Adds support for an Acer laptop Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,282 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/1
diff --git a/src/mainboard/acer/Kconfig b/src/mainboard/acer/Kconfig new file mode 100644 index 0000000..f56a2a2 --- /dev/null +++ b/src/mainboard/acer/Kconfig @@ -0,0 +1,16 @@ +if VENDOR_ACER + +choice + prompt "Mainboard model" + +source "src/mainboard/acer/*/Kconfig.name" + +endchoice + +source "src/mainboard/acer/*/Kconfig" + +config MAINBOARD_VENDOR + string "Mainboard Vendor" + default "Acer" + +endif # VENDOR_ACER diff --git a/src/mainboard/acer/Kconfig.name b/src/mainboard/acer/Kconfig.name new file mode 100644 index 0000000..bb177f9 --- /dev/null +++ b/src/mainboard/acer/Kconfig.name @@ -0,0 +1,2 @@ +config VENDOR_ACER + bool "Acer" diff --git a/src/mainboard/acer/aspire_vn7_572g/Kconfig b/src/mainboard/acer/aspire_vn7_572g/Kconfig new file mode 100644 index 0000000..4b3c127 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/Kconfig @@ -0,0 +1,68 @@ +if BOARD_ACER_VN7_572G + +config BOARD_SPECIFIC_OPTIONS + def_bool y + select SYSTEM_TYPE_LAPTOP + select BOARD_ROMSIZE_KB_8192 + select HAVE_ACPI_RESUME + select HAVE_ACPI_TABLES + select SOC_INTEL_COMMON_BLOCK_HDA_VERB + select SOC_INTEL_SKYLAKE + select MAINBOARD_USES_FSP2_0 + select SPD_READ_BY_WORD + select MAINBOARD_HAS_LPC_TPM + select NO_POST # This platform has no way to see POST codes so disable them by default. + +config IRQ_SLOT_COUNT + int + default 18 + +config MAINBOARD_VENDOR + string + default "Acer" + +config MAINBOARD_FAMILY + string + default "Aspire V Nitro" + +config MAINBOARD_PART_NUMBER + string + default "Aspire VN7-572G" + +config MAINBOARD_DIR + string + default "acer/aspire_vn7_572g" + +config DEVICETREE + string + default "devicetree.cb" + +config MAX_CPUS + int + default 4 + +config VGA_BIOS_ID + string + default "8086,1916" + +config DIMM_MAX + int + default 2 + +config DIMM_SPD_SIZE + int + default 512 + +config CPU_MICROCODE_CBFS_LEN + hex + default 0x18000 + +config CPU_MICROCODE_CBFS_LOC + hex + default 0xFFE115A0 + +config CBFS_SIZE + hex + default 0x5c0000 + +endif diff --git a/src/mainboard/acer/aspire_vn7_572g/Kconfig.name b/src/mainboard/acer/aspire_vn7_572g/Kconfig.name new file mode 100644 index 0000000..b881680 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/Kconfig.name @@ -0,0 +1,2 @@ +config BOARD_ACER_VN7_572G + bool "Aspire VN7-572G" diff --git a/src/mainboard/acer/aspire_vn7_572g/Makefile.inc b/src/mainboard/acer/aspire_vn7_572g/Makefile.inc new file mode 100644 index 0000000..35f0f6c --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/Makefile.inc @@ -0,0 +1,17 @@ +## +## This file is part of the coreboot project. +## +## Copyright (C) 2015 Google Inc. +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; version 2 of the License. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## + +ramstage-y += ramstage.c +ramstage-y += hda_verb.c diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl new file mode 100644 index 0000000..2eed489 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl @@ -0,0 +1,328 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2016 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +Name (EMBA, 0xFE800000) + +Device (EC0) +{ + Name (_HID, EisaId ("PNP0C09")) /* Embedded Controller Device */ // _HID: Hardware ID + + Name (_GPE, 0x50) // _GPE: General Purpose Events + Method (_STA, 0, NotSerialized) // _STA: Status + { + Return (0x0F) + } + + Name (_CRS, ResourceTemplate () { // _CRS: Current Resource Settings + IO (Decode16, 0x62, 0x62, 0, 1) // Range Minimum, Range Maximum, Alignment, Length + IO (Decode16, 0x66, 0x66, 0, 1) // Range Minimum, Range Maximum, Alignment, Length + }) + OperationRegion (ECO1, SystemIO, 0x62, One) + Field (ECO1, ByteAcc, Lock, Preserve) + { + PX62, 8 + } + + OperationRegion (ECO2, SystemIO, 0x66, One) + Field (ECO2, ByteAcc, Lock, Preserve) + { + PX66, 8 + } + + OperationRegion (ECMB, SystemMemory, EMBA, 0x0200) + OperationRegion (RAM, EmbeddedControl, Zero, 0xFF) + Field (RAM, ByteAcc, Lock, Preserve) + { + CMDB, 8, + Offset (0x06), + CMD2, 8, + CMD1, 8, + CMD0, 8, + Offset (0x0A), + , 1, /* Reserved */ + , 1, /* Reserved */ + Offset (0x10), + EQEN, 1, + , 1, /* Reserved */ + Offset (0x4E), + ISEN, 1, /* Sense? (0=Not Exist, 1=Exist) */ + Offset (0x51), + , 3, /* Reserved */ + TPEN, 1, + Offset (0x52), + WLEX, 1, /* Wireless LAN (0=Not Exist, 1=Exist) */ + BTEX, 1, /* Bluetooth? (0=Not Exist, 1=Exist) */ + EX3G, 1, /* 3G (0=Not Exist, 1=Exist) */ + , 3, /* Reserved */ + RFEX, 1, + Offset (0x57), + , 7, /* Reserved */ + AHKB, 1, + AHKE, 8, + Offset (0x5C), + Offset (0x5D), + Offset (0x70), + , 1, /* Reserved */ + KLID, 1, /* LID? */ + , 3, /* Reserved */ + KACS, 1, /* AC power? */ + Offset (0x71), + WLEN, 1, /* Wireless LAN (0=Not Enabled, 1=Enabled) */ + BTEN, 1, /* Bluetooth (0=Not Enabled, 1=Enabled) */ + , 3, /* Reserved */ + ISS3, 1, + ISS4, 1, + ISS5, 1, + Offset (0x74), + , 2, /* Reserved */ + , 1, /* Reserved */ + TPEX, 1, + Offset (0x75), + BLST, 1, + LMIB, 1, + Offset (0x76), + ECSS, 4, + EOSS, 4 + } + + Method (_REG, 2, NotSerialized) // _REG: Region Availability + { + /* Initialize AC power state */ + Store (KACS, \PWRS) + + /* Initialize LID switch state */ + Store (KLID, \LIDS) + } + + /* KEY_BRIGHTNESSUP */ + Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (^^^GFX0.DD1F, 0x86) // Device-Specific + } + + /* KEY_BRIGHTNESSDOWN */ + Method (_Q1D, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (^^^GFX0.DD1F, 0x87) // Device-Specific + } + + /* Battery Information Event */ + Method (_Q40, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (BAT0, 0x81) // Information Change + } + + /* AC event */ + Method (_Q50, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (ADP1, 0x80) // Status Change + } + + /* Lid event */ + Method (_Q52, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (LID0, 0x80) // Status Change + } + + /* Battery Information Event */ + Method (_Q41, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (BAT0, 0x81) // Information Change + } + + /* Battery Status Event */ + Method (_Q48, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF + { + Notify (BAT0, 0x80) // Status Change + } + + Method (ECWK, 1, NotSerialized) + { + EQEN = One + Notify (BAT0, 0x81) // Information Change + If (((Arg0 == 0x03) || (Arg0 == 0x04))) + { + Notify (SLPB, 0x02) // Device Wake + } + } + + Name (B0ST, Zero) + Field (ECMB, ByteAcc, Lock, Preserve) + { + Offset (0x08), + MB0S, 8 + } + + OperationRegion (MBB0, SystemMemory, (EMBA + 0x80), 0xFF) + Field (MBB0, ByteAcc, Lock, Preserve) + { + MBRC, 16, + MBFC, 16, + MBPE, 16, + MBAC, 16, + MBVO, 16, + , 15, + MBCM, 1, + MBCU, 16, + MBTV, 16 + } + + Method (GBIF, 3, NotSerialized) + { + If (Arg2) + { + Arg1 [One] = 0xFFFFFFFF + Arg1 [0x02] = 0xFFFFFFFF + Arg1 [0x04] = 0xFFFFFFFF + Arg1 [0x05] = Zero + Arg1 [0x06] = Zero + } + + Return (Arg1) + } + + Method (GBST, 4, NotSerialized) + { + Local0 = Zero + + If ((Arg1 & One)) + { + Local1 = MBAC /* _SB_.PCI0.LPCB.EC0_.MBAC */ + Local2 = MBRC /* _SB_.PCI0.LPCB.EC0_.MBRC */ + If (ACST) + { + If ((Arg1 & 0x20)) + { + Local2 = MBFC /* _SB_.PCI0.LPCB.EC0_.MBFC */ + } + } + + Local3 = MBVO /* _SB_.PCI0.LPCB.EC0_.MBVO */ + If ((Local1 >= 0x8000)) + { + If ((Local0 & One)) + { + Local1 = (0x00010000 - Local1) + } + Else + { + Local1 = Zero + } + } + + If (Arg2) + { + Local1 *= Local3 + Divide (Local1, 0x03E8, Local1) + } + } + Else + { + Local0 = Zero + Local1 = 0xFFFFFFFF + Local2 = 0xFFFFFFFF + Local3 = 0xFFFFFFFF + } + + Arg3 [Zero] = Local0 + Arg3 [One] = Local1 + Arg3 [0x02] = Local2 + Arg3 [0x03] = Local3 + Return (Arg3) + } + + Name (ACST, One) + Device (ADP1) + { + Name (_HID, "ACPI0003") /* Power Source Device */ // _HID: Hardware ID + Name (_PCL, Package () { _SB }) // _PCL: Power Consumer List + Method (_PSR) // _PSR: Power Source + { + Return (\PWRS) + } + Method (_STA) // _STA: Status + { + Return (0x0F) + } + } + + Device (BAT0) + { + Name (_HID, EisaId ("PNP0C0A")) /* Control Method Battery */ // _HID: Hardware ID + Name (_UID, Zero) // _UID: Unique ID + Method (_PCL, 0, NotSerialized) // _PCL: Power Consumer List + { + Return (_SB) /* _SB_ */ + } + + Method (_STA, 0, NotSerialized) // _STA: Status + { + If (B0ST) + { + Return (0x1F) + } + Else + { + Return (0x0F) + } + } + + Name (B0IP, Package (0x0D) + { + 0x00000001, /* 0x00: Power Unit: mAH */ + 0xFFFFFFFF, /* 0x01: Design Capacity */ + 0xFFFFFFFF, /* 0x02: Last Full Charge Capacity */ + 0x00000001, /* 0x03: Battery Technology: Rechargeable */ + 0xFFFFFFFF, /* 0x04: Design Voltage */ + 0x00000000, /* 0x05: Design Capacity of Warning */ + 0x00000000, /* 0x06: Design Capacity of Low */ + 0x00000001, /* 0x07: Capacity Granularity 1 */ + 0x00000001, /* 0x08: Capacity Granularity 2 */ + "", /* 0x09: Model Number */ + "100", /* 0x0a: Serial Number */ + "Lion", /* 0x0b: Battery Type */ + 0x00000000 /* 0x0c: OEM Information */ + }) + + Method (_BIF, 0, NotSerialized) // _BIF: Battery Information + { + Local6 = B0ST /* _SB_.PCI0.LPCB.EC0_.B0ST */ + While ((Local6)) + { + Local1 = MB0S /* _SB_.PCI0.LPCB.EC0_.MB0S */ + If ((Local1 & 0x08)) + { + Local6 = Zero + } + } + + Return (GBIF (Zero, B0IP, Local6)) + } + + Name (B0SP, Package (0x04) + { + 0x00000000, /* 0x00: Battery State */ + 0xFFFFFFFF, /* 0x01: Battery Present Rate */ + 0xFFFFFFFF, /* 0x02: Battery Remaining Capacity */ + 0xFFFFFFFF /* 0x03: Battery Present Voltage */ + }) + + Method (_BST, 0, NotSerialized) // _BST: Battery Status + { + Local0 = (DerefOf (B0IP [Zero]) ^ One) + Return (GBST (Zero, MB0S, Local0, B0SP)) + } + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl new file mode 100644 index 0000000..e145a2b --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl @@ -0,0 +1,68 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2018 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +OperationRegion (SANV, SystemMemory, 0x7CE5FD98, Zero) +Field (SANV, AnyAcc, Lock, Preserve) +{ + BRTL, 8 +} + +Scope (_SB.PCI0) +{ + Device (GFX0) + { + Name (_ADR, 0x00020000) // _ADR: Address + + Device (DD1F) + { + Method (_ADR, 0, Serialized) // _ADR: Address + { + Return (0x1F) + } + + Method (_BCL, 0, NotSerialized) // _BCL: Brightness Control Levels + { + Return (Package (0x0C) + { + 0x50, + 0x32, + 0x0A, + 0x14, + 0x1E, + 0x28, + 0x32, + 0x3C, + 0x46, + 0x50, + 0x5A, + 0x64 + }) + } + + Method (_BCM, 1, NotSerialized) // _BCM: Brightness Control Method + { + If (((Arg0 >= Zero) && (Arg0 <= 0x64))) + { + BRTL = Arg0 + } + } + + Method (_BQC, 0, NotSerialized) // _BQC: Brightness Query Current + { + Return (BRTL) /* \BRTL */ + } + } + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl new file mode 100644 index 0000000..90e75f2 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl @@ -0,0 +1,54 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2016 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +Scope (_SB) +{ + Device (LID0) /* Lid Device */ + { + Name (_HID, EisaId ("PNP0C0D")) + + Method (_STA) // _STA: Status + { + Return (0xF) + } + + Method (_LID) // _LID: Lid Status + { + Return (\LIDS) + } + } + + Device (PWRB) + { + Name (_HID, EisaId ("PNP0C0C")) + + Method (_STA) + { + Return (0xF) + } + + Name (_PRW, Package () { 27, 4 }) + } + + Device (SLPB) /* Sleep Button Device */ // _HID: Hardware ID + { + Name (_HID, EisaId ("PNP0C0E")) + + Method (_STA) // _STA: Status + { + Return (0xF) + } + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl new file mode 100644 index 0000000..92c272e --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl @@ -0,0 +1,16 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2016 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <drivers/pc80/pc/ps2_controller.asl> diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi_tables.c b/src/mainboard/acer/aspire_vn7_572g/acpi_tables.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi_tables.c diff --git a/src/mainboard/acer/aspire_vn7_572g/board_info.txt b/src/mainboard/acer/aspire_vn7_572g/board_info.txt new file mode 100644 index 0000000..f16707e --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/board_info.txt @@ -0,0 +1,8 @@ +Vendor name: Acer +Board name: Aspire VN7-572G +Category: laptop +ROM package: SOIC8 +ROM protocol: SPI +ROM socketed: n +Flashrom support: y +Release year: 2015 diff --git a/src/mainboard/acer/aspire_vn7_572g/devicetree.cb b/src/mainboard/acer/aspire_vn7_572g/devicetree.cb new file mode 100644 index 0000000..f38b0b8 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/devicetree.cb @@ -0,0 +1,218 @@ +chip soc/intel/skylake + + # Disable deep Sx states + register "deep_s3_enable_ac" = "0" + register "deep_s3_enable_dc" = "0" + register "deep_s5_enable_ac" = "0" + register "deep_s5_enable_dc" = "0" + register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN" + + register "eist_enable" = "1" + + # Set the Thermal Control Circuit (TCC) activaction value to 95C + # even though FSP integration guide says to set it to 100C for SKL-U + # (offset at 0), because when the TCC activates at 100C, the CPU + # will have already shut itself down from overheating protection. + register "tcc_offset" = "5" # TCC of 95C + + # GPE configuration + # Note that GPE events called out in ASL code rely on this + # route. i.e. If this route changes then the affected GPE + # offset bits also need to be changed. + register "gpe0_dw0" = "GPP_C" + register "gpe0_dw1" = "GPP_D" + register "gpe0_dw2" = "GPP_E" + + # EC host command ranges are in 0x60-0x66 + register "gen1_dec" = "0x00000061" + + # Enable "Intel Speed Shift Technology" + register "speed_shift_enable" = "1" + + # Disable DPTF + register "dptf_enable" = "0" + + # FSP Configuration + register "ProbelessTrace" = "0" + register "EnableLan" = "0" + register "EnableSata" = "1" + register "SataSalpSupport" = "1" + register "SataMode" = "0" + register "SataPortsEnable[0]" = "1" + register "SataPortsEnable[1]" = "1" + register "SataPortsEnable[2]" = "1" + register "SataPortsDevSlp[0]" = "0" + register "SataPortsDevSlp[1]" = "0" + register "SataPortsDevSlp[2]" = "0" + register "EnableAzalia" = "1" + register "DspEnable" = "1" + register "IoBufferOwnership" = "0" + register "EnableTraceHub" = "0" + register "SsicPortEnable" = "0" + register "SmbusEnable" = "1" + register "Cio2Enable" = "0" + register "ScsEmmcEnabled" = "0" + register "ScsEmmcHs400Enabled" = "0" + register "ScsSdCardEnabled" = "0" + register "PttSwitch" = "0" + register "SkipExtGfxScan" = "0" + register "Device4Enable" = "0" + register "HeciEnabled" = "1" + register "SaGv" = "0" + register "PmConfigSlpS3MinAssert" = "2" # 50ms + register "PmConfigSlpS4MinAssert" = "1" # 1s + register "PmConfigSlpSusMinAssert" = "3" # 500ms + register "PmConfigSlpAMinAssert" = "3" # 2s + register "PmTimerDisabled" = "0" + + # EC/KBC requires continuous mode + register "serirq_mode" = "SERIRQ_CONTINUOUS" + + register "pirqa_routing" = "PCH_IRQ11" + register "pirqb_routing" = "PCH_IRQ10" + register "pirqc_routing" = "PCH_IRQ11" + register "pirqd_routing" = "PCH_IRQ11" + register "pirqe_routing" = "PCH_IRQ11" + register "pirqf_routing" = "PCH_IRQ11" + register "pirqg_routing" = "PCH_IRQ11" + register "pirqh_routing" = "PCH_IRQ11" + + # VR Settings Configuration for 4 Domains + #+----------------+-----------+-----------+-------------+----------+ + #| Domain/Setting | SA | IA | GT Unsliced | GT | + #+----------------+-----------+-----------+-------------+----------+ + #| Psi1Threshold | 20A | 20A | 20A | 20A | + #| Psi2Threshold | 4A | 5A | 5A | 5A | + #| Psi3Threshold | 1A | 1A | 1A | 1A | + #| Psi3Enable | 1 | 1 | 1 | 1 | + #| Psi4Enable | 1 | 1 | 1 | 1 | + #| ImonSlope | 0 | 0 | 0 | 0 | + #| ImonOffset | 0 | 0 | 0 | 0 | + #| IccMax | 7A | 34A | 35A | 35A | + #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | + #+----------------+-----------+-----------+-------------+----------+ + register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ + .vr_config_enable = 1, + .psi1threshold = VR_CFG_AMP(20), + .psi2threshold = VR_CFG_AMP(4), + .psi3threshold = VR_CFG_AMP(1), + .psi3enable = 1, + .psi4enable = 1, + .imon_slope = 0x0, + .imon_offset = 0x0, + .icc_max = VR_CFG_AMP(7), + .voltage_limit = 1520, + }" + + register "domain_vr_config[VR_IA_CORE]" = "{ + .vr_config_enable = 1, + .psi1threshold = VR_CFG_AMP(20), + .psi2threshold = VR_CFG_AMP(5), + .psi3threshold = VR_CFG_AMP(1), + .psi3enable = 1, + .psi4enable = 1, + .imon_slope = 0x0, + .imon_offset = 0x0, + .icc_max = VR_CFG_AMP(34), + .voltage_limit = 1520, + }" + + register "domain_vr_config[VR_GT_UNSLICED]" = "{ + .vr_config_enable = 1, + .psi1threshold = VR_CFG_AMP(20), + .psi2threshold = VR_CFG_AMP(5), + .psi3threshold = VR_CFG_AMP(1), + .psi3enable = 1, + .psi4enable = 1, + .imon_slope = 0x0, + .imon_offset = 0x0, + .icc_max = VR_CFG_AMP(35), + .voltage_limit = 1520, + }" + + register "domain_vr_config[VR_GT_SLICED]" = "{ + .vr_config_enable = 1, + .psi1threshold = VR_CFG_AMP(20), + .psi2threshold = VR_CFG_AMP(5), + .psi3threshold = VR_CFG_AMP(1), + .psi3enable = 1, + .psi4enable = 1, + .imon_slope = 0x0, + .imon_offset = 0x0, + .icc_max = VR_CFG_AMP(35), + .voltage_limit = 1520, + }" + + # Enable Root Ports 1, 9 and 10 + register "PcieRpEnable[2]" = "1" + register "PcieRpLtrEnable[2]" = "1" + register "PcieRpEnable[8]" = "1" + register "PcieRpLtrEnable[8]" = "1" + register "PcieRpEnable[9]" = "1" + register "PcieRpLtrEnable[9]" = "1" + +# register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port + register "usb2_ports[0]" = "USB2_PORT_MID(OC1)" # Type-A Port (right) + register "usb2_ports[1]" = "USB2_PORT_MID(OC1)" # Type-A Port (right) + register "usb2_ports[3]" = "USB2_PORT_MID(OC1)" # Type-A Port (left) + register "usb2_ports[4]" = "USB2_PORT_FLEX(OC2)" # Bluetooth + register "usb2_ports[6]" = "USB2_PORT_FLEX(OC2)" # Webcam + register "usb2_ports[7]" = "USB2_PORT_FLEX(OC2)" # SD + + # OC0 should be for Type-C but it seems to not have been wired, according to + # the available schematics, even though it is labeled as USB_OC_TYPEC. +# register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port + register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Port (right) + register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Port (right) + + # PL2 override 25W + register "tdp_pl2_override" = "25" + + # Send an extra VR mailbox command for the PS4 exit issue + register "SendVrMbxCmd" = "2" + + # Lock Down + register "common_soc_config" = "{ + .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, + }" + + device cpu_cluster 0 on + device lapic 0 on end + end + device domain 0 on + device pci 00.0 on end # Host Bridge + device pci 02.0 on end # Integrated Graphics Device + device pci 14.0 on end # USB xHCI + device pci 14.1 on end # USB xDCI (OTG) + device pci 14.2 on end # Thermal Subsystem + device pci 16.0 on end # Management Engine Interface 1 + device pci 16.1 off end # Management Engine Interface 2 + device pci 16.2 off end # Management Engine IDE-R + device pci 16.3 off end # Management Engine KT Redirection + device pci 16.4 off end # Management Engine Interface 3 + device pci 17.0 on end # SATA + device pci 1c.0 on end # PCI Express Port 1 + device pci 1c.1 off end # PCI Express Port 2 + device pci 1c.2 off end # PCI Express Port 3 + device pci 1c.3 off end # PCI Express Port 4 + device pci 1c.4 off end # PCI Express Port 5 + device pci 1c.5 off end # PCI Express Port 6 + device pci 1c.6 off end # PCI Express Port 7 + device pci 1c.7 off end # PCI Express Port 8 + device pci 1d.0 on end # PCI Express Port 9 + device pci 1d.1 on end # PCI Express Port 10 + device pci 1d.2 off end # PCI Express Port 11 + device pci 1d.3 off end # PCI Express Port 12 + device pci 1f.0 on + chip drivers/pc80/tpm + device pnp 0c31.0 on end + end + end # LPC Interface + device pci 1f.1 off end # P2SB + device pci 1f.2 on end # Power Management Controller + device pci 1f.3 on end # Intel HDA + device pci 1f.4 on end # SMBus + device pci 1f.5 on end # PCH SPI + device pci 1f.6 off end # GbE + end +end diff --git a/src/mainboard/acer/aspire_vn7_572g/dsdt.asl b/src/mainboard/acer/aspire_vn7_572g/dsdt.asl new file mode 100644 index 0000000..c9bcb7d --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/dsdt.asl @@ -0,0 +1,53 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007-2009 coresystems GmbH + * Copyright (C) 2015 Google Inc. + * Copyright (C) 2016 Intel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <arch/acpi.h> +DefinitionBlock( + "dsdt.aml", + "DSDT", + 0x02, // DSDT revision: ACPI v2.0 and up + OEM_ID, + ACPI_TABLE_CREATOR, + 0x20141018 // OEM revision +) +{ + // Some generic macros + #include <soc/intel/skylake/acpi/platform.asl> + + // global NVS and variables + #include <soc/intel/skylake/acpi/globalnvs.asl> + + // CPU + #include <cpu/intel/common/acpi/cpu.asl> + + Scope (_SB) { + Device (PCI0) + { + #include <soc/intel/skylake/acpi/systemagent.asl> + #include <soc/intel/skylake/acpi/pch.asl> + } + } + + // Chipset specific sleep states + #include <soc/intel/skylake/acpi/sleepstates.asl> + + // Mainboard specific + #include "acpi/mainboard.asl" + + // Graphics display + #include "acpi/graphics.asl" +} diff --git a/src/mainboard/acer/aspire_vn7_572g/gpio.h b/src/mainboard/acer/aspire_vn7_572g/gpio.h new file mode 100644 index 0000000..4d98da1 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/gpio.h @@ -0,0 +1,201 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2015 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the + * GNU General Public License for more details. + */ + +#ifndef MAINBOARD_GPIO_H +#define MAINBOARD_GPIO_H + +#include <soc/gpe.h> +#include <soc/gpio.h> + +#ifndef __ACPI__ + +/* Pad configuration in ramstage. */ +static const struct pad_config gpio_table[] = { +_PAD_CFG_STRUCT(GPP_A0, 0x44000703, 0x0), /* RCIN# */ +_PAD_CFG_STRUCT(GPP_A1, 0x44000702, 0x3c00), /* LAD0 */ +_PAD_CFG_STRUCT(GPP_A2, 0x44000702, 0x3c00), /* LAD1 */ +_PAD_CFG_STRUCT(GPP_A3, 0x44000702, 0x3c00), /* LAD2 */ +_PAD_CFG_STRUCT(GPP_A4, 0x44000702, 0x3c00), /* LAD3 */ +_PAD_CFG_STRUCT(GPP_A5, 0x44000700, 0x0), /* LFRAME# */ +_PAD_CFG_STRUCT(GPP_A6, 0x44000702, 0x0), /* SERIRQ */ +_PAD_CFG_STRUCT(GPP_A7, 0x44000702, 0x0), /* PIRQA# */ +_PAD_CFG_STRUCT(GPP_A8, 0x44000700, 0x0), /* CLKRUN# */ +_PAD_CFG_STRUCT(GPP_A9, 0x44000700, 0x1000), /* CLKOUT_LPC0 */ +_PAD_CFG_STRUCT(GPP_A10, 0x44000700, 0x1000), /* CLKOUT_LPC1 */ +_PAD_CFG_STRUCT(GPP_A11, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A12, 0x44000100, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A13, 0x44000700, 0x0), /* SUSWARN#/SUSPWRDNACK */ +_PAD_CFG_STRUCT(GPP_A14, 0x44000700, 0x0), /* SUS_STAT# */ +_PAD_CFG_STRUCT(GPP_A15, 0x44000700, 0x1000), /* SUS_ACK# */ +_PAD_CFG_STRUCT(GPP_A16, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A17, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A18, 0x44000102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A19, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A20, 0x44000100, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A21, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A22, 0x44000201, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_A23, 0x44000201, 0x1000), /* GPIO */ + +_PAD_CFG_STRUCT(GPP_B0, 0x44000700, 0x0), /* CORE_VID0 */ +_PAD_CFG_STRUCT(GPP_B1, 0x44000700, 0x0), /* CORE_VID1 */ +_PAD_CFG_STRUCT(GPP_B2, 0x44000100, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B3, 0x80100102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B4, 0x44000200, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B5, 0x44000702, 0x0), /* SRCCLKREQ0# */ +_PAD_CFG_STRUCT(GPP_B6, 0x44000702, 0x0), /* SRCCLKREQ1# */ +_PAD_CFG_STRUCT(GPP_B7, 0x44000700, 0x0), /* SRCCLKREQ2# */ +_PAD_CFG_STRUCT(GPP_B8, 0x44000702, 0x0), /* SRCCLKREQ3# */ +_PAD_CFG_STRUCT(GPP_B9, 0x44000702, 0x0), /* SRCCLKREQ4# */ +_PAD_CFG_STRUCT(GPP_B10, 0x44000702, 0x0), /* SRCCLKREQ5# */ +_PAD_CFG_STRUCT(GPP_B11, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B12, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B13, 0x44000700, 0x0), /* PLTRST# */ +_PAD_CFG_STRUCT(GPP_B14, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B15, 0x44000200, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B16, 0x44000200, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B17, 0x42880100, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B18, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B19, 0x44000100, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B20, 0x44000102, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B21, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B22, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_B23, 0x44000201, 0x1000), /* GPIO */ + +_PAD_CFG_STRUCT(GPP_C0, 0x44000702, 0x0), /* SMBCLK */ +_PAD_CFG_STRUCT(GPP_C1, 0x44000702, 0x1000), /* SMBDATA */ +_PAD_CFG_STRUCT(GPP_C2, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C3, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C4, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C5, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C6, 0x44000702, 0x0), /* SML1CLK */ +_PAD_CFG_STRUCT(GPP_C7, 0x44000702, 0x1000), /* SML1DATA */ +_PAD_CFG_STRUCT(GPP_C8, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C9, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C10, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C11, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C12, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C13, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C14, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C15, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_C16, 0x44000702, 0x0), /* I2C0_SDA */ +_PAD_CFG_STRUCT(GPP_C17, 0x44000702, 0x0), /* I2C0_SCL */ +_PAD_CFG_STRUCT(GPP_C18, 0x44000702, 0x0), /* I2C1_SDA */ +_PAD_CFG_STRUCT(GPP_C19, 0x44000702, 0x0), /* I2C1_SCL */ +_PAD_CFG_STRUCT(GPP_C20, 0x44000702, 0x0), /* UART2_RXD */ +_PAD_CFG_STRUCT(GPP_C21, 0x44000700, 0x0), /* UART2_TXD */ +_PAD_CFG_STRUCT(GPP_C22, 0x44000700, 0x0), /* UART2_RTS# */ +_PAD_CFG_STRUCT(GPP_C23, 0x44000702, 0x0), /* UART2_CTS# */ + +_PAD_CFG_STRUCT(GPP_D0, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D1, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D2, 0x44000700, 0x0), /* SPI1_MISO */ +_PAD_CFG_STRUCT(GPP_D3, 0x44000700, 0x0), /* SPI1_MOSI */ +_PAD_CFG_STRUCT(GPP_D4, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D5, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D6, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D7, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D8, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D9, 0x40000102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D10, 0x40000102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D11, 0x40000102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D12, 0x40000102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D13, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D14, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D15, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D16, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D17, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D18, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_D19, 0x44000700, 0x0), /* DMIC_CLK0 */ +_PAD_CFG_STRUCT(GPP_D20, 0x44000700, 0x0), /* DMIC_DATA0 */ +_PAD_CFG_STRUCT(GPP_D21, 0x44000700, 0x0), /* SPI1_IO2 */ +_PAD_CFG_STRUCT(GPP_D22, 0x44000700, 0x0), /* SPI1_IO3 */ +_PAD_CFG_STRUCT(GPP_D23, 0x44000201, 0x1000), /* GPIO */ + +_PAD_CFG_STRUCT(GPP_E0, 0x44000700, 0x0), /* SATAXPCIE0 */ +_PAD_CFG_STRUCT(GPP_E1, 0x44000700, 0x0), /* SATAXPCIE1 */ +_PAD_CFG_STRUCT(GPP_E2, 0x44000702, 0x0), /* SATAXPCIE2 */ +_PAD_CFG_STRUCT(GPP_E3, 0x44000201, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E4, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E5, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E6, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E7, 0x40900100, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E8, 0xffffffff, 0xffffff00),/* RESERVED */ +_PAD_CFG_STRUCT(GPP_E9, 0x44000702, 0x0), /* USB2_OC0# */ +_PAD_CFG_STRUCT(GPP_E10, 0x44000702, 0x0), /* USB2_OC1# */ +_PAD_CFG_STRUCT(GPP_E11, 0x44000702, 0x0), /* USB2_OC2# */ +_PAD_CFG_STRUCT(GPP_E12, 0x44000702, 0x0), /* USB2_OC3# */ +_PAD_CFG_STRUCT(GPP_E13, 0x44000700, 0x0), /* DDPB_HPD0 */ +_PAD_CFG_STRUCT(GPP_E14, 0x44000700, 0x0), /* DDPC_HPD1 */ +_PAD_CFG_STRUCT(GPP_E15, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E16, 0x80880102, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E17, 0x44000702, 0x0), /* EDP_HPD */ +_PAD_CFG_STRUCT(GPP_E18, 0x44000702, 0x0), /* DDPB_CTRLCLK */ +_PAD_CFG_STRUCT(GPP_E19, 0x44000702, 0x1000), /* DDPB_CTRLDATA */ +_PAD_CFG_STRUCT(GPP_E20, 0x44000700, 0x0), /* DDPC_CTRLCLK */ +_PAD_CFG_STRUCT(GPP_E21, 0x44000702, 0x1000), /* DDPC_CTRLDATA */ +_PAD_CFG_STRUCT(GPP_E22, 0x40100000, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_E23, 0x44000201, 0x1000), /* GPIO */ + +_PAD_CFG_STRUCT(GPD0, 0x4000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPD1, 0x4000702, 0x0), /* ACPRESENT */ +_PAD_CFG_STRUCT(GPD2, 0x4000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPD3, 0x4000702, 0x3000), /* PWRBTN# */ +_PAD_CFG_STRUCT(GPD4, 0x4000700, 0x0), /* SLP_S3# */ +_PAD_CFG_STRUCT(GPD5, 0x4000700, 0x0), /* SLP_S4# */ +_PAD_CFG_STRUCT(GPD6, 0x4000601, 0x1000), /* SLP_A# */ +_PAD_CFG_STRUCT(GPD7, 0x4000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPD8, 0x4000700, 0x0), /* SUSCLK */ +_PAD_CFG_STRUCT(GPD9, 0x4000601, 0x1000), /* SLP_WLAN# */ +_PAD_CFG_STRUCT(GPD10, 0x4000601, 0x1000), /* SLP_S5# */ +_PAD_CFG_STRUCT(GPD11, 0x4000201, 0x1000), /* GPIO */ + +_PAD_CFG_STRUCT(GPP_F0, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F1, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F2, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F3, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F4, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F5, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F6, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F7, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F8, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F9, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F10, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F11, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F12, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F13, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F14, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F15, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F16, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F17, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F18, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F19, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F20, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F21, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F22, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_F23, 0x40100100, 0x0), /* GPIO */ + +_PAD_CFG_STRUCT(GPP_G0, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G1, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G2, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G3, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G4, 0x44000200, 0x0), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G5, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G6, 0x44000201, 0x1000), /* GPIO */ +_PAD_CFG_STRUCT(GPP_G7, 0x44000201, 0x1000), /* GPIO */ +}; + +#endif + +#endif diff --git a/src/mainboard/acer/aspire_vn7_572g/hda_verb.c b/src/mainboard/acer/aspire_vn7_572g/hda_verb.c new file mode 100644 index 0000000..8cd5f97 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/hda_verb.c @@ -0,0 +1,72 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 Purism SPC. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <device/azalia_device.h> + +const u32 cim_verb_data[] = { + /* coreboot specific header */ + 0x10ec0255, /* Codec Vendor / Device ID: Realtek ALC255 */ + 0x10251037, /* Subsystem ID */ + 0x0000000c, /* Number of jacks (NID entries) */ + + 0x0017ff00, /* Function Reset */ + 0x0017ff00, /* Double Function Reset */ + 0x0017ff00, + 0x0017ff00, + + /* Bits 31:28 - Codec Address */ + /* Bits 27:20 - NID */ + /* Bits 19:8 - Verb ID */ + /* Bits 7:0 - Payload */ + + /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10251037 */ + AZALIA_SUBVENDOR(0x0, 0x10251037), + + /* Pin Widget Verb Table */ + + /* Pin Complex (NID 0x12) */ + AZALIA_PIN_CFG(0x0, 0x12, 0x411111c0), + + /* Pin Complex (NID 0x14) */ + AZALIA_PIN_CFG(0x0, 0x14, 0x90172120), + + /* Pin Complex (NID 0x17) */ + AZALIA_PIN_CFG(0x0, 0x17, 0x40000000), + + /* Pin Complex (NID 0x18) */ + AZALIA_PIN_CFG(0x0, 0x18, 0x411111f0), + + /* Pin Complex (NID 0x19) */ + AZALIA_PIN_CFG(0x0, 0x19, 0x411111f0), + + /* Pin Complex (NID 0x1A) */ + AZALIA_PIN_CFG(0x0, 0x1A, 0x411111f0), + + /* Pin Complex (NID 0x1B) */ + AZALIA_PIN_CFG(0x0, 0x1B, 0x411111f0), + + /* Pin Complex (NID 0x1D) */ + AZALIA_PIN_CFG(0x0, 0x1D, 0x40700001), + + /* Pin Complex (NID 0x1E) */ + AZALIA_PIN_CFG(0x0, 0x1E, 0x411111f0), + + /* Pin Complex (NID 0x21) */ + AZALIA_PIN_CFG(0x0, 0x21, 0x02211030), +}; + +const u32 pc_beep_verbs[] = {}; + +AZALIA_ARRAY_SIZES; diff --git a/src/mainboard/acer/aspire_vn7_572g/mainboard.c b/src/mainboard/acer/aspire_vn7_572g/mainboard.c new file mode 100644 index 0000000..462b995 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/mainboard.c @@ -0,0 +1,50 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2017 Purism SPC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <smbios.h> +#include <string.h> +#include <cbfs.h> + +#define MAX_SERIAL_LENGTH 0x100 + +const char *smbios_mainboard_serial_number(void) +{ + static char serial_number[MAX_SERIAL_LENGTH + 1] = {0}; + struct cbfsf file; + + if (serial_number[0] != 0) + return serial_number; + + if (cbfs_boot_locate(&file, "serial_number", NULL) == 0) { + struct region_device cbfs_region; + size_t serial_len; + + cbfs_file_data(&cbfs_region, &file); + + serial_len = region_device_sz(&cbfs_region); + if (serial_len <= MAX_SERIAL_LENGTH) { + if (rdev_readat(&cbfs_region, serial_number, 0, + serial_len) == serial_len) { + serial_number[serial_len] = 0; + return serial_number; + } + } + } + + strncpy(serial_number, CONFIG_MAINBOARD_SERIAL_NUMBER, + MAX_SERIAL_LENGTH); + + return serial_number; +} diff --git a/src/mainboard/acer/aspire_vn7_572g/ramstage.c b/src/mainboard/acer/aspire_vn7_572g/ramstage.c new file mode 100644 index 0000000..94f8071 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/ramstage.c @@ -0,0 +1,25 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2015 Intel Corporation + * Copyright (C) 2015 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <soc/ramstage.h> +#include "gpio.h" + +void mainboard_silicon_init_params(FSP_SIL_UPD *params) +{ + /* Configure pads prior to SiliconInit() in case there's any + * dependencies during hardware initialization. */ + gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table)); +} diff --git a/src/mainboard/acer/aspire_vn7_572g/romstage.c b/src/mainboard/acer/aspire_vn7_572g/romstage.c new file mode 100644 index 0000000..86ef5af --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/romstage.c @@ -0,0 +1,84 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2007-2010 coresystems GmbH + * Copyright (C) 2015 Google Inc. + * Copyright (C) 2015 Intel Corporation + * Copyright (C) 2017 Purism SPC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <assert.h> +#include <soc/romstage.h> +#include <spd_bin.h> +#include <string.h> + +static void mainboard_fill_dq_map_data(void *dq_map_ch0, void *dq_map_ch1) +{ + /* DQ byte map */ + const u8 dq_map[2][12] = { + { 0x0F, 0xF0, 0x00, 0xF0, 0x0F, 0xF0, + 0x0F, 0x00, 0xFF, 0x00, 0xFF, 0x00 }, + { 0x33, 0xCC, 0x00, 0xCC, 0x33, 0xCC, + 0x33, 0x00, 0xFF, 0x00, 0xFF, 0x00 } }; + memcpy(dq_map_ch0, dq_map[0], sizeof(dq_map[0])); + memcpy(dq_map_ch1, dq_map[1], sizeof(dq_map[1])); +} + +static void mainboard_fill_dqs_map_data(void *dqs_map_ch0, void *dqs_map_ch1) +{ + /* DQS CPU<>DRAM map */ + const u8 dqs_map[2][8] = { + { 0, 1, 3, 2, 4, 5, 6, 7 }, + { 1, 0, 4, 5, 2, 3, 6, 7 } }; + memcpy(dqs_map_ch0, dqs_map[0], sizeof(dqs_map[0])); + memcpy(dqs_map_ch1, dqs_map[1], sizeof(dqs_map[1])); +} + +static void mainboard_fill_rcomp_res_data(void *rcomp_ptr) +{ + /* Rcomp resistor */ + const u16 RcompResistor[3] = { 121, 81, 100 }; + memcpy(rcomp_ptr, RcompResistor, sizeof(RcompResistor)); +} + +static void mainboard_fill_rcomp_strength_data(void *rcomp_strength_ptr) +{ + /* Rcomp target */ + const u16 RcompTarget[5] = { 100, 40, 20, 20, 26 }; + memcpy(rcomp_strength_ptr, RcompTarget, sizeof(RcompTarget)); +} + +void mainboard_memory_init_params(FSPM_UPD *mupd) +{ + FSP_M_CONFIG *mem_cfg; + struct spd_block blk = { + .addr_map = { 0x50, 0x52 }, + }; + + mem_cfg = &mupd->FspmConfig; + + get_spd_smbus(&blk); + dump_spd_info(&blk); + assert(blk.spd_array[0][0] != 0); + + mainboard_fill_dq_map_data(&mem_cfg->DqByteMapCh0, + &mem_cfg->DqByteMapCh1); + mainboard_fill_dqs_map_data(&mem_cfg->DqsMapCpu2DramCh0, + &mem_cfg->DqsMapCpu2DramCh1); + mainboard_fill_rcomp_res_data(&mem_cfg->RcompResistor); + mainboard_fill_rcomp_strength_data(&mem_cfg->RcompTarget); + + mem_cfg->DqPinsInterleaved = TRUE; + mem_cfg->MemorySpdDataLen = blk.len; + mem_cfg->MemorySpdPtr00 = (uintptr_t) blk.spd_array[0]; + mem_cfg->MemorySpdPtr10 = (uintptr_t) blk.spd_array[1]; +}
Hello Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#2).
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
mb/acer/aspire_vn7_572g: Adds support for an Acer laptop
Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,282 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/2
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
Patch Set 2:
Oh, hi there! I see you got to upload the change we talked about on the mailing list, nice :D
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
Patch Set 2:
(4 comments)
Just a little clean up..
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 11: select MAINBOARD_USES_FSP2_0 Not necessary, since it is selected by the SOC.
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 13: select MAINBOARD_HAS_LPC_TPM According to some Google results, it should have a TPM2. So please also select `MAINBOARD_HAS_TPM2`.
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 22: default "Acer" Not necessary, since this is set by the upper Kconfig file "src/mainboard/acer/Kconfig".
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 36: config DEVICETREE : string : default "devicetree.cb" Not necessary, since this is already the default.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#3).
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
mb/acer/aspire_vn7_572g: Adds support for an Acer laptop
Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,275 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/3
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
Patch Set 3:
(1 comment)
Thanks. I've fixed the others, but it appears that FSP 2.0 must be defined if it is being used.
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 11: select MAINBOARD_USES_FSP2_0
Not necessary, since it is selected by the SOC.
I was advised that FSP 2.0 supported Skylake. While I haven't personally tested this (I've been unable to flash any new images for a little while, but I'm working on it), without this line it defaults to using FSP 1.1.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#4).
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
mb/acer/aspire_vn7_572g: Adds support for an Acer laptop
Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,275 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/4
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
Patch Set 4:
(4 comments)
Please make sure after solving issues to mark them as "Resolved".
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 11: select MAINBOARD_USES_FSP2_0
I was advised that FSP 2.0 supported Skylake. […]
You are right, sorry. I thought this would be the default for Skylake, but only if you select the Kaby Lake soc.
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 13: select MAINBOARD_HAS_LPC_TPM
According to some Google results, it should have a TPM2. So please also select `MAINBOARD_HAS_TPM2`.
Done
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 22: default "Acer"
Not necessary, since this is set by the upper Kconfig file "src/mainboard/acer/Kconfig".
Done
https://review.coreboot.org/c/coreboot/+/35523/2/src/mainboard/acer/aspire_v... PS2, Line 36: config DEVICETREE : string : default "devicetree.cb"
Not necessary, since this is already the default.
Done
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
Patch Set 4:
Oh, ok. I wasn't sure if anyone would disagree about the FSP 2.0 detail, but I'll make sure to do that in the future. Thanks.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop ......................................................................
Patch Set 4:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@7 PS4, Line 7: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop mb/acer: Add Acer Aspire VN7-572G
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@7 PS4, Line 7: Adds Imperative mood: Add
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@9 PS4, Line 9: Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only. Please adhere to the line length limit of 75 characters.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#5).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,275 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/5
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#6).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,275 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/6
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 6:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@7 PS4, Line 7: mb/acer/aspire_vn7_572g: Adds support for an Acer laptop
mb/acer: Add Acer Aspire VN7-572G
Done
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@7 PS4, Line 7: Adds
Imperative mood: Add
Very well
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@9 PS4, Line 9: Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Please adhere to the line length limit of 75 characters.
Sorry. Is one newline sufficient?
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#7).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,277 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/7
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#8).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Internal audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other I2C values. These could be 0x51 and 0x53) -HDMI audio -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,277 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/8
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 8:
SPI flash console log: https://gist.github.com/benjamindoron/7d0b2d58ba65ac37c60f1ab6391d0ca0
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#9).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Internal audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -HDMI audio -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,277 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/9
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#10).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Internal audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -HDMI audio -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,302 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/10
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#11).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,302 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/11
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/11/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/11/src/mainboard/acer/aspire_... PS11, Line 74: Assuming here that another "{double ,}function reset" would undo previous configuration
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#12).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,306 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/12
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#13).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/13
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 13:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 18: # GPE configuration How are these found? They look like GPIO tables, but I haven't found the dwords.
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 80: # VR Settings Configuration for 4 Domains OEM BIOS seems to literally disable VR config. Also guessing that it uses FSP 1.1, it has 5 domains.
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 150: # register "PcieRpEnable[6]" = "1" Port 7 is enabled in OEM BIOS. Is this perhaps NVMe?
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#14).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/14
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 14:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/14/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/14/src/mainboard/acer/aspire_... PS14, Line 51: config CPU_MICROCODE_CBFS_LEN Is this the length of one microcode or the whole blob? How likely is it to change in the future?
https://review.coreboot.org/c/coreboot/+/35523/14/src/mainboard/acer/aspire_... PS14, Line 59: config CBFS_SIZE Assuming that CBFS can be $flash_size - ($intel_descriptor + $intel_ME), this is now correct. (but isn't ME only 1.5MB, just padded out to 2MB?)
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#15).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore CorebootPayload) -Display (tried FSP GOP + VBT) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/15
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#16).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore (at least no logging is occurring) and SeaBIOS (halts after unexpected APIC exception) -Display (tried FSP GOP + VBT and OptionROM) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff (lspci devices aren't found and are disabled) -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/16
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#17).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) -Display (tried FSP GOP + VBT and OptionROM) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff (lspci devices aren't found and are disabled) -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/17
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 17:
Is it possible that Tiano isn't logging to CBMEM (and probably isn't finding Fedora's fallback shim loader) and SeaBIOS didn't work because I run a UEFI system (or because it's SeaBIOS, or SeaBIOS master)? That coreboot is loading the payload but that I have no way of seeing it?
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#18).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) -Display (tried FSP GOP + VBT as well as OptionROM) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff (lspci devices aren't found and are disabled) -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000 -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/18
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 18:
Console log (running Tiano): https://gist.github.com/benjamindoron/af2d29e7b19ba96e915c9ecd8793c2b4 Console log (running SeaBIOS): https://gist.github.com/benjamindoron/6bf3052a40b515f226a0cbbb7b33f4ac
They're the same build (different configuration, but same mainboard code), so it's just that halt (unexpected APIC exception) while starting SeaBIOS that's noteworthy.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#19).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) -Display (tried FSP GOP + VBT as well as OptionROM) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff (some lspci devices aren't found and are disabled) -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/19
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#20).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Adds initial, rudimentary support for Acer Aspire VN7-572G.
Works: -Some amount of booting -2/4 RAM slots
Assumed working: -Audio
Does not work: -Loading payload (tried Tianocore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) -Display (tried FSP GOP + VBT as well as OptionROM) -Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) -Some PCIe stuff (some lspci devices aren't found and are disabled) -TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) -Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/20
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 20:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@9 PS20, Line 9: Adds Add
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@12 PS20, Line 12: -Some amount of booting Please be more specific.
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@15 PS20, Line 15: Assumed working: Untested?
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@19 PS20, Line 19: Tianocore TianoCore
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@11 PS20, Line 11: Works: : -Some amount of booting : -2/4 RAM slots : : Assumed working: : -Audio : : Does not work: : -Loading payload (tried Tianocore (at least no logging is occurring) : and SeaBIOS master (halts after unexpected APIC exception) : -Display (tried FSP GOP + VBT as well as OptionROM) : -Remaining RAM slots (need other SPD addresses. : These could be 0x51 and 0x53) : -Some PCIe stuff (some lspci devices aren't found and are disabled) : -TPM ("tis_probe: No TPM device found" but : "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")? : : Unknown: : -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) : -Microcode update (FIT states a size of 0, update is skipped) Please add a space after the “bullet point”.
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@32 PS20, Line 32: One blank line is enough.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#21).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Some amount of booting - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Loading payload (tried TianoCore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) - Display (tried FSP GOP + VBT as well as OptionROM) - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some lspci devices aren't found and are disabled) - TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,309 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/21
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 21:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@9 PS20, Line 9: Adds
Add
Done
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@12 PS20, Line 12: -Some amount of booting
Please be more specific.
With TianoCore as the payload, the last line of the log is "jumping to bootcode at..." SeaBIOS halts with an "unexpected APIC exception." Regardless, I have no graphics.
I initially wrote that line when I figured that something ultimately stopped TianoCore from loading, but I don't actually know if it's meant to be logging. I tried SeaBIOS only because I know that it logs to CBMEM.
Now I'm trying to get graphics working so that I can see what it's doing. I've extracted a VBT from the vendor BIOS (4 KB) to try instead of the one I retrieved from in Linux (6 KB) and I'll build another image.
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@15 PS20, Line 15: Assumed working:
Untested?
I haven't successfully booted into an OS yet, so while the console log says that it loaded the verb tables, yes, it's untested.
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@19 PS20, Line 19: Tianocore
TianoCore
Done
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@11 PS20, Line 11: Works: : -Some amount of booting : -2/4 RAM slots : : Assumed working: : -Audio : : Does not work: : -Loading payload (tried Tianocore (at least no logging is occurring) : and SeaBIOS master (halts after unexpected APIC exception) : -Display (tried FSP GOP + VBT as well as OptionROM) : -Remaining RAM slots (need other SPD addresses. : These could be 0x51 and 0x53) : -Some PCIe stuff (some lspci devices aren't found and are disabled) : -TPM ("tis_probe: No TPM device found" but : "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")? : : Unknown: : -EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) : -Microcode update (FIT states a size of 0, update is skipped)
Please add a space after the “bullet point”.
Done
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@32 PS20, Line 32:
One blank line is enough.
Done
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#22).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Some amount of booting - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Loading payload (tried TianoCore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) - Display (tried FSP GOP + VBT as well as OptionROM) - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some lspci devices aren't found and are disabled) - TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,341 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/22
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#23).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Some amount of booting - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Loading payload (tried TianoCore (at least no logging is occurring) and SeaBIOS master (halts after unexpected APIC exception) - Display (tried FSP GOP + VBT as well as OptionROM) - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some lspci devices aren't found and are disabled) - TPM ("tis_probe: No TPM device found" but "_SB.PCI0.LPCB.TPM: LPC TPM PNP: 0c31.0")?
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,351 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/23
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#24).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled)
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,351 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/24
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 24:
(2 comments)
Just some random comments, I stumbled upon the libgfxinit+panel mention.
https://review.coreboot.org/c/coreboot/+/35523/24//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/24//COMMIT_MSG@21 PS24, Line 21: does not work at all with libgfxinit. I don't see any panel configuration in the devicetree[1]. The GOP does partial configuration based on the VBT, but doesn't set everything, AFAIK. Hence, I always advice to fill all applicable settings.
Um, just noticed the documentation doesn't mention the backlight PWM configuration. Which is most likely what is missing for libgfxinit support. Make sure to set `gpu_pch_backlight_pwm_hz` as well.
[1] https://doc.coreboot.org/gfx/display-panel.html
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default. Not that I personally use the option, but with this, one can't enable POST codes on the console anymore. Maybe a
config NO_POST default y
would serve better?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 24:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/4//COMMIT_MSG@9 PS4, Line 9: Adds initial, rudimentary support for Acer Aspire VN7-572G. May not boot correctly or at all. For testing purposes only.
Sorry. […]
I'll assume so, unless notified otherwise.
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
Not that I personally use the option, but with this, one can't enable POST […]
What do you mean? Do you mean that someone with this device wouldn't be able to use POST codes if they had a way of viewing them, or do you mean that this breaks it across the tree?
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#25).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,351 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/25
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 25:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
What do you mean? Do you mean that someone with this device wouldn't be able to use POST codes if th […]
There is an option to print the post codes to the console. That would not work anymore.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#26).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,356 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/26
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 26:
(1 comment)
Patch Set 25:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
There is an option to print the post codes to the console. That would not work anymore.
Done
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#27).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,351 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/27
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 27:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
Done
Jenkins complains that this would break other boards which use the board-specific method.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 27:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
Jenkins complains that this would break other boards which use the board-specific method.
I see. Although, this means those boards should be fixed anyway, if they block proper solutions elsewhere.
I'm also not sure if `config` is correct with the warning. At least an explicit `depends on y` in console/Kconfig fixes it, too. Shouldn't that be implied? Maybe not if the symbol was already declared with dependencies elsewhere.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 27:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
I see. Although, this means those boards should be fixed […]
I've switched my copy to the "config NO_POST" method and I'll change it here after those boards get changed.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#28).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - ACPI - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,351 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/28
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#29).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - ACPI - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,367 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/29
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#30).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting. Haven't gotten into an OS yet. Presently assuming that once display is working, selecting an OS should work - 2/4 RAM slots
Assumed working: - Audio
Does not work: - Display's backlight works with FSP GOP + customised KBL VBT, display does not work at all with libgfxinit. - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - ACPI - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,367 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/30
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#31).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,367 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/31
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#32).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses. These could be 0x51 and 0x53) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,367 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/32
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#34).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,367 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/34
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#35).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,943 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/35
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 35:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/35/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/35/src/mainboard/acer/aspire_... PS35, Line 63: Zero, trailing whitespace
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#36).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,943 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/36
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#38).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,940 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/38
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 39:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@12 PS20, Line 12: -Some amount of booting
With TianoCore as the payload, the last line of the log is "jumping to bootcode at... […]
Done
https://review.coreboot.org/c/coreboot/+/35523/20//COMMIT_MSG@15 PS20, Line 15: Assumed working:
I haven't successfully booted into an OS yet, so while the console log says that it loaded the verb […]
Done
https://review.coreboot.org/c/coreboot/+/35523/14/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/14/src/mainboard/acer/aspire_... PS14, Line 51: config CPU_MICROCODE_CBFS_LEN
Is this the length of one microcode or the whole blob? How likely is it to change in the future?
Apparently only necessary for FSP-T.
https://review.coreboot.org/c/coreboot/+/35523/14/src/mainboard/acer/aspire_... PS14, Line 59: config CBFS_SIZE
Assuming that CBFS can be $flash_size - ($intel_descriptor + $intel_ME), this is now correct. […]
Corrected now.
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/24/src/mainboard/acer/aspire_... PS24, Line 18: select NO_POST # This platform has no way to see POST codes so disable them by default.
I've switched my copy to the "config NO_POST" method and I'll change it here after those boards get […]
Done
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 80: # VR Settings Configuration for 4 Domains
OEM BIOS seems to literally disable VR config. Also guessing that it uses FSP 1.1, it has 5 domains.
VR config has now been set appropriately for SKL-U
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#40).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,943 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/40
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 40:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/40//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/40//COMMIT_MSG@28 PS40, Line 28: - Display (with libgfxinit) Would be good to test
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 110: // ^^^GFX0.GLID (KLID) ?
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 42: // If (CondRefOf (_SB.TPM.PTS)) ?
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 71: register "SaGv" = "3" There should be an enum for SaGv values (not sure if Skylake has it)
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 50: // Chipset specific sleep states "common" isn't really "chipset specific", so maybe drop the comment?
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 34: /* Pin Complex (NID 0x12) */ Please remove these comments, they don't provide useful info
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#41).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,917 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/41
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 41:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 110: // ^^^GFX0.GLID (KLID)
?
Vendor BIOS calls this method inside the graphics device, which I need to rewrite or remove. The method is commented out here so that it isn't lost until I can do this.
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 42: // If (CondRefOf (_SB.TPM.PTS))
?
Vendor BIOS calls the prepare-to-sleep method on the TPM's ACPI device. As I understand, coreboot generates the ACPI table for the TPM dynamically, this will either be removed or tagged as external.
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 50: // Chipset specific sleep states
"common" isn't really "chipset specific", so maybe drop the comment?
Done
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 34: /* Pin Complex (NID 0x12) */
Please remove these comments, they don't provide useful info
Done
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#42).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial, rudimentary support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Display (with FSP GOP + KBL VBT) - 2/4 RAM slots - Internal audio - Keyboard and touchpad (presuming that keyboard will only work in UEFI with an edit to UefiPayloadPkg definition file)
Does not work: - Headphone jack - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe - ACPI (battery and AC not recognised, lid not working)
Unknown: - Display (with libgfxinit) - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,918 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/42
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#43).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - 2/4 RAM slots - Keyboard and touchpad (at this time, use CorebootPayload for UEFI support)
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi_tables.c A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 21 files changed, 1,918 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/43
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#44).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - 2/4 RAM slots - Keyboard and touchpad (at this time, use CorebootPayload for UEFI support)
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Remaining RAM slots (need other SPD addresses) - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,878 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/44
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 45: Code-Review+1
(8 comments)
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@23 PS45, Line 23: ACPI You can dump the DSDT of the vendor firmware. For EC stuffs, that is usually the only way to make it work. For example, do you have a battery device? Even if not using Arch Linux, you can use this guide to dump and decompile the DSDT:
https://wiki.archlinux.org/index.php/DSDT#Recompiling_it_yourself
You don't need to recompile it. Rather, use the source as a reference to check things against.
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@28 PS45, Line 28: - Remaining RAM slots (need other SPD addresses) How many RAM slots does this thing have?
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 110: // ^^^GFX0.GLID (KLID)
Vendor BIOS calls this method inside the graphics device, which I need to rewrite or remove. […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 42: // If (CondRefOf (_SB.TPM.PTS))
Vendor BIOS calls the prepare-to-sleep method on the TPM's ACPI device. […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 150: # register "PcieRpEnable[6]" = "1"
Port 7 is enabled in OEM BIOS. […]
NVMe should have x4 lanes. If it does, it might be it
https://review.coreboot.org/c/coreboot/+/35523/11/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/11/src/mainboard/acer/aspire_... PS11, Line 74:
Assuming here that another "{double ,}function reset" would undo previous configuration
I think so. I'll mark this as resolved.
https://review.coreboot.org/c/coreboot/+/35523/45/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/45/src/mainboard/acer/aspire_... PS45, Line 29: 0x10251037 No need to repeat the literal hex value in the comment
https://review.coreboot.org/c/coreboot/+/35523/45/src/mainboard/acer/aspire_... PS45, Line 38: 0x1A nit: use lowercase for these hex constants
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 45:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/40//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/40//COMMIT_MSG@28 PS40, Line 28: - Display (with libgfxinit)
Would be good to test
Done
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 71: register "SaGv" = "3"
There should be an enum for SaGv values (not sure if Skylake has it)
It does, so you should use `SaGv_Enabled`:
/* * System Agent dynamic frequency configuration * When enabled memory will be trained at two different frequencies. * 0 = Disabled * 1 = FixedLow * 2 = FixedHigh * 3 = Enabled */ enum { SaGv_Disabled, SaGv_FixedLow, SaGv_FixedHigh, SaGv_Enabled, } SaGv;
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 45:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@23 PS45, Line 23: ACPI
You can dump the DSDT of the vendor firmware. […]
I've redone the ACPI table since the first, broken one, but haven't tested it yet. I had planned to test all this at once, but the display (mainly dGPU at this time) is still giving me trouble.
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@28 PS45, Line 28: - Remaining RAM slots (need other SPD addresses)
How many RAM slots does this thing have?
The vendor firmware and dmidecode list 4, but the internet says that there are only 2.
I checked the datasheet just now, which also only lists 2. I'll remove this, but will fix it if I find evidence to the contrary.
(I've also realised now that the vendor firmware would have been written for many devices, so hidden information in the advanced settings might even be a lie, after a fashion. dmidecode cannot help with confirmation on this, because it receives information from the vendor firmware)
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 150: # register "PcieRpEnable[6]" = "1"
NVMe should have x4 lanes. […]
I enabled it in the list of PCI devices and it probably doesn't hurt to enable it in general. I'm just concerned that these ports need special clock values, etc, that I don't know yet.
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/40/src/mainboard/acer/aspire_... PS40, Line 71: register "SaGv" = "3"
It does, so you should use `SaGv_Enabled`: […]
Done
https://review.coreboot.org/c/coreboot/+/35523/45/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/45/src/mainboard/acer/aspire_... PS45, Line 29: 0x10251037
No need to repeat the literal hex value in the comment
Done
https://review.coreboot.org/c/coreboot/+/35523/45/src/mainboard/acer/aspire_... PS45, Line 38: 0x1A
nit: use lowercase for these hex constants
Done
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#46).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,878 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/46
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#47).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,802 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/47
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#48).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,801 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/48
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#49).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,805 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/49
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#50).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 18 files changed, 1,805 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/50
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#51).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/globalnvs.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 20 files changed, 2,232 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/51
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#52).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,089 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/52
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#53).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,147 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/53
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 53:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/53/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/53/src/mainboard/acer/aspire_... PS53, Line 31: static void gpu_reset(void) { open brace '{' following function definitions go on the next line
https://review.coreboot.org/c/coreboot/+/35523/53/src/mainboard/acer/aspire_... PS53, Line 48: while (! gpio_get(DGPU_PWROK)) { space prohibited after that '!' (ctx:BxW)
https://review.coreboot.org/c/coreboot/+/35523/53/src/mainboard/acer/aspire_... PS53, Line 69: static void mainboard_init(struct device *dev) { open brace '{' following function definitions go on the next line
https://review.coreboot.org/c/coreboot/+/35523/53/src/mainboard/acer/aspire_... PS53, Line 75: static void mainboard_enable(struct device *dev) { open brace '{' following function definitions go on the next line
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#54).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,150 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/54
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 54:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@28 PS45, Line 28: - Remaining RAM slots (need other SPD addresses)
The vendor firmware and dmidecode list 4, but the internet says that there are only 2. […]
Um, RAM slots are a physical thing you can count. For example, a random board off the internets:
https://us.v-cdn.net/6029997/uploads/editor/2l/a82ghszhap9b.jpg
There's two slots, each can take a SO-DIMM. On laptops, there's usually only two SO-DIMM slots.
If there's onboard memory (memory-down), there's usually the equivalent of one or two DIMMs.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 54:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@28 PS45, Line 28: - Remaining RAM slots (need other SPD addresses)
Um, RAM slots are a physical thing you can count. For example, a random board off the internets: […]
I know. I added a second RAM stick to this laptop once.
I remember slightly doubting the vendor firmware/DMI tables when I saw how there didn't seem to be any space for two more slots underneath the visible ones. If the board in that image only has two, it would seem to confirm my doubts.
I was anyways going to trust the schematics over the firmware, but this is one more indicator to that effect. And that vendor firmware can be unreliable.
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... PS54, Line 33: gpio_get(DGPU_PRESENT) Schematics: "H: UMA, L: OPTIMUS" This check might need to be inverted.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 54:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/45//COMMIT_MSG@28 PS45, Line 28: - Remaining RAM slots (need other SPD addresses)
I know. I added a second RAM stick to this laptop once. […]
(the board in the image isn't your board, but if you only saw two slots then it's all good)
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... PS54, Line 33: gpio_get(DGPU_PRESENT)
Schematics: "H: UMA, L: OPTIMUS" […]
Oh, you managed to get the schematics?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 54:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... PS54, Line 33: gpio_get(DGPU_PRESENT)
Oh, you managed to get the schematics?
I hope that there's no policy against using them, but yes.
Ah. I mentioned "datasheet" before, but I was referring to the same document.
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#55).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,148 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/55
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#56).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,150 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/56
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#57).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to Switchable Graphics (matching vendor's configuration, enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys - Some PCIe stuff (some devices in lspci aren't found and are disabled) - M.2/NVMe
Unknown: - EC stuff (assumed from gpe0_{sts,en}[x]: 00000000) - Microcode update (FIT states a size of 0, update is skipped)
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,158 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/57
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#58).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX (enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,158 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/58
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#59).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX (enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,158 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/59
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#61).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 30 using TianoCore - Memory - Keyboard and touchpad
Requires testing: - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX (enabling dGPU)) - with FSP GOP + KBL VBT - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,160 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/61
Hello Angel Pons, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#62).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,160 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/62
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62: Code-Review+1
Does SeaBIOS also work?
Let’s get this in, as the payload can be loaded.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
Does SeaBIOS also work?
I haven't tested SeaBIOS lately because I've been trying to get my laptop working as is. Does the config have any significant differences? Months ago, it gave me some kind of APIC exception.
Let’s get this in, as the payload can be loaded.
Isn't that a little too early? The problem could be coreboot-related (I've had no luck with enabling the 8254 timer, but it could be something else).
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 55: #config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID This can go away, I guess?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 155: Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF Have you figured out what these EC queries do? It would be nice to comment what they are about.
With Linux, you can add ASL "debug prints" and apply them with a DSDT override, all while using the vendor firmware. The idea to see what vendor firmware does with this.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 107: #| AC LoadLine | 10.3 mOhm | 2.4 mOhm | 3.1 mOhm | 3.1 mOhm | Out of curiosity, where do you get the loadline values from?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 46: // Mainboard specific Is it necessary to use two different files? If so, can any of them be renamed to, for example, `ec.asl` ?
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... PS54, Line 33: gpio_get(DGPU_PRESENT)
I hope that there's no policy against using them, but yes. […]
I haven't heard of any policy against wanting to do things properly :)
Personally, I strongly prefer using schematics. It is much better than guessing things.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: system76 hmmmmm
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 18: # GPE configuration
How are these found? They look like GPIO tables, but I haven't found the dwords.
I think you answered your own question?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 55: #config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
This can go away, I guess?
Why? I didn't want to enable too much at once, but isn't it good to inform the OS of the hardware, so that it can apply quirks if it needs?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 155: Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
Have you figured out what these EC queries do? It would be nice to comment what they are about. […]
At the moment, I can hazard guesses based on which device is notified and by corroborating the values with other ACPI code. I can work on this, but it'll be easier once an OS will boot.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 107: #| AC LoadLine | 10.3 mOhm | 2.4 mOhm | 3.1 mOhm | 3.1 mOhm |
Out of curiosity, where do you get the loadline values from?
6th Generation Intel Processor for U/Y-Platforms Datasheet, Volume 1 of 2 (#332990)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: system76
hmmmmm
It is fairly generic code and I have modified it, mostly according to the schematics and what I've seen of Intel's SwitchableGraphics.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 18: # GPE configuration
I think you answered your own question?
Yes, I suppose :)
Skylake laptops seem to use the same GPIO communities. These are correct.
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 150: # register "PcieRpEnable[6]" = "1"
I enabled it in the list of PCI devices and it probably doesn't hurt to enable it in general. […]
Port 7 actually backs SATA. Port 8 is NGFF.
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/54/src/mainboard/acer/aspire_... PS54, Line 33: gpio_get(DGPU_PRESENT)
I haven't heard of any policy against wanting to do things properly :) […]
Of course. No idea what I thought could possibly be an issue (their copyright couldn't prevent our use)
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62: Code-Review+1
(13 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 55: #config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Why? I didn't want to enable too much at once, but isn't it good to inform the OS of the hardware, s […]
This symbol isn't used anywhere: https://github.com/coreboot/coreboot/search?q=MAINBOARD_PCI_SUBSYSTEM_VENDOR...
I know, it was used before, but it's now gone. Refer to the seven commits on GitHub search results
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 155: Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
At the moment, I can hazard guesses based on which device is notified and by corroborating the value […]
Well, you can apply ACPI overrides even when using the vendor BIOS: https://wiki.archlinux.org/index.php/DSDT
I used that to track down how special keys work on a Sony laptop.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 53: 0 This one should be enabled in order to use a SATA SSD.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 58: 2 Shouldn't this be 3 for SATA3 6Gbps speeds?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 107: #| AC LoadLine | 10.3 mOhm | 2.4 mOhm | 3.1 mOhm | 3.1 mOhm |
6th Generation Intel Processor for U/Y-Platforms Datasheet, Volume 1 of 2 (#332990)
Ack, thanks
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 202: register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth Missing `usb2_ports[5]` for the touch screen? (likely unused)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 204: register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD Also missing `usb2_ports[8]` for the "finger printer"
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 208: # register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port This and `usb3_ports[3]` seem to be used for USB Type-C
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 232: [PchSerialIoIndexUart2] = PchSerialIoDisabled, This could be enabled as a debug port. Maybe "SkipInit" ?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device I don't think SKL-U has such device. This is the PEG port on the SA (System Agent), and it is not present on U nor Y series chips.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 253: device pci 1c.0 on end # PCI Express Port 1 This is actually the dGPU root port. Would be nice to add a comment
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 26: DP1, Not used, the DP AUX channel is not available over HDMI (for obvious reasons)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: system76
It is fairly generic code and I have modified it, mostly according to the schematics and what I've s […]
Ack. I would update the prints however
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
PS62: This is a lot of code given the "unknown" state in the commit message. Is the status stale or is this untested, copied code? If the latter, please only add it once you could test it, and understood it (makes it easier to write readable code).
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 62:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: 0x7CE7D018 This looks like a very bad idea. AIUI, it's a physical DRAM address and could conflict with coreboot.
Hello Angel Pons, Paul Menzel, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#63).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,155 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/63
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 63:
(14 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 55: #config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
This symbol isn't used anywhere: https://github. […]
Ah, okay.
So we don't do this anymore?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 29: 0xFE800000 FIXME: This defines a hardcoded memory region.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: 0x7CE7D018
This looks like a very bad idea. AIUI, it's a physical DRAM address and […]
That does sound very bad. How should this be handled instead?
The named variable "EMBA" does the same for other opregions. Marking as such.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 53: 0
This one should be enabled in order to use a SATA SSD.
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 58: 2
Shouldn't this be 3 for SATA3 6Gbps speeds?
I found an ATA error in dmesg once, even with the vendor BIOS. I thought I'd try this, in case limiting the speed fixes it, as it did for Purism's board. There isn't an error there now, though.
Removing this.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 170: x4 In the schematics, ports 1-4 are connected to PEG. Should these ports be enabled?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 202: register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth
Missing `usb2_ports[5]` for the touch screen? (likely unused)
Device does not have a touchscreen.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 204: register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD
Also missing `usb2_ports[8]` for the "finger printer"
Not present.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 208: # register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
This and `usb3_ports[3]` seem to be used for USB Type-C
There's only one Type-C port?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 232: [PchSerialIoIndexUart2] = PchSerialIoDisabled,
This could be enabled as a debug port. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device
I don't think SKL-U has such device. […]
You're right. Volume 2 of the datasheet for 6th gen platforms concurs. Is it sufficient to enable the root port? While coreboot doesn't remove Port 1 (dGPU), it doesn't locate anything behind it either[1], so something seems to be missing.
1. It may not be useful, but the log is here: https://gist.github.com/benjamindoron/37204d78c915d3fb7801462416d65c2d
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 253: device pci 1c.0 on end # PCI Express Port 1
This is actually the dGPU root port. […]
Very well.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 26: DP1,
Not used, the DP AUX channel is not available over HDMI (for obvious reasons)
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: system76
Ack. […]
Done
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 63:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 58: 2
I found an ATA error in dmesg once, even with the vendor BIOS. […]
Ack. I wonder if the issue with the Purism Librem is due to lack of HSIO tuning or just bad design. There are HSIO tuning registers but they are publicly undocumented.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 170: x4
In the schematics, ports 1-4 are connected to PEG. […]
No, they should be left disabled. There's a difference between PCIe root port devices and PCIe lanes. The dGPU is using four PCIe lanes (1..4), but they are all grouped together in a single PCIe root port device.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 202: register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth
Device does not have a touchscreen.
Not at all, or not on your model? Leaving it enabled does not cause any harm.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 204: register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD
Not present.
See above
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 208: # register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
There's only one Type-C port?
USB Type-C uses two USB 3.0 lanes, though. Yes, I didn't know about that either.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device
You're right. Volume 2 of the datasheet for 6th gen platforms concurs. […]
Notice that, on line 371, coreboot says it could not find this device. That is, Bus:Dev.Fun 00:01.0 is missing. The GPU should be on a different bus, at 01:00.0
If the dGPU isn't present with coreboot, it is probably power gated because of Optimus.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 63:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 55: #config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Ah, okay. […]
On older platforms, it is done in the devicetree. I don't really bother much with subsystem IDs, though. Maybe I should.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 63:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 29: 0xFE800000
FIXME: This defines a hardcoded memory region.
Given the high location, this will be some hardware MMIO. Which may be chosen by the firmware.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: 0x7CE7D018
That does sound very bad. How should this be handled instead?
Depends on what the code tries to do, and to be honest, reading it seems like a reverse engineering effort. ACPI features are best added step by step, e.g. you miss battery status, add that, you want an Fn-key to work, add that etc. Copying vendor code (which I assume this is) is a sure way to waste time (unless one doesn't care and accepts to have 80% dead, unreadable code).
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#64).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,876 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/64
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 64:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 170: x4
No, they should be left disabled. […]
Okay, thanks. I see from FspmUpd.h ("Peg*" UPDs) that the FSP handles this automatically?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 202: register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth
Not at all, or not on your model? Leaving it enabled does not cause any harm.
Fair point. Enabling.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 204: register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD
See above
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 208: # register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
USB Type-C uses two USB 3.0 lanes, though. Yes, I didn't know about that either.
Done
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 64:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 29: 0xFE800000
Given the high location, this will be some hardware MMIO. Which may be […]
Definitely the vendor firmware, or is this value universal? In any case, I'll have to work on this.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: 0x7CE7D018
That does sound very bad. How should this be handled instead? […]
I've fixed this by factoring it out and including some functionality from EC_ACPI. However, I haven't managed to implement everything I've removed and this remains untested.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 46: // Mainboard specific
Is it necessary to use two different files? If so, can any of them be renamed to, for example, `ec. […]
Were you referring to mbdefines.asl? If so, the remainder of that has since been refactored into dsdt.asl after including EC_ACPI.
This remains untested; I haven't managed to implement everything that I've removed.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#65).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,890 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/65
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 65: Code-Review+1
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... PS65, Line 674: /* WBEC: Calls SMI function 0x11 */ Those SMI functions are not there on coreboot, are they?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 170: x4
Okay, thanks. I see from FspmUpd. […]
"Peg" usually refers to the PCIe lanes attached to the CPU, which do not exist on SKL-U
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device
Notice that, on line 371, coreboot says it could not find this device. That is, Bus:Dev.Fun 00:01. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 46: // Mainboard specific
Were you referring to mbdefines. […]
Right. The idea is to avoid having both "mbdefines" and "mainboard", as they sound a bit redundant.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#66).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,916 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/66
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 66:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... PS65, Line 674: /* WBEC: Calls SMI function 0x11 */
Those SMI functions are not there on coreboot, are they?
No. I also think think that my assumption that 0x10-0x12 mapped to 0x80-0x82 (EC_WRITE is 0x81) was incorrect. The vendor implements a generic handler which receives 0x80-0x82 as well as 0x10 (from "RBEC" method).
These are possibly generic EC SCI commands? The KB9012QF datasheet, page 169, lists SCI events 0x10 and 0x11 for FAN0 and FAN1, as well as 0x12 for SMBus events.
I'm reverting this line until I can be sure what these do.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 170: x4
"Peg" usually refers to the PCIe lanes attached to the CPU, which do not exist on SKL-U
Hmm. In any case, if dGPUs are only PCIe devices on SKL-U, they wouldn't need any additional configuration/this is handled automatically.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device Yes, but that's not what I meant. While 01:00.0 doesn't appear, coreboot doesn't remove Root Port 1, as it does the NGFF connector.
If the dGPU isn't present with coreboot, it is probably power gated because of Optimus.
I believe that Optimus only provides the OS a way to call BIOS functionality, through ACPI. It's clearly connected, but not the entire issue. However, perhaps if I look at the Optimus table, I'll see what I'm missing.
CB:39002 isn't related, is it? If Optimus on SKL-U doesn't have a PEG port, it wouldn't have a framebuffer, I imagine.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#67).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,916 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/67
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 67:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device
Yes, but that's not what I meant. While 01:00. […]
CB:39002 is about framebuffers that are set up by gfx-init drivers in coreboot. This is completely independent of the way a GPU is connected.
Trying to clear some confusion, I hope I won't make it worse: PEG (PCI Express for Graphics) generally refers to a slot on a mainboard that is dedicated for the gfx card. Sometimes, in the Intel-firmware context it also refers to the PCIe lanes (pins) of the CPU package (what Angel meant). This would show up as `pci 01.0` on bus 0, but SKL-U doesn't have these pins, so there is no `pci 01.0`. Some PCIe lanes of the PCH are used instead, that's all. It makes no difference for Optimus, no difference to gfx drivers, no difference for framebuffers. It's just the way it's physically connected, but that doesn't change anything for the software (beside that coreboot has to enable whatever PCIe port it is connected to).
It's better not to use the term PEG if one doesn't mean a physically present connector (if it's absent how could it be dedicated to gfx?).
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 67:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 240: device pci 01.0 on end # Dedicated Graphics Device
I believe that Optimus only provides the OS a way to call BIOS functionality, through ACPI. It's clearly connected, but not the entire issue. However, perhaps if I look at the Optimus table, I'll see what I'm missing.
This is correct. The ACPI code, however, can call into hidden SMM code which would make analysis much harder.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#68).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,930 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/68
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 68:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 232: [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Done
Must UART pins be programmed in bootblock then?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#69).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Loads TianoCore - Memory - Display (with SkipExtGfxScan disabled and PrimaryDisplay set to iGFX) - with FSP GOP + KBL VBT - Keyboard and touchpad
Requires testing: - Display - with libgfxinit - with FSP GOP + customised KBL VBT, to match vendor's configuration - ACPI - Audio
Does not work: - Booting Fedora 31. Fails with error: "NMI watchdog: detected hard lockup on CPU" or just bootloops - dGPU - Fn keys
Unknown: - EC functioning
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,945 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/69
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#70).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - Internal audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence changed, matches Optimus) - Headphone jack - S3 only works with hotkey
ACPI: - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid not compliant with SW_LID - Brightness "Fn" keys (requires graphics.asl)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - An ata error that I don't remember and wasn't seen again after restart
Unknown: - "ACPI: _SB_.PCI0.LPCB.EC0_: GPE=0x50, IRQ=-1, EC_CMD/EC_SC=0x66, EC_DATA=0x62" - IRQ=-1? - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,945 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/70
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#71).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - Internal audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]
Unknown: - "ACPI: _SB_.PCI0.LPCB.EC0_: GPE=0x50, IRQ=-1, EC_CMD/EC_SC=0x66, EC_DATA=0x62" - IRQ=-1? - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,945 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/71
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#72).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - "ACPI: _SB_.PCI0.LPCB.EC0_: GPE=0x50, IRQ=-1, EC_CMD/EC_SC=0x66, EC_DATA=0x62" - IRQ=-1? - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,945 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/72
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#73).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - "ACPI: _SB_.PCI0.LPCB.EC0_: GPE=0x50, IRQ=-1, EC_CMD/EC_SC=0x66, EC_DATA=0x62" - IRQ=-1? - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,945 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/73
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#74).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - "ACPI: _SB_.PCI0.LPCB.EC0_: GPE=0x50, IRQ=-1, EC_CMD/EC_SC=0x66, EC_DATA=0x62" - IRQ=-1? - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 1,945 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/74
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#76).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - "ACPI: _SB_.PCI0.LPCB.EC0_: GPE=0x50, IRQ=-1, EC_CMD/EC_SC=0x66, EC_DATA=0x62" - IRQ=-1? - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,144 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/76
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 76:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 34: In that scenario, "Select PCIE card" (which controls the active state of PWR_EN) line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 43: gpio_set(DGPU_PWR_EN, 1); // Peg Eval: PWR_EN ActiveHigh; Elk Creek 4: PWR_EN ActiveLow line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 45: /* TODO: For the moment, simply notify the user. Otherwise: delay or wait for PWROK? */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 46: if (!gpio_get(DGPU_PWROK)) { braces {} are not necessary for single statement blocks
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#77).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,144 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/77
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#78).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,145 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/78
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 78:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 46: if (!gpio_get(DGPU_PWROK)) {
braces {} are not necessary for single statement blocks
Maybe, but why would it be preferred to avoid using them?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#79).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 19 files changed, 2,145 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/79
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 79:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 46: if (!gpio_get(DGPU_PWROK)) {
Maybe, but why would it be preferred to avoid using them?
I personally prefer using them. It's just Jenkins being noisy, I guess.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#80).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - S3 only works with hotkey (and cannot be resumed from)
ACPI: - EC is not functioning normally - AC and battery devices appear - Device detected as being perpetually connected to AC - Lid "not compliant to SW_LID" - Brightness "Fn" keys not working (requires graphics.asl, which requires implementation of GMA for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,047 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/80
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#81).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration - ACPI
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,047 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/81
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 81:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/ramstage.c:
https://review.coreboot.org/c/coreboot/+/35523/76/src/mainboard/acer/aspire_... PS76, Line 46: if (!gpio_get(DGPU_PWROK)) {
I personally prefer using them. It's just Jenkins being noisy, I guess.
Done
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 81:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@26 PS81, Line 26: a customised KBL VBT any reason you can't simply extract this from the vendor firmware using UEFITool (eg)?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#82).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Neither can seem to wake device from S3? - Small touchpad nits - (Perhaps fixed with I2C HID devices declared in devicetree) - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration - ACPI
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,044 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/82
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#83).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - Not fixed by disabling substates on the root port (00:1d.1) with FSP - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,044 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/83
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 83:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@26 PS81, Line 26: a customised KBL VBT
any reason you can't simply extract this from the vendor firmware using UEFITool (eg)?
The vendor's VBT is version 200, which is too old?
(However, it has been quite a while since I tried testing that. I don't think there was another issue at play - I think I tested that sufficiently - but there might have been. I can try that again)
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#84).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - Not fixed by disabling substates on the root port (00:1d.1) with FSP - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,045 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/84
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#85).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - Not fixed by disabling substates on the root port (00:1d.1) with FSP - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,044 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/85
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 85:
(5 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
PS62:
This is a lot of code given the "unknown" state in the commit message. Is […]
All functionality seems to work now. I can work on documenting it now. By and large, parts look very similar to other code I've seen, including Lenovo's H8.
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... PS65, Line 674: /* WBEC: Calls SMI function 0x11 */
No. […]
These functions don't seem to be necessary for correct functioning. As noted, the EC memory was mirrored into system memory and switching the operations to the EC's copy was enough.
However, these may serve a purpose that I am not yet aware of.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mbdefines.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 29: 0xFE800000
Definitely the vendor firmware, or is this value universal? In any case, I'll have to work on this.
As I understand, the vendor firmware mirrored the EC memory map into its own memory space. I don't really understand why.
I've noticed the same offsets in fields that the Lenovo H8 had with battery registers that caused them to implement paging, but my vendor's tables don't seem to do that.
I've switched the table to use the EC's copy and that seems to be working.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 34: 0x7CE7D018
I've fixed this by factoring it out and including some functionality from EC_ACPI. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 46: // Mainboard specific
Right. The idea is to avoid having both "mbdefines" and "mainboard", as they sound a bit redundant.
Marking this as done. Other comments more directly address the code.
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 85:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@26 PS81, Line 26: a customised KBL VBT
The vendor's VBT is version 200, which is too old?
one can always export the VBT settings using Intel's BMP tool, then apply them to a newer (FSP 2.0-compatible) VBT. I had to do this with google/eve to fix the backlight control, and am familiar with the process, so can assist if needed
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 85:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@14 PS81, Line 14: KBL VBT Where is that gotten from?
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@18 PS81, Line 18: - (Perhaps fixed with I2C HID devices declared in devicetree) If it refers to the item above, combine both items?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 85:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@14 PS81, Line 14: KBL VBT
Where is that gotten from?
I have a VBT with only timing parameters adjusted for the board here: https://github.com/benjamindoron/blobs/blob/master/mainboard/acer/aspire_vn7....
(Can document this if needed, but it was an interim solution to get the display working until I could properly port the display parameters from the vendor's VBT to an up-to-date version.)
The KBL VBT is located in 3rdparty/fsp/KabylakeFspBinPkg/SampleCode/Vbt/Vbt.bin
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@18 PS81, Line 18: - (Perhaps fixed with I2C HID devices declared in devicetree)
If it refers to the item above, combine both items?
Not applicable? I've since declared the touchpad in devicetree and updated the commit message. The touchpad still doesn't wake the device, but that requires the wake GPIO declared too. I'm not sure it has one.
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@26 PS81, Line 26: a customised KBL VBT
The vendor's VBT is version 200, which is too old? […]
They seem to have changed the size of some fields, leading to some truly impossible, out-of-range, values. When I tried it, if I didn't correct that, it would explain why it didn't work.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#86).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI port - Internal and HDMI audio - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Headphone jack and microphone - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Bugs: - "pcieport 0000:00:1d.1: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) AER: device [8086:9d19] error status/mask=00001000/00002000 AER: [12] Timeout" - Fixed by setting ASPM policy in Linux to performance, disabling substates - Not fixed by disabling substates on the root port (00:1d.1) with FSP - "[ ..snip ..]ata2.00: failed command: WRITE FPDMA QUEUED[ ..snip ..]"
Unknown: - TPM
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,093 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/86
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#87).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Unknown: - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,093 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/87
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 87:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/87/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/87/src/mainboard/acer/aspire_... PS87, Line 52: /* Undocumented settings from vendor firmware */ Extracted from vendor's UEFI module - InstallPchHdaVerbTablePei (data section at the tail of the file) - the blob of data after the pin configs.
https://review.coreboot.org/c/coreboot/+/35523/87/src/mainboard/acer/aspire_... PS87, Line 110: 0x02050010, : 0x02040f20, These look out of place, but were located after the previous beep_verbs. The above were assumed to be beep_verbs by correlation with other hda_verb files.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#88).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - Brightness "Fn" keys (requires implementation of GMA ACPI for Skylake)
Unknown: - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,090 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/88
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#89).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus)
Unknown: - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,090 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/89
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#90).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,090 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/90
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#91).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,092 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/91
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#92).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 2,092 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/92
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#93).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,955 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/93
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#94).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (GPIO sequence matches Optimus) - TPM - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,943 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/94
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#95).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected)
Unknown: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/graphics.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,943 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/95
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 95:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/95/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/95/src/mainboard/acer/aspire_... PS95, Line 17: select MAINBOARD_HAS_CRB_TPM : select MAINBOARD_HAS_TPM2 : # select HAVE_INTEL_PTT Schematics mention the Nuvoton NPCT650, a TPM that exists in 1.2 and 2.0 forms (I use the tpm2-tools package), and display it appearing on the LPC bus.
However, coreboot log states "Initialized TPM device Intel iTPM revision 0" with this applied. Also noting that the TPM does not work when using the vendor firmware after ME is cleaned.
I understand that CRB does not contradict LPC bus, but I'm not sure what to make of this. I'll double-check the boardview and the board itself when I get the chance, but I partially recall seeing an empty space where perhaps the boardview showed the TPM would be.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 95:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@18 PS81, Line 18: - (Perhaps fixed with I2C HID devices declared in devicetree)
Not applicable? I've since declared the touchpad in devicetree and updated the commit message. […]
Done
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#97).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display - with FSP GOP + KBL VBT - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Requires testing: - Display - with libgfxinit - with FSP GOP + a customised KBL VBT, to match vendor's configuration
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected)
Unknown: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/97
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#98).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (resolution for GRUB isn't set correctly?) - with FSP GOP + a customised KBL VBT (partially matching vendor's configuration) - with libgfxinit + a customised KBL VBT (partially matching vendor's configuration) - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected)
Unknown: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/98
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 98:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@14 PS81, Line 14: KBL VBT
I have a VBT with only timing parameters adjusted for the board here: https://github. […]
That VBT is unnecessary now.
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@26 PS81, Line 26: a customised KBL VBT
They seem to have changed the size of some fields, leading to some truly impossible, out-of-range, v […]
Copied the details manually this time and here are my notes: Select the LFP panel to match the display's resolution (panel 15, 1920*1080). As a result, the DTD and PnP ID differ, but as the vendor did not change these from the defaults for their selected panel (panel 3, resolution 1024*768), I'm not concerned.
Did not copy the Display Device toggle lists. These are for display switching with hotkeys, are they necessary?
In all of this, GRUB is still using a lower resolution with coreboot, but 1080p with the vendor firmware. I tested the Fixed Mode feature (I might've been surprised if that worked) but it didn't change anything. Same issue with libgfxinit, actually.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#99).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Bugs: - SATA FPDMA error
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/99
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 99:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... PS99, Line 96: Device (SLPB) : { : Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID : Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake : { : 0x0A, : 0x03 : }) : } Is this generic device actually needed, or can the fixed sleep button be used?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 99:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... PS99, Line 96: Device (SLPB) : { : Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID : Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake : { : 0x0A, : 0x03 : }) : }
Is this generic device actually needed, or can the fixed sleep button be used?
ACPI may standardise the sleep button, but isn't the interrupt/GPIO ("0x0A") still somewhat board/SoC specific?
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 99:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... PS99, Line 96: Device (SLPB) : { : Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID : Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake : { : 0x0A, : 0x03 : }) : }
ACPI may standardise the sleep button, but isn't the interrupt/GPIO ("0x0A") still somewhat board/So […]
Sorry, I haven’t fully understood it yet. Just to be sure, does Linux detect two sleep buttons (with vendor firmware and coreboot-based)?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 99:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... PS99, Line 96: Device (SLPB) : { : Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID : Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake : { : 0x0A, : 0x03 : }) : }
Sorry, I haven’t fully understood it yet. […]
dmesg mentions a SLPB device just once. But would there have been a second?
With the vendor firmware too, a PWRF and SLPB device exists, with only the SLPB device in DSDT.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 99: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/99/src/mainboard/acer/aspire_... PS99, Line 96: Device (SLPB) : { : Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID : Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake : { : 0x0A, : 0x03 : }) : }
dmesg mentions a SLPB device just once. But would there have been a second? […]
I haven’t fully understood the sleep button stuff yet. There should be a fixed one too. You could just try to remove this, and see if the button still works with your port. Your call.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#101).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Bugs: - SATA FPDMA error
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/101
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#102).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Bugs: - SATA FPDMA error
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/102
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#103).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Bugs: - SATA FPDMA error
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,897 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/103
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#104).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Bugs: - SATA FPDMA error
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/104
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#105).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/105
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 105:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/105//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/105//COMMIT_MSG@28 PS105, Line 28: dGPU As FSP does display configuration (iGFX, Switchable Graphics, etc) in FSP-M and UEFI configures the relevant GPIOs in PEI (see SwitchableGraphicsPei.c), I attempted to move the `gpu_reset` function into romstage.
It didn't work, but dmesg was displaying errors about being unable to transition the root port from D3 to D0, because the config space was unavailable.
An alternative is PrimaryDisplay=Display_SG and setting the Switchable Graphics GPIO UPDs.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#106).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - dGPU (while GPIO sequence matches Optimus', additional EC involvement is suspected) - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,844 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/106
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#107).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - dGPU - nouveau complains of various errors - Power consumption is expected to increase - Presumably resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,844 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/107
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#108).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration; resolution for GRUB isn't set correctly?) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Presumably resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,844 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/108
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 108:
(3 comments)
If anyone wants to take a look, I have the following logs:
cbmem: https://gist.github.com/benjamindoron/a70f1c6ad235d31baa02202139ea785c dmesg: https://gist.github.com/benjamindoron/c1290fe36616f06b70ad362f06b37e68
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/81//COMMIT_MSG@26 PS81, Line 26: a customised KBL VBT
Copied the details manually this time and here are my notes: […]
Resolution may be a payload issue.
Marking as done.
https://review.coreboot.org/c/coreboot/+/35523/105//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/105//COMMIT_MSG@28 PS105, Line 28: dGPU
As FSP does display configuration (iGFX, Switchable Graphics, etc) in FSP-M and UEFI configures the […]
I had been sure that I had tried Display_Switchable before and that it didn't work, but it is working now. Perhaps the issue then was a different one (poorly configured VBT, maybe?).
I did not need to set any UPDs for Switchable Graphics GPIOs.
https://review.coreboot.org/c/coreboot/+/35523/95/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/95/src/mainboard/acer/aspire_... PS95, Line 17: select MAINBOARD_HAS_CRB_TPM : select MAINBOARD_HAS_TPM2 : # select HAVE_INTEL_PTT
Schematics mention the Nuvoton NPCT650, a TPM that exists in 1.2 and 2. […]
Board does not have a TPM in the region marked for one on the boardview.
Perhaps this is an issue of different models.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#109).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Presumably resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,844 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/109
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#110).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Presumably resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,843 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/110
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#111).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,843 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/111
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#112).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,843 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/112
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 112:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/111//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/111//COMMIT_MSG@18 PS111, Line 18: - nvidia binary driver does not work : - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; : falling back to PCIe virtual-wire interrupts." I use module blacklisting to control whether Xorg/Wayland is used (nvidia binary driver does not work well with Wayland), which possibly also improves battery life by preferring the iGPU (maybe, but I'm only basing this on the "Graphics" entry in the About page of GNOME settings).
The binary driver has better performance, as I understand, but attempting to use it results in even coreboot being unable to detect the dGPU behind the root port after a restart.
Yet, using the nouveau driver results in the nvidia driver being loaded and in use, according to lspci.
Unfortunately, that particular quirk results in the dGPU only working once.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#113).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,898 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/113
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 113:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/113/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl:
https://review.coreboot.org/c/coreboot/+/35523/113/src/mainboard/acer/aspire... PS113, Line 4: #define PRES 20 'PRES' may be misspelled - perhaps 'PRESS'?
https://review.coreboot.org/c/coreboot/+/35523/113/src/mainboard/acer/aspire... PS113, Line 44: If (GRXS(PRES) > 0) 'PRES' may be misspelled - perhaps 'PRESS'?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 113:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/111//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/111//COMMIT_MSG@18 PS111, Line 18: - nvidia binary driver does not work : - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; : falling back to PCIe virtual-wire interrupts."
I use module blacklisting to control whether Xorg/Wayland is used (nvidia binary driver does not wor […]
I meant once per flash, but that was incorrect (with the benefit of hindsight, obviously so. If the build in SPI flash worked once...)
It may be related to power state. In any case, implementing Optimus should ideally resolve all this.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#114).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM - Does not wake from S3
Does not work: - Microphone
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,884 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/114
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#115).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Does not work: - Microphone
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,884 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/115
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#116).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Does not work: - Microphone
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,883 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/116
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 116:
What must be completed to get this merged? I'd like to get it in for 4.12, if possible.
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 116:
Patch Set 116:
What must be completed to get this merged? I'd like to get it in for 4.12, if possible.
there's 4 or so unresolved comments, so those would be a start
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#117).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Does not work: - Microphone
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,892 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/117
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#118).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,892 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/118
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 118:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
PS62:
All functionality seems to work now. I can work on documenting it now. […]
Done, although there are still some parts that I'm unsure of.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 155: Method (_Q1C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF
Well, you can apply ACPI overrides even when using the vendor BIOS: https://wiki.archlinux. […]
I don't see any boards with comments more explanatory than the default comments from the decompiler. Marking as done.
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/65/src/mainboard/acer/aspire_... PS65, Line 674: /* WBEC: Calls SMI function 0x11 */
These functions don't seem to be necessary for correct functioning. […]
I could possibly attempt to debug the vendor firmware's SMM code at some point in the future (DCI and maybe the UDK debugger are the only possible ways to do it, I'm assuming), but as stated, these functions don't seem to be necessary for correct functioning.
Marking as done.
https://review.coreboot.org/c/coreboot/+/35523/87/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/87/src/mainboard/acer/aspire_... PS87, Line 110: 0x02050010, : 0x02040f20,
These look out of place, but were located after the previous beep_verbs. […]
Seems to work correctly. Marking as done.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#119).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,881 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/119
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 119: Code-Review+1
(1 comment)
Looks good to me, and the other things can be fixed in follow-ups.
https://review.coreboot.org/c/coreboot/+/35523/119//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/119//COMMIT_MSG@12 PS119, Line 12: - Booting Fedora 31 using TianoCore (CorebootPayload) What Linux kernel version does it ship?
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 119:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 13: # TODO: select DRIVERS_NVIDIA_OPTIMUS more TODO
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ remove if unused?
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 140: # TODO: register "PcieRpAspm[9]" = "ASPM_L1" : # TODO: register "PcieRpL1Substates[9]" = "L1_SS_DISABLED" lets resolve these TODOs (and the one above) is possible before merge
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 29: // #include "acpi/optimus_mb.asl" the file is in this patch, so is it just not working or?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#120).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,881 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/120
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 120:
(6 comments)
https://review.coreboot.org/c/coreboot/+/35523/119//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/119//COMMIT_MSG@12 PS119, Line 12: - Booting Fedora 31 using TianoCore (CorebootPayload)
What Linux kernel version does it ship?
Done
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 13: # TODO: select DRIVERS_NVIDIA_OPTIMUS
more TODO
Optimus support is implemented in CB:28380 and is not yet merged.
Also see above (on dsdt.asl, regarding optimus_mb.asl).
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ
remove if unused?
The schematics specify a Nuvoton NPCT650 appearing on the LPC bus.
However, the model that I own does not have this chip. If it did, this pin would be its interrupt.
I'm not sure whether this should stay or be removed.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 58: 2
Ack. I wonder if the issue with the Purism Librem is due to lack of HSIO tuning or just bad design. […]
I resolved this by enabling "SataPwrOptEnable"
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 140: # TODO: register "PcieRpAspm[9]" = "ASPM_L1" : # TODO: register "PcieRpL1Substates[9]" = "L1_SS_DISABLED"
lets resolve these TODOs (and the one above) is possible before merge
This depends upon CB:39538.
The microphone, however, is more complicated. I can assume that the vendor is using that UPD to enable the microphone as none of the HDA pin_cfgs address a microphone and I'm including all of their undocumented verbs (extracted from the InstallPchHdaVerbTablePei module).
However, the microphone isn't working even with the vendor firmware.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 29: // #include "acpi/optimus_mb.asl"
the file is in this patch, so is it just not working or?
Optimus support depends upon CB:28380 and requires implementation per-SoC. I've attempted to write peg.asl for Skylake (CB:40625), but with this applied, the dGPU does not appear in the OS at all.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 120:
(2 comments)
Thank you for your quick reactions.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ
The schematics specify a Nuvoton NPCT650 appearing on the LPC bus. […]
Please add this as a comment above it.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 58: 2
I resolved this by enabling "SataPwrOptEnable"
Can you document that in the commit message please?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#121).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Initial SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,881 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/121
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#122).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Initial SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/optimus_mb.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,883 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/122
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 122:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ
Please add this as a comment above it.
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 58: 2
Can you document that in the commit message please?
Done
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 122:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 13: # TODO: select DRIVERS_NVIDIA_OPTIMUS
Optimus support is implemented in CB:28380 and is not yet merged. […]
then rebase on CB:28380 or remove and add as a follow-up patch on top of CB:28380
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ
Done
what's the consequence of enabling this on your board which lacks the TPM?
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 140: # TODO: register "PcieRpAspm[9]" = "ASPM_L1" : # TODO: register "PcieRpL1Substates[9]" = "L1_SS_DISABLED"
This depends upon CB:39538. […]
either rebase on CB:39538 and remove the TODOs, or drop them and re-add in a follow-on patch that's based on CB:39538.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 122:
(14 comments)
I tried to give it a quick look, but the first files (ACPI) are incredibly hard to read. Didn't come very far.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: Name (ACST, One) Where is this consumed? Why is it needed to cache this?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 14: // _HID: Hardware ID Automated comments make it look like you borrowed the code from somebody else.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 19: If (EACS) : { : ACST = One : } : Else : { : ACST = Zero : } Isn't it easier to just write
ACST = EACS
? I would expect it to compile.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 31: Method (_STA, 0, NotSerialized) // _STA: Status : { : Return (0x0F) : } This is the default, are you sure it's needed?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: EB0A, 1, : , 2, : EB0R, 1, : EB0L, 1, : EB0F, 1, : EB0N, 1 These seem to describe the bits in `EB0S` below. Why not use them instead of the manual masking? If it's to reduce the number of EC RAM reads, defined macro names for the masks would be nice.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 41: Offset (0xE0), Same offset as above. So the EC provides different data on the same addresses in a predefined sequence, I assume? Can we have a comment what the expected sequence is?
As far as I can see:
EBDC EBFC EBDV /* new value after reading EBFC */ EBSN EBDN /* entire new value */ EBCH /* entire new value */ EBMN /* entire new value */
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 69: Arg1 [One] = 0xFFFFFFFF : Arg1 [0x02] = 0xFFFFFFFF : Arg1 [0x04] = 0xFFFFFFFF : Arg1 [0x05] = Zero : Arg1 [0x06] = Zero Again, looks like borrowed code. Wouldn't
Arg1[1] = ... Arg1[2] = ... ... Arg1[6] = ...
be easier to read?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 78: (Local0 ^ One) isn't this just `!Local0`?
Are the parentheses needed?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 78: Zero 0?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 79: If (Local0) : { : Local1 = (EBDC * 0x0A) : } : Else : { : Local1 = EBDC : } : : Arg1 [One] = Local1 // Design capacity : If (Local0) : { : Local2 = (EBFC * 0x0A) : } : Else : { : Local2 = EBFC : } Can this be written with one `if` block?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 100: 0x64 % calculations are easier to follow if you use decimal numbers.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 100: Divide (Local2, 0x64, Local7, Local6) // Warning capacity Why Divide() instead of `Local6 = Local2 / 100`? Would it hurt to write
Arg1[5] = (Local2 / 100) * 7 Arg1[6] = ((Local2 / 100) * 11) / 2
?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 102: Arg1 [0x05] = Local3 /* 7% */
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 107: Arg1 [0x06] = Local4 /* 5.5% */
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#123).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Initial SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,764 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/123
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 123:
(18 comments)
@Nico, were you considering disassembled ASL as "copied code?"
Also, this is presently untested. I'm having some issues with compiling crossgcc on Fedora 32.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 13: # TODO: select DRIVERS_NVIDIA_OPTIMUS
then rebase on CB:28380 or remove and add as a follow-up patch on top of CB:28380
Done
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ
what's the consequence of enabling this on your board which lacks the TPM?
I've double-checked the schematics and found that the interrupt is SERIRQ, so I'm removing this.
Note: I tested it too and there was no effect. I also found that this config option is only used by the LPC_TPM driver (in drivers/pc80/tpm/tis.c).
There is still the question of which driver should be selected. As I understand it, only one driver can be used, so should this be handled with variants? Would this be something to do now or something possibly in the future (if this scenario comes up)?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: Name (ACST, One)
Where is this consumed? Why is it needed to cache this?
battery.asl, but I'll switch it to use the variable directly from the EC instead.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 14: // _HID: Hardware ID
Automated comments make it look like you borrowed the code from somebody else.
They were added by iASL's disassembler. I left them in because I had been unfamiliar with ACPI and still sometimes find it useful to be reminded what I'm working with.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 19: If (EACS) : { : ACST = One : } : Else : { : ACST = Zero : }
Isn't it easier to just write […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 31: Method (_STA, 0, NotSerialized) // _STA: Status : { : Return (0x0F) : }
This is the default, are you sure it's needed?
I don't understand. Is the status method always implicitly declared?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: EB0A, 1, : , 2, : EB0R, 1, : EB0L, 1, : EB0F, 1, : EB0N, 1
These seem to describe the bits in `EB0S` below. Why not use them instead […]
That does seem correct. I'll attempt to identify some places this could be changed and comment below.
I agree with your assumption that this could be used to reduce the number of reads from the EC. For the same reason, the vendor firmware mirrored the EC RAM into its own memory space.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 41: Offset (0xE0),
Same offset as above. So the EC provides different data on the same addresses […]
Right, I had noticed that the offsets were the same, but that full 'paging' wasn't implemented the way it is for Lenovo's H8.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 69: Arg1 [One] = 0xFFFFFFFF : Arg1 [0x02] = 0xFFFFFFFF : Arg1 [0x04] = 0xFFFFFFFF : Arg1 [0x05] = Zero : Arg1 [0x06] = Zero
Again, looks like borrowed code. Wouldn't […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 78: Zero
0?
Done
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 78: (Local0 ^ One)
isn't this just `!Local0`? […]
EBCM is 1 bit. Good catch, thanks.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 79: If (Local0) : { : Local1 = (EBDC * 0x0A) : } : Else : { : Local1 = EBDC : } : : Arg1 [One] = Local1 // Design capacity : If (Local0) : { : Local2 = (EBFC * 0x0A) : } : Else : { : Local2 = EBFC : }
Can this be written with one `if` block?
EBDC and EBFC are in different memory fields and this method is serialized. I'll give it a try.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 100: 0x64
% calculations are easier to follow if you use decimal numbers.
Done
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 100: Divide (Local2, 0x64, Local7, Local6) // Warning capacity
Why Divide() instead of `Local6 = Local2 / 100`? Would it hurt to write […]
Done
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 102: Arg1 [0x05] = Local3
/* 7% */
Capacity of warning, I assume, but how do you know that? We don't know in which state bits may be, there's even a 'multiply by 10' case.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08) `EB0L`?
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3" The vendor is using this UPD to enable the microphone as none of the HDA pin_cfgs address a microphone and I'm including all of their undocumented verbs (extracted from the InstallPchHdaVerbTablePei module).
However, the microphone isn't working even with the vendor firmware (may be an OS issue).
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 140: # TODO: register "PcieRpAspm[9]" = "ASPM_L1" : # TODO: register "PcieRpL1Substates[9]" = "L1_SS_DISABLED"
either rebase on CB:39538 and remove the TODOs, or drop them and re-add in a follow-on patch that's […]
Done. Moving microphone statements to a separate comment.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 123:
I tried to give it a quick look, but the first files (ACPI) are incredibly hard to read. Didn't come very far.
Sorry and thanks for the feedback. Maybe it's better now?
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 123:
(5 comments)
@Nico, were you considering disassembled ASL as "copied code?"
Yes. ASL and AML are merely different representations of the same language. What `iasl` does is more translating than compiling. So, IMO, it's still the very same code after `iasl` "disassembling". Usually, I still feel confident about my signed-off-by when I copied a few lines (if it's merely boilerplate for instance). But what you have done here seems bold. Don't know if too bold ;)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 14: // _HID: Hardware ID
They were added by iASL's disassembler. […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 31: Method (_STA, 0, NotSerialized) // _STA: Status : { : Return (0x0F) : }
I don't understand. […]
Not the method but its value is implicit. Spec says:
"If a device object describes a device that is not on an enumerable bus and the device object does not have an _STA object, then OSPM assumes that the device is present, enabled, shown in the UI, and functioning."
"present, enabled, shown in the UI, and functioning" is 0xf ;)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 79: If (Local0) : { : Local1 = (EBDC * 0x0A) : } : Else : { : Local1 = EBDC : } : : Arg1 [One] = Local1 // Design capacity : If (Local0) : { : Local2 = (EBFC * 0x0A) : } : Else : { : Local2 = EBFC : }
EBDC and EBFC are in different memory fields and this method is serialized. I'll give it a try.
Yes, I guess the order of EC accesses might matter, but we can keep that order and make it a little more readable:
If (Local0) { Local1 = ... Local2 = ... } Else { Local1 = EBDC Local2 = EBFC }
(If it were C I would just introduce another variable `factor = local0 ? 10 : 1;`. But that's not fun with the `LocalX` ASL variables.)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 102: Arg1 [0x05] = Local3
Capacity of warning, I assume, but how do you know that? We don't know in which state bits may be, t […]
I don't follow. `7%` is just a different way of saying `* 7 / 100` or `/ 100 * 7` which is what the code does. We don't know the bits, but we know that we report `Local2` as full charge, `Local3 = 7% of Local2` here and `Local4 = 5.5% of Local2` below.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08)
`EB0L`?
`EB0R` as I read it?
EB0A, 1, /* bit 0 */ , 2, /* bits 1, 2 */ EB0R, 1, /* bit 3 */ EB0L, 1, /* bit 4 */
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#124).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Initial SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,767 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/124
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 124:
(2 comments)
The remaining capacity of the battery stopped updating, so I reverted a few things. Need to double-check what precisely fixed it.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: Name (ACST, One)
battery.asl, but I'll switch it to use the variable directly from the EC instead.
Reverted. Need to confirm.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 78: (Local0 ^ One)
EBCM is 1 bit. Good catch, thanks.
Reverted. Need to confirm impact.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 124:
(6 comments)
Usually, I still feel confident about my signed-off-by when I copied a few lines (if it's merely boilerplate for instance). But what you have done here seems bold. Don't know if too bold ;)
Are you thinking of code quality issues or license-related problems? Because for one, it works, and for the other, isn't the recommended way to get started porting a board to copy configuration that works, etc?
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 31: Method (_STA, 0, NotSerialized) // _STA: Status : { : Return (0x0F) : }
Not the method but its value is implicit. Spec says: […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 79: If (Local0) : { : Local1 = (EBDC * 0x0A) : } : Else : { : Local1 = EBDC : } : : Arg1 [One] = Local1 // Design capacity : If (Local0) : { : Local2 = (EBFC * 0x0A) : } : Else : { : Local2 = EBFC : }
Yes, I guess the order of EC accesses might matter, but we can keep that […]
That did seem logical. Tested, working.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 102: Arg1 [0x05] = Local3
I don't follow. `7%` is just a different way of saying `* 7 / 100` or […]
I suppose this can be hard to read. Beyond the 'multiply by 10' (maybe an EC model or firmware quirk?), I was also finding "*Last* full charge capacity" mildly confusing, but batteries do degrade.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 107: Arg1 [0x06] = Local4
/* 5. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08)
`EB0R` as I read it? […]
I'm not sure about endianness for the 8051 and if it matters to ACPI.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 29: // #include "acpi/optimus_mb.asl"
Optimus support depends upon CB:28380 and requires implementation per-SoC. […]
Optimus support has been removed. I'll work on this separately.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#125).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (config space is unavailable?) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Initial SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,752 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/125
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#126).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (resolved by CB:40625) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Prior SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,752 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/126
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 126:
(1 comment)
Usually, I still feel confident about my signed-off-by when I copied a few lines (if it's merely boilerplate for instance). But what you have done here seems bold. Don't know if too bold ;)
Are you thinking of code quality issues or license-related problems? Because for one, it works, and for the other, isn't the recommended way to get started porting a board to copy configuration that works, etc?
Copyright actually, where I'm from (we have something similar to copyright) the basic concept is when you are not licensed to do something with somebody else's work, copyright applies. Worth to mention [1].
Yes it works, sometimes one gets lucky even with copied ASL code. If somebody told you it's recommended to start with copied code, they most likely had copies of free software in mind.
IANAL, so I can't give any real advice here. But I guess nobody really cares who copies ASL code. However, if the code is unrea- dable (often the result of copying vendor ASL code) then the code is not reviewable (for me). You can still hope that some- body rubber stamps it.
[1] https://www.coreboot.org/Development_Guidelines#Sign-off_Procedure
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08)
I'm not sure about endianness for the 8051 and if it matters to ACPI.
Well, endianness (byte order) only matters if there are multiple bytes. And both the `Field` with individual bits specified and the masking with `& 0x08` happen in the ACPI interpreter on the host CPU, so the 8051 has nothing to say about it.
Couldn't find anything in the ACPI spec about the bit order, but usually, the least significant bit is specified first and nothing else makes sense here. If we would specify the most significant bit first, we'd have to ask "the most significant out of how many bits?", i.e. we would need to group the bits into words of a specific size.
So counting from top (first) to bottom: EB0A is bit 0 and as bitmask 0x01, two bits skipped, EB0R bit 3 => 0x08, and EB0L bit 4 => 0x10 etc.
(If it were multiple bytes, btw., it would be little endian by ACPI spec, no matter on what hardware.)
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#127).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 (resolved by CB:40625) - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - Prior SATA errors were resolved by enabling "SataPwrOptEnable" - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,746 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/127
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#129).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,746 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/129
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 129:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: Name (ACST, One)
Reverted. Need to confirm.
Confirmed working. Done.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 78: (Local0 ^ One)
Reverted. Need to confirm impact.
Battery estimates do not work with either "!Local0" or "(!Local0)". The latter may be more correct, but nevertheless. Done.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 129:
System doesn't boot with me_cleaner setting the HAP bit and removing partitions (but preserving MFS).
With only the HAP bit set: Vendor firmware (from memory, I think it was the same version): Appears to (largely, PTT is naturally unavailable) work correctly. coreboot (apparently): Does not decrypt hard drive.
Perhaps I only typo-ed my password, several times. However, ME does have HW crypto and its crypto module.
I can build an updated binary and perhaps an older one too. In any event, a cleaned ME is not currently a configuration that I can recommend.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#131).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,981 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/131
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#132).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,981 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/132
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#133).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,987 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/133
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 133: Code-Review+1
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#134).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,987 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/134
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 134:
(4 comments)
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 150: # register "PcieRpEnable[6]" = "1"
Port 7 actually backs SATA. Port 8 is NGFF.
May not be correct.
PCIe/SATA/USB page of the schematics places SSD/SATA on RP7/SATA0 and SSD/PCIE on RP8/SATA1a. HDD1 is on RP11/SATA1b and ODD on RP12/SATA2.
SSD/SATA and SSD/PCIE both lead to mSATA.
The vendor BIOS disables and hides SATA0 settings behind gray-out (perhaps only because no device is present), but unequivocally enables RP7. I found some settings in a config.xml extracted by Intel FIT from a vendor update and SPI dump that may clear this up.
RP7/SATA0: GPIO RP8/SATA1: PCIe RP11/SATA1: SATA RP12/SATA2: SATA
Ports 1-4: 1x4 Ports 5-8: 2x2 Ports 9-12: 4x1
It appears to me that there is an mSATA/NGFF port on RP7+RP8 and no SATA0.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 53: 0
Done
RP7/SATA0 is muxed with RP8/SATA1 to make an x2 port for mSATA. However, as noted above, it is SATA0 with RP8 that the schematics show wired to mSATA.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 232: [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Must UART pins be programmed in bootblock then?
Should CONSOLE_SERIAL be enabled? If it is an LPSS UART and in-memory, should the coreboot + payload log be able to be read after boot?
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3"
The vendor is using this UPD to enable the microphone as none of the HDA pin_cfgs address a micropho […]
The microphone is attached to the webcam and the schematics assert that the pins are "reserved for SST." It does seem as though it could be an [OS issue](https://github.com/takaswie/sound/commit/df1fceacb24853d79f41a1dd717b32ab08f...). That commit apparently landed in -next, so I'll wait and see. However, it may still need an HDA pin_cfg.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#135).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,986 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/135
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#136).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,991 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/136
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#137).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,976 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/137
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#138).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,976 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/138
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#139).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 31 (since kernel 5.5, presently with 5.6.6) using TianoCore (CorebootPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - "Fn" key does not disable touchpad - USB ports (unable to test type-C) - SATA - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone not working even with vendor firmware (perhaps an OS issue)
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,088 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/139
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#140).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.6.19) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,088 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/140
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 140:
(8 comments)
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 75: #config TPM_PIRQ : # hex : # default 0x1e # GPP_A6_IRQ
I've double-checked the schematics and found that the interrupt is SERIRQ, so I'm removing this. […]
This is a consumer laptop. Perhaps I'm being overly critical, but I don't expect to see a model with a physical TPM anytime soon.
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 11: EB0A, 1, : , 2, : EB0R, 1, : EB0L, 1, : EB0F, 1, : EB0N, 1
That does seem correct. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 41: Offset (0xE0),
Right, I had noticed that the offsets were the same, but that full 'paging' wasn't implemented the w […]
The vendor firmware didn't need to implement paging, because they read from their block in memory. This explains why I get garbage for "vendor," "model," "serial" and "energy*" values in upower or "/sys/class/power_supply/BAT0/".
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08)
Well, endianness (byte order) only matters if there are multiple bytes. […]
Thanks for the explanation. Done.
(You were probably correct anyways. With regards to PCI configuration done in ACPI, I have seen that byte order was applied and relevant in the Intel datasheet. So, on the chip itself.)
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/13/src/mainboard/acer/aspire_... PS13, Line 150: # register "PcieRpEnable[6]" = "1"
Port 7 actually backs SATA. Port 8 is NGFF. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 53: 0
RP7/SATA0 is muxed with RP8/SATA1 to make an x2 port for mSATA. […]
Wired over both. Done.
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 232: [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Should CONSOLE_SERIAL be enabled? If it is an LPSS UART and in-memory, should the coreboot + payload […]
I don't know why I thought that LPSS was in-memory, but in any event, it is probably safer to leave CONSOLE_SERIAL disabled.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3"
The microphone is attached to the webcam and the schematics assert that the pins are "reserved for S […]
The driver would set the pin_cfg, but it isn't working yet anyway. Maybe I'll test with Windows.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#141).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.6.19) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,088 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/141
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 141: Code-Review+1
(2 comments)
Let’s get this into master.
https://review.coreboot.org/c/coreboot/+/35523/141//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/141//COMMIT_MSG@21 PS141, Line 21: falling back to PCIe virtual-wire interrupts." Nit: Could be indented too.
https://review.coreboot.org/c/coreboot/+/35523/141//COMMIT_MSG@35 PS141, Line 35: - Microphone The internal(?) microphone should be easy to test?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#142).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.6.19) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,088 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/142
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#143).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.6.19) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios - nvidia binary driver does not work - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,088 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/143
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#144).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G.
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.6.19) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with libgfxinit - dGPU - nouveau cannot find vbios and does not work - nvidia binary driver spews errors - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,088 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/144
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 144:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/141//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/141//COMMIT_MSG@21 PS141, Line 21: falling back to PCIe virtual-wire interrupts."
Nit: Could be indented too.
Done
https://review.coreboot.org/c/coreboot/+/35523/141//COMMIT_MSG@35 PS141, Line 35: - Microphone
The internal(?) microphone should be easy to test?
The internal microphone apparently uses Intel SST, which Linux may not support at the moment. I'll test with Windows when I get a chance, but for now I've put back the note that it isn't working for me even with the vendor firmware.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 144: Code-Review+1
(40 comments)
https://review.coreboot.org/c/coreboot/+/35523/144//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/144//COMMIT_MSG@9 PS144, Line 9: Add initial support for Acer Aspire VN7-572G. Could you please mention that it's Skylake-U? I always forget whether it's Skylake-U or Skylake-H...
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 5: select SYSTEM_TYPE_LAPTOP Sort these?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 7: EACS KACS in ec.asl
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08)
Thanks for the explanation. Done. […]
Isn't the 8051 a 8-bit microcontroller, though?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 4: /* EC Registers */ These could be moved to ec.asl
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 18: Maps Aliases?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 25: /* TODO: Implement paging? */ I'd suggest checking what vendor does in detail, especially if there's some writes to switch between pages.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 115: Local6 = (Local2 / 100) // Warning capacity Not sure if it matters, but I would divide after multiplying to avoid precision loss. Ofc, depends on the raw values.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 126: Divide Use ASL 2.0 operators?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 29: /* Reserved */ These `Reserved` comments are redundant, if some bits don't have a name they can't be accessed.
IIRC, one can define multiple fields onto the same OperationRegion with different properties. In that case, having comments for bits that are defined in another Field can be helpful
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 33: Reserved ETEE in thermal.asl
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 177: SMI Does your smihandler handle those?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 182: Method (_Q40, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x81) // Information Change : } : : Method (_Q41, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x81) // Information Change : } : : Method (_Q48, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x80) // Status Change : } : : Method (_Q4C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : If (B0ST) : { : Notify (BAT0, 0x80) // Status Change : } : } Battery stuff, but what does it do? Feel free to add Debug prints to see.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 205: Method (_Q50, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (ADP1, 0x80) // Status Change : } : : Method (_Q51, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (ADP1, 0x80) // Status Change : } Charger plugged/unplugged events?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 215: Method (_Q52, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (LID0, 0x80) // Status Change : } : : Method (_Q53, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (LID0, 0x80) // Status Change : } Lid open/close events?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 9: ELID Defined as KLID in ec.asl
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 12: EIDW Not defined in ec.asl, but it could be moved there.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 27: If (CondRefOf (_SB.MPTS)) Not necessary.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 37: If (CondRefOf (_SB.MWAK)) Not necessary.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 8: Offset (0x90), : SCPM, 1, /* Set cooling policy */ : Offset (0x92), : ESSF, 1, : ECTT, 1, : EDTT, 1, : EOSD, 1, /* Trip */ : EVTP, 1, : ECP1, 1, : , 1, : ECP2, 1, : Offset (0xA8), : ES0T, 8, /* Temperature */ : ES1T, 8 /* Temperature */ This could be moved to ec.asl
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 24: Maps Aliases?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 33: Offset (0x01), : ETID, 8, : Offset (0xD0), : ESP0, 8, /* Passive temp */ : ESC0, 8, /* Critical temp */ : ESP1, 8, /* Passive temp */ : ESC1, 8 /* Critical temp */ This could be moved to ec.asl
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 7: #0 8 r 0 seconds I'd drop the commented-out definitions, if you don't use them.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 74: ChromeOS Are you going to use ChromeOS?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 78: SandyBridge Nope.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 84: amd_reserved Not an AMD board
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3"
The driver would set the pin_cfg, but it isn't working yet anyway. Maybe I'll test with Windows.
I'd recommend checking if the hardware works as intended. Given that most of my hardware isn't new, I can't assume that the hardware is good.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 12: register "gpu_pp_down_delay_ms" = "50" # T10 Please align these with tabs
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 19: register "deep_s3_enable_ac" = "0" You can drop all zero assignments as the chip struct defaults to zero already. Feel free to keep those assignments that make things clear for the reader
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 53: : register "dptf_enable" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 56: : register "ProbelessTrace" = "0" : register "EnableLan" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 65: register "SataPortsDevSlp[0]" = "0" : register "SataPortsDevSlp[1]" = "0" : register "SataPortsDevSlp[2]" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 71: register "IoBufferOwnership" = "0" : register "EnableTraceHub" = "0" : register "SsicPortEnable" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 75: register "Cio2Enable" = "0" : register "ScsEmmcEnabled" = "0" : register "ScsEmmcHs400Enabled" = "0" : register "ScsSdCardEnabled" = "0" : register "PttSwitch" = "0" : register "SkipExtGfxScan" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 82: register "Device4Enable" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 89: register "PmTimerDisabled" = "0" Can drop
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 3: #define BRIGHTNESS_UP _SB.PCI0.GFX0.INCB : #define BRIGHTNESS_DOWN _SB.PCI0.GFX0.DECB I'd replace and drop these definitions
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 32: // Mainboard specific I'd drop this comment
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 70: 0x80860101 Not sure if this is correct
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 8: static void mainboard_fill_dq_map_data(void *dq_map_ch0, void *dq_map_ch1) : { : /* DQ byte map */ : const u8 dq_map[2][12] = { : { 0x0F, 0xF0, 0x00, 0xF0, 0x0F, 0xF0, : 0x0F, 0x00, 0xFF, 0x00, 0xFF, 0x00 }, : { 0x33, 0xCC, 0x00, 0xCC, 0x33, 0xCC, : 0x33, 0x00, 0xFF, 0x00, 0xFF, 0x00 } }; : memcpy(dq_map_ch0, dq_map[0], sizeof(dq_map[0])); : memcpy(dq_map_ch1, dq_map[1], sizeof(dq_map[1])); : } : : static void mainboard_fill_dqs_map_data(void *dqs_map_ch0, void *dqs_map_ch1) : { : /* DQS CPU<>DRAM map */ : const u8 dqs_map[2][8] = { : { 0, 1, 3, 2, 4, 5, 6, 7 }, : { 1, 0, 4, 5, 2, 3, 6, 7 } }; : memcpy(dqs_map_ch0, dqs_map[0], sizeof(dqs_map[0])); : memcpy(dqs_map_ch1, dqs_map[1], sizeof(dqs_map[1])); : } This is most likely unnecessary for your board
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#145).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.7.11) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - dGPU - nouveau cannot find vbios and does not work - nvidia binary driver spews errors - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 1,995 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/145
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 145:
(38 comments)
https://review.coreboot.org/c/coreboot/+/35523/144//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/144//COMMIT_MSG@9 PS144, Line 9: Add initial support for Acer Aspire VN7-572G.
Could you please mention that it's Skylake-U? I always forget whether it's Skylake-U or Skylake-H...
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 5: select SYSTEM_TYPE_LAPTOP
Sort these?
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 7: EACS
KACS in ec. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 283: (Local1 & 0x08) Yes, which I thought made it little-endian. It's apparently more complicated, but it doesn't matter here anyways.
The Intel 8051, contrary to other Intel processors, expects 16-bit addresses for LJMP and LCALL in big-endian format; however, xCALL instructions store the return address onto the stack in little-endian format.
- https://en.wikipedia.org/wiki/Endianness#History
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 4: /* EC Registers */
These could be moved to ec. […]
I'm keeping the registers on offset 0xE0 here. They number several fields and I don't want to clutter ec.asl. In addition, the paging (or other technique) that they use is specific to battery.asl.
Otherwise, done.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 18: Maps
Aliases?
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 126: Divide
Use ASL 2. […]
This legacy operator touches Local5, which is needed below.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 29: /* Reserved */
These `Reserved` comments are redundant, if some bits don't have a name they can't be accessed. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 33: Reserved
ETEE in thermal. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 182: Method (_Q40, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x81) // Information Change : } : : Method (_Q41, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x81) // Information Change : } : : Method (_Q48, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x80) // Status Change : } : : Method (_Q4C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : If (B0ST) : { : Notify (BAT0, 0x80) // Status Change : } : }
Battery stuff, but what does it do? Feel free to add Debug prints to see.
0x40 and 0x41 are probably battery removed/replaced. I probably cannot test that. 0x4C is most probably a battery low warning, but I haven't seen it yet.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 205: Method (_Q50, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (ADP1, 0x80) // Status Change : } : : Method (_Q51, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (ADP1, 0x80) // Status Change : }
Charger plugged/unplugged events?
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 215: Method (_Q52, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (LID0, 0x80) // Status Change : } : : Method (_Q53, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (LID0, 0x80) // Status Change : }
Lid open/close events?
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 9: ELID
Defined as KLID in ec. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 12: EIDW
Not defined in ec.asl, but it could be moved there.
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 27: If (CondRefOf (_SB.MPTS))
Not necessary.
It is necessary in the common code, however. I've copied CB:38318 here, I'll remove this file once that is merged.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 37: If (CondRefOf (_SB.MWAK))
Not necessary.
As above.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 8: Offset (0x90), : SCPM, 1, /* Set cooling policy */ : Offset (0x92), : ESSF, 1, : ECTT, 1, : EDTT, 1, : EOSD, 1, /* Trip */ : EVTP, 1, : ECP1, 1, : , 1, : ECP2, 1, : Offset (0xA8), : ES0T, 8, /* Temperature */ : ES1T, 8 /* Temperature */
This could be moved to ec. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 24: Maps
Aliases?
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 33: Offset (0x01), : ETID, 8, : Offset (0xD0), : ESP0, 8, /* Passive temp */ : ESC0, 8, /* Critical temp */ : ESP1, 8, /* Passive temp */ : ESC1, 8 /* Critical temp */
This could be moved to ec. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 7: #0 8 r 0 seconds
I'd drop the commented-out definitions, if you don't use them.
Done. It seems as though some other boards have seen fit to copy the datasheet here, but it doesn't matter.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 74: ChromeOS
Are you going to use ChromeOS?
Not likely, but perhaps vboot.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 78: SandyBridge
Nope.
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 84: amd_reserved
Not an AMD board
True, but the bits exist. I've also seen mention of an upper bank of memory (FSP help text for PchLockDownRtcLock UPD), are they relevant?
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/62/src/mainboard/acer/aspire_... PS62, Line 232: [PchSerialIoIndexUart2] = PchSerialIoDisabled,
I don't know why I thought that LPSS was in-memory, but in any event, it is probably safer to leave […]
INTEL_LPSS_UART_FOR_CONSOLE does select DRIVERS_UART_8250MEM_32. I'll try to test this some time.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3"
I'd recommend checking if the hardware works as intended. […]
Fair point, but I can't test hardware without software.
In any event, microphones using SST come under the NHLT specification, so I'm having it write an NHLT table (DSP blob extracted from vendor's table, between two offsets).
However, it still isn't working. On kernel 5.8.0-rc7, sound doesn't work at all, exactly the same as with the vendor firmware (kernel needed to be patched to allow vendor's violation of the spec - ArrayType=0x1, should be 0xf (vendor defined)). I'll try the kernel Bugzilla.
(Also, for clarity, the microphone is attached to the webcam but wired to the PCH.)
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 12: register "gpu_pp_down_delay_ms" = "50" # T10
Please align these with tabs
Strange, this was aligned in my editor. Done.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 19: register "deep_s3_enable_ac" = "0"
You can drop all zero assignments as the chip struct defaults to zero already. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 53: : register "dptf_enable" = "0"
Can drop
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 56: : register "ProbelessTrace" = "0" : register "EnableLan" = "0"
Can drop
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 65: register "SataPortsDevSlp[0]" = "0" : register "SataPortsDevSlp[1]" = "0" : register "SataPortsDevSlp[2]" = "0"
Can drop
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 71: register "IoBufferOwnership" = "0" : register "EnableTraceHub" = "0" : register "SsicPortEnable" = "0"
Can drop
IoBufferOwnership=0 is a valid setting that indicates that there is no I2S. Otherwise, done.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 75: register "Cio2Enable" = "0" : register "ScsEmmcEnabled" = "0" : register "ScsEmmcHs400Enabled" = "0" : register "ScsSdCardEnabled" = "0" : register "PttSwitch" = "0" : register "SkipExtGfxScan" = "0"
Can drop
PttSwitch=0 is a PTT mode and SkipExtGfxScan=0 is set with PrimaryDisplay. Otherwise, done.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 82: register "Device4Enable" = "0"
Can drop
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 89: register "PmTimerDisabled" = "0"
Can drop
I think this is a genuine setting?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 3: #define BRIGHTNESS_UP _SB.PCI0.GFX0.INCB : #define BRIGHTNESS_DOWN _SB.PCI0.GFX0.DECB
I'd replace and drop these definitions
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 32: // Mainboard specific
I'd drop this comment
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 70: 0x80860101
Not sure if this is correct
Why not? I copied it from /proc/asound/card0/codec#2.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 8: static void mainboard_fill_dq_map_data(void *dq_map_ch0, void *dq_map_ch1) : { : /* DQ byte map */ : const u8 dq_map[2][12] = { : { 0x0F, 0xF0, 0x00, 0xF0, 0x0F, 0xF0, : 0x0F, 0x00, 0xFF, 0x00, 0xFF, 0x00 }, : { 0x33, 0xCC, 0x00, 0xCC, 0x33, 0xCC, : 0x33, 0x00, 0xFF, 0x00, 0xFF, 0x00 } }; : memcpy(dq_map_ch0, dq_map[0], sizeof(dq_map[0])); : memcpy(dq_map_ch1, dq_map[1], sizeof(dq_map[1])); : } : : static void mainboard_fill_dqs_map_data(void *dqs_map_ch0, void *dqs_map_ch1) : { : /* DQS CPU<>DRAM map */ : const u8 dqs_map[2][8] = { : { 0, 1, 3, 2, 4, 5, 6, 7 }, : { 1, 0, 4, 5, 2, 3, 6, 7 } }; : memcpy(dqs_map_ch0, dqs_map[0], sizeof(dqs_map[0])); : memcpy(dqs_map_ch1, dqs_map[1], sizeof(dqs_map[1])); : }
This is most likely unnecessary for your board
Right, it's for soldered memory. I can see mapping of the pins in the schematics; do you know if it's handled automatically by the hardware or FSP?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 145:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 259: PAD_CFG_GPIO_BIDIRECT(GPP_E22, 0, NONE, DEEP, LEVEL, ACPI), Any news on CB:42914?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 145: Code-Review+1
(20 comments)
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 4: /* EC Registers */
I'm keeping the registers on offset 0xE0 here. […]
Sounds good
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 126: Divide
This legacy operator touches Local5, which is needed below.
Ack. That's the remainder, I think?
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 135: Arg1 any idea of what each bit means?
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 261: Local0 = EB0A This was using EB0S before, was it wrong?
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 182: Method (_Q40, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x81) // Information Change : } : : Method (_Q41, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x81) // Information Change : } : : Method (_Q48, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : Notify (BAT0, 0x80) // Status Change : } : : Method (_Q4C, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF : { : If (B0ST) : { : Notify (BAT0, 0x80) // Status Change : } : }
0x40 and 0x41 are probably battery removed/replaced. I probably cannot test that. […]
Ack
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 251: // _Qxx: EC Query, xx=0x00-0xFF I'd drop these comments for known (or just all) queries
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 27: If (CondRefOf (_SB.MPTS))
It is necessary in the common code, however. […]
Ah, then I'd rebase CB:38318 so that it can be applied directly on master
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 7: #0 8 r 0 seconds
Done. […]
I'm used to seeing lots of copypasta in coreboot, so I often poke people about it
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 74: ChromeOS
Not likely, but perhaps vboot.
Ack
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 84: amd_reserved
True, but the bits exist. […]
I'd just drop it.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 7: #0 112 r 0 lower_reserved This one wasn't commented out:
0 120 r 0 reserved_memory
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 8: #112 264 r 0 unused These `unused` commented-out entries are just extra maintenance burden
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 36: #1024 1024 r 0 upper_reserved I don't think it's reserved. IIRC, handling of the upper half of CMOS in coreboot isn't working very well, but I never tried it myself.
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3"
Fair point, but I can't test hardware without software. […]
Ack. Is it possible to change that ArrayType value?
Or, you might need to have some quirk handling implemented in the kernel. coreboot will have to behave the same as vendor in order for the quirk to be triggered.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 12: register "gpu_pp_down_delay_ms" = "50" # T10
Strange, this was aligned in my editor. Done.
Tabs are 8 spaces wide in coreboot. If we want to allow using them for other alignment purposes, we should align everything with spaces instead (which is annoying)
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 89: register "PmTimerDisabled" = "0"
I think this is a genuine setting?
It defaults to zero already
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 259: PAD_CFG_GPIO_BIDIRECT(GPP_E22, 0, NONE, DEEP, LEVEL, ACPI), Nico commented on it:
What is this useful for? All the mentioned boards have probably copy-pasta entries that nobody reasoned about. Adding a macro might make it look like the entries are intentional and yet something more to mantain... I don't think we should add any entry that doesn't make sense in the context of the coreboot ports.
If there's a legitimate use-case for this macro, I'd explain why it is needed in that change.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 70: 0x80860101
Why not? I copied it from /proc/asound/card0/codec#2.
Acer uses a different subsystem ID. Not a big deal though
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 8: static void mainboard_fill_dq_map_data(void *dq_map_ch0, void *dq_map_ch1) : { : /* DQ byte map */ : const u8 dq_map[2][12] = { : { 0x0F, 0xF0, 0x00, 0xF0, 0x0F, 0xF0, : 0x0F, 0x00, 0xFF, 0x00, 0xFF, 0x00 }, : { 0x33, 0xCC, 0x00, 0xCC, 0x33, 0xCC, : 0x33, 0x00, 0xFF, 0x00, 0xFF, 0x00 } }; : memcpy(dq_map_ch0, dq_map[0], sizeof(dq_map[0])); : memcpy(dq_map_ch1, dq_map[1], sizeof(dq_map[1])); : } : : static void mainboard_fill_dqs_map_data(void *dqs_map_ch0, void *dqs_map_ch1) : { : /* DQS CPU<>DRAM map */ : const u8 dqs_map[2][8] = { : { 0, 1, 3, 2, 4, 5, 6, 7 }, : { 1, 0, 4, 5, 2, 3, 6, 7 } }; : memcpy(dqs_map_ch0, dqs_map[0], sizeof(dqs_map[0])); : memcpy(dqs_map_ch1, dqs_map[1], sizeof(dqs_map[1])); : }
Right, it's for soldered memory. […]
I think it's only used for LPDDR. For regular DDR, the only routing-related setting is DqPinsInterleaved
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 34: TRUE true (in lowercase)
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#146).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.7.11) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - dGPU - nouveau cannot find vbios and does not work - nvidia binary driver spews errors - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/Kconfig A src/mainboard/acer/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 1,993 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/146
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 146:
(10 comments)
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 126: Divide
Ack. […]
It would make sense, but I haven't seen remainders mentioned very much.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 135: Arg1
any idea of what each bit means?
`EB0S`? Only by context, if possible at all.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 261: Local0 = EB0A
This was using EB0S before, was it wrong?
No, but I was reducing use of `EB0S` (EB0S & 1 = EB0A). Then I changed `Local1` throughout the function to `Local0`.
What I don't understand is "EB0A & 0x40" on the next line, but it doesn't seem to have caused any problems.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 251: // _Qxx: EC Query, xx=0x00-0xFF
I'd drop these comments for known (or just all) queries
Done
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 7: #0 112 r 0 lower_reserved
This one wasn't commented out: […]
So, this is something that I don't understand. Must cmos_layout be defined at each offset, or only the bits used? On the flipside, is there a concern that if reserved bits are defined, coreboot or the user may attempt to write to them?
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 8: #112 264 r 0 unused
These `unused` commented-out entries are just extra maintenance burden
As above.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 89: register "PmTimerDisabled" = "0"
It defaults to zero already
Done
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 259: PAD_CFG_GPIO_BIDIRECT(GPP_E22, 0, NONE, DEEP, LEVEL, ACPI),
Nico commented on it: […]
The vendor firmware has a configuration option called "bidirectional PROCHOT#," which defaults to enabled. However, according to the schematics, GPP_E22 is not connected and no GPP is connected to PROCHOT#.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 70: 0x80860101
Acer uses a different subsystem ID. […]
Apparently not for HDMI audio, which might make sense if they didn't make any modifications.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 34: TRUE
true (in lowercase)
Very well. Done.
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 146:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/119/src/mainboard/acer/aspire... PS119, Line 68: # TODO: register "DspEndpointDmic" = "3"
Ack. Is it possible to change that ArrayType value?
In coreboot, it's rather straightforward. See CB:43072. With the vendor firmware, it was easier to patch the kernel.
Based on https://bugzilla.kernel.org/show_bug.cgi?id=201251, I've made some progress. A Kconfig symbol had to be enabled in the kernel and an ALSA topology file has to be added. Unfortunately, I cannot use the default, likely because "minimum channels"="2"
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#147).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.7.11) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - dGPU - nouveau cannot find vbios and does not work - nvidia binary driver spews errors - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,976 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/147
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 148: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 41: Offset (0xE0),
The vendor firmware didn't need to implement paging, because they read from their block in memory. […]
I'd suggest trying to implement paging
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 148:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 115: Local6 = (Local2 / 100) // Warning capacity
Not sure if it matters, but I would divide after multiplying to avoid precision loss. […]
Does not matter
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 126: Divide
It would make sense, but I haven't seen remainders mentioned very much.
Wait... This thing is literally converting digits to characters
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#149).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.7.11) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - dGPU - nouveau cannot find vbios and does not work - nvidia binary driver spews errors - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 22 files changed, 1,935 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/149
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 149:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 41: Offset (0xE0),
I'd suggest trying to implement paging
It's trapping to SMM in various places and I couldn't get DCI working (Skylake-U might not support it over USB3-DbC). An SMI handler probably writes to a register or issues a "vendor command," but reverse engineering the right UEFI module could take time.
I may have found it, I'll see how it goes. At some point, maybe it should be done in a follow-up patch.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 126: Divide
Wait... […]
Right... The "48" below is probably more useful as "0x30," which is a "0" in ASCII.
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 149:
(5 comments)
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 119: Divide old syntax
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 141: If ((Arg1 & 0x02)) If (Arg1 & 0x02)
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 119: If (((Arg0 == 0x03) && (Arg1 == 1))) If ((Arg0 == 0x03) && (Arg1 == 1))
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 14: If (((Arg0 == 0x03) || (Arg0 == 0x04))) If ((Arg0 == 0x03) || (Arg0 == 0x04))
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 68: If (((Local0 >= 128) || (Local0 < 30))) If ((Local0 >= 128) || (Local0 < 30))
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#150).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Booting Fedora 32 (since kernel 5.5, presently with 5.7.11) using TianoCore (CorebootPayload or UefiPayload) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - dGPU - nouveau cannot find vbios and does not work - nvidia binary driver spews errors - "NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts." - Power consumption is expected to increase - Does not properly wake from S3 - Presumably all resolved by implementing Optimus - Keyboard and touchpad - Touchpad cannot wake device from S3 - USB ports (unable to test type-C) - SATA and PCIe - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,954 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/150
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 150:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/150/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/150/src/mainboard/acer/aspire... PS150, Line 21: trailing whitespace
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#151).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Keyboard and touchpad - PCIe and SATA - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported - Windows: - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,954 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/151
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#152).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Keyboard and touchpad - PCIe and SATA - USB ports (unable to test type-C) - HDMI display and audio - Internal audio and headphone jack - EC ACPI functionality - TPM
Untested: - CMOS settings
Unknown: - Internal microphone does not work, even with vendor firmware
Bugs: - Battery information is incorrectly reported - Windows: - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,954 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/152
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 152:
(5 comments)
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 119: Divide
old syntax
The remainder is used below to create the serial number characters. See Angel's comment.
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 141: If ((Arg1 & 0x02))
If (Arg1 & 0x02)
Done
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 119: If (((Arg0 == 0x03) && (Arg1 == 1)))
If ((Arg0 == 0x03) && (Arg1 == 1))
Done
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 14: If (((Arg0 == 0x03) || (Arg0 == 0x04)))
If ((Arg0 == 0x03) || (Arg0 == 0x04))
Done
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl:
https://review.coreboot.org/c/coreboot/+/35523/149/src/mainboard/acer/aspire... PS149, Line 68: If (((Local0 >= 128) || (Local0 < 30)))
If ((Local0 >= 128) || (Local0 < 30))
Done
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#153).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C) - TPM - Keyboard and touchpad - EC ACPI functionality
Untested: - CMOS settings
Bugs: - Battery information is incorrectly reported - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,939 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/153
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 154:
(5 comments)
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 25: /* TODO: Implement paging? */
I'd suggest checking what vendor does in detail, especially if there's some writes to switch between […]
Ack, paging is being discussed in a different comment. Marking as done.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/platform.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 27: If (CondRefOf (_SB.MPTS))
Ah, then I'd rebase CB:38318 so that it can be applied directly on master
Done
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 7: #0 112 r 0 lower_reserved
So, this is something that I don't understand. […]
Done, following CB:46311.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 8: #112 264 r 0 unused
As above.
Done
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 36: #1024 1024 r 0 upper_reserved
I don't think it's reserved. […]
Should I drop it?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#156).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C) - TPM - Keyboard and touchpad - EC ACPI functionality
Untested: - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 24 files changed, 2,059 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/156
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 156:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/156/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
https://review.coreboot.org/c/coreboot/+/35523/156/src/mainboard/acer/aspire... PS156, Line 249: PAD_CFG_GPI_SMI(GPP_E15, NONE, PLTRST, LEVEL, INVERT), // TODO: Vendor was PAD_CFG_TERM_GPO(GPP_E15, 1, DN_20K, DEEP), line over 96 characters
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 156:
(3 comments)
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/122/src/mainboard/acer/aspire... PS122, Line 41: Offset (0xE0),
It's trapping to SMM in various places and I couldn't get DCI working (Skylake-U might not support i […]
I've found the following in the vendor firmware: "KbcPeim" registers 4 PPIs which don't seem to ever be used. 2 relate to EC's legacy IO (0x6C), the other are commands 0x90 and 0x91. If they aren't used, I can't get the arguments for the last two, but it wouldn't matter either.
"PeiOemModule" registers a function in what seems to be a proprietary table (tagged "$FNC"). I haven't looked through all of it, but one `outb` is issued and then further functions seem to be called if the system is on S3 resume. See `bootblock.c`.
"..Oem..SioInit.." (I forgot the name) issues `inb` against one of the COM ports, the conditionally executes a sequence of `outb`. There's a corresponding "..SioInit.." but it's probably generic code.
All the above aside, the paging ID is "EBID." I found it by looping "ectool" writes over portions of the memory space and checking this offset. Battery information is reported correctly now.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 261: Local0 = EB0A
No, but I was reducing use of `EB0S` (EB0S & 1 = EB0A). […]
All functionality here appears to be working correctly. Marking as done.
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 177: SMI
Does your smihandler handle those?
I suspect that some use of SMM here could be DTS ("digital thermal sensor?"). It's an alternative to EC ACPI for thermals. But not necessarily these traps.
Speaking of, am I out of luck regarding SMM debug as coreboot's SMM doesn't log to CBMEM?
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#157).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C) - TPM - Keyboard and touchpad - EC ACPI functionality
Untested: - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 25 files changed, 2,078 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/157
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 157:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/cmos.layout:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 36: #1024 1024 r 0 upper_reserved
Should I drop it?
Dropped.
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 259: PAD_CFG_GPIO_BIDIRECT(GPP_E22, 0, NONE, DEEP, LEVEL, ACPI),
The vendor firmware has a configuration option called "bidirectional PROCHOT#," which defaults to en […]
I moved the macro into gpio.h so that it will build and to preserve the old behaviour, but I'll look into why an apparently disconnected GPIO is being programmed as bidirectional.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 158:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 259: PAD_CFG_GPIO_BIDIRECT(GPP_E22, 0, NONE, DEEP, LEVEL, ACPI),
I moved the macro into gpio. […]
AFAICT, enabling both tx and rx buffers does _not_ make a pad bidirectional. Bidirectional is the sense of PROCHOT# means that all outputs connected to the signal are hi-z by default and only when one of them wants to assert the signal it pulls it (down likely). That would be the equivalent of enabling a pad's tx buffer dynamically during runtime.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#159).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,021 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/159
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#160).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,021 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/160
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 160:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl:
https://review.coreboot.org/c/coreboot/+/35523/145/src/mainboard/acer/aspire... PS145, Line 135: Arg1
`EB0S`? Only by context, if possible at all.
Done
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl:
https://review.coreboot.org/c/coreboot/+/35523/144/src/mainboard/acer/aspire... PS144, Line 177: SMI
I suspect that some use of SMM here could be DTS ("digital thermal sensor?"). […]
I've marked this as "not implemented" in the commit message. It does not seem strictly necessary.
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#161).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/ramstage.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 24 files changed, 2,023 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/161
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#162).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 2,022 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/162
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#163).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 2,014 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/163
Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#165).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,999 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/165
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 165: Code-Review+1
(13 comments)
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 1: /* SPDX-License-Identifier: GPL-2.0-or-later */ Why are some GPL-2.0-or-later and others GPL-2.0-only?
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 5: # Set backlight PWM value for eDP : register "gpu_pch_backlight_pwm_hz" = "1000" # PWM frequency : : # Enable Panel as eDP and configure power delays : register "gpu_pp_up_delay_ms" = "150" # T3 : register "gpu_pp_backlight_on_delay_ms" = "1" # T7 : register "gpu_pp_backlight_off_delay_ms" = "200" # T9 : register "gpu_pp_down_delay_ms" = "50" # T10 : register "gpu_pp_cycle_delay_ms" = "500" # T12 : : # IGD Displays : register "gfx" = "GMA_STATIC_DISPLAYS(1)" Move down to IGD device in devicetree
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 35: # LPC configuration from lspci -s 1f.0 -xxx : register "lpc_iod" = "0x0010" # 80h-81h; ComB: 2F8h-2FFh (COM 2) : register "lpc_ioe" = "LPC_IOE_COMA_EN | LPC_IOE_COMB_EN | LPC_IOE_LGE_200 \ : | LPC_IOE_HGE_208 | LPC_IOE_KBC_60_64 | LPC_IOE_EC_62_66 \ : | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h : register "gen1_dec" = "0x000c0081" # 84h-87h; Debug: Port 80h : register "gen3_dec" = "0x00040069" # 8Ch-8Fh; Legacy: Port 68h/6Ch : register "gen4_dec" = "0x000c1201" # 90h-93h; Index: Port 1200h Move into LPC device
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 48: register "SataSalpSupport" = "1" : register "SataPortsEnable[1]" = "1" # HDD; BIT1 in SATA 92h-93h : register "SataPortsEnable[2]" = "1" # ODD; BIT2 in SATA 92h-93h Move into SATA device
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 52: register "PrimaryDisplay" = "Display_Switchable" Move into IGD device
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 59: # EC/KBC requires continuous mode : register "serirq_mode" = "SERIRQ_CONTINUOUS" Move into LPC into
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 62: # VR Slew rate setting for improving audible noise : register "AcousticNoiseMitigation" = "1" : register "SlowSlewRateForIa" = "3" # Fast/16 : register "SlowSlewRateForGt" = "3" # Fast/16 : register "SlowSlewRateForSa" = "0" # Fast/2 : register "FastPkgCRampDisableIa" = "0" : register "FastPkgCRampDisableGt" = "0" : register "FastPkgCRampDisableSa" = "0" : : # Enable Root Port 1 (x4) for dGPU : register "PcieRpEnable[0]" = "1" : register "PcieRpAdvancedErrorReporting[0]" = "1" : register "PcieRpLtrEnable[0]" = "1" : register "PcieRpClkReqSupport[0]" = "1" : register "PcieRpClkReqNumber[0]" = "0" : register "PcieRpMaxPayload[0]" = "RpMaxPayload_256" : : # Enable Root Port 7 (x2) for NGFF : register "PcieRpEnable[6]" = "1" : register "PcieRpAdvancedErrorReporting[6]" = "1" : register "PcieRpLtrEnable[6]" = "1" : register "PcieRpClkReqSupport[6]" = "1" : register "PcieRpClkReqNumber[6]" = "3" : : # Enable Root Port 9 for LAN : register "PcieRpEnable[8]" = "1" : register "PcieRpAdvancedErrorReporting[8]" = "1" : register "PcieRpLtrEnable[8]" = "1" : register "PcieRpClkReqSupport[8]" = "1" : register "PcieRpClkReqNumber[8]" = "1" : : # Enable Root Port 10 for WLAN : register "PcieRpEnable[9]" = "1" : register "PcieRpAdvancedErrorReporting[9]" = "1" : register "PcieRpLtrEnable[9]" = "1" : register "PcieRpClkReqSupport[9]" = "1" : register "PcieRpClkReqNumber[9]" = "2" : register "PcieRpMaxPayload[9]" = "RpMaxPayload_256" : register "pcie_rp_aspm[9]" = "AspmL1" : register "pcie_rp_l1substates[9]" = "L1SS_Disabled" Move these into their RP
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 103: register "usb2_ports[0]" = "{ : .enable = 1, : .ocpin = OC_SKIP, : .tx_bias = USB2_BIAS_17MV, : .tx_emp_enable = USB2_DE_EMP_ON, : .pre_emp_bias = USB2_BIAS_28MV, : .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, : }" # Type-A Port (right) : register "usb2_ports[1]" = "{ : .enable = 1, : .ocpin = OC_SKIP, : .tx_bias = USB2_BIAS_17MV, : .tx_emp_enable = USB2_DE_EMP_ON, : .pre_emp_bias = USB2_BIAS_28MV, : .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, : }" # Type-A Port (right) : register "usb2_ports[2]" = "{ : .enable = 1, : .ocpin = OC_SKIP, : .tx_bias = USB2_BIAS_17MV, : .tx_emp_enable = USB2_DE_EMP_ON, : .pre_emp_bias = USB2_BIAS_28MV, : .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, : }" # Type-C Port : register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Type-A Port (left) : register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth : register "usb2_ports[5]" = "USB2_PORT_FLEX(OC_SKIP)" # Touchscreen : register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Webcam : register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD : register "usb2_ports[8]" = "USB2_PORT_FLEX(OC_SKIP)" # Finger-printer : : register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right); Capable of OTG : register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right) : register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port : register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port Move into USB device
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 185: device domain 0 on Maybe remove disabled devices?
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 17: Scope (_SB) : { : Device (PCI0) Simplify to Device (_SB.PCI0)
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165: Convert this to a C file (or split it up into gpio_early.c and gpio.c). See clevo/cml-u for example.
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 53: mainboard_enable Rename to enable_mainboard
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 54: mainboard_init Rename to init_mainboard and put it before .enable_dev
Hello Felix Singer, build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#166).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 (see below) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Bugs: - Windows (need to confirm): - Installation does not complete, "startup repair" fixes issue - Instantly shuts down if AC is removed
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,994 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/166
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 166:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/166/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/166/src/mainboard/acer/aspire... PS166, Line 39: /* TODO: Add GPIO configuration in bootblock_mainboard_early_init for UART2 after CB:48829 is merged */ line over 96 characters
Hello Felix Singer, build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#167).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 20H1 (bugs present - battery paging - perhaps fixed; abandoning testing) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA (unable to test NGFF) - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,994 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/167
Hello Felix Singer, build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#168).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Works: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 32 (since kernel 5.5, presently with 5.7.17) - Windows 10 20H1 (bugs present - battery paging - perhaps fixed; abandoning testing) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone (Windows only) - HDMI audio - Devices - PCIe and SATA (unable to test NGFF) - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI - EC SMM functionality
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.h A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c 23 files changed, 1,994 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/168
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(13 comments)
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 1: /* SPDX-License-Identifier: GPL-2.0-or-later */
Why are some GPL-2.0-or-later and others GPL-2. […]
Those I copied and adapted were preserved as GPL-2.0-only. Those I wrote were licensed permissively (or restrictively, I only know the restrictions of GPLv3 in the context of UEFI secure boot) as GPL-2.0-or-later. Regardless, I'll follow the tree in this regard.
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 5: # Set backlight PWM value for eDP : register "gpu_pch_backlight_pwm_hz" = "1000" # PWM frequency : : # Enable Panel as eDP and configure power delays : register "gpu_pp_up_delay_ms" = "150" # T3 : register "gpu_pp_backlight_on_delay_ms" = "1" # T7 : register "gpu_pp_backlight_off_delay_ms" = "200" # T9 : register "gpu_pp_down_delay_ms" = "50" # T10 : register "gpu_pp_cycle_delay_ms" = "500" # T12 : : # IGD Displays : register "gfx" = "GMA_STATIC_DISPLAYS(1)"
Move down to IGD device in devicetree
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 35: # LPC configuration from lspci -s 1f.0 -xxx : register "lpc_iod" = "0x0010" # 80h-81h; ComB: 2F8h-2FFh (COM 2) : register "lpc_ioe" = "LPC_IOE_COMA_EN | LPC_IOE_COMB_EN | LPC_IOE_LGE_200 \ : | LPC_IOE_HGE_208 | LPC_IOE_KBC_60_64 | LPC_IOE_EC_62_66 \ : | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h : register "gen1_dec" = "0x000c0081" # 84h-87h; Debug: Port 80h : register "gen3_dec" = "0x00040069" # 8Ch-8Fh; Legacy: Port 68h/6Ch : register "gen4_dec" = "0x000c1201" # 90h-93h; Index: Port 1200h
Move into LPC device
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 48: register "SataSalpSupport" = "1" : register "SataPortsEnable[1]" = "1" # HDD; BIT1 in SATA 92h-93h : register "SataPortsEnable[2]" = "1" # ODD; BIT2 in SATA 92h-93h
Move into SATA device
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 52: register "PrimaryDisplay" = "Display_Switchable"
Move into IGD device
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 59: # EC/KBC requires continuous mode : register "serirq_mode" = "SERIRQ_CONTINUOUS"
Move into LPC into
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 62: # VR Slew rate setting for improving audible noise : register "AcousticNoiseMitigation" = "1" : register "SlowSlewRateForIa" = "3" # Fast/16 : register "SlowSlewRateForGt" = "3" # Fast/16 : register "SlowSlewRateForSa" = "0" # Fast/2 : register "FastPkgCRampDisableIa" = "0" : register "FastPkgCRampDisableGt" = "0" : register "FastPkgCRampDisableSa" = "0" : : # Enable Root Port 1 (x4) for dGPU : register "PcieRpEnable[0]" = "1" : register "PcieRpAdvancedErrorReporting[0]" = "1" : register "PcieRpLtrEnable[0]" = "1" : register "PcieRpClkReqSupport[0]" = "1" : register "PcieRpClkReqNumber[0]" = "0" : register "PcieRpMaxPayload[0]" = "RpMaxPayload_256" : : # Enable Root Port 7 (x2) for NGFF : register "PcieRpEnable[6]" = "1" : register "PcieRpAdvancedErrorReporting[6]" = "1" : register "PcieRpLtrEnable[6]" = "1" : register "PcieRpClkReqSupport[6]" = "1" : register "PcieRpClkReqNumber[6]" = "3" : : # Enable Root Port 9 for LAN : register "PcieRpEnable[8]" = "1" : register "PcieRpAdvancedErrorReporting[8]" = "1" : register "PcieRpLtrEnable[8]" = "1" : register "PcieRpClkReqSupport[8]" = "1" : register "PcieRpClkReqNumber[8]" = "1" : : # Enable Root Port 10 for WLAN : register "PcieRpEnable[9]" = "1" : register "PcieRpAdvancedErrorReporting[9]" = "1" : register "PcieRpLtrEnable[9]" = "1" : register "PcieRpClkReqSupport[9]" = "1" : register "PcieRpClkReqNumber[9]" = "2" : register "PcieRpMaxPayload[9]" = "RpMaxPayload_256" : register "pcie_rp_aspm[9]" = "AspmL1" : register "pcie_rp_l1substates[9]" = "L1SS_Disabled"
Move these into their RP
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 103: register "usb2_ports[0]" = "{ : .enable = 1, : .ocpin = OC_SKIP, : .tx_bias = USB2_BIAS_17MV, : .tx_emp_enable = USB2_DE_EMP_ON, : .pre_emp_bias = USB2_BIAS_28MV, : .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, : }" # Type-A Port (right) : register "usb2_ports[1]" = "{ : .enable = 1, : .ocpin = OC_SKIP, : .tx_bias = USB2_BIAS_17MV, : .tx_emp_enable = USB2_DE_EMP_ON, : .pre_emp_bias = USB2_BIAS_28MV, : .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, : }" # Type-A Port (right) : register "usb2_ports[2]" = "{ : .enable = 1, : .ocpin = OC_SKIP, : .tx_bias = USB2_BIAS_17MV, : .tx_emp_enable = USB2_DE_EMP_ON, : .pre_emp_bias = USB2_BIAS_28MV, : .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, : }" # Type-C Port : register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Type-A Port (left) : register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth : register "usb2_ports[5]" = "USB2_PORT_FLEX(OC_SKIP)" # Touchscreen : register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Webcam : register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD : register "usb2_ports[8]" = "USB2_PORT_FLEX(OC_SKIP)" # Finger-printer : : register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right); Capable of OTG : register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right) : register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port : register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
Move into USB device
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 185: device domain 0 on
Maybe remove disabled devices?
The original idea was to allow boards to remove some SoC devices from being exposed to user configuration through something along the lines of `dev && (dev->enabled || CONFIG(dev_ENABLE))`. The chipset devicetree makes this more difficult.
In any event, this was more about which devices were removed: 01.x: PEGx 05.0: SA IMGU 13.0: ISH Various SerialIO devices and PCIe ports 16.1-16.4: AMT MEI 1e.4-1e.6: SCS 1f.6: GbE, only for AMT?
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/dsdt.asl:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 17: Scope (_SB) : { : Device (PCI0)
Simplify to Device (_SB. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
Convert this to a C file (or split it up into gpio_early.c and gpio.c). See clevo/cml-u for example.
What's the objective?
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 53: mainboard_enable
Rename to enable_mainboard
As mentioned on CB:43852, I'll wait for a commit that adapts the rest of the tree, to keep consistency.
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... PS165, Line 54: mainboard_init
Rename to init_mainboard and put it before . […]
As above.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/165/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
What's the objective?
It is fundamentally wrong. If any of the definitions below is used in more than one compilation unit, there will be multiple copies of the same data in the final coreboot.rom. If each definition is used in exactly one compilation unit, the definitions can instead be placed directly into the corresponding compilation unit, and this header becomes unnecessary.
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/169/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/169/src/mainboard/acer/aspire... PS169, Line 36: /* Undocumented settings in vendor firmware */ curious, how did you end up dumping these?
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/169/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/169/src/mainboard/acer/aspire... PS169, Line 36: /* Undocumented settings in vendor firmware */
curious, how did you end up dumping these?
Mentioned it a while back, I think: There was a module called "InstallPchHdaVerbTablePei" in the vendor firmware. I found the verb tables as a blob of data at its tail. Expanding the init_pin_configs using the AZALIA_PIN_CFG macro gave the first entries in the table; the below are the rest.
If you're looking for similar settings yourself, I'd recommend using UEFITool to search for known entries - the reset verb, for example. Of course, I know that I was slightly lucky: both regarding the name of the module, as well as the fact that the table wasn't encoded in any way.
I will elaborate slightly on the comment (here and anywhere else). How about "Undocumented settings, see data blob in "InstallPchHdaVerbTablePei" of vendor firmware?"
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35523/169/src/mainboard/acer/aspire... File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/169/src/mainboard/acer/aspire... PS169, Line 36: /* Undocumented settings in vendor firmware */
Mentioned it a while back, I think: There was a module called "InstallPchHdaVerbTablePei" in the ven […]
Ack
Attention is currently required from: Felix Singer, Benjamin Doron. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/be498c34_cf617f29 PS165, Line 1: /* SPDX-License-Identifier: GPL-2.0-or-later */
Those I copied and adapted were preserved as GPL-2.0-only. […]
As long as it is you who authored it, you can license it as you wish. To be accepted upstream it just needs to be GPLv2 compatible (GPL-2.0-or-later is).
However, you won't get any anti tivoization with GPL-2.0-or-later, because you grant the rights of both (v2 and v3) licenses; and any later, who knows what they allow :)
Attention is currently required from: Nico Huber, Benjamin Doron. Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 169:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/855b7c9e_c2f6d48c PS165, Line 1: /* SPDX-License-Identifier: GPL-2.0-or-later */
As long as it is you who authored it, you can license it as you wish. To […]
Thanks for the explanation. Well, I don't mind. I just wondered why it is mixed.
Attention is currently required from: Nico Huber. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/0e99724d_4cae8a4f PS170, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(4 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/499c7f93_8b64cf0e PS165, Line 1: /* SPDX-License-Identifier: GPL-2.0-or-later */
Thanks for the explanation. Well, I don't mind. I just wondered why it is mixed.
I'm not a lawyer, but if coreboot and the Linux kernel use GPLv2, I'll stick to that for simplicity.
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/comment/697f673e_4b891994 PS165, Line 185: device domain 0 on
The original idea was to allow boards to remove some SoC devices from being exposed to user configur […]
Done
File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165: Is this, like CB:48823, intended to minimise the likelihood of mistaken usages? Otherwise, I can't see how the tables would be used multiple times.
If each definition is used in exactly one compilation unit, the definitions can instead be placed directly into the corresponding compilation unit
But this isn't to reduce the number of files, clearly.
Regardless, I have no strong opinions on this, so we'll do it for the sake of consistency.
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/aaa260f9_2bb365c5 PS165, Line 53: mainboard_enable
As mentioned on CB:43852, I'll wait for a commit that adapts the rest of the tree, to keep consisten […]
Done
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron. Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
Is this, like CB:48823, intended to minimise the likelihood of mistaken usages? Otherwise, I can't see how the tables would be used multiple times.
No, CB:34876 would be closer. On this patchset, two compilation units include this header, but each array is only used in one compilation unit, so the toolchain removes the unused definitions and the final coreboot image contains one copy of each array.
As an example, let's suppose you used `gpio_table` in `hda_verb.c` and `mainboard.c`. The object files for these compilation units would both contain the GPIO table, and the resulting coreboot image would thus have two copies of the GPIO table.
To solve the case above, one would need to drop the `static` qualifier, declare (not define) the arrays in a header, define the array in exactly one compilation unit, and include the header where said array is referenced.
If each definition is used in exactly one compilation unit, the definitions can instead be placed directly into the corresponding compilation unit
But this isn't to reduce the number of files, clearly.
Please do not quote me out of context, especially if then going to argue about something I did not say.
Attention is currently required from: Felix Singer, Nico Huber, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
If each definition is used in exactly one compilation unit, the definitions can instead be placed directly into the corresponding compilation unit
But this isn't to reduce the number of files, clearly.
Please do not quote me out of context, especially if then going to argue about something I did not say.
Sorry, arguing was not my intention and I will try to use "quote" properly in the future. I was responding to you to clarify the objective here, but I could certainly have worded myself better.
Is this, like CB:48823, intended to minimise the likelihood of mistaken usages? Otherwise, I can't see how the tables would be used multiple times.
No, CB:34876 would be closer. On this patchset, two compilation units include this header, but each array is only used in one compilation unit, so the toolchain removes the unused definitions and the final coreboot image contains one copy of each array.
That's what I expected. Then, what is the aim here? Is it perhaps consistency?
As an example, let's suppose you used `gpio_table` in `hda_verb.c` and `mainboard.c`. The object files for these compilation units would both contain the GPIO table, and the resulting coreboot image would thus have two copies of the GPIO table.
I admit that would be problematic, particularly because it could overwrite GPIO state.
To solve the case above, one would need to drop the `static` qualifier, declare (not define) the arrays in a header, define the array in exactly one compilation unit, and include the header where said array is referenced.
Attention is currently required from: Felix Singer, Nico Huber, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
If each definition is used in exactly one compilation unit, the definitions can instead be pla […]
*ping*
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron. Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
*ping*
*pong*
No, seriously. I don't know what else I should add at this point.
Attention is currently required from: Felix Singer, Nico Huber, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 170:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/gpio.h:
PS165:
*pong* […]
Okay. I'll assume this is more about convention/style than function.
On closer inspection, there are also more examples of "gpio.c" than "gpio.h" in mainboard directories.
Attention is currently required from: Felix Singer, Nico Huber, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 171:
(4 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/5b3e2ca7_5701b5dd PS171, Line 32: /* SIO init from PeiOemSioInit not necessary - only conditionally executed; not executed on system */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/a9b96c11_75cbcb1d PS171, Line 47: /* "MLID" in LGMR-based memory map is equivalent to "ELID" in EC-based memory map line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/ec.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/4f06b194_70fb6e36 PS171, Line 65: stopwatch_init_usecs_expire(&sw, 1000); // Vendor firmware gives 200 iterations of `Stall(5)` line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/a614b8a3_d7a374e7 PS171, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 172:
(4 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/c52ad251_7fbc5103 PS172, Line 32: /* SIO init from PeiOemSioInit not necessary - only conditionally executed; not executed on system */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/e9655621_f85c238f PS172, Line 47: /* "MLID" in LGMR-based memory map is equivalent to "ELID" in EC-based memory map line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/ec.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/6b7d083e_e738117d PS172, Line 65: stopwatch_init_usecs_expire(&sw, 1000); // Vendor firmware gives 200 iterations of `Stall(5)` line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/cb8e752e_72189ffb PS172, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Angel Pons. Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 172: Code-Review+1
(1 comment)
Patchset:
PS172: Very nice. It’d be great if you wrapped the comments as the linter scripts commented, but the rest looks nice.
Out of curiosity, how did you create the ASL files?
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Angel Pons. Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 172:
(1 comment)
Patchset:
PS172: Build failure for patch set 171:
src/mainboard/acer/aspire_vn7_572g/ec.c:46:6: error: no previous prototype for 'mainboard_ec_hook' [-Werror=missing-prototypes] void mainboard_ec_hook(void) ^~~~~~~~~~~~~~~~~
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 172:
(2 comments)
Patchset:
PS172:
Very nice. It’d be great if you wrapped the comments as the linter scripts commented, but the rest looks nice.
I will address this in the next patchset.
Out of curiosity, how did you create the ASL files?
I started with the tables decoded by iASL, then modified and improved them (in some instances) based on comments here. For instance, while the EC (ACPI; over I/O) memory map is being used, a certain register has to be written to obtain different pieces of information about the battery state. In an MMIO-based memory map (LPC device has a "generic memory register" - LGMR), the data does not overlap and this isn't needed.
PS172:
Build failure for patch set 171: […]
The vendor firmware used some I/O port writes to seemingly 'trigger' the EC to handle commands. However, a different firmware phase (DXE) uses `Stall(15)` equivalently - in coreboot, this would be `mdelay` - and reads from the port always return 0xFF.
Therefore, I will remove this.
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 172:
(1 comment)
Patchset:
PS172:
The vendor firmware used some I/O port writes to seemingly 'trigger' the EC to handle commands. However, a different firmware phase (DXE) uses `Stall(15)` equivalently - in coreboot, this would be `mdelay` - and reads from the port always return 0xFF.
My mistake, microseconds: `udelay`.
Therefore, I will remove this.
Essentially, it looks like an ugly way to pause execution. Perhaps the I/O serves some purpose, but if actual `Stall` is equivalent, I don't see it.
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 173:
(5 comments)
File src/mainboard/acer/aspire_vn7_572g/gpio.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/6359f49d_437d4c50 PS173, Line 68: PAD_CFG_GPI_IRQ_WAKE(GPP_B3, NONE, DEEP, LEVEL, NONE), // FIXME: Vendor configures as _GPI_APIC_HIGH. Why? line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/eb7fbd9e_7c987fdf PS173, Line 238: PAD_CFG_GPI_SMI(GPP_E15, NONE, DEEP, LEVEL, INVERT), // FIXME: Vendor configures as _TERM_GPO. Why? line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/d13f8455_27551dab PS173, Line 240: PAD_CFG_GPI_SCI(GPP_E16, NONE, DEEP, LEVEL, INVERT), // FIXME: Vendor configures to "PLTRST". Why? line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/0cf7e2b9_cdd91f07 PS173, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/a0d6a9d4_afd432d1 PS173, Line 83: void mainboard_smi_sleep(u8 slp_typ){} space required before the open brace '{'
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 174:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/d4cce308_e19cd180 PS174, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 174:
(1 comment)
Patchset:
PS174: What should be done before this change can be committed? I can write documentation if I have to.
Attention is currently required from: Felix Singer, Benjamin Doron, Paul Menzel, Angel Pons. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 174:
(1 comment)
Patchset:
PS174:
What should be done before this change can be committed? I can write documentation if I have to.
There are no formal requirements like presence of documentation. Generally, the less you put into one commit the easier it is to get somebody to ack (+2) it. So if you plan on writing documentation you should definitely put it into a separate commit. Review doesn't scale linearly.
This commit is already pretty big as is. And it's not 100% tidy. For instance, what I spotted skimming through random files: * The commit message says vboot is untested but there are a lot of vboot references in the code. If some advanced feature is untested, please (re)move it. * There's explicit dead code, e.g. `#if 0`. Anything like that is a burden for the reviewer and future maintenance, it's unlikely to be acked. * There are comments that disagree with the code. For instance in `gpio.c` a lot of `// NC` but the code configures a native function. The commit doesn't have to be perfect, but it needs to be consistent with itself. If you want you can keep unfinished things in separate commits on Gerrit for future reference.
I know you put a lot of work into this, and so did reviewers AFAICS. So we definitely want to get it in! I suggest to trim it down a little to make it easier to digest in one go. Anything that is untested/unfinished or otherwise smells funny should be left for a later review.
Attention is currently required from: Felix Singer, Benjamin Doron, Paul Menzel, Angel Pons. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 174:
(2 comments)
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/ade8ee44_3871795e PS174, Line 36: /* Undocumented settings, see data blob in Not easy to decode but this is usually documented in the codec's datasheet. Note, there are two types of verbs: 4 bit and 12 bit. The former are stored in bits 19..16 and 15..0 are used for data. The latter use 19..8 with only 8 bits of data.
For instance, the first `0x02050038` is * codec 0x0 * node 0x20 * verb 0x5 * data 0x0038
https://review.coreboot.org/c/coreboot/+/35523/comment/fe3440fd_3fb1d93d PS174, Line 90: 0 This should be `2`, shouldn't it? AFAIK, the code processing this table will take this literally and send it to codec #0.
Attention is currently required from: Felix Singer, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 175:
(3 comments)
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/7585c5bf_7f083fbd PS175, Line 71: 0x0143b000, /* Set amplifier gain on speaker: Set output, L+R amp; Unmuted; No gain */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/04e6e81f_ee6fc7be PS175, Line 73: 0x01470740, /* Set widget control on speaker: Out enabled; VrefEn: Hi-Z (disabled) */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/340dba9f_b3537030 PS175, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 175:
(3 comments)
Patchset:
PS174:
This commit is already pretty big as is. And it's not 100% tidy. For instance, what I spotted skimming through random files:
I can respond to these points, but I realise there would be more issues. In general, I've tried to document some issues/observations/etc. as comments in the code. Perhaps I forgot some.
Overall, moving EC stuff (particularly the smihandler) to a follow-up commit is probably a good idea.
- The commit message says vboot is untested but there are a lot of vboot references in the code. If some advanced feature is untested, please (re)move it.
I'll have to look at the vboot documentation for details on signing keys. Also, it appears SPI PRRs are configured separately in the security menu (i.e., "WP_RO" is only a recommendation), which is convenient.
However, while I've tried to hook up vboot correctly, I can't test it with the fallback mechanism. So, testing it is slightly riskier. If anything goes wrong, I'll have to flash externally.
- There's explicit dead code, e.g. `#if 0`. Anything like that is a burden for the reviewer and future maintenance, it's unlikely to be acked.
Yes, I left the EC's second memory map in the ACPI files. This can be used when LGMR is configured: I now understand that LGMR can be faster than issuing I/O (in hindsight, this seems obvious: MMIO was always meant to be faster than IO).
I also commented out functions in the smihandler as a reminder that I may need to implement these.
- There are comments that disagree with the code. For instance in `gpio.c` a lot of `// NC` but the code configures a native function. The commit doesn't have to be perfect, but it needs to be consistent with itself.
The comments are copied from the schematics, but the code is based on an inteltool dump. I've commented on the contradiction at the top of the file. I've also slowly been fixing the code.
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/ed7278ec_2cd85902 PS174, Line 36: /* Undocumented settings, see data blob in
Not easy to decode but this is usually documented in the codec's datasheet. Note, there are two types of verbs: 4 bit and 12 bit. The former are stored in bits 19..16 and 15..0 are used for data. The latter use 19..8 with only 8 bits of data.
I don't have a datasheet for ALC255, but these were actually standardised verbs. They're in the HDA spec, so I'm not concerned about using older Realtek datasheets (which were more helpful than I originally thought). I've now documented the verbs.
Most of it is coefficient programming, which is not very useful to know on its own. I still don't know why we're programming each coeff. with its specific value.
For instance, the first `0x02050038` is
- codec 0x0
- node 0x20
- verb 0x5
- data 0x0038
Right, Intel documents in the HDA spec that 0x7 and 0xF mark an extended verb (it would have been useful to read that part of the spec before looking at verb IDs in Realtek datasheets...)
https://review.coreboot.org/c/coreboot/+/35523/comment/08457cc5_6eb85c6d PS174, Line 90: 0
This should be `2`, shouldn't it? AFAIK, the code processing this table […]
I agree, this looks odd. While I copied these from a hexdump of a vendor UEFI module (InstallPchHdaVerbTablePei), it clearly modifies some of these before submitting it to the silicon init modules (in the data, the pin config NIDs also have codec address 0). I've corrected this now.
For what it's worth, the Kabylake RVP3 (the board I copied the comment from) programs both tables on codec 0.
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 176:
(3 comments)
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/432edb98_20f4b453 PS176, Line 71: 0x0143b000, /* Set amplifier gain on speaker: Set output, L+R amp; Unmuted; No gain */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/9b11e5e6_3ea496eb PS176, Line 73: 0x01470740, /* Set widget control on speaker: Out enabled; VrefEn: Hi-Z (disabled) */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/a35c75c6_df23ea3d PS176, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons. Hello Felix Singer, build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#177).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Working: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 34 (kernel 5.12.5) - Windows 10 20H1 (bugs present - battery paging - perhaps fixed; abandoning testing) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test NGFF) - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
Not working: - STM (breaks boot; by smihandler) - Requires hook to add resources
Untested: - vboot
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - EC SMM functionality - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/vboot-ro-rwa.fmd 29 files changed, 2,397 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/177
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 178:
(3 comments)
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/ee36d44e_ed8c01c2 PS178, Line 71: 0x0143b000, /* Set amplifier gain on speaker: Set output, L+R amp; Unmuted; No gain */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/1776d40d_75515a91 PS178, Line 73: 0x01470740, /* Set widget control on speaker: Out enabled; VrefEn: Hi-Z (disabled) */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/ed531f50_2eb9f237 PS178, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. Eugene Myers has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 178:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/7f23e618_714ce931 PS178, Line 37: If you can provide me with some information on what is happening here, I might be able to help.
Attention is currently required from: Felix Singer, Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 178:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/295afc46_b9414b61 PS178, Line 37:
If you can provide me with some information on what is happening here, I might be able to help.
I'm working on an SMI handler for this board that performs some EC operations (port I/O 0x60-0x6F range). There may also be some GPIO work to do (as I understand, these are memory-mapped in the P2SB range: 0xFD000000).
I thought that it would just require a hook from security/intel/stm to add these resources, but I stopped working on it after what we discussed on Github (that the STM wasn't being enabled by the OS, as I understood then).
I've since moved the SMI handler to a separate commit.
Attention is currently required from: Felix Singer, Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. Eugene Myers has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 178:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/ceaebf03_1e1e0320 PS178, Line 37:
I'm working on an SMI handler for this board that performs some EC operations (port I/O 0x60-0x6F ra […]
Thanks for the console log. Everything (from the STM setup viewpoint) seems to be properly setup and there were a couple of SMI's taken during the coreboot setup to setup the SMMSTORE, so SMI's seem to be working okay. The payload seemed hang once it was ready to start the O/S. I didn't dig into that code. Do you know if an SMI happened at this point.
You're correct, the STM is not active at this point and so it should not be an issue.
With reference to the SMI handler and resource access, those would need to be added to the BIOS resource list (probably need to create a config item.)
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 178:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/b1406314_d77ad008 PS178, Line 37:
Thanks for the console log. […]
Sure, thanks for taking a look. I believe that Linux (not GRUB) writes a "DUMMY" variable sometime around ExitBootServices(), which would call SMMSTORE. However, in this case I think that the ringbuffer is just wrapping around. I may have removed the wrapped-around logs, thinking that they were from before a reset. In any case, that boot was successful.
What's interesting to me is that the STM hasn't been activated but the system still fails to boot with the smihandler. But still, it should probably work if the STM is enabled properly and these resources were added to its lists, and I guess not doing so is misbehaviour.
I suppose a config item could also work, instead of hooks.
Sorry for taking so long to get back to you.
Attention is currently required from: Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. Eugene Myers has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 178:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/b9e28721_f1327aa3 PS178, Line 37:
Sure, thanks for taking a look. […]
The only thing that I can think of is ether something is not expecting the STM to be occupying the MSEG or there is a data structure conflict. What is the commit for the SMI handler, when I get a chance, I'll look at that.
Attention is currently required from: Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 179:
(21 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/6b154d13_33d41c3a PS179, Line 45: if (data_buffer <= (2017/ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/563271dd_37aafe01 PS179, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/ec.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/989250b7_60c0b3ad PS179, Line 27: #define EC_INDEX_IO_HIGH_ADDR_PORT EC_INDEX_IO_PORT+1 Macros with complex values should be enclosed in parentheses
https://review.coreboot.org/c/coreboot/+/35523/comment/826607f8_0c6d04e6 PS179, Line 28: #define EC_INDEX_IO_LOW_ADDR_PORT EC_INDEX_IO_PORT+2 Macros with complex values should be enclosed in parentheses
https://review.coreboot.org/c/coreboot/+/35523/comment/b884092e_fd0d815d PS179, Line 29: #define EC_INDEX_IO_DATA_PORT EC_INDEX_IO_PORT+3 Macros with complex values should be enclosed in parentheses
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/64291b8f_2c364160 PS179, Line 73: 0x0143b000, /* Set amplifier gain on speaker: Set output, L+R amp; Unmuted; No gain */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/a331d1b6_db15702f PS179, Line 75: 0x01470740, /* Set widget control on speaker: Out enabled; VrefEn: Hi-Z (disabled) */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/47835a2f_4fb010d8 PS179, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/d2328601_3f433015 PS179, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/67b8c371_6e02795e PS179, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/bcc425b7_ee97a2c1 PS179, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/05e8d33d_ff31c894 PS179, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/7f8d097e_9796125f PS179, Line 97: if (dat & 1) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/28f24573_a77a9edc PS179, Line 120: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/040b9dab_ec585d3e PS179, Line 130: /* Clear xHCI PM_CS[PME_Status] - RW/1C - and disable xHCI PM_CS[PME_En] */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/c021c993_706d97d0 PS179, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/f84df7ed_173b0ee4 PS179, Line 51: switch (gnvs->unused_was_osys) { switch and case should be at the same indent
https://review.coreboot.org/c/coreboot/+/35523/comment/2db73dac_80c762dc PS179, Line 85: switch (function_parameter_0) { switch and case should be at the same indent
https://review.coreboot.org/c/coreboot/+/35523/comment/db90992f_7aa44c18 PS179, Line 120: function_parameter_0 = smm_data_port &~ 0xF0; need consistent spacing around '&' (ctx:WxO)
https://review.coreboot.org/c/coreboot/+/35523/comment/9747c219_11e6173a PS179, Line 120: function_parameter_0 = smm_data_port &~ 0xF0; space prohibited after that '~' (ctx:OxW)
https://review.coreboot.org/c/coreboot/+/35523/comment/a6c694b6_fa0a2959 PS179, Line 123: printk(BIOS_DEBUG, "Function 0x%x(0x%x, 0x%x) called\n", smif, function_parameter_0, function_parameter_1); line over 96 characters
Attention is currently required from: Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 180:
(21 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/fe256738_a2fa03f2 PS180, Line 45: if (data_buffer <= (2017/ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/71817898_cc0ff251 PS180, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/ec.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/1c0c7086_cb5ad9eb PS180, Line 27: #define EC_INDEX_IO_HIGH_ADDR_PORT EC_INDEX_IO_PORT+1 Macros with complex values should be enclosed in parentheses
https://review.coreboot.org/c/coreboot/+/35523/comment/6df2906f_acfc63d8 PS180, Line 28: #define EC_INDEX_IO_LOW_ADDR_PORT EC_INDEX_IO_PORT+2 Macros with complex values should be enclosed in parentheses
https://review.coreboot.org/c/coreboot/+/35523/comment/034fe96a_d581fa78 PS180, Line 29: #define EC_INDEX_IO_DATA_PORT EC_INDEX_IO_PORT+3 Macros with complex values should be enclosed in parentheses
File src/mainboard/acer/aspire_vn7_572g/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/1d5c7aa6_1d0b3a47 PS180, Line 73: 0x0143b000, /* Set amplifier gain on speaker: Set output, L+R amp; Unmuted; No gain */ line over 96 characters
https://review.coreboot.org/c/coreboot/+/35523/comment/3f2e2444_96c72323 PS180, Line 75: 0x01470740, /* Set widget control on speaker: Out enabled; VrefEn: Hi-Z (disabled) */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/1a9f99a7_0d84a399 PS180, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/06c48ea1_87d7dbd6 PS180, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/ecc73236_063e9c49 PS180, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/5d9c2a45_d00f20fd PS180, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/5fdf993e_09fdb1ec PS180, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/c896c344_298d8aec PS180, Line 97: if (dat & 1) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/5f2a5a67_35c6d0fb PS180, Line 120: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/838bfbcb_c839d02f PS180, Line 130: /* Clear xHCI PM_CS[PME_Status] - RW/1C - and disable xHCI PM_CS[PME_En] */ line over 96 characters
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/c68e535c_17585dad PS180, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/bcc5ca98_8760e9e0 PS180, Line 51: switch (gnvs->unused_was_osys) { switch and case should be at the same indent
https://review.coreboot.org/c/coreboot/+/35523/comment/282a842d_3e9a0539 PS180, Line 85: switch (function_parameter_0) { switch and case should be at the same indent
https://review.coreboot.org/c/coreboot/+/35523/comment/15efeea4_21045589 PS180, Line 120: function_parameter_0 = smm_data_port &~ 0xF0; need consistent spacing around '&' (ctx:WxO)
https://review.coreboot.org/c/coreboot/+/35523/comment/81f7c3ce_30785058 PS180, Line 120: function_parameter_0 = smm_data_port &~ 0xF0; space prohibited after that '~' (ctx:OxW)
https://review.coreboot.org/c/coreboot/+/35523/comment/9f79e475_b9c6ba18 PS180, Line 123: printk(BIOS_DEBUG, "Function 0x%x(0x%x, 0x%x) called\n", smif, function_parameter_0, function_parameter_1); line over 96 characters
Attention is currently required from: Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#181).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Also note that there are two similar boards, Aspire VN7-792G and Aspire VN7-592G; both are Skylake-H. These are not supported (yet). Do not flash images intended for Aspire VN7-572G on those boards: the GPIOs and HSIO routing will be different and may risk damage to the hardware.
Working: - Payload - TianoCore (CorebootPayload or UefiPayload) - OS - Fedora 34 (kernel 5.12.5) - Windows 10 20H1 (bugs present - battery paging - perhaps fixed; abandoning testing) - Display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - HDMI display - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test NGFF) - USB ports (unable to test type-C, touchscreen and finger-printer) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
In progress: - EC SMM functionality
Not working: - STM (breaks boot; by smihandler) - Requires hook to add resources - vboot (breaks boot) - See follow-up
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - Optimus (see CB:28380, CB:40625 and CB:40628) - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board.fmd A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 30 files changed, 2,890 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/181
Attention is currently required from: Nico Huber, Benjamin Doron, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 182:
(10 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/40faa1bf_fe49ee8e PS182, Line 45: if (data_buffer <= (2017/ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/bdf1f741_7973cb18 PS182, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/e0712bd5_c7f1dc16 PS182, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/b3b40c07_0a2c9cdf PS182, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/f3348857_34f9b655 PS182, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/6e88338b_a1cfa219 PS182, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/1a5183e5_72b75d24 PS182, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/03c94dd3_5e2f8ef8 PS182, Line 97: if (dat & 1) { braces {} are not necessary for single statement blocks
https://review.coreboot.org/c/coreboot/+/35523/comment/fe87d1aa_f940cbdc PS182, Line 120: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/abf66fab_d7521a72 PS182, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 182:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/f109dcb7_f4e4f6a9 PS178, Line 37:
The only thing that I can think of is ether something is not expecting the STM to be occupying the M […]
The SMI handler is now in this commit, but I've modified it a lot since I tried using the STM. Also, I can't make any claim about STM breaking its accesses until I make the ACPI table actually start issuing the SMI.
Patchset:
PS174:
- The commit message says vboot is untested but there are a lot of vboot references in the code. If some advanced feature is untested, please (re)move it.
I'll have to look at the vboot documentation for details on signing keys. Also, it appears SPI PRRs are configured separately in the security menu (i.e., "WP_RO" is only a recommendation), which is convenient.
However, while I've tried to hook up vboot correctly, I can't test it with the fallback mechanism. So, testing it is slightly riskier. If anything goes wrong, I'll have to flash externally.
vboot is broken on this board at present. I suspect that PTT isn't available in verstage until FSP configures the UMA for the CSME in romstage, but I didn't think to get a SPI flash log (so it could be anything). If you have any thoughts on this, I'd appreciate the pointers, but for now I've moved the vboot bits to a follow-up commit.
- There's explicit dead code, e.g. `#if 0`. Anything like that is a burden for the reviewer and future maintenance, it's unlikely to be acked.
Yes, I left the EC's second memory map in the ACPI files. This can be used when LGMR is configured: I now understand that LGMR can be faster than issuing I/O (in hindsight, this seems obvious: MMIO was always meant to be faster than IO).
I also commented out functions in the smihandler as a reminder that I may need to implement these.
This should be better now.
- There are comments that disagree with the code. For instance in `gpio.c` a lot of `// NC` but the code configures a native function. The commit doesn't have to be perfect, but it needs to be consistent with itself.
The comments are copied from the schematics, but the code is based on an inteltool dump. I've commented on the contradiction at the top of the file. I've also slowly been fixing the code.
My impression is that the OEM was lazy and configured a good-enough table that enabled pins even when the relevant device/feature was disabled. I'll continue trying to improve the table, but I hope this doesn't hold back merging the board. Any ideas? I can move the comments to a follow-up commit, but I think that would merely hide the fact that I am aware of some inconsistency with the OEM.
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 183:
(10 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/6c64e276_f2139654 PS183, Line 45: if (data_buffer <= (2017/ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/aba75072_4e7ff53e PS183, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/2e235f8c_049bc1be PS183, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/ec3803e0_a448453b PS183, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/4730b818_1f88fedc PS183, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/61c1c103_34f80bd1 PS183, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/d2b4eab5_6e28c231 PS183, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/ece6d6c5_869390ef PS183, Line 97: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/8df492a7_6bd0ed64 PS183, Line 120: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130360): https://review.coreboot.org/c/coreboot/+/35523/comment/ad013318_74dc213e PS183, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 184:
(11 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/be660cc2_44c8ab63 PS184, Line 45: if (data_buffer <= (2017/ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/3c47fac7_97d361a5 PS184, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/7eb6f04b_771fb915 PS184, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/2374467a_af238b3d PS184, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/69494205_dffbe55e PS184, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/0ee64139_0cedacdd PS184, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/5d2bc7b8_206edbc2 PS184, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/371a11d1_44753b7b PS184, Line 97: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/b475f74b_a0e73c14 PS184, Line 120: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/681e5419_42ec3cab PS184, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130361): https://review.coreboot.org/c/coreboot/+/35523/comment/86ee3b33_93b1f22b PS184, Line 159: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#185).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Also note that there are two similar boards, Aspire VN7-792G and Aspire VN7-592G; both are Skylake-H. These are not supported (yet). Do not flash images intended for Aspire VN7-572G on those boards: the GPIOs and HSIO routing will be different and may risk damage to the hardware.
Working: - Payload - TianoCore - OS - Fedora 34 (kernel 5.12.5) - Windows 10 20H1 (bugs present: battery paging fixed; abandoning testing) - eDP and HDMI display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Optimus (see CB:28380, CB:40625 and CB:40628) - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test M.2 SATA) - USB ports (unable to test type-C, touchscreen and fingerprint reader) - TPM - Keyboard and touchpad - EC ACPI functionality - CMOS settings
In progress: - EC SMM functionality
Not working: - vboot (breaks boot): See CB:58249
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board.fmd A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 30 files changed, 2,902 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/185
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons. Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#186).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Also note that there are two similar boards, Aspire VN7-792G and Aspire VN7-592G; both are Skylake-H. These are not supported (yet). Do not flash images intended for Aspire VN7-572G on those boards: the GPIOs and HSIO routing will be different and may risk damage to the hardware.
Working: - Payload - TianoCore - OS - Fedora 34 (kernel 5.12.5) - Windows 10 20H1 (bugs present: battery paging fixed; abandoning testing) - Both DIMM slots - eDP and HDMI display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test M.2 SATA) - Discrete graphics, Ethernet and WiFi - USB ports (unable to test type-C, touchscreen and fingerprint reader) - Includes internal devices (Bluetooth, SD card reader and webcam) - TPM - Keyboard and touchpad - Optimus (see CB:28380, CB:40625 and CB:40628) - ACPI functionality - S3 suspend and resume - EC support - Internal flashing with flashrom - CMOS settings
In progress: - EC SMM functionality
Not working: - vboot (breaks boot): See CB:58249
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board.fmd A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 30 files changed, 2,902 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/186
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons, Michael Niewöhner. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 186:
(1 comment)
Patchset:
PS186: Hi all, I'd like to get something merged at some time. While the board support certainly hasn't been perfect for the entirety of the ~2 years, it has been my daily driver for ~1.5 years.
In terms of code quality, what should I fix/improve/clean-up? I would appreciate any and all comments. Thanks.
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons, Michael Niewöhner. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 186:
(1 comment)
Patchset:
PS186:
Hi all, […]
I can probably split it into base, bootblock, ramstage, smihandler and ACPI directory commits, if necessary.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Angel Pons, Michael Niewöhner. Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 186: Code-Review+1
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/8d9b4d84_a5f8a84a PS186, Line 19: - TianoCore Which version?
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Angel Pons, Michael Niewöhner. Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 186:
(1 comment)
Patchset:
PS186:
I can probably split it into base, bootblock, ramstage, smihandler and ACPI directory commits, if ne […]
It makes sense to split up new platform support (e.g. chipsets + boards) in pieces, but not a single board.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Angel Pons, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 187:
(11 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/92c9da14_771908df PS187, Line 45: if (data_buffer <= (2017/ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/db996a6a_cd49a054 PS187, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/aba80c5e_58ae6184 PS187, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/b1816787_68c108ac PS187, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/0b7768b7_86c9cdc2 PS187, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/8e27d4c1_92d22c64 PS187, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/55acba1a_701b2549 PS187, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/f52d8b0a_c90f0598 PS187, Line 97: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/15bc8071_ac337001 PS187, Line 120: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/9c4c9b53_85f481c9 PS187, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132397): https://review.coreboot.org/c/coreboot/+/35523/comment/d28c901f_555ce417 PS187, Line 159: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Angel Pons, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 188:
(11 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/0ea95c32_029c2ea2 PS188, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/f610ee51_d68fd098 PS188, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/c6d47eb2_a247017b PS188, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/2277147c_bd5f940e PS188, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/83b8b502_3f5f2d3f PS188, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/3283ed68_cf4e8653 PS188, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/0b8f500f_89a3ef6b PS188, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/f871b223_f9d3d43d PS188, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/4026fe87_c4f2f382 PS188, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/f470e12d_e4506bc7 PS188, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-132514): https://review.coreboot.org/c/coreboot/+/35523/comment/b08f0f1a_56d7cbf4 PS188, Line 159: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Angel Pons, Michael Niewöhner. Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons, Michael Niewöhner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#189).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Also note that there are two similar boards, Aspire VN7-792G and Aspire VN7-592G; both are Skylake-H. These are not supported (yet). Do not flash images intended for Aspire VN7-572G on those boards: the GPIOs and HSIO routing will be different and may risk damage to the hardware.
Working: - Payload - TianoCore (custom fork of MrChromebox's UefiPayloadPkg; edk2-202102) - OS - Fedora 34 (kernel 5.12.5) - Windows 10 20H1 (bugs present: battery paging fixed; abandoning testing) - Both DIMM slots - eDP and HDMI display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test M.2 SATA) - Discrete graphics, Ethernet and WiFi - USB ports (unable to test type-C, touchscreen and fingerprint reader) - Includes internal devices (Bluetooth, SD card reader and webcam) - TPM - Keyboard and touchpad - Optimus (see CB:28380, CB:40625 and CB:40628) - ACPI functionality - S3 suspend and resume - EC support - Internal flashing with flashrom - CMOS settings
In progress: - EC SMM functionality
Not working: - vboot (breaks boot): See CB:58249
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board.fmd A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 30 files changed, 2,930 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/189
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Angel Pons, Michael Niewöhner. Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Matt DeVillier, Paul Menzel, Angel Pons, Michael Niewöhner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35523
to look at the new patch set (#190).
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Also note that there are two similar boards, Aspire VN7-792G and Aspire VN7-592G; both are Skylake-H. These are not supported (yet). Do not flash images intended for Aspire VN7-572G on those boards: the GPIOs and HSIO routing will be different and may risk damage to the hardware.
Working: - Payload - TianoCore (custom fork of MrChromebox's UefiPayloadPkg; edk2-202102) - OS - Fedora 35 (kernel 5.14.15) - Windows 10 20H1 (bugs present: battery paging fixed; abandoning testing) - Both DIMM slots - eDP and HDMI display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test M.2 SATA) - Discrete graphics, Ethernet and WiFi - USB ports (unable to test type-C, touchscreen and fingerprint reader) - Includes internal devices (Bluetooth, SD card reader and webcam) - TPM - Keyboard and touchpad - Optimus (see CB:28380, CB:40625 and CB:40628) - ACPI functionality - S3 suspend and resume - EC support - Internal flashing with flashrom - CMOS settings
In progress: - EC SMM functionality
Not working: - vboot (breaks boot): See CB:58249
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com --- M src/mainboard/acer/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board.fmd A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 30 files changed, 2,930 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/35523/190
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons, Michael Niewöhner. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 190:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/35523/comment/2ef1029b_105eb914 PS186, Line 19: - TianoCore
Which version?
Done. I don't particularly mind providing it, but is version information actually helpful to users or contributors?
Patchset:
PS186:
It makes sense to split up new platform support (e.g. […]
Right, but the commit is fairly large. I thought that perhaps splitting it would make it easier to review (and therefore, merge sooner?). However, I'm fine with it all at once.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Angel Pons, Michael Niewöhner. Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 190: Code-Review+1
(5 comments)
Patchset:
PS190: I gave this a cursory review and didn't see anything that I thought should particularly keep it from going in, especially since it's all contained in the single mainboard directory.
It looks as if this is part of an ongoing board bringup, so I'd expect that any issues would be fixed along the way.
I'd like to see the patch rebased on top of the current coreboot codebase instead of a patch that's several months old before it's submitted. It merges cleanly, but until it's rebased, we can't tell if there's something that would keep it from building and breaking the coreboot build.
Please address all outstanding comments, even if it's just to say that you'll fix things in follow-on patches (maybe add TODOs in the code). After that's done, I don't see any reason we can't merge this.
File src/mainboard/acer/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/comment/d3c8f396_80495988 PS190, Line 15: string This should probably go into a separate commit since it's not actually related to this patch. Typically I wouldn't care, but the rest of the patch is big enough, and this removal makes no functional difference.
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/a336bf54_a932f69e PS190, Line 34: 0x10251037 Nit: use #defines: src/include/device/pci_ids.h PCI_VENDOR_ID_AI
You'd have to add 1037 as HDA. I'm fine with this being done in a follow-on patch.
https://review.coreboot.org/c/coreboot/+/35523/comment/c36812f8_032414f1 PS190, Line 110: ec_init(void) Lots of magic numbers in this function that could be turned into #defines.
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/1fda8839_80423ae9 PS190, Line 113: Still WIP. Maybe document what still needs to be done?
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Angel Pons, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 191: Verified+1
(13 comments)
File src/mainboard/acer/aspire_vn7_572g/Kconfig:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/ef868d28_cfa0e371 PS191, Line 22: select NO_UART_ON_SUPERIO 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/07c7745a_fef17365 PS191, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/2ff22c77_47cb1528 PS191, Line 303: | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/cec911a4_52fb039f PS191, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/317009aa_cc7c99de PS191, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/1d9c693e_9e7c36a8 PS191, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/0b3faf95_1049448f PS191, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/566f0b63_d5ddf379 PS191, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/84d431f3_85461e6a PS191, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/b274d9a4_86b14aec PS191, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/2d21da70_8556b8e2 PS191, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/21287f36_1f1bdf9e PS191, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-134936): https://review.coreboot.org/c/coreboot/+/35523/comment/06d394f5_dd0fe601 PS191, Line 159: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Angel Pons, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 192:
(13 comments)
File src/mainboard/acer/aspire_vn7_572g/Kconfig:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/065c9900_6edfc2bd PS192, Line 22: select NO_UART_ON_SUPERIO 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/dd422472_1f98bf77 PS192, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/6515333e_70b26324 PS192, Line 303: | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/8baf878a_cba1db2a PS192, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/84a3bf81_362970d1 PS192, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/77b007e6_1a1e994a PS192, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/52db2a65_414eedcd PS192, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/dfd3e911_f65c4e3b PS192, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/4b39eedd_07929238 PS192, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/dc444e44_9a479094 PS192, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/2afcc2b5_65764ca5 PS192, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/e8acafe3_b3219553 PS192, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135132): https://review.coreboot.org/c/coreboot/+/35523/comment/9c1fa956_bb428b2d PS192, Line 159: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Martin Roth, Eugene Myers, Paul Menzel, Angel Pons, Michael Niewöhner. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 192:
(5 comments)
Patchset:
PS174:
- The commit message says vboot is untested but there are a lot of vboot references in the code. […]
Done
File src/mainboard/acer/Kconfig:
https://review.coreboot.org/c/coreboot/+/35523/comment/21d04286_80ae72d9 PS190, Line 15: string
This should probably go into a separate commit since it's not actually related to this patch. […]
Done. I think this was left-over from the time when I was creating the acer directory. Not anymore...
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/f8cdec2a_b574a6a4 PS190, Line 34: 0x10251037
Nit: use #defines: […]
Fair point, but 0x1025 is Acer's ID? `lspci` outputs: "Subsystem: Acer Incorporated [ALI] Device [1025:1037]".
Maybe there's a collision, or one bought the other? I don't who "AI" is.
Also, 0x1037 is a common ID for the whole system.
https://review.coreboot.org/c/coreboot/+/35523/comment/527a06a2_2416056c PS190, Line 110: ec_init(void)
Lots of magic numbers in this function that could be turned into #defines.
Right, I'll do this in a follow-up.
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/6cde158c_0a2c16c9 PS190, Line 113: Still WIP.
Maybe document what still needs to be done?
This point was partly covered by two other "TODO"s (header: find relevant SMM dispatch/callback GUIDs in the vendor firmware - mostly done, modules irrelevant; next function: finish reverse engineering the specific module relevant to EC), but I added some more detail.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Angel Pons, Michael Niewöhner. Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 192: Code-Review+2
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/45a4a310_8d0f90fe PS190, Line 34: 0x10251037
Fair point, but 0x1025 is Acer's ID? `lspci` outputs: "Subsystem: Acer Incorporated [ALI] Device [10 […]
Yes, AI stands for Acer International. So 1025 is their vendor ID which matches up.
Let's ignore the 1037 for now. It'd be good to get it into a #define at some point, but it's not critical.
Either way, let's do this change in a follow-on patch.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 192:
(7 comments)
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/471026c5_2578fc13 PS192, Line 18: Is a wait required? Likely
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/comment/1b00ca3b_9cdc48f9 PS192, Line 14: .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, Should no longer be needed, it's the default now.
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/da2ac735_9b8d54d8 PS192, Line 13: /* TODO: Search vendor FW for Dq/Dqs */ What does this mean? DQ/DQS mapping is only needed for LPDDR.
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/13dcd26c_57e3f5b2 PS192, Line 23: /* Keep in sync with dsdt.asl; could insert into SSDT at runtime */ To avoid things falling out of sync, you could define this in a header and include it from dsdt.asl and here
https://review.coreboot.org/c/coreboot/+/35523/comment/953e7956_6368814d PS192, Line 26: IDA_Disable Where does this name come from? IDA was the name from Core 2 era processors, it's called "TURBO_MODE_DISABLE" on SKL.
https://review.coreboot.org/c/coreboot/+/35523/comment/eb7b28a5_eb12ac92 PS192, Line 32: 0x1A0 Why not use the `IA32_MISC_ENABLE` macro from src/include/cpu/x86/msr.h ?
https://review.coreboot.org/c/coreboot/+/35523/comment/c7a67f3d_1bfa5ae4 PS192, Line 54: unused_was_osys Does this still work?
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 192: Code-Review+1
Attention is currently required from: Nico Huber, Eugene Myers, Paul Menzel, Angel Pons, Michael Niewöhner. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 193:
(5 comments)
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/35523/comment/af4980a8_c7cdfcf0 PS192, Line 14: .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
Should no longer be needed, it's the default now.
Done
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/44184a18_7d8f01be PS192, Line 13: /* TODO: Search vendor FW for Dq/Dqs */
What does this mean? DQ/DQS mapping is only needed for LPDDR.
The FSP binary has non-zero defaults for Dq/Dqs. Do we know if the FSP detects LPDDR and only applies Dq/Dqs if it's present? If so, I actually can drop this. Otherwise, I should find the optimum settings for this board.
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/87c55eb2_7c0527b2 PS192, Line 26: IDA_Disable
Where does this name come from? IDA was the name from Core 2 era processors, it's called "TURBO_MODE […]
I think that was the definition in the SDM I had? Anyways, done.
https://review.coreboot.org/c/coreboot/+/35523/comment/39f15413_d9438d3f PS192, Line 32: 0x1A0
Why not use the `IA32_MISC_ENABLE` macro from src/include/cpu/x86/msr. […]
Done
https://review.coreboot.org/c/coreboot/+/35523/comment/5d9302d6_87bcc264 PS192, Line 54: unused_was_osys
Does this still work?
Not really, but OSYS wasn't actually implemented before the recent-ish commits to drop it either. I think that this underlies whether EC supports some features, such as the touchpad toggle hotkey, so I want to get _OSI method back in coreboot.
However, the vendor implements the touchpad toggle hotkey in WMI. While coreboot obviously won't do that, perhaps simply telling the EC to support the feature so that the enable bit works isn't enough. I may need to reverse engineer the WMI blob as well.
I'm adding a TODO for this and marking it as done?
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 193:
(1 comment)
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
https://review.coreboot.org/c/coreboot/+/35523/comment/e955a699_41585213 PS192, Line 13: /* TODO: Search vendor FW for Dq/Dqs */
The FSP binary has non-zero defaults for Dq/Dqs. […]
These settings only apply to LPDDR. They don't do anything at all for DDR.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 193:
(13 comments)
File src/mainboard/acer/aspire_vn7_572g/Kconfig:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/18dd5ab0_70bb8d0a PS193, Line 22: select NO_UART_ON_SUPERIO 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/fa3abdf3_776c1278 PS193, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/52b99255_5d5eb4f4 PS193, Line 302: | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/f57977e9_d2ab26bb PS193, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/52bb8649_3f9295b3 PS193, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/6d347160_facd159d PS193, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/8a3c8259_93778144 PS193, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/94c5936a_845a8ce3 PS193, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/1630294a_dece8d43 PS193, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/60899753_03da9f15 PS193, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/5eaf140c_63e3e46f PS193, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/85fb9757_c516d8b7 PS193, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135581): https://review.coreboot.org/c/coreboot/+/35523/comment/cc51af09_5a1d4c1f PS193, Line 160: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 193:
(1 comment)
Patchset:
PS193: After the platform is building again, let's get any additional changes done on follow-on patches. The platform doesn't need to be perfect on the first pass.
It's on patchset 193 now, with hundreds of comments.
Let's get this patch in, THEN fix anything else.
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 194: Verified-1
(13 comments)
File src/mainboard/acer/aspire_vn7_572g/Kconfig:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/5c21b08a_3d02461b PS194, Line 22: select NO_UART_ON_SUPERIO 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/e308bf9c_cc01ca7a PS194, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/fdec8266_a0a8baa0 PS194, Line 302: | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/1d142296_59527b37 PS194, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/8a36d659_6b5df5ec PS194, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/3ff56d6a_ace13e40 PS194, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/0066f889_1bf09288 PS194, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/24aab0bd_6dccf11b PS194, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/f46057df_ba845dd6 PS194, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/afb99d95_0db95f6f PS194, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/4b719932_0575f1ad PS194, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/d63e32b6_5e7da04a PS194, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135582): https://review.coreboot.org/c/coreboot/+/35523/comment/ccf6cc83_8b8e55a0 PS194, Line 160: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Martin Roth, Eugene Myers, Paul Menzel, Michael Niewöhner. Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 194:
(1 comment)
Patchset:
PS193:
After the platform is building again, let's get any additional changes done on follow-on patches. […]
Sounds good to me! It looks like the Jenkins builder had trouble cloning the repo before, so hopefully this rebase is the patchset's final commit.
Attention is currently required from: Nico Huber, Martin Roth, Eugene Myers, Paul Menzel, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 195: Verified+1
(13 comments)
File src/mainboard/acer/aspire_vn7_572g/Kconfig:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/c961b06c_8408f3f8 PS195, Line 22: select NO_UART_ON_SUPERIO 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/887e2a69_b9191b3f PS195, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/8c92fbf1_963a0933 PS195, Line 302: | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/2ff0de5e_3c745d83 PS195, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/1736021c_17136484 PS195, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/2374e57a_33c24638 PS195, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/8e470313_e8c043e4 PS195, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/648db184_3bc5972e PS195, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/5b5e9d41_09aea3d3 PS195, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/3f23591b_a7e71145 PS195, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/ac756b12_12f312d3 PS195, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/a93353cc_a72fa0eb PS195, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139308): https://review.coreboot.org/c/coreboot/+/35523/comment/8a92ecad_6264dcd7 PS195, Line 160: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Martin Roth, Eugene Myers, Paul Menzel, Michael Niewöhner. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 196:
(13 comments)
File src/mainboard/acer/aspire_vn7_572g/Kconfig:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/93072138_b15d2e23 PS196, Line 22: select NO_UART_ON_SUPERIO 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/bootblock.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/6812256b_71cf26dd PS196, Line 45: if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { braces {} are not necessary for any arm of this statement
File src/mainboard/acer/aspire_vn7_572g/devicetree.cb:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/508882ae_a7338d0f PS196, Line 300: | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h 'SUPERIO' may be misspelled - perhaps ''?
File src/mainboard/acer/aspire_vn7_572g/die.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/f948ed5b_074593ad PS196, Line 9: if (ENV_POSTCAR) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/mainboard.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/b5ac3ff0_b7b35182 PS196, Line 29: if (!nhlt) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/6f8f8b01_33e029da PS196, Line 37: if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/3d1b8e59_a54063f0 PS196, Line 42: if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/fc5af0b7_8b8fcfed PS196, Line 48: if (end_addr != start_addr) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/8dd63997_406e0077 PS196, Line 61: if (CONFIG(INCLUDE_NHLT_BLOBS)) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/6c7da722_45c5a66d PS196, Line 98: if (dat & 1) { braces {} are not necessary for single statement blocks
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/29b81f9c_6cfe767c PS196, Line 122: if (!(out_data & 2)) { braces {} are not necessary for single statement blocks
File src/mainboard/acer/aspire_vn7_572g/romstage.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/1ba4f2ee_a0c57351 PS196, Line 11: FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; need consistent spacing around '*' (ctx:WxV)
File src/mainboard/acer/aspire_vn7_572g/smihandler.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-139311): https://review.coreboot.org/c/coreboot/+/35523/comment/59c0f785_dec577db PS196, Line 160: if (gnvs) { braces {} are not necessary for single statement blocks
Attention is currently required from: Nico Huber, Eugene Myers, Benjamin Doron, Paul Menzel, Michael Niewöhner. Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
Patch Set 196: Code-Review+2
(1 comment)
Patchset:
PS196: It's not perfect, but it should really get merged as a base at this point so that improvements can be made in follow-on patches.
Benjamin, could you address the checkpatch issues at some point?
Martin Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/35523 )
Change subject: mb/acer: Add Acer Aspire VN7-572G ......................................................................
mb/acer: Add Acer Aspire VN7-572G
Add initial support for Acer Aspire VN7-572G (Skylake-U).
Also note that there are two similar boards, Aspire VN7-792G and Aspire VN7-592G; both are Skylake-H. These are not supported (yet). Do not flash images intended for Aspire VN7-572G on those boards: the GPIOs and HSIO routing will be different and may risk damage to the hardware.
Working: - Payload - TianoCore (custom fork of MrChromebox's UefiPayloadPkg; edk2-202102) - OS - Fedora 35 (kernel 5.14.15) - Windows 10 20H1 (bugs present: battery paging fixed; abandoning testing) - Both DIMM slots - eDP and HDMI display (VBT partially matches vendor's configuration) - with FSP GOP - with IntelGopDriver (in payload: TianoCore) - with libgfxinit - Audio - Speakers and headphone jack - Internal microphone - HDMI audio - Devices - PCIe and SATA (unable to test M.2 SATA) - Discrete graphics, Ethernet and WiFi - USB ports (unable to test type-C, touchscreen and fingerprint reader) - Includes internal devices (Bluetooth, SD card reader and webcam) - TPM - Keyboard and touchpad - Optimus (see CB:28380, CB:40625 and CB:40628) - ACPI functionality - S3 suspend and resume - EC support - Internal flashing with flashrom - CMOS settings
In progress: - EC SMM functionality
Not working: - vboot (breaks boot): See CB:58249
Notes: - `tpm2_pcrallocate` to enable SHA256 PCR bank
Not implemented: - WMI
Change-Id: I6340116abfeb2fbd280d143b74d323e4da3566f6 Signed-off-by: Benjamin Doron benjamin.doron00@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/35523 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Martin Roth martinroth@google.com --- A src/mainboard/acer/aspire_vn7_572g/Kconfig A src/mainboard/acer/aspire_vn7_572g/Kconfig.name A src/mainboard/acer/aspire_vn7_572g/Makefile.inc A src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl A src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl A src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl A src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl A src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl A src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl A src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl A src/mainboard/acer/aspire_vn7_572g/board.fmd A src/mainboard/acer/aspire_vn7_572g/board_info.txt A src/mainboard/acer/aspire_vn7_572g/bootblock.c A src/mainboard/acer/aspire_vn7_572g/cmos.default A src/mainboard/acer/aspire_vn7_572g/cmos.layout A src/mainboard/acer/aspire_vn7_572g/data.vbt A src/mainboard/acer/aspire_vn7_572g/devicetree.cb A src/mainboard/acer/aspire_vn7_572g/die.c A src/mainboard/acer/aspire_vn7_572g/dsdt.asl A src/mainboard/acer/aspire_vn7_572g/ec.c A src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads A src/mainboard/acer/aspire_vn7_572g/gpio.c A src/mainboard/acer/aspire_vn7_572g/gpio_early.c A src/mainboard/acer/aspire_vn7_572g/hda_verb.c A src/mainboard/acer/aspire_vn7_572g/include/ec.h A src/mainboard/acer/aspire_vn7_572g/include/gpio.h A src/mainboard/acer/aspire_vn7_572g/mainboard.c A src/mainboard/acer/aspire_vn7_572g/romstage.c A src/mainboard/acer/aspire_vn7_572g/smihandler.c 29 files changed, 2,928 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Martin Roth: Looks good to me, approved
diff --git a/src/mainboard/acer/aspire_vn7_572g/Kconfig b/src/mainboard/acer/aspire_vn7_572g/Kconfig new file mode 100644 index 0000000..449eeee --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/Kconfig @@ -0,0 +1,110 @@ +## SPDX-License-Identifier: GPL-2.0-only + +if BOARD_ACER_VN7_572G + +config BOARD_SPECIFIC_OPTIONS + def_bool y + select BOARD_ROMSIZE_KB_8192 + select DRIVERS_I2C_HID + select DRIVERS_USB_ACPI + select EC_ACPI + select HAVE_ACPI_RESUME + select HAVE_ACPI_TABLES + select HAVE_CMOS_DEFAULT + select HAVE_INTEL_PTT + select HAVE_OPTION_TABLE + select INTEL_GMA_HAVE_VBT + select INTEL_INT15 + select INTEL_LPSS_UART_FOR_CONSOLE + select MAINBOARD_HAS_CRB_TPM + select MAINBOARD_HAS_LIBGFXINIT + select MAINBOARD_HAS_TPM2 + select NO_UART_ON_SUPERIO + select SOC_INTEL_COMMON_BLOCK_HDA_VERB + select SOC_INTEL_SKYLAKE + select SPD_READ_BY_WORD + select SYSTEM_TYPE_LAPTOP + +config CBFS_SIZE + default 0x600000 + +config CONSOLE_SERIAL + default n + +config DIMM_MAX + default 2 + +config DIMM_SPD_SIZE + default 512 + +config FMDFILE + default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/board.fmd" if INCLUDE_EC_FIRMWARE + +config INCLUDE_EC_FIRMWARE + bool "Include EC firmware blob" + help + If corrupted, the EC can recover its firmware from the SPI flash. + +config EC_FIRMWARE_FILE + string "Location of EC firmware blob" + depends on INCLUDE_EC_FIRMWARE + default "3rdparty/blobs/mainboard/$(MAINBOARDDIR)/ec.bin" + +config EC_USE_LGMR + bool "Use LPC generic memory range for EC" + help + Using MMIO accesses for EC range can improve performance. + +config INCLUDE_NHLT_BLOBS + bool "Include blobs for audio" + select NHLT_DMIC_1CH + # It appears OS chooses blob? + select NHLT_DMIC_2CH +# select NHLT_DMIC_4CH # Wrong lie to tell? Double-check blob. + +config LINEAR_FRAMEBUFFER_MAX_HEIGHT + default 1080 + +config LINEAR_FRAMEBUFFER_MAX_WIDTH + default 1920 + +config MAINBOARD_DIR + default "acer/aspire_vn7_572g" + +config MAINBOARD_FAMILY + default "Aspire V Nitro" + +config MAINBOARD_PART_NUMBER + default "Aspire VN7-572G" + +config MAINBOARD_SUPPORTS_KABYLAKE_DUAL + default n + +config MAINBOARD_SUPPORTS_KABYLAKE_QUAD + default n + +config MAX_CPUS + default 4 + +config ME_CLEANER_ARGS + default "-s" + +config ONBOARD_VGA_IS_PRIMARY + default y + +config POST_DEVICE + default n + +config POST_IO + default n + +config UART_FOR_CONSOLE + default 2 + +config VGA_BIOS_DGPU_ID + default "10de,139a" + +config VGA_BIOS_ID + default "8086,1916" + +endif diff --git a/src/mainboard/acer/aspire_vn7_572g/Kconfig.name b/src/mainboard/acer/aspire_vn7_572g/Kconfig.name new file mode 100644 index 0000000..b881680 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/Kconfig.name @@ -0,0 +1,2 @@ +config BOARD_ACER_VN7_572G + bool "Aspire VN7-572G" diff --git a/src/mainboard/acer/aspire_vn7_572g/Makefile.inc b/src/mainboard/acer/aspire_vn7_572g/Makefile.inc new file mode 100644 index 0000000..79c66c5 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/Makefile.inc @@ -0,0 +1,20 @@ +## SPDX-License-Identifier: GPL-2.0-only + +all-y += die.c + +bootblock-y += bootblock.c +bootblock-y += ec.c +bootblock-y += gpio_early.c + +ramstage-y += ec.c +ramstage-y += gpio.c + +smm-y += die.c +smm-y += ec.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads + +files_added:: +ifeq ($(CONFIG_INCLUDE_EC_FIRMWARE),y) + $(CBFSTOOL) $(obj)/coreboot.rom write -r EC -f $(CONFIG_EC_FIRMWARE_FILE) --fill-upward +endif diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl new file mode 100644 index 0000000..c92cbd9 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/ac.asl @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +Device (ADP1) +{ + Name (_HID, "ACPI0003" /* Power Source Device */) // _HID: Hardware ID + Name (_PCL, Package () { _SB }) // _PCL: Power Consumer List + + Method (_PSR, 0, NotSerialized) // _PSR: Power Source + { +#if CONFIG(EC_USE_LGMR) + Return (MACS) +#else + Return (EACS) +#endif + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl new file mode 100644 index 0000000..1f4fb47 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl @@ -0,0 +1,416 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#if !CONFIG(EC_USE_LGMR) +/* TODO: Consider actually enforcing mutex? */ +Mutex (BMTX, 0) +#endif +Name (B0ST, 0) /* Battery 0 status */ + +/* + * EC Registers + * + * "EBID" is the battery page selector. + * + * + * Data on the 128 bits following offset + * 0xE0 is accessed in the following order: + * + * Information: + * Page 0: EBCM # start on page 0 # + * Page 0: EBFC + * Page 1: EBDC # switch to page 1 # + * Page 1: EBDV + * Page 1: EBSN + * Page 3: EBDN # switch to page 3 # + * Page 4: EBCH # switch to page 4 # + * Page 2: EBMN # switch to page 2 # + * + * Status: + * Page 0: EBAC # start on page 0 # + * Page 0: EBRC + * Page 0: EBFC + * Page 0: EBVO + */ +/* Page 0 */ +Field (RAM, ByteAcc, Lock, Preserve) +{ + Offset (0xE0), + EBRC, 16, /* Battery remaining capacity */ + EBFC, 16, /* Battery full charge capacity */ + EBPE, 16, + EBAC, 16, /* Battery present rate */ + EBVO, 16, /* Battery voltage */ + , 15, + EBCM, 1, /* Battery charging */ + EBCU, 16, + EBTV, 16, +} + +/* Page 1 */ +Field (RAM, ByteAcc, Lock, Preserve) +{ + Offset (0xE0), + EBDC, 16, /* Battery design capacity */ + EBDV, 16, /* Battery design voltage */ + EBSN, 16, /* Battery serial number */ +} + +/* Page 2 */ +Field (RAM, ByteAcc, NoLock, Preserve) +{ + Offset (0xE0), + EBMN, 128, /* Battery manufacturer */ +} + +/* Page 3 */ +Field (RAM, ByteAcc, NoLock, Preserve) +{ + Offset (0xE0), + EBDN, 128, /* Battery model */ +} + +/* Page 4 */ +Field (RAM, ByteAcc, NoLock, Preserve) +{ + Offset (0xE0), + EBCH, 128, /* Battery type */ +} + +#if CONFIG(EC_USE_LGMR) +OperationRegion (MBB0, SystemMemory, (LGMR + 0x80), 0xFF) +Field (MBB0, ByteAcc, Lock, Preserve) +{ + MBRC, 16, + MBFC, 16, + MBPE, 16, + MBAC, 16, + MBVO, 16, + , 15, + MBCM, 1, + MBCU, 16, + MBTV, 16, +} + +Field (MBB0, ByteAcc, Lock, Preserve) +{ + Offset (0x10), + MBDC, 16, + MBDV, 16, + MBSN, 16, +} + +Field (MBB0, ByteAcc, Lock, Preserve) +{ + Offset (0x40), + MBMN, 128, +} + +Field (MBB0, ByteAcc, Lock, Preserve) +{ + Offset (0x50), + MBDN, 256, +} + +Field (MBB0, ByteAcc, Lock, Preserve) +{ + Offset (0x70), + MBCH, 128, +} +#endif + +/* + * Arg0: Battery number + * Arg1: Battery Information Package + * Arg2: Status + */ +#if !CONFIG(EC_USE_LGMR) +Method (GBIF, 3, Serialized) +{ + Acquire (BMTX, 0xFFFF) // Due to EC paging, don't run this with another function +#else +Method (GBIF, 3, NotSerialized) +{ +#endif + If (Arg2) + { + Arg1[1] = 0xFFFFFFFF + Arg1[2] = 0xFFFFFFFF + Arg1[4] = 0xFFFFFFFF + Arg1[5] = 0 + Arg1[6] = 0 + } + Else + { +#if CONFIG(EC_USE_LGMR) + Local0 = MBCM +#else + EBID = 0 // We don't know which page was active + Local0 = EBCM +#endif + Arg1[0] = (Local0 ^ 1) + +#if CONFIG(EC_USE_LGMR) + Local2 = MBFC + Local1 = MBDC +#else + Local2 = EBFC + EBID = 1 + Local1 = EBDC +#endif + If (Local0) + { + Local2 *= 10 + Local1 *= 10 + } + + Arg1[1] = Local1 // Design capacity + Arg1[2] = Local2 // Last full charge capacity +#if CONFIG(EC_USE_LGMR) + Arg1[4] = MBDV // Design voltage +#else + Arg1[4] = EBDV // Design voltage +#endif + Local6 = (Local2 / 100) // Warning capacities; Remainders ignored + Arg1[5] = (Local6 * 7) /* Low: 7% */ + Arg1[6] = ((Local6 * 11) / 2) /* Very low: 5.5% */ +#if CONFIG(EC_USE_LGMR) + Local7 = MBSN +#else + Local7 = EBSN +#endif + Name (SERN, Buffer (0x06) { " " }) + /* + * Convert hex to decimal. + * - There appears to be a bug in the vendor's implementation: + * The correct answer has, or can have, 5 digits, so Local6 = 5. + * Also see "SERN" buffer. + * - Userspace prints reversed serial number? + */ + Local6 = 4 + While (Local7) + { + Divide (Local7, 10, Local5, Local7) + SERN[Local6] = (Local5 + 0x30) // Add 0x30 to get numeric ASCII + Local6-- + } + + Arg1[10] = SERN // Serial number +#if CONFIG(EC_USE_LGMR) + Arg1[9] = MBDN // Model number + Arg1[11] = MBCH // Battery type + Arg1[12] = MBMN // OEM information +#else + EBID = 3 + Arg1[9] = EBDN // Model number + EBID = 4 + Arg1[11] = EBCH // Battery type + EBID = 2 + Arg1[12] = EBMN // OEM information +#endif + } + +#if !CONFIG(EC_USE_LGMR) + Release (BMTX) +#endif + Return (Arg1) +} + +/* + * Arg0: Battery number + * Arg1: State information + * Arg2: Power units + * Arg3: Battery Status Package + */ +Method (GBST, 4, NotSerialized) // All on one page +{ +#if !CONFIG(EC_USE_LGMR) + Acquire (BMTX, 0xFFFF) // Due to EC paging, don't run this with another function +#endif + If (Arg1 & 0x02) // BIT1 in "MB0S/EB0S" + { + Local0 = 2 + If (Arg1 & 0x20) // "EB0F" + { + Local0 = 0 + } + } + ElseIf (Arg1 & 0x04) // BIT2 in "MB0S/EB0S" + { + Local0 = 1 + } + Else + { + Local0 = 0 + } + + If (Arg1 & 0x10) // "EB0L" + { + Local0 |= 0x04 + } + + If (Arg1 & 0x01) // "EB0A" + { + /* + * Present rate is a 16bit signed int, positive while charging + * and negative while discharging. + */ +#if CONFIG(EC_USE_LGMR) + Local1 = MBAC + Local2 = MBRC + If (MACS) // Charging +#else + EBID = 0 // We don't know which page was active + Local1 = EBAC + Local2 = EBRC + If (EACS) // Charging +#endif + { + If (Arg1 & 0x20) // "EB0F" + { +#if CONFIG(EC_USE_LGMR) + Local2 = MBFC +#else + Local2 = EBFC +#endif + } + } + + If (Arg2) + { + Local2 *= 10 + } + +#if CONFIG(EC_USE_LGMR) + Local3 = MBVO +#else + Local3 = EBVO +#endif + /* + * The present rate value should be positive unless discharging. If so, + * negate present rate. + */ + If (Local1 >= 0x8000) + { + If (Local0 & 0x01) + { + Local1 = (0x00010000 - Local1) + } + Else + { + Local1 = 0 // Full battery, force to 0 + } + } + /* + * If that was not the case, we have an EC bug or inconsistency + * and force the value to 0. + */ + ElseIf ((Local0 & 0x02) == 0) + { + Local1 = 0 + } + + If (Arg2) + { + Local1 *= Local3 + Local1 /= 1000 /* Remainder ignored by vendor */ + } + } + Else + { + Local0 = 0 + Local1 = 0xFFFFFFFF + Local2 = 0xFFFFFFFF + Local3 = 0xFFFFFFFF + } + + Arg3[0] = Local0 + Arg3[1] = Local1 + Arg3[2] = Local2 + Arg3[3] = Local3 + +#if !CONFIG(EC_USE_LGMR) + Release (BMTX) +#endif + Return (Arg3) +} + +Device (BAT0) +{ + Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID + Name (_UID, 0) // _UID: Unique ID + Name (_PCL, Package () { _SB }) // _PCL: Power Consumer List + + Name (B0IP, Package (0x0D) + { + 1, /* 0x00: Power Unit: mAh */ + 0xFFFFFFFF, /* 0x01: Design Capacity */ + 0xFFFFFFFF, /* 0x02: Last Full Charge Capacity */ + 1, /* 0x03: Battery Technology: Rechargeable */ + 0xFFFFFFFF, /* 0x04: Design Voltage */ + 0, /* 0x05: Design Capacity of Warning */ + 0, /* 0x06: Design Capacity of Low */ + 1, /* 0x07: Capacity Granularity 1 */ + 1, /* 0x08: Capacity Granularity 2 */ + "", /* 0x09: Model Number */ + "100", /* 0x0a: Serial Number */ + "Lion", /* 0x0b: Battery Type */ + 0 /* 0x0c: OEM Information */ + }) + Name (B0SP, Package (0x04) + { + 0, /* 0x00: Battery State */ + 0xFFFFFFFF, /* 0x01: Battery Present Rate */ + 0xFFFFFFFF, /* 0x02: Battery Remaining Capacity */ + 0xFFFFFFFF /* 0x03: Battery Present Voltage */ + }) + Method (_STA, 0, NotSerialized) // _STA: Status + { + /* Bitwise AND by vendor is lossy? */ + Local1 = EB0A + If (Local1 & 0x40) + { + Local1 = 0 + } + + B0ST = Local1 + If (Local1) + { + Return (0x1F) + } + Else + { + Return (0x0F) + } + } + + Method (_BIF, 0, NotSerialized) // _BIF: Battery Information + { + Local6 = B0ST + Local7 = 20 + While (Local6 && Local7) + { + If (EB0R) + { + Local6 = 0 + } + Else + { + Sleep (500) + Local7-- + } + } + + Return (GBIF (0, B0IP, Local6)) + } + + Method (_BST, 0, NotSerialized) // _BST: Battery Status + { + Local0 = (DerefOf (B0IP[0]) ^ 1) +#if CONFIG(EC_USE_LGMR) + Local5 = MB0S +#else + Local5 = EB0S +#endif + Return (GBST (0, Local5, Local0, B0SP)) + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl new file mode 100644 index 0000000..14c5e30 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/brightness_levels.asl @@ -0,0 +1,113 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <drivers/intel/gma/acpi/gma.asl> + +Scope (GFX0) +{ + Name (BRIG, Package (0x67) + { + 80, /* default AC */ + 50, /* default battery */ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + }) +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl new file mode 100644 index 0000000..3a22d38 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/ec.asl @@ -0,0 +1,422 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* + * Global TODO: (externally: Optimus GC6 and GPS) + * - TRPS: This is SMI 0xDD, likely in SmmOemDriver. This SW SMI adds to and executes + * a table of function pointers produced throughout the OEM 'value-add' stack. + * - Arg0 - "SFUN" - is index into "$FNC" pointer table? It's easier to + * correlate *CommonService use: Offset 13 creates TRPS handlers. + * - Known functions: + * - 0x80 calls offset 0 in ACER_BOOT_DEVICE_SERVICE_PROTOCOL_GUID. + * - NB: efiXplorer can miss InstallProtocolInterface() when Interface is local + * - 0x81 toggles Intel Dynamic Acceleration in IA32_MISC_ENABLE MSR. + * - 0x82 does switch on "OSYS" to set EC byte. Suspect this is for OS features. + * (A CVE exists in the vendor code only if it never sets the offset in the buffer.) + * - RBEC/WBEC/MBEC: This is SMI 0xDD, "functions" 0x10, 0x11 and 0x12 in SmmKbcDriver, + * added into SmmCommonService table at its protocol notify. Performs read, write + * and read-modify-write from buffer. We will use ACPI instead. + * - WMI: This is likely SMI 0xD0 in A01WMISmmCallback. This SW SMI likely uses the WMI + * object and consumes the OEM 'value-add' stack for EC and presumably the A01* + * OEM/ODM 'value-add' stack. An SSDT contains the device and EC0 provides "GCMS" + * and "GOTS" method helpers. + * + * Generally, more information is needed. + * TODO: Implement more board features: lid and touchpad trigger wake from S3, + * Fn-Ctrl swap, sticky Fn keys and always-on USB charger. + */ + +Device (EC0) +{ + Name (_HID, EisaId ("PNP0C09") /* Embedded Controller Device */) // _HID: Hardware ID + Name (_GPE, 0x50) // _GPE: General Purpose Events + Name (\ECOK, 0) +#if CONFIG(EC_USE_LGMR) + Name (LGMR, 0xFE800000) // Static, may depend on EC configuration. Unsure which register. +#endif + + Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings + { + IO (Decode16, 0x62, 0x62, 0, 1) + IO (Decode16, 0x66, 0x66, 0, 1) + }) + + #define EC_SC_IO 0x66 + #define EC_DATA_IO 0x62 + #include <ec/acpi/ec.asl> + +#if CONFIG(EC_USE_LGMR) + OperationRegion (ECMB, SystemMemory, LGMR, 0x200) +#endif + OperationRegion (RAM, EmbeddedControl, 0, 0xFF) + Field (RAM, ByteAcc, Lock, Preserve) + { + CMDB, 8, /* EC commands */ + ETID, 8, /* Thermal page selector */ + EBID, 8, /* Battery page selector */ + Offset (0x06), + CMD2, 8, /* param 2: UNUSED */ + CMD1, 8, /* param 1: UNUSED */ + CMD0, 8, /* param 0 to EC command */ + Offset (0x0A), + , 1, + , 1, + Offset (0x10), + EQEN, 1, /* EQ enable */ + ETEE, 1, /* TODO */ + Offset (0x4E), + ISEN, 1, /* TODO */ + Offset (0x4F), + ECTP, 8, /* Touchpad ID */ + Offset (0x51), + , 3, + TPEN, 1, /* Touchpad enable */ + Offset (0x52), + WLEX, 1, /* WLAN present */ + BTEX, 1, /* Bluetooth present */ + EX3G, 1, /* 3G */ + , 3, + RFEX, 1, /* RF present */ +/* + * NOTE: Some reverse engineering, as well as corroborating vendor's hidden SetupUtility + * options with the EC's memory space, suggests that offset 0x55 might be the battery + * threshold + * - TODO: Actually diff changes in modified vendor FW + */ + Offset (0x57), + , 7, + AHKB, 1, /* Hotkey triggered */ + AHKE, 8, /* Hotkey data */ + Offset (0x5C), + Offset (0x5D), + Offset (0x6C), + PWLT, 1, /* NVIDIA GPS: Panel? */ + , 3, + GCON, 1, /* Enter Optimus GC6 */ + Offset (0x70), + , 1, + ELID, 1, /* Lid state */ + , 3, + EACS, 1, /* AC state */ + Offset (0x71), + WLEN, 1, /* WLAN enable */ + BTEN, 1, /* Bluetooth enable */ + , 3, + ISS3, 1, + ISS4, 1, + ISS5, 1, + , 4, + EIDW, 1, /* Device wake */ + Offset (0x74), + , 2, + , 1, + TPEX, 1, /* Touchpad present */ + Offset (0x75), + BLST, 1, /* Bluetooth state */ + LMIB, 1, /* TODO */ + Offset (0x76), + ECSS, 4, /* EC Notify of power state */ + EOSS, 4, /* EC Notify of power state */ + Offset (0x88), /* TODO: Aliased to "EB0S" */ + EB0A, 1, + , 2, + EB0R, 1, + EB0L, 1, + EB0F, 1, + EB0N, 1, + Offset (0x90), + SCPM, 1, /* Set cooling policy */ + Offset (0x92), /* TODO: Aliased to "ETAF" */ + ESSF, 1, + ECTT, 1, + EDTT, 1, + EOSD, 1, /* Trip */ + EVTP, 1, + ECP1, 1, + , 1, + ECP2, 1, + Offset (0xA8), + ES0T, 8, /* Temperature */ + ES1T, 8, /* Temperature */ + Offset (0xD0), + ESP0, 8, /* Passive temp */ + ESC0, 8, /* Critical temp */ + ESP1, 8, /* Passive temp */ + ESC1, 8, /* Critical temp */ + } + /* Aliases several battery registers */ + Field (RAM, ByteAcc, Lock, Preserve) + { + Offset (0x88), + EB0S, 8, /* Battery 0 state */ + } + /* Aliases several thermal registers */ + Field (RAM, ByteAcc, Lock, Preserve) + { + Offset (0x92), + ETAF, 8, + } + +#if CONFIG(EC_USE_LGMR) + Field (ECMB, ByteAcc, Lock, Preserve) + { + Offset (0x02), + , 1, + MLID, 1, + , 3, + MACS, 1, + Offset (0x06), + MBTP, 8, + Offset (0x08), + MB0S, 8, + Offset (0x20), + MS0T, 8, + MS1T, 8, + MS2T, 8, + MS3T, 8, + MS4T, 8, + MS5T, 8, + Offset (0x53), + MCSS, 1, + MCTT, 1, + MDTT, 1, + MOSD, 1, + MVTP, 1, + Offset (0x54), + MSP0, 8, + MSC0, 8, + MCC0, 8, + MSC1, 8, + } +#endif + + Method (_REG, 2, NotSerialized) // _REG: Region Availability + { + If (Arg0 == 3) + { + ECOK = Arg1 // OS can clear region availability + If (Arg1 == 1) // On initialise + { + TINI () + EOSS = 0x05 + /* OSYS retrieved by SMM, Arg3 is unused */ +// TRPS (0x82, 1, 0) + + /* + * Other pages return valid data too, but this seems to be + * the page we are expecting - persistently in ectool dump + * with vendor firmware + * FIXME: Contents of other pages? + */ + ETID = 0x20 + } + } + + /* iGFX RC method call stripped */ + } + + Method (TINI, 0, NotSerialized) + { + If (ECOK) + { + ETAF = 0 + ETEE = 1 + } + Else + { + EC_WRITE (0x92, 0) // ETAF = 0 + MBEC (0x10, 0xFD, 0x02) // ETEE = 1 + } + } + + Name (RFST, 0) /* RF state */ + Method (ECPS, 1, NotSerialized) // _PTS: Prepare To Sleep + { + ECSS = Arg0 + /* OSYS retrieved by SMM */ +// TRPS (0x82, 0x02, Arg0) + If ((Arg0 == 3) || (Arg0 == 4)) + { + RFST = RFEX + } + } + + Method (ECWK, 1, NotSerialized) // _WAK: Wake + { + EQEN = 1 + EOSS = Arg0 + TINI () + Notify (BAT0, 0x81) // Information Change + /* OSYS retrieved by SMM */ +// TRPS (0x82, 0x03, Arg0) + If ((Arg0 == 3) || (Arg0 == 4)) + { + RFEX = RFST + Notify (SLPB, 0x02) // Device Wake + } + /* iGFX RC method call stripped */ + } + + Method (MBEC, 3, Serialized) + { + Local0 = EC_READ (Arg0) + Local0 &= Arg1 + Local0 |= Arg2 + EC_WRITE (Arg0, Local0) + } + + /* Graphical hotkey */ + Method (_Q19, 0, NotSerialized) + { + Debug = "Graphical hotkey display switching not implemented in coreboot!" + } + + /* Increase brightness */ + Method (_Q1C, 0, NotSerialized) + { + ^^^GFX0.INCB () + } + + /* Decrease brightness */ + Method (_Q1D, 0, NotSerialized) + { + ^^^GFX0.DECB () + } + + /* Hotkeys */ + Method (_Q2C, 0, NotSerialized) + { + If (LMIB) + { + If (!AHKB) /* Else, WMI clears its buffer? */ + { + Local1 = AHKE + If ((Local1 > 0) && (Local1 < 0x80)) + { + Debug = "Hotkeys - TODO: Airplane mode?" + /* WMI -> "GCMS" method */ + } + ElseIf ((Local1 > 0x80) && (Local1 < 0xA0)) + { + /* TODO: Not working when called by HID mode. What does WMI do here? */ + TPEN ^= 1 + } + } + } + } + + Method (_Q36, 0, NotSerialized) + { + If (ECOK) + { + EOSD = 1 // Thermal trip + } + Else + { + MBEC (0x92, 0xF7, 0x08) // EOSD = 1 + } + + Sleep (500) + Notify (_TZ.TZ01, 0x80) // Thermal Status Change + Notify (_TZ.TZ00, 0x80) // Thermal Status Change + } + + Method (_Q3F, 0, NotSerialized) + { + /* Arg3 is unused */ +// TRPS (0x80, 0, 0) + } + + Method (_Q40, 0, NotSerialized) + { + Notify (BAT0, 0x81) // Information Change + } + + Method (_Q41, 0, NotSerialized) + { + Notify (BAT0, 0x81) // Information Change + } + + /* Battery status change */ + Method (_Q48, 0, NotSerialized) + { + Notify (BAT0, 0x80) + } + + /* Battery critical? */ + Method (_Q4C, 0, NotSerialized) + { + If (B0ST) + { + Notify (BAT0, 0x80) // Status Change + } + } + + /* AC status change: present */ + Method (_Q50, 0, NotSerialized) + { + Notify (ADP1, 0x80) + } + + /* AC status change: not present */ + Method (_Q51, 0, NotSerialized) + { + Notify (ADP1, 0x80) + } + + /* Lid status change: open */ + Method (_Q52, 0, NotSerialized) + { + Notify (LID0, 0x80) + } + + /* Lid status change: close */ + Method (_Q53, 0, NotSerialized) + { + Notify (LID0, 0x80) + } + + Method (_Q60, 0, NotSerialized) + { + Debug = "EC Query (0x60): WMI" + } + + Method (_Q61, 0, NotSerialized) + { + Debug = "EC Query (0x61): WMI" + } + + Method (_Q62, 0, NotSerialized) + { + Debug = "EC Query (0x62): Optimus GC6 or NVIDIA GPS" + } + + Method (_Q63, 0, NotSerialized) + { + Debug = "EC Query (0x63): Optimus GC6 or NVIDIA GPS" + } + + Method (_Q67, 0, NotSerialized) + { + Debug = "EC Query (0x67): NVIDIA GPS" + } + + Method (_Q68, 0, NotSerialized) + { + Debug = "EC Query (0x68): NVIDIA GPS" + } + + Method (_Q6C, 0, NotSerialized) + { + /* Arg3 is unused */ +// TRPS (0x81, 0, 0) + } + + Method (_Q6D, 0, NotSerialized) + { + /* Arg3 is unused */ +// TRPS (0x81, 1, 0) + } + + #include "ac.asl" + #include "battery.asl" +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl new file mode 100644 index 0000000..a3c48b2 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/mainboard.asl @@ -0,0 +1,83 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +// TODO: Does board actually support DPTF? +#include "thermal.asl" + +Scope (_SB) +{ + Method (MPTS, 1, NotSerialized) // _PTS: Prepare To Sleep + { + ^PCI0.LPCB.EC0.ECPS (Arg0) + /* TBT and DTS not supported, TPM.PTS can be called elsewhere */ + } + + Method (MWAK, 1, Serialized) // _WAK: Wake + { + ^PCI0.LPCB.EC0.ECWK (Arg0) + /* No GPIO expander, 8254 clock-gating and PCIe PME can be performed elsewhere */ + + If ((Arg0 == 3) || (Arg0 == 4)) + { + /* DTS and TBT not supported, iGFX RC variable update stripped */ + LIDS = ^LID0._LID () + Notify (LID0, 0x80) // Status Change + /* TODO: Bus checks? Based on KabylakeOpenBoardPkg - Platform.asl + perhaps not (Warm insertion/removal not possible on mobile */ + } + } + + Method (MS0X, 1, Serialized) // S0ix hook. Porting "GUAM" method - "Global User Absent Mode" + { + If (Arg0 == 0) + { + /* Exit "Connected Standby" */ +#if 1 // EC Notification + ^PCI0.LPCB.EC0.EOSS = 0 +#endif + /* TODO: P-state capping, PL setting? */ + } + ElseIf (Arg0 == 1) + { + /* Enter "Connected Standby" */ +#if 1 // EC Notification + ^PCI0.LPCB.EC0.ECSS = 0x08 +#endif + /* TODO: P-state capping, PL setting? */ + } + } + + Device (LID0) + { + Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID + Method (_LID, 0, NotSerialized) // _LID: Lid Status + { +#if CONFIG(EC_USE_LGMR) + Return (^^PCI0.LPCB.EC0.MLID) +#else + Return (^^PCI0.LPCB.EC0.ELID) +#endif + } + + Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake + { + ^^PCI0.LPCB.EC0.EIDW = Arg0 + } + + Name (_PRW, Package () { 0x0A, 3 }) // _PRW: Power Resources for Wake + } + + Device (SLPB) + { + Name (_HID, EisaId ("PNP0C0E") /* Sleep Button Device */) // _HID: Hardware ID + Name (_PRW, Package () { 0x0A, 3 }) // _PRW: Power Resources for Wake + } +} + +Scope (_GPE) +{ + /* TODO - Remaining Level-Triggered GPEs: PCH GPE, PCIe PME, TBT, DTS, GFX SCI and tier-2 (RTD3) */ + Method (_L0A, 0, NotSerialized) + { + Notify (_SB.SLPB, 0x02) // Device Wake + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl new file mode 100644 index 0000000..55b1db5 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/superio.asl @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <drivers/pc80/pc/ps2_controller.asl> diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl new file mode 100644 index 0000000..7d175a2 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/thermal.asl @@ -0,0 +1,121 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +Scope (_TZ) +{ + Name (CRT0, 0) + Name (PSV0, 0) + ThermalZone (TZ01) + { + Method (_TMP, 0, Serialized) // _TMP: Temperature + { +#if CONFIG(EC_USE_LGMR) + Local0 = _SB.PCI0.LPCB.EC0.MS0T + Local1 = _SB.PCI0.LPCB.EC0.MCSS + /* Suppress warning over reading status flag by dummy OR */ + Or (Local1, 1, Local1) + Local2 = _SB.PCI0.LPCB.EC0.MOSD +#else + Local0 = _SB.PCI0.LPCB.EC0.ES0T + /* "MCSS": Considering neighbouring bits, likely + "ESSF" in thermals, not "ECSS" in power notifications */ + Local1 = _SB.PCI0.LPCB.EC0.ESSF + Or (Local1, 1, Local1) + Local2 = _SB.PCI0.LPCB.EC0.EOSD +#endif + If (Local2) // Thermal trip + { + If (Local0 <= CRT0) + { + Local0 = (CRT0 + 2) + } + } + + Return (C2K (Local0)) + } + + Method (_CRT, 0, Serialized) // _CRT: Critical Temperature + { +#if CONFIG(EC_USE_LGMR) + Local0 = _SB.PCI0.LPCB.EC0.MSC0 +#else + Local0 = _SB.PCI0.LPCB.EC0.ESC0 +#endif + If ((Local0 >= 128) || (Local0 < 30)) + { + Local0 = 120 + } + + CRT0 = Local0 + Return (C2K (Local0)) + } + + Method (_SCP, 1, Serialized) // _SCP: Set Cooling Policy + { + If (ECOK) + { + _SB.PCI0.LPCB.EC0.SCPM = Arg0 + } + Else + { + /* MBEC: Called SMI function 0x12 */ + _SB.PCI0.LPCB.EC0.MBEC (0x90, 0xFE, Arg0) // SCPM = Arg0 + } + } + + Method (_PSV, 0, Serialized) // _PSV: Passive Temperature + { +#if CONFIG(EC_USE_LGMR) + Local0 = _SB.PCI0.LPCB.EC0.MSP0 +#else + Local0 = _SB.PCI0.LPCB.EC0.ESP0 +#endif + If ((Local0 >= 128) || (Local0 < 30)) + { + Local0 = 30 + } + + PSV0 = Local0 + Return (C2K (Local0)) + } + } + + ThermalZone (TZ00) + { + Method (_TMP, 0, Serialized) // _TMP: Temperature + { +#if CONFIG(EC_USE_LGMR) + Local0 = _SB.PCI0.LPCB.EC0.MS1T +#else + Local0 = _SB.PCI0.LPCB.EC0.ES1T +#endif + + Return (C2K (Local0)) + } + + Method (_CRT, 0, Serialized) // _CRT: Critical Temperature + { +#if CONFIG(EC_USE_LGMR) + Local0 = _SB.PCI0.LPCB.EC0.MSC1 +#else + Local0 = _SB.PCI0.LPCB.EC0.ESC1 +#endif + If ((Local0 >= 128) || (Local0 < 30)) + { + Local0 = 120 + } + + Return (C2K (Local0)) + } + } + + Method (C2K, 1, NotSerialized) + { + Local0 = Arg0 + If ((Local0 >= 127) || (Local0 <= 16)) + { + Local0 = 30 + } + + Return ((Local0 * 10) + 2732) // Celsius to centi-Kelvin + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/board.fmd b/src/mainboard/acer/aspire_vn7_572g/board.fmd new file mode 100644 index 0000000..44d8a0c --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/board.fmd @@ -0,0 +1,16 @@ +# NOTE: Use CONSOLE for SMM debugging +FLASH 8M { + SI_ALL 2M { + SI_DESC 0x1000 + SI_ME 0x1ff000 + } + SI_BIOS 6M { + EC 0x20000 + RW_MRC_CACHE 0x10000 + # SMMSTORE requires 64k alignment + SMMSTORE 0x40000 + CONSOLE 0x20000 + FMAP 0x200 + COREBOOT(CBFS) 0x56fe00 + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/board_info.txt b/src/mainboard/acer/aspire_vn7_572g/board_info.txt new file mode 100644 index 0000000..f16707e --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/board_info.txt @@ -0,0 +1,8 @@ +Vendor name: Acer +Board name: Aspire VN7-572G +Category: laptop +ROM package: SOIC8 +ROM protocol: SPI +ROM socketed: n +Flashrom support: y +Release year: 2015 diff --git a/src/mainboard/acer/aspire_vn7_572g/bootblock.c b/src/mainboard/acer/aspire_vn7_572g/bootblock.c new file mode 100644 index 0000000..ce150fd --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/bootblock.c @@ -0,0 +1,88 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <bootblock_common.h> +#include <console/console.h> +#include <delay.h> +#include <gpio.h> +#include "include/ec.h" +#include "include/gpio.h" + +#define ADC_3V_10BIT_GRANULARITY_MAX (3005 / 1023) +#define PCB_VER_AD 1 +#define MODEL_ID_AD 3 + +#define DGPU_PRESENT GPP_A20 /* Active low */ +#define DGPU_HOLD_RST GPP_B4 /* Active low */ +#define DGPU_PWR_EN GPP_B21 /* Active low */ + +/* TODO/NB: Detection is still unreliable. Is a wait required? */ +static void board_detect(void) +{ + printk(BIOS_DEBUG, "Mainboard: Detecting board SKU\n"); + + uint16_t data_buffer = read_ec_adc_converter(MODEL_ID_AD); + printk(BIOS_DEBUG, "BoardId (raw) = 0x%x\n", data_buffer); + printk(BIOS_DEBUG, "BoardId: "); + /* Board by max millivoltage range (of 10-bit, 3.005 V ADC) */ + if (data_buffer <= (1374 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_ERR, "Reserved?\n"); + } else if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_DEBUG, "Aspire VN7-792G (Newgate-SLS_dGPU)\n"); + printk(BIOS_CRIT, "WARNING: This board is unsupported!\n"); + printk(BIOS_CRIT, "Damage may result from programming incorrect GPIO table!\n"); + } else if (data_buffer <= (2259 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_DEBUG, "Aspire VN7-592G (Rayleigh-SLS_960M)\n"); + printk(BIOS_CRIT, "WARNING: This board is unsupported!\n"); + printk(BIOS_CRIT, "Damage may result from programming incorrect GPIO table!\n"); + } else { + printk(BIOS_DEBUG, "Aspire VN7-572G (Rayleigh-SL_dGPU)\n"); + } + + data_buffer = read_ec_adc_converter(PCB_VER_AD); + printk(BIOS_DEBUG, "PCB version (raw) = 0x%x\n", data_buffer); + printk(BIOS_DEBUG, "PCB version: "); + /* PCB by max millivoltage range (of 10-bit, 3.005 V ADC) */ + if (data_buffer <= (2017 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_ERR, "Reserved?\n"); + } else if (data_buffer <= (2259 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_DEBUG, "-1\n"); + } else if (data_buffer <= (2493 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_DEBUG, "SC\n"); + } else if (data_buffer <= (2759 / ADC_3V_10BIT_GRANULARITY_MAX)) { + printk(BIOS_DEBUG, "SB\n"); + } else { + printk(BIOS_DEBUG, "SA\n"); + } +} + +static void dgpu_power_on(void) +{ + if (!gpio_get(DGPU_PRESENT)) { + printk(BIOS_DEBUG, "dGPU present, enable power...\n"); + gpio_set(DGPU_HOLD_RST, 0); // Assert dGPU_HOLD_RST# + mdelay(2); + gpio_set(DGPU_PWR_EN, 0); // Assert dGPU_PWR_EN# + mdelay(7); + gpio_set(DGPU_HOLD_RST, 1); // Deassert dGPU_HOLD_RST# + mdelay(30); + } else { + printk(BIOS_DEBUG, "dGPU not present, disable power...\n"); + gpio_set(DGPU_HOLD_RST, 0); // Assert dGPU_HOLD_RST# + gpio_set(DGPU_PWR_EN, 1); // Deassert dGPU_PWR_EN# + } +} + +void bootblock_mainboard_init(void) +{ + /* NB: Relocated from _early_init() so that debug logging works. + * However, if we use this to ensure that the user flashed the correct + * (future) variant, this must occur before any GPIOs are programmed. + */ + board_detect(); + dgpu_power_on(); +} + +void bootblock_mainboard_early_init(void) +{ + mainboard_config_stage_gpios(); +} diff --git a/src/mainboard/acer/aspire_vn7_572g/cmos.default b/src/mainboard/acer/aspire_vn7_572g/cmos.default new file mode 100644 index 0000000..642e341 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/cmos.default @@ -0,0 +1,4 @@ +boot_option=Fallback +debug_level=Debug +power_on_after_fail=Disable +legacy_8254_timer=Disable diff --git a/src/mainboard/acer/aspire_vn7_572g/cmos.layout b/src/mainboard/acer/aspire_vn7_572g/cmos.layout new file mode 100644 index 0000000..7afff9c --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/cmos.layout @@ -0,0 +1,58 @@ +## SPDX-License-Identifier: GPL-2.0-only + +# ----------------------------------------------------------------- +entries + +# start-bit length config config-ID name +0 120 r 0 reserved_memory + +# ----------------------------------------------------------------- +# RTC_BOOT_BYTE (coreboot hardcoded) +384 1 e 1 boot_option +388 4 h 0 reboot_counter + +# ----------------------------------------------------------------- +# coreboot config options: console +392 24 r 0 cmos_post_offset +416 4 e 2 debug_level + +# ----------------------------------------------------------------- +# coreboot config options: southbridge +420 2 e 3 power_on_after_fail +422 1 e 4 legacy_8254_timer + +# ----------------------------------------------------------------- +# vboot nv area +816 64 r 0 boot_count_offset +880 128 r 0 vbnv + +# ----------------------------------------------------------------- +# coreboot config options: check sums +1008 16 h 0 check_sum +#1024 1024 r 0 upper_bank + +# ----------------------------------------------------------------- + +enumerations + +#ID value text +1 0 Fallback +1 1 Normal +2 0 Emergency +2 1 Alert +2 2 Critical +2 3 Error +2 4 Warning +2 5 Notice +2 6 Info +2 7 Debug +2 8 Spew +3 0 Disable +3 1 Enable +3 2 Keep +4 0 Disable +4 1 Enable +# ----------------------------------------------------------------- +checksums + +checksum 416 815 1008 diff --git a/src/mainboard/acer/aspire_vn7_572g/data.vbt b/src/mainboard/acer/aspire_vn7_572g/data.vbt new file mode 100644 index 0000000..b8a0ab8 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/data.vbt Binary files differ diff --git a/src/mainboard/acer/aspire_vn7_572g/devicetree.cb b/src/mainboard/acer/aspire_vn7_572g/devicetree.cb new file mode 100644 index 0000000..409e309 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/devicetree.cb @@ -0,0 +1,336 @@ +## SPDX-License-Identifier: GPL-2.0-only + +chip soc/intel/skylake + + # Intel Common SoC Config + #+-------------------+---------------------------+ + #| Field | Value | + #+-------------------+---------------------------+ + #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT | + #| I2C0 | Touchscreen | + #| I2C1 | Touchpad | + #+-------------------+---------------------------+ + register "common_soc_config" = "{ + .i2c[0] = { + .speed = I2C_SPEED_FAST, + }, + .i2c[1] = { + .speed = I2C_SPEED_FAST, + .speed_config[0] = { + .speed = I2C_SPEED_FAST, + .scl_lcnt = 128, + .scl_hcnt = 160, + .sda_hold = 30, + } + }, + }" + + # TODO: Drop once CB:55224 is merged + register "SerialIoDevMode" = "{ + [PchSerialIoIndexI2C0] = PchSerialIoPci, + [PchSerialIoIndexI2C1] = PchSerialIoPci, + [PchSerialIoIndexI2C4] = PchSerialIoDisabled, + [PchSerialIoIndexUart2] = PchSerialIoSkipInit, + }" + + device cpu_cluster 0 on + device lapic 0 on end + end + device domain 0 on + subsystemid 0x1025 0x1037 inherit + device ref system_agent on + # Enable "Enhanced Intel SpeedStep" + register "eist_enable" = "1" + + # Set the Thermal Control Circuit (TCC) activation value to 97C + # even though FSP integration guide says to set it to 100C for SKL-U + # (offset at 0), because when the TCC activates at 100C, the CPU + # will have already shut itself down from overheating protection. + register "tcc_offset" = "3" # TCC of 97C + + register "SaGv" = "SaGv_Enabled" + + # VR Slew rate setting for improving audible noise + register "AcousticNoiseMitigation" = "1" + register "SlowSlewRateForIa" = "3" # Fast/16 + register "SlowSlewRateForGt" = "3" # Fast/16 + register "SlowSlewRateForSa" = "0" # Fast/2 + register "FastPkgCRampDisableIa" = "0" + register "FastPkgCRampDisableGt" = "0" + register "FastPkgCRampDisableSa" = "0" + + # PL1, PL2 override 35W, PL4 override 43W + register "power_limits_config" = "{ + .tdp_pl1_override = 35, + .tdp_pl2_override = 35, + .tdp_pl4 = 43, + }" + + # ISL95857 VR + # Send VR specific command for PS4 exit issue + register "SendVrMbxCmd" = "2" + # Send VR mailbox command for IA/GT/SA rails + register "IslVrCmd" = "2" + end + device ref igpu on + register "panel_cfg" = "{ + .up_delay_ms = 150, // T3 + .down_delay_ms = 50, // T10 + .cycle_delay_ms = 500, // T12 + .backlight_on_delay_ms = 1, // T7 + .backlight_off_delay_ms = 200, // T9 + .backlight_pwm_hz = 1000, + }" + + # IGD Displays; LFP and 3*EFP + # FIXME: VBT does not define EFP3, board has no EFP2? + register "gfx" = "{ + .use_spread_spectrum_clock = 1, + .ndid = 4, .did = { 0x0400, 0x0300, 0x0301, 0x0302 } + }" + + register "PrimaryDisplay" = "Display_Switchable" + end + device ref sa_thermal off end + device ref chap off end + device ref gmm off end + device ref south_xhci on + register "usb2_ports[0]" = "{ + .enable = 1, + .ocpin = OC_SKIP, + .tx_bias = USB2_BIAS_17MV, + .tx_emp_enable = USB2_DE_EMP_ON, + .pre_emp_bias = USB2_BIAS_28MV, + .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, + }" # Type-A Port (right) + register "usb2_ports[1]" = "{ + .enable = 1, + .ocpin = OC_SKIP, + .tx_bias = USB2_BIAS_17MV, + .tx_emp_enable = USB2_DE_EMP_ON, + .pre_emp_bias = USB2_BIAS_28MV, + .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, + }" # Type-A Port (right) + register "usb2_ports[2]" = "{ + .enable = 1, + .ocpin = OC_SKIP, + .tx_bias = USB2_BIAS_17MV, + .tx_emp_enable = USB2_DE_EMP_ON, + .pre_emp_bias = USB2_BIAS_28MV, + .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, + }" # Type-C Port + register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Type-A Port (left) + register "usb2_ports[4]" = "USB2_PORT_FLEX(OC_SKIP)" # Bluetooth + register "usb2_ports[5]" = "USB2_PORT_FLEX(OC_SKIP)" # Touchscreen + register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Webcam + register "usb2_ports[7]" = "USB2_PORT_FLEX(OC_SKIP)" # SD + register "usb2_ports[8]" = "USB2_PORT_FLEX(OC_SKIP)" # Finger-printer + + register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right); Capable of OTG + register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right) + register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port + register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port + chip drivers/usb/acpi + register "desc" = ""Root Hub"" + register "type" = "UPC_TYPE_HUB" + device usb 0.0 on + chip drivers/usb/acpi + register "desc" = ""USB2 Type-A Right"" + register "type" = "UPC_TYPE_USB3_A" + register "group" = "ACPI_PLD_GROUP(0, 1)" + device usb 2.0 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Type-A Right"" + register "type" = "UPC_TYPE_USB3_A" + register "group" = "ACPI_PLD_GROUP(0, 2)" + device usb 2.1 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Type-C"" + register "type" = "UPC_TYPE_C_USB2_SS" + register "group" = "ACPI_PLD_GROUP(0, 3)" + device usb 2.2 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Type-A Left"" + register "type" = "UPC_TYPE_A" + register "group" = "ACPI_PLD_GROUP(0, 4)" + device usb 2.3 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Bluetooth"" + register "type" = "UPC_TYPE_UNUSED" + register "group" = "ACPI_PLD_GROUP(0, 5)" + device usb 2.4 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Touchscreen"" + register "type" = "UPC_TYPE_UNUSED" + register "group" = "ACPI_PLD_GROUP(0, 6)" + device usb 2.5 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Webcam"" + register "type" = "UPC_TYPE_UNUSED" + register "group" = "ACPI_PLD_GROUP(0, 7)" + device usb 2.6 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 SD"" + register "type" = "UPC_TYPE_UNUSED" + register "group" = "ACPI_PLD_GROUP(0, 8)" + device usb 2.7 on end + end + chip drivers/usb/acpi + register "desc" = ""USB2 Finger-printer"" + register "type" = "UPC_TYPE_UNUSED" + register "group" = "ACPI_PLD_GROUP(0, 9)" + device usb 2.8 on end + end + chip drivers/usb/acpi + register "desc" = ""USB3 Type-A Right"" + register "type" = "UPC_TYPE_USB3_A" + register "group" = "ACPI_PLD_GROUP(0, 1)" + device usb 3.0 on end + end + chip drivers/usb/acpi + register "desc" = ""USB3 Type-A Right"" + register "type" = "UPC_TYPE_USB3_A" + register "group" = "ACPI_PLD_GROUP(0, 2)" + device usb 3.1 on end + end + chip drivers/usb/acpi + register "desc" = ""USB3 Type-C"" + register "type" = "UPC_TYPE_C_USB2_SS" + register "group" = "ACPI_PLD_GROUP(0, 3)" + device usb 3.2 on end + end + chip drivers/usb/acpi + register "desc" = ""USB3 Type-C"" + register "type" = "UPC_TYPE_C_USB2_SS" + register "group" = "ACPI_PLD_GROUP(0, 3)" + device usb 3.3 on end + end + end + end + end + device ref south_xdci off end + device ref thermal on end + device ref cio off end + device ref i2c0 on + chip drivers/i2c/hid + register "generic.name" = ""TPL0"" + register "generic.hid" = ""ELAN2259"" + register "generic.desc" = ""ELAN Touchscreen"" + register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" + register "generic.device_present_gpio" = "GPP_B15" + register "hid_desc_reg_offset" = "0x01" + device i2c 0x10 on end + end + end + device ref i2c1 on + chip drivers/i2c/hid + register "generic.name" = ""TPD0"" + register "generic.hid" = ""SYN1B7F"" + register "generic.desc" = ""Synaptics Touchpad"" + register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)" +# register "generic.wake" = "GPE0_DW2_16" # FIXME: Use EC's GPE? + register "generic.probed" = "1" + register "hid_desc_reg_offset" = "0x20" + device i2c 0x2c on end + end + chip drivers/i2c/hid + register "generic.name" = ""TPD1"" + register "generic.hid" = ""ELAN0501"" + register "generic.desc" = ""ELAN Touchpad"" + register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" + register "generic.probed" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 0x15 on end + end + end + device ref heci1 on end + device ref sata on + register "SataMode" = "SATA_AHCI" + register "SataSalpSupport" = "1" + register "SataPortsEnable[1]" = "1" # HDD; BIT1 in 92h-93h + register "SataPortsEnable[2]" = "1" # ODD; BIT2 in 92h-93h + end + device ref uart2 on end + # Board has no GPIO expander on I2C4 (despite SetupUtility claim that it does - this would be static text) + device ref pcie_rp1 on + register "PcieRpEnable[0]" = "1" + register "PcieRpAdvancedErrorReporting[0]" = "1" + register "PcieRpLtrEnable[0]" = "1" + register "PcieRpClkReqSupport[0]" = "1" + register "PcieRpClkReqNumber[0]" = "0" + register "PcieRpMaxPayload[0]" = "RpMaxPayload_256" + end # PCI Express Port 1 (dGPU; x4) + device ref pcie_rp7 on + register "PcieRpEnable[6]" = "1" + register "PcieRpAdvancedErrorReporting[6]" = "1" + register "PcieRpLtrEnable[6]" = "1" + register "PcieRpClkReqSupport[6]" = "1" + register "PcieRpClkReqNumber[6]" = "3" + register "PcieRpMaxPayload[6]" = "RpMaxPayload_256" + end # PCI Express Port 7 (NGFF; x2) + device ref pcie_rp9 on + register "PcieRpEnable[8]" = "1" + register "PcieRpAdvancedErrorReporting[8]" = "1" + register "PcieRpLtrEnable[8]" = "1" + register "PcieRpClkReqSupport[8]" = "1" + register "PcieRpClkReqNumber[8]" = "1" + register "PcieRpMaxPayload[8]" = "RpMaxPayload_256" + end # PCI Express Port 9 (LAN) + device ref pcie_rp10 on + register "PcieRpEnable[9]" = "1" + register "PcieRpAdvancedErrorReporting[9]" = "1" + register "PcieRpLtrEnable[9]" = "1" + register "PcieRpClkReqSupport[9]" = "1" + register "PcieRpClkReqNumber[9]" = "2" + register "PcieRpMaxPayload[9]" = "RpMaxPayload_256" + # ASPM L0s is broken/unsupported on Qualcomm Atheros QCA6174 (AER: corrected errors) + register "pcie_rp_aspm[9]" = "AspmL1" + end # PCI Express Port 10 (WLAN) + # Although vendor's platform NVS area shows SCS is enabled, the SD card reader is actually connected over USB + device ref lpc_espi on + register "lpc_iod" = "0x0010" # 80h-81h; ComB: 2F8h-2FFh (COM 2) + register "lpc_ioe" = "LPC_IOE_COMA_EN | LPC_IOE_COMB_EN | LPC_IOE_KBC_60_64 + | LPC_IOE_EC_62_66 | LPC_IOE_SUPERIO_2E_2F | LPC_IOE_EC_4E_4F" # 82h-83h + register "gen3_dec" = "0x00040069" # 8Ch-8Fh; EC (sideband): Port 68h/6Ch + register "gen4_dec" = "0x000c1201" # 90h-93h; EC (index): Port 1200h + + # EC/KBC requires continuous mode + register "serirq_mode" = "SERIRQ_CONTINUOUS" + end + device ref p2sb on end + device ref pmc on + # Note that GPE events called out in ASL code rely on this + # route. i.e. If this route changes then the affected GPE + # offset bits also need to be changed. + register "gpe0_dw0" = "GPP_C" # 3:0 in pwrmbase+0120h + register "gpe0_dw1" = "GPP_D" # 7:4 in pwrmbase+0120h + register "gpe0_dw2" = "GPP_E" # 11:8 in pwrmbase+0120h + + # Enable S0ix + register "s0ix_enable" = "1" + + register "PmConfigSlpS3MinAssert" = "SLP_S3_MIN_ASSERT_50MS" # 11:10 in A4h-A7h + register "PmConfigSlpS4MinAssert" = "SLP_S4_MIN_ASSERT_4S" # 5:4 in A4h-A7h + register "PmConfigSlpSusMinAssert" = "SLP_SUS_MIN_ASSERT_4S" # 19:18 in pmbase+0018h + register "PmConfigSlpAMinAssert" = "SLP_A_MIN_ASSERT_2S" # 17:16 in pmbase+0018h + end + device ref hda on + register "DspEnable" = "1" + # PchHdaDspEndpointDmic is only to be returned to reference code + # DXE phase as HOB, used to select blob for NHLT + end + device ref smbus on end + device ref fast_spi on end + device ref tracehub off end + end + chip drivers/crb + device mmio 0xfed40000 on end + end +end diff --git a/src/mainboard/acer/aspire_vn7_572g/die.c b/src/mainboard/acer/aspire_vn7_572g/die.c new file mode 100644 index 0000000..ed459e7 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/die.c @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <console/console.h> +#include <delay.h> +#include <gpio.h> + +void die_notify(void) +{ + if (ENV_POSTCAR) { + return; + } + + /* Make SATA LED blink */ + while (1) { + gpio_set(GPP_E8, 1); + mdelay(100); + gpio_set(GPP_E8, 0); + mdelay(100); + } +} diff --git a/src/mainboard/acer/aspire_vn7_572g/dsdt.asl b/src/mainboard/acer/aspire_vn7_572g/dsdt.asl new file mode 100644 index 0000000..2944688 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/dsdt.asl @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <acpi/acpi.h> +DefinitionBlock( + "dsdt.aml", + "DSDT", + ACPI_DSDT_REV_2, + OEM_ID, + ACPI_TABLE_CREATOR, + 0x20141018 // OEM revision +) +{ + #include <acpi/dsdt_top.asl> + #include <soc/intel/common/block/acpi/acpi/platform.asl> + #include <soc/intel/common/block/acpi/acpi/globalnvs.asl> + #include <cpu/intel/common/acpi/cpu.asl> + #include <southbridge/intel/common/acpi/sleepstates.asl> + + /* SW SMI ports */ + OperationRegion (DPRT, SystemIO, 0xB2, 2) + Field (DPRT, ByteAcc, Lock, Preserve) + { + SSMP, 8, + SSDP, 8 + } + + Name (ESMI, 0xDD) // NOTE: Could insert into SSDT at runtime + /* Returns a non-zero integer if SMI function failed */ + Method (TRPS, 3, Serialized) + { + Debug = Concatenate ("SMIF: ", ToHexString (Arg0)) + Debug = Concatenate ("Param0: ", ToHexString (Arg1)) + Debug = Concatenate ("Param1: ", ToHexString (Arg2)) + + Local0 = Arg1 + Local0 |= (Arg2 << 4) + Debug = Concatenate ("Local0: ", ToHexString (Local0)) + + SMIF = Arg0 + SSDP = Local0 + /* NOTE: To use a general IO trap, program the range + into a PCR_PSTH_TRPREGx. Otherwise, this is APM. */ + SSMP = ESMI + Return (SMIF) + } + + Device (_SB.PCI0) + { + #include <soc/intel/skylake/acpi/systemagent.asl> + #include <soc/intel/skylake/acpi/pch.asl> + #include "acpi/brightness_levels.asl" + } + + #include "acpi/mainboard.asl" +} diff --git a/src/mainboard/acer/aspire_vn7_572g/ec.c b/src/mainboard/acer/aspire_vn7_572g/ec.c new file mode 100644 index 0000000..570e282 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/ec.c @@ -0,0 +1,95 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <arch/io.h> +#include <ec/acpi/ec.h> +#include "include/ec.h" + +/* + * Notes: + * - ACPI "CMDB": Writing to this offset is equivalent to sending commands. + * The CMDx bytes contain the command parameters. + * + * TODO - Implement: + * - Commands: 0x58, 0xE1 and 0xE2 + * - 0x51, 0x52: EC flash write? + * - ACPI CMDB: 0x63 and 0x64, 0xC7 + * - 0x0B: Flash lock/write (Set offset 0x0B?) + * - Key/recovery detection? + * + * Vendor's protocols: + * - Only read and write are used. + * - Query, ACPI "CMDB" processing and command 58 are unused. + * - Equivalent KbcPeim is an unused PPI. + * + * NB: Also look for potential EC library + */ + +#define EC_INDEX_IO_PORT 0x1200 +#define EC_INDEX_IO_HIGH_ADDR_PORT (EC_INDEX_IO_PORT + 1) +#define EC_INDEX_IO_LOW_ADDR_PORT (EC_INDEX_IO_PORT + 2) +#define EC_INDEX_IO_DATA_PORT (EC_INDEX_IO_PORT + 3) + +uint8_t ec_cmd_90_read(uint8_t addr) +{ + /* EC ports: 0x62/0x66 */ + send_ec_command(0x90); + send_ec_data(addr); + return recv_ec_data(); +} + +void ec_cmd_91_write(uint8_t addr, uint8_t data) +{ + /* EC ports: 0x62/0x66 */ + send_ec_command(0x91); + send_ec_data(addr); + send_ec_data(data); +} + +uint8_t ec_cmd_94_query(void) +{ + send_ec_command(0x94); + return recv_ec_data(); +} + +uint8_t ec_idx_read(uint16_t addr) +{ + outb((uint8_t) (addr >> 8), EC_INDEX_IO_HIGH_ADDR_PORT); + outb((uint8_t) addr, EC_INDEX_IO_LOW_ADDR_PORT); + return inb(EC_INDEX_IO_DATA_PORT); +} + +void ec_idx_write(uint16_t addr, uint8_t data) +{ + outb((uint8_t) (addr >> 8), EC_INDEX_IO_HIGH_ADDR_PORT); + outb((uint8_t) addr, EC_INDEX_IO_LOW_ADDR_PORT); + outb(data, EC_INDEX_IO_DATA_PORT); +} + +/* TODO: Check if ADC is valid. Are there 4, or actually 8 ADCs? */ +uint16_t read_ec_adc_converter(uint8_t adc) +{ + uint8_t adc_converters_enabled; // Contains some ADCs and some DACs + uint8_t idx_data; + uint16_t adc_data; + + /* Backup enabled ADCs */ + adc_converters_enabled = ec_idx_read(0xff15); // ADDAEN + + /* Enable desired ADC in bitmask (not enabled by EC FW, not used by vendor FW) */ + ec_idx_write(0xff15, adc_converters_enabled | ((1 << adc) & 0xf)); // ADDAEN + + /* Sample the desired ADC in binary field; OR the start bit */ + ec_idx_write(0xff18, ((adc << 1) & 0xf) | 1); // ADCTRL + + /* Read the desired ADC */ + idx_data = ec_idx_read(0xff19); // ADCDAT + adc_data = (idx_data << 2); + /* Lower 2-bits of 10-bit ADC are in high bits of next register */ + idx_data = ec_idx_read(0xff1a); // ECIF + adc_data |= ((idx_data & 0xc0) >> 6); + + /* Restore enabled ADCs */ + ec_idx_write(0xff15, adc_converters_enabled); // ADDAEN + + return adc_data; +} diff --git a/src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads b/src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads new file mode 100644 index 0000000..fc8bacc --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/gma-mainboard.ads @@ -0,0 +1,16 @@ +-- SPDX-License-Identifier: GPL-2.0-only + +with HW.GFX.GMA; +with HW.GFX.GMA.Display_Probing; + +use HW.GFX.GMA; +use HW.GFX.GMA.Display_Probing; + +private package GMA.Mainboard is + + ports : constant Port_List := + (eDP, + HDMI1, + others => Disabled); + +end GMA.Mainboard; diff --git a/src/mainboard/acer/aspire_vn7_572g/gpio.c b/src/mainboard/acer/aspire_vn7_572g/gpio.c new file mode 100644 index 0000000..ebb954f --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/gpio.c @@ -0,0 +1,374 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <gpio.h> +#include "include/gpio.h" + +/* + * TODO: Vendor configures many NC pads as _TERM_GPO. Why? + * - On direction: Are some of these comments illusory? At least some pads + * are bidirectional on the other side of the GPIO. + */ +/* NB: Do not reconfigure pads used by Optimus, their assertion state may be lost */ + +/* + * TODO: Newgate-SLS and Rayleigh-SLS have PCH-H and use the same ProgramGPIOPei module. + * The GPIO tables retrieved from PCDs are ignored. However, progress on those SKUs + * is held up because the final table passed to function similar to RC's + * GpioConfigureSklPch() is neither, but a zero-assigned variable. The code may be + * computing and dereferencing address pointers from a blob of internal data. + */ + +/* Pad configuration was generated automatically using intelp2m utility */ +static const struct pad_config gpio_table[] = { + + /* ------- GPIO Community 0 ------- */ + + /* ------- GPIO Group GPP_A ------- */ + // RCIN# <= H_RCIN# + PAD_CFG_NF(GPP_A0, NONE, DEEP, NF1), + // LAD0 (ESPI_IO0) <=> LPC_AD_CPU_P0 + PAD_CFG_NF(GPP_A1, NATIVE, DEEP, NF1), + // LAD1 (ESPI_IO1) <=> LPC_AD_CPU_P1 + PAD_CFG_NF(GPP_A2, NATIVE, DEEP, NF1), + // LAD2 (ESPI_IO2) <=> LPC_AD_CPU_P2 + PAD_CFG_NF(GPP_A3, NATIVE, DEEP, NF1), + // LAD3 (ESPI_IO3) <=> LPC_AD_CPU_P3 + PAD_CFG_NF(GPP_A4, NATIVE, DEEP, NF1), + // LFRAME# (ESPI_CS#) => LPC_FRAME#_CPU + PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1), + // SERIRQ <=> INT_SERIRQ + PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1), + // PIRQA# = PIRQA# + PAD_CFG_NF(GPP_A7, NONE, DEEP, NF1), + // CLKRUN# <= PM_CLKRUN#_EC + PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1), + // CLKOUT_LPC0 (ESPI_CLK) <= LPC_CLK_CPU_P0 + PAD_CFG_NF(GPP_A9, DN_20K, DEEP, NF1), + // CLKOUT_LPC1 <= LPC_CLK_CPU_P1 + PAD_CFG_NF(GPP_A10, DN_20K, DEEP, NF1), + // GPIO (PME#) // NC + PAD_CFG_TERM_GPO(GPP_A11, 1, DN_20K, DEEP), + // GPIO (SX_EXIT_HOLDOFF#/BM_BUSY#/ISH_GP6) <= GC6_FB_EN + PAD_CFG_GPI_TRIG_OWN(GPP_A12, NONE, DEEP, OFF, ACPI), + // SUSWARN#/SUSPWRDNACK = PM_SUSACK# + PAD_CFG_NF(GPP_A13, NONE, DEEP, NF1), + // SUS_STAT# (ESPI_RESET#) => PM_SUS_STAT# + PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1), + // SUS_ACK# = PM_SUSACK# + PAD_CFG_NF(GPP_A15, DN_20K, DEEP, NF1), + // GPIO (SD_1P8_SEL) // NC + PAD_NC(GPP_A16, DN_20K), + // GPIO (SD_PWR_EN#/ISH_GP7) // NC + PAD_NC(GPP_A17, DN_20K), + // GPIO (ISH_GP0) => GSENSOR_INT# + PAD_CFG_GPI_TRIG_OWN(GPP_A18, NONE, DEEP, OFF, ACPI), + // GPIO (ISH_GP1) // NC + PAD_NC(GPP_A19, DN_20K), + // GPIO (ISH_GP3) // NC + PAD_NC(GPP_A21, DN_20K), + // GPIO (ISH_GP4) <= GPU_EVENT# + PAD_CFG_GPO(GPP_A22, 1, DEEP), + // GPIO (ISH_GP5) // NC + PAD_NC(GPP_A23, DN_20K), + + /* ------- GPIO Group GPP_B ------- */ + // CORE_VID0 // V0.85A_VID0 + PAD_CFG_NF(GPP_B0, NONE, DEEP, NF1), + // CORE_VID1 // V0.85A_VID1 + PAD_CFG_NF(GPP_B1, NONE, DEEP, NF1), + // GPIO (CPU_GP2) <= TP_IN# + // TODO: APIC-routed pads don't have host owners? + PAD_CFG_GPI_APIC_HIGH(GPP_B3, NONE, DEEP), + // SRCCLKREQ0# <= PEG_CLKREQ_CPU# + PAD_CFG_NF(GPP_B5, NONE, DEEP, NF1), + // SRCCLKREQ1# <= LAN_CLKREQ_CPU# + PAD_CFG_NF(GPP_B6, NONE, DEEP, NF1), + // SRCCLKREQ2# <= WLAN_CLKREQ_CPU# + PAD_CFG_NF(GPP_B7, NONE, DEEP, NF1), + // SRCCLKREQ3# <= MSATA_CLKREQ_CPU# + PAD_CFG_NF(GPP_B8, NONE, DEEP, NF1), + // SRCCLKREQ4# // SRCCLKREQ4# ("Remove TBT") + PAD_CFG_NF(GPP_B9, NONE, DEEP, NF1), + // SRCCLKREQ5# // SRCCLKREQ5# + PAD_CFG_NF(GPP_B10, NONE, DEEP, NF1), + // GPIO (EXT_PWR_GATE#) = EXT_PWR_GATE# + PAD_CFG_TERM_GPO(GPP_B11, 1, DN_20K, DEEP), + // GPIO (SLP_S0#) // NC + PAD_CFG_TERM_GPO(GPP_B12, 1, DN_20K, DEEP), + // PLTRST# => PLT_RST# + PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1), + // GPIO (SPKR) => HDA_SPKR (Strap - Top Swap Override) + PAD_CFG_TERM_GPO(GPP_B14, 1, DN_20K, DEEP), + // GPIO (GSPI0_CS#) = TOUCH_DET# + PAD_CFG_GPO(GPP_B15, 0, DEEP), + // GPIO (GSPI0_CLK) // NC + PAD_CFG_GPO(GPP_B16, 0, DEEP), + // GPIO (GSPI0_MISO) // NC ("Remove TBT") + PAD_CFG_GPI_SCI(GPP_B17, DN_20K, DEEP, EDGE_SINGLE, INVERT), + // GPIO (GSPI0_MOSI) => GPP_B18/GSPI0_MOSI (Strap - No reboot) + PAD_CFG_TERM_GPO(GPP_B18, 1, DN_20K, DEEP), + // GPIO (GSPI1_CS#) => RTC_DET# + PAD_CFG_GPI_TRIG_OWN(GPP_B19, NONE, DEEP, OFF, ACPI), + // GPIO (GSPI1_CLK) <= PSW_CLR# + PAD_CFG_GPI_TRIG_OWN(GPP_B20, DN_20K, DEEP, OFF, ACPI), + // GPIO (GSPI1_MOSI) => GPP_B22/GSPI1_MOSI (Strap - Boot BIOS strap) + PAD_CFG_TERM_GPO(GPP_B22, 1, DN_20K, DEEP), + // GPIO (SML1ALERT#/PCHHOT#) => GPP_B23 (Strap) + PAD_CFG_TERM_GPO(GPP_B23, 1, DN_20K, DEEP), + + /* ------- GPIO Community 1 ------- */ + + /* ------- GPIO Group GPP_C ------- */ + // SMBCLK <= SMB_CLK + PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1), + // SMBDATA = SMB_DATA + PAD_CFG_NF(GPP_C1, DN_20K, DEEP, NF1), + // GPIO (SMBALERT#) => GPP_C2 (Strap - TLS Confidentiality) + PAD_CFG_TERM_GPO(GPP_C2, 1, DN_20K, DEEP), + // GPIO (SML0CLK) // NC + PAD_CFG_TERM_GPO(GPP_C3, 1, DN_20K, DEEP), + // GPIO (SML0DATA) // NC + PAD_CFG_TERM_GPO(GPP_C4, 1, DN_20K, DEEP), + // GPIO (SML0ALERT#) // NC (Strap - eSPI or LPC) + PAD_CFG_TERM_GPO(GPP_C5, 1, DN_20K, DEEP), + // RESERVED (SML1CLK) <=> SML1_CLK (KBC) + // RESERVED (SML1DATA) <=> SML1_DATA (KBC) + // GPIO (UART0_RXD) // NC + PAD_CFG_TERM_GPO(GPP_C8, 1, DN_20K, DEEP), + // GPIO (UART0_TXD) // NC + PAD_CFG_TERM_GPO(GPP_C9, 1, DN_20K, DEEP), + // GPIO (UART0_RTS#) // NC + PAD_CFG_TERM_GPO(GPP_C10, 1, DN_20K, DEEP), + // GPIO (UART0_CTS#) // NC + PAD_CFG_TERM_GPO(GPP_C11, 1, DN_20K, DEEP), + // GPIO (UART1_RXD/ISH_UART1_RXD) // NC + PAD_NC(GPP_C12, DN_20K), + // GPIO (UART1_TXD/ISH_UART1_TXD) // NC + PAD_NC(GPP_C13, DN_20K), + // GPIO (UART1_RTS#/ISH_UART1_RTS#) // NC + PAD_NC(GPP_C14, DN_20K), + // GPIO (UART1_CTS#/ISH_UART1_CTS#) // NC + PAD_NC(GPP_C15, DN_20K), + // I2C0_SDA <=> I2C0_DATA_CPU (Touch Panel) + PAD_CFG_NF(GPP_C16, NONE, DEEP, NF1), + // I2C0_SCL <=> I2C0_CLK_CPU (Touch Panel) + PAD_CFG_NF(GPP_C17, NONE, DEEP, NF1), + // I2C1_SDA <=> I2C1_DATA_CPU (Touch Pad) + PAD_CFG_NF(GPP_C18, NONE, DEEP, NF1), + // I2C1_SCL <=> I2C1_CLK_CPU (Touch Pad) + PAD_CFG_NF(GPP_C19, NONE, DEEP, NF1), + // UART2_RXD = LPSS_UART2_RXD + PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), + // UART2_TXD = LPSS_UART2_TXD + PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), + // UART2_RTS# = LPSS_UART2_RTS# + PAD_CFG_NF(GPP_C22, NONE, DEEP, NF1), + // UART2_CTS# = LPSS_UART2_CTS# + PAD_CFG_NF(GPP_C23, NONE, DEEP, NF1), + + /* ------- GPIO Group GPP_D ------- */ + // GPIO (SPI1_CS#) // NC + PAD_CFG_TERM_GPO(GPP_D0, 1, DN_20K, DEEP), + // GPIO (SPI1_CLK) // NC + PAD_CFG_TERM_GPO(GPP_D1, 1, DN_20K, DEEP), + // SPI1_MISO // NC + PAD_CFG_NF(GPP_D2, NONE, DEEP, NF1), + // SPI1_MOSI // NC + PAD_CFG_NF(GPP_D3, NONE, DEEP, NF1), + // GPIO (FLASHTRIG) // NC + PAD_CFG_TERM_GPO(GPP_D4, 1, DN_20K, DEEP), + // GPIO (ISH_I2C0_SDA) // NC + PAD_NC(GPP_D5, DN_20K), + // GPIO (ISH_I2C0_SCL) // NC + PAD_NC(GPP_D6, DN_20K), + // GPIO (ISH_I2C1_SDA) // NC + PAD_NC(GPP_D7, DN_20K), + // GPIO (ISH_I2C1_SCL) // NC + PAD_NC(GPP_D8, DN_20K), + // GPIO // NC + PAD_CFG_GPI_TRIG_OWN(GPP_D9, NONE, DEEP, LEVEL, ACPI), + // GPIO => TOUCH_S_RST# + PAD_CFG_GPI_TRIG_OWN(GPP_D10, NONE, DEEP, LEVEL, ACPI), + // GPIO // NC + PAD_CFG_GPI_TRIG_OWN(GPP_D11, NONE, DEEP, LEVEL, ACPI), + // GPIO // NC ("Remove TBT") + PAD_CFG_GPI_TRIG_OWN(GPP_D12, NONE, DEEP, LEVEL, ACPI), + // GPIO (ISH_UART0_RXD/SML0BDATA/I2C4B_SDA) // NC + PAD_CFG_TERM_GPO(GPP_D13, 1, DN_20K, DEEP), + // GPIO (ISH_UART0_TXD/SML0BCLK/I2C4B_SCL) // NC + PAD_CFG_TERM_GPO(GPP_D14, 1, DN_20K, DEEP), + // GPIO (ISH_UART0_RTS#) // NC + PAD_CFG_TERM_GPO(GPP_D15, 1, DN_20K, DEEP), + // GPIO (ISH_UART0_CTS#/SML0BALERT#) // NC + PAD_CFG_TERM_GPO(GPP_D16, 1, DN_20K, DEEP), + // GPIO (DMIC_CLK1) // NC + PAD_NC(GPP_D17, DN_20K), + // GPIO (DMIC_DATA1) // NC + PAD_NC(GPP_D18, DN_20K), + // DMIC_CLK0 => DMIC_CLK_CON_R + PAD_CFG_NF(GPP_D19, NONE, DEEP, NF1), + // DMIC_DATA0 => DMIC_PCH_DATA + PAD_CFG_NF(GPP_D20, NONE, DEEP, NF1), + // SPI1_IO2 // NC + PAD_CFG_NF(GPP_D21, NONE, DEEP, NF1), + // SPI1_IO3 // NC + PAD_CFG_NF(GPP_D22, NONE, DEEP, NF1), + // GPIO (I2S_MCLK) // NC + PAD_NC(GPP_D23, DN_20K), + + /* ------- GPIO Group GPP_E ------- */ + // SATAXPCIE0 (SATAGP0) = SATAGP0 + PAD_CFG_NF(GPP_E0, NONE, DEEP, NF1), + // SATAXPCIE1 (SATAGP1) // NC + PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), + // SATAXPCIE2 (SATAGP2) = SATAGP2 + PAD_CFG_NF(GPP_E2, NONE, DEEP, NF1), + // GPIO (CPU_GP0) // NC + PAD_CFG_GPO(GPP_E3, 1, DEEP), + // GPIO (DEVSLP0) // NC ("Remove DEVSLP_PCH") + PAD_CFG_TERM_GPO(GPP_E4, 1, DN_20K, DEEP), + // GPIO (DEVSLP1) // NC + PAD_CFG_TERM_GPO(GPP_E5, 1, DN_20K, DEEP), + // GPIO (DEVSLP2) // NC + PAD_CFG_TERM_GPO(GPP_E6, 1, DN_20K, DEEP), + // GPIO (CPU_GP1) <= TOUCH_INT# + PAD_CFG_GPI_APIC_LOW(GPP_E7, NONE, DEEP), + // SATALED# = SATA_LED# + PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1), + // USB2_OC0# = USB_OC# + PAD_CFG_NF(GPP_E9, NONE, DEEP, NF1), + // USB2_OC1# // USB_OC# + PAD_CFG_NF(GPP_E10, NONE, DEEP, NF1), + // USB2_OC2# // USB_OC# + PAD_CFG_NF(GPP_E11, NONE, DEEP, NF1), + // USB2_OC3# // USB_OC# + PAD_CFG_NF(GPP_E12, NONE, DEEP, NF1), + // DDPB_HPD0 <= DDI1_HDMI_HPD_CPU + PAD_CFG_NF(GPP_E13, NONE, DEEP, NF1), + // DDPC_HPD1 // NC ("Remove HPD") + PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), + // GPIO (DDPD_HPD2) <= EC_SMI# + // FIXME: Vendor configures as _TERM_GPO. Why? + PAD_CFG_GPI_SMI(GPP_E15, NONE, DEEP, LEVEL, INVERT), + // GPIO (DDPE_HPD3) <= EC_SCI# + PAD_CFG_GPI_SCI(GPP_E16, NONE, PLTRST, LEVEL, INVERT), + // EDP_HPD <= eDP_HPD_CPU + PAD_CFG_NF(GPP_E17, NONE, DEEP, NF1), + // DDPB_CTRLCLK <=> DDI1_HDMI_CLK_CPU + PAD_CFG_NF(GPP_E18, NONE, DEEP, NF1), + // DDPB_CTRLDATA <=> DDI1_HDMI_DATA_CPU (Strap - Display Port B Detected) + PAD_CFG_NF(GPP_E19, DN_20K, DEEP, NF1), + // DDPC_CTRLCLK // NC + PAD_CFG_NF(GPP_E20, NONE, DEEP, NF1), + // DDPC_CTRLDATA => DDPC_CDA (Strap - Display Port C Detected) + PAD_CFG_NF(GPP_E21, DN_20K, DEEP, NF1), + // GPIO // NC + // TODO: Vendor configures as _GPIO_BIDIRECT. Why? + PAD_NC(GPP_E22, NONE), + // GPIO => DDPD_CDA (Strap - Display Port D Detected) + PAD_CFG_TERM_GPO(GPP_E23, 1, DN_20K, DEEP), + + /* ------- GPIO Community 2 ------- */ + + /* -------- GPIO Group GPD -------- */ + // GPIO (BATLOW#) = BATLOW + PAD_CFG_TERM_GPO(GPD0, 1, DN_20K, PWROK), + // ACPRESENT <= AC_PRESENT + PAD_CFG_NF(GPD1, NONE, PWROK, NF1), + // GPIO (LAN_WAKE#) = GPD2/LAN_WAKE# + PAD_CFG_TERM_GPO(GPD2, 1, DN_20K, PWROK), + // PWRBTN# <= PM_PWRBTN# + PAD_CFG_NF(GPD3, UP_20K, PWROK, NF1), + // SLP_S3# => PM_SLP_S3# + PAD_CFG_NF(GPD4, NONE, PWROK, NF1), + // SLP_S4# => PM_SLP_S4# + PAD_CFG_NF(GPD5, NONE, PWROK, NF1), + // SLP_A# // NC + PAD_CFG_NF(GPD6, DN_20K, PWROK, NF1), + // GPIO (RSVD#AT15) // NC + PAD_CFG_TERM_GPO(GPD7, 1, DN_20K, PWROK), + // SUSCLK => SUS_CLK_CPU + PAD_CFG_NF(GPD8, NONE, PWROK, NF1), + // SLP_WLAN# // NC + PAD_CFG_NF(GPD9, DN_20K, PWROK, NF1), + // SLP_S5# // NC + PAD_CFG_NF(GPD10, DN_20K, PWROK, NF1), + // GPIO (LANPHYPC) // NC + PAD_CFG_TERM_GPO(GPD11, 1, DN_20K, PWROK), + + /* ------- GPIO Community 3 ------- */ + + /* ------- GPIO Group GPP_F ------- */ + // GPIO (I2S2_SCLK) // NC + PAD_NC(GPP_F0, DN_20K), + // GPIO (I2S2_SFRM) // NC + PAD_NC(GPP_F1, DN_20K), + // GPIO (I2S2_TXD) // NC + PAD_NC(GPP_F2, DN_20K), + // GPIO (I2S2_RXD) // NC + PAD_NC(GPP_F3, DN_20K), + // GPIO (I2C2_SDA) // NC + PAD_NC(GPP_F4, DN_20K), + // GPIO (I2C2_SCL) // NC + PAD_NC(GPP_F5, DN_20K), + // GPIO (I2C3_SDA) // NC + PAD_NC(GPP_F6, DN_20K), + // GPIO (I2C3_SCL) // NC + PAD_NC(GPP_F7, DN_20K), + // GPIO (I2C4_SDA) // NC + PAD_CFG_TERM_GPO(GPP_F8, 1, DN_20K, DEEP), + // GPIO (I2C4_SCL) // NC + PAD_CFG_TERM_GPO(GPP_F9, 1, DN_20K, DEEP), + // GPIO (I2C5_SDA/ISH_I2C2_SDA) // NC + PAD_NC(GPP_F10, DN_20K), + // GPIO (I2C5_SCL/ISH_I2C2_SCL) // NC + PAD_NC(GPP_F11, DN_20K), + // GPIO (EMMC_CMD) // NC + PAD_NC(GPP_F12, DN_20K), + // GPIO (EMMC_DATA0) // NC + PAD_NC(GPP_F13, DN_20K), + // GPIO (EMMC_DATA1) // NC + PAD_NC(GPP_F14, DN_20K), + // GPIO (EMMC_DATA2) // NC + PAD_NC(GPP_F15, DN_20K), + // GPIO (EMMC_DATA3) // NC + PAD_NC(GPP_F16, DN_20K), + // GPIO (EMMC_DATA4) // NC + PAD_NC(GPP_F17, DN_20K), + // GPIO (EMMC_DATA5) // NC + PAD_NC(GPP_F18, DN_20K), + // GPIO (EMMC_DATA6) // NC + PAD_NC(GPP_F19, DN_20K), + // GPIO (EMMC_DATA7) // NC + PAD_NC(GPP_F20, DN_20K), + // GPIO (EMMC_RCLK) // NC + PAD_NC(GPP_F21, DN_20K), + // GPIO (EMMC_CLK) // NC + PAD_NC(GPP_F22, DN_20K), + // GPIO // NC + PAD_CFG_GPI_APIC_HIGH(GPP_F23, NONE, DEEP), + + /* ------- GPIO Group GPP_G ------- */ + // GPIO (SD_CMD) // NC + PAD_NC(GPP_G0, DN_20K), + // GPIO (SD_DATA0) // NC + PAD_NC(GPP_G1, DN_20K), + // GPIO (SD_DATA1) // NC + PAD_NC(GPP_G2, DN_20K), + // GPIO (SD_DATA2) // NC + PAD_NC(GPP_G3, DN_20K), + // GPIO (SD_DATA3) // NC + // TODO: Vendor configures as _GPO. Why? + PAD_NC(GPP_G4, NONE), + // GPIO (SD_CD#) // NC + PAD_NC(GPP_G5, DN_20K), + // GPIO (SD_CLK) // NC + PAD_NC(GPP_G6, DN_20K), + // GPIO (SD_WP) // NC + PAD_NC(GPP_G7, DN_20K), +}; + +void mainboard_config_stage_gpios(void) +{ + gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table)); +} diff --git a/src/mainboard/acer/aspire_vn7_572g/gpio_early.c b/src/mainboard/acer/aspire_vn7_572g/gpio_early.c new file mode 100644 index 0000000..ad66661 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/gpio_early.c @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <gpio.h> +#include "include/gpio.h" + +/* Early pad configuration */ +static const struct pad_config early_gpio_table[] = { + // GPIO (ISH_GP2) = DGPU_PRESENT + PAD_CFG_GPI_TRIG_OWN(GPP_A20, NONE, DEEP, OFF, ACPI), + // GPIO (VRALERT#) <= DGPU_PWROK + PAD_CFG_GPI_TRIG_OWN(GPP_B2, NONE, DEEP, OFF, ACPI), + // GPIO (CPU_GP3) => DGPU_HOLD_RST# + PAD_CFG_GPO(GPP_B4, 1, DEEP), + // GPIO (GSPI1_MISO) => DGPU_PWR_EN# + PAD_CFG_TERM_GPO(GPP_B21, 1, DN_20K, DEEP), + // UART2_RXD = LPSS_UART2_RXD + PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), + // UART2_TXD = LPSS_UART2_TXD + PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), + // SATALED# = SATA_LED# + PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1), +}; + +void mainboard_config_stage_gpios(void) +{ + gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); +} diff --git a/src/mainboard/acer/aspire_vn7_572g/hda_verb.c b/src/mainboard/acer/aspire_vn7_572g/hda_verb.c new file mode 100644 index 0000000..20197d1 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/hda_verb.c @@ -0,0 +1,118 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* TODO: Convert to macros */ + +#include <device/azalia_device.h> + +const u32 cim_verb_data[] = { + /* --- Codec #0 --- */ + /* coreboot specific header */ + 0x10ec0255, /* Codec Vendor / Device ID: Realtek ALC255 */ + 0x10251037, /* Subsystem ID */ + 20, /* Number of jacks (NID entries) */ + + /* Codec Address: Bits 31:28 */ + /* Node ID: Bits 27:20 */ + /* Verb ID: Bits 19:8 / Bits 19:16 */ + /* Payload: Bits 7:0 / Bits 15:0 */ + + /* Reset Codec */ + AZALIA_RESET(0x1), + /* NOTE: Corrected the table in vendor FW, programming subsystem after reset */ + /* HDA Codec Subsystem ID Verb Table */ + AZALIA_SUBVENDOR(0, 0x10251037), + + /* Pin Widget Verb Table */ + AZALIA_PIN_CFG(0, 0x12, 0x411111c0), + AZALIA_PIN_CFG(0, 0x14, 0x90172120), /* Speaker */ + AZALIA_PIN_CFG(0, 0x17, 0x40000000), + AZALIA_PIN_CFG(0, 0x18, AZALIA_PIN_CFG_NC(0)), + AZALIA_PIN_CFG(0, 0x19, AZALIA_PIN_CFG_NC(0)), + AZALIA_PIN_CFG(0, 0x1a, AZALIA_PIN_CFG_NC(0)), + AZALIA_PIN_CFG(0, 0x1b, AZALIA_PIN_CFG_NC(0)), + AZALIA_PIN_CFG(0, 0x1d, 0x40700001), + AZALIA_PIN_CFG(0, 0x1e, AZALIA_PIN_CFG_NC(0)), + AZALIA_PIN_CFG(0, 0x21, 0x02211030), /* Headphone */ + + /* + * See data blob in "InstallPchHdaVerbTablePei" of vendor firmware + * (some appear in https://github.com/torvalds/linux/blob/master/sound/pci/hda/patch_realtek.c). + * - Largely coefficient programming (undocumented): Select coeff; write data + * - Also programs speaker amplifier gain + * - Sets speaker output + * NOTE: NID 0x20 holds the "Realtek Defined Hidden registers" + */ + 0x02050038, /* Set coeff idx: 0x38 */ + 0x02048981, /* Set processing coeff: 0x8981 */ + 0x02050045, /* Set coeff idx: 0x45 */ + 0x0204c489, /* Set processing coeff: 0xc489 */ + + 0x02050037, /* Set coeff idx: 0x37 */ + 0x02044a05, /* Set processing coeff: 0x4a05 */ + 0x05750003, /* Set coeff idx on NID 0x57?: 0x3 */ + 0x057486a6, /* Set processing coeff on NID 0x57?: 0x86a6 */ + + 0x02050046, /* Set coeff idx: 0x46 */ + 0x02040004, /* Set processing coeff: 0x4 */ + 0x0205001b, /* Set coeff idx: 0x1b */ + 0x02040a0b, /* Set processing coeff: 0xa0b */ + + 0x02050008, /* Set coeff idx: 0x8 */ + 0x02046a0c, /* Set processing coeff: 0x6a0c */ + 0x02050009, /* Set coeff idx: 0x9 */ + 0x0204e003, /* Set processing coeff: 0xe003 */ + + 0x0205000a, /* Set coeff idx: 0xa */ + 0x02047770, /* Set processing coeff: 0x7770 */ + 0x02050040, /* Set coeff idx: 0x40 */ + 0x02049800, /* Set processing coeff: 0x9800 */ + + 0x02050010, /* Set coeff idx: 0x10 */ + 0x02040e20, /* Set processing coeff: 0xe20 */ + 0x0205000d, /* Set coeff idx: 0xd */ + 0x02042801, /* Set processing coeff: 0x2801 */ + + 0x0143b000, /* Sends unknown verb 0x3B to speaker */ + 0x0143b000, /* Repeated for units? */ + 0x01470740, /* Set widget control on speaker: Output; VrefEn: Hi-Z (disabled) */ + 0x01470740, /* Repeated for units? */ + + 0x01470740, /* Repeated for units? */ + 0x01470740, /* Repeated for units? */ + 0x02050010, /* Set coeff idx: 0x10 */ + 0x02040f20, /* Set processing coeff: 0xf20 */ + + /* --- Codec #2 --- */ + /* coreboot specific header */ + 0x80862809, /* Codec Vendor / Device ID: Intel Skylake HDMI */ + 0x80860101, /* Subsystem ID */ + 5, /* Number of jacks (NID entries) */ + + /* Codec Address: Bits 31:28 */ + /* Node ID: Bits 27:20 */ + /* Verb ID: Bits 19:8 */ + /* Payload: Bits 7:0 */ + + /* NOTE: Corrected the table in vendor FW, using codec address 0x2, not 0x0 */ + + /* Enable the third converter and pin first */ + 0x20878101, + 0x20878101, + 0x20878101, + 0x20878101, + + /* Pin Widget Verb Table */ + AZALIA_PIN_CFG(2, 0x05, 0x18560010), + AZALIA_PIN_CFG(2, 0x06, 0x18560020), + AZALIA_PIN_CFG(2, 0x07, 0x18560030), + + /* Disable the third converter and third pin */ + 0x20878100, + 0x20878100, + 0x20878100, + 0x20878100, +}; + +const u32 pc_beep_verbs[] = {}; + +AZALIA_ARRAY_SIZES; diff --git a/src/mainboard/acer/aspire_vn7_572g/include/ec.h b/src/mainboard/acer/aspire_vn7_572g/include/ec.h new file mode 100644 index 0000000..49651de --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/include/ec.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef MAINBOARD_EC_H +#define MAINBOARD_EC_H + +uint8_t ec_cmd_90_read(uint8_t addr); +void ec_cmd_91_write(uint8_t addr, uint8_t data); +uint8_t ec_cmd_94_query(void); +uint8_t ec_idx_read(uint16_t addr); +void ec_idx_write(uint16_t addr, uint8_t data); +/* TODO: Check if ADC is valid. */ +uint16_t read_ec_adc_converter(uint8_t adc); + +#endif diff --git a/src/mainboard/acer/aspire_vn7_572g/include/gpio.h b/src/mainboard/acer/aspire_vn7_572g/include/gpio.h new file mode 100644 index 0000000..ed8518e --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/include/gpio.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef MAINBOARD_GPIO_H +#define MAINBOARD_GPIO_H + +void mainboard_config_stage_gpios(void); + +#endif diff --git a/src/mainboard/acer/aspire_vn7_572g/mainboard.c b/src/mainboard/acer/aspire_vn7_572g/mainboard.c new file mode 100644 index 0000000..eba9e98 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/mainboard.c @@ -0,0 +1,159 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <acpi/acpi.h> +#include <arch/io.h> +#include <console/console.h> +#include <device/pci_ops.h> +#include <drivers/intel/gma/int15.h> +#include <ec/acpi/ec.h> +#include <halt.h> +#include <intelblocks/lpc_lib.h> +#include <intelblocks/pmclib.h> +#include <rtc.h> +#include <soc/nhlt.h> +#include <soc/pci_devs.h> +#include <soc/pm.h> +#include "include/ec.h" +#include "include/gpio.h" + +static unsigned long mainboard_write_acpi_tables( + const struct device *device, unsigned long current, acpi_rsdp_t *rsdp) +{ + uintptr_t start_addr; + uintptr_t end_addr; + struct nhlt *nhlt; + + start_addr = current; + + nhlt = nhlt_init(); + if (!nhlt) { + return start_addr; + } + + /* Override subsystem ID */ + nhlt->subsystem_id = 0x10251037; + + /* 1 Channel DMIC array. */ + if (nhlt_soc_add_dmic_array(nhlt, 1) != 0) { + printk(BIOS_ERR, "Couldn't add 1CH DMIC array.\n"); + } + + /* 2 Channel DMIC array. */ + if (nhlt_soc_add_dmic_array(nhlt, 2) != 0) { + printk(BIOS_ERR, "Couldn't add 2CH DMIC array.\n"); + } + + end_addr = nhlt_soc_serialize(nhlt, start_addr); + + if (end_addr != start_addr) { + acpi_add_table(rsdp, (void *)start_addr); + } + + return end_addr; +} + +static void mainboard_enable(struct device *dev) +{ + install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, + GMA_INT15_PANEL_FIT_DEFAULT, + GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); + + if (CONFIG(INCLUDE_NHLT_BLOBS)) { + dev->ops->write_acpi_tables = mainboard_write_acpi_tables; + } +} + +/* Update the EC's clock. */ +static void ec_send_time(void) +{ + struct rtc_time time; + uint8_t ec_time_byte; + + rtc_get(&time); + + /* RTC time could be negative (before 2016) */ + int32_t ec_time = ((time.year << 26) + (time.mon << 22) + (time.mday << 17) + + (time.hour << 12) + (time.min << 6) + (time.sec) + /* 16 years */ + - 0x40000000); + + printk(BIOS_DEBUG, "EC: reporting present time 0x%x\n", ec_time); + send_ec_command(0xE0); + for (int i = 0; i < 4; i++) { + /* Shift bytes */ + ec_time_byte = (uint8_t) (ec_time >> (i * 8)); + printk(BIOS_DEBUG, "EC: Sending 0x%x (iteration %d)\n", ec_time_byte, i); + send_ec_data(ec_time_byte); + } + + printk(BIOS_DEBUG, "EC: response 0x%x\n", recv_ec_data()); +} + +static void ec_requests_time(void) +{ + /* This is executed as protocol notify in vendor's RtKbcDriver + when *CommonService protocol is installed. Effectively, + this code could execute from the entrypoint */ + uint8_t dat = ec_cmd_90_read(0x79); + if (dat & 1) { + ec_send_time(); + } +} + +/* + * Init from vendor's PeiOemModule. KbcPeim does not appear to be used + * (It implements commands also found in RtKbcDriver and SmmKbcDriver). + * + * Mostly, this puts the system back to sleep if the lid is closed during + * an S3 resume. + */ +static void ec_init(void) +{ + /* This is called via a "$FNC" in a PeiOemModule pointer table, + with "$DPX" on SiInit */ + outb(0x5A, 0x6C); // 6Ch is the EC sideband port + if (acpi_is_wakeup_s3()) { + /* "MLID" in LGMR-based memory map is equivalent to "ELID" in EC-based + memory map. Vendor firmware accesses through LGMR; remapped + - ec_cmd* function calls will not remapped */ + uint8_t power_state = ec_read(0x70); + if (!(power_state & 2)) { // Lid is closed + uint8_t out_data = ec_cmd_90_read(0x0A); + if (!(out_data & 2)) { + ec_cmd_91_write(0x0A, out_data | 2); + } + + /* Clear below events and go back to sleep */ + /* Clear ABase PM1_STS - RW/1C set bits */ + pmc_clear_pm1_status(); + /* Clear ABase GPE0_STS[127:96] - RW/1C set bits */ + uint32_t gpe_sts = inl(ACPI_BASE_ADDRESS + GPE0_STS(GPE_STD)); + outl(gpe_sts, ACPI_BASE_ADDRESS + GPE0_STS(GPE_STD)); + /* Clear xHCI PM_CS[PME_Status] - RW/1C - + and disable xHCI PM_CS[PME_En] */ + pci_update_config16(PCH_DEV_XHCI, 0x74, ~0x100, 0x8000); + + /* Enter S3 sleep */ + pmc_enable_pm1_control(SLP_EN | (SLP_TYP_S3 << SLP_TYP_SHIFT)); + halt(); + } + } +} + +static void mainboard_init(void *chip_info) +{ + mainboard_config_stage_gpios(); + /* Notify EC */ + ec_init(); + /* Program the same 64K range of EC memory as vendor FW + - Open unconditionally, user can select whether ACPI uses LGMR */ + lpc_open_mmio_window(0xFE800000, 0x10000); + /* EC is notified of platform resets with UEFI firmware, but coreboot + does not offer this service to boards */ + ec_requests_time(); +} + +struct chip_operations mainboard_ops = { + .enable_dev = mainboard_enable, + .init = mainboard_init, +}; diff --git a/src/mainboard/acer/aspire_vn7_572g/romstage.c b/src/mainboard/acer/aspire_vn7_572g/romstage.c new file mode 100644 index 0000000..74e1438 --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/romstage.c @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <assert.h> +#include <soc/romstage.h> +#include <spd_bin.h> +#include <stdint.h> +#include <string.h> + +void mainboard_memory_init_params(FSPM_UPD *mupd) +{ + FSP_M_CONFIG *const mem_cfg = &mupd->FspmConfig; + + /* TODO: Search vendor FW for Dq/Dqs */ + struct spd_block blk = { + .addr_map = { 0x50, 0x52 }, + }; + const uint16_t rcomp_resistors[3] = { 121, 80, 100 }; + /* Also the default values in FSP binary */ + const uint16_t rcomp_targets[5] = { 100, 40, 40, 23, 40 }; + + get_spd_smbus(&blk); + dump_spd_info(&blk); + assert(blk.spd_array[0][0] != 0); + + assert(sizeof(mem_cfg->RcompResistor) == sizeof(rcomp_resistors)); + assert(sizeof(mem_cfg->RcompTarget) == sizeof(rcomp_targets)); + memcpy(mem_cfg->RcompResistor, rcomp_resistors, sizeof(mem_cfg->RcompResistor)); + memcpy(mem_cfg->RcompTarget, rcomp_targets, sizeof(mem_cfg->RcompTarget)); + + mem_cfg->CaVrefConfig = 2; + mem_cfg->DqPinsInterleaved = 1; + mem_cfg->MemorySpdDataLen = blk.len; + mem_cfg->MemorySpdPtr00 = (uintptr_t) blk.spd_array[0]; + mem_cfg->MemorySpdPtr10 = (uintptr_t) blk.spd_array[1]; + + mem_cfg->PchSataHsioRxGen3EqBoostMagEnable[1] = 1; + mem_cfg->PchSataHsioRxGen3EqBoostMag[1] = 1; +} diff --git a/src/mainboard/acer/aspire_vn7_572g/smihandler.c b/src/mainboard/acer/aspire_vn7_572g/smihandler.c new file mode 100644 index 0000000..88ec10d --- /dev/null +++ b/src/mainboard/acer/aspire_vn7_572g/smihandler.c @@ -0,0 +1,188 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <arch/io.h> +#include <console/console.h> +#include <cpu/x86/msr.h> +#include <cpu/x86/smm.h> +#include <ec/acpi/ec.h> +#include <soc/nvs.h> + +/* + * TODO: Perform RE of protocols in vendor firmware: + * - gEfiSmmSxDispatch2ProtocolGuid + * - gEfiSmmPowerButtonDispatch2ProtocolGuid + * + * However, note that first glance suggests that no handlers + * will be very interesting and that gEfiSmmGpiDispatch2ProtocolGuid + * was unused (as I recall). + * + * Also, consider gEfiSmmIoTrapDispatch2ProtocolGuid, but + * this is less likely. + */ + +/* Keep in sync with dsdt.asl; could insert into SSDT at runtime */ +#define APM_CNT_BOARD_SMI 0xDD + +/* Toggle TURBO_MODE_DISABLE bit in IA32_MISC_ENABLE MSR + when requested by EC. */ +static void toggle_turbo_disable(uint8_t function_parameter_0) +{ + if (function_parameter_0 == 1) { + printk(BIOS_DEBUG, "EC: Enabling Intel Turbo Mode\n"); + msr_unset(IA32_MISC_ENABLE, 0x4000000000); + } else if (function_parameter_0 == 0) { + printk(BIOS_DEBUG, "EC: Disabling Intel Turbo Mode\n"); + msr_set(IA32_MISC_ENABLE, 0x4000000000); + } +} + +/* Set WiFi and BT enable bits in EC RAM. */ +static void enable_rf_by_capability(void) +{ + /* FIXME: We're not tracking (driver) 'capabilities' at the moment (must we?), + so we just enable WiFi and BT here. If this was tracked, then + bits may be cleared here */ + uint8_t rf_register = ec_read(0x71); + ec_write(0x71, rf_register | 0x03); +} + +/* Set OS capability bits in EC RAM. */ +static void handle_acpi_osys(void) +{ + uint8_t os_support; + + /* TODO: Add _OSI method support to coreboot and make this work */ + printk(BIOS_DEBUG, "GNVS.OSYS = %d\n", gnvs->unused_was_osys); + switch (gnvs->unused_was_osys) { + /* Linux */ + case 1000: + os_support = 64; + break; + /* Windows versions by year */ + case 2009: + os_support = 3; + break; + case 2012: + os_support = 4; + break; + case 2013: + os_support = 5; + break; + case 2015: + os_support = 6; + break; + /* Operating system unknown */ + default: + printk(BIOS_DEBUG, "GNVS.OSYS not supported!\n"); + printk(BIOS_DEBUG, "No capabilities!\n"); + os_support = 0; + break; + } + + ec_write(0x5C, os_support); +} + +/* Handles EC's _REG, _PTS and _WAK methods. + Partially involves setting EC RAM offsets based on GNVS.OSYS - OS capabilities? */ +static void handle_acpi_wake_event( + uint8_t function_parameter_0, uint8_t function_parameter_1) +{ + switch (function_parameter_0) { + case 1: + printk(BIOS_DEBUG, "EC: Called for _REG method - OS initialise\n"); + enable_rf_by_capability(); + handle_acpi_osys(); + // NOTE: Not handling (driver) 'capabilities' + break; + case 2: + printk(BIOS_DEBUG, "EC: Called for _PTS method - Entering sleep\n"); + // NOTE: Not saving (driver) 'capabilities' + // NOTE: Not saving and restoring EC RAM offset 0x4F + break; + case 3: + printk(BIOS_DEBUG, "EC: Called for _WAK method - Sleep resume\n"); + enable_rf_by_capability(); + handle_acpi_osys(); + // NOTE: Not saving and restoring EC RAM offset 0x4F + break; + default: + printk(BIOS_DEBUG, "function_parameter_0 is invalid!\n"); + break; + } +} + +/* TODO: Reverse engineer 0x80 function and implement if necessary */ +static void ec_smi_handler(uint8_t smif) +{ + uint8_t smm_data_port; + uint8_t function_parameter_0; + uint8_t function_parameter_1; + + /* Parameters encoded onto SMI data port because PRMx NVS are not present + - Callers must only use 4 bits per argument + - _PTS and _WAK are required to call in spec-compliant way */ + smm_data_port = inb(APM_STS); + function_parameter_0 = smm_data_port & ~0xF0; + function_parameter_1 = smm_data_port >> 4; + + printk(BIOS_DEBUG, "Function 0x%x(0x%x, 0x%x) called\n", + smif, function_parameter_0, function_parameter_1); + switch (smif) { + case 0x80: + printk(BIOS_WARNING, "Function 0x80 is unimplemented!\n"); + printk(BIOS_DEBUG, "Function calls offset 0 in ACER_BOOT_DEVICE_SERVICE_PROTOCOL_GUID\n"); + break; + case 0x81: + toggle_turbo_disable(function_parameter_0); + break; + case 0x82: + handle_acpi_wake_event(function_parameter_0, function_parameter_1); + break; + default: + /* Not handled */ + printk(BIOS_DEBUG, "Requested function is unknown!\n"); + return; + } + + /* + * gnvs->smif: + * - On success, the handler returns 0 + * - On failure, the handler returns a value != 0 + */ + gnvs->smif = 0; +} + +int mainboard_smi_apmc(u8 data) +{ + /* TODO: Continue SmmKbcDriver RE of common service registration and confirm */ + switch (data) { + case APM_CNT_BOARD_SMI: + if (gnvs) { + ec_smi_handler(gnvs->smif); + } + break; + case APM_CNT_ACPI_ENABLE: /* Events generate SCIs for OS */ + /* use 0x68/0x6C to prevent races with userspace */ + ec_set_ports(0x6C, 0x68); + /* discard all events */ + ec_clear_out_queue(); + /* Tests at runtime show this re-enables charging and battery reporting */ + send_ec_command(0xE9); /* Vendor implements using ACPI "CMDB" register" */ + send_ec_data(0x81); + /* TODO: Set touchpad GPP owner to ACPI? */ + break; + case APM_CNT_ACPI_DISABLE: /* Events generate SMIs for SMM */ + /* use 0x68/0x6C to prevent races with userspace */ + ec_set_ports(0x6C, 0x68); + /* discard all events */ + ec_clear_out_queue(); + /* Tests at runtime show this disables charging and battery reporting */ + send_ec_command(0xE9); /* Vendor implements using ACPI "CMDB" register" */ + send_ec_data(0x80); + /* TODO: Set touchpad GPP owner to GPIO? */ + break; + default: + break; + } + return 0; +}