Commit 0507c777 authored by Huacai Chen's avatar Huacai Chen Committed by Niklas Cassel
Browse files

ahci: Marvell 88SE9215 controllers prefer DMA for ATAPI



We use CD/DVD drives under Marvell 88SE9215 SATA controller on many
Loongson-based machines. We found its PIO doesn't work well, and on the
opposite its DMA seems work very well.

We don't know the detail of the 88SE9215 SATA controller, but we have
tested different CD/DVD drives and they all have problems under 88SE9215
(but they all work well under an Intel SATA controller). So, we consider
this problem is bound to 88SE9215 SATA controller rather than bound to
CD/DVD drives.

As a solution, we define a new dedicated AHCI board id which is named
board_ahci_yes_fbs_atapi_dma for 88SE9215, and for this id we set the
AHCI_HFLAG_ATAPI_DMA_QUIRK and ATA_QUIRK_ATAPI_MOD16_DMA flags on the
SATA controller in order to prefer ATAPI DMA.

Reported-by: default avatarYuli Wang <wangyuli@uniontech.com>
Tested-by: default avatarJie Fan <fanjie@uniontech.com>
Tested-by: default avatarErpeng Xu <xuerpeng@uniontech.com>
Tested-by: default avatarYuli Wang <wangyuli@uniontech.com>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/20250318104314.2160526-1-chenhuacai@loongson.cn


Signed-off-by: default avatarNiklas Cassel <cassel@kernel.org>
parent b500ee5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment