From: Thomas Hood <jdthood@mail.com>
To: linux-kernel@vger.kernel.org
Cc: Stelian Pop <stelian.pop@fr.alcove.com>
Subject: Re: PnP BIOS + 2.4.9-ac16 = no boot
Date: Fri, 28 Sep 2001 09:47:43 -0400 [thread overview]
Message-ID: <3BB47F7F.DE2FD301@mail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
Stelian:
In -ac15 the PnP BIOS driver was changed so that the proc interface
got the "current" and "boot" configurations the right way 'round.
As a side effect the change made the initialization routine
build its device list from the "current" configuration as opposed
to the "boot" configuration (... which seemed like the right thing
to do at the time, heh heh ... hmmmmm).
You wrote:
> With the patch a third line is printed before the oops:
> PnP: PNP BIOS 13 devices detected (or something like that).
The patch I sent you reverted the build_devlist function to looking
at the "boot" configuration. Your output shows that the devlist
got built this time, which is good. However you still got an oops,
which is bad. My guess is that the oops now occurs in pnp_proc_init().
I attach a revised patch which cuts out proc support. Hopefully
this will allow your kernel to boot. This is just a hack; I'll
submit a proper fix to Alan later.
Alan (if you're listening): The patches I have already sent you are
still okay to go since they don't affect this issue. What I need
to do is submit a patch that, for Sony laptops, (1) causes pnpbios
to build its devlist from the "boot" configuration, and (2) omits
the "current" configuration from /proc/bus/pnp. I'll work on this
tonight.
Stelian: Your report made me go back and look at something Alan
told me earlier about Vaio laptops. At the time I didn't fully
understand what he meant when he said:
> If you query the current device status on a Vaio and some other boxes
> using the 32bit API your computer dies horribly shortly afterwards.
I didn't realize that he meant the "current" configuration as
opposed to the "boot" configuration. Stupid of me.
--
Thomas
P.S. The attached patch is only a temporary hack!
[-- Attachment #2: thood-pnpbiosvaio-patch-20010928-2 --]
[-- Type: text/plain, Size: 781 bytes --]
--- pnp_bios.c_ORIG Thu Sep 27 15:21:46 2001
+++ pnp_bios.c_vaiofix Fri Sep 28 09:38:16 2001
@@ -614,11 +614,11 @@
pnp_bios_inst_struc = check;
break;
}
pnpbios_build_devlist();
#ifdef CONFIG_PROC_FS
- pnp_proc_init();
+ // pnp_proc_init();
#endif
#ifdef CONFIG_HOTPLUG
init_completion(&unload_sem);
if(kernel_thread(pnp_dock_thread, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGNAL)>0)
unloading = 0;
@@ -845,11 +845,11 @@
for(i=0;i<0xff;i++) {
dev = kmalloc(sizeof (struct pci_dev), GFP_KERNEL);
if (!dev)
break;
- if (pnp_bios_get_dev_node((u8 *)&num, (char )0 , node))
+ if (pnp_bios_get_dev_node((u8 *)&num, (char )1 , node))
continue;
devs++;
pnpbios_rawdata_2_pci_dev(node,dev);
dev->devfn=num;
next reply other threads:[~2001-09-28 13:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-28 13:47 Thomas Hood [this message]
2001-09-28 14:02 ` PnP BIOS + 2.4.9-ac16 = no boot Stelian Pop
2001-09-28 14:41 ` Thomas Hood
2001-09-28 14:54 ` Stelian Pop
2001-09-28 14:58 ` Alan Cox
2001-09-28 14:58 ` Thomas Hood
2001-10-02 22:11 ` Ion Badulescu
2001-10-03 9:28 ` Stelian Pop
-- strict thread matches above, loose matches on Subject: below --
2001-10-02 23:29 Thomas Hood
2001-10-03 14:06 ` Ion Badulescu
2001-10-02 23:17 Thomas Hood
2001-09-28 14:33 Thomas Hood
2001-09-28 14:51 ` Stelian Pop
2001-09-28 15:20 ` Thomas Hood
2001-09-28 15:28 ` Alan Cox
[not found] <3BB46DCD.91576F70@mail.com>
2001-09-28 13:12 ` Stelian Pop
2001-09-28 12:29 Thomas Hood
2001-09-28 10:46 Stelian Pop
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=3BB47F7F.DE2FD301@mail.com \
--to=jdthood@mail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stelian.pop@fr.alcove.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