On Fri, Aug 18, 2017 at 3:15 PM, David Miller <davem@xxxxxxxxxxxxx> wrote: >> It was pointed out off-list that this is not future-proof. The only >> sun4v chip that does not support allclean, normalw, and otherw is >> Niagara1, and any future sun4v-compliant chip must support the >> instructions. Rather than require a code change for new processors, >> just skip hot patching for Niagara1. I'll send out a v2 patch shortly. > > I was going to say something about this as well. > > You could test HWCAP_SPARC_BLKINIT or HWCAP_SPARC_N2. Neither of those hwcaps are for these instructions. hwcaps are specific and are not intended to imply other features. Please do not use them that way. -greg -- 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