> CMEMK Error: GETPHYS: Failed to convert virtual 0x841b3050 to > physical. > Decode Error: VIDDEC_process() failed with a fatal error (-2 > ext: 0x28)
I'm not sure under which context the CMEM GETPHYS ioctl is called, but the CMEMK error is due to an unmapped virtual address. The address 0x841b3050 (and the similar one specified in the Subject: ) does not look like a valid virtual address. It appears to be a physical address, which would explain the error, but it's not in the address range of physical memory managed by CMEM (0x87800000-0x89000000). Regardless, the GETPHYS ioctl needs a valid, mapped virtual address. While the CMEM GETPHYS ioctl will work for any mapped virtual address, it is generally used only for buffers allocated through CMEM (perhaps via the OSAL Memory_contigAlloc() API). Regards, - Rob > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > ] On Behalf Of Wendell Liu > Sent: Tuesday, September 04, 2007 12:46 PM > To: '[email protected]' > Subject: CMEMK Error: GETPHYS: Failed to convert virtual > 0x8425c050 to physical. > > Hello, > > I try to test a codec on the Davinci platform. Please someone > give me a hint what's this error means, and how to solve it? > > Thank you so much! > Wendell > ========================================== > After I run "./decoded -v t.264", I got the following error: > > Decode Debug: NTSC selected > Decode demo started. > Decode Debug: Codec Engine initialized > Decode Debug: Init rendezvous opened for 3 threads Decode > Debug: Cleanup rendezvous opened for 3 threads Decode Debug: > Priming rendezvous opened for 2 threads Decode Debug: Display > buffer 0 mapped to 0x412d1000 has physical address 0x86800000 > Decode Debug: Display buffer 1 mapped to 0x413d0000 has > physical address 0x868ff000 Decode Debug: Display buffer 2 > mapped to 0x414cf000 has physical address 0x869fe000 Decode > Debug: Video display device initialized. > Decode Debug: Display thread created > Decode Debug: Video file successfully opened Decode Debug: > OSD successfully initialized Decode Debug: OSD transparency > initialized Decode Debug: Codec Engine opened in video thread > Decode Debug: Codec Engine opened in control thread Decode > Debug: Video decoder created Decode Debug: Contiguous buffer > allocated at physical address 0x88bac000 Decode Debug: > Contiguous buffer allocated at physical address 0x882ac000 > Decode Debug: Contiguous buffer allocated at physical address > 0x885ac000 Decode Debug: Contiguous buffer allocated at > physical address 0x888ac000 Decode Debug: User interface > created Decode Debug: Entering display main loop. > > CMEMK Error: GETPHYS: Failed to convert virtual 0x841b3050 to > physical. > Decode Error: VIDDEC_process() failed with a fatal error (-2 > ext: 0x28) > > Decode Debug: Entering video main loop. > Total I-frames: 0, P-frames: 0, B-frames: 0, IDR-frames: 0 > rejected: 0 ========================================== > My loadmodules.sh is: > > insmod cmemk.ko phys_start=0x87800000 phys_end=0x89000000 > pools=20x4096,10x131072,6x3145728 > insmod dsplinkk.ko ddr_start=0x8fa00000 ddr_size=0x400000 > > rm -f /dev/dsplink > mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" > /proc/devices` 0 ========================================== > > > > > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
