All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
@ 2016-09-28  0:06 Greg Ungerer
  2016-09-29  7:50 ` Laurent Vivier
  2016-09-29 15:57 ` Michael Tokarev
  0 siblings, 2 replies; 7+ messages in thread
From: Greg Ungerer @ 2016-09-28  0:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Greg Ungerer

The shipping default setting for the Freescale M5208EVB board is to run
the CPU at 166.67MHz. The current qemu emulation code for this board is
defaulting to 66MHz. This results in time appearing to run way to slowly.
So a "sleep 5" in a standard ColdFire Linux build takes almost 15
seconds in real time to actually complete.

Change the hard coded default to match the default hardware setting.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
 hw/m68k/mcf5208.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

v2: more accurately set frequency (166666666 instead of 166000000)

diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
index 9240ebf..3438314 100644
--- a/hw/m68k/mcf5208.c
+++ b/hw/m68k/mcf5208.c
@@ -21,7 +21,7 @@
 #include "elf.h"
 #include "exec/address-spaces.h"
 
-#define SYS_FREQ 66000000
+#define SYS_FREQ 166666666
 
 #define PCSR_EN         0x0001
 #define PCSR_RLD        0x0002
-- 
1.9.1

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

* Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
  2016-09-28  0:06 [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb Greg Ungerer
@ 2016-09-29  7:50 ` Laurent Vivier
  2016-09-29  7:56   ` Thomas Huth
  2016-09-29 12:27   ` Greg Ungerer
  2016-09-29 15:57 ` Michael Tokarev
  1 sibling, 2 replies; 7+ messages in thread
From: Laurent Vivier @ 2016-09-29  7:50 UTC (permalink / raw)
  To: Greg Ungerer, qemu-devel



Le 28/09/2016 à 02:06, Greg Ungerer a écrit :
> The shipping default setting for the Freescale M5208EVB board is to run
> the CPU at 166.67MHz. The current qemu emulation code for this board is
> defaulting to 66MHz. This results in time appearing to run way to slowly.
> So a "sleep 5" in a standard ColdFire Linux build takes almost 15
> seconds in real time to actually complete.
> 
> Change the hard coded default to match the default hardware setting.
> 
> Signed-off-by: Greg Ungerer <gerg@uclinux.org>

This solution is as good as another, so:

Reviewed-by: Laurent Vivier <laurent@vivier.eu>

> ---
>  hw/m68k/mcf5208.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> v2: more accurately set frequency (166666666 instead of 166000000)
> 
> diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
> index 9240ebf..3438314 100644
> --- a/hw/m68k/mcf5208.c
> +++ b/hw/m68k/mcf5208.c
> @@ -21,7 +21,7 @@
>  #include "elf.h"
>  #include "exec/address-spaces.h"
>  
> -#define SYS_FREQ 66000000
> +#define SYS_FREQ 166666666
>  
>  #define PCSR_EN         0x0001
>  #define PCSR_RLD        0x0002
> 

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

* Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
  2016-09-29  7:50 ` Laurent Vivier
@ 2016-09-29  7:56   ` Thomas Huth
  2016-09-29  8:02     ` Laurent Vivier
  2016-09-29 12:39     ` Greg Ungerer
  2016-09-29 12:27   ` Greg Ungerer
  1 sibling, 2 replies; 7+ messages in thread
From: Thomas Huth @ 2016-09-29  7:56 UTC (permalink / raw)
  To: Laurent Vivier, Greg Ungerer, qemu-devel, qemu-trivial, Peter Maydell

On 29.09.2016 09:50, Laurent Vivier wrote:
> 
> 
> Le 28/09/2016 à 02:06, Greg Ungerer a écrit :
>> The shipping default setting for the Freescale M5208EVB board is to run
>> the CPU at 166.67MHz. The current qemu emulation code for this board is
>> defaulting to 66MHz. This results in time appearing to run way to slowly.
>> So a "sleep 5" in a standard ColdFire Linux build takes almost 15
>> seconds in real time to actually complete.
>>
>> Change the hard coded default to match the default hardware setting.
>>
>> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
> 
> This solution is as good as another, so:
> 
> Reviewed-by: Laurent Vivier <laurent@vivier.eu>

Fine for me, too, so:

Reviewed-by: Thomas Huth <huth@tuxfamily.org>

By the way, we still do not have a m68k maintainer yet ... Laurent,
maybe you could finally send a pull request for that patch here:
https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg00805.html ?

Meanwhile, Peter, could you please take this patch here from Greg
directly? Or should it go via qemu-trivial instead?

 Thomas


>> ---
>>  hw/m68k/mcf5208.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> v2: more accurately set frequency (166666666 instead of 166000000)
>>
>> diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
>> index 9240ebf..3438314 100644
>> --- a/hw/m68k/mcf5208.c
>> +++ b/hw/m68k/mcf5208.c
>> @@ -21,7 +21,7 @@
>>  #include "elf.h"
>>  #include "exec/address-spaces.h"
>>  
>> -#define SYS_FREQ 66000000
>> +#define SYS_FREQ 166666666
>>  
>>  #define PCSR_EN         0x0001
>>  #define PCSR_RLD        0x0002
>>
> 

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

* Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
  2016-09-29  7:56   ` Thomas Huth
@ 2016-09-29  8:02     ` Laurent Vivier
  2016-09-29 12:39     ` Greg Ungerer
  1 sibling, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2016-09-29  8:02 UTC (permalink / raw)
  To: Thomas Huth, Greg Ungerer, qemu-devel, qemu-trivial, Peter Maydell



Le 29/09/2016 à 09:56, Thomas Huth a écrit :
> On 29.09.2016 09:50, Laurent Vivier wrote:
>>
>>
>> Le 28/09/2016 à 02:06, Greg Ungerer a écrit :
>>> The shipping default setting for the Freescale M5208EVB board is to run
>>> the CPU at 166.67MHz. The current qemu emulation code for this board is
>>> defaulting to 66MHz. This results in time appearing to run way to slowly.
>>> So a "sleep 5" in a standard ColdFire Linux build takes almost 15
>>> seconds in real time to actually complete.
>>>
>>> Change the hard coded default to match the default hardware setting.
>>>
>>> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
>>
>> This solution is as good as another, so:
>>
>> Reviewed-by: Laurent Vivier <laurent@vivier.eu>
> 
> Fine for me, too, so:
> 
> Reviewed-by: Thomas Huth <huth@tuxfamily.org>
> 
> By the way, we still do not have a m68k maintainer yet ... Laurent,
> maybe you could finally send a pull request for that patch here:
> https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg00805.html ?

Well, this patch was waiting I resend my 680x0 support series, and I
didn't have the time to rework it until now... but if you want to merge
it as is, don't hesitate.

Thanks,
Laurent

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

* Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
  2016-09-29  7:50 ` Laurent Vivier
  2016-09-29  7:56   ` Thomas Huth
@ 2016-09-29 12:27   ` Greg Ungerer
  1 sibling, 0 replies; 7+ messages in thread
From: Greg Ungerer @ 2016-09-29 12:27 UTC (permalink / raw)
  To: Laurent Vivier, qemu-devel

Hi Laurent,

On 29/09/16 17:50, Laurent Vivier wrote:
> Le 28/09/2016 à 02:06, Greg Ungerer a écrit :
>> The shipping default setting for the Freescale M5208EVB board is to run
>> the CPU at 166.67MHz. The current qemu emulation code for this board is
>> defaulting to 66MHz. This results in time appearing to run way to slowly.
>> So a "sleep 5" in a standard ColdFire Linux build takes almost 15
>> seconds in real time to actually complete.
>>
>> Change the hard coded default to match the default hardware setting.
>>
>> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
>
> This solution is as good as another, so:
>
> Reviewed-by: Laurent Vivier <laurent@vivier.eu>

Thanks for the review and comments, much appreciated.

Regards
Greg


>> ---
>>  hw/m68k/mcf5208.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> v2: more accurately set frequency (166666666 instead of 166000000)
>>
>> diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
>> index 9240ebf..3438314 100644
>> --- a/hw/m68k/mcf5208.c
>> +++ b/hw/m68k/mcf5208.c
>> @@ -21,7 +21,7 @@
>>  #include "elf.h"
>>  #include "exec/address-spaces.h"
>>
>> -#define SYS_FREQ 66000000
>> +#define SYS_FREQ 166666666
>>
>>  #define PCSR_EN         0x0001
>>  #define PCSR_RLD        0x0002
>>
>

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

* Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
  2016-09-29  7:56   ` Thomas Huth
  2016-09-29  8:02     ` Laurent Vivier
@ 2016-09-29 12:39     ` Greg Ungerer
  1 sibling, 0 replies; 7+ messages in thread
From: Greg Ungerer @ 2016-09-29 12:39 UTC (permalink / raw)
  To: Thomas Huth, Laurent Vivier, qemu-devel, qemu-trivial, Peter Maydell

Hi Thomas,

On 29/09/16 17:56, Thomas Huth wrote:
> On 29.09.2016 09:50, Laurent Vivier wrote:
>>
>>
>> Le 28/09/2016 à 02:06, Greg Ungerer a écrit :
>>> The shipping default setting for the Freescale M5208EVB board is to run
>>> the CPU at 166.67MHz. The current qemu emulation code for this board is
>>> defaulting to 66MHz. This results in time appearing to run way to slowly.
>>> So a "sleep 5" in a standard ColdFire Linux build takes almost 15
>>> seconds in real time to actually complete.
>>>
>>> Change the hard coded default to match the default hardware setting.
>>>
>>> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
>>
>> This solution is as good as another, so:
>>
>> Reviewed-by: Laurent Vivier <laurent@vivier.eu>
>
> Fine for me, too, so:
>
> Reviewed-by: Thomas Huth <huth@tuxfamily.org>

Thanks for the review.

Regards
Greg


> By the way, we still do not have a m68k maintainer yet ... Laurent,
> maybe you could finally send a pull request for that patch here:
> https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg00805.html ?
>
> Meanwhile, Peter, could you please take this patch here from Greg
> directly? Or should it go via qemu-trivial instead?
>
>  Thomas
>
>
>>> ---
>>>  hw/m68k/mcf5208.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> v2: more accurately set frequency (166666666 instead of 166000000)
>>>
>>> diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
>>> index 9240ebf..3438314 100644
>>> --- a/hw/m68k/mcf5208.c
>>> +++ b/hw/m68k/mcf5208.c
>>> @@ -21,7 +21,7 @@
>>>  #include "elf.h"
>>>  #include "exec/address-spaces.h"
>>>
>>> -#define SYS_FREQ 66000000
>>> +#define SYS_FREQ 166666666
>>>
>>>  #define PCSR_EN         0x0001
>>>  #define PCSR_RLD        0x0002
>>>
>>
>
>

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

* Re: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb
  2016-09-28  0:06 [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb Greg Ungerer
  2016-09-29  7:50 ` Laurent Vivier
@ 2016-09-29 15:57 ` Michael Tokarev
  1 sibling, 0 replies; 7+ messages in thread
From: Michael Tokarev @ 2016-09-29 15:57 UTC (permalink / raw)
  To: Greg Ungerer, qemu-devel; +Cc: qemu-trivial

Applied to -trivial, thank you!

/mjt

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

end of thread, other threads:[~2016-09-29 15:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28  0:06 [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb Greg Ungerer
2016-09-29  7:50 ` Laurent Vivier
2016-09-29  7:56   ` Thomas Huth
2016-09-29  8:02     ` Laurent Vivier
2016-09-29 12:39     ` Greg Ungerer
2016-09-29 12:27   ` Greg Ungerer
2016-09-29 15:57 ` Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.