On 7/28/2017 9:13 PM, Greg Onufer wrote:
On Fri, Jul 28, 2017 at 6:29 PM, Vijay Kumar<vijay.ac.kumar@xxxxxxxxxx> wrote:
+ case SUN4V_CHIP_SPARC_M8:
+ default:
+ /* M8 and later support 54-bit virtual addresses.
+ * However, restricting M8 and above VA bits to 53
+ * as 4-level page table cannot support more than
+ * 53 VA bits.
+ */
+ sparc64_va_hole_top = 0xfff0000000000000UL;
+ sparc64_va_hole_bottom = 0x0010000000000000UL;
+ max_phys_bits = 51;
+ break;
}
}
These values are supposed to be initialized from MD/OBP properties,
not hard-coded based on the CPU type. Then you won't need to add more
cases every time.
Agree. Currently these bits are hard coded for all the CPU types. This
needs to be changed in future.
Thanks,
Vijay
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html