Commit 40eb3c5a authored by Karen Xie's avatar Karen Xie

XDMA: make clean to remove *.ur-safe files

parent 3b8295f6
......@@ -1427,7 +1427,7 @@ static u32 engine_service_wb_monitor(struct xdma_engine *engine,
else if (desc_wb >= expected_wb)
break;
/* RTO - prevent system from hanging in polled mode */
/* prevent system from hanging in polled mode */
if (time_after(jiffies, timeout)) {
dbg_tfr("Polling timeout occurred");
dbg_tfr("desc_wb = 0x%08x, expected 0x%08x\n", desc_wb,
......@@ -1681,7 +1681,7 @@ static irqreturn_t xdma_channel_irq(int irq, void *dev_id)
schedule_work(&engine->work);
/*
* RTO - need to protect access here if multiple MSI-X are used for
* need to protect access here if multiple MSI-X are used for
* user interrupts
*/
xdev->irq_count++;
......@@ -1933,7 +1933,7 @@ fail:
*/
/*
* RTO - code to detect if MSI/MSI-X capability exists is derived
* code to detect if MSI/MSI-X capability exists is derived
* from linux/pci/msi.c - pci_msi_check_device
*/
......@@ -2461,8 +2461,7 @@ static void xdma_desc_link(struct xdma_desc *first, struct xdma_desc *second,
* remember reserved control in first descriptor, but zero
* extra_adjacent!
*/
/* RTO - what's this about? Shouldn't it be 0x0000c0ffUL? */
u32 control = le32_to_cpu(first->control) & 0x0000f0ffUL;
u32 control = le32_to_cpu(first->control) & 0x00FFC0ffUL;
/* second descriptor given? */
if (second) {
/*
......@@ -2717,7 +2716,6 @@ static void engine_alignments(struct xdma_engine *engine)
dbg_init("engine %p name %s alignments=0x%08x\n", engine, engine->name,
(int)w);
/* RTO - add some macros to extract these fields */
align_bytes = (w & 0x00ff0000U) >> 16;
granularity_bytes = (w & 0x0000ff00U) >> 8;
address_bits = (w & 0x000000ffU);
......@@ -2883,9 +2881,8 @@ static int engine_writeback_setup(struct xdma_engine *engine)
}
/*
* RTO - doing the allocation per engine is wasteful since a full page
* is allocated each time - better to allocate one page for the whole
* device during probe() and set per-engine offsets here
* better to allocate one page for the whole device during probe()
* and set per-engine offsets here
*/
writeback = (struct xdma_poll_wb *)engine->poll_mode_addr_virt;
writeback->completed_desc_count = 0;
......@@ -3168,7 +3165,7 @@ static int transfer_init(struct xdma_engine *engine,
(sizeof(struct xdma_result) * engine->desc_idx);
xfer->desc_index = engine->desc_idx;
/* TODO: Need to handle desc_used >= XDMA_TRANSFER_MAX_DESC */
/* Need to handle desc_used >= XDMA_TRANSFER_MAX_DESC */
if ((engine->desc_idx + desc_max) >= XDMA_TRANSFER_MAX_DESC)
desc_max = XDMA_TRANSFER_MAX_DESC - engine->desc_idx;
......
......@@ -28,6 +28,7 @@ all :
clean:
$(MAKE) -C $(BUILDSYSTEM_DIR) M=$(PWD) clean
@/bin/rm -f *.o.ur-safe
install: all
$(MAKE) -C $(BUILDSYSTEM_DIR) M=$(PWD) modules_install
......
......@@ -16,6 +16,7 @@
* The full GNU General Public License is included in this distribution in
* the file called "COPYING".
*/
#define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
#include "libxdma_api.h"
#include "xdma_cdev.h"
......
......@@ -23,8 +23,7 @@
#include <linux/ioctl.h>
/*
* !!! TODO !!!
* need a better way set the bar offset dynamicly
* the bar offset can be changed at compile time
*/
#define XVC_BAR_OFFSET_DFLT 0x40000 /* DSA 4.0 */
......
......@@ -522,7 +522,6 @@ int xpdev_create_interfaces(struct xdma_pci_dev *xpdev)
}
xpdev_flag_set(xpdev, XDF_CDEV_SG);
/* ??? Bypass */
/* Initialize Bypass Character Device */
if (xdev->bypass_bar_idx > 0) {
for (i = 0; i < xpdev->h2c_channel_max; i++) {
......
......@@ -108,6 +108,10 @@ static const struct pci_device_id pci_ids[] = {
#ifdef INTERNAL_TESTING
{ PCI_DEVICE(0x1d0f, 0x1042), 0},
#endif
/* aws */
{ PCI_DEVICE(0x1d0f, 0xf000), },
{ PCI_DEVICE(0x1d0f, 0xf001), },
{0,}
};
MODULE_DEVICE_TABLE(pci, pci_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment