Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758927Ab0BYDso (ORCPT ); Wed, 24 Feb 2010 22:48:44 -0500 Received: from smtp-out002.kontent.com ([81.88.40.216]:35773 "EHLO smtp-out002.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758904Ab0BYDsn (ORCPT ); Wed, 24 Feb 2010 22:48:43 -0500 From: Oliver Neukum To: Benjamin Herrenschmidt Subject: Re: USB mass storage and ARM cache coherency Date: Thu, 25 Feb 2010 04:48:17 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.33-rc8-0.1-default; KDE/4.3.1; x86_64; ; ) Cc: Catalin Marinas , Matthew Dharm , "Russell King - ARM Linux" , Greg KH , "Mankad, Maulik Ojas" , Sergei Shtylyov , Sebastian Siewior , linux-usb@vger.kernel.org, "linux-kernel" , James Bottomley , "Shilimkar, Santosh" , Pavel Machek , Ming Lei , "linux-arm-kernel" References: <1266445892.16346.306.camel@pasglop> <201002240816.10178.oliver@neukum.org> <1267045954.23523.1692.camel@pasglop> In-Reply-To: <1267045954.23523.1692.camel@pasglop> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201002250448.17866.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 953 Lines: 25 Am Mittwoch, 24. Februar 2010 22:12:34 schrieb Benjamin Herrenschmidt: > On Wed, 2010-02-24 at 08:16 +0100, Oliver Neukum wrote: > > I don't know. The issue seems quite complex. It would seem better to > > centralize it as far as practical. Do you have a wrapper drivers could > > call? > > flush_dcache_page() ? :-) Will this do anything on arches that don't need it? Secondly, can we have a wrapper that you can pass a pointer and an offset? > Now, the subsystem might be the one to know whether something is mapped > into userspace or not (v4l in our case) in which case a wrapper could be > created. If possible, I'd like to centralize this. Drivers are likely to get this wrong. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/