From: Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
To: Patrick Mochel <mochel-3NddpPZAyC0@public.gmane.org>
Cc: swsusp-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: acpi_bus_register_driver() returns -ENODEV after resume
Date: Tue, 9 Sep 2003 00:07:22 +0200 [thread overview]
Message-ID: <20030908220722.GA24304@hell.org.pl> (raw)
In-Reply-To: <Pine.LNX.4.33.0309021529410.1737-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
Thus wrote Patrick Mochel:
> Since it's __initdata, the memory will be freed early in the init process
> (c.f. init/main.c::init() -> free_initmem()). Anything that uses it later
> is touching memory that is either unallocated, or allocated by something
> else. That's a bug.
>
> Also, it doesn't need to be EXPORTed. If it is left as initdata, that's
> another bug, because the two are semantically disjoint. However, even with
> the patch below, I'm not sure why you would want to expose the variable
> (and I've in fact removed that).
>
> Please give it a try and let me know if helps.
In short: 2.4.23-pre3 vanilla: problem present
2.4.23-pre3 with __initdata and EXPRT_SYMBOL removed: compiles
fine, the problem seems to have disappeared.
The patch you made is OK for 2.6, I inline one for 2.4 (the same except for
the top line)
--- linux-2.4.23-pre3/arch/i386/kernel/setup.c~ 2003-09-04 15:21:03.000000000 +0200
+++ linux-2.4.23-pre3/arch/i386/kernel/setup.c 2003-09-08 23:56:00.000000000 +0200
@@ -176,11 +176,10 @@
static u32 disabled_x86_caps[NCAPINTS] __initdata = { 0 };
#ifdef CONFIG_ACPI_INTERPRETER
- int acpi_disabled __initdata = 0;
+ int acpi_disabled = 0;
#else
- int acpi_disabled __initdata = 1;
+ int acpi_disabled = 1;
#endif
-EXPORT_SYMBOL(acpi_disabled);
#ifdef CONFIG_ACPI_BOOT
int acpi_ht __initdata = 1; /* enable HT */
Thanks for help, best regards,
--
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
prev parent reply other threads:[~2003-09-08 22:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-01 22:26 acpi_bus_register_driver() returns -ENODEV after resume Karol Kozimor
[not found] ` <20030901222619.GC27945-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-09-02 22:39 ` [ACPI] " Patrick Mochel
[not found] ` <Pine.LNX.4.33.0309021529410.1737-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-09-02 22:51 ` Patrick Mochel
2003-09-02 23:22 ` Karol Kozimor
[not found] ` <20030902232208.GA17674-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-09-02 23:23 ` Patrick Mochel
2003-09-03 0:58 ` Matthew Wilcox
2003-09-08 22:07 ` Karol Kozimor [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=20030908220722.GA24304@hell.org.pl \
--to=sziwan-detuoxkzssqrdjvtcaxf/a@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=mochel-3NddpPZAyC0@public.gmane.org \
--cc=swsusp-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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