search for: pci_request_region

Displaying 20 results from an estimated 126 matches for "pci_request_region".

Did you mean: pci_request_regions
2020 Feb 07
2
[PATCH v2] drm/bochs: downgrade pci_request_region failure from error to warning
Shutdown of firmware framebuffer has a bunch of problems. Because of this the framebuffer region might still be reserved even after drm_fb_helper_remove_conflicting_pci_framebuffers() returned. Don't consider pci_request_region() failure for the framebuffer region as fatal error to workaround this issue. Reported-by: Marek Marczykowski-G?recki <marmarek at invisiblethingslab.com> Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> --- drivers/gpu/drm/bochs/bochs_hw.c | 3 +-- 1 file changed, 1 insertion(+),...
2020 Feb 07
2
[PATCH v2] drm/bochs: downgrade pci_request_region failure from error to warning
Shutdown of firmware framebuffer has a bunch of problems. Because of this the framebuffer region might still be reserved even after drm_fb_helper_remove_conflicting_pci_framebuffers() returned. Don't consider pci_request_region() failure for the framebuffer region as fatal error to workaround this issue. Reported-by: Marek Marczykowski-G?recki <marmarek at invisiblethingslab.com> Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> --- drivers/gpu/drm/bochs/bochs_hw.c | 3 +-- 1 file changed, 1 insertion(+),...
2020 Feb 07
0
[PATCH v2] drm/bochs: downgrade pci_request_region failure from error to warning
...own of firmware framebuffer has a bunch of problems. Because > of this the framebuffer region might still be reserved even after > drm_fb_helper_remove_conflicting_pci_framebuffers() returned. Out of curiosity: what's going wrong here? Best regards Thomas > > Don't consider pci_request_region() failure for the framebuffer > region as fatal error to workaround this issue. > > Reported-by: Marek Marczykowski-G?recki <marmarek at invisiblethingslab.com> > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> > --- > drivers/gpu/drm/bochs/bochs_hw.c | 3 +-- &gt...
2015 Mar 25
2
[PATCH] Add virtio gpu driver.
...common.c > > index e894eb2..a3167fa 100644 > > --- a/drivers/virtio/virtio_pci_common.c > > +++ b/drivers/virtio/virtio_pci_common.c > > @@ -510,7 +510,7 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, > > goto err_enable_device; > > > > rc = pci_request_regions(pci_dev, "virtio-pci"); > > - if (rc) > > + if (rc && ((pci_dev->class >> 8) != PCI_CLASS_DISPLAY_VGA)) > > goto err_request_regions; > > > > if (force_legacy) { > > This is probably what you described as "the only concern...
2015 Mar 25
2
[PATCH] Add virtio gpu driver.
...common.c > > index e894eb2..a3167fa 100644 > > --- a/drivers/virtio/virtio_pci_common.c > > +++ b/drivers/virtio/virtio_pci_common.c > > @@ -510,7 +510,7 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, > > goto err_enable_device; > > > > rc = pci_request_regions(pci_dev, "virtio-pci"); > > - if (rc) > > + if (rc && ((pci_dev->class >> 8) != PCI_CLASS_DISPLAY_VGA)) > > goto err_request_regions; > > > > if (force_legacy) { > > This is probably what you described as "the only concern...
2013 Oct 03
2
Resource map sanity check fails after GRUB "keeps" the gfx mode
...fix the framebuffer-handover. Fortunately, no real DRM drivers actually request pci regions (why would they? pci-probing already guarantees exclusive access) and the platform-FB drivers have already been converted. So this bug can only be triggered with legacy hw-fbdev drivers (a simple search for pci_request_regions in ./drivers/video/ shows them). > This complexity doesn't seem right. I think specific drivers should > trump generic once and DRI drivers should trump non-DRI. It shouldn't > matter whether the BOOTFP area from screen_info coincides with the PCI > BAR or occupies a part of...
2015 Jun 24
1
[PATCH] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2015 Jun 24
1
[PATCH] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2015 Jun 23
1
[PATCH] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2015 Jun 23
1
[PATCH] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2006 Aug 04
2
Dedicate PCI Devices to DomU?
...build by xen-unstable. This is what it throws! qla2xxx: Unknown symbol fc_attach_transport qla2xxx: Unknown symbol pci_set_consistent_dma_mask qla2xxx: Unknown symbol pci_enable_device qla2xxx: Unknown symbol fc_remote_port_add qla2xxx: Unknown symbol fc_remove_host qla2xxx: Unknown symbol pci_request_regions qla2xxx: Unknown symbol pci_bus_write_config_byte qla2xxx: Unknown symbol fc_remote_port_delete qla2xxx: Unknown symbol pci_bus_read_config_dword qla2xxx: Unknown symbol pci_bus_read_config_word qla2xxx: Unknown symbol fc_release_transport qla2xxx: Unknown symbol pci_set_mwi qla2xxx: Unknow...
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2015 Jun 16
2
[PATCH] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2015 Mar 25
0
[PATCH] Add virtio gpu driver.
...b2..a3167fa 100644 > > > --- a/drivers/virtio/virtio_pci_common.c > > > +++ b/drivers/virtio/virtio_pci_common.c > > > @@ -510,7 +510,7 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, > > > goto err_enable_device; > > > > > > rc = pci_request_regions(pci_dev, "virtio-pci"); > > > - if (rc) > > > + if (rc && ((pci_dev->class >> 8) != PCI_CLASS_DISPLAY_VGA)) > > > goto err_request_regions; > > > > > > if (force_legacy) { > > > > This is probably what you...
2015 Mar 25
0
[PATCH] Add virtio gpu driver.
...b2..a3167fa 100644 > > > --- a/drivers/virtio/virtio_pci_common.c > > > +++ b/drivers/virtio/virtio_pci_common.c > > > @@ -510,7 +510,7 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, > > > goto err_enable_device; > > > > > > rc = pci_request_regions(pci_dev, "virtio-pci"); > > > - if (rc) > > > + if (rc && ((pci_dev->class >> 8) != PCI_CLASS_DISPLAY_VGA)) > > > goto err_request_regions; > > > > > > if (force_legacy) { > > > > This is probably what you...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2015 Jun 18
2
[PATCH v2] virtio-pci: alloc only resources actually used.
...ers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index eba1b7a..327a121 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, if (rc) goto err_enable_device; - rc = pci_request_regions(pci_dev, "virtio-pci"); - if (rc) - goto err_request_regions; - if (force_legacy) { rc = virtio_pci_legacy_probe(vp_dev); /* Also try modern mode if we can't map BAR0 (no IO space). */ @@ -543,8 +539,6 @@ err_register: else virtio_pci_modern_remove(vp_dev); err_pro...
2013 Oct 04
0
Resource map sanity check fails after GRUB "keeps" the gfx mode
...sy-adjust:nvidiafb: unknown NV_ARCH dm-nobusy-noadjust:nvidiafb_setup START dm-nobusy-noadjust:nvidiafb_probe START dm-nobusy-noadjust:nvidiafb 0000:01:00.0: BAR 3: can't reserve [mem 0xf0000000-0xf1ffffff 64bit pref] dm-nobusy-noadjust:nvidiafb: cannot request PCI regions The error comes from pci_request_regions() called in drivers/video/nvidia/nvidia.c > > It means that your patch by itself won't prevent nvidiafb from > > getting the resource on my hardware (ThinkPad W530). However, if > > the BOOTFP resource matches the PCI BAR for the video card, adding > > IORESOURCE_BUSY...
2015 Jun 16
0
[PATCH] virtio-pci: alloc only resources actually used.
.../virtio/virtio_pci_common.c > index eba1b7a..327a121 100644 > --- a/drivers/virtio/virtio_pci_common.c > +++ b/drivers/virtio/virtio_pci_common.c > @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, > if (rc) > goto err_enable_device; > > - rc = pci_request_regions(pci_dev, "virtio-pci"); > - if (rc) > - goto err_request_regions; > - > if (force_legacy) { > rc = virtio_pci_legacy_probe(vp_dev); > /* Also try modern mode if we can't map BAR0 (no IO space). */ > @@ -543,8 +539,6 @@ err_register: > else >...
2015 Jun 18
0
[PATCH v2] virtio-pci: alloc only resources actually used.
.../virtio/virtio_pci_common.c > index eba1b7a..327a121 100644 > --- a/drivers/virtio/virtio_pci_common.c > +++ b/drivers/virtio/virtio_pci_common.c > @@ -510,10 +510,6 @@ static int virtio_pci_probe(struct pci_dev *pci_dev, > if (rc) > goto err_enable_device; > > - rc = pci_request_regions(pci_dev, "virtio-pci"); > - if (rc) > - goto err_request_regions; > - > if (force_legacy) { > rc = virtio_pci_legacy_probe(vp_dev); > /* Also try modern mode if we can't map BAR0 (no IO space). */ > @@ -543,8 +539,6 @@ err_register: > else >...