Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Rafael J. Wysocki
On Tue, Aug 22, 2017 at 12:21 AM, Kani, Toshimitsu wrote: > On Mon, 2017-08-21 at 23:49 +0200, Rafael J. Wysocki wrote: >> On Mon, Aug 21, 2017 at 11:06 PM, Kani, Toshimitsu > m> wrote: >> > On Mon, 2017-08-21 at 22:31 +0200, Rafael J. Wysocki wrote: >> > > On Mon, Aug 21, 2017 at 7:36 PM, Borisla

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Kani, Toshimitsu
On Mon, 2017-08-21 at 23:49 +0200, Rafael J. Wysocki wrote: > On Mon, Aug 21, 2017 at 11:06 PM, Kani, Toshimitsu m> wrote: > > On Mon, 2017-08-21 at 22:31 +0200, Rafael J. Wysocki wrote: > > > On Mon, Aug 21, 2017 at 7:36 PM, Borislav Petkov > > > wrote: > > > > On Mon, Aug 21, 2017 at 05:23:37PM

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Rafael J. Wysocki
On Mon, Aug 21, 2017 at 11:06 PM, Kani, Toshimitsu wrote: > On Mon, 2017-08-21 at 22:31 +0200, Rafael J. Wysocki wrote: >> On Mon, Aug 21, 2017 at 7:36 PM, Borislav Petkov >> wrote: >> > On Mon, Aug 21, 2017 at 05:23:37PM +, Kani, Toshimitsu wrote: >> > > > > 'data' here is private to the cal

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Kani, Toshimitsu
On Mon, 2017-08-21 at 22:31 +0200, Rafael J. Wysocki wrote: > On Mon, Aug 21, 2017 at 7:36 PM, Borislav Petkov > wrote: > > On Mon, Aug 21, 2017 at 05:23:37PM +, Kani, Toshimitsu wrote: > > > > > 'data' here is private to the caller.  So, I do not think we > > > > > need to define the bits.  S

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Rafael J. Wysocki
On Mon, Aug 21, 2017 at 7:36 PM, Borislav Petkov wrote: > On Mon, Aug 21, 2017 at 05:23:37PM +, Kani, Toshimitsu wrote: >> > > 'data' here is private to the caller. So, I do not think we need >> > > to define the bits. Shall I change the name to 'driver_data' to >> > > make it more explicit?

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Borislav Petkov
On Mon, Aug 21, 2017 at 05:23:37PM +, Kani, Toshimitsu wrote: > > > 'data' here is private to the caller.  So, I do not think we need > > > to define the bits.  Shall I change the name to 'driver_data' to > > > make it more explicit? > > > > You changed it to 'data'. It was a u32-used-as-boole

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Kani, Toshimitsu
On Mon, 2017-08-21 at 19:04 +0200, Borislav Petkov wrote: > On Mon, Aug 21, 2017 at 04:41:38PM +, Kani, Toshimitsu wrote: > > Putting to a single line leads to "line over 80 characters" warning > > from checkpatch.pl.  Would you still advice to do that? > > Yes, the 80 cols rule is not a hard

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Borislav Petkov
On Mon, Aug 21, 2017 at 04:41:38PM +, Kani, Toshimitsu wrote: > Putting to a single line leads to "line over 80 characters" warning > from checkpatch.pl. Would you still advice to do that? Yes, the 80 cols rule is not a hard one. Rather, it should be overridden by human good judgement, like m

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Kani, Toshimitsu
On Mon, 2017-08-21 at 13:27 +0200, Borislav Petkov wrote: > On Fri, Aug 18, 2017 at 01:46:40PM -0600, Toshi Kani wrote: > > ACPI OEM ID / OEM Table ID / Revision can be used to identify > > a platform based on ACPI firmware info.  acpi_blacklisted(), > > intel_pstate_platform_pwr_mgmt_exists(), and

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Rafael J. Wysocki
On Mon, Aug 21, 2017 at 1:27 PM, Borislav Petkov wrote: > On Fri, Aug 18, 2017 at 01:46:40PM -0600, Toshi Kani wrote: >> ACPI OEM ID / OEM Table ID / Revision can be used to identify >> a platform based on ACPI firmware info. acpi_blacklisted(), >> intel_pstate_platform_pwr_mgmt_exists(), and som

Re: [PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-21 Thread Borislav Petkov
On Fri, Aug 18, 2017 at 01:46:40PM -0600, Toshi Kani wrote: > ACPI OEM ID / OEM Table ID / Revision can be used to identify > a platform based on ACPI firmware info. acpi_blacklisted(), > intel_pstate_platform_pwr_mgmt_exists(), and some other funcs, > have been using similar check to detect a lis

[PATCH v3 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-18 Thread Toshi Kani
ACPI OEM ID / OEM Table ID / Revision can be used to identify a platform based on ACPI firmware info. acpi_blacklisted(), intel_pstate_platform_pwr_mgmt_exists(), and some other funcs, have been using similar check to detect a list of platforms that require special handlings. Move the platform ch