RTL8139 hotplug is broken on windows 2008 sp2.
PATCH 1/1 RTL8139 hotplug is broken on windows 2008 sp2.
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
--- hw/rtl8139.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
hw/rtl8139.c +2 -0
@@ -3476,6 +3476,8 @@ static int pci_rtl8139_init(PCIDevice *dev) s->eeprom.contents[7 ] = s->conf.macaddr.a[0 ] | s->conf.macaddr.a[1 ] <<8 ; s->eeprom.contents[8 ] = s->conf.macaddr.a[2 ] | s->conf.macaddr.a[3 ] <<8 ; s->eeprom.contents[9 ] = s->conf.macaddr.a[4 ] | s->conf.macaddr.a[5 ] <<8 ; +/* workaround broken windows 2008 sp2 driver. */ +memcpy (s->phys, s->conf.macaddr.a,6 ); s->nic =qemu_new_nic (&net_rtl8139_info, &s->conf,object_get_typename (OBJECT (dev)), dev->qdev.id, s);
Signature · 1 line
1.6.0.2
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 10 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Signed-off-by Bo Yang <[email protected]>--- hw/rtl8139.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
Only issue I see is that the subject could be improved (saying what it does rather than what was broken before, e.g. "rtl8139: Init phys with MAC address").
Regards,
Andreas
Quoted 13 lines
hw/rtl8139.c +2
-0@@ -3476,6 +3476,8 @@ static int pci_rtl8139_init(PCIDevice *dev) s->eeprom.contents[7 ] = s->conf.macaddr.a[0 ] | s->conf.macaddr.a[1 ] <<8 ; s->eeprom.contents[8 ] = s->conf.macaddr.a[2 ] | s->conf.macaddr.a[3 ] <<8 ; s->eeprom.contents[9 ] = s->conf.macaddr.a[4 ] | s->conf.macaddr.a[5 ] <<8 ; +/* workaround broken windows 2008 sp2 driver. */ +memcpy (s->phys, s->conf.macaddr.a,6 ); s->nic =qemu_new_nic (&net_rtl8139_info, &s->conf,object_get_typename (OBJECT (dev)), dev->qdev.id, s);
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 12 lines · Andreas Färber
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 10 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Signed-off-by Bo Yang <[email protected]>---
hw/rtl8139.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)
Quoted 6 lines
Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
Only issue I see is that the subject could be improved (saying what it does rather than what was broken before, e.g. "rtl8139: Init phys with MAC address").
I thought the real bug was that the reset function didn't get called?
Alex
Am 09.05.2012 23:00, schrieb Alexander Graf:
Quoted 15 lines · Andreas Färber
Quoted 13 lines
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 10 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Signed-off-by Bo Yang <[email protected]>---
hw/rtl8139.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)
Quoted 8 lines
Quoted 6 lines
Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
Only issue I see is that the subject could be improved (saying what it does rather than what was broken before, e.g. "rtl8139: Init phys with MAC address").
I thought the real bug was that the reset function didn't get called?
That was for the e1000 that I was working on (BNC#722958). I believe Bo tested the combination of both patches?
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 19 lines · Andreas Färber
Am 09.05.2012 23:00, schrieb Alexander Graf:
Quoted 18 lines · Andreas Färber
Quoted 16 lines
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 10 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Signed-off-by Bo Yang <[email protected]>---
hw/rtl8139.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Only issue I see is that the subject could be improved (saying what it does rather than what was broken before, e.g. "rtl8139: Init phys with MAC address").
I thought the real bug was that the reset function didn't get called?
That was for the e1000 that I was working on (BNC#722958). I believe Bo tested the combination of both patches?
IIRC the bug was the same, just that you found the root cause and Bo came up with this patch :).
Alex
Quoted 29 lines
Quoted 1 line
Quoted 1 line · Alexander Graf
Quoted 25 lines · Andreas Färber
Am 09.05.2012 23:00, schrieb Alexander Graf:
Quoted 23 lines · Andreas Färber
Quoted 13 lines
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 10 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Signed-off-by Bo Yang <[email protected]>---
hw/rtl8139.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)Quoted 6 lines
Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
Only issue I see is that the subject could be improved (saying what it does rather than what was broken before, e.g. "rtl8139: Init phys with MAC address").
I thought the real bug was that the reset function didn't get called?
Quoted 8 lines
Quoted 2 lines
That was for the e1000 that I was working on (BNC#722958). I believe Bo tested the combination of both patches?
IIRC the bug was the same, just that you found the root cause and Bo came up with this patch :).
Alex
That is my recollection as well.
Bruce
Am 09.05.2012 23:27, schrieb Bruce Rogers:
Quoted 25 lines
Quoted 25 lines
Quoted 1 line
Quoted 1 line · Alexander Graf
Quoted 21 lines · Andreas Färber
Am 09.05.2012 23:00, schrieb Alexander Graf:
Quoted 19 lines · Andreas Färber
Quoted 8 lines
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 6 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Bo Yang <[email protected]>---
hw/rtl8139.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
I thought the real bug was that the reset function didn't get called?
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
That was for the e1000 that I was working on (BNC#722958). I believe Bo tested the combination of both patches?
IIRC the bug was the same, just that you found the root cause and Bo came up with this patch :).
That is my recollection as well.
Even better then, less work.
Bo, in such a case, the patch should've been recalled (by a reply).
Cheers,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 26 lines · Alexander Graf
Quoted 23 lines · Andreas Färber
Am 09.05.2012 23:00, schrieb Alexander Graf:
Quoted 22 lines · Andreas Färber
Quoted 19 lines
Am 14.02.2012 04:10, schrieb [email protected]:
Quoted 10 lines
From: Bo Yang <[email protected]>
Windows 2008 sp2 tries to read mac address from phys and then write the read value into it. This patch is a workaround for the issue.
Signed-off-by Bo Yang <[email protected]>---
hw/rtl8139.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)Ping! Who feels responsible for reviewing this? It would be a candidate for 1.1 and 0.15.x (BNC#722643).
Only issue I see is that the subject could be improved (saying what it does rather than what was broken before, e.g. "rtl8139: Init phys with MAC address").
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I thought the real bug was that the reset function didn't get called?
That was for the e1000 that I was working on (BNC#722958). I believe Bo tested the combination of both patches?
IIRC the bug was the same, just that you found the root cause and Bo came up with this patch :).
yes.
Quoted 4 lines
Alex