From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: sjg@chromium.org, u-boot@lists.denx.de, nd@arm.com, trini@konsulko.com
Subject: Re: [PATCH 1/2] drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems
Date: Mon, 21 Aug 2023 12:34:49 +0100 [thread overview]
Message-ID: <20230821113449.GA230855@e130802.arm.com> (raw)
In-Reply-To: <7c03ac40-44af-0da9-d968-7d00f7ae96e3@mailbox.org>
Hi,
On Sat, Aug 19, 2023 at 02:23:02AM +0200, Marek Vasut wrote:
> On 8/13/23 23:46, Marek Vasut wrote:
> > Get rid of nvmxip_mmio_rawread() and just implement the readl()/readq()
> > reader loop within nvmxip_blk_read(). Cast the destination buffer as
> > needed and increment the read by either 4 or 8 bytes depending on if
> > this is systemd with 32bit or 64bit physical address.
> >
> > Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> > ---
> > Cc: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
> > Cc: Simon Glass <sjg@chromium.org>
>
> Sandbox CI test fails with this series:
>
> https://source.denx.de/u-boot/custodians/u-boot-sh/-/pipelines/17427
>
> https://u-boot.source-pages.denx.de/-/custodians/u-boot-sh/-/jobs/679256/artifacts/test-log.html
>
I run the {host , blk_usb, blk_iter, blk_foreach, blk_flags} tests using the commit [1] preceding the NVMXIP patchset.
The tests fail as shown below [3]. I think these issues are not related to NVMXIP.
Regarding your comments for [2], I'll address them as soon as I can.
[1]: b197f1f05dee730e173a0756cb1a5f2be5d3ba5b
[2]: https://lore.kernel.org/all/20230816110551.86930-2-abdellatif.elkhlifi@arm.com/
[3]: tests results:
host:
test/dm/host.c:44, dm_test_host(): 0 == host_attach_file(dev, filename): Expected 0x0 (0), got 0xfffffffe (-2)
Segmentation fault (core dumped)
blk_usb:
test/dm/blk.c:88, dm_test_blk_usb(): 6 == count_blk_devices(): Expected 0x6 (6), got 0x1 (1)
Bus usb@1: scanning bus usb@1 for devices... 2 USB Device(s) found
test/dm/blk.c:93, dm_test_blk_usb(): 6 == count_blk_devices(): Expected 0x6 (6), got 0x1 (1)
Test blk_usb failed 4 times
blk_iter:
test/dm/blk.c:188, dm_test_blk_iter(): 0 == blk_first_device_err(BLKF_FIXED, &dev): Expected 0x0 (0), got 0xffffffed (-19)
Segmentation fault (core dumped)
blk_foreach:
test/dm/blk.c:305, dm_test_blk_foreach(): 7 == found: Expected 0x7 (7), got 0x0 (0)
test/dm/blk.c:316, dm_test_blk_foreach(): 7 == found: Expected 0x7 (7), got 0x0 (0)
test/dm/blk.c:322, dm_test_blk_foreach(): 7 == found: Expected 0x7 (7), got 0x0 (0)
test/dm/blk.c:323, dm_test_blk_foreach(): 3 == blk_count_devices(BLKF_BOTH): Expected 0x3 (3), got 0x0 (0)
test/dm/blk.c:328, dm_test_blk_foreach(): 4 == found: Expected 0x4 (4), got 0x0 (0)
test/dm/blk.c:329, dm_test_blk_foreach(): 1 == blk_count_devices(BLKF_FIXED): Expected 0x1 (1), got 0x0 (0)
test/dm/blk.c:334, dm_test_blk_foreach(): 3 == found: Expected 0x3 (3), got 0x0 (0)
test/dm/blk.c:335, dm_test_blk_foreach(): 2 == blk_count_devices(BLKF_REMOVABLE): Expected 0x2 (2), got 0x0 (0)
...
blk_flags:
test/dm/blk.c:236, dm_test_blk_flags(): 0 == blk_find_first(BLKF_BOTH, &dev): Expected 0x0 (0), got 0xffffffed (-19)
test/dm/blk.c:237, dm_test_blk_flags(): dev = NULL: Expected non-null, got NULL
Segmentation fault (core dumped)
Cheers,
Abdellatif
prev parent reply other threads:[~2023-08-21 11:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-13 21:46 [PATCH 1/2] drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems Marek Vasut
2023-08-13 21:46 ` [PATCH 2/2] configs: sandbox: test: dm: blk: Enable NVMXIP QSPI and update test Marek Vasut
2023-08-14 22:42 ` Simon Glass
2023-08-14 22:45 ` Marek Vasut
2023-08-15 16:43 ` [PATCH] nvmxip: add sandbox support Abdellatif El Khlifi
2023-08-15 18:39 ` Simon Glass
2023-08-16 11:05 ` [PATCH v2 1/2] log: select physical address formatting in a generic way Abdellatif El Khlifi
2023-08-16 11:05 ` [PATCH v2 2/2] nvmxip: add sandbox support Abdellatif El Khlifi
2023-08-16 11:18 ` Marek Vasut
2023-08-16 16:39 ` Abdellatif El Khlifi
2023-08-16 21:47 ` Marek Vasut
2023-08-16 11:13 ` [PATCH v2 1/2] log: select physical address formatting in a generic way Marek Vasut
2023-08-16 14:39 ` Simon Glass
2023-08-16 15:23 ` Marek Vasut
2023-10-20 12:12 ` Abdellatif El Khlifi
2023-08-15 20:44 ` [PATCH] nvmxip: add sandbox support Marek Vasut
2023-08-15 17:08 ` [PATCH 2/2] configs: sandbox: test: dm: blk: Enable NVMXIP QSPI and update test Abdellatif El Khlifi
2023-08-13 23:55 ` [PATCH 1/2] drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems Marek Vasut
2023-08-19 0:23 ` Marek Vasut
2023-08-21 11:34 ` Abdellatif El Khlifi [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=20230821113449.GA230855@e130802.arm.com \
--to=abdellatif.elkhlifi@arm.com \
--cc=marek.vasut@mailbox.org \
--cc=nd@arm.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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