From: Boris Brezillon <boris.brezillon@bootlin.com>
To: thor.thayer@linux.intel.com, marek.vasut@gmail.com,
dwmw2@infradead.org, computersforpeace@gmail.com,
boris.brezillon@bootlin.com, richard@nod.at
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCHv2] mtd: spi-nor: Fix Cadence QSPI page fault kernel panic
Date: Tue, 20 Nov 2018 09:02:03 +0100 [thread overview]
Message-ID: <20181120080203.4183-1-boris.brezillon@bootlin.com> (raw)
In-Reply-To: <1542378349-29929-1-git-send-email-thor.thayer@linux.intel.com>
On Fri, 2018-11-16 at 14:25:49 UTC, thor.thayer@linux.intel.com wrote:
> From: Thor Thayer <thor.thayer@linux.intel.com>
>
> The current Cadence QSPI driver caused a kernel panic sporadically
> when writing to QSPI. The problem was caused by writing more bytes
> than needed because the QSPI operated on 4 bytes at a time.
> <snip>
> [ 11.202044] Unable to handle kernel paging request at virtual address bffd3000
> [ 11.209254] pgd = e463054d
> [ 11.211948] [bffd3000] *pgd=2fffb811, *pte=00000000, *ppte=00000000
> [ 11.218202] Internal error: Oops: 7 [#1] SMP ARM
> [ 11.222797] Modules linked in:
> [ 11.225844] CPU: 1 PID: 1317 Comm: systemd-hwdb Not tainted 4.17.7-d0c45cd44a8f
> [ 11.235796] Hardware name: Altera SOCFPGA Arria10
> [ 11.240487] PC is at __raw_writesl+0x70/0xd4
> [ 11.244741] LR is at cqspi_write+0x1a0/0x2cc
> </snip>
> On a page boundary limit the number of bytes copied from the tx buffer
> to remain within the page.
>
> This patch uses a temporary buffer to hold the 4 bytes to write and then
> copies only the bytes required from the tx buffer.
>
> Reported-by: Adrian Amborzewicz <adrian.ambrozewicz@intel.com>
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Applied to http://git.infradead.org/linux-mtd.git master, thanks.
Boris
next prev parent reply other threads:[~2018-11-20 8:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 14:25 [PATCHv2] mtd: spi-nor: Fix Cadence QSPI page fault kernel panic thor.thayer
2018-11-20 8:02 ` Boris Brezillon [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-26 14:12 thor.thayer
2018-04-11 15:17 ` Thor Thayer
2018-04-11 15:23 ` Marek Vasut
2018-04-20 20:48 ` Boris Brezillon
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=20181120080203.4183-1-boris.brezillon@bootlin.com \
--to=boris.brezillon@bootlin.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=richard@nod.at \
--cc=thor.thayer@linux.intel.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