You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
piolib: support transfer lengths that don't fit in 16 bits #107
The structure used for data transfers is limited to a 16-bit count of data_bytes.
Our application would like to do larger transfers. Right now we are working around this limitation by submitting several buffers of data sequentially, but it would be preferable if we could submit all the data in one go:
I'm not against in principle, it's just a matter of not breaking anything in the process. It might be that, due to the alignment requirements, switching to uint32_t would just work.
I'm driving HUB75 matrices with PIO. Ideally I'd submit a whole frame with one ioctl, but even a 64x32 matrix with 10 bitplanes exceeds 64kB in the encoding I'm using. And folks like to use several of these matrices in daisy chain mode.
Right now I'm just submitting 32kB at a time and trying to determine whether some artifacts I'm seeing are due to a flaw in my code or are due to a pause in the bitstream between ioctls. (a smaller 32x16 display that just needs one data submission per frame doesn't have these artifacts)
There are now two PRs for this: one for piolib (#108), and one for the kernel driver (raspberrypi/linux#6543). Both are needed for larger transfers to work. The library should simply fail to do larger transfers with a non-updated kernel.
That's all been merged now. The driver change missed yesterdays rpi-update release, but you can install a kernel containing the updated driver using either sudo rpi-update pulls/6543 or sudo rpi-updates rpi-6.6.y.
Activity
pelwell commentedon Dec 16, 2024
That's a lot of data - what's your use case?
I'm not against in principle, it's just a matter of not breaking anything in the process. It might be that, due to the alignment requirements, switching to uint32_t would just work.
jepler commentedon Dec 16, 2024
I'm driving HUB75 matrices with PIO. Ideally I'd submit a whole frame with one ioctl, but even a 64x32 matrix with 10 bitplanes exceeds 64kB in the encoding I'm using. And folks like to use several of these matrices in daisy chain mode.
Right now I'm just submitting 32kB at a time and trying to determine whether some artifacts I'm seeing are due to a flaw in my code or are due to a pause in the bitstream between ioctls. (a smaller 32x16 display that just needs one data submission per frame doesn't have these artifacts)
jepler commentedon Dec 16, 2024
(@ladyada ping for interest)
piolib: Increase data_bytes range to 32-bits
piolib: Increase data_bytes range to 32-bits
piolib: Increase data_bytes range to 32-bits
misc: rp1-pio: Support larger data transfers
pelwell commentedon Dec 16, 2024
There are now two PRs for this: one for piolib (#108), and one for the kernel driver (raspberrypi/linux#6543). Both are needed for larger transfers to work. The library should simply fail to do larger transfers with a non-updated kernel.
misc: rp1-pio: Support larger data transfers
jepler commentedon Dec 17, 2024
Thanks!
misc: rp1-pio: Support larger data transfers
piolib: Increase data_bytes range to 32-bits
piolib: Increase data_bytes range to 32-bits
pelwell commentedon Dec 17, 2024
That's all been merged now. The driver change missed yesterdays rpi-update release, but you can install a kernel containing the updated driver using either
sudo rpi-update pulls/6543orsudo rpi-updates rpi-6.6.y.misc: rp1-pio: Support larger data transfers
252 remaining items
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver
misc: Add RP1 PIO driver