From owner-freebsd-mips@FreeBSD.ORG Sun Jul 21 21:21:25 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 ABE9DDF9 for ; Sun, 21 Jul 2013 21:21:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by mx1.freebsd.org (Postfix) with ESMTP id 7C63A354 for ; Sun, 21 Jul 2013 21:21:25 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id 9so13489483iec.5 for ; Sun, 21 Jul 2013 14:21:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=nYoA+Pob1rNl55pdb+QNRFUUm2t/0M2+cBs7JY9eLvA=; b=RA58bTrhtS18ydYZno/jkJ/YlSqwbfeD+pEFKdD/5CAFB3ozJBubV2fxqpakJkZ8cy jjXus4K4nlgULEPPZI6/wCaKznyWNwm26MenBOqFQQqwtNtECBGg6JE8QtwcWD3P7Oyc 5VCfdLy4zVEupHxWoOFoB473ILiVAFo7SlHXsDsjfc5IVklF2evq/evpbiaouq3meI4t MY7tx2Td6kzcIPIAqz88JOr1yDD2LBQpoGjPww+4Xt9gn36ybh08/UtqetTJQHqEOrBJ uExniG/gxeqxtig/3v4Dm73HubUmDTowsU+LH1aIYQMCFkyglSIfMlLTzX5OSr3f7WZo Zqzw== X-Received: by 10.43.63.17 with SMTP id xc17mr16010828icb.75.1374439889872; Sun, 21 Jul 2013 13:51:29 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id w5sm52709247igz.10.2013.07.21.13.51.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jul 2013 13:51:28 -0700 (PDT) Sender: Warner Losh Subject: Re: Can we undo the octeon hack? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <6401792509903023722@unknownmsgid> Date: Sun, 21 Jul 2013 14:51:26 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <6401792509903023722@unknownmsgid> To: Juli Mallett X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQleS1Z64bbUdtMtnTq4p1fgkpwPUCBYXv/r66reGxyWmjYh+1cjhpEC/dcWA6VOc9Wzk/ZY 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: Sun, 21 Jul 2013 21:21:25 -0000 These should really be in the std.foo files for each specific subport. = That way atheros could have one set, and octeon could have another. I do know that we don't do the std.foo thing for the atheros config = files, but we really should start, and this would be a good place to = start... Warner On Jul 21, 2013, at 12:54 PM, Juli Mallett wrote: > Making it possible to override each value would be ideal but > cumbersome. If you want to do that, by all means do! >=20 > Thanks, > Juli. >=20 > On 2013-07-21, at 11:44, Adrian Chadd wrote: >=20 >> Hi Juli/Warner, >>=20 >> Is it possible to undo this particular hack, and allow these values = to >> be overridden in the kernel config files? >>=20 >> from kern.pre.mk >>=20 >> CFLAGS=3D ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS} >> CFLAGS+=3D ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS = -include >> opt_global.h >> .if ${COMPILER_TYPE} !=3D "clang" >> CFLAGS+=3D -fno-common -finline-limit=3D${INLINE_LIMIT} >> .if ${MACHINE_CPUARCH} !=3D "mips" >> CFLAGS+=3D --param inline-unit-growth=3D100 >> CFLAGS+=3D --param large-function-growth=3D1000 >> .else >> # XXX Actually a gross hack just for Octeon because of the Simple = Executive. >> CFLAGS+=3D --param inline-unit-growth=3D10000 >> CFLAGS+=3D --param large-function-growth=3D100000 >> CFLAGS+=3D --param max-inline-insns-single=3D10000 >> .endif >> .endif >>=20 >> I'd like to be able to experiment with different inline settings in >> order to try and squeeze kernels down to be smaller. >>=20 >> Thanks! >>=20 >>=20 >> -adrian