From owner-freebsd-mips@FreeBSD.ORG Wed Sep 7 19:39:23 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E4A6106564A for ; Wed, 7 Sep 2011 19:39:23 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og118.obsmtp.com (exprod7og118.obsmtp.com [64.18.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id 9EFB98FC13 for ; Wed, 7 Sep 2011 19:39:22 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob118.postini.com ([64.18.6.12]) with SMTP ID DSNKTmfIaVU3GMRY19UJlJ8f4PdJkoDzYoxn@postini.com; Wed, 07 Sep 2011 12:39:22 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 7 Sep 2011 12:38:00 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Wed, 7 Sep 2011 15:37:59 -0400 From: Andrew Duane To: "mips@freebsd.org" Date: Wed, 7 Sep 2011 15:37:58 -0400 Thread-Topic: Adding board IDs to sys/contrib/octeon-sdk/cvmx-app-init.h Thread-Index: AcxtlaV1STLAaehxTeWyoDbGEVX3sg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Adding board IDs to sys/contrib/octeon-sdk/cvmx-app-init.h X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 19:39:23 -0000 I know this is a Cavium maintained file, there's even a comment inside that= says: /* Set aside a range for customer boards. These numbers are managed ** by Cavium. */ Is there a protocol for adding new board IDs? And, would it be a real probl= em if the board IDs were not between CVMX_BOARD_TYPE_CUST_PRIVATE_MIN and C= VMX_BOARD_TYPE_CUST_PRIVATE_MAX? I'm trying to sort out some code additions= to define our private boards, and they already have hardware IDs assigned = and burned into them that are in the range of 1300 to 1600 or so. I guess I could read the hardware IDs and add CVMX_BOARD_TYPE_CUST_PRIVATE_= MIN as an offset, is that a reasonable approach? As a related question, is there a protocol for managing kernel configuratio= n files that belong to a private platform? ................................... Andrew Duane Juniper Networks o +1 978 589 0551 m +1 603-770-7088 aduane@juniper.net From owner-freebsd-mips@FreeBSD.ORG Wed Sep 7 20:16:22 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9B7D106566C for ; Wed, 7 Sep 2011 20:16:22 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 76E068FC14 for ; Wed, 7 Sep 2011 20:16:22 +0000 (UTC) Received: by wwi36 with SMTP id 36so31238wwi.31 for ; Wed, 07 Sep 2011 13:16:21 -0700 (PDT) Received: by 10.227.19.194 with SMTP id c2mr6774662wbb.65.1315426581290; Wed, 07 Sep 2011 13:16:21 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.227.138.18 with HTTP; Wed, 7 Sep 2011 13:16:01 -0700 (PDT) In-Reply-To: References: From: Juli Mallett Date: Wed, 7 Sep 2011 13:16:01 -0700 X-Google-Sender-Auth: n7y2LwLQihLmMWHjdmbuV55x6VA Message-ID: To: Andrew Duane Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "mips@freebsd.org" Subject: Re: Adding board IDs to sys/contrib/octeon-sdk/cvmx-app-init.h X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 20:16:22 -0000 On Wed, Sep 7, 2011 at 12:37, Andrew Duane wrote: > I know this is a Cavium maintained file, there's even a comment inside th= at says: > > =C2=A0 =C2=A0/* Set aside a range for customer boards. =C2=A0These number= s are managed > =C2=A0 =C2=A0 ** by Cavium. > =C2=A0 =C2=A0 */ > > Is there a protocol for adding new board IDs? And, would it be a real pro= blem if the board IDs were not between CVMX_BOARD_TYPE_CUST_PRIVATE_MIN and= CVMX_BOARD_TYPE_CUST_PRIVATE_MAX? I'm trying to sort out some code additio= ns to define our private boards, and they already have hardware IDs assigne= d and burned into them that are in the range of 1300 to 1600 or so. Look at the ifdefs I added to that file to handle a couple of vendors who went outside of those ranges or overlapped with other boards. Just add an OCTEON_VENDOR_JUNIPER option and put your board-related stuff behind an ifdef in the SDK and outside of it. > I guess I could read the hardware IDs and add CVMX_BOARD_TYPE_CUST_PRIVAT= E_MIN as an offset, is that a reasonable approach? > > As a related question, is there a protocol for managing kernel configurat= ion files that belong to a private platform? I think probably not managing them in a FreeBSD.org tree makes the most sen= se :)