[Top] [All Lists]

Re: [PATCH] Apply kmap_high_get with MIPS

To: "Dezhong Diao (dediao)" <>
Subject: Re: [PATCH] Apply kmap_high_get with MIPS
From: Kevin Cernekee <>
Date: Thu, 27 May 2010 11:24:07 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=wJG5DrHUKD+W8GR3DpGQgiwsI4fl2w+eZR3rlgvjqJ4=; b=UY+zmaXbFP9WRejhMTE6ITe1/l6eyS5Y0GqZHycS+N14wfUyN70ciz2gV/64puY5lU Ujis0vDhiwinuOTlNZMNTTfd+iVGVkHVLlhO5zmi13r1Uuw1L+pwgT1CGtEc3Wd27qAV Us8vE91NRBKsY30Z9nNwvSuHcDs5A3+oDb79k=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UR1ocN2CMQXDNxrZaSIz24wQ644kb7hxEIHBq0wFkkZoAqRdr0HSLVpvLNMcDJ9N/K MW3rRcPOSzRFox3rUN0rf2HEhdm8ZLf/UX0782QWfyUxH+l4AcwyymfqYs3PwCbsqcrV fCFEOE6Qpgy190jR7snfr/lys6ZSWmnkjzXeI=
In-reply-to: <>
Original-recipient: rfc822;
References: <>
On Mon, May 3, 2010 at 4:40 PM, Dezhong Diao (dediao) <> wrote:
> +               addr = (unsigned long)kmap_high_get(page);
> +               if (addr) {
> +                       addr += offset;
> +                       __dma_sync_virtual(addr, size, direction);
> +                       kunmap_high(page);
> +               }

When addr == 0, no flush is performed and that results in serious
coherency problems on my system.

The latest ARM code has a special "VIPT" handler for this case; I
suspect that MIPS needs something similar:

My cache is VIPT with no aliases.

<Prev in Thread] Current Thread [Next in Thread>