The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: James Dingwall <james@dingwall.me.uk>
To: linux-kernel@vger.kernel.org
Cc: Juergen Gross <jgross@suse.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Subject: megaraid_sas "Failed from megasas_init_fw 6539" under Xen
Date: Wed, 31 Jul 2024 10:28:19 +0100	[thread overview]
Message-ID: <ZqoDs93/kylOPYWb@dingwall.me.uk> (raw)

Hi,

I've been having a problem booting a Dell system with an H355 controller
(megaraid_sas) under Xen, bare metal is fine.  The reported messages on
modprobe are:

    FW now in Ready state
    Failed to set DMA mask
    Failed from megasas_init_fw 6539

I have narrowed the cause down to the conditional behaviour introduced
in ad96ce3252dbab773cb343220662df3d84dd8e80 for default_swiotlb_limit()
to support the CONFIG_SWIOTLB_DYNAMIC option and the change in
05ee774122bd4a2f298668d6d5fc9e7b685a5e31 to use that function for
xen_swiotlb_dma_supported().  It looks like both of these changes were
introduced for v6.6.

If I rebuild the kernel with CONFIG_SWIOTLB_DYNAMIC=n the system will boot
as expected.  (I'm rebuilding an Ubuntu kernel where the default is
CONFIG_SWIOTLB_DYNAMIC=y)

It looks like megaraid_sas does something slightly unusual by using
DMA_BIT_MASK(63) since 894169db12463cea08d0e2a9e35f42b291340e5a but
I don't know if that is related.

Should I expect the system to behave with CONFIG_SWIOTLB_DYNAMIC=y
under Xen?

Thanks,
James

                 reply	other threads:[~2024-07-31  9:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ZqoDs93/kylOPYWb@dingwall.me.uk \
    --to=james@dingwall.me.uk \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sstabellini@kernel.org \
    /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