Re: How to access a DRM CRTC's scan out buffer?

2014-01-15 Thread Peter Teoh
For ATI GPU the crtc_base could be the base pointer to the memory buffer: ./drivers/gpu/drm/radeon/rv770.c: u32 rv770_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base) ./drivers/gpu/drm/radeon/rs600.c: void rs600_pre_page_flip(struct radeon_device *rdev, int crtc) void rs600_post_

Re: How to access a DRM CRTC's scan out buffer?

2014-01-15 Thread Peter Teoh
In general how it worked is explained here: https://www.kernel.org/doc/htmldocs/drm/drm-kms-init.html Not sure which is the name of your video card, but I think in general all the page flip API should have access to the scan buffer (see link above). For Intel these are possible APIs : static vo

Re: ARM Linux and ATAGS

2014-01-15 Thread Prabhakar Lad
Hi, On Thu, Jan 9, 2014 at 1:17 PM, Mj Embd wrote: > Hi, > > What are atags and are they still used after addition of device tree in linux > ? > Refer [1] for more info on atags, and refer [2] for your second question. [1] http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html [2]

How to enable VIDEOBUF2_VMALLOC

2014-01-15 Thread m silverstri
Hi, How can I enable VIDEOBUF2_VMALLOC? I try 'make menuconfig', but I don't know how can I configure to enable VIDEOBUF2_VMALLOC: Symbol: VIDEOBUF2_VMALLOC [=n] │ Type : tristate │ Defined at drivers/media/v4l2-core/Kconfig:75 │ Depends on: MEDIA_SUPPORT [=y] │ Selects: VIDEOBUF2_

kernel driver access application memory

2014-01-15 Thread m silverstri
Hi, If my application allocate memory for input and output buffers, and pass the pointer to a kernel driver (via v4l2 queue buffer operation), can the kernel driver access it? Do I need to setup DMA before teh kernel driver can read/write to it? Thank you. __