FreeBSD Bugzilla – Attachment 203812 Details for
Bug 233863
Various PowerMac G5 models may require kern.smp.disabled=1 and must set usefdt=1 which causes net interface reorder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Investigatory sys/powerpc/powerpc/mp_machdep.c patch to avoid stuck-sleeping problem
file_233863.txt (text/plain), 1.05 KB, created by
Mark Millard
on 2019-04-20 03:06:28 UTC
(
hide
)
Description:
Investigatory sys/powerpc/powerpc/mp_machdep.c patch to avoid stuck-sleeping problem
Filename:
MIME Type:
Creator:
Mark Millard
Created:
2019-04-20 03:06:28 UTC
Size:
1.05 KB
patch
obsolete
>Index: /usr/src/sys/powerpc/powerpc/mp_machdep.c >=================================================================== >--- /usr/src/sys/powerpc/powerpc/mp_machdep.c (revision 345758) >+++ /usr/src/sys/powerpc/powerpc/mp_machdep.c (working copy) >@@ -77,9 +77,10 @@ > PCPU_SET(awake, 1); > __asm __volatile("msync; isync"); > >+ powerpc_sync(); > while (ap_letgo == 0) >- __asm __volatile("or 31,31,31"); >- __asm __volatile("or 6,6,6"); >+ powerpc_sync(); >+ isync(); > > /* > * Set timebase as soon as possible to meet an implicit rendezvous >@@ -262,8 +263,11 @@ > __asm __volatile("msync; isync"); > > /* Let APs continue */ >- atomic_store_rel_int(&ap_letgo, 1); >+ ap_letgo= 1; // depend on prior sync, no need to lwsync first > >+ powerpc_sync(); // analogous to what the ap's do (more similar time frame?) >+ if (ap_letgo) isync(); >+ > platform_smp_timebase_sync(ap_timebase, 0); > > while (ap_awake < smp_cpus)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233863
:
199947
|
203622
|
203627
|
203652
|
203683
|
203812
|
203814
|
203844
|
203845
|
203889
|
203980
|
203981
|
203983
|
204307
|
204368
|
204369
|
223108