From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Guenter Roeck <linux@roeck-us.net>,
Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org,
Jean-Christophe Dubois <jcd@tribudubois.net>
Subject: Re: [PATCH] fsl-imx6ul: add SAI1/2/3 and ASRC as unimplemented devices
Date: Tue, 10 Aug 2021 07:19:51 +0200 [thread overview]
Message-ID: <ddf1935f-bcbb-aedd-4d8c-8f7a2522f1ea@amsat.org> (raw)
In-Reply-To: <20210810041059.553384-1-linux@roeck-us.net>
Hi Guenter,
On 8/10/21 6:10 AM, Guenter Roeck wrote:
> Define SAI1/2/3 and ASRC as unimplemented devices to avoid random
> Linux kernel crashes.
Relevant dmesg output could be useful.
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> hw/arm/fsl-imx6ul.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c
> index e0128d7316..48b60eb3ce 100644
> --- a/hw/arm/fsl-imx6ul.c
> +++ b/hw/arm/fsl-imx6ul.c
> @@ -534,6 +534,13 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
> */
> create_unimplemented_device("sdma", FSL_IMX6UL_SDMA_ADDR, 0x4000);
>
> + /*
> + * SAI
"Audio SSI (Synchronous Serial Interface)"
> + */
> + create_unimplemented_device("sai1", FSL_IMX6UL_SAI1_ADDR, 0x4000);
> + create_unimplemented_device("sai2", FSL_IMX6UL_SAI2_ADDR, 0x4000);
> + create_unimplemented_device("sai3", FSL_IMX6UL_SAI3_ADDR, 0x4000);
Hmm I see these named SSI[123] in the datasheet.
The Synchronous Serial Interface (SSI) is a full-duplex serial
port that allows communication with external devices using a
variety of serial protocols. The SSI supports a wide variety of
protocols (SSI normal, SSI network, I2S, and AC-97), bit depths
(up to 24 bits per word), and clock/frame sync options.
The three SSIs may support three audio streams (possibly at
different sample rates) simultaneously. SSI1, SSI2 and SSI3 are
located on the Shared Peripheral Bus. Since the SDMA can directly
access SSI1...SSI3 (being on the Shared Peripheral Bus), they can
be used for high-bandwidth data transfers in order to optimize
bus bandwidth consumption.
Since QEMU models SPI devices in hw/ssi/, having the devices named
"sai*" is OK.
> +
> /*
> * PWM
> */
> @@ -542,6 +549,11 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp)
> create_unimplemented_device("pwm3", FSL_IMX6UL_PWM3_ADDR, 0x4000);
> create_unimplemented_device("pwm4", FSL_IMX6UL_PWM4_ADDR, 0x4000);
>
> + /*
> + * ASRC
"Audio ASRC (asynchronous sample rate converter)"
Preferably updating the descriptions:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> + */
> + create_unimplemented_device("asrc", FSL_IMX6UL_ASRC_ADDR, 0x4000);
> +
> /*
> * CAN
> */
>
prev parent reply other threads:[~2021-08-10 5:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 4:10 [PATCH] fsl-imx6ul: add SAI1/2/3 and ASRC as unimplemented devices Guenter Roeck
2021-08-10 5:19 ` Philippe Mathieu-Daudé [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=ddf1935f-bcbb-aedd-4d8c-8f7a2522f1ea@amsat.org \
--to=f4bug@amsat.org \
--cc=jcd@tribudubois.net \
--cc=linux@roeck-us.net \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).