public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexey Starikovskiy <aystarik@gmail.com>
To: Zhao Yakui <yakui.zhao@intel.com>
Cc: Alexey Starikovskiy <astarikovskiy@suse.de>,
	LenBrown <lenb@kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"Brown, Len" <len.brown@intel.com>,
	"Li, Shaohua" <shaohua.li@intel.com>,
	"Zhang, Rui" <rui.zhang@intel.com>,
	"Lin, Ming M" <ming.m.lin@intel.com>
Subject: Spreading FUD [was: The fatal  logic error in EC write transaction(EC transaction is done in interrupt context)]
Date: Sun, 09 Nov 2008 18:27:18 +0300	[thread overview]
Message-ID: <49170156.8000504@gmail.com> (raw)
In-Reply-To: <1226236287.3989.300.camel@yakui_zhao.sh.intel.com>

Yakui,

Please take a look at the subject of the thread -- notice words "fatal"
and "(EC transaction is done in interrupt context)".
Looks horrible, isn't it? Now we begin to get into details, and it appears
that it is not fatal, introduced 3.5 years ago, and has nothing to do with
interrupt context transaction patch.
So, the whole point of your message is to spread FUD about "fast 
transaction" patch,
and show how great you are. I would guess that you've failed in 
achieving both goals.

If you cry "wolf!" too often, you'll get ignored, when the real wolf 
appears.

Now, for a positive example, the same message without exclamation marks...
---------------------------------------------------------------------------------------------------------------------------------
Subject: difference in EC transaction protocol
Hi Alex,
I've noticed difference in EC transaction protocol for write and 
burst-disable commands,
namely all that end with writing byte to EC -- they don't wait for last 
confirmation interrupt and
next transaction might start before current one completes.
May be this is the "root cause" we are looking for.
Regards,
Yakui
---------------------------------------------------------------------------------------------------------------------------------
Note that this message is shorter, and is not offensive.
Smile, and people may start to like you...

Regards,
Alex.

P.S. And I don't agree with your analysis as you still believe that 
before the fast transaction mutex was
not released at the same time as it is now.

Zhao Yakui wrote:
> On Sun, 2008-11-09 at 00:47 +0800, Alexey Starikovskiy wrote:
>   
>> Yakui,
>> This is not about my patch, this is about your ego...
>>     
> Thanks for the reply. I know that this is not introduced by your patch.
> In the previous kernel the EC transaction is explicitly divided into
> several phases. Only when EC transaction is really finished, the EC
> mutex lock is released.  In such case the previous EC transaction is
> already  finished when OS begins another EC transaction. So the issue
> about "1 microsecond" won't appear.
No. No matter how many phases, transaction is done and EC mutex is released
as soon as last write happens. EC driver never waited for confirmation 
for last written byte.
>  But in your patch(EC transaction is
> done in interrupt context) when EC mutex is released , maybe the
> previous EC transaction is not really finished. In such case the  issue
> of "1 microsecond"  will appear.
> Is what I said right?
No. my patch has same "optimization" as appeared in EC driver since 
introduction of interrupt mode.
May be it is more visible now, and you managed to notice it, while still 
failing to see it in earlier EC driver versions?
I agree that there are some benefits in not doing this optimization, 
thus I made the patch to drop it.
>  
>   
>> My patch did not introduce this behaviour, it was there since "burst mode" was introduced, and may be even earlier. You may ask Luming Yu, why he was so optimistic about 1 microsecond (is he still around? you did not include him into CC yet...).
>>     
Actually, I gave too much credit to Shanghai office... Interrupt mode patch was written by Dmitry Torokhov, not Luming Yu.

> In my email what I said is only to point out the logic error. Maybe
>   
No, see above.
> there is no problem that the EC mutex is released before EC transaction
> is really finished. IMO this is still a logic error. The program  logic
> states that EC transaction is already finished but the EC transaction is
> not really finished. They are inconsistent..
>    The more important is that the failure in EC transaction can't be
> detected in time.
>   
>    Do you agree with my analysis?
>   
>   
No, see above.


  reply	other threads:[~2008-11-09 15:27 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-07  4:39 ACPI patches for 2.6.28-rc3 Len Brown
2008-11-07  4:39 ` [PATCH 01/21] i7300_idle: Kconfig, show menu only on x86_64 Len Brown
2008-11-07  4:39   ` [PATCH 02/21] ACPI: EC: revert msleep patch Len Brown
2008-11-07  4:39   ` [PATCH 03/21] sony-laptop: Ignore missing _DIS method on pic device Len Brown
2008-11-07  4:39   ` [PATCH 04/21] ACPI: fix de-reference bug in power resource driver Len Brown
2008-11-07  4:39   ` [PATCH 05/21] ACPI: fan: Delete the strict check in power transition Len Brown
2008-11-07  4:39   ` [PATCH 06/21] ACPI: bugfix reporting of event handler status Len Brown
2008-11-07  4:39   ` [PATCH 07/21] ACPI EC: Fix regression due to use of uninitialized variable Len Brown
2008-11-07  6:13     ` Zhao Yakui
2008-11-07 19:45       ` Len Brown
2008-11-08 14:04         ` The fatal logic error in EC write transaction(EC transaction is done in interrupt context) Zhao, Yakui
2008-11-08 15:33           ` Alexey Starikovskiy
2008-11-08 15:58             ` Zhao, Yakui
2008-11-08 16:47               ` Alexey Starikovskiy
2008-11-08 18:42                 ` [PATCH] ACPI: EC: wait for last write gpe Alexey Starikovskiy
2008-11-09 12:45                   ` Zhao Yakui
2008-11-09 13:11                 ` The fatal logic error in EC write transaction(EC transaction is done in interrupt context) Zhao Yakui
2008-11-09 15:27                   ` Alexey Starikovskiy [this message]
2008-11-10  1:01                     ` Spreading FUD [was: The fatal logic error in EC write transaction(EC transaction is done in interrupt context)] Zhao Yakui
2008-11-10 18:48                       ` Alexey Starikovskiy
2008-11-07  4:39   ` [PATCH 08/21] intel_menlow: don't set max_state a negative value Len Brown
2008-11-07  4:39   ` [PATCH 09/21] ACPI: remove comments about debug layer/level to use Len Brown
2008-11-07  4:39   ` [PATCH 10/21] ACPI: SBS: remove useless acpi_cm_sbs_init() initcall Len Brown
2008-11-07  4:39   ` [PATCH 11/21] ACPI: remove CONFIG_ACPI_POWER Len Brown
2008-11-07  4:39   ` [PATCH 12/21] ACPI: remove CONFIG_ACPI_EC Len Brown
2008-11-07  4:39   ` [PATCH 13/21] intel_menlow: Add comment documenting legal GTHS values Len Brown
2008-11-07  4:39   ` [PATCH 14/21] intel_menlow: MAINTAINERS Len Brown
2008-11-07  4:39   ` [PATCH 15/21] Revert "ACPI: Ingore the RESET_REG_SUP bit when using ACPI reset mechanism" Len Brown
2008-11-07  4:39   ` [PATCH 16/21] PNP: add Bjorn Helgaas as PNP co-maintainer Len Brown
2008-11-07  4:39   ` [PATCH 17/21] ACPI: struct device - replace bus_id with dev_name(), dev_set_name() Len Brown
2008-11-07  4:39   ` [PATCH 18/21] fujitsu-laptop: fix section mismatch warning Len Brown
2008-11-07  4:39   ` [PATCH 19/21] ACPI: use macro to replace hard number Len Brown
2008-11-07  4:39   ` [PATCH 20/21] ACPI: avoid empty file name in sysfs Len Brown
2008-11-07  4:39   ` [PATCH 21/21] ACPI: EC: make kernel messages more useful when GPE storm is detected Len Brown
2008-11-07  9:18     ` Alan Jenkins
2008-11-07 13:54       ` Rafael J. Wysocki
2008-11-07 18:49         ` [stable] " Greg KH
2008-11-07 22:15           ` Rafael J. Wysocki
2008-11-11 21:23             ` Greg KH
2008-11-12 23:34               ` Rafael J. Wysocki
2008-11-13 21:46                 ` Greg KH
2008-11-07 17:41 ` ACPI patches for 2.6.28-rc3 Andrey Borzenkov
2008-11-08  2:48   ` Len Brown

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=49170156.8000504@gmail.com \
    --to=aystarik@gmail.com \
    --cc=astarikovskiy@suse.de \
    --cc=len.brown@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=ming.m.lin@intel.com \
    --cc=rui.zhang@intel.com \
    --cc=shaohua.li@intel.com \
    --cc=yakui.zhao@intel.com \
    /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