From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 29 11:38:57 2013 Return-Path: Delivered-To: freebsd-wireless@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 BF0B919E for ; Sun, 29 Sep 2013 11:38:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5DD992307 for ; Sun, 29 Sep 2013 11:38:57 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hn9so2593261wib.17 for ; Sun, 29 Sep 2013 04:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=3W1reGL1w+0iKWmM4HT3hYHFAMt5F8LpXCjiju4sl4I=; b=x1N/u424iNMCnf0OZhYD701OENuEdXsU7QyaqziQgCp4q4350fU43G24GfoSe0qsvk pTKLRr1PhzJgFw6ByUGipfva8+zXN/BxJi1nAUozjkWPSLXY6OYyWbdSMsL9J3O6Deyr UHM9NJhIos8hGkWUHKkewllXARESlN3/O9XOFLVWiKm8kdecqlrnCa6Boqu9j4ZtKBEC FHaDZk/hgHnPiRkBlaCT5ftHkjRtH/queFzwRaDVN7TnXmt8hosxYA4ffiZsIMQy9czP 4TkTzdDmleIYg0MHn2FnLv+KyoDABtvo1OiXsKja5C6VZLa5QPOBkXkhtMbUuZVv1qUm nTlg== MIME-Version: 1.0 X-Received: by 10.194.104.71 with SMTP id gc7mr96630wjb.45.1380454734632; Sun, 29 Sep 2013 04:38:54 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Sun, 29 Sep 2013 04:38:54 -0700 (PDT) Date: Sun, 29 Sep 2013 04:38:54 -0700 X-Google-Sender-Auth: DhlMi5EBF173jPRCZ4mStRCBC5M Message-ID: Subject: [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 11:38:57 -0000 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