Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2012 21:39:38 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Ilias-Dimitrios Vrachnis <vrachil@gmail.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: A question about geli and aesni
Message-ID:  <20120503193938.GD1397@garage.freebsd.pl>
In-Reply-To: <CAODmd79U1MOHiHiJFioU7H5sLyhZ8bgJYexoKFcc9Y-=%2BMsUoA@mail.gmail.com>
References:  <CAODmd79U1MOHiHiJFioU7H5sLyhZ8bgJYexoKFcc9Y-=%2BMsUoA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--DO5DiztRLs659m5i
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 29, 2012 at 05:46:27AM +0300, Ilias-Dimitrios Vrachnis wrote:
> Hello, I have a question about the aesni integration with geli:
>=20
> I use a geli encrypted root, on an aesni-capable cpu, and I noticed
> that the .eli device is not hardware accelerated even though aesni.ko
> is loaded (from loader.conf and not kld_list).
> I have a suspicion that this happens because I did not load the module
> before running geli init, but I cannot confirm it at the moment.

It doesn't matter what was available during 'geli init'.

> Running geli init on an md device after the machine is fully booted
> up, results in a hardware accelerated device, so the cpu is not the
> problem here.
> Googling for this issue did not reveal something relevant nor did man
> 4 aesni/man 8 geli, so here I am at the mailing list asking for
> pointers.
> Has anyone seen this behavior before? Do you have any hints?

It looks like GEOM discovers your encrypted device before aesni module
registers itself into opencrypto framework.

If you want to experiment, you could try changing this line in
sys/geom/geom.h:

	DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);

to something like this:

	DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl

--DO5DiztRLs659m5i
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk+i3vkACgkQForvXbEpPzQxKgCgvn+aTY1sBJMqGXwJGNIviA2B
GoYAniEmsJOVY4+tVhsNcRDlH8TY2xnE
=+omN
-----END PGP SIGNATURE-----

--DO5DiztRLs659m5i--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120503193938.GD1397>