diff mbox

[U-Boot,1/2] WIP: Disable SCSI on x86

Message ID 20170410003821.1492-2-sjg@chromium.org
State Not Applicable
Delegated to: Bin Meng
Headers show

Commit Message

Simon Glass April 10, 2017, 12:38 a.m. UTC
This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
since SCSI is broken with this setup.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/x86-common.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Bin Meng May 8, 2017, 7:05 a.m. UTC | #1
Hi Simon,

On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
> since SCSI is broken with this setup.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---

When you said "SCSI is broken with this setup", did you mean GP#
exception when boot up with a hard disk like below?

SCSI:  Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0300 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: 64bit ncq stag pm led clo pio slum part sxs
scanning bus for devices...
General Protection
EIP: 0010:[<46174204>] EFLAGS: 00010202
Original EIP :[<cab17204>]
EAX: 00000000 EBX: 46174204 ECX: 00000000 EDX: 00000000
ESI: 7b347f80 EDI: 7b5c3fc8 EBP: 7b3481c4 ESP: 7b347f58
 DS: 0018 ES: 0018 FS: 0020 GS: 0018 SS: 0018
CR0: 00000033 CR2: 00000000 CR3: 00000000 CR4: 00000600
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400
Stack:
    0x7b347f98 : 0x20202020
    0x7b347f94 : 0x20202020
    0x7b347f90 : 0x00000000
    0x7b347f8c : 0x0000003f
    0x7b347f88 : 0x00000000
    0x7b347f84 : 0x0010c837
    0x7b347f80 : 0x3fff0c5a
    0x7b347f7c : 0x7b585f7d
    0x7b347f78 : 0x7b347f80
    0x7b347f74 : 0x00000000
    0x7b347f70 : 0x00000001
    0x7b347f6c : 0x7b57b01d
    0x7b347f68 : 0x7b5c3fc8
    0x7b347f64 : 0x7b347f80
    0x7b347f60 : 0x00000000
    0x7b347f5c : 0x00000001
--->0x7b347f58 : 0x7b57cd1a
    0x7b347f54 : 0x00010202
    0x7b347f50 : 0x00000010
    0x7b347f4c : 0x46174204
### ERROR ### Please RESET the board ###


[snip]

Regards,
Bin
Simon Glass May 13, 2017, 1:11 a.m. UTC | #2
Hi Bin,

On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
> Hi Simon,
>
> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>> since SCSI is broken with this setup.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> ---
>
> When you said "SCSI is broken with this setup", did you mean GP#
> exception when boot up with a hard disk like below?

Yes that's right.

>
> SCSI:  Target spinup took 0 ms.
> SATA link 1 timeout.
> AHCI 0001.0300 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
> flags: 64bit ncq stag pm led clo pio slum part sxs
> scanning bus for devices...
> General Protection
> EIP: 0010:[<46174204>] EFLAGS: 00010202
> Original EIP :[<cab17204>]
> EAX: 00000000 EBX: 46174204 ECX: 00000000 EDX: 00000000
> ESI: 7b347f80 EDI: 7b5c3fc8 EBP: 7b3481c4 ESP: 7b347f58
>  DS: 0018 ES: 0018 FS: 0020 GS: 0018 SS: 0018
> CR0: 00000033 CR2: 00000000 CR3: 00000000 CR4: 00000600
> DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
> DR6: ffff0ff0 DR7: 00000400
> Stack:
>     0x7b347f98 : 0x20202020
>     0x7b347f94 : 0x20202020
>     0x7b347f90 : 0x00000000
>     0x7b347f8c : 0x0000003f
>     0x7b347f88 : 0x00000000
>     0x7b347f84 : 0x0010c837
>     0x7b347f80 : 0x3fff0c5a
>     0x7b347f7c : 0x7b585f7d
>     0x7b347f78 : 0x7b347f80
>     0x7b347f74 : 0x00000000
>     0x7b347f70 : 0x00000001
>     0x7b347f6c : 0x7b57b01d
>     0x7b347f68 : 0x7b5c3fc8
>     0x7b347f64 : 0x7b347f80
>     0x7b347f60 : 0x00000000
>     0x7b347f5c : 0x00000001
> --->0x7b347f58 : 0x7b57cd1a
>     0x7b347f54 : 0x00010202
>     0x7b347f50 : 0x00000010
>     0x7b347f4c : 0x46174204
> ### ERROR ### Please RESET the board ###
>
>
> [snip]
>
> Regards,
> Bin

- Simon
Bin Meng May 17, 2017, 12:42 a.m. UTC | #3
Hi Simon,

On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
> Hi Bin,
>
> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Hi Simon,
>>
>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>>> since SCSI is broken with this setup.
>>>
>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>> ---
>>
>> When you said "SCSI is broken with this setup", did you mean GP#
>> exception when boot up with a hard disk like below?
>
> Yes that's right.
>

Do you plan to work on a patch soon?

Regards,
Bin
Bin Meng June 1, 2017, 7:27 a.m. UTC | #4
Hi Simon,

On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
> Hi Simon,
>
> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
>> Hi Bin,
>>
>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>> Hi Simon,
>>>
>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>>>> since SCSI is broken with this setup.
>>>>
>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>> ---
>>>
>>> When you said "SCSI is broken with this setup", did you mean GP#
>>> exception when boot up with a hard disk like below?
>>
>> Yes that's right.
>>
>
> Do you plan to work on a patch soon?
>

I tracked down the exception happens at part_test_efi()->block_dread() function:

if (!ops->read)
    return -ENOSYS;

Where ops points to nowhere, because underlying SATA device does not
have a DM driver associated.

Could you please fix this?

Regards,
Bin
Simon Glass June 1, 2017, 1:14 p.m. UTC | #5
Hi Bin,

On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Hi Simon,
>
> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
> > Hi Simon,
> >
> > On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
> >> Hi Bin,
> >>
> >> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
> >>> Hi Simon,
> >>>
> >>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
> >>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
> >>>> since SCSI is broken with this setup.
> >>>>
> >>>> Signed-off-by: Simon Glass <sjg@chromium.org>
> >>>> ---
> >>>
> >>> When you said "SCSI is broken with this setup", did you mean GP#
> >>> exception when boot up with a hard disk like below?
> >>
> >> Yes that's right.
> >>
> >
> > Do you plan to work on a patch soon?
> >
>
> I tracked down the exception happens at part_test_efi()->block_dread() function:
>
> if (!ops->read)
>     return -ENOSYS;
>
> Where ops points to nowhere, because underlying SATA device does not
> have a DM driver associated.
>
> Could you please fix this?

I've been hoping that someone else will take on this side of things,
but perhaps I am optimistic. I'll see if I can take a look.

Regards,
Simon
Bin Meng June 1, 2017, 11:04 p.m. UTC | #6
Hi Simon,

On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
> Hi Bin,
>
> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>
>> Hi Simon,
>>
>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>> > Hi Simon,
>> >
>> > On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
>> >> Hi Bin,
>> >>
>> >> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>> >>> Hi Simon,
>> >>>
>> >>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>> >>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>> >>>> since SCSI is broken with this setup.
>> >>>>
>> >>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> >>>> ---
>> >>>
>> >>> When you said "SCSI is broken with this setup", did you mean GP#
>> >>> exception when boot up with a hard disk like below?
>> >>
>> >> Yes that's right.
>> >>
>> >
>> > Do you plan to work on a patch soon?
>> >
>>
>> I tracked down the exception happens at part_test_efi()->block_dread() function:
>>
>> if (!ops->read)
>>     return -ENOSYS;
>>
>> Where ops points to nowhere, because underlying SATA device does not
>> have a DM driver associated.
>>
>> Could you please fix this?
>
> I've been hoping that someone else will take on this side of things,
> but perhaps I am optimistic. I'll see if I can take a look.

Thanks. I wanted to fix this myself however I have been busy on some
other stuff.

Regards,
Bin
Simon Glass June 9, 2017, 12:27 p.m. UTC | #7
Hi Bin,

On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
> Hi Simon,
>
> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>> Hi Bin,
>>
>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>
>>> Hi Simon,
>>>
>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>>> > Hi Simon,
>>> >
>>> > On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
>>> >> Hi Bin,
>>> >>
>>> >> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>> >>> Hi Simon,
>>> >>>
>>> >>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>>> >>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>>> >>>> since SCSI is broken with this setup.
>>> >>>>
>>> >>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>> >>>> ---
>>> >>>
>>> >>> When you said "SCSI is broken with this setup", did you mean GP#
>>> >>> exception when boot up with a hard disk like below?
>>> >>
>>> >> Yes that's right.
>>> >>
>>> >
>>> > Do you plan to work on a patch soon?
>>> >
>>>
>>> I tracked down the exception happens at part_test_efi()->block_dread() function:
>>>
>>> if (!ops->read)
>>>     return -ENOSYS;
>>>
>>> Where ops points to nowhere, because underlying SATA device does not
>>> have a DM driver associated.
>>>
>>> Could you please fix this?
>>
>> I've been hoping that someone else will take on this side of things,
>> but perhaps I am optimistic. I'll see if I can take a look.
>
> Thanks. I wanted to fix this myself however I have been busy on some
> other stuff.

I've sent a series which I think puts SCSI and SATA in a better
position with respect to driver model. However even with that there is
more work to do.

Regards,
Simon
Bin Meng June 10, 2017, 3:47 a.m. UTC | #8
Hi Simon,

On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
> Hi Bin,
>
> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Hi Simon,
>>
>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>> Hi Bin,
>>>
>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>
>>>> Hi Simon,
>>>>
>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>> > Hi Simon,
>>>> >
>>>> > On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
>>>> >> Hi Bin,
>>>> >>
>>>> >> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>> >>> Hi Simon,
>>>> >>>
>>>> >>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>>>> >>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>>>> >>>> since SCSI is broken with this setup.
>>>> >>>>
>>>> >>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>> >>>> ---
>>>> >>>
>>>> >>> When you said "SCSI is broken with this setup", did you mean GP#
>>>> >>> exception when boot up with a hard disk like below?
>>>> >>
>>>> >> Yes that's right.
>>>> >>
>>>> >
>>>> > Do you plan to work on a patch soon?
>>>> >
>>>>
>>>> I tracked down the exception happens at part_test_efi()->block_dread() function:
>>>>
>>>> if (!ops->read)
>>>>     return -ENOSYS;
>>>>
>>>> Where ops points to nowhere, because underlying SATA device does not
>>>> have a DM driver associated.
>>>>
>>>> Could you please fix this?
>>>
>>> I've been hoping that someone else will take on this side of things,
>>> but perhaps I am optimistic. I'll see if I can take a look.
>>
>> Thanks. I wanted to fix this myself however I have been busy on some
>> other stuff.
>
> I've sent a series which I think puts SCSI and SATA in a better
> position with respect to driver model. However even with that there is
> more work to do.
>

Thanks for working on this! I will take a look.

If we don't get enough time to sort out everything, we will have to
revert previous MMC DM conversion patch and leave that to next
release.

Regards,
Bin
Simon Glass June 12, 2017, 3:53 a.m. UTC | #9
Hi Bin,

On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
> Hi Simon,
>
> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>> Hi Bin,
>>
>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>> Hi Simon,
>>>
>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>> Hi Bin,
>>>>
>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>
>>>>> Hi Simon,
>>>>>
>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>> > Hi Simon,
>>>>> >
>>>>> > On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
>>>>> >> Hi Bin,
>>>>> >>
>>>>> >> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>> >>> Hi Simon,
>>>>> >>>
>>>>> >>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>>>>> >>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>>>>> >>>> since SCSI is broken with this setup.
>>>>> >>>>
>>>>> >>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>> >>>> ---
>>>>> >>>
>>>>> >>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>> >>> exception when boot up with a hard disk like below?
>>>>> >>
>>>>> >> Yes that's right.
>>>>> >>
>>>>> >
>>>>> > Do you plan to work on a patch soon?
>>>>> >
>>>>>
>>>>> I tracked down the exception happens at part_test_efi()->block_dread() function:
>>>>>
>>>>> if (!ops->read)
>>>>>     return -ENOSYS;
>>>>>
>>>>> Where ops points to nowhere, because underlying SATA device does not
>>>>> have a DM driver associated.
>>>>>
>>>>> Could you please fix this?
>>>>
>>>> I've been hoping that someone else will take on this side of things,
>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>
>>> Thanks. I wanted to fix this myself however I have been busy on some
>>> other stuff.
>>
>> I've sent a series which I think puts SCSI and SATA in a better
>> position with respect to driver model. However even with that there is
>> more work to do.
>>
>
> Thanks for working on this! I will take a look.
>
> If we don't get enough time to sort out everything, we will have to
> revert previous MMC DM conversion patch and leave that to next
> release.

Yes, let's see how it goes. I probably have time for one more spin if
it is soon...but the last patch needs work.

Regards,
Simon
Stefan Roese June 24, 2017, 10:29 a.m. UTC | #10
Hi Simon, Hi Bin,

On 12.06.2017 05:53, Simon Glass wrote:
> Hi Bin,
> 
> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Hi Simon,
>>
>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>>> Hi Bin,
>>>
>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>> Hi Simon,
>>>>
>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>> Hi Bin,
>>>>>
>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>
>>>>>> Hi Simon,
>>>>>>
>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>> Hi Simon,
>>>>>>>
>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>> Hi Bin,
>>>>>>>>
>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>> Hi Simon,
>>>>>>>>>
>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>>>> This is not to be applied. It is needed to test using CONFIG_DM_MMC on x86
>>>>>>>>>> since SCSI is broken with this setup.
>>>>>>>>>>
>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>>>>>>> ---
>>>>>>>>>
>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>>>>>> exception when boot up with a hard disk like below?
>>>>>>>>
>>>>>>>> Yes that's right.
>>>>>>>>
>>>>>>>
>>>>>>> Do you plan to work on a patch soon?
>>>>>>>
>>>>>>
>>>>>> I tracked down the exception happens at part_test_efi()->block_dread() function:
>>>>>>
>>>>>> if (!ops->read)
>>>>>>      return -ENOSYS;
>>>>>>
>>>>>> Where ops points to nowhere, because underlying SATA device does not
>>>>>> have a DM driver associated.
>>>>>>
>>>>>> Could you please fix this?
>>>>>
>>>>> I've been hoping that someone else will take on this side of things,
>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>>
>>>> Thanks. I wanted to fix this myself however I have been busy on some
>>>> other stuff.
>>>
>>> I've sent a series which I think puts SCSI and SATA in a better
>>> position with respect to driver model. However even with that there is
>>> more work to do.
>>>
>>
>> Thanks for working on this! I will take a look.
>>
>> If we don't get enough time to sort out everything, we will have to
>> revert previous MMC DM conversion patch and leave that to next
>> release.
> 
> Yes, let's see how it goes. I probably have time for one more spin if
> it is soon...but the last patch needs work.

As Andreas has pointed out here:

https://lists.denx.de/pipermail/u-boot/2017-June/296337.html

SCSI seems to be broken also on Armada 37xx (and perhaps other
platforms as well). Is it correct to assume, that this x86 SCSI
thread is about the same issue?

I know that you are working on DM SCSI support, which is great of
course. But do you have an idea, if and how this could be fixed for
this upcoming release?

Thanks,
Stefan
Bin Meng June 24, 2017, 12:08 p.m. UTC | #11
Hi Stefan,

On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
> Hi Simon, Hi Bin,
>
>
> On 12.06.2017 05:53, Simon Glass wrote:
>>
>> Hi Bin,
>>
>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>
>>> Hi Simon,
>>>
>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>
>>>> Hi Bin,
>>>>
>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>
>>>>> Hi Simon,
>>>>>
>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>
>>>>>> Hi Bin,
>>>>>>
>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Simon,
>>>>>>>
>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>
>>>>>>>> Hi Simon,
>>>>>>>>
>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Hi Bin,
>>>>>>>>>
>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Simon,
>>>>>>>>>>
>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> This is not to be applied. It is needed to test using
>>>>>>>>>>> CONFIG_DM_MMC on x86
>>>>>>>>>>> since SCSI is broken with this setup.
>>>>>>>>>>>
>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>>>>>>>> ---
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>>>>>>> exception when boot up with a hard disk like below?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yes that's right.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Do you plan to work on a patch soon?
>>>>>>>>
>>>>>>>
>>>>>>> I tracked down the exception happens at
>>>>>>> part_test_efi()->block_dread() function:
>>>>>>>
>>>>>>> if (!ops->read)
>>>>>>>      return -ENOSYS;
>>>>>>>
>>>>>>> Where ops points to nowhere, because underlying SATA device does not
>>>>>>> have a DM driver associated.
>>>>>>>
>>>>>>> Could you please fix this?
>>>>>>
>>>>>>
>>>>>> I've been hoping that someone else will take on this side of things,
>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>>>
>>>>>
>>>>> Thanks. I wanted to fix this myself however I have been busy on some
>>>>> other stuff.
>>>>
>>>>
>>>> I've sent a series which I think puts SCSI and SATA in a better
>>>> position with respect to driver model. However even with that there is
>>>> more work to do.
>>>>
>>>
>>> Thanks for working on this! I will take a look.
>>>
>>> If we don't get enough time to sort out everything, we will have to
>>> revert previous MMC DM conversion patch and leave that to next
>>> release.
>>
>>
>> Yes, let's see how it goes. I probably have time for one more spin if
>> it is soon...but the last patch needs work.
>
>
> As Andreas has pointed out here:
>
> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
>
> SCSI seems to be broken also on Armada 37xx (and perhaps other
> platforms as well). Is it correct to assume, that this x86 SCSI
> thread is about the same issue?
>
> I know that you are working on DM SCSI support, which is great of
> course. But do you have an idea, if and how this could be fixed for
> this upcoming release?

Simon already sent a series to convert SCSI to DM and applied to
u-boot-dm. I also sent a series to fix some additional issues [1].

Can you or Andreas try on top of u-boot-dm plus my patches to see if
the issue is fixed?

[1] http://patchwork.ozlabs.org/patch/777312/

Regards,
Bin
Stefan Roese June 26, 2017, 7:29 a.m. UTC | #12
Hi Bin,

On 24.06.2017 14:08, Bin Meng wrote:
> Hi Stefan,
> 
> On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
>> Hi Simon, Hi Bin,
>>
>>
>> On 12.06.2017 05:53, Simon Glass wrote:
>>>
>>> Hi Bin,
>>>
>>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>
>>>> Hi Simon,
>>>>
>>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>
>>>>> Hi Bin,
>>>>>
>>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>
>>>>>> Hi Simon,
>>>>>>
>>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>
>>>>>>> Hi Bin,
>>>>>>>
>>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Simon,
>>>>>>>>
>>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> Hi Simon,
>>>>>>>>>
>>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Bin,
>>>>>>>>>>
>>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> This is not to be applied. It is needed to test using
>>>>>>>>>>>> CONFIG_DM_MMC on x86
>>>>>>>>>>>> since SCSI is broken with this setup.
>>>>>>>>>>>>
>>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>>>>>>>>> ---
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>>>>>>>> exception when boot up with a hard disk like below?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Yes that's right.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Do you plan to work on a patch soon?
>>>>>>>>>
>>>>>>>>
>>>>>>>> I tracked down the exception happens at
>>>>>>>> part_test_efi()->block_dread() function:
>>>>>>>>
>>>>>>>> if (!ops->read)
>>>>>>>>       return -ENOSYS;
>>>>>>>>
>>>>>>>> Where ops points to nowhere, because underlying SATA device does not
>>>>>>>> have a DM driver associated.
>>>>>>>>
>>>>>>>> Could you please fix this?
>>>>>>>
>>>>>>>
>>>>>>> I've been hoping that someone else will take on this side of things,
>>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>>>>
>>>>>>
>>>>>> Thanks. I wanted to fix this myself however I have been busy on some
>>>>>> other stuff.
>>>>>
>>>>>
>>>>> I've sent a series which I think puts SCSI and SATA in a better
>>>>> position with respect to driver model. However even with that there is
>>>>> more work to do.
>>>>>
>>>>
>>>> Thanks for working on this! I will take a look.
>>>>
>>>> If we don't get enough time to sort out everything, we will have to
>>>> revert previous MMC DM conversion patch and leave that to next
>>>> release.
>>>
>>>
>>> Yes, let's see how it goes. I probably have time for one more spin if
>>> it is soon...but the last patch needs work.
>>
>>
>> As Andreas has pointed out here:
>>
>> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
>>
>> SCSI seems to be broken also on Armada 37xx (and perhaps other
>> platforms as well). Is it correct to assume, that this x86 SCSI
>> thread is about the same issue?
>>
>> I know that you are working on DM SCSI support, which is great of
>> course. But do you have an idea, if and how this could be fixed for
>> this upcoming release?
> 
> Simon already sent a series to convert SCSI to DM and applied to
> u-boot-dm. I also sent a series to fix some additional issues [1].
> 
> Can you or Andreas try on top of u-boot-dm plus my patches to see if
> the issue is fixed?
> 
> [1] http://patchwork.ozlabs.org/patch/777312/

I tested with this version and "scsi reset" still reboots the
board. Please note that SCSI / AHCI probably needs some additional
work, as its currently supported via this driver in arch/arm
which needs to moved to the correct driver directory:

arch/arm/mach-mvebu/sata.c

It probably also needs some work to function correctly with these
new DM SCSI patches. But all this seems a bit late in this release
cycle. Do we have a "solution" to fix this issue for this upcoming
release?

Thanks,
Stefan
Bin Meng June 26, 2017, 9:11 a.m. UTC | #13
Hi Stefan,

On Mon, Jun 26, 2017 at 3:29 PM, Stefan Roese <sr@denx.de> wrote:
> Hi Bin,
>
>
> On 24.06.2017 14:08, Bin Meng wrote:
>>
>> Hi Stefan,
>>
>> On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
>>>
>>> Hi Simon, Hi Bin,
>>>
>>>
>>> On 12.06.2017 05:53, Simon Glass wrote:
>>>>
>>>>
>>>> Hi Bin,
>>>>
>>>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>
>>>>>
>>>>> Hi Simon,
>>>>>
>>>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>
>>>>>>
>>>>>> Hi Bin,
>>>>>>
>>>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Simon,
>>>>>>>
>>>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Bin,
>>>>>>>>
>>>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Simon,
>>>>>>>>>
>>>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Simon,
>>>>>>>>>>
>>>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi Bin,
>>>>>>>>>>>
>>>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> This is not to be applied. It is needed to test using
>>>>>>>>>>>>> CONFIG_DM_MMC on x86
>>>>>>>>>>>>> since SCSI is broken with this setup.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>>>>>>>>>> ---
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>>>>>>>>> exception when boot up with a hard disk like below?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Yes that's right.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Do you plan to work on a patch soon?
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I tracked down the exception happens at
>>>>>>>>> part_test_efi()->block_dread() function:
>>>>>>>>>
>>>>>>>>> if (!ops->read)
>>>>>>>>>       return -ENOSYS;
>>>>>>>>>
>>>>>>>>> Where ops points to nowhere, because underlying SATA device does
>>>>>>>>> not
>>>>>>>>> have a DM driver associated.
>>>>>>>>>
>>>>>>>>> Could you please fix this?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I've been hoping that someone else will take on this side of things,
>>>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks. I wanted to fix this myself however I have been busy on some
>>>>>>> other stuff.
>>>>>>
>>>>>>
>>>>>>
>>>>>> I've sent a series which I think puts SCSI and SATA in a better
>>>>>> position with respect to driver model. However even with that there is
>>>>>> more work to do.
>>>>>>
>>>>>
>>>>> Thanks for working on this! I will take a look.
>>>>>
>>>>> If we don't get enough time to sort out everything, we will have to
>>>>> revert previous MMC DM conversion patch and leave that to next
>>>>> release.
>>>>
>>>>
>>>>
>>>> Yes, let's see how it goes. I probably have time for one more spin if
>>>> it is soon...but the last patch needs work.
>>>
>>>
>>>
>>> As Andreas has pointed out here:
>>>
>>> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
>>>
>>> SCSI seems to be broken also on Armada 37xx (and perhaps other
>>> platforms as well). Is it correct to assume, that this x86 SCSI
>>> thread is about the same issue?
>>>
>>> I know that you are working on DM SCSI support, which is great of
>>> course. But do you have an idea, if and how this could be fixed for
>>> this upcoming release?
>>
>>
>> Simon already sent a series to convert SCSI to DM and applied to
>> u-boot-dm. I also sent a series to fix some additional issues [1].
>>
>> Can you or Andreas try on top of u-boot-dm plus my patches to see if
>> the issue is fixed?
>>
>> [1] http://patchwork.ozlabs.org/patch/777312/
>
>
> I tested with this version and "scsi reset" still reboots the
> board. Please note that SCSI / AHCI probably needs some additional
> work, as its currently supported via this driver in arch/arm
> which needs to moved to the correct driver directory:
>
> arch/arm/mach-mvebu/sata.c
>
> It probably also needs some work to function correctly with these
> new DM SCSI patches. But all this seems a bit late in this release
> cycle. Do we have a "solution" to fix this issue for this upcoming
> release?
>

Did the failure happen at the place part_test_efi()->block_dread() function?

if (!ops->read)
    return -ENOSYS;

Where ops points to nowhere ..

If so, I think the SATA driver needs to be converted to DM.

But I don't know if a simple solution exists for now on your board. I
noticed that Andreas said v2017.01 works but v2017.03 is failing. So
it has been broken for some time. But Simon's series aims to resolve
the issues seen on x86, which is an intermediate issue in this release
cycle.

Regards,
Bin
Simon Glass June 26, 2017, 6:42 p.m. UTC | #14
Hi,

On 26 June 2017 at 03:11, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Hi Stefan,
>
> On Mon, Jun 26, 2017 at 3:29 PM, Stefan Roese <sr@denx.de> wrote:
> > Hi Bin,
> >
> >
> > On 24.06.2017 14:08, Bin Meng wrote:
> >>
> >> Hi Stefan,
> >>
> >> On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
> >>>
> >>> Hi Simon, Hi Bin,
> >>>
> >>>
> >>> On 12.06.2017 05:53, Simon Glass wrote:
> >>>>
> >>>>
> >>>> Hi Bin,
> >>>>
> >>>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
> >>>>>
> >>>>>
> >>>>> Hi Simon,
> >>>>>
> >>>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
> >>>>>>
> >>>>>>
> >>>>>> Hi Bin,
> >>>>>>
> >>>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>> Hi Simon,
> >>>>>>>
> >>>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Hi Bin,
> >>>>>>>>
> >>>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Hi Simon,
> >>>>>>>>>
> >>>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com>
> >>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Hi Simon,
> >>>>>>>>>>
> >>>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
> >>>>>>>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Hi Bin,
> >>>>>>>>>>>
> >>>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> Hi Simon,
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> This is not to be applied. It is needed to test using
> >>>>>>>>>>>>> CONFIG_DM_MMC on x86
> >>>>>>>>>>>>> since SCSI is broken with this setup.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
> >>>>>>>>>>>>> ---
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
> >>>>>>>>>>>> exception when boot up with a hard disk like below?
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Yes that's right.
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Do you plan to work on a patch soon?
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> I tracked down the exception happens at
> >>>>>>>>> part_test_efi()->block_dread() function:
> >>>>>>>>>
> >>>>>>>>> if (!ops->read)
> >>>>>>>>>       return -ENOSYS;
> >>>>>>>>>
> >>>>>>>>> Where ops points to nowhere, because underlying SATA device does
> >>>>>>>>> not
> >>>>>>>>> have a DM driver associated.
> >>>>>>>>>
> >>>>>>>>> Could you please fix this?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> I've been hoping that someone else will take on this side of things,
> >>>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Thanks. I wanted to fix this myself however I have been busy on some
> >>>>>>> other stuff.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> I've sent a series which I think puts SCSI and SATA in a better
> >>>>>> position with respect to driver model. However even with that there is
> >>>>>> more work to do.
> >>>>>>
> >>>>>
> >>>>> Thanks for working on this! I will take a look.
> >>>>>
> >>>>> If we don't get enough time to sort out everything, we will have to
> >>>>> revert previous MMC DM conversion patch and leave that to next
> >>>>> release.
> >>>>
> >>>>
> >>>>
> >>>> Yes, let's see how it goes. I probably have time for one more spin if
> >>>> it is soon...but the last patch needs work.
> >>>
> >>>
> >>>
> >>> As Andreas has pointed out here:
> >>>
> >>> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
> >>>
> >>> SCSI seems to be broken also on Armada 37xx (and perhaps other
> >>> platforms as well). Is it correct to assume, that this x86 SCSI
> >>> thread is about the same issue?
> >>>
> >>> I know that you are working on DM SCSI support, which is great of
> >>> course. But do you have an idea, if and how this could be fixed for
> >>> this upcoming release?
> >>
> >>
> >> Simon already sent a series to convert SCSI to DM and applied to
> >> u-boot-dm. I also sent a series to fix some additional issues [1].
> >>
> >> Can you or Andreas try on top of u-boot-dm plus my patches to see if
> >> the issue is fixed?
> >>
> >> [1] http://patchwork.ozlabs.org/patch/777312/
> >
> >
> > I tested with this version and "scsi reset" still reboots the
> > board. Please note that SCSI / AHCI probably needs some additional
> > work, as its currently supported via this driver in arch/arm
> > which needs to moved to the correct driver directory:
> >
> > arch/arm/mach-mvebu/sata.c
> >
> > It probably also needs some work to function correctly with these
> > new DM SCSI patches. But all this seems a bit late in this release
> > cycle. Do we have a "solution" to fix this issue for this upcoming
> > release?
> >
>
> Did the failure happen at the place part_test_efi()->block_dread() function?
>
> if (!ops->read)
>     return -ENOSYS;
>
> Where ops points to nowhere ..
>
> If so, I think the SATA driver needs to be converted to DM.
>
> But I don't know if a simple solution exists for now on your board. I
> noticed that Andreas said v2017.01 works but v2017.03 is failing. So
> it has been broken for some time. But Simon's series aims to resolve
> the issues seen on x86, which is an intermediate issue in this release
> cycle.

I sent a pull request (forgetting to cc the list) for this but it was
too close to RC2 so Tom rejected it. It is sitting in dm/master if you
want to look.

At this stage I don't have a good answer. Even my series doesn't
complete the SATA conversion to DM. We still need AHCI to have proper
operations and convert the rest of the drivers. I was hoping that
might be easier once the powerpc removals are complete.

Regards,
Simon
Bin Meng June 26, 2017, 11:34 p.m. UTC | #15
Hi Stefan,

On Tue, Jun 27, 2017 at 2:42 AM, Simon Glass <sjg@chromium.org> wrote:
> Hi,
>
> On 26 June 2017 at 03:11, Bin Meng <bmeng.cn@gmail.com> wrote:
>>
>> Hi Stefan,
>>
>> On Mon, Jun 26, 2017 at 3:29 PM, Stefan Roese <sr@denx.de> wrote:
>> > Hi Bin,
>> >
>> >
>> > On 24.06.2017 14:08, Bin Meng wrote:
>> >>
>> >> Hi Stefan,
>> >>
>> >> On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
>> >>>
>> >>> Hi Simon, Hi Bin,
>> >>>
>> >>>
>> >>> On 12.06.2017 05:53, Simon Glass wrote:
>> >>>>
>> >>>>
>> >>>> Hi Bin,
>> >>>>
>> >>>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>> >>>>>
>> >>>>>
>> >>>>> Hi Simon,
>> >>>>>
>> >>>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>> >>>>>>
>> >>>>>>
>> >>>>>> Hi Bin,
>> >>>>>>
>> >>>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> Hi Simon,
>> >>>>>>>
>> >>>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> Hi Bin,
>> >>>>>>>>
>> >>>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> Hi Simon,
>> >>>>>>>>>
>> >>>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com>
>> >>>>>>>>> wrote:
>> >>>>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>>>> Hi Simon,
>> >>>>>>>>>>
>> >>>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
>> >>>>>>>>>> wrote:
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>> Hi Bin,
>> >>>>>>>>>>>
>> >>>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> Hi Simon,
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
>> >>>>>>>>>>>> wrote:
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> This is not to be applied. It is needed to test using
>> >>>>>>>>>>>>> CONFIG_DM_MMC on x86
>> >>>>>>>>>>>>> since SCSI is broken with this setup.
>> >>>>>>>>>>>>>
>> >>>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> >>>>>>>>>>>>> ---
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>>
>> >>>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>> >>>>>>>>>>>> exception when boot up with a hard disk like below?
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>>
>> >>>>>>>>>>> Yes that's right.
>> >>>>>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>>>> Do you plan to work on a patch soon?
>> >>>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> I tracked down the exception happens at
>> >>>>>>>>> part_test_efi()->block_dread() function:
>> >>>>>>>>>
>> >>>>>>>>> if (!ops->read)
>> >>>>>>>>>       return -ENOSYS;
>> >>>>>>>>>
>> >>>>>>>>> Where ops points to nowhere, because underlying SATA device does
>> >>>>>>>>> not
>> >>>>>>>>> have a DM driver associated.
>> >>>>>>>>>
>> >>>>>>>>> Could you please fix this?
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> I've been hoping that someone else will take on this side of things,
>> >>>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> Thanks. I wanted to fix this myself however I have been busy on some
>> >>>>>>> other stuff.
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> I've sent a series which I think puts SCSI and SATA in a better
>> >>>>>> position with respect to driver model. However even with that there is
>> >>>>>> more work to do.
>> >>>>>>
>> >>>>>
>> >>>>> Thanks for working on this! I will take a look.
>> >>>>>
>> >>>>> If we don't get enough time to sort out everything, we will have to
>> >>>>> revert previous MMC DM conversion patch and leave that to next
>> >>>>> release.
>> >>>>
>> >>>>
>> >>>>
>> >>>> Yes, let's see how it goes. I probably have time for one more spin if
>> >>>> it is soon...but the last patch needs work.
>> >>>
>> >>>
>> >>>
>> >>> As Andreas has pointed out here:
>> >>>
>> >>> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
>> >>>
>> >>> SCSI seems to be broken also on Armada 37xx (and perhaps other
>> >>> platforms as well). Is it correct to assume, that this x86 SCSI
>> >>> thread is about the same issue?
>> >>>
>> >>> I know that you are working on DM SCSI support, which is great of
>> >>> course. But do you have an idea, if and how this could be fixed for
>> >>> this upcoming release?
>> >>
>> >>
>> >> Simon already sent a series to convert SCSI to DM and applied to
>> >> u-boot-dm. I also sent a series to fix some additional issues [1].
>> >>
>> >> Can you or Andreas try on top of u-boot-dm plus my patches to see if
>> >> the issue is fixed?
>> >>
>> >> [1] http://patchwork.ozlabs.org/patch/777312/
>> >
>> >
>> > I tested with this version and "scsi reset" still reboots the
>> > board. Please note that SCSI / AHCI probably needs some additional
>> > work, as its currently supported via this driver in arch/arm
>> > which needs to moved to the correct driver directory:
>> >
>> > arch/arm/mach-mvebu/sata.c
>> >
>> > It probably also needs some work to function correctly with these
>> > new DM SCSI patches. But all this seems a bit late in this release
>> > cycle. Do we have a "solution" to fix this issue for this upcoming
>> > release?
>> >
>>
>> Did the failure happen at the place part_test_efi()->block_dread() function?
>>
>> if (!ops->read)
>>     return -ENOSYS;
>>
>> Where ops points to nowhere ..
>>
>> If so, I think the SATA driver needs to be converted to DM.
>>
>> But I don't know if a simple solution exists for now on your board. I
>> noticed that Andreas said v2017.01 works but v2017.03 is failing. So
>> it has been broken for some time. But Simon's series aims to resolve
>> the issues seen on x86, which is an intermediate issue in this release
>> cycle.
>
> I sent a pull request (forgetting to cc the list) for this but it was
> too close to RC2 so Tom rejected it. It is sitting in dm/master if you
> want to look.
>
> At this stage I don't have a good answer. Even my series doesn't
> complete the SATA conversion to DM. We still need AHCI to have proper
> operations and convert the rest of the drivers. I was hoping that
> might be easier once the powerpc removals are complete.

Since the pull request of u-boot-dm was rejected for this release, I
sent a revert patch for x86 [1] to fix x86 SCSI issues.

Is Armada 37xx converted to use DM MMC? If so, maybe a quick fix is to
revert the Armada 37xx board back to use non-DM MMC, like x86 does?

[1] http://patchwork.ozlabs.org/patch/780913/

Regards,
Bin
Stefan Roese June 27, 2017, 4:48 a.m. UTC | #16
Hi Simon,

On 26.06.2017 20:42, Simon Glass wrote:
> Hi,
> 
> On 26 June 2017 at 03:11, Bin Meng <bmeng.cn@gmail.com> wrote:
>>
>> Hi Stefan,
>>
>> On Mon, Jun 26, 2017 at 3:29 PM, Stefan Roese <sr@denx.de> wrote:
>>> Hi Bin,
>>>
>>>
>>> On 24.06.2017 14:08, Bin Meng wrote:
>>>>
>>>> Hi Stefan,
>>>>
>>>> On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
>>>>>
>>>>> Hi Simon, Hi Bin,
>>>>>
>>>>>
>>>>> On 12.06.2017 05:53, Simon Glass wrote:
>>>>>>
>>>>>>
>>>>>> Hi Bin,
>>>>>>
>>>>>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Simon,
>>>>>>>
>>>>>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Bin,
>>>>>>>>
>>>>>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Simon,
>>>>>>>>>
>>>>>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Bin,
>>>>>>>>>>
>>>>>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>
>>>>>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Bin,
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> This is not to be applied. It is needed to test using
>>>>>>>>>>>>>>> CONFIG_DM_MMC on x86
>>>>>>>>>>>>>>> since SCSI is broken with this setup.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>>>>>>>>>>> exception when boot up with a hard disk like below?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Yes that's right.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Do you plan to work on a patch soon?
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I tracked down the exception happens at
>>>>>>>>>>> part_test_efi()->block_dread() function:
>>>>>>>>>>>
>>>>>>>>>>> if (!ops->read)
>>>>>>>>>>>        return -ENOSYS;
>>>>>>>>>>>
>>>>>>>>>>> Where ops points to nowhere, because underlying SATA device does
>>>>>>>>>>> not
>>>>>>>>>>> have a DM driver associated.
>>>>>>>>>>>
>>>>>>>>>>> Could you please fix this?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I've been hoping that someone else will take on this side of things,
>>>>>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks. I wanted to fix this myself however I have been busy on some
>>>>>>>>> other stuff.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I've sent a series which I think puts SCSI and SATA in a better
>>>>>>>> position with respect to driver model. However even with that there is
>>>>>>>> more work to do.
>>>>>>>>
>>>>>>>
>>>>>>> Thanks for working on this! I will take a look.
>>>>>>>
>>>>>>> If we don't get enough time to sort out everything, we will have to
>>>>>>> revert previous MMC DM conversion patch and leave that to next
>>>>>>> release.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Yes, let's see how it goes. I probably have time for one more spin if
>>>>>> it is soon...but the last patch needs work.
>>>>>
>>>>>
>>>>>
>>>>> As Andreas has pointed out here:
>>>>>
>>>>> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
>>>>>
>>>>> SCSI seems to be broken also on Armada 37xx (and perhaps other
>>>>> platforms as well). Is it correct to assume, that this x86 SCSI
>>>>> thread is about the same issue?
>>>>>
>>>>> I know that you are working on DM SCSI support, which is great of
>>>>> course. But do you have an idea, if and how this could be fixed for
>>>>> this upcoming release?
>>>>
>>>>
>>>> Simon already sent a series to convert SCSI to DM and applied to
>>>> u-boot-dm. I also sent a series to fix some additional issues [1].
>>>>
>>>> Can you or Andreas try on top of u-boot-dm plus my patches to see if
>>>> the issue is fixed?
>>>>
>>>> [1] http://patchwork.ozlabs.org/patch/777312/
>>>
>>>
>>> I tested with this version and "scsi reset" still reboots the
>>> board. Please note that SCSI / AHCI probably needs some additional
>>> work, as its currently supported via this driver in arch/arm
>>> which needs to moved to the correct driver directory:
>>>
>>> arch/arm/mach-mvebu/sata.c
>>>
>>> It probably also needs some work to function correctly with these
>>> new DM SCSI patches. But all this seems a bit late in this release
>>> cycle. Do we have a "solution" to fix this issue for this upcoming
>>> release?
>>>
>>
>> Did the failure happen at the place part_test_efi()->block_dread() function?
>>
>> if (!ops->read)
>>      return -ENOSYS;
>>
>> Where ops points to nowhere ..
>>
>> If so, I think the SATA driver needs to be converted to DM.
>>
>> But I don't know if a simple solution exists for now on your board. I
>> noticed that Andreas said v2017.01 works but v2017.03 is failing. So
>> it has been broken for some time. But Simon's series aims to resolve
>> the issues seen on x86, which is an intermediate issue in this release
>> cycle.
> 
> I sent a pull request (forgetting to cc the list) for this but it was
> too close to RC2 so Tom rejected it. It is sitting in dm/master if you
> want to look.

Thanks for the explanation.

> At this stage I don't have a good answer. Even my series doesn't
> complete the SATA conversion to DM. We still need AHCI to have proper
> operations and convert the rest of the drivers. I was hoping that
> might be easier once the powerpc removals are complete.

Understood. Might be that we can only solve this in the next
release cycle then.

Thanks,
Stefan
Stefan Roese June 27, 2017, 4:53 a.m. UTC | #17
Hi Bin,

On 27.06.2017 01:34, Bin Meng wrote:
> Hi Stefan,
> 
> On Tue, Jun 27, 2017 at 2:42 AM, Simon Glass <sjg@chromium.org> wrote:
>> Hi,
>>
>> On 26 June 2017 at 03:11, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>
>>> Hi Stefan,
>>>
>>> On Mon, Jun 26, 2017 at 3:29 PM, Stefan Roese <sr@denx.de> wrote:
>>>> Hi Bin,
>>>>
>>>>
>>>> On 24.06.2017 14:08, Bin Meng wrote:
>>>>>
>>>>> Hi Stefan,
>>>>>
>>>>> On Sat, Jun 24, 2017 at 6:29 PM, Stefan Roese <sr@denx.de> wrote:
>>>>>>
>>>>>> Hi Simon, Hi Bin,
>>>>>>
>>>>>>
>>>>>> On 12.06.2017 05:53, Simon Glass wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Bin,
>>>>>>>
>>>>>>> On 9 June 2017 at 21:47, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Simon,
>>>>>>>>
>>>>>>>> On Fri, Jun 9, 2017 at 8:27 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Bin,
>>>>>>>>>
>>>>>>>>> On 1 June 2017 at 17:04, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Simon,
>>>>>>>>>>
>>>>>>>>>> On Thu, Jun 1, 2017 at 9:14 PM, Simon Glass <sjg@chromium.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi Bin,
>>>>>>>>>>>
>>>>>>>>>>> On 1 June 2017 at 01:27, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, May 17, 2017 at 8:42 AM, Bin Meng <bmeng.cn@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, May 13, 2017 at 9:11 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Bin,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 8 May 2017 at 01:05, Bin Meng <bmeng.cn@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Simon,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Mon, Apr 10, 2017 at 8:38 AM, Simon Glass <sjg@chromium.org>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> This is not to be applied. It is needed to test using
>>>>>>>>>>>>>>>> CONFIG_DM_MMC on x86
>>>>>>>>>>>>>>>> since SCSI is broken with this setup.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> When you said "SCSI is broken with this setup", did you mean GP#
>>>>>>>>>>>>>>> exception when boot up with a hard disk like below?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes that's right.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Do you plan to work on a patch soon?
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I tracked down the exception happens at
>>>>>>>>>>>> part_test_efi()->block_dread() function:
>>>>>>>>>>>>
>>>>>>>>>>>> if (!ops->read)
>>>>>>>>>>>>        return -ENOSYS;
>>>>>>>>>>>>
>>>>>>>>>>>> Where ops points to nowhere, because underlying SATA device does
>>>>>>>>>>>> not
>>>>>>>>>>>> have a DM driver associated.
>>>>>>>>>>>>
>>>>>>>>>>>> Could you please fix this?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I've been hoping that someone else will take on this side of things,
>>>>>>>>>>> but perhaps I am optimistic. I'll see if I can take a look.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks. I wanted to fix this myself however I have been busy on some
>>>>>>>>>> other stuff.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I've sent a series which I think puts SCSI and SATA in a better
>>>>>>>>> position with respect to driver model. However even with that there is
>>>>>>>>> more work to do.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks for working on this! I will take a look.
>>>>>>>>
>>>>>>>> If we don't get enough time to sort out everything, we will have to
>>>>>>>> revert previous MMC DM conversion patch and leave that to next
>>>>>>>> release.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Yes, let's see how it goes. I probably have time for one more spin if
>>>>>>> it is soon...but the last patch needs work.
>>>>>>
>>>>>>
>>>>>>
>>>>>> As Andreas has pointed out here:
>>>>>>
>>>>>> https://lists.denx.de/pipermail/u-boot/2017-June/296337.html
>>>>>>
>>>>>> SCSI seems to be broken also on Armada 37xx (and perhaps other
>>>>>> platforms as well). Is it correct to assume, that this x86 SCSI
>>>>>> thread is about the same issue?
>>>>>>
>>>>>> I know that you are working on DM SCSI support, which is great of
>>>>>> course. But do you have an idea, if and how this could be fixed for
>>>>>> this upcoming release?
>>>>>
>>>>>
>>>>> Simon already sent a series to convert SCSI to DM and applied to
>>>>> u-boot-dm. I also sent a series to fix some additional issues [1].
>>>>>
>>>>> Can you or Andreas try on top of u-boot-dm plus my patches to see if
>>>>> the issue is fixed?
>>>>>
>>>>> [1] http://patchwork.ozlabs.org/patch/777312/
>>>>
>>>>
>>>> I tested with this version and "scsi reset" still reboots the
>>>> board. Please note that SCSI / AHCI probably needs some additional
>>>> work, as its currently supported via this driver in arch/arm
>>>> which needs to moved to the correct driver directory:
>>>>
>>>> arch/arm/mach-mvebu/sata.c
>>>>
>>>> It probably also needs some work to function correctly with these
>>>> new DM SCSI patches. But all this seems a bit late in this release
>>>> cycle. Do we have a "solution" to fix this issue for this upcoming
>>>> release?
>>>>
>>>
>>> Did the failure happen at the place part_test_efi()->block_dread() function?
>>>
>>> if (!ops->read)
>>>      return -ENOSYS;
>>>
>>> Where ops points to nowhere ..
>>>
>>> If so, I think the SATA driver needs to be converted to DM.
>>>
>>> But I don't know if a simple solution exists for now on your board. I
>>> noticed that Andreas said v2017.01 works but v2017.03 is failing. So
>>> it has been broken for some time. But Simon's series aims to resolve
>>> the issues seen on x86, which is an intermediate issue in this release
>>> cycle.
>>
>> I sent a pull request (forgetting to cc the list) for this but it was
>> too close to RC2 so Tom rejected it. It is sitting in dm/master if you
>> want to look.
>>
>> At this stage I don't have a good answer. Even my series doesn't
>> complete the SATA conversion to DM. We still need AHCI to have proper
>> operations and convert the rest of the drivers. I was hoping that
>> might be easier once the powerpc removals are complete.
> 
> Since the pull request of u-boot-dm was rejected for this release, I
> sent a revert patch for x86 [1] to fix x86 SCSI issues.
> 
> Is Armada 37xx converted to use DM MMC? If so, maybe a quick fix is to
> revert the Armada 37xx board back to use non-DM MMC, like x86 does?

The SDHCI driver for Armada 37xx (and 7k/8k) was added only recently
and directly as a DM driver. So I can't move it back to non-DM
without bigger effort - which does not make much sense.

My feeling is, that its probably best to do the SCSI / AHCI DM
conversion soon in the next release cycle and I will definitely
help with converting / testing on the Armada 64bit platforms then.

Thanks,
Stefan
diff mbox

Patch

diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index f7796cf63f..67f19d4121 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -30,7 +30,7 @@ 
 #define CONFIG_SYS_BOOTM_LEN		(16 << 20)
 
 /* SATA AHCI storage */
-
+#if 0
 #define CONFIG_SCSI_AHCI
 #ifdef CONFIG_SCSI_AHCI
 #define CONFIG_LIBATA
@@ -42,6 +42,7 @@ 
 #define CONFIG_SYS_SCSI_MAX_DEVICE	(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 					 CONFIG_SYS_SCSI_MAX_LUN)
 #endif
+#endif
 
 /* Generic TPM interfaced through LPC bus */
 #define CONFIG_TPM_TIS_BASE_ADDRESS        0xfed40000
@@ -82,8 +83,9 @@ 
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_GETTIME
+/*
 #define CONFIG_SCSI
-
+*/
 #define CONFIG_CMD_ZBOOT
 
 #define CONFIG_BOOTARGS		\