News for hackers. Stuff that matters.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by hashtag-til on Sunday September 17, 2023 @09:47AM (#37545026)
Not really sure what’s the advantage of switching from whatever you have today (ARM?), to a qualcomm IP. Qualcomm is historycally a quite shitty partner to have.

Nobody is going to give the secret sauce for free. Also these AI/ML use cases are just some marketing bs, not really grounded by anything really.

There are plenty of ISAs you can find freely available today (Open sparc anyone?). The problem is fragmentation…

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ndsipa_pomu on Sunday September 17, 2023 @09:51AM (#37545062)
RISC-V is not tied to Qualcomm, so you can either choose a different partner or do it all yourself if you've got the necessary skills and resources.

> This open ISA provides designers and developers with greater control over their computing environments, allowing them to fine-tune their systems without relying on third parties or incurring additional license fees associated with proprietary architectures.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by squarefoot on Sunday September 17, 2023 @09:56AM (#37545102)
Also, having competition in the field benefits everyone, including those who wouldn't switch anyway.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by fidotron on Sunday September 17, 2023 @09:59AM (#37545138)
In fairness using Qualcomm for purposes other than mobile modem integration is a niche pursuit for ARM windows machines and Meta Quest VR. Their CPU implementations never recovered from the 64 bit transition that wrong footed them completely.

As the parent alluded to, if there is a problem in the Android ecosystem you will almost certainly find either Qualcomm or Google in the middle of it.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by Geezus_42 on Sunday September 17, 2023 @09:59AM (#37545133)
Yes, but how long until Qualcomm, and whoever else, builds proprietary add-on instruction sets that become SOB and lock people in?
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by dkjaudyeqooe on Sunday September 17, 2023 @10:41AM (#37545511)
If you've gone to the trouble of migrating to RISC-V then you allow that, it's on you.

But even then working around custom extensions is a lot easier than a whole ISA. Short of patents you can always reimplement them. No one can copyright instruction code numbers.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by rwmj on Sunday September 17, 2023 @10:02AM (#37545174)
It's entirely the point of the RISC-V custom extension space that Qualcomm are allowed to do this. It's certainly a risk that software could get locked in to using these custom extensions, but it's also very easy to tell if software is using those extensions from simple examination of the opcodes. For those interested, check the bottom byte[*] of each instruction for:

  x000 10xx   custom-0
  x010 10xx   custom-1
  x101 10xx   custom-2
  x111 10xx   custom-3
[*] Where "bottom byte" is actually the first byte since instructions are always stored little endian.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by znpy on Sunday September 17, 2023 @10:19AM (#37545324)
> software could get locked in to using these custom extensions

the question arises: can such extensions be patented?

we've seen already that APIs cannot get patented (see the Oracle vs Google litigation).

If Qualcomm was to develop a set of extension, but other players in the risc-v space could implement some equivalent that's ISA/binary compatible... I wouldn't see any issue with that.

Am I being too optimistic ?

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by colejohnson66 on Sunday September 17, 2023 @10:25AM (#37545366)
IANAL, but yes, ISA extensions can be patented. For example, the x86-64 extension ("Long Mode") was created by AMD, and Intel had to pay to license it.[0] Those patents expired a few years ago, allowing Microsoft and Apple to write x86-64 to ARM translators freely.

[0]: https://en.wikipedia.org/wiki/X86-64#Licensing

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by rwmj on Sunday September 17, 2023 @11:05AM (#37545789)
RISC-V has two sorts of extensions. The custom extensions I mentioned in my post above are vendor-specific and they can do what they want, patent them, keep them secret, whatever. However the standard extensions which go through ratification by RISC-V International and are meant to be implemented by anyone must have a royalty-free patent grant (see: https://riscv.org/wp-content/uploads/2022/03/RISC-V-Amended-...)
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by camel-cdr on Sunday September 17, 2023 @10:21AM (#37545339)
The cool thing is that there are already extensions in the work to make custom vendor extension compatible with each other and vendors have a general incentive in not keeping their extensions private, because this will hinder software support. as most FOSS software/toolchains will target the extension profiles, which won't include any closed extensions.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by hashtag-til on Sunday September 17, 2023 @09:57AM (#37545112)
That’s very aspirational, but hardly backed by any reference these days.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by Moto7451 on Sunday September 17, 2023 @10:01AM (#37545155)
Agreed, especially given their position in ARM, a ubiquitous and easy to license IP. The lock in will come from the GPU, accelerator/coprocessor, and other IPs that will lead to Qualcomm/other large vendor lock in.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ndsipa_pomu on Sunday September 17, 2023 @10:03AM (#37545183)
I don't follow what you mean. You can purchase SiFive RISC-V chips.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by themiddleupper on Sunday September 17, 2023 @01:03PM (#37547181)
Are they open source?
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ndsipa_pomu on Sunday September 17, 2023 @01:13PM (#37547285)
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by jlokier on Sunday September 17, 2023 @03:00PM (#37548276)
I believe SiFive's CPUs and chip designs are not open source generally, although they do open source a lot of related things such as software, specifications, tools. I looked at their GitHub and didn't find any CPUs in there, though there are a lot of repos.

Here's an interesting take on what someone thinks "open source" means in this context: gjsman-1000 wrote: Open source refers solely to the software side of things in these groups and types of projects. Thus, all of the drivers and software you need to use the SiFive is open source and thus you can say it is an open source design. However, it is not an "open hardware" design in that the IP used to design the chip is not released. https://news.ycombinator.com/item?id=25762114

I personally don't think of closed chip designs with open software and specifications as open source chips. That would be like saying Intel and AMD x86s are open source. Though to be fair to those companies, their CPU programming models are much more open than their FPGA programming models, which requires proprietary software and secret specifications to program them at all.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ilyt on Sunday September 17, 2023 @11:36AM (#37546169)
> RISC-V is not tied to Qualcomm, so you can either choose a different partner or do it all yourself if you've got the necessary skills and resources.

ISA is the least important part in CPU. The hard part is having all drivers for the peripherals given chip has and knowing most of the chinese vendors it's straight to landfill after few years unless something becomes so popular community RE it.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ndsipa_pomu on Sunday September 17, 2023 @01:58PM (#37547708)
> ISA is the least important part in CPU

It is essential though, so it's an important step towards having entirely open CPUs

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ilyt on Sunday September 17, 2023 @03:13PM (#37548375)
Proprietary ISA with open peripherals would be FAR better than other way around. Frankly the ISA part is easiest to change from OS kernel perspective.

If "open" ISA comes with a bunch of blobs it's essentially exactly same situation as using ARM chip.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ndsipa_pomu on Sunday September 17, 2023 @03:48PM (#37548664)
There's a HN link to https://pineapple-one.github.io/ on the front-page now. Is that of interest?
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by TradingPlaces on Sunday September 17, 2023 @10:00AM (#37545147)
The advantage is that ARM is trying to change their license and royalty structure and are currently suing Qualcomm. https://www.courtlistener.com/docket/64938776/arm-ltd-v-qual...
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by hashtag-til on Sunday September 17, 2023 @10:02AM (#37545172)
You mean advantage for who? That their quarrel, not a trend.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by rwmj on Sunday September 17, 2023 @10:09AM (#37545240)
If ARM are going to attack Qualcomm, who else will they go for? Particularly since they now need to justify their very high stock price. With RISC-V you have a clear license (BSD) which lets you do what you want, now and in the future.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by klelatti on Sunday September 17, 2023 @10:23AM (#37545353)
Qualcomm took the first step in this case by trying to sell Nuvia derived designs under their own license agreement. Whoever wins it’s not really Arm going on the ‘attack’ if there is a reasonable case that the license has been breached.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by TradingPlaces on Sunday September 17, 2023 @11:59AM (#37546467)
We have no visibility into either contract at the center of this case. I’m holding off judgement until we understand Qualcomm’s architecture license, and the assignment clause in Nuvia's. I will only say that suing a 10% customer is, generally speaking, a terrible idea.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by klelatti on Sunday September 17, 2023 @01:28PM (#37547431)
> a terrible idea

Well you’re not really holding off judgment then! It’s also a terrible idea to let big customers breach their contracts but as you say we haven’t seen the contracts concerned.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by TradingPlaces on Sunday September 17, 2023 @03:09PM (#37548343)
> generally speaking

And I stand by that. Leave aside who is right, because we don’t know. We do know that Qualcomm sent them ~$270m last fiscal year and ARM is pushing them away. The case is over “tens of millions” in Qualcomm’s telling, so it’s not even that much money ARM is seeking, and it is risky. They have a huge mess with the ARM China joint venture that is not done unfolding IMO, and they have chosen that same moment to sue their second biggest customer, who is about to bring ARM chips to Windows PCs in a real way. ARM “winning” this case looks like losing to me.

In any event, I think they settle before it gets to trial next year, because the potential for embarrassment in discovery for both parties is too great, the sum in question is too small, and both companies should want to see those ARM Windows PCs.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by klelatti on Monday September 18, 2023 @02:39AM (#37552994)
> Qualcomm sent them ~$270m last fiscal year > ARM is pushing them away > “tens of millions” in Qualcomm’s telling > ARM “winning” this case looks like losing to me.

I'm sorry, this is once again a very one sided portrayal of this case. Qualcomm is utterly reliant on Arm's technology and if - and you admit is a possibility - Qualcomm has materially breached its licenses in a way that is detrimental to Arm's interests, Arm is supposed to say 'fine please, go ahead'? Of course not!

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by ksec on Sunday September 17, 2023 @11:18AM (#37545962)
Apple sued Qualcomm, Samsung, Nokia, Ericsson and many others in the past. If Apple are going to attack, who else will they go for?
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by hashtag-til on Sunday September 17, 2023 @02:24PM (#37547933)
That’s what I’m saying.

People sometimes think they are very clever and read way too much between the lines.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by dkjaudyeqooe on Sunday September 17, 2023 @10:24AM (#37545364)
ARM is no saint either. The problem is that when you have total control over the key IP at some point you become prone to extracting more money out of your customers through various forms of coercion.

The advantage of moving to RISC-V is that no one owns it and you can always leave your IP vendor for another one. Because RISC-V is an attractive ISA it's having an anti-fragmentation effect, creating a popular standard and an industry around it.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by phkahler on Sunday September 17, 2023 @10:16AM (#37545292)
>> There are plenty of ISAs you can find freely available today (Open sparc anyone?). The problem is fragmentation…

If by "fragmentation" you mean lack of industry-wide support, then you've answered your own question as to why RISC-V. Most Debian packages can run on it. There is even an Android port to RISC-V. Outside x86 and ARM, the next best supported ISA is RISC-V.

Unrelated: why do they call the instruction set an architecture or ISA?

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by acdha on Sunday September 17, 2023 @10:26AM (#37545381)
Strictly speaking an instruction set doesn’t include things like the memory model which you need to know to be able to port code. For example, Apple had to add an extension to their ARM chips which makes stronger guarantees about the order in which memory is written because x86 Mac apps might have dependencies on that which their developers hadn’t been aware of.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by snvzz on Sunday September 17, 2023 @09:32PM (#37551188)
Very strictly speaking, to the point where it's true but irrelevant.

RISC-V does have specifications for memory models: RVWMO and Ztso. They are both ratified.

Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by acdha on Sunday September 17, 2023 @11:11PM (#37551780)
Oh, apologies if it sounded like I was trying to say RISC-V doesn't - I was only trying to explain why we use the term “instruction set architecture” as opposed to just “instruction set”.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by snvzz on Sunday September 17, 2023 @11:20PM (#37551837)
Because the parent was talking about fragmentation, it does not hurt to ensure it is understood that the memory model _is_ standardized in RISC-V.
Re:Qualcomm: What is RISC-V, and why we're unlocking its pot... by brucehoult on Monday September 18, 2023 @02:57AM (#37553124)
> Unrelated: why do they call the instruction set an architecture or ISA?

In the early days of all of mainframes, minicomputers, and microprocessors companies slapped some hardware design together and then made un an instruction set for it. When the same company made a better, faster, shinier computer a few years later the hardware was completely different and the instruction set was completely different and everyone had to rewrite their software.

One of the best-known examples is the Intel 4004, 8008, 8080, 8086 and so on. None of them can run software for either later or earlier chips. Intel was reasonably good at making it not too hard to rewrite old software, but it still had to be done.

An Instruction Set ARCHITECTURE is an instruction set that is designed from the outset to be independent of any particular hardware implementation of it, and it is intended to make and sell machines over a long period of time that can all run the same software.

Not only that, but with, for example, the IBM System/360 introduced in 1964 they announced six different machines (Models 30, 40, 50, 60, 62, and 70) on the same day, with about a 20:1 "commercial" performance ratio (90:1 for "scientific" use) and a similar range of monthly rental costs (IBM didn't sell them outright).

RISC-V is similarly deliberately an Instruction Set Architecture, that works well with a very wide range of implementation techniques and cost/size, all of which can run exactly the same software (at least if it sticks to RV32I / RV64I).