From owner-freebsd-mips@FreeBSD.ORG Sat Sep 28 11:25:31 2013 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 ESMTP id 768D4824 for ; Sat, 28 Sep 2013 11:25:31 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D826261E for ; Sat, 28 Sep 2013 11:25:29 +0000 (UTC) Received: by mail-ee0-f52.google.com with SMTP id c41so1698074eek.11 for ; Sat, 28 Sep 2013 04:25:28 -0700 (PDT) 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=wMOXmYNOQnLo8W5FQ3ie5eFjkzXVx/jGf+x51OaYrSQ=; b=joQXM65kjMkOh2kQvk8v0vQ9/dQGgFVMzqnaFDqOK/2BUwUaohOADW+KzENK4bwqo/ fWC9fcraaF7MBPOxhkMeXQdywujjL73WR7QpkSOdlx2dvgNR5DRH7NZ26sY/UPW7glBR YxYKf+apnQk79Wt9XBdfYtvBeDpKOrCGl/L4gagUy2s/zLMcPCyOex48w15T9WwGdwhD nX21ACp4ZuugxjOz+HOFI8eSzpVTVQ/v8df1ccPUnFMDLb9il1hgfUbohgQwfKav0kd8 aTRVeWMC/bYucHP/EfcDdnPjqFiIc26NquqdLVq0pfxh0FhMJwHIiXYPt6MsfRHdVJIj RfOQ== X-Gm-Message-State: ALoCoQl7T2P4s0aCr15i1OfYyocjIRTe/UWEHWtlIxgT+2d8S9G/8uvdRmG3vp6YUK+OdrFmVE9b X-Received: by 10.14.108.9 with SMTP id p9mr18124316eeg.8.1380360794178; Sat, 28 Sep 2013 02:33:14 -0700 (PDT) Received: from ?IPv6:2a02:dd0:3:100:129a:ddff:feb5:90b2? ([2a02:dd0:3:100:129a:ddff:feb5:90b2]) by mx.google.com with ESMTPSA id j7sm25735300eeo.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 02:33:13 -0700 (PDT) Sender: Warner Losh Subject: Re: Bringing up mips74k support Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sat, 28 Sep 2013 11:33:08 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4BA72281-B170-4880-94B3-4C57F4E10FA4@bsdimp.com> References: To: Adrian Chadd X-Mailer: Apple Mail (2.1085) Cc: "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: Sat, 28 Sep 2013 11:25:31 -0000 On Sep 28, 2013, at 11:20 AM, Adrian Chadd wrote: > Hi, >=20 > I'll post a patch soon, but the TL;DR version: >=20 > * the CCA attributes are different on mips74k. I think the cached > attribtute is 0x0, rather than the default. Check the mips platform = support > on netbsd - it has a special case for mips74k. > * The hazard should be EHB, not NOP or SSNOP > * .. should the hazard be SSNOP for mips24k, rather than = "nop;nop;nop.." ? > * We're missing hazards around the TLB operations in various places in = .c > and .S code, sigh. Not all TLB operations have hazards... :) So I'd want to know if they = are all needed. > But with the above, it's enough to bring the AR9344 up to mountroot> . Woot! Let's do a code review at EuroBSDCon.... Warner=