From nobody Sun Feb 8 18:29:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+78607+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78607+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1628002890; cv=none; d=zohomail.com; s=zohoarc; b=U5XmW/rt5J1uFDk7p+m19esZJbpv67A9OIfI7evw3H0142ALxbtkVlYk+Lq1nxtB9JQJ9xw6XnptcVX9/F+psQiSpiDVspQN70ufLZNvceQfjjBLQYelPUmzgkmlm1bO8Pxbo3pEZM5GNDWgKYfh8SBqNW1FkeYhV5WjldIWOvg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628002890; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=am3hKVL/YoHpy5FTtK4mMlyXfdfeR56qaRTtT/Dg0pg=; b=XXt/49tpmZwD24GZ5fFpgPw6JZ7zO8eLbDAvT9daBota5vKNnyZBp2a12zLUqWBJUvHSN8AiBwwUResQb1QwfdE7wT4KG3onP2rwj10DUplyAT51RIsL3pyZDvfZpNtEDLrITQEG2LVI1scSp/RsklMcpvodpGUxzKkkOJJQ4k8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+78607+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1628002890032214.87934840289358; Tue, 3 Aug 2021 08:01:30 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id il2xYY1788612xwm78icrpzQ; Tue, 03 Aug 2021 08:01:29 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web09.6536.1628002889120809250 for ; Tue, 03 Aug 2021 08:01:29 -0700 X-Received: from localhost.localdomain (unknown [167.220.2.74]) by linux.microsoft.com (Postfix) with ESMTPSA id B68CB20B36E8; Tue, 3 Aug 2021 08:01:28 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B68CB20B36E8 From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone Subject: [edk2-devel] [edk2-platforms][PATCH v5 43/46] KabylakeOpenBoardPkg/PeiSerialPortLibSpiFlash: Update for new SPI PPI API Date: Tue, 3 Aug 2021 11:00:42 -0400 Message-Id: <20210803150042.1150-7-mikuback@linux.microsoft.com> In-Reply-To: <20210803150042.1150-1-mikuback@linux.microsoft.com> References: <20210803150042.1150-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mikuback@linux.microsoft.com X-Gm-Message-State: 9mXLsiclMuLDNgdCKWl1es2vx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628002889; bh=fs1lDH2h+6SDYrLIkRpJALq8izhTKvnz+aU+cHY9ILY=; h=Cc:Date:From:Reply-To:Subject:To; b=MJf1dcDLqFpPrM/Edu7X9uBQxjYPyifArqn1q4FmgTeYQGs+kBmKWS5xAax6ETv8HwY HAYGJZ1VT3WD47m6leszdbzKhPI5LyrWkJMmFEwObf8RK0Fl1kTv5rJoD1XUFRp/vLZ5x 9AjnBjA9X1IvTVKjbj2gDJGt0hEX2PGBBII= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628002909805100006 Content-Type: text/plain; charset="utf-8" From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3307 Updates usage of gPchSpiPpiGuid to use the new interface that identifies SPI flash regions by GUID. Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Michael Kubacki --- Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/PeiSe= rialPortLibSpiFlash.c | 4 ++-- Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/PeiSe= rialPortLibSpiFlash.inf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSp= iFlash/PeiSerialPortLibSpiFlash.c b/Platform/Intel/KabylakeOpenBoardPkg/Lib= rary/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.c index fc48bdc6fccb..fe8883a8af29 100644 --- a/Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/= PeiSerialPortLibSpiFlash.c +++ b/Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/= PeiSerialPortLibSpiFlash.c @@ -98,7 +98,7 @@ SerialPortWrite ( LinearOffset =3D (UINT32) (FixedPcdGet32 (PcdFlashNvDebugMessageBase) = - FixedPcdGet32 (PcdFlashAreaBaseAddress)); Status =3D PchSpiPpi->FlashErase ( PchSpiPpi, - FlashRegionBios, + &gFlashRegionBiosGuid, LinearOffset, NvMessageAreaSize ); @@ -118,7 +118,7 @@ SerialPortWrite ( =20 Status =3D PchSpiPpi->FlashWrite ( PchSpiPpi, - FlashRegionBios, + &gFlashRegionBiosGuid, LinearOffset, BytesWritten, (UINT8 *) &Buffer[SourceBufferOffset] diff --git a/Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSp= iFlash/PeiSerialPortLibSpiFlash.inf b/Platform/Intel/KabylakeOpenBoardPkg/L= ibrary/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.inf index b959cd1f4612..b8ae214f0920 100644 --- a/Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/= PeiSerialPortLibSpiFlash.inf +++ b/Platform/Intel/KabylakeOpenBoardPkg/Library/PeiSerialPortLibSpiFlash/= PeiSerialPortLibSpiFlash.inf @@ -43,6 +43,7 @@ [Ppis] gPchSpiPpiGuid =20 [Guids] + gFlashRegionBiosGuid gSpiFlashDebugHobGuid =20 [Pcd] --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#78607): https://edk2.groups.io/g/devel/message/78607 Mute This Topic: https://groups.io/mt/84640511/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-