From owner-freebsd-arch@FreeBSD.ORG Tue Jan 4 03:29:41 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF6D01065670 for ; Tue, 4 Jan 2011 03:29:40 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8E6D28FC15 for ; Tue, 4 Jan 2011 03:29:40 +0000 (UTC) Received: by vws9 with SMTP id 9so5906410vws.13 for ; Mon, 03 Jan 2011 19:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=8R22jhzI7YShV8y04ps8PSjfVCFuluMgrg4A2/Dz+Lc=; b=b70vfRucAINz19CzESPYVcli2Z4ymktlqWEgZFdG6715AFL+Pmb902AtqWZjy7U1vu 0n69mCCBDXruhwU2t5WlmT1e1qXXvWNV3Zpz+9nFLYfNAYptMl+dc9hKEP1XHeioyqGE BYZS5NsvMu2giuBQGgW97WmvfHbTiDbt1ry8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=YqWJBioLTW9FzjIfaLxVJYqJWMBsQ34B7iyvEYIJ7dAP4xu6UUJqYiCtyOmURCHxsj kUT9S5leDGx60x2E7/ZDsK+WiXhn23dGUdYpRrgFnisGmS0uqzDVwUCIniZsyPyuZpvG dkjYw8uldjWS4sniz3GdEVwYtpG4vHXi05OG0= Received: by 10.220.178.65 with SMTP id bl1mr3851348vcb.112.1294110121775; Mon, 03 Jan 2011 19:02:01 -0800 (PST) Received: from kan.dnsalias.net (c-24-63-226-98.hsd1.ma.comcast.net [24.63.226.98]) by mx.google.com with ESMTPS id c15sm4417053vcs.7.2011.01.03.19.01.59 (version=SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 19:02:00 -0800 (PST) Date: Mon, 3 Jan 2011 22:01:53 -0500 From: Alexander Kabaev To: Jeff Roberson Message-ID: <20110103220153.69cf59e0@kan.dnsalias.net> In-Reply-To: References: X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/4KhrGAVoBU+Vq5xlvI9K._V"; protocol="application/pgp-signature" Cc: arch@freebsd.org Subject: Re: Linux kernel compatability X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 03:29:41 -0000 --Sig_/4KhrGAVoBU+Vq5xlvI9K._V Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 3 Jan 2011 10:31:24 -1000 (HST) Jeff Roberson wrote: > Hello Folks, >=20 > Some of you may have seen my infiniband work proceed in svn. It is > coming to a close soon and I will be integrating it into current. I > have a few patches to the kernel to send for review but I wanted to > bring up the KPI wrapper itself for discussion. >=20 > The infiniband port has been done by creating a 10,000 line KPI=20 > compatability layer. With this layer the vast majority of the driver > code runs unmodified. The exceptions are anything that interfaces > with skbs and most of the code that deals with network interfaces. >=20 > Some examples of things supported by the wrapper: >=20 > atomics, types, bitops, byte order conversion, character devices, pci=20 > devices, dma, non-device files, idr tables, interrupts, ioremap, > hashes, kobjects, radix trees, lists, modules, notifier blocks, > rbtrees, rwlock, rwsem, semaphore, schedule, spinlocks, kalloc, wait > queues, workqueues, timers, etc. >=20 > Obviously a complete wrapper is impossible and I only implemented the=20 > features that I needed. The build is accomplished by pointing the > linux compatible code at sys/ofed/include/ which has a simulated > linux kernel include tree. There are some config(8) changes to help > this along as well. >=20 > I have seen that some attempt at similar wrappers has been made > elsewhere. I wonder if instead of making each one tailored to > individual components, which mostly seem to be filesystems so far, > should we put this in a central place under compat somewhere? Is > this project doomed to be tied to a single consumer by the specific > nature of it? >=20 > Other comments or concerns? >=20 > Thanks, > Jeff This probably will go against popular opinion here, but having 10k linux emulation layer that _almost_ work in the tree will be an unfortunate event and will do more damage to FreeBSD as a platform than good in the long run. I would rather see this code never hit main repository.=20 --=20 Alexander Kabaev --Sig_/4KhrGAVoBU+Vq5xlvI9K._V Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iD8DBQFNIo2mQ6z1jMm+XZYRAs4GAJ4q/7LNwfJ6QzSFArE6caC3rlniAgCg1w3H nfyav3zCcGw3RgeK8Bls8kM= =aeYH -----END PGP SIGNATURE----- --Sig_/4KhrGAVoBU+Vq5xlvI9K._V--