From owner-freebsd-mips@FreeBSD.ORG Sun Sep 29 14:57:10 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 58211E3B for ; Sun, 29 Sep 2013 14:57:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E07312A76 for ; Sun, 29 Sep 2013 14:57:09 +0000 (UTC) Received: by mail-ea0-f174.google.com with SMTP id z15so2132588ead.19 for ; Sun, 29 Sep 2013 07:57:08 -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=AqKP4pSOHVIoZGiC9XChgET6uqdnHKWyNy/qDQkQ+ME=; b=lgRvU30sUVaMGbHJynqFUOQjnQBSjp1QAYtnt6Q7CPbqTo/mo5XQpjMDsiSDk8Kac/ xwMlqKTpDqYZqfDP2YLXVn8xPltA6om5pLAyeaOykx5c6zxOG70i/Q6lOdpSSGzbTNf1 lJ9otQQ8fLHTjR/9DrAT1Qnd/BsWY8h0pn2j/R883k8JM3ZNFWBgqaHnAi3R6dMZdEM2 zybnrqpA/p6OgHbFB9Xfh+O4EsS3ov1t3gefi7ahIX1Cs9vj5AcgRZx+JVOTH6sf8yAF hEKM7iQUXQihmdbeD1BIVFH/3XfAl540QHweL+atpBTsdOHqRDZdksLQ2oSvs9Q7waLZ +Png== X-Gm-Message-State: ALoCoQklZXRA7HI4vnvIn+KiHHaN73yXipyers59v5o+yIowDfHXFhqq5vPKgqSKp8H3stq/rVrW X-Received: by 10.15.44.199 with SMTP id z47mr334889eev.64.1380466627942; Sun, 29 Sep 2013 07:57:07 -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 x47sm40155839eea.16.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Sep 2013 07:57:07 -0700 (PDT) Sender: Warner Losh Subject: Re: [rfc] mips74k/ar9344 support Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sun, 29 Sep 2013 16:57:04 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <945A50E4-685D-4CC7-88B5-89278744E389@bsdimp.com> 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: Sun, 29 Sep 2013 14:57:10 -0000 More comments: For COP0_HAZARD, I'd add a pointer to See Mips Run, 2nd Ed in a comment = on explaining why. You're also still using .word 0xc0 in cpuregs.h. Warner On Sep 29, 2013, at 4:50 PM, Adrian Chadd wrote: > Hi, >=20 > Right: >=20 > http://people.freebsd.org/~adrian/mips/20130929-mips74k-3.diff >=20 >=20 >=20 > -adrian >=20 >=20 >=20 > On 29 September 2013 07:43, Warner Losh wrote: > I'd be tempted to use 'sll zero, 3' instead of '.word 0xc0' and define = a macro for it. Why 'sll zero,3' instead of ehb? It allows us to use it = on older MIPS platforms as well... (because it will assemble in other = modes, not for binutils issues)... >=20 > Speaking of which, I'd also change the last 'nop' on the HAZARD_DELAY = and ITLBNOPFIX to be 'sll zero, 3' as well. This will be an appropriate = nop on older kit, as well as 'fail safe' when someone starts to cope = with newer compilers. Ditto COP0_SYNC. >=20 > On Sep 29, 2013, at 4:37 PM, Adrian Chadd wrote: >=20 > > grr, wrong list. > > > > also, try this: > > > > = http://people.freebsd.org/~adrian/mips/20130929-mips74k-2.diff > > > > > > > > -adrian > > > > ---------- Forwarded message ---------- > > From: Adrian Chadd > > Date: 29 September 2013 04:38 > > Subject: [rfc] mips74k/ar9344 support > > To: "freebsd-wireless@freebsd.org" > > > > > > Hi! > > > > Here's an initial hacked up patch to get the AR9344 to mountroot> . > > > > (Which isn't true - it panics due to missing PHY setup on if_arge; = I'll fix > > that up soon.) > > > > http://people.freebsd.org/~adrian/mips/20130929-mips74k-1.diff > > > > The specific changes: > > > > * add CPU_MIPS24KC and CPU_MIPS74KC > > * mips32r2 CPUs require an EHB as a hazard for things, rather than = NOPs > > * mips74k cores have a different CCA (cache coherency attributes) = than the > > default - I lifted this from the netbsd mips support. > > > > now, the ar71xx CPUs are all currently marked as CPU_MIPS4KC. I'll = follow > > this up with a commit to change that. There may be things we can = optimise > > in the CPU_MIPS24KC case. > > > > Warner and I have started talking about how to properly fix all of = the > > hazard handling. We'll discuss that later. > > > > I'd like to commit this to -HEAD so people wishing to hack on = mips74k > > platforms can do stuff. Does anyone have any issues with the above? > > > > Thanks, > > > > > > > > -adrian > > _______________________________________________ > > 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