Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757396AbbGGNEg (ORCPT ); Tue, 7 Jul 2015 09:04:36 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:35217 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175AbbGGNE1 convert rfc822-to-8bit (ORCPT ); Tue, 7 Jul 2015 09:04:27 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: [PATCHv3 08/16] staging: vme_user: provide DMA functionality From: Dmitry Kalinkin In-Reply-To: Date: Tue, 7 Jul 2015 16:04:18 +0300 Cc: Martyn Welch , devel@driverdev.osuosl.org, Greg Kroah-Hartman , Igor Alekseev , LKML , Manohar Vanga Content-Transfer-Encoding: 8BIT Message-Id: <93E02D37-4D54-4572-BC4B-86A12D2F65F6@gmail.com> References: <1432814833-5320-1-git-send-email-dmitry.kalinkin@gmail.com> <1432814833-5320-9-git-send-email-dmitry.kalinkin@gmail.com> <20150613002807.GA17459@kroah.com> <559A8117.4060701@ge.com> <559A9556.4040303@ge.com> <78FC1849-FFE4-49E5-8421-25D27324F790@gmail.com> To: Alessio Igor Bogani X-Mailer: Apple Mail (2.2102) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1294 Lines: 31 > On 07 Jul 2015, at 15:51, Alessio Igor Bogani wrote: > >> Current VME stack links windows not to the boards, but to device drivers. >> Driver >> could potentially minimise window usage within it’s scope (any sort of >> window >> reusing, like mapping whole A16 once to be used with all boards), but this >> won’t >> work across multiple drivers. Even if all of your drivers are window-wise >> economic, >> they will still need some amount of windows per each driver. Not that we >> have that >> many kernel drivers... > > Yes you can share a window/image between all boards of the same type > (in effect we are porting our drivers in this way) *but* it isn't the > expected way to work (see Documentation/vme_api.txt struct > vme_driver's probe() and match() functions and the GE PIO2 VME > driver). And vme_pio2 can’t handle more than 8 boards. This shows that the current design needs some adjustments. Also would be great if probe() and match() allowed for void *private data field. Cheers, Dmitry-- 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/