All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* xlnx-versal-virt machine in qemu
@ 2024-04-20 18:13 abhijeet rajmane
  2024-05-02  6:58 ` abhijeet rajmane
  0 siblings, 1 reply; 2+ messages in thread
From: abhijeet rajmane @ 2024-04-20 18:13 UTC (permalink / raw
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

Hi,
I have booted up the xlnx-versal-virt machine using qemu-system-aarch64. I
wanted to work with can device that has been modelled with this device. I
have used the xilinx_can.c driver for this device and can see two can
controllers. The problem is I am not able to see any interrupts in
/proc/interrupts for both can devices. I have set them up and running. I
have also connected the canbus device to host to transmit and receive can
packets. I am seeing qemu_set_irq() getting called. Am I missing something?

Thanks ,
Abhijeet, India

[-- Attachment #2: Type: text/html, Size: 923 bytes --]

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

* Re: xlnx-versal-virt machine in qemu
  2024-04-20 18:13 xlnx-versal-virt machine in qemu abhijeet rajmane
@ 2024-05-02  6:58 ` abhijeet rajmane
  0 siblings, 0 replies; 2+ messages in thread
From: abhijeet rajmane @ 2024-05-02  6:58 UTC (permalink / raw
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1746 bytes --]

I am using the following command to boot "xlnx-versal-virt" board with
"canbus" and connect it to host machine using "canbus"

$ qemu-system-aarch64 -M xlnx-versal-virt -m 4G -serial mon:stdio -display
none -kernel ~/linux_kernel/linux-5.15.157/arch/arm64/boot/Image \

-device virtio-rng-device,bus=virtio-mmio-bus.0 -drive
if=none,index=0,file=rootfs.img,format=raw,id=hd0 \

-device virtio-blk-device,drive=hd0 -append root=/dev/vda -nic user \

-object can-bus,id=canbus0 -machine canbus0=canbus0 -object
can-bus,id=canbus1 -machine canbus1=canbus1 \

-object can-host-socketcan,id=socketcan0,if=vcan0,canbus=canbus0



->I am using the cansend and candump application to test it.

->After sending certain packets the buffer is getting full. I am seeing
that while ":request_irq" from xilinc_can driver gets called it should
invoke "xcan_interrupt" function. I have added prints in those functions.
"xcan_interrupt" function is not getting called.

->If i check the interrupts on cpu for 'can' interface the count is 0.



Thank You in Advance!!

On Sat, Apr 20, 2024 at 11:43 PM abhijeet rajmane <abhi97.rajmane@gmail.com>
wrote:

> Hi,
> I have booted up the xlnx-versal-virt machine using qemu-system-aarch64. I
> wanted to work with can device that has been modelled with this device. I
> have used the xilinx_can.c driver for this device and can see two can
> controllers. The problem is I am not able to see any interrupts in
> /proc/interrupts for both can devices. I have set them up and running. I
> have also connected the canbus device to host to transmit and receive can
> packets. I am seeing qemu_set_irq() getting called. Am I missing something?
>
> Thanks ,
> Abhijeet, India
>

[-- Attachment #2: Type: text/html, Size: 4868 bytes --]

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

end of thread, other threads:[~2024-05-02  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20 18:13 xlnx-versal-virt machine in qemu abhijeet rajmane
2024-05-02  6:58 ` abhijeet rajmane

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.