<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Dear Stephen,<BR>
BTW, one more question. Is the driver for xps_hwicap core or opb_hwicap? I found in the Makefile, there is one comment "Makefile for the Xilinx OPB hwicap driver". Is that specific only for opb_hwicap, or general-purpose for both? <BR>
&nbsp;<BR>
Thanks for telling.<BR>
&nbsp;<BR>
BR<BR>
Ming<BR><BR><BR>

<HR>
<BR>
Subject: RE: Linux driver for Xilinx ICAP<BR>Date: Wed, 8 Oct 2008 08:38:06 -0700<BR>From: stephen.neuendorffer@xilinx.com<BR>To: eemingliu@hotmail.com; linnj@xilinx.com; linuxppc-embedded@ozlabs.org<BR><BR>
<META content="Microsoft SafeHTML" name=Generator><BR><BR>
<FONT size=2>Ming,<BR><BR>That's correct, the current driver is not interrupt driven, but simply polled.&nbsp; Interrupts don't really add much except overhead, unless the core can DMA as well.<BR>What architecture and core version are you running?<BR>I believe there is a DEBUG define, which will generate some logging messages.&nbsp; It would be helpful if you can turn this on and then look at the resulting dmesg.<BR><BR>There are two things to be aware of:<BR>1) xps-hwicap1.00.a is huge..&nbsp; It's much smaller to use opb-hwicap + plb46-opb bridge.&nbsp; I don't think an updated version has been released, however.<BR>2) I've had problems getting the ICAP interface to properly SYNC, which may be the problem here....&nbsp; based on your response, we can debug further.<BR><BR>Steve<BR><BR>-----Original Message-----<BR>From: MingLiu [<A href="mailto:eemingliu@hotmail.com">mailto:eemingliu@hotmail.com</A>]<BR>Sent: Wed 10/8/2008 7:47 AM<BR>To: John Linn; linuxppc-embedded@ozlabs.org<BR>Cc: Stephen Neuendorffer<BR>Subject: RE: Linux driver for Xilinx ICAP<BR><BR><BR>Dear John,<BR>Nice to hear from you. If possible, could you please show me your .mhs file concerning to the xps_hwicap core? Mine is listed as below:<BR><BR>BEGIN xps_hwicap PARAMETER INSTANCE = xps_hwicap_0 PARAMETER HW_VER = 1.00.a PARAMETER C_BASEADDR = 0x40200000 PARAMETER C_HIGHADDR = 0x4020FFFF BUS_INTERFACE SPLB = plb PORT IP2INTC_Irpt = xps_hwicap_0_IP2INTC_IrptEND<BR><BR>The interrupt signal is connected to the interrupt controller.<BR><BR>I suspect that the driver in Linux doesn't support interrupt mode for this core, since I didn't find interrupt handler registration function in the source code, like "request_irq", etc..<BR><BR>I will appreciate if you can have some comments to me.<BR><BR>Br<BR>Ming<BR><BR><BR><BR><BR>Subject: RE: Linux driver for Xilinx ICAPDate: Wed, 8 Oct 2008 08:34:28 -0600From: John.Linn@xilinx.comTo: eemingliu@hotmail.com; linuxppc-embedded@ozlabs.orgCC: stephenn@xilinx.com<BR><BR><BR><BR><BR><BR><BR>Hi Ming,<BR><BR>I'm copying our local expert on this core to see his thoughts as I don't actively use this core myself.<BR><BR>Thanks,<BR>John<BR><BR><BR><BR><BR><BR><BR>From: linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org [<A href="mailto:linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org">mailto:linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org</A>] On Behalf Of MingLiuSent: Wednesday, October 08, 2008 7:48 AMTo: linuxppc-embedded@ozlabs.orgSubject: Linux driver for Xilinx ICAP<BR><BR>Dear all,Has someone manage to use the driver for the Xilinx xps_hwicap core to reconfigure bitstreams? I have enabled the driver in Linux configuration (version 2.6.24 from Xilinx tree). However I failed to use it to reconfigure bitstreams. The operations are listed as follows: # cp partial.bit /dev/icap0# No error information is shown, however the partial bitstream is not successfully configured. I checked /proc/devices and the device "icap" has been successfully registered with the major of 259. But in /proc/interrupts, I didn't find any matching entry of the interrupt for icap core. I tried to reconfigure the PR module with JTAG, and my design works well.&nbsp; Any hints for this problem? Is the problem on the interrupt? Thanks so much if someone can help me.&nbsp; BRMing<BR><BR><BR><BR>Windows Live Writer,??????????,????????? ????!This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.<BR>_________________________________________________________________<BR>Windows Live Photo gallery ?????????,?????????,????????!<BR><A href="http://get.live.cn/product/photo.html" target=_blank>http://get.live.cn/product/photo.html</A><BR><BR></FONT><BR><BR clear=all>This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. <br /><hr />用 Windows Live Spaces 展示个性自我,与好友分享生活!  <a href='http://spaces.live.com/?page=HP' target='_new'>了解更多信息!</a></body>
</html>