Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2020 23:20:10 +0100
From:      "Kristof Provost" <kp@FreeBSD.org>
To:        "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>
Cc:        "Allan Jude" <allanjude@freebsd.org>, "FreeBSD Current" <freebsd-current@freebsd.org>
Subject:   Re: Enabling AESNI by default
Message-ID:  <0D67F84B-248D-4680-8D91-2CAEDCDD7ED7@FreeBSD.org>
In-Reply-To: <202012312209.0BVM9HHk088051@gndrsh.dnsmgr.net>
References:  <202012312209.0BVM9HHk088051@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31 Dec 2020, at 23:09, Rodney W. Grimes wrote:
> Its for ever dead code on a large number of machines that do not have
> the hardware for it.  I know that is a decreasing set, but imho it
> would be better to somehow ONLY load the module if you had CPU
> support for it.  The down side is that detection would probably have
> to be in the laoder as this code can be used very early on.
>
According to kldstat it uses all of 42KB of memory.

     16    1 0xffffffff83313000     a290 aesni.ko

That’s such a trivial amount of memory it’s not even worth 
mentioning. Even in tiny embedded systems (and who runs tiny embedded 
systems on x86?) it’s utterly insignificant.

Even if it were significant, how many of the systems without the 
relevant hardware are ever going to run 13?

Regards,
Kristof
From owner-freebsd-current@freebsd.org  Thu Dec 31 22:24:22 2020
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7B1164D2073
 for <freebsd-current@mailman.nyi.freebsd.org>;
 Thu, 31 Dec 2020 22:24:22 +0000 (UTC)
 (envelope-from asomers@gmail.com)
Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com
 [209.85.210.53])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D6N462s77z4RSR;
 Thu, 31 Dec 2020 22:24:22 +0000 (UTC)
 (envelope-from asomers@gmail.com)
Received: by mail-ot1-f53.google.com with SMTP id a109so19006063otc.1;
 Thu, 31 Dec 2020 14:24:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=midb6U5oXc2/A+yy8BtZWx6LHy5k3MrcHP2+r7XmIng=;
 b=BOjSEInuT6PN+2oLg7V7QrIN22BvaR8p06it0U6VphZ2Ma+zk7i1zsaVXEA+maGsQY
 XK+wf6POYbSSzL/GWUimK8m1h7JGfQq/jrrdbiOzwffaJXvBZRasIAf6XPzY7yEjoOXY
 WXrzCPO8hi5IK258w/hyvPLJdbz0rMDlDsV2OXsAEtO4D5qDtLOnzFuwXlAimpnEip4q
 OixryEFfvWcQ9oJK8ToB3wY3JqiK6gThOTjyH9J0IkTa710gxIag3e7sRtQ9xmSVUn8g
 tAQx73UU9hSN97jnUTu/9YdFfyjcmkok19k9xr76OnnxHEVFxamCbA2bZxKOyYwpOE7q
 rsvg==
X-Gm-Message-State: AOAM5326ca8EnuM2N12sZWCgcdmEifrn9U8kRZvvXTEXQYJz0pQFtSUP
 +yWZlw7kLT3imH4mL1xIDIk0Nc4JpdQ2qDOJsRCZRYIhMZY=
X-Google-Smtp-Source: ABdhPJzJ9oSG86A9ahroEbvEn27MD0SgGHdyBkRif4qp35Au2UvSoQb8soV2e1S6ZWMqybJoFkVcyNvnCbNdsMNNCMw=
X-Received: by 2002:a05:6830:30a8:: with SMTP id
 g8mr41465504ots.291.1609453461199; 
 Thu, 31 Dec 2020 14:24:21 -0800 (PST)
MIME-Version: 1.0
References: <202012312209.0BVM9HHk088051@gndrsh.dnsmgr.net>
 <0D67F84B-248D-4680-8D91-2CAEDCDD7ED7@FreeBSD.org>
In-Reply-To: <0D67F84B-248D-4680-8D91-2CAEDCDD7ED7@FreeBSD.org>
From: Alan Somers <asomers@freebsd.org>
Date: Thu, 31 Dec 2020 15:24:09 -0700
Message-ID: <CAOtMX2jQPXSq+VXh_-Xs+qTZTW=qNg3+-At-NH9q1QaDR0jGfg@mail.gmail.com>
Subject: Re: Enabling AESNI by default
To: Kristof Provost <kp@freebsd.org>
Cc: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>,
 Allan Jude <allanjude@freebsd.org>, 
 FreeBSD Current <freebsd-current@freebsd.org>
X-Rspamd-Queue-Id: 4D6N462s77z4RSR
X-Spamd-Bar: ----
X-Spamd-Result: default: False [-4.00 / 15.00];
	 REPLY(-4.00)[]
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Dec 2020 22:24:22 -0000

On Thu, Dec 31, 2020 at 3:20 PM Kristof Provost <kp@freebsd.org> wrote:

> On 31 Dec 2020, at 23:09, Rodney W. Grimes wrote:
> > Its for ever dead code on a large number of machines that do not have
> > the hardware for it.  I know that is a decreasing set, but imho it
> > would be better to somehow ONLY load the module if you had CPU
> > support for it.  The down side is that detection would probably have
> > to be in the laoder as this code can be used very early on.
> >
> According to kldstat it uses all of 42KB of memory.
>
>      16    1 0xffffffff83313000     a290 aesni.ko
>
> That=E2=80=99s such a trivial amount of memory it=E2=80=99s not even wort=
h
> mentioning. Even in tiny embedded systems (and who runs tiny embedded
> systems on x86?) it=E2=80=99s utterly insignificant.
>
> Even if it were significant, how many of the systems without the
> relevant hardware are ever going to run 13?
>
> Regards,
> Kristof
>

And tiny embedded systems are probably running custom kernels anyway, so
they can remove it.  I'm sold.  Let's put it in GENERIC.
-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0D67F84B-248D-4680-8D91-2CAEDCDD7ED7>