Go to advanced search

by Akane
Fri Oct 11, 2019 11:31 pm
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

Cannot give any schedules, Japan is a particularly long winded process requiring lots of documentation changes plus changes to the silk screening on the board. Check out Roger's blog post on the subject. https://www.raspberrypi.org/blog/compliance-and-why-raspberry-pi-4-may-not-be-available-in-your...
by Akane
Thu Oct 10, 2019 4:07 pm
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

So now we have an electromagnetic anechoic box from Micronix, and we are writing GPGPU library for VideoCore VI: https://github.com/Idein/py-videocore6 . It's working very well with simple loops e.g. https://github.com/Idein/py-videocore6/blob/master/tests/test_qpu.py and should work with more compl...
by Akane
Sat Sep 28, 2019 12:52 am
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

OK, so it appears that the VideoCore6 specifications are not publicly available, so I am afraid I cannot comment on your question with regard to the instructions. You may be able to glean something from the publicly available Mesa driver. I've read the Mesa code many times, only to find that Mesa d...
by Akane
Fri Sep 27, 2019 2:19 pm
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

Thanks. I see.
by Akane
Fri Sep 27, 2019 12:11 pm
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

@jamesh We are trying to create py-videocore6, an easy programming environment for VideoCore VI QPU, like the one for VideoCore IV QPU https://github.com/nineties/py-videocore . For now, we have difficulty in using VPM and its DMA. Do you know what values to be fed to the vpmsetup instruction for DM...
by Akane
Fri Sep 27, 2019 5:03 am
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

No, nope. The correct theoretical performance of the GPUs is as follows: VideoCore IV @ 250MHz: 250 [MHz] x 3 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 24 Gflop/s VideoCore IV @ 300MHz: 300 [MHz] x 3 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 28.8 Gflop/s VideoCore VI @...
by Akane
Wed Sep 18, 2019 11:16 pm
Forum: Bare metal, Assembly language
Topic: mmap() fails
Replies: 9
Views: 1601

Re: mmap() fails

TonySterrett wrote:
Wed Sep 18, 2019 12:55 pm
Akane wrote:
Wed Sep 18, 2019 12:33 am
offset should be 0xFE000000?
Yes this is the base address for the Pi 4
The log shows that

Code: Select all

mapmem: offset = 0
which indicates that the offset is mistakenly set to 0 instead of 0xFE000000 I suspect.
by Akane
Wed Sep 18, 2019 12:33 am
Forum: Bare metal, Assembly language
Topic: mmap() fails
Replies: 9
Views: 1601

Re: mmap() fails

offset should be 0xFE000000?
by Akane
Tue Sep 10, 2019 6:23 am
Forum: General discussion
Topic: Pi 4 - full specification of VideoCore 6
Replies: 82
Views: 16506

Re: Pi 4 - full specification of VideoCore 6

No, nope. The correct theoretical performance of the GPUs is as follows: VideoCore IV @ 250MHz: 250 [MHz] x 3 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 24 Gflop/s VideoCore IV @ 300MHz: 300 [MHz] x 3 [slice] x 4 [qpu/slice] x 4 [processor] x 2 [op/clock] = 28.8 Gflop/s VideoCore VI @ ...
by Akane
Sat Oct 14, 2017 10:01 am
Forum: Bare metal, Assembly language
Topic: GPU LED blinking
Replies: 2
Views: 956

Re: GPU LED blinking

Dom, who is an engineer at Pi Towers, said QPU cannot access the peripheral bus: viewtopic.php?f=72&t=128309. So it's unlikely I think.
by Akane
Sat Apr 08, 2017 9:18 am
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

It's great to hear that you are doing well. Please continue rocking!

(And sorry for my mistakes in English!)
by Akane
Thu Apr 06, 2017 3:51 pm
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

Thanks for the quick answer, The address can be different across QPU threads, that is, you can read up to 16 x 4bytes of memory on a TMU read. Are the 16 * 4 Bytes the 16 SIMD-elements times 4 Bytes data-type? If so, what does this have to do with threads? Or has the TMU a cache of 16 requests Yes ...
by Akane
Thu Apr 06, 2017 11:25 am
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

For random accesses, I recommend to use TMU because it's more flexible than VPM DMA. To do TMU read, you do: 1. Write memory address (aligned with 4 byte) to TMU[01]_S. The address can be different across QPU threads, that is, you can read up to 16 x 4bytes of memory on a TMU read. 2. Signal the TMU...
by Akane
Sat Mar 25, 2017 9:36 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Way to sync CPU-side L2C and GPU-side one?
Replies: 6
Views: 1378

Re: Way to sync CPU-side L2C and GPU-side one?

Thank you for your reply! You are correct! Eventually I noticed that I must use non-bufferable memory for DMA operation since L2C on the ARM is speculative. i.e. We cannot know when the memory is fetched if it's being mapped. I changed the flow to unmap the memory instead of (3) and re-map it instea...
by Akane
Mon Mar 20, 2017 7:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Way to sync CPU-side L2C and GPU-side one?
Replies: 6
Views: 1378

Re: Way to sync CPU-side L2C and GPU-side one?

I'm using this code https://github.com/Terminus-IMRC/qmkl/blob/master/src/memory.c#L111 for memory allocation, which is almost the same flow as hello_fft. However, instead of mapping memory on /dev/mem, I'm using /dev/vc-mem to change vma->vm_page_prot: https://github.com/Idein/linux/blob/rpi-4.9.y-...
by Akane
Sun Mar 19, 2017 12:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Way to sync CPU-side L2C and GPU-side one?
Replies: 6
Views: 1378

Re: Way to sync CPU-side L2C and GPU-side one?

Thank you for your reply! You need to be careful when specifying "L2". The V3D has a unified L2 cache for pixel data and QPU instructions but there is also a system-level L2 cache. So Raspberry Pi 2&3 have three L2 caches (V3D unified, V3D system-level and ARM unified) ? Whether memory operations ge...
by Akane
Sat Mar 18, 2017 8:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Way to sync CPU-side L2C and GPU-side one?
Replies: 6
Views: 1378

Way to sync CPU-side L2C and GPU-side one?

Hello. I'm finding a way to fix this L2 cache-related problem. Here, let "mapped memory" be a memory which is allocated through the Mailbox interface and mmap()'ed on /dev/mem. And let "normal memory" be a memory which is allocated by using malloc(). I noticed that accessing mapped memory is relativ...
by Akane
Thu Feb 16, 2017 3:46 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 168069

Re: Raw sensor access / CSI-2 receiver peripheral

I see... so complicated pipelines... I hope it can be done!

Thank you very much for developing Raspberry Pi stuffs so hard! You are a great!
by Akane
Wed Feb 15, 2017 6:45 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 168069

Re: Raw sensor access / CSI-2 receiver peripheral

@6by9 Hi. I want to ask you: Is it possible to convert bayer format such as BAYER_SBGGR10P to other format by using MMAL? Does vc.ril.isp have an ability to do this? EDIT: If I set MMAL_ENCODING_BAYER_SBGGR10P to vc.ril.isp's input encoding field, mmal doesn't say error. So I thought isp can consume...
by Akane
Wed Feb 08, 2017 12:55 pm
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

According to the manual, there seems be no way to set the semaphore counters.
However, there is another way to reset the counters: disabling and re-enabling QPU by using Mailbox call.
by Akane
Mon Jan 23, 2017 6:18 am
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

Wow. Thanks. 1.) To my understanding, I can replicate a non-literal value among all elements (in a quad/the whole SIMD) by writing it into the r5 accumulator (from quad/SIMD-element 0) and reading it again. Is this correct? Yes. If you write to r5 on ra, values are distributed in quads (from [4i] to...
by Akane
Fri Jan 20, 2017 8:20 am
Forum: Camera board
Topic: Camera module: Can I change the VCM I2C address?
Replies: 2
Views: 1256

Re: Camera module: Can I change the VCM I2C address?

I mean 0x20>>1=0x10, 0xc8>>1=0x64 and 0x18>>1=0x0c. Sorry.

And, ah, I see that there is a crypt module on CMv2 and the reason. I'm sad of this. Thank you.
by Akane
Fri Jan 20, 2017 4:29 am
Forum: Camera board
Topic: Camera module: Can I change the VCM I2C address?
Replies: 2
Views: 1256

Camera module: Can I change the VCM I2C address?

Hello. I made my own camera module for RPi. It uses IMX219, but this is not the same as one on the official RPi camera module v2. While I2C addresses of IMX219 and its VCM driver on the official one are 0x20 and 0xc8 , those of mine are 0x20 and 0x18 . So currently I'm unable to use my own camera mo...
by Akane
Mon Jan 16, 2017 11:55 pm
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

Don't hesitate to ask me ;) I haven't tested QPU threads before, but I think "threadable" flag can only be set through GL/NV/VG shader records on control list (Table 45-47 and control list code=64-67). FYI, control list is a sequence of instructions for OpenGL ES and so on. Accumulators and conditio...
by Akane
Tue Jan 10, 2017 4:21 am
Forum: Graphics programming
Topic: Questions about VideoCore IV GPU
Replies: 20
Views: 13953

Re: Questions about VideoCore IV GPU

2.2) You cannot read directly from RAM through VPM. To read the content of RAM, you must issue DMA load explicitly from RAM to VPM. By "issue DMA load explicitly", do you mean setting up DMA and writing an address to the VPM_LD_ADDR register? Yes. For 2.4, I went with something like xor.set_flags N...

Go to advanced search