search for: vga_switcheroo_client_fb_set

Displaying 20 results from an estimated 30 matches for "vga_switcheroo_client_fb_set".

2020 Nov 24
1
[PATCH 09/15] drm/nouveau: Remove references to struct drm_device.pdev
.../drm/nouveau/nouveau_fbcon.c > +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c > @@ -396,7 +396,9 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, > NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", > fb->width, fb->height, nvbo->offset, nvbo); > > - vga_switcheroo_client_fb_set(dev->pdev, info); > + if (dev_is_pci(dev->dev)) > + vga_switcheroo_client_fb_set(to_pci_dev(dev->dev), info); > + I cannot see why dev_is_pci() is needed here. So I am obviously missing something :-( > return 0; > > out_unlock: > @@ -548,7 +550,7 @@ nouveau_fbco...
2015 Oct 20
2
[PATCH 0/1] vga_switcheroo: Constify vga_switcheroo_handler
Another vga_switcheroo cleanup. Maintainers, is it okay to include the one-line change of each driver in here or do you want that split into separate patches? Thanks, Lukas Lukas Wunner (1): vga_switcheroo: Constify vga_switcheroo_handler drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 2 +- drivers/gpu/drm/nouveau/nouveau_acpi.c | 2 +-
2016 Jan 11
0
[PATCH v5 01/12] vga_switcheroo: Add handler flags infrastructure
...CHEROO_CAN_SWITCH_DDC = (1 << 0), + VGA_SWITCHEROO_NEEDS_EDP_CONFIG = (1 << 1), +}; + +/** * enum vga_switcheroo_state - client power state * @VGA_SWITCHEROO_OFF: off * @VGA_SWITCHEROO_ON: on @@ -132,8 +152,10 @@ int vga_switcheroo_register_audio_client(struct pci_dev *pdev, void vga_switcheroo_client_fb_set(struct pci_dev *dev, struct fb_info *info); -int vga_switcheroo_register_handler(const struct vga_switcheroo_handler *handler); +int vga_switcheroo_register_handler(const struct vga_switcheroo_handler *handler, + enum vga_switcheroo_handler_flags_t handler_flags); void vga_switcher...
2020 Feb 06
5
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...*helper, > > /* To allow resizeing without swapping buffers */ > NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", > - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); > + fb->width, fb->height, nvbo->bo.offset, nvbo); > > vga_switcheroo_client_fb_set(dev->pdev, info); > return 0; > @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, > static int > nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev *fbcon) > { > - struct nouveau_framebuffer *nouveau_fb = nouveau_framebuffer(fbcon...
2020 Feb 06
2
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...g without swapping buffers */ >>> ????? NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >>> -??????? fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >>> +??????? fb->width, fb->height, nvbo->bo.offset, nvbo); >>> ? ????? vga_switcheroo_client_fb_set(dev->pdev, info); >>> ????? return 0; >>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, >>> ? static int >>> ? nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev >>> *fbcon) >>> ? { >>>...
2020 Feb 06
2
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...zeing without swapping buffers */ >>> ????? NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >>> -??????? fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >>> +??????? fb->width, fb->height, nvbo->bo.offset, nvbo); >>> ????? vga_switcheroo_client_fb_set(dev->pdev, info); >>> ????? return 0; >>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, >>> ? static int >>> ? nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev >>> *fbcon) >>> ? { >>> -??...
2020 Feb 10
2
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...gt;>>> NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", > >>>> - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); > >>>> + fb->width, fb->height, nvbo->bo.offset, nvbo); > >>>> vga_switcheroo_client_fb_set(dev->pdev, info); > >>>> return 0; > >>>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper > >>>> *helper, > >>>> static int > >>>> nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_...
2020 Feb 10
2
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >>>>>>> - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >>>>>>> + fb->width, fb->height, nvbo->bo.offset, nvbo); >>>>>>> vga_switcheroo_client_fb_set(dev->pdev, info); >>>>>>> return 0; >>>>>>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper >>>>>>> *helper, >>>>>>> static int >>>>>>> nouveau_fbcon_destroy(s...
2020 Feb 06
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...ouveau_fbcon_create(struct drm_fb_helper *helper, /* To allow resizeing without swapping buffers */ NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); + fb->width, fb->height, nvbo->bo.offset, nvbo); vga_switcheroo_client_fb_set(dev->pdev, info); return 0; @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, static int nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev *fbcon) { - struct nouveau_framebuffer *nouveau_fb = nouveau_framebuffer(fbcon->helper.fb); + struct drm_fram...
2020 Feb 06
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
.../* To allow resizeing without swapping buffers */ >> ????? NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >> -??????? fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >> +??????? fb->width, fb->height, nvbo->bo.offset, nvbo); >> ????? vga_switcheroo_client_fb_set(dev->pdev, info); >> ????? return 0; >> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, >> ? static int >> ? nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev >> *fbcon) >> ? { >> -??? struct nouveau_framebuffer...
2020 Feb 06
5
[PATCH 0/4] drm/nouveau: Remove struct nouveau_framebuffer
All fields in struct nouveau_framebuffer appear to be obsolete. The data structure can be replaced by struct drm_framebuffer entirely. Patch 1 removes several unused fields from struct nouveau_framebuffer. Patch 2 moves the field vma to struct nouveau_fbdev. The information in vma is only relevant for fbdev emulation, and as such he field is only used there. Patch 3 removes nvbo from struct
2020 Feb 06
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...To allow resizeing without swapping buffers */ >> ????? NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >> -??????? fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >> +??????? fb->width, fb->height, nvbo->bo.offset, nvbo); >> ? ????? vga_switcheroo_client_fb_set(dev->pdev, info); >> ????? return 0; >> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, >> ? static int >> ? nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev >> *fbcon) >> ? { >> -??? struct nouveau_framebuffer...
2020 Feb 07
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...ng buffers */ >>>> ?????? NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >>>> -??????? fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >>>> +??????? fb->width, fb->height, nvbo->bo.offset, nvbo); >>>> ?? ????? vga_switcheroo_client_fb_set(dev->pdev, info); >>>> ?????? return 0; >>>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper >>>> *helper, >>>> ?? static int >>>> ?? nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev >>>> *...
2020 Feb 06
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...ng buffers */ > >>> NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", > >>> - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); > >>> + fb->width, fb->height, nvbo->bo.offset, nvbo); > >>> vga_switcheroo_client_fb_set(dev->pdev, info); > >>> return 0; > >>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, > >>> static int > >>> nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev > >>> *fbcon) > >...
2020 Feb 10
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...t;> NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >>>>>> - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); >>>>>> + fb->width, fb->height, nvbo->bo.offset, nvbo); >>>>>> vga_switcheroo_client_fb_set(dev->pdev, info); >>>>>> return 0; >>>>>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper >>>>>> *helper, >>>>>> static int >>>>>> nouveau_fbcon_destroy(struct drm_device *dev,...
2020 Feb 10
0
[PATCH 4/4] drm/nouveau: Remove struct nouveau_framebuffer
...quot;allocated %dx%d fb: 0x%llx, bo %p\n", > >>>>>>> - fb->base.width, fb->base.height, nvbo->bo.offset, nvbo); > >>>>>>> + fb->width, fb->height, nvbo->bo.offset, nvbo); > >>>>>>> vga_switcheroo_client_fb_set(dev->pdev, info); > >>>>>>> return 0; > >>>>>>> @@ -413,18 +413,18 @@ nouveau_fbcon_create(struct drm_fb_helper > >>>>>>> *helper, > >>>>>>> static int > >>>>>>>...
2023 Jan 09
1
[PATCH] drm/nouveau: Remove file nouveau_fbcon.c
...EM) */ - - if (chan) - nouveau_fbcon_accel_init(dev); - nouveau_fbcon_zfill(dev, fbcon); - - /* To allow resizeing without swapping buffers */ - NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", - fb->width, fb->height, nvbo->offset, nvbo); - - if (dev_is_pci(dev->dev)) - vga_switcheroo_client_fb_set(to_pci_dev(dev->dev), info); - - return 0; - -out_unlock: - if (chan) - nouveau_vma_del(&fbcon->vma); - nouveau_bo_unmap(nvbo); -out_unpin: - nouveau_bo_unpin(nvbo); -out_unref: - nouveau_bo_ref(NULL, &nvbo); -out: - return ret; -} - -static int -nouveau_fbcon_destroy(struct drm_devi...
2023 Jan 09
1
[PATCH] drm/nouveau: Remove file nouveau_fbcon.c
...v, fbcon); > - > - /* To allow resizeing without swapping buffers */ > - NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", > - fb->width, fb->height, nvbo->offset, nvbo); > - > - if (dev_is_pci(dev->dev)) > - vga_switcheroo_client_fb_set(to_pci_dev(dev->dev), info); > - > - return 0; > - > -out_unlock: > - if (chan) > - nouveau_vma_del(&fbcon->vma); > - nouveau_bo_unmap(nvbo); > -out_unpin: > - nouveau_bo_unpin(nvbo); > -out_unref: > - nouveau_bo...
2023 Jan 09
1
[PATCH] drm/nouveau: Remove file nouveau_fbcon.c
...t; - /* To allow resizeing without swapping buffers */ >> - NV_INFO(drm, "allocated %dx%d fb: 0x%llx, bo %p\n", >> - fb->width, fb->height, nvbo->offset, nvbo); >> - >> - if (dev_is_pci(dev->dev)) >> - vga_switcheroo_client_fb_set(to_pci_dev(dev->dev), info); >> - >> - return 0; >> - >> -out_unlock: >> - if (chan) >> - nouveau_vma_del(&fbcon->vma); >> - nouveau_bo_unmap(nvbo); >> -out_unpin: >> - nouveau_bo_unpin(nvbo); >...
2016 Jan 11
8
[PATCH v5 00/12] Enable GPU switching on pre-retina MacBook Pro
Enable GPU switching on the pre-retina MacBook Pro (2008 - 2013), v5. The main obstacle on these machines is that the panel mode in VBIOS is bogus. Fortunately gmux can switch DDC independently from the display, thereby allowing the inactive GPU to probe the panel's EDID. In short, vga_switcheroo and apple-gmux are amended with hooks to switch DDC, DRM core is amended with a