From owner-freebsd-mips@FreeBSD.ORG Mon Jul 22 03:21:42 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 940A342B for ; Mon, 22 Jul 2013 03:21:42 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 19AD71FAF for ; Mon, 22 Jul 2013 03:21:41 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id d10so4910196lbj.0 for ; Sun, 21 Jul 2013 20:21:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=HWdZhPQ94PWTHjXEUEjp1ajGqllnLljBToTb4lZzZQE=; b=dvhx1yZV1hh5A+CyWbMrYDSXWC7KC5QszCEOoCcZ3pum86BoTYLD9cHwIiyJdKvseO n+fj+169n3xMbRlw6Www//XlWqlr80wVkSwICDlLbBkFaRtkxTtqlLQQ7iODtSRi79sJ 6xwAumBQTDwr9J6B4PsaejvBjwH2OReu/DrRDarKNu/X3t56W//Qg8/ZHZjgI8X01RBh 3Y9b0C8dSRcdfrKEpScoSRoe6PuUeAkUweGY+7eNDczNSc2O7PaCPf65hwVKeKABO54l KjgLvbWSLrm4XBHfOpV4qgwrWyHe1AKdqw8bYfiw2RhECtFyS9Uvp0T1C7j1RKmH1ynp 6UCw== X-Received: by 10.112.61.199 with SMTP id s7mr11379997lbr.53.1374463293685; Sun, 21 Jul 2013 20:21:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.113.231 with HTTP; Sun, 21 Jul 2013 20:21:13 -0700 (PDT) In-Reply-To: <04C90F35-CDF1-437A-8867-9034689E46E9@bsdimp.com> References: <6401792509903023722@unknownmsgid> <8C6BE511-2CCD-434F-BE72-43F350E8AA2C@bsdimp.com> <04C90F35-CDF1-437A-8867-9034689E46E9@bsdimp.com> From: Juli Mallett Date: Sun, 21 Jul 2013 20:21:13 -0700 Message-ID: Subject: Re: Can we undo the octeon hack? To: Warner Losh Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkHk2enCnoLk3e+l/KIPxxt1EUj4dlVoBmf7zjs1wR/Fcg4Z9KcS1BQMIG8Lr/m3sDOFDYT Cc: Warner Losh , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 03:21:42 -0000 On Sun, Jul 21, 2013 at 8:19 PM, Warner Losh wrote: > > On Jul 21, 2013, at 9:00 PM, Juli Mallett wrote: > >> I know I shouldn't say this, but: How hard can it be? :P >> >> In kern.pre.mk: >> >> CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 >> CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 >> CFLAGS_PARAM_MAX_INLINE_INSNS_SINGLE?=/* XXX what is default? */ >> CFLAGS+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH} >> CFLAGS+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH} >> CFLAGS+= --param max-inline-insns-single=${CFLAGS_PARAM_MAX_INLINE_INSNS_SINGLE} >> >> And then in the Octeon config: >> >> makeoptions CFLAGS_PARAM_INLINE_UNIT_GROWTH=10000 >> makeoptions CFLAGS_PARAM_LARGE_FUNCTION_GROWTH=100000 >> makeoptions CFLAGS_PARAM_MAX_INLINE_INSNS_SINGLE=10000 >> >> Right? >> >> Come up with a better name scheme, win 1/20 of 1 US cent. (Not >> redeemable for cash.) >> >> Most users will never see it; only Octeon needs such behaviour because >> of how the Simple Executive is implemented. > > We're better off than I thought. We can put those in std.octeon1. > > Not sure I like having those names, but 1/20 of a cent isn't worth the time it takes to type them... Long names discourage Gentooish funroll-loopsing! It's a feature! These are not user-serviceable parts. Hell, even I can't really service this stuff effectively. Having to set them at all is a bug.