Bug#979006: bumblebee: does not work if the discrete card has a number on PCI bus greater than 99 (63 hexa)

Petr Gajdůšek gajdusek.petr at centrum.cz
Fri Jan 1 21:54:22 GMT 2021


Package: bumblebee
Version: 3.2.1-26
Severity: important
Tags: patch upstream
X-Debbugs-Cc: gajdusek.petr at centrum.cz

Dear maintainer,

I own a HP EliteBook 850 G7 with the discrete graphics card having PCI
ID 108 (6c hexa):

$ lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9bca] (rev 04) (prog-if 00 [VGA controller])
6c:00.0 3D controller [0302]: NVIDIA Corporation GP108M [GeForce MX250] [10de:1d13] (rev a1)

Numbers greater then 99 break following snprintf() in src/bbsecondary.c:

  snprintf(pci_id, 12, "PCI:%02d:%02d:%o", pci_bus_id_discrete->bus, ...

As a result, xorg is invoked with truncated value for option
`-isolateDevice <bus-id>`

  Xorg -isolateDevice PCI:109:00:

rather than the correct one

  Xorg -isolateDevice PCI:109:00:0

The Xorg error is:
  (EE) Invalid isolated device specification

Upstream has a fix in their "devel" branch:
https://github.com/Bumblebee-
Project/Bumblebee/commit/44cd9bd71fb4ded05be51f0d653b59a043b31088

Best regards,
Petr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pcie-id-string-overrun.patch
Type: text/x-patch
Size: 1210 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20210101/72ed91df/attachment.bin>


More information about the pkg-nvidia-devel mailing list