Skip to contentSkip to conversation

offer to help, DCB

DISCUSSION Andy Ritger 5 participants 9 messages Sep 24, 2013 – Sep 27, 2013 6 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi Nouveau developers,

NVIDIA is releasing public documentation on certain aspects of our GPUs, with the intent to address areas that impact the out-of-the-box usability of NVIDIA GPUs with Nouveau. We intend to provide more documentation over time, and guidance in additional areas as we are able.

As a first step towards that, we've posted a document here:

    ftp://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html

that documents the Device Control Block ("DCB") layout in the VBIOS. The DCB describes board topology and the board's display connectors.

I suspect much of the information in that document is not news for the Nouveau community, but hopefully it will be helpful to confirm your understanding or flesh out the implementation of a few unhandled cases.

A few of us who work on NVIDIA's proprietary Linux GPU driver will pay
attention to [email protected] and try to chime in when we can.

If there are specific areas of documentation that would most help you, that feedback would help NVIDIA prioritize our documentation efforts.

If you have specific questions for NVIDIA, you can ask here, or direct
them to: [email protected] I can't promise we'll be able to answer everything, but we'll provide best-effort in areas where we are able.

Thanks,
- Andy Ritger

A message that is not in the archive (sent off-list or not yet received): 20130924044457.GA25785-4K9zQNqW3/fFT5IIyIEb6QC/[email protected]

#2 lore raw

Hey,

Op 24-09-13 06:44, Andy Ritger schreef:

Quoted 22 lines

Hi Nouveau developers,

NVIDIA is releasing public documentation on certain aspects of our GPUs, with the intent to address areas that impact the out-of-the-box usability of NVIDIA GPUs with Nouveau. We intend to provide more documentation over time, and guidance in additional areas as we are able.

As a first step towards that, we've posted a document here:

    ftp://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html

that documents the Device Control Block ("DCB") layout in the VBIOS. The DCB describes board topology and the board's display connectors.

I suspect much of the information in that document is not news for the Nouveau community, but hopefully it will be helpful to confirm your understanding or flesh out the implementation of a few unhandled cases.

A few of us who work on NVIDIA's proprietary Linux GPU driver will pay
attention to [email protected] and try to chime in when we can.

Quoted 6 lines

If there are specific areas of documentation that would most help you, that feedback would help NVIDIA prioritize our documentation efforts.

If you have specific questions for NVIDIA, you can ask here, or direct
them to: [email protected] I can't promise we'll be able to answer everything, but we'll provide best-effort in areas where we are able.

You rock! :D

Our biggest struggle at the moment is the video clocking and power management, which is highly device specific and depends on configuration too. A complete video bios documentation would be nice too, I understand that will take a bit longer than just the dcb. :)

~Maarten

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 30 lines · Maarten Lankhorst

Hey,

Op 24-09-13 06:44, Andy Ritger schreef:

Quoted 27 lines

Hi Nouveau developers,

NVIDIA is releasing public documentation on certain aspects of our GPUs, with the intent to address areas that impact the out-of-the-box usability of NVIDIA GPUs with Nouveau. We intend to provide more documentation over time, and guidance in additional areas as we are able.

As a first step towards that, we've posted a document here:

    ftp://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html

that documents the Device Control Block ("DCB") layout in the VBIOS. The DCB describes board topology and the board's display connectors.

I suspect much of the information in that document is not news for the Nouveau community, but hopefully it will be helpful to confirm your understanding or flesh out the implementation of a few unhandled cases.

A few of us who work on NVIDIA's proprietary Linux GPU driver will pay
attention to [email protected] and try to chime in when we can.

If there are specific areas of documentation that would most help you, that feedback would help NVIDIA prioritize our documentation efforts.

If you have specific questions for NVIDIA, you can ask here, or direct them to: [email protected]

Sorry, I got the email address wrong. The right address is:

[email protected]

sorry I didn't double check the address before sending the announcement.

Quoted 3 lines
Quoted 2 lines

I can't promise we'll be able to answer
everything, but we'll provide best-effort in areas where we are able.

You rock! :D

:) Thanks, Maarten.

Quoted 2 lines

Our biggest struggle at the moment is the video clocking and power management, which is highly device specific and depends on configuration too.

Those will be two of the more difficult areas for us to address, but we'll see what can be done.

Quoted 2 lines

A complete video bios documentation would be nice too, I understand that will take a bit longer than just the dcb. :)

BIOS-related information should be a bit easier to get through the pipeline than other things, so we'll focus on that to start.

I'm looking forward to collaborating with you guys,
- Andy

Quoted 1 line

~Maarten

A message that is not in the archive (sent off-list or not yet received): 20130924181938.GD27823-4K9zQNqW3/fFT5IIyIEb6QC/[email protected]

#6 lore raw
Quoted 37 lines
Quoted 21 lines
Quoted 21 lines

NVIDIA is releasing public documentation on certain aspects of our GPUs, with the intent to address areas that impact the out-of-the-box usability of NVIDIA GPUs with Nouveau. We intend to provide more documentation over time, and guidance in additional areas as we are able.

As a first step towards that, we've posted a document here:

    ftp://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html

that documents the Device Control Block ("DCB") layout in the VBIOS. The DCB describes board topology and the board's display connectors.

I suspect much of the information in that document is not news for the Nouveau community, but hopefully it will be helpful to confirm your understanding or flesh out the implementation of a few unhandled cases.

A few of us who work on NVIDIA's proprietary Linux GPU driver will pay
attention to [email protected] and try to chime in when we can.

Quoted 5 lines
Quoted 5 lines

If there are specific areas of documentation that would most help you, that feedback would help NVIDIA prioritize our documentation efforts.

If you have specific questions for NVIDIA, you can ask here, or direct them to: [email protected]

Sorry, I got the email address wrong. The right address is:

[email protected]

sorry I didn't double check the address before sending the announcement.

Quoted 3 lines
Quoted 2 lines

I can't promise we'll be able to answer
everything, but we'll provide best-effort in areas where we are able.

You rock! :D

Quoted 10 lines

:) Thanks, Maarten.

Quoted 2 lines

Our biggest struggle at the moment is the video clocking and power management, which is highly device specific and depends on configuration too.

Those will be two of the more difficult areas for us to address, but we'll see what can be done.

Quoted 2 lines

A complete video bios documentation would be nice too, I understand that will take a bit longer than just the dcb. :)

Hey Andy,

this is great news,

I suppose the question I have is there any known upfront limits on what you can release or is it going to be a per-request type thing?

My main request if you give Ben whatever he asks for :-P, but I'm interested if you guys would be also able to say review things like the microcode situation and say explaining what might be missing from the nouveau microcode for context switching etc, along with VM things like hw with pagefaults etc.

Dave.

A message that is not in the archive (sent off-list or not yet received): CAPM=9tykSx_p-SgK9+JpUADD8E_M6ciS5kXd68UaE-A9-sgiYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw

On Tue, Sep 24, 2013 at 12:43:46PM -0700, Dave Airlie wrote:
...

Quoted 7 lines

Hey Andy,

this is great news,

I suppose the question I have is there any known upfront limits on what you can release or is it going to be a per-request type thing?

Hi Dave.

I think we're going to have to deal with things on a case-by-case basis. I wouldn't take anything off the table, yet. You all can probably imagine what areas may have IP/security/whatever entanglements, which will be more painful for NVIDIA to sort through. But, for now, just enumerate what information would be most useful. The more specific and targeted the request, the more focused (and hopefully efficient) the internal vetting process can be.

Quoted 4 lines

My main request if you give Ben whatever he asks for :-P, but I'm interested if you guys would be also able to say review things like the microcode situation and say explaining what might be missing from the nouveau microcode for context switching etc,

For microcode: from NVIDIA's perspective, I think we'd like to move to a model where NVIDIA releases microcode firmware (as binary-only) with a defined ABI, versioning, and reasonable licensing to allow redistribution. We have some release engineering process improvements to make there, since today the firmware is allowed to evolve along side the NVIDIA proprietary driver code, and the two are released in lock-step. But longer-term, I think we'd like to move things to the firmware that either we're not comfortable documenting, or things that are Real Hard to get right, like P-state switching.

Does Nouveau reimplement Falcon microcode due to particular deficiencies in NVIDIA's microcode, or because you couldn't get permission in the past to redistribute the firmware extracted from NVIDIA's proprietary driver? If the latter, I think we can get to the point of solving that with more amenable licensing. If the former, I'd like to report the deficiencies from your point of view back to NVIDIA's firmware team, so that we can improve the firmware for Nouveau use.

While I know open firmware would be preferred over binary-only firmware images, hopefully we can find a reasonable compromise there.

Quoted 1 line

along with VM things like hw with pagefaults etc.

I don't have a great sense for how much internal concern there will be around pagetable-related documentation. My guess is that it might be a little harder than DCB and other BIOS-related docs, but much easier than clock programming.

Thanks,
- Andy

Quoted 1 line

Dave.

A message that is not in the archive (sent off-list or not yet received): 20130925003422.GE28691-4K9zQNqW3/fFT5IIyIEb6QC/[email protected]

#10 lore raw
Quoted 12 lines · Andy Ritger

On Tue, Sep 24, 2013 at 12:43:46PM -0700, Dave Airlie wrote:
...

Quoted 7 lines

Hey Andy,

this is great news,

I suppose the question I have is there any known upfront limits on what you can release or is it going to be a per-request type thing?

Hi Dave.

Quoted 7 lines

I think we're going to have to deal with things on a case-by-case basis. I wouldn't take anything off the table, yet. You all can probably imagine what areas may have IP/security/whatever entanglements, which will be more painful for NVIDIA to sort through. But, for now, just enumerate what information would be most useful. The more specific and targeted the request, the more focused (and hopefully efficient) the internal vetting process can be.

Cool good to know.

Quoted 11 lines

For microcode: from NVIDIA's perspective, I think we'd like to move to a model where NVIDIA releases microcode firmware (as binary-only) with a defined ABI, versioning, and reasonable licensing to allow redistribution. We have some release engineering process improvements to make there, since today the firmware is allowed to evolve along side the NVIDIA proprietary driver code, and the two are released in lock-step. But longer-term, I think we'd like to move things to the firmware that either we're not comfortable documenting, or things that are Real Hard to get right, like P-state switching.

Quoted 7 lines

Does Nouveau reimplement Falcon microcode due to particular deficiencies in NVIDIA's microcode, or because you couldn't get permission in the past to redistribute the firmware extracted from NVIDIA's proprietary driver? If the latter, I think we can get to the point of solving that with more amenable licensing. If the former, I'd like to report the deficiencies from your point of view back to NVIDIA's firmware team, so that we can improve the firmware for Nouveau use.

The initial reason for rewriting microcode was that lack of redistribution rights and how distros like RHEL would work out of the box.

I don't think the nouveau microcode is doing anything exotic compared to the nvidia stuff, its probably a lot simpler, and I'm sure there would be some resistance to moving to using the closed blobs only, but there it might be good enough for most people if we could do what AMD do and have a fallback open source microcode for the other cases, though I'm just speaking as RHEL maintainer and watching how much time Ben spends RE'ing microcode :-_

Dave.

#11 lore raw
In reply to a message not in the archive
Quoted 7 lines

Does Nouveau reimplement Falcon microcode due to particular deficiencies in NVIDIA's microcode, or because you couldn't get permission in the past to redistribute the firmware extracted from NVIDIA's proprietary driver? If the latter, I think we can get to the point of solving that with more amenable licensing. If the former, I'd like to report the deficiencies from your point of view back to NVIDIA's firmware team, so that we can improve the firmware for Nouveau use.

While I'm personally one of the guys who wouldn't like to see a binary blob in nouveau, no matter the terms, I've read the firmware blobs decompilation and I'm quite concerned about possible security implications.

The PGRAPH context switch microcode allows user to read/write arbitrary MMIO registers by submitting the firmware methods. The GF100+ video decoding etc. falcon microcodes allow you to just ask for physical instead of virtual addressing, and that includes physical system memory. Why did nVidia include such obviously security-breaking functionality in the firmware images? As I understand it, a user having access to just the FIFO submission interface should only have access to his own VM area, and not have enough power to take over the machine. Is there any security model for nVidia hardware/firmware/kernel driver system?

Marcin Kościelnicki
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#13 lore raw
Quoted 22 lines · Marcin Kościelnicki
Quoted 7 lines

Does Nouveau reimplement Falcon microcode due to particular deficiencies in NVIDIA's microcode, or because you couldn't get permission in the past to redistribute the firmware extracted from NVIDIA's proprietary driver? If the latter, I think we can get to the point of solving that with more amenable licensing. If the former, I'd like to report the deficiencies from your point of view back to NVIDIA's firmware team, so that we can improve the firmware for Nouveau use.

While I'm personally one of the guys who wouldn't like to see a binary blob in nouveau, no matter the terms, I've read the firmware blobs decompilation and I'm quite concerned about possible security implications.

The PGRAPH context switch microcode allows user to read/write arbitrary MMIO registers by submitting the firmware methods. The GF100+ video decoding etc. falcon microcodes allow you to just ask for physical instead of virtual addressing, and that includes physical system memory. Why did nVidia include such obviously security-breaking functionality in the firmware images? As I understand it, a user having access to just the FIFO submission interface should only have access to his own VM area, and not have enough power to take over the machine. Is there any security model for nVidia hardware/firmware/kernel driver system?

Quoted 1 line

Marcin Kościelnicki

Hi Marcin.

I'm not personally familiar with the current implementation of any of NVIDIA's microcode, but what you describe sounds quite serious. I'm taking this up with the correct groups within NVIDIA. Thank you for raising those concerns.

Given that, I need to retract my suggestion of Nouveau using NVIDIA's binary-only microcode, at least until we get to a point where NVIDIA has earned some trust from Nouveau in our microcode implementations.

Incidentally, if you have additional security concerns with NVIDIA's proprietary driver, please feel free to report them to NVIDIA through [email protected]. I admit that NVIDIA hasn't always been the most responsible in the past, and we definitely have some architectural work to do in the proprietary driver (e.g., moving kickoffs to kernel-space, less brain dead usage of the MMU, etc), but we are trying to take security more seriously.

Thanks,
- Andy

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#14 lore raw
In reply to a message not in the archive
Quoted 2 lines · Andy Ritger

Hi Nouveau developers,

Hey Andy, and all you other NVIDIA guys :)

This was a very pleasant shock over breakfast this morning, and is very much appreciated!

I look forward to seeing how we can all work together in the future!

Thanks again,
Ben.

Quoted 35 lines

NVIDIA is releasing public documentation on certain aspects of our GPUs, with the intent to address areas that impact the out-of-the-box usability of NVIDIA GPUs with Nouveau. We intend to provide more documentation over time, and guidance in additional areas as we are able.

As a first step towards that, we've posted a document here:

    ftp://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html

that documents the Device Control Block ("DCB") layout in the VBIOS. The DCB describes board topology and the board's display connectors.

I suspect much of the information in that document is not news for the Nouveau community, but hopefully it will be helpful to confirm your understanding or flesh out the implementation of a few unhandled cases.

A few of us who work on NVIDIA's proprietary Linux GPU driver will pay
attention to [email protected] and try to chime in when we can.

If there are specific areas of documentation that would most help you, that feedback would help NVIDIA prioritize our documentation efforts.

If you have specific questions for NVIDIA, you can ask here, or direct
them to: [email protected] I can't promise we'll be able to answer everything, but we'll provide best-effort in areas where we are able.

Thanks,
- Andy Ritger

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau