Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset=us-ascii From: Michael Haberler In-Reply-To: <9c648f9ec1a5abf4d783d8f3a9ada651.squirrel@sourcetrek.com> Date: Sun, 14 Jun 2015 09:31:17 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7296329D-54C3-446C-A206-956BCBAEE441@gmail.com> References: <4019d695cc8c27a13bd17adc951e3ade.squirrel@sourcetrek.com> <05AD097B-C2A0-4279-A170-79385AC005B1@gmail.com> <9c648f9ec1a5abf4d783d8f3a9ada651.squirrel@sourcetrek.com> Subject: Re: [Xenomai] RTDM-native mainlining - status? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai > Am 13.06.2015 um 09:19 schrieb Gilles Chanteperdrix = : >=20 >=20 > Michael Haberler wrote: >> I hope I do not overlook some boundary condition - but assuming that >> building out-of-tree RTDM support is significantly less invasive and >> version-dependent than patching a kernel, that scheme could = enormously >> widen the range of platforms we could deploy with good results, and = at the >> same time lower maintenance requirements. >=20 > No, alas a Linux driver is always version-dependent, so, the driver = would > contain some wrappers to handle differences between version. But this = is > not something new, everybody maintaining out-of-tree Linux kernel code = has > been doing it for a very long time. We do it for Xenomai, even Linux > developers are doing it for the driver backport project. certainly, but if the problem scope changes from "patch a specific = kernel version for full Xenomai support" to "maintain the API and = support library for a set of out-of-tree drivers on top of a stock = kernel from elsewhere" we're in a different (my guess: easier and more = widely applicable) ballgame I would really be interested in exploring this route with a simple = example, like this GPIO RTDM driver, and try to make this work with say = a vanilla or RT-PREEMPT kernel - if only to gauge feasibility, effort = and results what would you recommend as a starting point? like trying to build the RTDM library code against a vanilla kernel = without the rest of Xenomai? from looking over ksrc/skins/rtdm it seems = to rely on primitives from the rest of the Xenomai kernel API, like = locking, memory allocation, threads Or is that "spinning out RTDM" something which is going to happen = anyway? - Michael >=20 > --=20 > Gilles.