19 Jun
2012
19 Jun
'12
9:09 a.m.
Huacai Chen wrote:
1, Use 32-bit DMA as a workaround (Loongson has a hardware bug that it doesn't support DMA address above 4GB). 2, Modify patch_conexant.c to add Lemote specific code.
Please create separate patches for these two changes.
+++ b/include/linux/pci_ids.h @@ -2906,3 +2906,5 @@ #define PCI_DEVICE_ID_XEN_PLATFORM 0x0001
#define PCI_VENDOR_ID_OCZ 0x1b85
+#define PCI_VENDOR_ID_LEMOTE 0x1c06
AFAICS this symbol is not used in this patch.
+#ifdef CONFIG_CPU_LOONGSON3
- /* Workaround: Loongson 3 doesn't support 64-bit DMA */
- gcap &= ~ICH6_GCAP_64OK;
+#endif
/* Workaround: Loongson 3 doesn't actually support 64-bit DMA */
Regards, Clemens