Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 2014 14:23:20 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        John Hay <jhay@meraka.org.za>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>, Ian Lepore <ian@freebsd.org>
Subject:   Re: CAMBRIA and more than one atheros card
Message-ID:  <20140806212320.GU88623@funkthat.com>
In-Reply-To: <20140717194412.GA37369@zibbi.meraka.csir.co.za>
References:  <20140714194932.GA51947@zibbi.meraka.csir.co.za> <CAJ-VmokoRVb0_4PPy3KoogeWD8C5_R6BWrLoPsWHM8EsshtzKw@mail.gmail.com> <20140714200015.GA54311@zibbi.meraka.csir.co.za> <CAJ-Vmo=uU0OAq%2BXL8LCPYyhOFXuzKkG%2BVvJ3CqvqMrj1ydXChQ@mail.gmail.com> <20140714203707.GB54311@zibbi.meraka.csir.co.za> <20140717103430.GA88108@zibbi.meraka.csir.co.za> <CAJ-VmompU4RFqpU==DqzxsW%2BggfHKFqEVLL7FUVa_%2BmTUur64w@mail.gmail.com> <20140717192433.GA35445@zibbi.meraka.csir.co.za> <CAJ-VmomFS93MKU96dcKzO6-ZBzSyNC2W%2Bc7y3Tq4GSjPMGJ9=g@mail.gmail.com> <20140717194412.GA37369@zibbi.meraka.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
John Hay wrote this message on Thu, Jul 17, 2014 at 21:44 +0200:
> On Thu, Jul 17, 2014 at 12:30:53PM -0700, Adrian Chadd wrote:
> > okay, I think that needs to be fixed first. I can't debug it otherwise. :)
> 
> vmstat -ia output looks the same on an Avila board, so it isn't Cambria
> specific.

Ok, I tracked this down, and it looks like Ian forgot to add the
necessary call to arm_intrnames_init in initarm to setup the names
of interrupts properly when he changed how interrupt names were
handled...

I've fixed this for at least AVILA (and other ixp425 boards) w/ the
included patch...

Ian will be committing fixes for this issue shortly...  He may be
using a different method than the attached patch...

Index: avila_machdep.c
===================================================================
--- avila_machdep.c	(revision 269019)
+++ avila_machdep.c	(working copy)
@@ -70,6 +70,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/exec.h>
 #include <sys/kdb.h>
 #include <sys/msgbuf.h>
+#include <machine/intr.h>
 #include <machine/physmem.h>
 #include <machine/reg.h>
 #include <machine/cpu.h>
@@ -393,6 +394,7 @@ initarm(struct arm_boot_params *abp)
 
 	init_proc0(kernelstack.pv_va);
 
+	arm_intrnames_init();
 	arm_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL);
 
 	pmap_curmaxkvaddr = afterkern + PAGE_SIZE;

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140806212320.GU88623>