Re: KNI instructions with linux

From: David Konerding (dek_ml@konerding.com)
Date: Tue Mar 28 2000 - 00:35:57 EST


OK thanks fro Doug Ledford and Oliver Xymoron, I was able to finally build
a small test KNI app and confirm that it did indeed run on my P-III only
when the necessary PIII/KNI patch was installed.

This leads to me to two more questions:

1) Anybody know how to get gdb to dump KNI registers? The documentation
from Intel says that the KNI registers are independent of the normal FP
registers, it looks like gdb would need some extra code
to grab the state of KNI and dump it

2) Does anybody know if I can use the "Four 32-bit single-precision (SP),
floating-point numbers" described in the Intel manuals as two 64-bit double
precision floating point numbers, and peform the KNI operations
on those instead?

Since this is getting OT, please just reply to me directly.

Thanks.
 David Konerding

----- Original Message -----
Sent: Monday, March 27, 2000 9:27 PM

> unsigner char a[64];
> int test2() {
> __asm__("movups 0x00(%0), %%xmm0\n\t"
> "movups 0x10(%0), %%xmm1\n\t"
> "movups 0x20(%0), %%xmm2\n\t"
> "movups 0x30(%0), %%xmm3\n\t"
> :: "r" (&a[0]));
>
> --
> Doug Ledford <dledford@redhat.com>
> Opinions expressed are my own, but
> they should be everybody's.
>
> From owner-linux-kernel-outgoing@vger.rutgers.edu Mon Mar 27 21:08:19
2000
> Return-Path: <owner-linux-kernel-outgoing@vger.rutgers.edu>
> Received: from nic.funet.fi (nic.funet.fi [193.166.0.145])
> by adsl-63-193-244-224.dsl.snfc21.pacbell.net (8.9.3/8.8.7) with ESMTP id
VAA13691
> for <dek_ml@konerding.com>; Mon, 27 Mar 2000 21:08:19 -0800
> Received: from vger.rutgers.edu ([128.6.190.2]:26852 "EHLO
vger.rutgers.edu"
> ident: "NO-IDENT-SERVICE[2]" smtp-auth: <none> TLS-CIPHER: <none>)
> by nic.funet.fi with ESMTP id <S11627AbQC1FGe>;
> Tue, 28 Mar 2000 08:06:34 +0300
> Received: by vger.rutgers.edu via listexpand id <S154085AbQC1E7D>;
> Mon, 27 Mar 2000 23:59:03 -0500
> Received: by vger.rutgers.edu id <S154255AbQC1E6y>;
> Mon, 27 Mar 2000 23:58:54 -0500
> Received: from devserv.devel.redhat.com ([207.175.42.156]:3005 "EHLO
> devserv.devel.redhat.com") by vger.rutgers.edu with ESMTP
> id <S154085AbQC1E6a>; Mon, 27 Mar 2000 23:58:30 -0500
> Received: from localhost (dledford@localhost)
> by devserv.devel.redhat.com (8.9.3/8.9.3) with ESMTP id XAA25955;
> Mon, 27 Mar 2000 23:59:06 -0500
> X-Authentication-Warning: devserv.devel.redhat.com: dledford owned process
doing -bs
> Date: Mon, 27 Mar 2000 23:59:06 -0500 (EST)
> From: Doug Ledford <dledford@redhat.com>
> X-Sender: dledford@devserv.devel.redhat.com
> To: Oliver Xymoron <oxymoron@waste.org>
> cc: David Konerding <dek_ml@konerding.com>, linux-kernel@vger.rutgers.edu
> Subject: Re: KNI in userspace- kernel patch?
> In-Reply-To: <Pine.LNX.4.10.10003271806250.24583-100000@waste.org>
> Message-ID:
<Pine.LNX.4.21.0003272354450.25324-100000@devserv.devel.redhat.com>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Sender: owner-linux-kernel@vger.rutgers.edu
> Precedence: bulk
> X-Loop: majordomo@vger.rutgers.edu
> X-Orcpt: rfc822;linux-kernel-outgoing-dig
> Status: O
> X-Status:
> X-Keywords:
> X-UID: 2985
>
> On Mon, 27 Mar 2000, Oliver Xymoron wrote:
>
> > On Mon, 27 Mar 2000, David Konerding wrote:
> >
> > > But the following code just gives a segfault. Am I missing something
from my
> > > KNI code?
> > >
> > > int a=5;
> > > int test2() {
> > > __asm__("movq 0x00(%0), %%mm0\n\t"
> > > "movq 0x08(%0), %%mm1\n\t"
> > > "movq 0x10(%0), %%mm2\n\t"
> > > "movq 0x18(%0), %%mm3\n\t"
> > > :: "r" (a));
> > > }
> >
> > Uh, you seem to be treating "a" as a pointer, so you're dereferencing
> > something in small-offset-from-null-pointer-land.
>
> Not to mention that the above is all mmx based code, not KNI based code,
> and should run on any

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:21 EST