linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Starikovskiy <aystarik@gmail.com>
To: Zhao Yakui <yakui.zhao@intel.com>
Cc: linux-acpi@vger.kernel.org, lenb@kernel.org
Subject: Re: [RFC] [Patch 0/4]  ACPI : several patches for EC
Date: Fri, 26 Sep 2008 10:27:25 +0400	[thread overview]
Message-ID: <48DC80CD.3000008@gmail.com> (raw)
In-Reply-To: <1222393629.4023.157.camel@yakui_zhao.sh.intel.com>

Zhao Yakui wrote:
> On Thu, 2008-09-25 at 15:05 +0400, Alexey Starikovskiy wrote:
>   
>> Zhao Yakui wrote:
>>     
>>> But I think that the spin_lock is overkill in the updated patch.
>>> Assuming that 1000 EC transactions are done per second, the CPU
>>> interrupt is disabled for 1ms. It is important that the normal laptops
>>> will be affected by this.
>>>   
>>>       
>> How do you arrive with these numbers? Where do you get this 1ms?
>> Spinlock is around single inb/outb instruction plus several even simpler
>> instructions. Do you claim it is going to take 1us? Do you claim that it 
>> will
>>     
> It is noted that inb/outb instruction is not memory read/write
> operation. It will take some time to read/write the external peripheral
> device.
> For example: 
> On intel platform : The EC is connected with ICH device through LPC bus.
> For every LCP I/O read/write operation, it will take almost 0.7us.
>
> When OS reads the SBS battery info, there will a lot of SCI interrupts,
> most of which are related with EC transaction. 
>   
You seem to forget, that SBS driver is also written by me... Don't
explain to me how it works. Thanks.
>> add anything to interrupts-disabled time of ACPI SCI interrupt handler
>> itself?
>>     
> Not included.
>
> Why not explain the following ? The local function variable resides on
> the process stack space. If the process that is doing EC transaction is
> killed before it is finished, what will happen? Maybe the system will be
> kernel panic.
Ever tried to kill process, which entered syscall (e.g. in kernel)?
Please read some books first.
> I only want to know why you raise the following commit?
>     >commit 9e197219605513c14d3eae41039ecf1b82d1920d
>     >Author: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
>     > Date:   Wed Mar 7 18:29:35 2007 -0500
>       >ACPI: ec: fix race in status register access
>    
>    If your understanding is correct, why push it?
>    Why give two different explanations about the same issue?
> At the same time please confirm whether the laptop of bug 8110 is broken
> again by your patch if the GPE storm happens ?
>   
I just explained everything in the above mail. If you don't understand --
this is not my problem, but _yours_. I am not going to explain same things
to you several times.

My patch does not break machine in bug report 8110.


      reply	other threads:[~2008-09-26  6:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25  3:53 [RFC] [Patch 0/4] ACPI : several patches for EC Zhao Yakui
2008-09-25  5:25 ` Alexey Starikovskiy
2008-09-25  6:41   ` Zhao Yakui
2008-09-25  8:31     ` Alexey Starikovskiy
2008-09-25 10:05       ` Zhao Yakui
2008-09-25 11:05         ` Alexey Starikovskiy
2008-09-25 11:22           ` Alexey Starikovskiy
2008-09-26  1:47           ` Zhao Yakui
2008-09-26  6:27             ` Alexey Starikovskiy [this message]

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=48DC80CD.3000008@gmail.com \
    --to=aystarik@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).