Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934983AbdLSLAf (ORCPT ); Tue, 19 Dec 2017 06:00:35 -0500 Received: from mx01.hxt-semitech.com.96.203.223.in-addr.arpa ([223.203.96.7]:40873 "EHLO barracuda.hxt-semitech.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S934193AbdLSLAb (ORCPT ); Tue, 19 Dec 2017 06:00:31 -0500 X-Greylist: delayed 881 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Dec 2017 06:00:31 EST X-ASG-Debug-ID: 1513680557-093b7e6d1566e30001-xx1T2L X-Barracuda-Envelope-From: ge.song@hxt-semitech.com From: Ge Song CC: Ge Song , Matt Fleming , Ard Biesheuvel , , Subject: [PATCH 0/2] Make capsules in a contiguous virtual space Date: Tue, 19 Dec 2017 18:49:13 +0800 X-ASG-Orig-Subj: [PATCH 0/2] Make capsules in a contiguous virtual space Message-ID: <1513680554-5682-1-git-send-email-ge.song@hxt-semitech.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.64.17.247] X-ClientProxiedBy: HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) To HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) X-Barracuda-Connect: localhost[10.128.0.14] X-Barracuda-Start-Time: 1513680557 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://192.168.50.101:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5142 1.0000 0.7500 X-Barracuda-Spam-Score: 0.75 X-Barracuda-Spam-Status: No, SCORE=0.75 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.45655 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 678 Lines: 20 Recently we found it failed to update firmware through capsule update mechanism in linux-4.14 and later version. After some investigation, the reason is firmware expects capsules in a contiguous virtual space and this assumption is not satisfied in recent linux versions. Ge Song (2): Revert "efi/capsule-loader: Use page addresses rather than struct page pointers" efi/capsule-loader: Request a contiguous virtual space for capsules drivers/firmware/efi/capsule-loader.c | 23 ++++++++++++++--------- drivers/firmware/efi/capsule.c | 7 +++---- include/linux/efi.h | 4 ++-- 3 files changed, 19 insertions(+), 15 deletions(-) -- 2.7.4