All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: Marek Vasut <marex@denx.de>, linux-spi@vger.kernel.org
Cc: Pratyush Yadav <p.yadav@ti.com>
Subject: Re: [PATCH] [RFC] spi: cadence-quadspi: Disable DAC on SoCFPGA
Date: Tue, 22 Feb 2022 09:49:18 -0600	[thread overview]
Message-ID: <04e70d1a-c07b-e1dc-aea6-36fe9b7ce667@kernel.org> (raw)
In-Reply-To: <ccdc4738-0fb0-d3f6-5c56-d61eb8e8bf33@denx.de>



On 2/21/22 11:05, Marek Vasut wrote:
> On 2/21/22 17:38, Dinh Nguyen wrote:
>>
>>
>> On 2/20/22 22:32, Marek Vasut wrote:
>>> On SoCFPGA Gen5, DAC memcpy_fromio() in cqspi_direct_read_execute()
>>> leads to data abort, disable DAC to avoid triggering it:
>>>
>>> Unhandled fault: imprecise external abort (0x1406) at 0x0400d3e9
>>> [0400d3e9] *pgd=00000000
>>>
>>> Signed-off-by: Marek Vasut <marex@denx.de>
>>> Cc: Dinh Nguyen <dinguyen@kernel.org>
>>> Cc: Pratyush Yadav <p.yadav@ti.com>
>>> ---
>>>   drivers/spi/spi-cadence-quadspi.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/spi/spi-cadence-quadspi.c 
>>> b/drivers/spi/spi-cadence-quadspi.c
>>> index b808c94641fa6..65f2c2449be09 100644
>>> --- a/drivers/spi/spi-cadence-quadspi.c
>>> +++ b/drivers/spi/spi-cadence-quadspi.c
>>> @@ -1870,7 +1870,7 @@ static const struct cqspi_driver_platdata 
>>> intel_lgm_qspi = {
>>>   };
>>>   static const struct cqspi_driver_platdata socfpga_qspi = {
>>> -    .quirks = CQSPI_NO_SUPPORT_WR_COMPLETION,
>>> +    .quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_NO_SUPPORT_WR_COMPLETION,
>>>   };
>>>   static const struct cqspi_driver_platdata versal_ospi = {
>>
>> Acked-by: Dinh Nguyen <dinguyen@kernel.org>
> 
> Is this DAC really not working on socfpga gen5 or is there some other 
> issue ?

I don't know the answer to this question. What is the DAC in the QSPI 
module and how do I go about testing it?

Dinh

  reply	other threads:[~2022-02-22 15:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-21  4:32 [PATCH] [RFC] spi: cadence-quadspi: Disable DAC on SoCFPGA Marek Vasut
2022-02-21 16:38 ` Dinh Nguyen
2022-02-21 17:05   ` Marek Vasut
2022-02-22 15:49     ` Dinh Nguyen [this message]
2022-02-22 18:30       ` Marek Vasut
2022-02-22 21:32         ` Dinh Nguyen
2022-02-23  0:54           ` Marek Vasut
2022-02-23 16:28             ` Dinh Nguyen
2022-02-23 16:43               ` Marek Vasut
2022-02-23 16:46                 ` Dinh Nguyen
2022-02-23 17:16                   ` Marek Vasut
2022-02-23 22:18                     ` Dinh Nguyen
2022-02-23 23:46                       ` Marek Vasut

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=04e70d1a-c07b-e1dc-aea6-36fe9b7ce667@kernel.org \
    --to=dinguyen@kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=p.yadav@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.