From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ohad Ben-Cohen Subject: Re: [RFC/PATCH 0/6] DSPBRIDGE: fix mem+cache API issues Date: Mon, 24 May 2010 19:19:42 +0300 Message-ID: References: <1272746671-13423-1-git-send-email-ohad@wizery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-gy0-f174.google.com ([209.85.160.174]:37028 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755727Ab0EXQUE (ORCPT ); Mon, 24 May 2010 12:20:04 -0400 Received: by gyg13 with SMTP id 13so1558675gyg.19 for ; Mon, 24 May 2010 09:20:04 -0700 (PDT) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Felipe Contreras Cc: linux-omap@vger.kernel.org, Kanigeri Hari , Omar Ramirez Luna , Guzman Lugo Fernando , Menon Nishanth , Hiroshi Doyu On Fri, May 21, 2010 at 12:42 PM, Felipe Contreras wrote: > Although I'm still worried that VM_IO != write-combine, but I guess > it's a safe assumption to do for now. small update we missed: The original code is ignoring VM_IO buffers as well: static int memory_sync_vma(unsigned long start, u32 len, enum dsp_flushtype ftype) { ... if (vma->vm_flags & (VM_IO | VM_PFNMAP)) return -EINVAL; ... } So the new code is actually behaving in exactly the same manner (besides the error code, which is now -EFAULT and not -EINVAL).