Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 20:21:13 -0700
From:      Juli Mallett <juli@clockworksquid.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Warner Losh <imp@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: Can we undo the octeon hack?
Message-ID:  <CACVs6=_Sut_hcEb%2BndQ-pWpwpf5dr0miP5mjzNiuR2E-ZaM=%2Bg@mail.gmail.com>
In-Reply-To: <04C90F35-CDF1-437A-8867-9034689E46E9@bsdimp.com>
References:  <CAJ-VmonJg2BhBdckFb1O79ZnWrXKZhT%2Bku9SjuswLui6iZC1Ow@mail.gmail.com> <6401792509903023722@unknownmsgid> <F0B68A50-B5BF-426E-874C-1EFC03CAEAEB@bsdimp.com> <CACVs6=_Ss_C0v_eHFzOsM1QKi43EU4j3SUmOTsC=XmhMFPqeAw@mail.gmail.com> <8C6BE511-2CCD-434F-BE72-43F350E8AA2C@bsdimp.com> <CACVs6=9mjoB7LQ4OkvT7CJ8b0cG_G9o9XJsAauqxUYwo7MFpkQ@mail.gmail.com> <CAJ-VmoniT-2cX9y%2BcfQJQ7OwMnbvjB1gTHym_LT=ngy8AnuN2g@mail.gmail.com> <CACVs6=8VT0dQug%2B8od45VvoJQn1f-2j%2Bu%2BidMXC3SFz9iLyd7A@mail.gmail.com> <04C90F35-CDF1-437A-8867-9034689E46E9@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 21, 2013 at 8:19 PM, Warner Losh <imp@bsdimp.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACVs6=_Sut_hcEb%2BndQ-pWpwpf5dr0miP5mjzNiuR2E-ZaM=%2Bg>