qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mac99 SMP


From: Andrew Randrianasulu
Subject: Re: mac99 SMP
Date: Tue, 4 Mar 2025 18:14:53 +0300

On Tue, Mar 4, 2025 at 6:09 PM Andrew Randrianasulu
<randrianasulu@gmail.com> wrote:
>
> On Tue, Mar 4, 2025 at 4:17 PM BALATON Zoltan <balaton@eik.bme.hu> wrote:
> >
> > On Tue, 4 Mar 2025, Andrew Randrianasulu wrote:
> > > I think this is maximum, I added few more printks, you can see them in
> > > earlier log. But sadly it detours into assembly and all this livepatching
> > > ....
> >
> > See linux/Documentation/admin-guide/kernel-parameters.txt loglevel=7 or
> > ignore_loglevel should be the maxumum level but it seems it's in the
> > assembly part where there are no more detailed logs printed.
> >
> > > Can qemu only print traces if instructed so from monitor or even remote 
> > > gdb
> > > ? Otherwise logs will be huge ...
> >
> > You can enable traces from QEMU monitor but not debug options I think.
> >
> > > I trued to just add -d mmu and log was overwhelming ...
> >
> > Yes this is a lot of logs, redirect to a file with &> then cut out the
> > interesting part. Especially when it's stuck you would see a lot of ISIs
> > repeating so you can stop at that point, no need to wait until it finds
> > the CPU stuck, we just need the first few of those ISI logs. What I'm
> > wondering if when stepping through are these don't happen or the MMU gets
> > set up before that happens? Or maybe it has something to do with the DECR
> > interrupt CPU0 gets but gdb handles somehow, it prints a message about
> > that and the ISIs on CPU1 seem to start at that point so maybe that
> > changes something somewhere that causes CPU1 to start getting interrupts
> > too when it should not yet?
>
>
> Well, logs are at ~100MB each, I tried to diff two of them (both cases
> were run  with -S -s params, so remote gdb was always there, just in
> one case it was just executing without breakpoint set)
>
>  ./qemu-system-ppc -d int,mmu -M mac99,via=pmu -cpu g4    -cdrom
> ~/ISO/install-powerpc-universal-2008.0.iso    -boot d -g 1024x768x8
> -smp 2  -bios ~/K38_sdcard1/Documents/openbios-qemu-smp.elf -display
> sdl -accel tcg,thread=multi -m 2G -kernel ~/boot/vmlinux-6.12.17
> -append "console=ttyPZ0" -S -s  > LOG4.mmu  2>&1
>
> ./qemu-system-ppc -d int,mmu -M mac99,via=pmu -cpu g4    -cdrom
> ~/ISO/install-powerpc-universal-2008.0.iso    -boot d -g 1024x768x8
> -smp 2  -bios ~/K38_sdcard1/Documents/openbios-qemu-smp.elf -display
> sdl -accel tcg,thread=multi -m 2G -kernel ~/boot/vmlinux-6.12.17
> -append "console=ttyPZ0" -S -s  > LOG3.mmu  2>&1
>
> LOG3 was with breakpoint LOG4 without
>
> Diff between them is like 9.5 MB, I see no ISI there, but DECR appear ...
>
> Sorry, I just do not know how to interpret this. :(

They compres extremely well, down to less than ! mb, so attaching them here ...

>
> I also tried to run qemu itself under gdb, sadly it does not improve 
> situation.
>
> >
> > Regards,
> > BALATON Zoltan

Attachment: logs.tar.xz
Description: application/xz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]