NetBSD Problem Report #54276

From wiz@yt.nih.at  Wed Jun  5 23:12:12 2019
Return-Path: <wiz@yt.nih.at>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B7C447A184
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  5 Jun 2019 23:12:12 +0000 (UTC)
Message-Id: <20190605214731.BCFC62AC0FC@yt.nih.at>
Date: Wed,  5 Jun 2019 23:47:31 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: ioapic can't remap
X-Send-Pr-Version: 3.95

>Number:         54276
>Category:       kern
>Synopsis:       ioapic can't remap
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 05 23:15:00 +0000 2019
>Closed-Date:    Mon Oct 10 11:08:52 +0000 2022
>Last-Modified:  Mon Oct 10 15:05:02 +0000 2022
>Originator:     Thomas Klausner
>Release:        NetBSD 8.99.41
>Organization:
Curiosity is the very basis of education and if you tell me that
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:


Architecture: x86_64
Machine: amd64
>Description:
Booting the amd64 USB install image from
https://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201905242230Z/images/
on a new Threadripper system I see:

ioapic0 at mainbus0 apid 128
ioapic0: can't remap to apid 128

(Same for 129, 130).

OpenBSD 6.5 has similar output, FreeBSD 12.0 remaps them (according to its dmesg).
>How-To-Repeat:
Boot a GENERIC kernel on this system.
>Fix:
Perhaps it's not even a bug, but it looks like one.

>Release-Note:

>Audit-Trail:
From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54276 CVS commit: src/sys/arch/x86/include
Date: Thu, 6 Oct 2022 06:51:37 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Thu Oct  6 06:51:37 UTC 2022

 Modified Files:
 	src/sys/arch/x86/include: i82093reg.h

 Log Message:
 IOAPIC_ID_MASK is 8 bits these days. Fixes PR kern/54276.


 To generate a diff of this commit:
 cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/include/i82093reg.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 10 Oct 2022 11:08:52 +0000
State-Changed-Why:
Confirmed fixed, thank you!


From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/54276 CVS commit: src/sys/arch/x86/include
Date: Mon, 10 Oct 2022 13:08:27 +0200

 On Thu, Oct 06, 2022 at 06:55:02AM +0000, SAITOH Masanobu wrote:
 >  Module Name:	src
 >  Committed By:	msaitoh
 >  Date:		Thu Oct  6 06:51:37 UTC 2022
 >  
 >  Modified Files:
 >  	src/sys/arch/x86/include: i82093reg.h
 >  
 >  Log Message:
 >  IOAPIC_ID_MASK is 8 bits these days. Fixes PR kern/54276.

 With a kernel after that commit, the following lines do not appear in
 my dmesg any longer:

 -ioapic0: autoconfiguration error: can't remap to apid 128
 -ioapic1: autoconfiguration error: can't remap to apid 129
 -ioapic2: autoconfiguration error: can't remap to apid 130
 -WARNING: 3 errors while detecting hardware; check system log.

 Confirmed fixed, thank you!
  Thomas

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54276 CVS commit: [netbsd-9] src/sys/arch/x86
Date: Mon, 10 Oct 2022 15:02:51 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Oct 10 15:02:51 UTC 2022

 Modified Files:
 	src/sys/arch/x86/include [netbsd-9]: i82093reg.h
 	src/sys/arch/x86/x86 [netbsd-9]: ioapic.c

 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #1536):

 	sys/arch/x86/x86/ioapic.c: revision 1.66
 	sys/arch/x86/include/i82093reg.h: revision 1.7

 Print detail about misconfigured APIC ID.

 IOAPIC_ID_MASK is 8 bits these days. Fixes PR kern/54276.


 To generate a diff of this commit:
 cvs rdiff -u -r1.6 -r1.6.2.1 src/sys/arch/x86/include/i82093reg.h
 cvs rdiff -u -r1.63 -r1.63.2.1 src/sys/arch/x86/x86/ioapic.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54276 CVS commit: [netbsd-8] src/sys/arch/x86
Date: Mon, 10 Oct 2022 15:04:31 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Oct 10 15:04:31 UTC 2022

 Modified Files:
 	src/sys/arch/x86/include [netbsd-8]: i82093reg.h
 	src/sys/arch/x86/x86 [netbsd-8]: ioapic.c

 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #1769):

 	sys/arch/x86/x86/ioapic.c: revision 1.66
 	sys/arch/x86/include/i82093reg.h: revision 1.7

 Print detail about misconfigured APIC ID.

 IOAPIC_ID_MASK is 8 bits these days. Fixes PR kern/54276.


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.5.4.1 src/sys/arch/x86/include/i82093reg.h
 cvs rdiff -u -r1.52.10.1 -r1.52.10.2 src/sys/arch/x86/x86/ioapic.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.