From: Leif Lindholm <leif.lindholm@linaro.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: edk2-devel@lists.01.org, masahisa.kojima@linaro.org
Subject: Re: [PATCH edk2-platforms 1/3] Silicon/SynQuacerPciHostBridgeLib: add workaround for PCIe MMIO64
Date: Thu, 31 May 2018 10:11:20 +0100 [thread overview]
Message-ID: <20180531091120.u3oqbzskpr6rnhen@bivouac.eciton.net> (raw)
In-Reply-To: <20180530181929.5066-2-ard.biesheuvel@linaro.org>
On Wed, May 30, 2018 at 08:19:27PM +0200, Ard Biesheuvel wrote:
> From: Masahisa KOJIMA <masahisa.kojima@linaro.org>
>
> The current revision of SC2A11 contains PCIe bus issue.
> In MRd transaction, 1st/Last DW BE fields are not correctly set
> by hardware.
>
> As a workaround, set TH bit and specify MSG_CODE in iATU.
> With this setup, the value specified as MSG_CODE is set to the
> 1st/Last DW BE fields and PCIe controller can emit the correct
> MRd TLP header.
> Same workaround was already included for MMIO32 region,
> MMIO64 region also requires this workaround.
> Some deivices, such as Samsong SSD 970 EVO, do not work
> without this modification.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Masahisa KOJIMA <masahisa.kojima@linaro.org>
Please add own S-o-b.
> ---
> Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLibConstructor.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLibConstructor.c b/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLibConstructor.c
> index e4679543cc66..227f9a725ce8 100644
> --- a/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLibConstructor.c
> +++ b/Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLibConstructor.c
> @@ -359,8 +359,9 @@ PciInitControllerPost (
> RootBridge->MemAbove4G.Base,
> RootBridge->MemAbove4G.Base,
> RootBridge->MemAbove4G.Limit - RootBridge->MemAbove4G.Base + 1,
> - IATU_REGION_CTRL_1_OFF_OUTBOUND_0_TYPE_MEM,
> - 0);
> + IATU_REGION_CTRL_1_OFF_OUTBOUND_0_TYPE_MEM |
> + IATU_REGION_CTRL_1_OFF_OUTBOUND_0_TH,
> + IATU_REGION_CTRL_2_OFF_OUTBOUND_0_MSG_CODE_32BIT);
Hmm ...
This fix clearly needs to go in. But since this is working around a
bug in first-revision silicon, should we not have something
conditional here?
/
Leif
> }
>
> // enable link
> --
> 2.17.0
>
next prev parent reply other threads:[~2018-05-31 9:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-30 18:19 [PATCH edk2-platforms 0/3] More SynQuacer updates Ard Biesheuvel
2018-05-30 18:19 ` [PATCH edk2-platforms 1/3] Silicon/SynQuacerPciHostBridgeLib: add workaround for PCIe MMIO64 Ard Biesheuvel
2018-05-31 9:11 ` Leif Lindholm [this message]
2018-05-31 9:17 ` Ard Biesheuvel
2018-05-31 9:46 ` Leif Lindholm
2018-05-31 10:49 ` Ard Biesheuvel
2018-05-30 18:19 ` [PATCH edk2-platforms 2/3] Silicon/Socionext/SynQuacer/Stage2Tables: add north SMMU level 3 table Ard Biesheuvel
2018-05-31 9:14 ` Leif Lindholm
2018-06-01 10:18 ` Ard Biesheuvel
2018-05-30 18:19 ` [PATCH edk2-platforms 3/3] Silicon/SynQuacer/AcpiTables: add NETSEC/eMMC SMMU to the IORT Ard Biesheuvel
2018-05-31 9:16 ` Leif Lindholm
2018-10-12 10:03 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180531091120.u3oqbzskpr6rnhen@bivouac.eciton.net \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox