From owner-freebsd-mips@FreeBSD.ORG Mon Jan 27 06:40:09 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2ABFA875 for ; Mon, 27 Jan 2014 06:40:09 +0000 (UTC) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E4F6515FD for ; Mon, 27 Jan 2014 06:40:08 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id ar20so5422584iec.38 for ; Sun, 26 Jan 2014 22:40:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=NFBcfkZf4YwHOKE5iMise9FAvM+gF6AIuK9P82yOvtA=; b=Au6lg1MSof49dY8WCtuHKjNifdzQl3gYX/d7guIWeF2c/zzgNSgomcyGLGcP3ASb8v bvrGbAfDKJbpcq9ounUa499lsazwRhxqj+UZXAEONY0Gs7qOi/xxkbWFVDOGFPpfJPz/ fSz/OV6ulbgEJvLjgICgD5MtBm17Gd50yID7v5ogn9y+mU/R1CZFkmla+BqXfjmqncw9 34pIfHU/H74MBj0+9Q7l+Vv9+3Hz+52lIjVk/lhT1ff6Z0f2SLVkj4Jmabg8Qxfjct/i YgXojOKVkvgMmuzQR+oYXC3sI7HGq4NLe2gOOb3FLT/CJ8D6pTxNGNIXNsZuUpC0zcE9 8S4A== X-Gm-Message-State: ALoCoQnTMESLdIzThwGsMd1FuWvwy80fooVjURWrReTGJH2dHiDzCVYY/w3exV7YI4S4JVRAYfUS X-Received: by 10.50.136.165 with SMTP id qb5mr16204650igb.2.1390804802260; Sun, 26 Jan 2014 22:40:02 -0800 (PST) Received: from fusion-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id l7sm40114839igx.2.2014.01.26.22.40.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:40:01 -0800 (PST) Sender: Warner Losh Subject: Re: More trapframe panics Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <52E5C925.40707@rewt.org.uk> Date: Sun, 26 Jan 2014 23:40:00 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <52E42A1B.3040907@rewt.org.uk> <52E524BD.7090106@rlwinm.de> <453F8F8F-41E5-4640-9683-5A8553AB0822@bsdimp.com> <52E5C925.40707@rewt.org.uk> To: Joe Holden X-Mailer: Apple Mail (2.1085) Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jan 2014 06:40:09 -0000 There are some ports that just trigger it built single threaded and only = that port, which is why I was looking for a quick and dirty hack... I = fear that Juli is right, though, and a real fix is needed.... Warner On Jan 26, 2014, at 7:49 PM, Joe Holden wrote: > If one doesn't try to compile multiple ports at once, it seems to = behave.. although I'm having trouble stess testing it at the moment = since national grid seem to think supplying 0-270V to my house is = acceptable (some fault or something) :P >=20 > On 27/01/2014 01:06, Warner Losh wrote: >> Yea, I'm aware of the issues. I was hoping for a quick patch to make = my Cavium machines better since I know this is an optional feature of = the R4k spec. At the time I had my head wrapped around this, it seemed = like a faster path, but there were snags in non-uniform page sizes and = alias avoidance that make make this untenable anyway... >>=20 >> Warner >>=20 >> On Jan 26, 2014, at 4:30 PM, Juli Mallett wrote: >>=20 >>> Robert Watson and someone else (IIRC) discouraged going this route = as some CPUs do not actually support every PageMask value specified for = the R4K, so it would turn into an implementation/maintenance nightmare. = Being able to fill an arbitrary number of TLB entries with kernel stack = seems just better, anyway, for, I dunno, the person who wants to run = Python in the kernel or something :) >>>=20 >>>=20 >>> On Sun, Jan 26, 2014 at 10:54 AM, Warner Losh = wrote: >>>=20 >>> On Jan 26, 2014, at 9:04 AM, Juli Mallett wrote: >>>=20 >>>> On Sun, Jan 26, 2014 at 7:07 AM, Jan Bramkamp = wrote: >>>>>=20 >>>>> Would increasing KSTACK_PAGES from two to three or four help? What = are >>>>> the trade-offs involved in choosing KSTACK_PAGES for something = like the >>>>> EdgeMax Lite? >>>>=20 >>>>=20 >>>> That's exactly what needs to happen in all 64-bit MIPS kernels. = Unlike >>>> some other architectures, KSTACK_PAGES cannot simply be increased, >>>> however. All of the code which handles loading the kernel stack = and >>>> keeping it mapped, etc., assumes that it takes up exactly one TLB = entry, >>>> i.e. 2 pages. One could simply double KSTACK_PAGES for 64-bit = builds and >>>> modify the code to support the case of 2 or 4 pages, which would = keep the >>>> code as gross as it is today and not buy much flexibility, but = might be >>>> worthwhile as a short-term fix. Being able to support arbitrary = values of >>>> KSTACK_PAGES (or at least arbitrary multiples of 2 up to the = maximum number >>>> of wired TLB entries times 2) would be better. >>>=20 >>> I hacked together a kludge that quadrupled this by going to the next = larger page size for stack pages in the TLB, but hit something ugly when = I did that... But I've lost that code, so maybe I should try again to = see if I'm more clever the second time. >>>=20 >>> This is one of the things that makes it hard to have a nice native = build server on mips64... >>>=20 >>> Warner >>>=20 >>>=20 >>=20 >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >>=20 >=20 > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org"