From: Wolfgang Denk Date: Tue, 25 Oct 2011 09:26:55 +0200 Subject: [U-Boot] [PATCH v3 6/6] part_efi: dcache: allocate cacheline aligned buffers In-Reply-To: <1318463764-28244-7-git-send-email-robotboy@chromium.org> References: <1318463764-28244-1-git-send-email-robotboy@chromium.org> <1318463764-28244-7-git-send-email-robotboy@chromium.org> Message-ID: <20111025072655.E92091408EA7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anton Staaf, In message <1318463764-28244-7-git-send-email-robotboy@chromium.org> you wrote: > Currently part_efi.c allocates buffers for the gpt_header, the > legacy_mbr, and the pte (partition table entry) that may be > incorrectly aligned for DMA operations. > > This patch uses ALLOC_CACHE_ALIGN_BUFFER for the stack allocated > buffers and memalign to replace the malloc of the pte. > > Signed-off-by: Anton Staaf > Cc: Lukasz Majewski > Cc: Mike Frysinger > Cc: Albert ARIBAUD > --- > disk/part_efi.c | 18 +++++++++--------- > 1 files changed, 9 insertions(+), 9 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In the strict scientific sense we all feed on death -- even vegetarians. -- Spock, "Wolf in the Fold", stardate 3615.4