<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Thanks for you reply!<br><br>I use PCI¡ª¡ªMMIO to access VRAM and GTT areas. And for ring_buffer, it alloced from the vmalloc¡ªarea and vmap to the physical address using page table. <br><br> If enable the radeon_benchmark, it first to prepare the dma channel. "set_tex_resource(), set_render_target(), cp_set_surface_sync()" ,such functions only write ring_buffer. The ring_buffer is vma-area, even it map to physical area. But for radeon_card, how it know the physical-area?? <br><br> The question is same to the SCRACH test, ring_test. Why I write into ring_buffer,then the card register will know the value "deadbeef" ??<br><br>Do I not understand the real card work? ring_test??<br><br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Wed, 13 Jun 2012 09:57:28 -0400<br>> From: konrad.wilk@oracle.com<br>> To: sizhiying@hotmail.com<br>> CC: dri-devel@lists.freedesktop.org<br>> Subject: Re: about_radeon_dma<br>> <br>> On Wed, Jun 13, 2012 at 09:44:19AM +0800, llittleÁËÁË wrote:<br>> > <br>> > HI,all<br>> > Now, my lab is using radeon_ati card¡£And, I need ati_card dma function¡£But, I do not clear that how the ati card know the dma address which alloced by kernel??<br>> <br>> By using the PCI API.<br>> <br>> > <br>> <br>> > Can any kernel drivers for radeon card give me some advise or explain the answer? <br>> > <br>> > I have read the radeon driver in kernel (/driver/gpu/drm/randeon/xxx £©and the TTM manager. So, as I know, If I use GFP_KERNEL sign to alloc memory, the radeon_card work right, but any other palce ,it failed. Why and how this happened?<br>> > Is there any way to tell the dma address and ring buffer address in kernel to the radeon_card ?<br>> > <br>> > It`s so confused! Hope for your answer! <br>> > <br>> > <br>> > Thanks so much!<br>> > zhiyig Si<br>> >                                            <br>> <br>> > _______________________________________________<br>> > dri-devel mailing list<br>> > dri-devel@lists.freedesktop.org<br>> > http://lists.freedesktop.org/mailman/listinfo/dri-devel<br>> <br></div>                                            </div></body>
</html>