public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Lin Ming <ming.m.lin@intel.com>
Cc: Luca Tettamanti <kronos.it@gmail.com>,
	"Moore, Robert" <robert.moore@intel.com>,
	Nikolay Mikov <nik.mikov@gmail.com>, Thomas <trenn@suse.de>,
	linux-acpi@vger.kernel.org, lenb <lenb@kernel.org>
Subject: Re: [BUG] ACPI resource validation not working [Was: Re: ITE 8728F]
Date: Mon, 12 Dec 2011 10:37:26 +0100	[thread overview]
Message-ID: <20111212103726.56422cbb@endymion.delvare> (raw)
In-Reply-To: <1323396109.27764.44.camel@minggr>

Hi Lin,

On Fri, 09 Dec 2011 10:01:49 +0800, Lin Ming wrote:
> On Tue, 2011-11-29 at 21:18 +0800, Luca Tettamanti wrote:
> > On Tue, Nov 29, 2011 at 2:48 AM, Lin Ming <ming.m.lin@intel.com> wrote:
> > > Yes, we should put the call back.
> > 
> > Great, are you going to push this patch yourself?
> 
> We have investigated this issue more and think that it's better to move
> the resource validation code into ACPICA core.
> 
> Here is the new patch.
> 
> The major changes include:
> - Remove acpi_os_validate_address/acpi_os_invalidate_address from osl.c.
>   They are reimplemented in ACPICA core: 
>   acpi_ut_add_address_range/acpi_ut_remove_address_range.
> 
> - Add new interface for drivers to check resource conflict:
>   acpi_check_address_range
> 
> Could you help to test it?

I have no objection for an upstream patch, but the main problem we have
at the moment is with already released kernels. Versions 2.6.39, 3.0
and 3.1 currently have a regression as the ACPI resource conflict
checks are inefficient, and this allows conflicting drivers to be
loaded together. So you are free to reimplement things differently in
version 3.2 and later, but for these 3 older versions we need the
smallest possible patch, so that it is accepted in stable branches.

In other words, I would like two patches, one just adding back the code
that was accidentally dropped, and a second one moving things around if
you think it makes sense (and I tend to agree.) That way we can easily
backport only the first patch to kernel versions 2.6.39 to 3.1.

Thanks,
Jean

> Thanks,
> Lin Ming
> ---
>  drivers/acpi/acpica/Makefile    |    2 +-
>  drivers/acpi/acpica/acconfig.h  |    4 +
>  drivers/acpi/acpica/acglobal.h  |    2 +
>  drivers/acpi/acpica/aclocal.h   |    9 ++
>  drivers/acpi/acpica/acutils.h   |   18 +++
>  drivers/acpi/acpica/dsargs.c    |    7 +
>  drivers/acpi/acpica/utaddress.c |  295 +++++++++++++++++++++++++++++++++++++++
>  drivers/acpi/acpica/utdelete.c  |   13 +-
>  drivers/acpi/acpica/utglobal.c  |    6 +
>  drivers/acpi/acpica/utinit.c    |    1 +
>  drivers/acpi/acpica/utxface.c   |   38 +++++
>  drivers/acpi/osl.c              |  202 ++-------------------------
>  include/acpi/acpixf.h           |    5 +
>  13 files changed, 406 insertions(+), 196 deletions(-)
> (...)

-- 
Jean Delvare

  reply	other threads:[~2011-12-12  9:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 20:53 [BUG] ACPI resource validation not working [Was: Re: ITE 8728F] Luca Tettamanti
2011-11-28 22:56 ` Moore, Robert
2011-11-29  1:48   ` Lin Ming
2011-11-29 13:18     ` Luca Tettamanti
2011-11-29 13:44       ` Lin Ming
2011-11-30  9:07         ` Jean Delvare
2011-12-09  2:01       ` Lin Ming
2011-12-12  9:37         ` Jean Delvare [this message]
2011-12-12 12:42           ` Lin Ming
2011-12-12 20:12             ` Jean Delvare
2012-01-11 13:01               ` Jean Delvare
2011-12-12 12:52         ` Luca Tettamanti
2011-12-13  2:01           ` Lin Ming

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=20111212103726.56422cbb@endymion.delvare \
    --to=khali@linux-fr.org \
    --cc=kronos.it@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=ming.m.lin@intel.com \
    --cc=nik.mikov@gmail.com \
    --cc=robert.moore@intel.com \
    --cc=trenn@suse.de \
    /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