OpenBSD/sgi
#35
RE: OpenBSD/sgi
Looks like I never posted that I found a fix/workaround for the problem with the IP28 kernel in OpenBSD/sgi 7.2:

Well, my "solution" was to extend an existing - i.e still existing in OpenBSD/sgi - clause meant for R5000 and R7000 processors in sys/arch/mips64/include/pmap.h to also trigger for IP28 (i.e. CPU_R10000 and TGT_INDIGO2):

Code:
diff --git a/sys/arch/mips64/include/pmap.h b/sys/arch/mips64/include/pmap.h
index 7cbac309a96..391e542797c 100644
--- a/sys/arch/mips64/include/pmap.h
+++ b/sys/arch/mips64/include/pmap.h
@@ -177,8 +177,11 @@ void    pmap_page_cache(vm_page_t, u_int);
  * and many structures containing fields which will be used with
  * <machine/atomic.h> routines are allocated from pools, __HAVE_PMAP_DIRECT can
  * not be defined on systems which may use flawed processors.
+ *
+ * There could be a similar problem for the IP28 aka POWER Indigo2 R10000, so
+ * we exclude the definition of __HAVE_PMAP_DIRECT for these systems, too.
  */
-#if !defined(CPU_R5000) && !defined(CPU_RM7000)
+#if !( defined(CPU_R5000) || defined(CPU_RM7000) || ( defined(TGT_INDIGO2) && defined(CPU_R10000) ) )
#define    __HAVE_PMAP_DIRECT
vaddr_t    pmap_map_direct(vm_page_t);
vm_page_t pmap_unmap_direct(vaddr_t);

...and which prevents the definition of __HAVE_PMAP_DIRECT which leads to the described problems on IP28 with commit ae6cd46 in sgi-never-retired branch (d600f90 in the official OpenBSD source code).

The corresponding issue on GitHub was updated accordingly, as was the IP28 kernel of OpenBSD/sgi 7.2 on GitHub.

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
03-01-2023, 03:46 PM


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)