From patchwork Mon Sep 13 14:32:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 64606 X-Patchwork-Delegate: leann.ogasawara@canonical.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id BF617B70AA for ; Tue, 14 Sep 2010 00:33:10 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1OvA5a-00076o-RJ; Mon, 13 Sep 2010 15:32:58 +0100 Received: from mail.tpi.com ([70.99.223.143]) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1OvA5Y-00074g-9F for kernel-team@lists.ubuntu.com; Mon, 13 Sep 2010 15:32:56 +0100 Received: from sepang.rtg.net (unknown [10.0.2.5]) by mail.tpi.com (Postfix) with ESMTP id F1FEF2675D5; Mon, 13 Sep 2010 07:32:20 -0700 (PDT) Received: by sepang.rtg.net (Postfix, from userid 1000) id 58FD5F8A09; Mon, 13 Sep 2010 08:32:53 -0600 (MDT) To: leann@canonical.com Subject: Maverick pull request, pre-stable LP633227, bounce: call flush_dcache_page after bounce_copy_vec Message-Id: <20100913143253.58FD5F8A09@sepang.rtg.net> Date: Mon, 13 Sep 2010 08:32:53 -0600 (MDT) From: timg@tpi.com (Tim Gardner) Cc: kernel-team@lists.ubuntu.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com The following changes since commit 639eb74f08df97c272042f346a870a9cbf3b7a50: Leann Ogasawara (1): UBUNTU: Ubuntu-2.6.35-21.30 are available in the git repository at: git://kernel.ubuntu.com/rtg/ubuntu-maverick.git flush_dcache_page-LP633227 Gary King (1): (pre-stable) bounce: call flush_dcache_page after bounce_copy_vec mm/bounce.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From 356088fe4e0da011698c7d3bfe16b9ec7e982250 Mon Sep 17 00:00:00 2001 From: Gary King Date: Mon, 13 Sep 2010 13:49:22 +0800 Subject: [PATCH] (pre-stable) bounce: call flush_dcache_page after bounce_copy_vec the bounced page needs to be flushed after data is copied into it, to ensure that architecture implementations can synchronize instruction and data caches if necessary. This patch was posted at armlinux mail list and was asked by Andrew Morton and Jens Axboe. We tried this patch and found is fixed memtester issue. (http://lists.infradead.org/pipermail/linux-arm-kernel/2010-September/025373.html) BugLink: http://bugs.launchpad.net/bugs/633227 Signed-off-by: Gary King Tested-by: Ricardo Salveti de Araujo Tested-by: Sebastien Jan Signed-off-by: Bryan Wu Signed-off-by: Tim Gardner --- mm/bounce.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/bounce.c b/mm/bounce.c index 13b6dad..1481de6 100644 --- a/mm/bounce.c +++ b/mm/bounce.c @@ -116,8 +116,8 @@ static void copy_to_high_bio_irq(struct bio *to, struct bio *from) */ vfrom = page_address(fromvec->bv_page) + tovec->bv_offset; - flush_dcache_page(tovec->bv_page); bounce_copy_vec(tovec, vfrom); + flush_dcache_page(tovec->bv_page); } }