Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262030AbTFIVEx (ORCPT ); Mon, 9 Jun 2003 17:04:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262037AbTFIVEx (ORCPT ); Mon, 9 Jun 2003 17:04:53 -0400 Received: from deviant.impure.org.uk ([195.82.120.238]:47760 "EHLO deviant.impure.org.uk") by vger.kernel.org with ESMTP id S262030AbTFIVEv (ORCPT ); Mon, 9 Jun 2003 17:04:51 -0400 Date: Mon, 9 Jun 2003 22:18:23 +0100 From: Dave Jones To: Dan Carpenter Cc: linux-kernel@vger.kernel.org, ppokorny@penguincomputing.com Subject: Re: memtest86 on the opteron Message-ID: <20030609211823.GA2182@suse.de> Mail-Followup-To: Dave Jones , Dan Carpenter , linux-kernel@vger.kernel.org, ppokorny@penguincomputing.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 32 On Mon, Jun 09, 2003 at 01:26:37PM -0700, Dan Carpenter wrote: > --- init.c.orig Mon Jun 9 10:23:10 2003 > +++ init.c Mon Jun 9 10:25:44 2003 > @@ -402,6 +402,16 @@ > } > l1_cache = cpu_id.cache_info[3]; > l1_cache += cpu_id.cache_info[7]; > + case 15: > + switch(cpu_id.model) { > + case 5: > + cprint(LINE_CPU, 0, "AMD Opteron"); > + off = 11; > + l1_cache = cpu_id.cache_info[3]; > + l1_cache += cpu_id.cache_info[7]; > + l2_cache = (cpu_id.cache_info[11] << 8); > + l2_cache += cpu_id.cache_info[10]; > + } > } Any reason to restrict it to a single stepping ? This means you have to upgrade memtest every time a new model is released, which seems a bit of a pain. Chances are it'll work fine on subsequent family 15 AMD CPUs. Dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/