From owner-freebsd-mips@FreeBSD.ORG Sat Sep 28 09:20:28 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 CFE532C9 for ; Sat, 28 Sep 2013 09:20:28 +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 6F02D2AB5 for ; Sat, 28 Sep 2013 09:20:28 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hn9so1817566wib.11 for ; Sat, 28 Sep 2013 02:20:26 -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=Ej6x8d73pTKfLkw5vXRtN48BVtrtR9XBpnBHFnPZay4=; b=d0B5jOLJvwjcI0124h07hSzSJrK5FWtxZKNd/LPoAcYoJ3eD3mhfNomrwiOl49oMKa mK8KYM6PKYbyZIF6Fho7vmRjavZCmgD45We7b7ZqUlPxRPlygXxu1BHZlDLJZ+IGxEV8 P5jT3cIs3SSJsAPaYKZXGxy/RPlf8ht/I3lNC34q9bAhBKSHuIDNSyVForyVJZUi617r fAqDhzYDdRt5N658E/ztoukDxyBEgN018TC7YzcMq04ro9DHW7JrToY3hLjEKR3llwhw IiJZ5XhHGPCC3IW6kcKQSmeWxZF6KQxYJAky7P8Ozgu4OOqxy8rEOpIH8SD3VCPPmx4d uDAg== MIME-Version: 1.0 X-Received: by 10.180.10.136 with SMTP id i8mr5983592wib.46.1380360026807; Sat, 28 Sep 2013 02:20:26 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Sat, 28 Sep 2013 02:20:26 -0700 (PDT) Date: Sat, 28 Sep 2013 02:20:26 -0700 X-Google-Sender-Auth: FnYYDaeMbTdqOYTiQAgiNV0dGvc Message-ID: Subject: Bringing up mips74k 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: Sat, 28 Sep 2013 09:20:28 -0000 Hi, I'll post a patch soon, but the TL;DR version: * 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. But with the above, it's enough to bring the AR9344 up to mountroot> . Thanks, -adrian