public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrii Chepurnyi <Andrii_Chepurnyi@epam.com>
To: Tom Rini <trini@konsulko.com>,
	Andrii Chepurnyi <andrii.chepurnyi82@gmail.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	"igor.opaniuk@gmail.com" <igor.opaniuk@gmail.com>,
	"gary.bisson@boundarydevices.com"
	<gary.bisson@boundarydevices.com>
Subject: Re: [PATCH v4 1/3] cmd: bcb: introduce optional interface parameter to bcb
Date: Fri, 9 Sep 2022 13:11:47 +0000	[thread overview]
Message-ID: <aa17a98a-3e4e-7516-e7de-fed2e6d87406@epam.com> (raw)
In-Reply-To: <20220903015506.GO7942@bill-the-cat>

Hello Tom,

I've used a doker from mentioned job to reproduce issue.
I am able to see same errors and test fail as in jobs/490627.

Here is my investigation:

The error that appeared is not related to AVB:

fs_devread read outside partition 2
Failed to mount ext2 filesystem...
BTRFS: superblock end 69632 is larger than device size 512
fs_devread read outside partition 0
fs_devread read outside partition 2
Failed to mount ext2 filesystem...
BTRFS: superblock end 69632 is larger than device size 512
fs_devread read outside partition 0

I found a test case that caused this situation: dm_test_part.
So if you run all tests with -k "not dm_test_part" - all tests will 
pass, including AVB tests.

dm_test_part  modify GPT (during testing used mmc1.img for emulation, as 
I understand), and after if some part of code touch blk you may see a 
mentioned error. I.e. run only dm_test_part test, start u-boot and run 
"part list mmc 1" you will see the same error.
So I suppose this problem(if it is a problem since I see it like a test 
case that didn't restore the environment back) was present prior to my 
patches.

But why it appears after my patches?
Because I've changed the internal logic of avb command and now on avb 
init will interact with blk(blk_get_device_by_str) which causes those 
prints. In the previous versions of avb commands "avb init" and "avb 
read_rb " will not touch blk, so no error is present.

So from my point of view, this is more like dm_test_part problem, but 
not bcb or avb patches.

Andrii.

On 03.09.22 04:55, Tom Rini wrote:
> On Mon, Aug 01, 2022 at 11:07:15AM +0300, Andrii Chepurnyi wrote:
>
>> From: Andrii Chepurnyi <andrii.chepurnyi82@gmail.com>
>>
>> From: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
>>
>> Originally, bcb implementation relay on mmc block devices.
>> The interface parameter will give the ability to use bcb with
>> various block devices by choosing the exact interface type.
>> By default (if no interface parameter is provided) mmc interface
>> will be used.
>>
>> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
>> Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
> The tests now fail:
> https://source.denx.de/u-boot/u-boot/-/jobs/490627
>

  reply	other threads:[~2022-09-09 13:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-08 12:43 [PATCH v1 0/3] Support various block interfaces for avb and bcb Andrii Chepurnyi
2022-04-08 12:43 ` [PATCH v1 1/3] cmd: bcb: introduce optional interface parameter to bcb Andrii Chepurnyi
2022-04-08 12:43 ` [PATCH v1 2/3] cmd: avb: introduce optional interface parameter to avb init Andrii Chepurnyi
2022-04-08 12:43 ` [PATCH v1 3/3] cmd: avb: remove warning during avb build Andrii Chepurnyi
2022-04-19  6:46 ` [PATCH v2 0/2] Support various block interfaces for avb and bcb Andrii Chepurnyi
2022-04-19  6:46 ` [PATCH v2 1/2] cmd: bcb: introduce optional interface parameter to bcb Andrii Chepurnyi
2022-05-04 15:48   ` Igor Opaniuk
2022-04-19  6:46 ` [PATCH v2 2/2] cmd: avb: introduce optional interface parameter to avb init Andrii Chepurnyi
2022-05-04 20:40   ` Igor Opaniuk
2022-07-20 14:59 ` [PATCH v3 0/3] Support various block interfaces for avb and bcb Andrii Chepurnyi
2022-07-20 14:59 ` [PATCH v3 1/3] cmd: bcb: introduce optional interface parameter to bcb Andrii Chepurnyi
2022-07-29 15:36   ` Igor Opaniuk
2022-07-20 14:59 ` [PATCH v3 2/3] cmd: avb: introduce optional interface parameter to avb init Andrii Chepurnyi
2022-07-29 15:38   ` Igor Opaniuk
2022-07-20 14:59 ` [PATCH v3 3/3] cmd: avb: remove mmc naming from generic block code Andrii Chepurnyi
2022-07-29 15:35   ` Igor Opaniuk
2022-08-01  8:07 ` [PATCH v4 0/3] Support various block interfaces for avb and bcb Andrii Chepurnyi
2022-08-01  8:07 ` [PATCH v4 1/3] cmd: bcb: introduce optional interface parameter to bcb Andrii Chepurnyi
2022-09-03  1:55   ` Tom Rini
2022-09-09 13:11     ` Andrii Chepurnyi [this message]
2022-08-01  8:07 ` [PATCH v4 2/3] cmd: avb: introduce optional interface parameter to avb init Andrii Chepurnyi
2022-08-01  8:07 ` [PATCH v4 3/3] cmd: avb: remove mmc naming from generic block code Andrii Chepurnyi

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=aa17a98a-3e4e-7516-e7de-fed2e6d87406@epam.com \
    --to=andrii_chepurnyi@epam.com \
    --cc=andrii.chepurnyi82@gmail.com \
    --cc=gary.bisson@boundarydevices.com \
    --cc=igor.opaniuk@gmail.com \
    --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