OpenBSD/sgi
#52
RE: OpenBSD/sgi
New lead

As I already wrote the other -non-IP28 - systems I have available for testing are unaffected by the bad commits, so there must be some difference between them. Which is especially irritating because Indy and Indigo² are not so different actually. When comparing the kernel configuration files for IP22 and IP28 I found the difference: Like all other systems I have except for IP28, the IP22 kernel uses a "clock0" for the clock interrupts (the "and scheduling clock" in the "int0" line might be  a remnant of an older code state or reflect that things are different for IP20 (also handled by IP22 kernel) as well, see further below):

Code:
[...]
#
# Definition of system
#
mainbus0    at root
cpu*        at mainbus0
clock0        at mainbus0    # scheduling clock on Indy

int0        at mainbus0    # Interrupt Controller and scheduling clock
imc0        at mainbus0    # Memory Controller
gio0        at imc0
eisa0        at imc0
[...]
from https://github.com/the-machine-hall/open...NERIC-IP22

...but the R10000 Indigo² does not:

Code:
[...]
#
# Definition of system
#
mainbus0 at root
cpu* at mainbus0

int0 at mainbus0 # Interrupt Controller and scheduling clock
imc0 at mainbus0 # Memory Controller
gio0 at imc0
eisa0 at imc0
[...]
from https://github.com/the-machine-hall/open...NERIC-IP28

...and instead uses "int0" for that. Originally both Indy and R10000 Indigo² used a "clock0" instead, but this was changed with:

Code:
commit 64ac1c5a7e13fbe4130b9b53f956c4ebff13c665
Author: miod <miod@openbsd.org>
Date:   Sat Jul 14 19:53:27 2012 +0000

    A known errata of R4000 and R4400 processors, is that reading the internal
    counter register close to a trigger of the counter interrupt, may cause the
    interrupt not to be generated. This makes it a bad idea to use the internal
    counter both for the scheduling clock and for delay().
   
    Therefore, on IP22 systems (and IP28 because it makes my life easier), use
    one of the two 8254 timers connected to the onboard interrupt controller as
    the scheduling clock source.
   
    Adapted from NetBSD.
from https://github.com/the-machine-hall/open...ebff13c665

...but soon after changed back for the Indy with:

Code:
commit 833ab59f79f5195f7dcd0b5b888b8d2f3335eac5
Author: miod <miod@openbsd.org>
Date:   Wed Jul 18 19:56:02 2012 +0000

    According to Linux, and just verified the hard way, the 8254 timer does not
    interrupt on Indy; do not use it on such systems. Then, bring back a clock0 at
    mainbus attachment to IP22 kernels, and attach it late in the autoconf process
    if no other device has claimed the clock yet.
   
    This means R4000 and R4400 based Indy may experience the lost clock interrupt
    processor errata again, until a better way to skirt it is found.
from https://github.com/the-machine-hall/open...2f3335eac5

Hence I will "bring back a clock0" to IP28 as well and make adaptations as needed as I am unsure how to fix the 8254 related code to work correctly with the two commits from my last post. Afterwards only IP20 systems will use those timers instead of a "clock0", but as my R4000 Indigo is incomplete I can't test this anyhow.

Indigo Indy Indigo2 R10000/IMPACT O2 Octane Octane2 Origin 200=Origin 200-Origin 200=Origin 200
johnnym
Tezro

Trade Count: (0)
Posts: 268
Threads: 9
Joined: Jun 2018
Find Reply
04-22-2023, 09:21 AM


Messages In This Thread
OpenBSD/sgi - by johnnym - 01-05-2023, 02:43 PM
RE: OpenBSD/sgi - by Raion - 01-05-2023, 04:06 PM
RE: OpenBSD/sgi - by johnnym - 01-05-2023, 05:40 PM
RE: OpenBSD/sgi - by Raion - 01-05-2023, 06:30 PM
RE: OpenBSD/sgi - by johnnym - 01-05-2023, 06:55 PM
RE: OpenBSD/sgi - by robespierre - 01-05-2023, 09:11 PM
RE: OpenBSD/sgi - by johnnym - 01-05-2023, 09:57 PM
RE: OpenBSD/sgi - by johnnym - 01-07-2023, 07:50 PM
RE: OpenBSD/sgi - by Raion - 01-05-2023, 06:45 PM
RE: OpenBSD/sgi - by Raion - 01-07-2023, 10:43 PM
RE: OpenBSD/sgi - by johnnym - 01-09-2023, 03:50 PM
RE: OpenBSD/sgi - by Raion - 01-09-2023, 03:56 PM
RE: OpenBSD/sgi - by johnnym - 01-09-2023, 05:49 PM
RE: OpenBSD/sgi - by Raion - 01-09-2023, 06:13 PM
RE: OpenBSD/sgi - by johnnym - 01-11-2023, 06:32 PM
RE: OpenBSD/sgi - by Raion - 01-11-2023, 07:48 PM
RE: OpenBSD/sgi - by johnnym - 01-11-2023, 08:52 PM
RE: OpenBSD/sgi - by Raion - 01-11-2023, 10:20 PM
RE: OpenBSD/sgi - by johnnym - 01-18-2023, 07:39 PM
RE: OpenBSD/sgi - by Raion - 01-18-2023, 07:55 PM
RE: OpenBSD/sgi - by johnnym - 01-18-2023, 09:31 PM
RE: OpenBSD/sgi - by Raion - 01-19-2023, 12:41 AM
RE: OpenBSD/sgi - by johnnym - 01-30-2023, 06:37 PM
RE: OpenBSD/sgi - by Raion - 01-30-2023, 07:27 PM
RE: OpenBSD/sgi - by johnnym - 01-30-2023, 09:06 PM
RE: OpenBSD/sgi - by Raion - 01-30-2023, 09:21 PM
RE: OpenBSD/sgi - by johnnym - 01-30-2023, 10:25 PM
RE: OpenBSD/sgi - by Raion - 01-30-2023, 11:30 PM
RE: OpenBSD/sgi - by johnnym - 02-01-2023, 09:59 AM
RE: OpenBSD/sgi - by johnnym - 02-01-2023, 02:47 PM
RE: OpenBSD/sgi - by johnnym - 02-01-2023, 07:35 PM
RE: OpenBSD/sgi - by johnnym - 02-02-2023, 09:58 PM
RE: OpenBSD/sgi - by johnnym - 02-04-2023, 03:26 PM
RE: OpenBSD/sgi - by johnnym - 02-04-2023, 07:05 PM
RE: OpenBSD/sgi - by johnnym - 03-01-2023, 03:46 PM
RE: OpenBSD/sgi - by johnnym - 03-19-2023, 09:12 AM
RE: OpenBSD/sgi - by johnnym - 03-19-2023, 09:02 PM
RE: OpenBSD/sgi - by johnnym - 03-31-2023, 05:47 PM
RE: OpenBSD/sgi - by johnnym - 04-06-2023, 07:44 PM
RE: OpenBSD/sgi - by Raion - 04-06-2023, 11:44 PM
RE: OpenBSD/sgi - by vishnu - 04-07-2023, 02:47 PM
RE: OpenBSD/sgi - by johnnym - 04-07-2023, 06:45 PM
RE: OpenBSD/sgi - by vishnu - 04-07-2023, 07:34 PM
RE: OpenBSD/sgi - by Raion - 04-07-2023, 03:26 PM
RE: OpenBSD/sgi - by vishnu - 04-07-2023, 06:22 PM
RE: OpenBSD/sgi - by Raion - 04-07-2023, 09:33 PM
RE: OpenBSD/sgi - by johnnym - 04-08-2023, 07:47 AM
RE: OpenBSD/sgi - by vishnu - 04-08-2023, 10:44 AM
RE: OpenBSD/sgi - by johnnym - 04-08-2023, 10:55 AM
RE: OpenBSD/sgi - by vishnu - 04-08-2023, 11:47 AM
RE: OpenBSD/sgi - by johnnym - 04-16-2023, 04:52 PM
RE: OpenBSD/sgi - by johnnym - 04-22-2023, 09:21 AM
RE: OpenBSD/sgi - by johnnym - 04-24-2023, 10:49 AM
RE: OpenBSD/sgi - by johnnym - 04-26-2023, 07:55 PM
RE: OpenBSD/sgi - by johnnym - 05-02-2023, 03:05 PM
RE: OpenBSD/sgi - by fleedwood - 05-02-2023, 08:39 PM
RE: OpenBSD/sgi - by johnnym - 12-23-2023, 02:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)