FreeBSD Bugzilla – Attachment 204368 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]
Mostly: Investigatory patch for sys/powerpc/aim/mmu_oea64.c (for filling translations[] from trans_cells[])
file_233863.txt (text/plain), 1.46 KB, created by
Mark Millard
on 2019-05-14 02:38:24 UTC
(
hide
)
Description:
Mostly: Investigatory patch for sys/powerpc/aim/mmu_oea64.c (for filling translations[] from trans_cells[])
Filename:
MIME Type:
Creator:
Mark Millard
Created:
2019-05-14 02:38:24 UTC
Size:
1.46 KB
patch
obsolete
>Index: /usr/src/sys/powerpc/aim/mmu_oea64.c >=================================================================== >--- /usr/src/sys/powerpc/aim/mmu_oea64.c (revision 347549) >+++ /usr/src/sys/powerpc/aim/mmu_oea64.c (working copy) >@@ -503,7 +503,7 @@ > register_t msr; > vm_offset_t off; > vm_paddr_t pa_base; >- int i, j; >+ int i, istep, j; > > bzero(translations, sz); > OF_getencprop(OF_finddevice("/"), "#address-cells", &acells, >@@ -513,7 +513,8 @@ > > CTR0(KTR_PMAP, "moea64_add_ofw_mappings: translations"); > sz /= sizeof(cell_t); >- for (i = 0, j = 0; i < sz; j++) { >+ istep = (acells == 2) ? 5 : 4; >+ for (i = 0, j = 0; i+istep-1 < sz; j++) { > translations[j].om_va = trans_cells[i++]; > translations[j].om_len = trans_cells[i++]; > translations[j].om_pa = trans_cells[i++]; >@@ -523,7 +524,7 @@ > } > translations[j].om_mode = trans_cells[i++]; > } >- KASSERT(i == sz, ("Translations map has incorrect cell count (%d/%zd)", >+ KASSERT(i+sz%istep == sz, ("Translations map has incorrect cell count (%d/%zd)", > i, sz)); > > sz = j; >@@ -956,7 +957,9 @@ > virtual_end = VM_MAX_SAFE_KERNEL_ADDRESS; > > /* >- * Map the entire KVA range into the SLB. We must not fault there. >+ * Try to map the entire KVA range into the SLB. We must not >+ * fault there. But later ones may "randomly" replace >+ * earlier ones when the slb can not span the range. > */ > #ifdef __powerpc64__ > for (va = virtual_avail; va < virtual_end; va += SEGMENT_LENGTH)
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