qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3] Add basic power management to raspi.


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v3] Add basic power management to raspi.
Date: Tue, 29 Jun 2021 09:46:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 6/28/21 7:38 PM, Peter Maydell wrote:
> On Sat, 26 Jun 2021 at 11:16, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>>
>> Hi Nolan, Peter,
>>
>> On 6/25/21 11:02 PM, Nolan Leake wrote:
>>> diff --git hw/arm/bcm2835_peripherals.c hw/arm/bcm2835_peripherals.c
>>
>> Odd, usually the diff line comes with a/ b/ prefix, I can not
>> apply your patch (git version 2.31.1, Fedora):
>>
>> Applying: Add basic power management to raspi.
>> error: arm/bcm2835_peripherals.c: does not exist in index
>> error: misc/meson.build: does not exist in index
>> error: hw/arm/bcm2835_peripherals.h: does not exist in index
>> Patch failed at 0001 Add basic power management to raspi.
>>
>> But patchew succeeded:
>> 20210625210209.1870217-1-nolan@sigbus.net/">https://patchew.org/QEMU/20210625210209.1870217-1-nolan@sigbus.net/
>>
>> Applying: Add basic power management to raspi.
>> Using index info to reconstruct a base tree...
>> A       arm/bcm2835_peripherals.c
>> A       hw/arm/bcm2835_peripherals.h
>> A       misc/meson.build
>> Falling back to patching base and 3-way merge...
>>
>> So I tested patchew's commit 7856ac0e804:
>> https://github.com/patchew-project/qemu/commit/7856ac0e8045d006f1008a03e1d4d8710b9d0612
> 
> It succeeded, but if you look at that tree you'll notice it
> was confused enough to create a new top level directory misc/
> to put the .c file in! I'm not sure how the result manages to build :-)

I had to do move bcm2835_peripherals.c to build (otherwise meson
complains and refuses to finish the configure script). I assumed it was
a problem on my side (or with my git version) and didn't noticed
bcm2835_peripherals.h was not under include/.

> I have fixed this up locally. I have also moved the bcm2835_powermgt.h
> file to include/hw/misc, to go with the other bcm2835 headers there,
> and I have fixed the region size.

Thank you.

Nolan, can you tell us what OS/distribution you are using? You used
git v2.30.2 which might be badly packaged there, and could deserve
a proper bug report.

Regards,

Phil.



reply via email to

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