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
Looks like a copy/paste bug in case VC_MEM_IOC_MEM_BASE.
mm_vc_mem_size is returned, not mm_vc_mem_base. Plus the comments are the same as the other case statement.
I think this is a bug too. I have made the relevant correction and will check it in once I've tested it.
It should be noted, however, that these functions are currently unsafe (and probably not yet relied upon anywhere sensitive).
Although R-Pi always supports the same amount of RAM (256Mb) the start of VideoCore memory varies with the "start.elf" version used to boot it. The supported variants put the VideoCore base either at 128Mb, 192Mb or 224Mb - the code here will be correct only in the first case.
We only use this interface from vcdbg (from grabbing debug info), but due to this interface not supporting the different memory splits, we override the base with a command line argument, so I believe the bug is harmless.
I'm hoping we'll move to a world where the different memory splits are not needed in the near (ish) future, so correctly supporting the different splits is not necessary. Worth fixing the size/base mixup just for neatness.
Ah fair dos. Do you want me to close?
Btw (since you guys seem savvy to this sort of stuff) - is there a proper place to discuss future code development etc? Programming posts on rpi.org/forum quickly get drowned out!
Activity
GrayGirling commentedon Apr 13, 2012
I think this is a bug too. I have made the relevant correction and will check it in once I've tested it.
It should be noted, however, that these functions are currently unsafe (and probably not yet relied upon anywhere sensitive).
Although R-Pi always supports the same amount of RAM (256Mb) the start of VideoCore memory varies with the "start.elf" version used to boot it. The supported variants put the VideoCore base either at 128Mb, 192Mb or 224Mb - the code here will be correct only in the first case.
popcornmix commentedon Apr 16, 2012
Well spotted simonjhall.
We only use this interface from vcdbg (from grabbing debug info), but due to this interface not supporting the different memory splits, we override the base with a command line argument, so I believe the bug is harmless.
I'm hoping we'll move to a world where the different memory splits are not needed in the near (ish) future, so correctly supporting the different splits is not necessary. Worth fixing the size/base mixup just for neatness.
simonjhall commentedon Apr 16, 2012
Ah fair dos. Do you want me to close?
Btw (since you guys seem savvy to this sort of stuff) - is there a proper place to discuss future code development etc? Programming posts on rpi.org/forum quickly get drowned out!
popcornmix commentedon Apr 16, 2012
PM (on rpi.org) me your email address if you'd like to discuss things.
simonjhall commentedon Apr 16, 2012
Cool. Which user name are you on there? I'm not spying any popcornmix!
(teh_orph for me)
On 16 April 2012 15:17, popcornmix <
reply@reply.github.com
popcornmix commentedon Apr 17, 2012
I'm dom...
mm: compaction: check pfn_valid when entering a new MAX_ORDER_NR_PAGE…
net: fix sk_sockets_allocated_read_positive
mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race …
cifs: when CONFIG_HIGHMEM is set, serialize the read/write kmaps
nfs: skip commit in releasepage if we're freeing memory for fs-relate…
x86: Remove some noise from boot log when starting cpus
[SCSI] libsas: close scsi_remove_target() vs libata-eh race
xfs: protect xfs_sync_worker with s_umount semaphore
227 remaining items
perf tools: Fix map reference counting
slab: store tagged freelist for off-slab slabmgmt
ext4: don't perform block validity checks on the journal inode
vt/fbcon: deinitialize resources in visual_init() after failed memory…
at76c50x-usb: Don't register led_trigger if usb_register_driver failed
scsi: qla2xxx: Fix hardirq-unsafe locking
btrfs: fix panic during relocation after ENOSPC before writeback happens
at76c50x-usb: Don't register led_trigger if usb_register_driver failed
scsi: qla2xxx: Fix hardirq-unsafe locking
btrfs: fix panic during relocation after ENOSPC before writeback happens
vt/fbcon: deinitialize resources in visual_init() after failed memory…
at76c50x-usb: Don't register led_trigger if usb_register_driver failed
scsi: qla2xxx: Fix hardirq-unsafe locking
btrfs: fix panic during relocation after ENOSPC before writeback happens
vt/fbcon: deinitialize resources in visual_init() after failed memory…