Skip to content

Update NVIDIA driver - #74

Closed
crawfxrd wants to merge 2 commits into
system76from
gpu-drv-update
Closed

crawfxrd wants to merge 2 commits into
system76from
gpu-drv-update

Conversation

@crawfxrd

@crawfxrd crawfxrd commented Aug 26, 2021 •

Copy link
Copy Markdown
Member

For the driver:

  • Move enabling GPU power from bootblock to romstage
  • Provide a header to call power function so source file doesn't have to be included in the mainboard
  • Replace BS_DEV_RESOURCES hook with a chip to bind the driver to the devices in devicetree
  • Set subsystem ID via ops_pci->set_subsystem instead of read_resources
  • Fix formatting to follow coreboot style

For mainboards:

  • Using the new driver chip, explicitly define the NVIDIA GPU devices in the devicetree
  • Move enabling GPU power from bootblock to romstage

Tested on gaze15 and gaze16-3050.

- Move enabling GPU power from bootblock to romstage
- Provide a header to call power function so source file doesn't have
  to be included in the mainboard
- Replace BS_DEV_RESOURCES hook with a chip to bind the driver to the
  devices in devicetree
- Set subsystem ID via ops_pci->set_subsystem instead of read_resources
- Fix formatting to follow coreboot style

Tested on gaze15.

- System powers on/off
- GPU has correct subsystem ID on power on*

    lspci -s 01:00.0 -vnn | grep Subsystem
    Subsystem: CLEVO/KAPOK Computer TU116M [GeForce GTX 1660 Ti Mobile] [1558:8520]

- GPU suspends while inactive in hybrid mode

    cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_status
    suspended

- System completes S3 suspend/resume
- GPU has correct subsystem ID after S3 suspend*

Known issue: GPU subsystem ID is lost after GC6 exit

Change-Id: If3ef35fa0a6eb50b6f580c82d0bfb66d44649d3d
Signed-off-by: Tim Crawford <tcrawford@system76.com>
- Using the new driver chip, explicitly define the NVIDIA GPU devices in
  the devicetree
- Move enabling GPU power from bootblock to romstage

Change-Id: Ic47c40fdfa3cab63ec1a16933c691807625b9f8b
Signed-off-by: Tim Crawford <tcrawford@system76.com>
@crawfxrd
crawfxrd marked this pull request as ready for review August 27, 2021 18:36
@crawfxrd crawfxrd mentioned this pull request Sep 17, 2021
28 tasks
@crawfxrd crawfxrd closed this Oct 28, 2021
@crawfxrd
crawfxrd deleted the gpu-drv-update branch October 28, 2021 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant