From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c01::22d; helo=mail-pl0-x22d.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x22d.google.com (mail-pl0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D4398223230F7 for ; Fri, 23 Feb 2018 17:47:48 -0800 (PST) Received: by mail-pl0-x22d.google.com with SMTP id x19so5915634plr.13 for ; Fri, 23 Feb 2018 17:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4bZBbv73q1EkETItGp66S8VrBcRfpWxsEuYd3uATTWQ=; b=hDDJJBvfGhcchjIRJRJpECMxZfMNhtbSFrGhD2xihTw5AZiOOeUwWp/+jPHQg3S8uR 7EHZbgysaH0PTldJwHv/leA+0CLYY/uqThzptywfrFMp8XQIM1EZ8kAIuxfKysLsfsvM zdvIPsZhfbTdROO+UvHD/PJ6ua+s6BbFb7eCY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4bZBbv73q1EkETItGp66S8VrBcRfpWxsEuYd3uATTWQ=; b=YBIZAy41I6A7Nomn8Kf+BUdVvyOUT2QEwUkdbpovva7WKhyriJmm5qaOragpEL5Xv+ Y3Enq5GsGLNEFKbD5FU15N70bIZk2tKtUirCfIvpObq3wQAj8t6jFimp6nMk8l5R2q+Z X5AM4ZsYvB6pl+LIcNNGKP8kMTvFOWKRqTkcmX8CUEKc/tzArGFbqnJoi+AJR3fRaGYU 6/enzYUxjberCCDheJRRsAit0h9k2lb6CGvyt70zeTmunorHtf6GiJOlGmn14fdBAw9p de5yqj6uxgNG6d6S/DR9beuUu1lbcuaBegttSipUH+Z8ygHF2g59rUt8ONkg5AgFt0kd wWbg== X-Gm-Message-State: APf1xPBfYpqHELYO0pOfXkxDoax3ZYucJUT4dulaJSGZSE/LOIUy/kLm xbdK2FnOStArSGefwFp0MpWq0w== X-Google-Smtp-Source: AH8x22461YUr/gSm/RZpyk3Bi7gY3Ce8zPQ0FGPe52vB0LsCL0QKjA717F4GO7avndSRIuWKmUkXBQ== X-Received: by 2002:a17:902:7b95:: with SMTP id w21-v6mr3440841pll.35.1519437230831; Fri, 23 Feb 2018 17:53:50 -0800 (PST) Received: from SZX1000114654 ([104.237.91.49]) by smtp.gmail.com with ESMTPSA id h127sm7422276pfc.14.2018.02.23.17.53.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 17:53:50 -0800 (PST) From: Guo Heyi X-Google-Original-From: Guo Heyi Date: Sat, 24 Feb 2018 09:53:45 +0800 To: Ard Biesheuvel Cc: Guo Heyi , Jeremy Linton , Leif Lindholm , linaro-uefi , "edk2-devel@lists.01.org" , Graeme Gregory , huangming , John Garry , Jason Zhang , wanghuiqiang , guoheyi@huawei.com, waip23@126.com, Mengfanrong , huangdaode@hisilicon.com Message-ID: <20180224015345.GC111587@SZX1000114654> References: <1517572648-11343-1-git-send-email-heyi.guo@linaro.org> <1517572648-11343-8-git-send-email-heyi.guo@linaro.org> <20180223031735.GE95440@SZX1000114654> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [PATCH edk2-non-osi v3 7/7] Hisilicon/D05: Update binary of trusted-firmware X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Feb 2018 01:47:49 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 23, 2018 at 09:02:46AM +0000, Ard Biesheuvel wrote: > On 23 February 2018 at 03:17, Guo Heyi wrote: > > Hi Jeremy, > > > > This TF binaries have not been patched the latest SMCCC workaround; it is based > > on v1.4 release and was only > > patched with "disable/enable MMU in PSCI SMC call", as the commit in upstream TF > > code: > > f62ad322695d16178db464dc062fe0af592c6780 > > > > When we generated these binaries, SMCCC patches had not come out so they are not > > contained in these binaries. > > > > Do you recommend using the latest smccc patches? > > > > Yes. > > The Spectre v2 mitigations that landed in v4.16 and were backported to > v4.15 and v4.14 LTS do not use the PSCI_VERSION call anymore to > perform branch predictor invalidation. Instead, it checks for > SMCCCv1.1, and uses the ARCH_WORKAROUND_1 SMC call if supported. If > not, no BP maintenance is performed. Thanks, we'll try to apply the smccc patch to TF. Heyi