Re: [U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-28 Thread Bin Meng
On Sat, Jul 22, 2017 at 9:45 PM, Bin Meng  wrote:
> Hi Andy,
>
> On Sat, Jul 22, 2017 at 3:32 AM, Andy Shevchenko
>  wrote:
>> If ACPI HW reduced bit in FADT is set we should ignore any ACPI hardware
>> communications.
>>
>> Signed-off-by: Andy Shevchenko 
>> ---
>>  arch/x86/lib/acpi_table.c | 4 
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
>> index da6014fb41..3eb101105b 100644
>> --- a/arch/x86/lib/acpi_table.c
>> +++ b/arch/x86/lib/acpi_table.c
>> @@ -463,6 +463,10 @@ ulong write_acpi_tables(ulong start)
>>
>> debug("ACPI: done\n");
>>
>> +   /* Don't touch ACPI hardware on HW reduced platforms */
>> +   if (fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)
>> +   return current;
>> +
>
> Reviewed-by: Bin Meng 
>

applied to u-boot-x86, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-25 Thread Andy Shevchenko
On Sun, 2017-07-23 at 08:48 +0800, Bin Meng wrote:
> Hi Andy,
> 
> On Sun, Jul 23, 2017 at 12:43 AM, Andy Shevchenko
>  wrote:
> > On Sat, Jul 22, 2017 at 4:45 PM, Bin Meng 
> > wrote:

> > > I assume this is needed on Intel Edison.
> > 
> > Actually it has very little with Edison, though I had stumbled over
> > the bug on that platform.
> > 
> > ARM64 support, if any will come, or I even can suggest to try ASUS
> > T100 transformer (Baytrail based HW reduced).
> > 
> 
> Just out of curiosity, if the ASUS T100 transformer is BayTrail based,
> why is that HW reduced? My understanding is that BayTrail has these
> ACPI registers.

Yeah, I don't know the reason why, but the decision had been made by
department without our team involvement. So, they make it HW reduced and
BIOS also had been adapted for this.

-- 
Andy Shevchenko 
Intel Finland Oy
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-22 Thread Bin Meng
Hi Andy,

On Sun, Jul 23, 2017 at 12:43 AM, Andy Shevchenko
 wrote:
> On Sat, Jul 22, 2017 at 4:45 PM, Bin Meng  wrote:
>> Hi Andy,
>>
>> On Sat, Jul 22, 2017 at 3:32 AM, Andy Shevchenko
>>  wrote:
>>> If ACPI HW reduced bit in FADT is set we should ignore any ACPI hardware
>>> communications.
>>>
>>> Signed-off-by: Andy Shevchenko 
>>> ---
>>>  arch/x86/lib/acpi_table.c | 4 
>>>  1 file changed, 4 insertions(+)
>>>
>>> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
>>> index da6014fb41..3eb101105b 100644
>>> --- a/arch/x86/lib/acpi_table.c
>>> +++ b/arch/x86/lib/acpi_table.c
>>> @@ -463,6 +463,10 @@ ulong write_acpi_tables(ulong start)
>>>
>>> debug("ACPI: done\n");
>>>
>>> +   /* Don't touch ACPI hardware on HW reduced platforms */
>>> +   if (fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)
>>> +   return current;
>>> +
>>
>> Reviewed-by: Bin Meng 
>
> Thanks!
>
>>
>> I assume this is needed on Intel Edison.
>
> Actually it has very little with Edison, though I had stumbled over
> the bug on that platform.
>
> ARM64 support, if any will come, or I even can suggest to try ASUS
> T100 transformer (Baytrail based HW reduced).
>

Just out of curiosity, if the ASUS T100 transformer is BayTrail based,
why is that HW reduced? My understanding is that BayTrail has these
ACPI registers.

>> If that's the case, will you
>> support S3 resume on Edison? And if yes, I believe we will need update
>> acpi_resume() to add the same check there?
>
> It might affect any of HW reduced one, needs to be checked.
>
> I fixed only one issue I found, I didn't look at every places where
> U-Boot goes to ACPI HW,
>

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-22 Thread Bin Meng
Hi Andy,

On Sun, Jul 23, 2017 at 12:43 AM, Andy Shevchenko
 wrote:
> On Sat, Jul 22, 2017 at 4:45 PM, Bin Meng  wrote:
>> Hi Andy,
>>
>> On Sat, Jul 22, 2017 at 3:32 AM, Andy Shevchenko
>>  wrote:
>>> If ACPI HW reduced bit in FADT is set we should ignore any ACPI hardware
>>> communications.
>>>
>>> Signed-off-by: Andy Shevchenko 
>>> ---
>>>  arch/x86/lib/acpi_table.c | 4 
>>>  1 file changed, 4 insertions(+)
>>>
>>> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
>>> index da6014fb41..3eb101105b 100644
>>> --- a/arch/x86/lib/acpi_table.c
>>> +++ b/arch/x86/lib/acpi_table.c
>>> @@ -463,6 +463,10 @@ ulong write_acpi_tables(ulong start)
>>>
>>> debug("ACPI: done\n");
>>>
>>> +   /* Don't touch ACPI hardware on HW reduced platforms */
>>> +   if (fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)
>>> +   return current;
>>> +
>>
>> Reviewed-by: Bin Meng 
>
> Thanks!
>
>>
>> I assume this is needed on Intel Edison.
>
> Actually it has very little with Edison, though I had stumbled over
> the bug on that platform.
>
> ARM64 support, if any will come, or I even can suggest to try ASUS
> T100 transformer (Baytrail based HW reduced).
>
>> If that's the case, will you
>> support S3 resume on Edison? And if yes, I believe we will need update
>> acpi_resume() to add the same check there?
>
> It might affect any of HW reduced one, needs to be checked.
>
> I fixed only one issue I found, I didn't look at every places where
> U-Boot goes to ACPI HW,
>

OK, we will revisit that then once a HW reduced platform wants to support S3.

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-22 Thread Andy Shevchenko
On Sat, Jul 22, 2017 at 4:45 PM, Bin Meng  wrote:
> Hi Andy,
>
> On Sat, Jul 22, 2017 at 3:32 AM, Andy Shevchenko
>  wrote:
>> If ACPI HW reduced bit in FADT is set we should ignore any ACPI hardware
>> communications.
>>
>> Signed-off-by: Andy Shevchenko 
>> ---
>>  arch/x86/lib/acpi_table.c | 4 
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
>> index da6014fb41..3eb101105b 100644
>> --- a/arch/x86/lib/acpi_table.c
>> +++ b/arch/x86/lib/acpi_table.c
>> @@ -463,6 +463,10 @@ ulong write_acpi_tables(ulong start)
>>
>> debug("ACPI: done\n");
>>
>> +   /* Don't touch ACPI hardware on HW reduced platforms */
>> +   if (fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)
>> +   return current;
>> +
>
> Reviewed-by: Bin Meng 

Thanks!

>
> I assume this is needed on Intel Edison.

Actually it has very little with Edison, though I had stumbled over
the bug on that platform.

ARM64 support, if any will come, or I even can suggest to try ASUS
T100 transformer (Baytrail based HW reduced).

> If that's the case, will you
> support S3 resume on Edison? And if yes, I believe we will need update
> acpi_resume() to add the same check there?

It might affect any of HW reduced one, needs to be checked.

I fixed only one issue I found, I didn't look at every places where
U-Boot goes to ACPI HW,

>
>> /*
>>  * Other than waiting for OSPM to request us to switch to ACPI mode,
>>  * do it by ourselves, since SMI will not be triggered.
>> --
>
> Regards,
> Bin
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listinfo/u-boot



-- 
With Best Regards,
Andy Shevchenko
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v1 7/7] x86: acpi: Don't touch hardware on HW reduced platforms

2017-07-22 Thread Bin Meng
Hi Andy,

On Sat, Jul 22, 2017 at 3:32 AM, Andy Shevchenko
 wrote:
> If ACPI HW reduced bit in FADT is set we should ignore any ACPI hardware
> communications.
>
> Signed-off-by: Andy Shevchenko 
> ---
>  arch/x86/lib/acpi_table.c | 4 
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
> index da6014fb41..3eb101105b 100644
> --- a/arch/x86/lib/acpi_table.c
> +++ b/arch/x86/lib/acpi_table.c
> @@ -463,6 +463,10 @@ ulong write_acpi_tables(ulong start)
>
> debug("ACPI: done\n");
>
> +   /* Don't touch ACPI hardware on HW reduced platforms */
> +   if (fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)
> +   return current;
> +

Reviewed-by: Bin Meng 

I assume this is needed on Intel Edison. If that's the case, will you
support S3 resume on Edison? And if yes, I believe we will need update
acpi_resume() to add the same check there?

> /*
>  * Other than waiting for OSPM to request us to switch to ACPI mode,
>  * do it by ourselves, since SMI will not be triggered.
> --

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot