From: Takashi Iwai <tiwai@suse.de>
To: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Cc: perex@perex.cz, tiwai@suse.com, leon@kernel.org,
broonie@kernel.org, joe@perches.com, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: intel_hdmi: Check for error num after setting mask
Date: Thu, 06 Jan 2022 10:34:01 +0100 [thread overview]
Message-ID: <s5hr19lgqd2.wl-tiwai@suse.de> (raw)
In-Reply-To: <20220106084110.2691207-1-jiasheng@iscas.ac.cn>
On Thu, 06 Jan 2022 09:41:10 +0100,
Jiasheng Jiang wrote:
>
> On Thu, Jan 06, 2022 at 04:18:01PM +0800, Takashi Iwai wrote:
> > Well, 32bit DMA mask practically never fails on x86 (and other
> > architectures, IIRC). It's fine to add a sanity check, but it's
> > better to be mentioned that it never fails.
>
> Actually, I have already found many place check the 32bit DMA mask.
> For example:
> snd_ad1889_create() in `sound/pci/ad1889.c`,
> snd_vortex_create() in `sound/pci/au88x0/au88x0.c`
> tegra_pcm_dma_allocate() in `sound/soc/tegra/tegra_pcm.c`.
> Therefore, I think there must be some reason that 32bit may fail.
> So, to make the system more robust, it should be better to add the
> sanity check.
Yes, as mentioned, it's fine to add a sanity check, but it's rather
for consistency of the code, not actually fixing any real issue.
At least it's better to rephrase the commit message for avoiding
confusion for readers.
thanks,
Takashi
next prev parent reply other threads:[~2022-01-06 9:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-06 8:41 Jiasheng Jiang
2022-01-06 9:34 ` Takashi Iwai [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-06 1:24 Jiasheng Jiang
2022-01-06 8:18 ` Takashi Iwai
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=s5hr19lgqd2.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jiasheng@iscas.ac.cn \
--cc=joe@perches.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.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®