File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 28
28
#else
29
29
#define AZX_DCAPS_I915_COMPONENT 0 /* NOP */
30
30
#endif
31
- #define AZX_DCAPS_AMD_ALLOC_FIX (1 << 14) /* AMD allocation workaround */
31
+ /* 14 unused */
32
32
#define AZX_DCAPS_CTX_WORKAROUND (1 << 15) /* X-Fi workaround */
33
33
#define AZX_DCAPS_POSFIX_LPIB (1 << 16) /* Use LPIB as default */
34
34
#define AZX_DCAPS_AMD_WORKAROUND (1 << 17) /* AMD-specific workaround */
Original file line number Diff line number Diff line change 40
40
41
41
#ifdef CONFIG_X86
42
42
/* for snoop control */
43
- #include <linux/dma-map-ops.h>
44
43
#include <asm/set_memory.h>
45
44
#include <asm/cpufeature.h>
46
45
#endif
@@ -302,7 +301,7 @@ enum {
302
301
303
302
/* quirks for ATI HDMI with snoop off */
304
303
#define AZX_DCAPS_PRESET_ATI_HDMI_NS \
305
- (AZX_DCAPS_PRESET_ATI_HDMI | AZX_DCAPS_AMD_ALLOC_FIX )
304
+ (AZX_DCAPS_PRESET_ATI_HDMI | AZX_DCAPS_SNOOP_OFF )
306
305
307
306
/* quirks for AMD SB */
308
307
#define AZX_DCAPS_PRESET_AMD_SB \
@@ -1710,13 +1709,6 @@ static void azx_check_snoop_available(struct azx *chip)
1710
1709
if (chip -> driver_caps & AZX_DCAPS_SNOOP_OFF )
1711
1710
snoop = false;
1712
1711
1713
- #ifdef CONFIG_X86
1714
- /* check the presence of DMA ops (i.e. IOMMU), disable snoop conditionally */
1715
- if ((chip -> driver_caps & AZX_DCAPS_AMD_ALLOC_FIX ) &&
1716
- !get_dma_ops (chip -> card -> dev ))
1717
- snoop = false;
1718
- #endif
1719
-
1720
1712
chip -> snoop = snoop ;
1721
1713
if (!snoop ) {
1722
1714
dev_info (chip -> card -> dev , "Force to non-snoop mode\n" );
You can’t perform that action at this time.
0 commit comments