public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] hyperv-fb: add pci stub
@ 2013-10-02 11:55 Gerd Hoffmann
  2013-10-02 11:55 ` [PATCH 2/2] hyperv-fb: add blanking support Gerd Hoffmann
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Gerd Hoffmann @ 2013-10-02 11:55 UTC (permalink / raw)
  Cc: Gerd Hoffmann, K. Y. Srinivasan, Haiyang Zhang,
	Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
driver will bind to the pci device then, so linux kernel and userspace
know there is a proper kernel driver for the device active.  lspci shows
this for example:

[root@dhcp231 ~]# lspci -vs8
00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual
VGA (prog-if 00 [VGA controller])
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
        Expansion ROM at <unassigned> [disabled]
        Kernel driver in use: hyperv_fb

Another effect is that the xorg vesa driver will not attach to the
device and thus the Xorg server will automatically use the fbdev
driver instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 drivers/video/hyperv_fb.c | 40 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/drivers/video/hyperv_fb.c b/drivers/video/hyperv_fb.c
index 8ac99b8..8d456dc 100644
--- a/drivers/video/hyperv_fb.c
+++ b/drivers/video/hyperv_fb.c
@@ -795,12 +795,21 @@ static int hvfb_remove(struct hv_device *hdev)
 }
 
 
+static DEFINE_PCI_DEVICE_TABLE(pci_stub_id_table) = {
+	{
+		.vendor      = PCI_VENDOR_ID_MICROSOFT,
+		.device      = PCI_DEVICE_ID_HYPERV_VIDEO,
+	},
+	{ /* end of list */ }
+};
+
 static const struct hv_vmbus_device_id id_table[] = {
 	/* Synthetic Video Device GUID */
 	{HV_SYNTHVID_GUID},
 	{}
 };
 
+MODULE_DEVICE_TABLE(pci, pci_stub_id_table);
 MODULE_DEVICE_TABLE(vmbus, id_table);
 
 static struct hv_driver hvfb_drv = {
@@ -810,14 +819,43 @@ static struct hv_driver hvfb_drv = {
 	.remove = hvfb_remove,
 };
 
+static int hvfb_pci_stub_probe(struct pci_dev *pdev,
+			       const struct pci_device_id *ent)
+{
+	return 0;
+}
+
+static void hvfb_pci_stub_remove(struct pci_dev *pdev)
+{
+}
+
+static struct pci_driver hvfb_pci_stub_driver = {
+	.name =		KBUILD_MODNAME,
+	.id_table =	pci_stub_id_table,
+	.probe =	hvfb_pci_stub_probe,
+	.remove =	hvfb_pci_stub_remove,
+};
 
 static int __init hvfb_drv_init(void)
 {
-	return vmbus_driver_register(&hvfb_drv);
+	int ret;
+
+	ret = vmbus_driver_register(&hvfb_drv);
+	if (ret != 0)
+		return ret;
+
+	ret = pci_register_driver(&hvfb_pci_stub_driver);
+	if (ret != 0) {
+		vmbus_driver_unregister(&hvfb_drv);
+		return ret;
+	}
+
+	return 0;
 }
 
 static void __exit hvfb_drv_exit(void)
 {
+	pci_unregister_driver(&hvfb_pci_stub_driver);
 	vmbus_driver_unregister(&hvfb_drv);
 }
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] hyperv-fb: add blanking support
  2013-10-02 11:55 [PATCH 1/2] hyperv-fb: add pci stub Gerd Hoffmann
@ 2013-10-02 11:55 ` Gerd Hoffmann
  2013-10-02 20:43   ` Haiyang Zhang
  2013-10-02 14:29 ` [PATCH 1/2] hyperv-fb: add pci stub KY Srinivasan
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Gerd Hoffmann @ 2013-10-02 11:55 UTC (permalink / raw)
  Cc: Gerd Hoffmann, K. Y. Srinivasan, Haiyang Zhang,
	Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 drivers/video/hyperv_fb.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/video/hyperv_fb.c b/drivers/video/hyperv_fb.c
index 8d456dc..130708f 100644
--- a/drivers/video/hyperv_fb.c
+++ b/drivers/video/hyperv_fb.c
@@ -575,6 +575,10 @@ static int hvfb_setcolreg(unsigned regno, unsigned red, unsigned green,
 	return 0;
 }
 
+static int hvfb_blank(int blank, struct fb_info *info)
+{
+	return 1;	/* get fb_blank to set the colormap to all black */
+}
 
 static struct fb_ops hvfb_ops = {
 	.owner = THIS_MODULE,
@@ -584,6 +588,7 @@ static struct fb_ops hvfb_ops = {
 	.fb_fillrect = cfb_fillrect,
 	.fb_copyarea = cfb_copyarea,
 	.fb_imageblit = cfb_imageblit,
+	.fb_blank = hvfb_blank,
 };
 
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* RE: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-02 11:55 [PATCH 1/2] hyperv-fb: add pci stub Gerd Hoffmann
  2013-10-02 11:55 ` [PATCH 2/2] hyperv-fb: add blanking support Gerd Hoffmann
@ 2013-10-02 14:29 ` KY Srinivasan
  2013-10-07  6:50   ` Gerd Hoffmann
  2013-10-02 20:42 ` Haiyang Zhang
  2013-10-09  9:53 ` Tomi Valkeinen
  3 siblings, 1 reply; 10+ messages in thread
From: KY Srinivasan @ 2013-10-02 14:29 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Haiyang Zhang, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list



> -----Original Message-----
> From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> Sent: Wednesday, October 02, 2013 4:55 AM
> Cc: Gerd Hoffmann; KY Srinivasan; Haiyang Zhang; Jean-Christophe Plagniol-
> Villard; Tomi Valkeinen; open list:Hyper-V CORE AND...; open list:FRAMEBUFFER
> LAYER; open list
> Subject: [PATCH 1/2] hyperv-fb: add pci stub
> 
> This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
> driver will bind to the pci device then, so linux kernel and userspace
> know there is a proper kernel driver for the device active.  lspci shows
> this for example:
> 
> [root@dhcp231 ~]# lspci -vs8
> 00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual
> VGA (prog-if 00 [VGA controller])
>         Flags: bus master, fast devsel, latency 0, IRQ 11
>         Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
>         Expansion ROM at <unassigned> [disabled]
>         Kernel driver in use: hyperv_fb
> 
> Another effect is that the xorg vesa driver will not attach to the
> device and thus the Xorg server will automatically use the fbdev
> driver instead.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  drivers/video/hyperv_fb.c | 40
> +++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 39 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/video/hyperv_fb.c b/drivers/video/hyperv_fb.c
> index 8ac99b8..8d456dc 100644
> --- a/drivers/video/hyperv_fb.c
> +++ b/drivers/video/hyperv_fb.c
> @@ -795,12 +795,21 @@ static int hvfb_remove(struct hv_device *hdev)
>  }
> 
> 
> +static DEFINE_PCI_DEVICE_TABLE(pci_stub_id_table) = {
> +	{
> +		.vendor      = PCI_VENDOR_ID_MICROSOFT,
> +		.device      = PCI_DEVICE_ID_HYPERV_VIDEO,
> +	},
> +	{ /* end of list */ }
> +};
> +
>  static const struct hv_vmbus_device_id id_table[] = {
>  	/* Synthetic Video Device GUID */
>  	{HV_SYNTHVID_GUID},
>  	{}
>  };
> 
> +MODULE_DEVICE_TABLE(pci, pci_stub_id_table);
>  MODULE_DEVICE_TABLE(vmbus, id_table);
> 
>  static struct hv_driver hvfb_drv = {
> @@ -810,14 +819,43 @@ static struct hv_driver hvfb_drv = {
>  	.remove = hvfb_remove,
>  };
> 
> +static int hvfb_pci_stub_probe(struct pci_dev *pdev,
> +			       const struct pci_device_id *ent)
> +{
> +	return 0;
> +}
> +
> +static void hvfb_pci_stub_remove(struct pci_dev *pdev)
> +{
> +}
> +
> +static struct pci_driver hvfb_pci_stub_driver = {
> +	.name =		KBUILD_MODNAME,
> +	.id_table =	pci_stub_id_table,
> +	.probe =	hvfb_pci_stub_probe,
> +	.remove =	hvfb_pci_stub_remove,
> +};
> 
>  static int __init hvfb_drv_init(void)
>  {
> -	return vmbus_driver_register(&hvfb_drv);
> +	int ret;
> +
> +	ret = vmbus_driver_register(&hvfb_drv);
> +	if (ret != 0)
> +		return ret;
> +
> +	ret = pci_register_driver(&hvfb_pci_stub_driver);
> +	if (ret != 0) {
> +		vmbus_driver_unregister(&hvfb_drv);
> +		return ret;
> +	}
> +
> +	return 0;
>  }
> 
>  static void __exit hvfb_drv_exit(void)
>  {
> +	pci_unregister_driver(&hvfb_pci_stub_driver);
>  	vmbus_driver_unregister(&hvfb_drv);
>  }
> 
> --
> 1.8.3.1
Gerd,

Thanks for doing this. This certainly will address some of the issues that are reported. I do have a question though - how would this work if we don't have PCI bus in the guest.

Regards,

K. Y

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-02 11:55 [PATCH 1/2] hyperv-fb: add pci stub Gerd Hoffmann
  2013-10-02 11:55 ` [PATCH 2/2] hyperv-fb: add blanking support Gerd Hoffmann
  2013-10-02 14:29 ` [PATCH 1/2] hyperv-fb: add pci stub KY Srinivasan
@ 2013-10-02 20:42 ` Haiyang Zhang
  2013-10-09  9:53 ` Tomi Valkeinen
  3 siblings, 0 replies; 10+ messages in thread
From: Haiyang Zhang @ 2013-10-02 20:42 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: KY Srinivasan, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list



> -----Original Message-----
> From: linux-fbdev-owner@vger.kernel.org [mailto:linux-fbdev-
> owner@vger.kernel.org] On Behalf Of Gerd Hoffmann
> Sent: Wednesday, October 2, 2013 7:55 AM
> Cc: Gerd Hoffmann; KY Srinivasan; Haiyang Zhang; Jean-Christophe Plagniol-
> Villard; Tomi Valkeinen; open list:Hyper-V CORE AND...; open
> list:FRAMEBUFFER LAYER; open list
> Subject: [PATCH 1/2] hyperv-fb: add pci stub
> 
> This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer driver
> will bind to the pci device then, so linux kernel and userspace know there is a
> proper kernel driver for the device active.  lspci shows this for example:
> 
> [root@dhcp231 ~]# lspci -vs8
> 00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual
> VGA (prog-if 00 [VGA controller])
>         Flags: bus master, fast devsel, latency 0, IRQ 11
>         Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
>         Expansion ROM at <unassigned> [disabled]
>         Kernel driver in use: hyperv_fb
> 
> Another effect is that the xorg vesa driver will not attach to the device and
> thus the Xorg server will automatically use the fbdev driver instead.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Acked-by: Haiyang Zhang <haiyangz@microsoft.com>

Thank you for fixing this!

- Haiyang



^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [PATCH 2/2] hyperv-fb: add blanking support
  2013-10-02 11:55 ` [PATCH 2/2] hyperv-fb: add blanking support Gerd Hoffmann
@ 2013-10-02 20:43   ` Haiyang Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Haiyang Zhang @ 2013-10-02 20:43 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: KY Srinivasan, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

> -----Original Message-----
> From: linux-fbdev-owner@vger.kernel.org [mailto:linux-fbdev-
> owner@vger.kernel.org] On Behalf Of Gerd Hoffmann
> Sent: Wednesday, October 2, 2013 7:55 AM
> Cc: Gerd Hoffmann; KY Srinivasan; Haiyang Zhang; Jean-Christophe Plagniol-
> Villard; Tomi Valkeinen; open list:Hyper-V CORE AND...; open
> list:FRAMEBUFFER LAYER; open list
> Subject: [PATCH 2/2] hyperv-fb: add blanking support
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Acked-by: Haiyang Zhang <haiyangz@microsoft.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-02 14:29 ` [PATCH 1/2] hyperv-fb: add pci stub KY Srinivasan
@ 2013-10-07  6:50   ` Gerd Hoffmann
  2013-10-07 17:12     ` KY Srinivasan
  0 siblings, 1 reply; 10+ messages in thread
From: Gerd Hoffmann @ 2013-10-07  6:50 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: Haiyang Zhang, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

On Mi, 2013-10-02 at 14:29 +0000, KY Srinivasan wrote:
> 
> > This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
> > driver will bind to the pci device then, so linux kernel and userspace
> > know there is a proper kernel driver for the device active.  lspci shows
> > this for example:

> Gerd,
> 
> Thanks for doing this. This certainly will address some of the issues that are reported. I do have a question though - how would this work if we don't have PCI bus in the guest.

The hyperv framebuffer driver wouldn't work in the first place then as
it looks up the framebuffer address in pci config space (see hvfb_getmem
function).

cheers,
  Gerd




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-07  6:50   ` Gerd Hoffmann
@ 2013-10-07 17:12     ` KY Srinivasan
  2013-10-08  8:41       ` Gerd Hoffmann
  0 siblings, 1 reply; 10+ messages in thread
From: KY Srinivasan @ 2013-10-07 17:12 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Haiyang Zhang, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1278 bytes --]



> -----Original Message-----
> From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> Sent: Sunday, October 06, 2013 11:51 PM
> To: KY Srinivasan
> Cc: Haiyang Zhang; Jean-Christophe Plagniol-Villard; Tomi Valkeinen; open
> list:Hyper-V CORE AND...; open list:FRAMEBUFFER LAYER; open list
> Subject: Re: [PATCH 1/2] hyperv-fb: add pci stub
> 
> On Mi, 2013-10-02 at 14:29 +0000, KY Srinivasan wrote:
> >
> > > This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
> > > driver will bind to the pci device then, so linux kernel and userspace
> > > know there is a proper kernel driver for the device active.  lspci shows
> > > this for example:
> 
> > Gerd,
> >
> > Thanks for doing this. This certainly will address some of the issues that are
> reported. I do have a question though - how would this work if we don't have PCI
> bus in the guest.
> 
> The hyperv framebuffer driver wouldn't work in the first place then as
> it looks up the framebuffer address in pci config space (see hvfb_getmem
> function).

We are going to fix this as we move this code to run on our UEFI firmware. 

Regards,

K. Y

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-07 17:12     ` KY Srinivasan
@ 2013-10-08  8:41       ` Gerd Hoffmann
  2013-10-08 14:48         ` KY Srinivasan
  0 siblings, 1 reply; 10+ messages in thread
From: Gerd Hoffmann @ 2013-10-08  8:41 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: Haiyang Zhang, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

On Mo, 2013-10-07 at 17:12 +0000, KY Srinivasan wrote:
> 
> > -----Original Message-----
> > From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> > Sent: Sunday, October 06, 2013 11:51 PM
> > To: KY Srinivasan
> > Cc: Haiyang Zhang; Jean-Christophe Plagniol-Villard; Tomi Valkeinen; open
> > list:Hyper-V CORE AND...; open list:FRAMEBUFFER LAYER; open list
> > Subject: Re: [PATCH 1/2] hyperv-fb: add pci stub
> > 
> > On Mi, 2013-10-02 at 14:29 +0000, KY Srinivasan wrote:
> > >
> > > > This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
> > > > driver will bind to the pci device then, so linux kernel and userspace
> > > > know there is a proper kernel driver for the device active.  lspci shows
> > > > this for example:
> > 
> > > Gerd,
> > >
> > > Thanks for doing this. This certainly will address some of the issues that are
> > reported. I do have a question though - how would this work if we don't have PCI
> > bus in the guest.
> > 
> > The hyperv framebuffer driver wouldn't work in the first place then as
> > it looks up the framebuffer address in pci config space (see hvfb_getmem
> > function).
> 
> We are going to fix this as we move this code to run on our UEFI firmware. 

Hmm, windows server 2012 seems to have no option to enable uefi.  So I
guess this is still in development?  How this is going to look like?

Probably you are going for pure uefi firmware, without csm, to be able
to leave all the legacy bios stuff behind in uefi mode.  Therefore no
vesa bios support.  efi drivers for vmbus network/storage/display/input
in the firmware.  No legacy ide/vga pci devices.  Correct?

The linux kernel will come up with efifb then, switching over to
hyperv-fb once the driver is loaded.  The hyperv-fb pci stub driver will
not bind to the hyperv vga pci device if it isn't present in the guest.
hyperv-fb will load just fine nevertheless (once hvfb_getmem is fixed to
not depend on the pci device config space).  The pci stub added by the
patch and the vmbus driver in hyperv-fb are completely independent.

cheers,
  Gerd



^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-08  8:41       ` Gerd Hoffmann
@ 2013-10-08 14:48         ` KY Srinivasan
  0 siblings, 0 replies; 10+ messages in thread
From: KY Srinivasan @ 2013-10-08 14:48 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Haiyang Zhang, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
	open list:Hyper-V CORE AND..., open list:FRAMEBUFFER LAYER,
	open list

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2712 bytes --]



> -----Original Message-----
> From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> Sent: Tuesday, October 08, 2013 1:41 AM
> To: KY Srinivasan
> Cc: Haiyang Zhang; Jean-Christophe Plagniol-Villard; Tomi Valkeinen; open
> list:Hyper-V CORE AND...; open list:FRAMEBUFFER LAYER; open list
> Subject: Re: [PATCH 1/2] hyperv-fb: add pci stub
> 
> On Mo, 2013-10-07 at 17:12 +0000, KY Srinivasan wrote:
> >
> > > -----Original Message-----
> > > From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> > > Sent: Sunday, October 06, 2013 11:51 PM
> > > To: KY Srinivasan
> > > Cc: Haiyang Zhang; Jean-Christophe Plagniol-Villard; Tomi Valkeinen; open
> > > list:Hyper-V CORE AND...; open list:FRAMEBUFFER LAYER; open list
> > > Subject: Re: [PATCH 1/2] hyperv-fb: add pci stub
> > >
> > > On Mi, 2013-10-02 at 14:29 +0000, KY Srinivasan wrote:
> > > >
> > > > > This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
> > > > > driver will bind to the pci device then, so linux kernel and userspace
> > > > > know there is a proper kernel driver for the device active.  lspci shows
> > > > > this for example:
> > >
> > > > Gerd,
> > > >
> > > > Thanks for doing this. This certainly will address some of the issues that are
> > > reported. I do have a question though - how would this work if we don't have
> PCI
> > > bus in the guest.
> > >
> > > The hyperv framebuffer driver wouldn't work in the first place then as
> > > it looks up the framebuffer address in pci config space (see hvfb_getmem
> > > function).
> >
> > We are going to fix this as we move this code to run on our UEFI firmware.
> 
> Hmm, windows server 2012 seems to have no option to enable uefi.  So I
> guess this is still in development?  How this is going to look like?

This feature is there in WS2012 R2
> 
> Probably you are going for pure uefi firmware, without csm, to be able
> to leave all the legacy bios stuff behind in uefi mode.  Therefore no
> vesa bios support.  efi drivers for vmbus network/storage/display/input
> in the firmware.  No legacy ide/vga pci devices.  Correct?
> 
Something on these lines.

> The linux kernel will come up with efifb then, switching over to
> hyperv-fb once the driver is loaded.  The hyperv-fb pci stub driver will
> not bind to the hyperv vga pci device if it isn't present in the guest.
> hyperv-fb will load just fine nevertheless (once hvfb_getmem is fixed to
> not depend on the pci device config space).  The pci stub added by the
> patch and the vmbus driver in hyperv-fb are completely independent.

Ok; thanks.

K. Y
 

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] hyperv-fb: add pci stub
  2013-10-02 11:55 [PATCH 1/2] hyperv-fb: add pci stub Gerd Hoffmann
                   ` (2 preceding siblings ...)
  2013-10-02 20:42 ` Haiyang Zhang
@ 2013-10-09  9:53 ` Tomi Valkeinen
  3 siblings, 0 replies; 10+ messages in thread
From: Tomi Valkeinen @ 2013-10-09  9:53 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: K. Y. Srinivasan, Haiyang Zhang, Jean-Christophe Plagniol-Villard,
	open list:Hyper-V CORE AND..., FRAMEBUFFER LAYER, open list

[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]

On 02/10/13 14:55, Gerd Hoffmann wrote:
> This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
> driver will bind to the pci device then, so linux kernel and userspace
> know there is a proper kernel driver for the device active.  lspci shows
> this for example:
> 
> [root@dhcp231 ~]# lspci -vs8
> 00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual
> VGA (prog-if 00 [VGA controller])
>         Flags: bus master, fast devsel, latency 0, IRQ 11
>         Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
>         Expansion ROM at <unassigned> [disabled]
>         Kernel driver in use: hyperv_fb
> 
> Another effect is that the xorg vesa driver will not attach to the
> device and thus the Xorg server will automatically use the fbdev
> driver instead.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  drivers/video/hyperv_fb.c | 40 +++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 39 insertions(+), 1 deletion(-)
> 

Thanks, queuing the series for 3.13.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-10-09  9:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02 11:55 [PATCH 1/2] hyperv-fb: add pci stub Gerd Hoffmann
2013-10-02 11:55 ` [PATCH 2/2] hyperv-fb: add blanking support Gerd Hoffmann
2013-10-02 20:43   ` Haiyang Zhang
2013-10-02 14:29 ` [PATCH 1/2] hyperv-fb: add pci stub KY Srinivasan
2013-10-07  6:50   ` Gerd Hoffmann
2013-10-07 17:12     ` KY Srinivasan
2013-10-08  8:41       ` Gerd Hoffmann
2013-10-08 14:48         ` KY Srinivasan
2013-10-02 20:42 ` Haiyang Zhang
2013-10-09  9:53 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox