Description of problem: anolis: x86/pci-dma: Fix logical error in patch_do_basic_check() The purpose of the if statement in function A regarding dir is to return false only when dir is not equal to B or C. Therefore, the '||' (logical OR) should be replaced with '&&' (logical AND). Fixes: fb5016b847cf ("anolis: Fix streaming DMA writes disorder issue for Zhaoxin's KH-40000 platform")
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3257
anolis: Fix dev->node equal to NUMA_NO_NODE issue Some device or driver issues lead to dev->numa_node equal toNUMA_NO_NODE(-1). The preferred_nid of the __alloc_pages_node_mask() function cannot pass in negative values, so add the judgement of dev->numa_node.