From owner-freebsd-mips@FreeBSD.ORG Sun Sep 29 14:37:21 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 65518755 for ; Sun, 29 Sep 2013 14:37:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 023A929A1 for ; Sun, 29 Sep 2013 14:37:20 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id ez12so2700128wid.2 for ; Sun, 29 Sep 2013 07:37:19 -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=84SxJKIn6AX1X4Xb1BChmNDg7aEjgCq1rQ7G7BnE41E=; b=QIV4ygIyMHTmULSPcEgd5ynGiTcELbijgljGq966INgBPMuQpgDlI4FYeR38hy6HDL 2pPxMF66FZ8aQYYzlW2aJkqtRAFIAorOpZwOrOKDjpiX2Bfaa1E+Q0rXVaRg0FaHPdss uikY5JISQbHiGeYorTpsexr0aFLYkdKfQZjOfgq5LH/hyCVtUI233aMGEiIBzLjEyxpV V6DsfS6EwIdg07eUdJurJtEtHBvlYZFByViUfOyCZxRPRBtP/F430pqPk/VCIzvwWou/ Epy40OKmOsdSRKV1VGVdt3/9zGFjTYS8LGJ0KFR/DoxlLCE/5XIOCeYUYuCy/3K5el43 F4Eg== MIME-Version: 1.0 X-Received: by 10.180.10.136 with SMTP id i8mr10082747wib.46.1380465439393; Sun, 29 Sep 2013 07:37:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Sun, 29 Sep 2013 07:37:19 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 07:37:19 -0700 X-Google-Sender-Auth: fJvPXV9PRHC6wWHtSqHiYbw1Vbw Message-ID: Subject: Re: [rfc] mips74k/ar9344 support From: Adrian Chadd To: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:37:21 -0000 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