From owner-freebsd-ppc@freebsd.org Tue Oct 6 15:44:50 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D2F69B64F9 for ; Tue, 6 Oct 2015 15:44:50 +0000 (UTC) (envelope-from trix@juniper.net) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0104.outbound.protection.outlook.com [157.56.111.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BEDD61A8 for ; Tue, 6 Oct 2015 15:44:48 +0000 (UTC) (envelope-from trix@juniper.net) Received: from DM2PR05MB701.namprd05.prod.outlook.com (10.141.177.20) by DM2PR05MB702.namprd05.prod.outlook.com (10.141.177.23) with Microsoft SMTP Server (TLS) id 15.1.286.20; Tue, 6 Oct 2015 15:30:13 +0000 Received: from DM2PR05MB701.namprd05.prod.outlook.com (10.141.177.20) by DM2PR05MB701.namprd05.prod.outlook.com (10.141.177.20) with Microsoft SMTP Server (TLS) id 15.1.286.20; Tue, 6 Oct 2015 15:30:12 +0000 Received: from DM2PR05MB701.namprd05.prod.outlook.com ([10.141.177.20]) by DM2PR05MB701.namprd05.prod.outlook.com ([10.141.177.20]) with mapi id 15.01.0286.019; Tue, 6 Oct 2015 15:30:12 +0000 From: Thomas Rix To: Justin Hibbits , "freebsd-ppc@FreeBSD.org" Subject: Re: e500 SPE support Thread-Topic: e500 SPE support Thread-Index: AQHQ/yRlGfp7gvVmYkmEQzSGLV5iW55eJCEA Date: Tue, 6 Oct 2015 15:30:12 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.5.150821 authentication-results: spf=none (sender IP is ) smtp.mailfrom=trix@juniper.net; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [66.129.239.12] x-microsoft-exchange-diagnostics: 1; DM2PR05MB701; 5:fcsNyHR/t60Y3UMy5FDsUwgHGW5MtN4GyfpYvF0n8NsPENXS2zOxtAD9bWxu3F39HX1Kv2/wLgF0lY6KZQWuzjXZLijgCeruBaQRZJz3rZIfhAb+FUuzcT8ALKttrmI8hnX4i5kW6uMB+Jlp+Tfx9Q==; 24:qQrm3Xaonll68lFQBk8IjgDW93/u22j0mgR3QeTRXObOA8b4jxY19pdhONJlqeejJnQakgbJKNqpXO9cfxlFC1PEUJKGzKGCr7yitbqZk7w=; 20:xihvNtUnycZstvm77spQvfizSYjTiSGTMHOIsdFLHJo4dyIdX+QYmfklGaL6fu3enol5apUIpyZJ7JQ8G3774w== x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(42134001)(42139001); SRVR:DM2PR05MB701; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001); SRVR:DM2PR05MB701; BCL:0; PCL:0; RULEID:; SRVR:DM2PR05MB701; x-forefront-prvs: 07215D0470 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(24454002)(189002)(377454003)(479174004)(199003)(66066001)(15975445007)(102836002)(5001960100002)(2900100001)(77096005)(50986999)(92566002)(10400500002)(64706001)(107886002)(189998001)(2950100001)(11100500001)(19580395003)(36756003)(2501003)(5002640100001)(83506001)(99286002)(105586002)(54356999)(19580405001)(101416001)(76176999)(5004730100002)(86362001)(5008740100001)(46102003)(87936001)(122556002)(81156007)(5001770100001)(97736004)(5007970100001)(40100003)(4001350100001)(106356001)(106116001)(94096001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR05MB701; H:DM2PR05MB701.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <69A10E222287BE428000FECEF5264C0A@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2015 15:30:12.4173 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR05MB701 X-Microsoft-Exchange-Diagnostics: 1; DM2PR05MB702; 2:IqZhup3+7tfbdWOE5ZjzTEaeZdp4/2Iftdu1zwE0PEgi+tIgHzIcj4YvrwX+BJTs1VjFaf0P1u25UTSCwloNsdxgltTgPhXpgSMZMKhwEK75RvW/fdyUNgML3THCqJVp4AR+X0LcjO1zi2aTk5zGYxiw0jHWq76cQcon1wxLEZw=; 23:UvdB0eCiWBkq8nzgPSK6l3LIPBGyCzvL/LErTP0V5Pam4z89Cp8RBJJ+8e3Lmow6PCzlLQE4CaBXvns6iz6X/bhxHi5oE4ozlz47F2dEFjrYy3efXvmbxx/nkxr2LLuukr8ScN9pg+XM/48xHKu+z5NKVP17IdthK9rQepXABwK62/3oqX713FgPgzmxmYzG X-OriginatorOrg: juniper.net X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 15:44:50 -0000 I see the spe feature is in ToT llvm, but not no target is has this enabled by default. What hardware/software are you using to exercise the feature ? Asking so I could play too :) Likely folks wanting the feature would be willing to trade off with altivec. So mutually exclusive for me. Sprinkling code with spe specific seems clunky. Could there be some task bit that linker/compiler sets that the loader uses to do this automagically ? A tie into the task state would help with ptrace and possible debugger support. Tom --- Tom Rix Sr. Staff Compiler Engineer trix@juniper.net On 10/4/15, 9:14 PM, "owner-freebsd-ppc@freebsd.org on behalf of Justin Hibbits" wrote: >I've been doing some work on the e500 Signal Processing Engine (SPE, >sort of like Altivec, only weirder), but have some questions on >implementation: > >* This is mutually exclusive to Altivec, of course, because it shares >the GPRs, extending them to 64-bits, but only for SPE instructions. >Should the implementation be mutually exclusive, as well? Meaning, is >it better to have enable_spe()/save_spe() strewn throughout the code, >like is done with Altivec and FPU, or is it better to name them >*_vec(), and have a compile-time option of switching between Altivec >and SPE? The userland ABI would be different as well, which brings the >next question: > >* Do we want another target, like how Linux does it (powerpcspe)? Or >have this as just a different build option in src.conf? > >Suggestions are welcome and wanted. > >- Justin >_______________________________________________ >freebsd-ppc@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"