* Re: QOM
[not found] <CAP4GjT2fC_bTkoNd=21MrdoC1hKk_jejDBdc8KiNvr86aOyAwA@mail.gmail.com>
@ 2021-12-21 11:59 ` Philippe Mathieu-Daudé
2021-12-21 12:18 ` QOM abhijeet inamdar
0 siblings, 1 reply; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-12-21 11:59 UTC (permalink / raw)
To: abhijeet inamdar, qemu-discuss, qemu-devel
Hi Abhijeet,
On 12/21/21 12:27, abhijeet inamdar wrote:
> Hi,
>
> 1)What does QOM stand for?
QOM: "QEMU Object Model"
See https://qemu-project.gitlab.io/qemu/devel/qom.html
> 2)Can anyone tell what this error means?
>
> (qemu) Unexpected error in object_property_find() at
> /home/ocp/vcpu-playground/vcpu_on_qemu/qemu-4.2.0/qom/object.c:1177:
> qemu-system-arm: Property '.sysbus-irq[0]' not found
> Aborted (core dumped).
I suppose you are trying to connect a device gpio/irq output line
to another device input, likely using sysbus_connect_irq().
The API is "connect the N-th output line from the SysBus device
to this qemu_irq handler", where qemu_irq is the input line.
Apparently your SysBus device doesn't have any output line
registered. These are registered using sysbus_init_irq().
The first call register the first output IRQ, and so on.
Some objects have their QOM interface documented, for
example to use the ARM GIC see:
https://gitlab.com/qemu-project/qemu/-/blob/master/include/hw/intc/arm_gic.h#L22
Hope that helps.
Regards,
Phil.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: QOM
2021-12-21 11:59 ` QOM Philippe Mathieu-Daudé
@ 2021-12-21 12:18 ` abhijeet inamdar
2021-12-21 12:22 ` QOM abhijeet inamdar
0 siblings, 1 reply; 5+ messages in thread
From: abhijeet inamdar @ 2021-12-21 12:18 UTC (permalink / raw)
To: Philippe Mathieu-Daudé; +Cc: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]
Oh,
In that case I have to define my irq set for a machine to handle the
exception and interrupts.
BR.
Abhijeet.
On Tue, 21 Dec, 2021, 12:59 Philippe Mathieu-Daudé, <philmd@redhat.com>
wrote:
> Hi Abhijeet,
>
> On 12/21/21 12:27, abhijeet inamdar wrote:
> > Hi,
> >
> > 1)What does QOM stand for?
>
> QOM: "QEMU Object Model"
>
> See https://qemu-project.gitlab.io/qemu/devel/qom.html
>
> > 2)Can anyone tell what this error means?
> >
> > (qemu) Unexpected error in object_property_find() at
> > /home/ocp/vcpu-playground/vcpu_on_qemu/qemu-4.2.0/qom/object.c:1177:
> > qemu-system-arm: Property '.sysbus-irq[0]' not found
> > Aborted (core dumped).
>
> I suppose you are trying to connect a device gpio/irq output line
> to another device input, likely using sysbus_connect_irq().
>
> The API is "connect the N-th output line from the SysBus device
> to this qemu_irq handler", where qemu_irq is the input line.
>
> Apparently your SysBus device doesn't have any output line
> registered. These are registered using sysbus_init_irq().
> The first call register the first output IRQ, and so on.
>
> Some objects have their QOM interface documented, for
> example to use the ARM GIC see:
>
> https://gitlab.com/qemu-project/qemu/-/blob/master/include/hw/intc/arm_gic.h#L22
>
> Hope that helps.
>
> Regards,
>
> Phil.
>
>
[-- Attachment #2: Type: text/html, Size: 2135 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: QOM
2021-12-21 12:18 ` QOM abhijeet inamdar
@ 2021-12-21 12:22 ` abhijeet inamdar
2021-12-21 16:21 ` QOM abhijeet inamdar
0 siblings, 1 reply; 5+ messages in thread
From: abhijeet inamdar @ 2021-12-21 12:22 UTC (permalink / raw)
To: Philippe Mathieu-Daudé; +Cc: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 1625 bytes --]
As we have almost 80 irq lines and 40-45 NVIC_irq's.
Where can I define them?
BR.
Abhijeet.
On Tue, 21 Dec, 2021, 13:18 abhijeet inamdar, <abhijeetinamdar3005@gmail.com>
wrote:
> Oh,
>
> In that case I have to define my irq set for a machine to handle the
> exception and interrupts.
>
> BR.
> Abhijeet.
>
> On Tue, 21 Dec, 2021, 12:59 Philippe Mathieu-Daudé, <philmd@redhat.com>
> wrote:
>
>> Hi Abhijeet,
>>
>> On 12/21/21 12:27, abhijeet inamdar wrote:
>> > Hi,
>> >
>> > 1)What does QOM stand for?
>>
>> QOM: "QEMU Object Model"
>>
>> See https://qemu-project.gitlab.io/qemu/devel/qom.html
>>
>> > 2)Can anyone tell what this error means?
>> >
>> > (qemu) Unexpected error in object_property_find() at
>> > /home/ocp/vcpu-playground/vcpu_on_qemu/qemu-4.2.0/qom/object.c:1177:
>> > qemu-system-arm: Property '.sysbus-irq[0]' not found
>> > Aborted (core dumped).
>>
>> I suppose you are trying to connect a device gpio/irq output line
>> to another device input, likely using sysbus_connect_irq().
>>
>> The API is "connect the N-th output line from the SysBus device
>> to this qemu_irq handler", where qemu_irq is the input line.
>>
>> Apparently your SysBus device doesn't have any output line
>> registered. These are registered using sysbus_init_irq().
>> The first call register the first output IRQ, and so on.
>>
>> Some objects have their QOM interface documented, for
>> example to use the ARM GIC see:
>>
>> https://gitlab.com/qemu-project/qemu/-/blob/master/include/hw/intc/arm_gic.h#L22
>>
>> Hope that helps.
>>
>> Regards,
>>
>> Phil.
>>
>>
[-- Attachment #2: Type: text/html, Size: 2761 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: QOM
2021-12-21 12:22 ` QOM abhijeet inamdar
@ 2021-12-21 16:21 ` abhijeet inamdar
2022-01-06 10:27 ` QOM Peter Maydell
0 siblings, 1 reply; 5+ messages in thread
From: abhijeet inamdar @ 2021-12-21 16:21 UTC (permalink / raw)
To: Philippe Mathieu-Daudé; +Cc: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]
Hi,
How did we decide the NUM_IRQ_LINES 64 for stellaris?
BR.
Abhijeet.
On Tue, 21 Dec, 2021, 13:22 abhijeet inamdar, <abhijeetinamdar3005@gmail.com>
wrote:
> As we have almost 80 irq lines and 40-45 NVIC_irq's.
>
> Where can I define them?
>
> BR.
> Abhijeet.
>
> On Tue, 21 Dec, 2021, 13:18 abhijeet inamdar, <
> abhijeetinamdar3005@gmail.com> wrote:
>
>> Oh,
>>
>> In that case I have to define my irq set for a machine to handle the
>> exception and interrupts.
>>
>> BR.
>> Abhijeet.
>>
>> On Tue, 21 Dec, 2021, 12:59 Philippe Mathieu-Daudé, <philmd@redhat.com>
>> wrote:
>>
>>> Hi Abhijeet,
>>>
>>> On 12/21/21 12:27, abhijeet inamdar wrote:
>>> > Hi,
>>> >
>>> > 1)What does QOM stand for?
>>>
>>> QOM: "QEMU Object Model"
>>>
>>> See https://qemu-project.gitlab.io/qemu/devel/qom.html
>>>
>>> > 2)Can anyone tell what this error means?
>>> >
>>> > (qemu) Unexpected error in object_property_find() at
>>> > /home/ocp/vcpu-playground/vcpu_on_qemu/qemu-4.2.0/qom/object.c:1177:
>>> > qemu-system-arm: Property '.sysbus-irq[0]' not found
>>> > Aborted (core dumped).
>>>
>>> I suppose you are trying to connect a device gpio/irq output line
>>> to another device input, likely using sysbus_connect_irq().
>>>
>>> The API is "connect the N-th output line from the SysBus device
>>> to this qemu_irq handler", where qemu_irq is the input line.
>>>
>>> Apparently your SysBus device doesn't have any output line
>>> registered. These are registered using sysbus_init_irq().
>>> The first call register the first output IRQ, and so on.
>>>
>>> Some objects have their QOM interface documented, for
>>> example to use the ARM GIC see:
>>>
>>> https://gitlab.com/qemu-project/qemu/-/blob/master/include/hw/intc/arm_gic.h#L22
>>>
>>> Hope that helps.
>>>
>>> Regards,
>>>
>>> Phil.
>>>
>>>
[-- Attachment #2: Type: text/html, Size: 3478 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: QOM
2021-12-21 16:21 ` QOM abhijeet inamdar
@ 2022-01-06 10:27 ` Peter Maydell
0 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2022-01-06 10:27 UTC (permalink / raw)
To: abhijeet inamdar; +Cc: Philippe Mathieu-Daudé, qemu-devel, qemu-discuss
On Tue, 21 Dec 2021 at 16:23, abhijeet inamdar
<abhijeetinamdar3005@gmail.com> wrote:
> How did we decide the NUM_IRQ_LINES 64 for stellaris?
Either:
(a) we looked at the documentation for the hardware, which told us
that this SoC is built with its Cortex-M core configured with
that many interrupt lines
Or:
(b) this is for legacy reasons a bogus setting which happens to
work because it's too big rather than too small
For a new SoC, you need to follow course (a), ie look at what
the hardware is and model that.
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-06 10:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAP4GjT2fC_bTkoNd=21MrdoC1hKk_jejDBdc8KiNvr86aOyAwA@mail.gmail.com>
2021-12-21 11:59 ` QOM Philippe Mathieu-Daudé
2021-12-21 12:18 ` QOM abhijeet inamdar
2021-12-21 12:22 ` QOM abhijeet inamdar
2021-12-21 16:21 ` QOM abhijeet inamdar
2022-01-06 10:27 ` QOM Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).