From owner-freebsd-mips@FreeBSD.ORG Sat Sep 6 22:24:12 2014 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 ESMTPS id 63039FE0; Sat, 6 Sep 2014 22:24:12 +0000 (UTC) Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0570E1D3C; Sat, 6 Sep 2014 22:24:11 +0000 (UTC) Received: by mail-qg0-f50.google.com with SMTP id q108so13133571qgd.23 for ; Sat, 06 Sep 2014 15:24:11 -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=oVHbQrpWMQNPkbcGehf7405+U1ORNwatq37Y+kpxXK8=; b=zejSxzmjQzGvvkJJqbkwNb7qoME7K/eE02xPIB7gMYwOk2lzo5uw9wYMdneWEYuKpP DBqlBvyymAt2Oe6YVixA+5i5a8Ohryvfyt/2cfJ/89v5TTar04RabE7xu/9/oCnlw0PP hFTZxS9paJn0qLaKnnEY9rncvVWgf+vngMI0xu0AcjKU3OIQusg4m0J5EBUIOV2+GbH8 NEKl9QLX4CIVPhF3bvtxLJI7mwfOEWw6hNVxLcJgLYlJxeSheZ5ruiaZq8TonizYDO4u 9b8j5VAhPVpoug+YHe9evV+8S+o2Y/BqBqOrk9uLtqqE8oHt63/FdnPpD9df9BDRWiGy Ki3Q== MIME-Version: 1.0 X-Received: by 10.140.31.75 with SMTP id e69mr28844621qge.2.1410042251157; Sat, 06 Sep 2014 15:24:11 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.39.139 with HTTP; Sat, 6 Sep 2014 15:24:11 -0700 (PDT) Date: Sat, 6 Sep 2014 15:24:11 -0700 X-Google-Sender-Auth: OJGgffiOSgLJ7rXI7O7y4OjcMMA Message-ID: Subject: bug 193400: sfbuf changes on mips32 may have exposed some vm/pmap issues on mips32? From: Adrian Chadd To: "freebsd-mips@freebsd.org" , Alan Cox , Gleb Smirnoff Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2014 22:24:12 -0000 Hi! This bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193400 is what I reported to alc a couple weeks ago as breaking on my 128mb RAM mipsbe board. It turns out that the difference between the MIPS32 sfbuf code and the new stuff gleb added was the refcounting side of things. With the MIPS code, there was no refcounting at all - each sfbuf allocation would allocate a new sfbuf. Now, I don't know how correct that is (my reading of the code is "not correct!") but it wasn't panicing things. So I think maybe gleb's patch to sfbuf exposed a MIPS32 pmap/VM bug? Alan - how would we go about figuring out what could be the issue here? I'd really appreciate some help here as I'd like to keep the MIPS32 stuff in good shape. :) Thanks! -a