From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aWnla-0006BP-Nt for mharc-grub-devel@gnu.org; Fri, 19 Feb 2016 11:18:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWnlX-00066B-6w for grub-devel@gnu.org; Fri, 19 Feb 2016 11:18:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWnlT-0005yb-3E for grub-devel@gnu.org; Fri, 19 Feb 2016 11:18:47 -0500 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWnlS-0005yP-Lw for grub-devel@gnu.org; Fri, 19 Feb 2016 11:18:42 -0500 Received: by mail-wm0-x22a.google.com with SMTP id a4so77922805wme.1 for ; Fri, 19 Feb 2016 08:18:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=FG6u3HHmg122er3VH2ZeB2BehANqCyzVMIopM9ap0zQ=; b=L++wAJ8RxfsXRbxyrrS0n7u7AkYxmZ1xpQQpu9bqDrLJt4S/RpEUR8ClYfm5IviBoC jsgrd88bU03H8SA715kZZS0S1njb52EbA70LKTjKlVyUlK5iRWQ/R18sI3zFHfXGNmbR NnFBEJ5o+o9vz3ZLBcz28njCwx9mOuFPvW4ZQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=FG6u3HHmg122er3VH2ZeB2BehANqCyzVMIopM9ap0zQ=; b=PhxMXt7HTmaVqx9p4QheqbNtC2BEiOHs8WqniYgvqRC8p9CpBfO8emOJKuTxiUuphG 1VKZ3NN0Ich/9P4GoYQWoA4ClkqEmN58Yg67Lgju3V+7QZV32um0+ETFgcCjcJDA517k PlMCGzL2Nn5yYWCP1C+BakeYMihDxFYmFLZUCKHv25f+koij8khm+tXOtLvyc/kMUBT/ frbt4dPEcYvPpc0uTdzIVZAn1zsdAFUj5TFfFZ3GoMUKIF3HMtxge0mfclb1JN616bzG OCyC+Ac/4bv6l9n9fKjfiKfc47dIXZjzm4pcINIW6rgyhmgTVBe3ESWdudYDbssidwNR pANw== X-Gm-Message-State: AG10YOQHQ4izZow6G8WXYOWbnt/RpuEN63Z5DSuHO/Bp3gBlh2UO/0QGibC6sblZtBJP6BGr X-Received: by 10.194.186.198 with SMTP id fm6mr13975299wjc.51.1455898722057; Fri, 19 Feb 2016 08:18:42 -0800 (PST) Received: from mohikan.mushroom.smurfnet.nu (cpc92308-cmbg19-2-0-cust814.5-4.cable.virginm.net. [82.24.251.47]) by smtp.gmail.com with ESMTPSA id t205sm8304703wmt.23.2016.02.19.08.18.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Feb 2016 08:18:41 -0800 (PST) From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH 0/2] Alternative efidisk alignment resolution Date: Fri, 19 Feb 2016 16:18:32 +0000 Message-Id: <1455898714-25127-1-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22a X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 16:18:48 -0000 The tmp buffer approach did add noticeable delay when booting with a full distro kernel and initrd. This alternative implementation starts by adding a hook for a device specific malloc function into grub_disk_t, and a wrapper in disk.c making use of it. Leif Lindholm (2): disk: Add support for device-specific malloc function efidisk: respect block_io_protocol minimum buffer alignment grub-core/disk/efi/efidisk.c | 19 +++++++++++++++++-- grub-core/kern/disk.c | 13 +++++++++++-- include/grub/disk.h | 5 +++++ 3 files changed, 33 insertions(+), 4 deletions(-) -- 2.1.4