On Sat, 3 Feb 2018 09:36:20 -0600 Segher Boessenkool <seg...@kernel.crashing.org> wrote:
> Hi! Some remarks: Hi Segher, Thanks for looking, we're a bit constrained in what we should do because Linux side of the patch is already merged. > > On Sat, Feb 03, 2018 at 02:27:32PM +1000, Nicholas Piggin wrote: > > + /* > > + * ISAv3.0B deliver a random number instruction (darn) > > + */ > > + { "random-number-generator", > > That's not such a great name... "darn-instruction" maybe? Just "wait" > as a name is a bit too short too I guess (and there is "wait-v3", so > that could be "wait-v2" or so? Or "wait-instruction"). You're probably right, I don't know if it's worth changing now though. -vX is meant to be an indication of an ISA version that changed or superseded the older function. > > > + /* > > + * ISAv3.0B branch instruction and register additions > > + * CA32, OV32, mcrxrx, setb > > + */ > > + { "branch-v3", > > Those aren't branch instructions, they are integer instructions. Some > of which use the XER, some of which use CR fields. Okay, well the register changes are for branch facility registers, I guess instructions could move to integer. We have nothing relying on exact definition of these things at the moment, so these we can change. > > > +- isa > > + Usage: required > > + Value type: <u32> > > + Definition: > > + > > + isa that the CPU is currently running in. This provides instruction set > > + compatibility, less the individual feature nodes. For example, an ISA > > v3.0 > > + implementation that lacks the "transactional-memory" cpufeature node > > + should not use transactional memory facilities. > > + > > + Value corresponds to the "Power ISA Version" multiplied by 1000. > > + For example, <3000> corresponds to Version 3.0, <2070> to Version 2.07. > > + The minor digit is available for revisions. > > So the 2.07B, 3.0B (in the code above) should really be 2071 and 3001 > (instead of 2070 and 3000)? Or you could make it hex and have 0x207B :-) This I think we can change (Linux code is supposed to be largely version agnostic, and it looks like it is except one special case that will do the right thing if we change it. > > > +The policy for seleting and configuring which features to advertise and > > use > > Typo ("selecting"). Thanks, Nick