search for: pci_get_dev_by_id

Displaying 5 results from an estimated 5 matches for "pci_get_dev_by_id".

2013 Oct 06
23
[Bug 70208] New: Nouveau driver doesn't find vbios for Geforce GT 750M on Asus N750JV laptop
https://bugs.freedesktop.org/show_bug.cgi?id=70208 Priority: medium Bug ID: 70208 Assignee: nouveau at lists.freedesktop.org Summary: Nouveau driver doesn't find vbios for Geforce GT 750M on Asus N750JV laptop QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified
2013 Oct 09
0
[PATCH] drm/nouveau: consider CLASS_DISPLAY_3D devices while detecting dsm/optimus
...d=70208 Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com> --- Ideally we would not need to iterate though the pci devices twice. Although currently we have to do that as there is no function that can takes a mask for the class(s) we're looking for. Additionally the base function pci_get_dev_by_id() from drivers/pci is not accessible (not exported), thus we cannot easily make a function that does that for us. Cheers Emil --- drivers/gpu/drm/nouveau/nouveau_acpi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau...
2023 Aug 25
0
[PATCH 1/5] PCI: Add the pci_get_base_class() helper
...se. + */ +struct pci_dev *pci_get_base_class(unsigned int class, struct pci_dev *from) +{ + struct pci_device_id id = { + .vendor = PCI_ANY_ID, + .device = PCI_ANY_ID, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .class_mask = 0xFF0000, + .class = class << 16, + }; + + return pci_get_dev_by_id(&id, from); +} +EXPORT_SYMBOL(pci_get_base_class); + /** * pci_dev_present - Returns 1 if device matching the device list is present, 0 if not. * @ids: A pointer to a null terminated list of struct pci_device_id structures diff --git a/include/linux/pci.h b/include/linux/pci.h index 71c853...
2023 Aug 25
7
[PATCH 0/5] Add the pci_get_base_class() helper and use it
From: Sui Jingfeng <suijingfeng at loongson.cn> There is no function that can be used to get all PCI(e) devices in a system by matching against its the PCI base class code only, while keep the sub-class code and the programming interface ignored. Therefore, add the pci_get_base_class() function to suit the need. For example, if an application want to process all PCI(e) display devices in a
2016 May 27
3
[PATCH 4/4] drm/nouveau/acpi: fix lockup with PCIe runtime PM
Hi Peter, On 24 May 2016 at 23:53, Peter Wu <peter at lekensteyn.nl> wrote: > Since "PCI: Add runtime PM support for PCIe ports", the parent PCIe port > can be runtime-suspended which disables power resources via ACPI. This > is incompatible with DSM, resulting in a GPU device which is still in D3 > and locks up the kernel on resume. > > Mirror the behavior of