All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH v1 1/1] e1000e: Enable the GPT clock before sending message to the CSME
@ 2022-05-02 13:15 Sasha Neftin
  2022-05-02 15:51 ` Paul Menzel
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Neftin @ 2022-05-02 13:15 UTC (permalink / raw)
  To: intel-wired-lan

Enable the dynamic GPT clock. The clock is always ticking is the guarantee
CSME receive the H2ME message and exit from the DMoff state.
This clock cleared upon HW initialization (D3 -> D0 transition).

Fixes: 3e55d231716e ("e1000e: Add handshake with the CSME to support s0ix")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214821
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
---
 drivers/net/ethernet/intel/e1000e/netdev.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index fa06f68c8c80..e29a718469ee 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -6494,6 +6494,10 @@ static void e1000e_s0ix_exit_flow(struct e1000_adapter *adapter)
 
 	if (er32(FWSM) & E1000_ICH_FWSM_FW_VALID &&
 	    hw->mac.type >= e1000_pch_adp) {
+		/* Keep the gpt_clk_enable_d clock for CSME*/
+		mac_data = er32(FEXTNVM);
+		mac_data |= BIT(3);
+		ew32(FEXTNVM, mac_data);
 		/* Request ME unconfigure the device from S0ix */
 		mac_data = er32(H2ME);
 		mac_data &= ~E1000_H2ME_START_DPG;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Intel-wired-lan] [PATCH v1 1/1] e1000e: Enable the GPT clock before sending message to the CSME
  2022-05-02 13:15 [Intel-wired-lan] [PATCH v1 1/1] e1000e: Enable the GPT clock before sending message to the CSME Sasha Neftin
@ 2022-05-02 15:51 ` Paul Menzel
  2022-05-03  3:14   ` Neftin, Sasha
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2022-05-02 15:51 UTC (permalink / raw)
  To: intel-wired-lan

Dear Sasha,


Thank you for your patch.

Am 02.05.22 um 15:15 schrieb Sasha Neftin:

You could remove the articles *the* from the summary to make it shorter.

> Enable the dynamic GPT clock. The clock is always ticking is the guarantee
> CSME receive the H2ME message and exit from the DMoff state.
> This clock cleared upon HW initialization (D3 -> D0 transition).

Please do not break the line, just because a sentence ends.

*is* cleared?

Please start the commit message by describing the problem, and also give 
instructions how to reproduce it.

> Fixes: 3e55d231716e ("e1000e: Add handshake with the CSME to support s0ix")
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214821
> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
> ---
>   drivers/net/ethernet/intel/e1000e/netdev.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
> index fa06f68c8c80..e29a718469ee 100644
> --- a/drivers/net/ethernet/intel/e1000e/netdev.c
> +++ b/drivers/net/ethernet/intel/e1000e/netdev.c
> @@ -6494,6 +6494,10 @@ static void e1000e_s0ix_exit_flow(struct e1000_adapter *adapter)
>   
>   	if (er32(FWSM) & E1000_ICH_FWSM_FW_VALID &&
>   	    hw->mac.type >= e1000_pch_adp) {
> +		/* Keep the gpt_clk_enable_d clock for CSME*/

Missing space before the closing */.

Why is `gpt_clk_enable_d` spelled that way?

> +		mac_data = er32(FEXTNVM);
> +		mac_data |= BIT(3);
> +		ew32(FEXTNVM, mac_data);
>   		/* Request ME unconfigure the device from S0ix */
>   		mac_data = er32(H2ME);
>   		mac_data &= ~E1000_H2ME_START_DPG;


Kind regards,

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Intel-wired-lan] [PATCH v1 1/1] e1000e: Enable the GPT clock before sending message to the CSME
  2022-05-02 15:51 ` Paul Menzel
@ 2022-05-03  3:14   ` Neftin, Sasha
  2022-05-03  6:26     ` Paul Menzel
  0 siblings, 1 reply; 4+ messages in thread
From: Neftin, Sasha @ 2022-05-03  3:14 UTC (permalink / raw)
  To: intel-wired-lan

On 5/2/2022 18:51, Paul Menzel wrote:
> Dear Sasha,
> 
> 
> Thank you for your patch.
> 
> Am 02.05.22 um 15:15 schrieb Sasha Neftin:
> 
> You could remove the articles *the* from the summary to make it shorter.
> 
>> Enable the dynamic GPT clock. The clock is always ticking is the 
>> guarantee
>> CSME receive the H2ME message and exit from the DMoff state.
>> This clock cleared upon HW initialization (D3 -> D0 transition).
> 
> Please do not break the line, just because a sentence ends.
> 
> *is* cleared?
ok.
> 
> Please start the commit message by describing the problem, and also give 
> instructions how to reproduce it.
please, refer to the link below (bugzilla)
> 
>> Fixes: 3e55d231716e ("e1000e: Add handshake with the CSME to support 
>> s0ix")
>> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214821
>> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
>> ---
>> ? drivers/net/ethernet/intel/e1000e/netdev.c | 4 ++++
>> ? 1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c 
>> b/drivers/net/ethernet/intel/e1000e/netdev.c
>> index fa06f68c8c80..e29a718469ee 100644
>> --- a/drivers/net/ethernet/intel/e1000e/netdev.c
>> +++ b/drivers/net/ethernet/intel/e1000e/netdev.c
>> @@ -6494,6 +6494,10 @@ static void e1000e_s0ix_exit_flow(struct 
>> e1000_adapter *adapter)
>> ????? if (er32(FWSM) & E1000_ICH_FWSM_FW_VALID &&
>> ????????? hw->mac.type >= e1000_pch_adp) {
>> +??????? /* Keep the gpt_clk_enable_d clock for CSME*/
> 
> Missing space before the closing */.
Thanks - will fix in v2
> 
> Why is `gpt_clk_enable_d` spelled that way?
I took it from HW design. I will spell it as 'GPT clock' (more clearly).
> 
>> +??????? mac_data = er32(FEXTNVM);
>> +??????? mac_data |= BIT(3);
>> +??????? ew32(FEXTNVM, mac_data);
>> ????????? /* Request ME unconfigure the device from S0ix */
>> ????????? mac_data = er32(H2ME);
>> ????????? mac_data &= ~E1000_H2ME_START_DPG;
> 
> 
> Kind regards,
> 
> Paul
Sasha

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Intel-wired-lan] [PATCH v1 1/1] e1000e: Enable the GPT clock before sending message to the CSME
  2022-05-03  3:14   ` Neftin, Sasha
@ 2022-05-03  6:26     ` Paul Menzel
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Menzel @ 2022-05-03  6:26 UTC (permalink / raw)
  To: intel-wired-lan

Dear Sasha,


Am 03.05.22 um 05:14 schrieb Neftin, Sasha:
> On 5/2/2022 18:51, Paul Menzel wrote:

>> Am 02.05.22 um 15:15 schrieb Sasha Neftin:
>>
>> You could remove the articles *the* from the summary to make it shorter.

As you acked all the other comments, I just want to make sure, you saw 
this one.

>>> Enable the dynamic GPT clock. The clock is always ticking is the 
>>> guarantee
>>> CSME receive the H2ME message and exit from the DMoff state.
>>> This clock cleared upon HW initialization (D3 -> D0 transition).
>>
>> Please do not break the line, just because a sentence ends.
>>
>> *is* cleared?
> ok.
>>
>> Please start the commit message by describing the problem, and also 
>> give instructions how to reproduce it.
> please, refer to the link below (bugzilla)

I saw that but no, as always commit messages need to contain the 
motivation and also need to be some kind of self-contained. Reviewers 
can *not* be expected to read through several comments in a bug report, 
and people looking at a commit are not always online, and Web service 
are not always online. So, a summary of the issue should be provided.

>>> Fixes: 3e55d231716e ("e1000e: Add handshake with the CSME to support s0ix")

The bug report also does not mention anything about a regression. Did it 
never work?

>>> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214821
>>> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
>>> ---
>>> ? drivers/net/ethernet/intel/e1000e/netdev.c | 4 ++++
>>> ? 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c 
>>> b/drivers/net/ethernet/intel/e1000e/netdev.c
>>> index fa06f68c8c80..e29a718469ee 100644
>>> --- a/drivers/net/ethernet/intel/e1000e/netdev.c
>>> +++ b/drivers/net/ethernet/intel/e1000e/netdev.c
>>> @@ -6494,6 +6494,10 @@ static void e1000e_s0ix_exit_flow(struct 
>>> e1000_adapter *adapter)
>>> ????? if (er32(FWSM) & E1000_ICH_FWSM_FW_VALID &&
>>> ????????? hw->mac.type >= e1000_pch_adp) {
>>> +??????? /* Keep the gpt_clk_enable_d clock for CSME*/
>>
>> Missing space before the closing */.
> Thanks - will fix in v2
>>
>> Why is `gpt_clk_enable_d` spelled that way?
> I took it from HW design. I will spell it as 'GPT clock' (more clearly).
>>
>>> +??????? mac_data = er32(FEXTNVM);
>>> +??????? mac_data |= BIT(3);
>>> +??????? ew32(FEXTNVM, mac_data);
>>> ????????? /* Request ME unconfigure the device from S0ix */
>>> ????????? mac_data = er32(H2ME);
>>> ????????? mac_data &= ~E1000_H2ME_START_DPG;


Kind regards,

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-03  6:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 13:15 [Intel-wired-lan] [PATCH v1 1/1] e1000e: Enable the GPT clock before sending message to the CSME Sasha Neftin
2022-05-02 15:51 ` Paul Menzel
2022-05-03  3:14   ` Neftin, Sasha
2022-05-03  6:26     ` Paul Menzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.