mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Huacai Chen <chenhuacai@kernel.org>
To: Niklas Cassel <cassel@kernel.org>
Cc: Huacai Chen <chenhuacai@loongson.cn>,
	Damien Le Moal <dlemoal@kernel.org>,
	 linux-ide@vger.kernel.org, Xuerui Wang <kernel@xen0n.name>,
	 Daniel Kral <d.kral@proxmox.com>,
	linux-kernel@vger.kernel.org,  Yuli Wang <wangyuli@uniontech.com>,
	Jie Fan <fanjie@uniontech.com>,
	 Erpeng Xu <xuerpeng@uniontech.com>
Subject: Re: [PATCH V3] ahci: Marvell 88SE9215 controllers prefer DMA for ATAPI
Date: Tue, 18 Mar 2025 17:01:28 +0800	[thread overview]
Message-ID: <CAAhV-H4f_ypLDceRe4KwscJGCKE6OLuRrtnwhCC5MJSAFQSS8A@mail.gmail.com> (raw)
In-Reply-To: <Z9koefNibN99tslN@ryzen>

On Tue, Mar 18, 2025 at 4:02 PM Niklas Cassel <cassel@kernel.org> wrote:
>
> Hello Huacai,
>
> On Wed, Mar 12, 2025 at 04:47:55PM +0100, Niklas Cassel wrote:
> > On Wed, Mar 12, 2025 at 09:46:54PM +0800, Huacai Chen wrote:
> > > 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 can define a new dedicated AHCI board
> > > id 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 to prefer ATAPI DMA.
> >
> > This is a wall of text.
> >
> > Could you please use paragraphs? (with an empty line between paragraphs).
> >
> > (There can be multiple sentences in one paragraph.)
> >
> > This is a good example:
> >
> > commit 6bdbb73dc8d99fbb77f5db79dbb6f108708090b4
> > Author: Bibo Mao <maobibo@loongson.cn>
> > Date:   Sat Mar 8 13:52:04 2025 +0800
> >
> >     LoongArch: KVM: Fix GPA size issue about VM
> >
> >     Physical address space is 48 bit on Loongson-3A5000 physical machine,
> >     however it is 47 bit for VM on Loongson-3A5000 system. Size of physical
> >     address space of VM is the same with the size of virtual user space (a
> >     half) of physical machine.
> >
> >     Variable cpu_vabits represents user address space, kernel address space
> >     is not included (user space and kernel space are both a half of total).
> >     Here cpu_vabits, rather than cpu_vabits - 1, is to represent the size of
> >     guest physical address space.
> >
> >     Also there is strict checking about page fault GPA address, inject error
> >     if it is larger than maximum GPA address of VM.
> >
> >     Cc: stable@vger.kernel.org
> >     Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> >     Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> >
> >
> >
> > Otherwise, this looks good to me.
>
>
> If you want this patch to be queued up for 6.15, please send a new version
> this week, because after this week, it will instead be queued up for 6.16.
OK, I will send V4 today, sorry for the delay.

Huacai
>
>
> Kind regards,
> Niklas

      reply	other threads:[~2025-03-18  9:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-12 13:46 Huacai Chen
2025-03-12 15:47 ` Niklas Cassel
2025-03-12 16:16   ` Daniel Kral
2025-03-18  8:02   ` Niklas Cassel
2025-03-18  9:01     ` Huacai Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAhV-H4f_ypLDceRe4KwscJGCKE6OLuRrtnwhCC5MJSAFQSS8A@mail.gmail.com \
    --to=chenhuacai@kernel.org \
    --cc=cassel@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=d.kral@proxmox.com \
    --cc=dlemoal@kernel.org \
    --cc=fanjie@uniontech.com \
    --cc=kernel@xen0n.name \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wangyuli@uniontech.com \
    --cc=xuerpeng@uniontech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®