From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 29 14:22:23 2013 Return-Path: Delivered-To: freebsd-wireless@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 426EA2F1 for ; Sun, 29 Sep 2013 14:22:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D3725290A for ; Sun, 29 Sep 2013 14:22:22 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id b13so4434761wgh.11 for ; Sun, 29 Sep 2013 07:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=XWZxYGekAAcO9t+qR3VV3M81XJ3/4+zz7a9TG8f2HCk=; b=tFlLntBChL/OVuwc4dRhawwWOlK6dKwD4wk4BVYc1GFVz3zUUWJKVyDZuYdsRuSXsB Qo47CpVmEBJhgxGZ3sqsv8AQX8k0PJjE62gzSaMDExvPieJPfgBUMPeFxlydxGp3EhMD IPQ+7G95XXsk+IKgwqELNLt9ZLYkHft8yriXaBzjzSVvc2V41N22h1UW1q4fot457RGG ctfgwln2w1Y2QvGo5ZWPFo/LHWVVDxsfyjuSfETncVWT0p28lXxfXJnLcwHJ7Zyntq++ JamNlOtKaQB/Ap10w+WFk21yNYGy/AlzDWeBUrTjBeXgWWr3ytQdIPwPFr9OXCnAD0Vi 2UBA== MIME-Version: 1.0 X-Received: by 10.194.10.193 with SMTP id k1mr49843wjb.50.1380464541068; Sun, 29 Sep 2013 07:22:21 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Sun, 29 Sep 2013 07:22:21 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 07:22:21 -0700 X-Google-Sender-Auth: NiwvX_4HI5m0nrFWE_4Ov31kiqM Message-ID: Subject: Re: [rfc] mips74k/ar9344 support From: Adrian Chadd To: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2013 14:22:23 -0000 .. and an update: http://people.freebsd.org/~adrian/mips/20130929-mips74k-2.diff -adrian On 29 September 2013 04:38, Adrian Chadd wrote: > 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 > >