From: Michael Tokarev <mjt@tls.msk.ru>
To: Adam Belay <ambx1@neo.rr.com>
Cc: matthieu castet <castet.matthieu@free.fr>,
Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: PNP parallel&serial ports: module reload fails (2.6.11)?
Date: Fri, 10 Jun 2005 01:07:49 +0400 [thread overview]
Message-ID: <42A8AFA5.3090703@tls.msk.ru> (raw)
In-Reply-To: <1118274762.29855.2.camel@localhost.localdomain>
Adam Belay wrote:
> On Thu, Jun 09, 2005 at 12:29:25AM +0400, Michael Tokarev wrote:
>
>>Adam Belay wrote:
>>[]
>>
>>>>>>[ it's in http://www.corpit.ru/mjt/hpml310.dsdt - apache ships it
>>>>>>as Content-Type: text/plain, for some reason. I grabbed iasl
>>>>>>and converted that stuff into .dsls, available at:
>>>>>>http://www.corpit.ru/mjt/hpml310.dsl and
>>>>>>http://www.corpit.ru/mjt/hpml150.dsl ]
[]
>>>1.) a complete dmesg after initial boot with the patch
>>>2.) kernel message output after "rmmod parport_pc" and "modprobe
>>>parport_pc" with the patch
Hello again. This whole conversation seems to be a bit...
slow, probably due to $TZ differences and the fact that
I can do experiments only at evenings, because the test
machine (and non-test one too) are busy during work hours.
Adam, I built 2.6.12-rc6 with your last patch, and tried it on
both ML150 and ML310 machines. And in both cases, the whole
thing worked.
Dmesg from HPML150:
[modprobe parport_pc]
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP]
[rmmod parport_pc]
pnp: Device 00:07 disabled.
[modprobe parport_pc]
pnp: building resource template
pnp: encoding resources
pnp: attempting to fix irq flags
bug squashed - dma
pnp: setting resources
pnp: _SRS worked correctly
pnp: Device 00:07 activated.
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP]
The same applies to 8250_pnp module:
[modprobe 8250_pnp]
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[rmmod 8250_pnp]
pnp: Device 00:06 disabled.
[modprobe 8250_pnp]
pnp: building resource template
pnp: encoding resources
pnp: attempting to fix irq flags
bug squashed - dma
pnp: setting resources
pnp: _SRS worked correctly
pnp: Device 00:06 activated.
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
And HP ML 310 box:
[modprobe parport_pc]
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[rmmod parport_pc]
pnp: Device 00:06 disabled.
[modprobe parport_pc]
pnp: building resource template
pnp: encoding resources
pnp: attempting to fix irq flags
pnp: setting resources
pnp: _SRS worked correctly
pnp: Device 00:06 activated.
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[modprobe 8250_pnp]
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[rmmod 8250_pnp]
pnp: Device 00:07 disabled.
pnp: Device 00:08 disabled.
[modprobe 8250_pnp]
pnp: building resource template
pnp: encoding resources
pnp: attempting to fix irq flags
pnp: setting resources
pnp: _SRS worked correctly
pnp: Device 00:07 activated.
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
pnp: building resource template
pnp: encoding resources
pnp: attempting to fix irq flags
pnp: setting resources
pnp: _SRS worked correctly
pnp: Device 00:08 activated.
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
There are two questions still.
First of all, why disable the device on module unload?
If it was enabled initially, before any module has been
loaded, why it needs to be disabled, why not leave it
enabled and all, just like it has been before?
And this 8250 vs 8250_pnp (and 8250_pci etc, but
especially 8250_pnp as it is the most interesting one).
When loading 8250 alone (note that 8250_pnp depends
on 8250, so 8250 gets loaded first), it detects standard
serial port(s) just fine. 8250_pnp "redetects" them again
(see first `modprobe 8250_pnp' above: each ttySN line
gets repeated twice). But when unloading 8250_pnp, both
standard ttySNs are deactivated, even when 8250 is still
here. More, when unloading both 8250_pnp and 8250, and
loading *only* 8250 after that, no standard ports gets
detected until 8250_pnp will be loaded (as the devices
are disabled, and 8250_pnp re-enables them). Ie, this
whole stuff does not look right. Probably a nitpicking,
but a bit.. strange. Probably if 8250_pnp will stop
deactivating the devices (as per above), everything will
look ok here too. Or, maybe it's a good idea to just
combine 8250 and 8250_pnp modules (and maybe 8250_serial
too), esp, since the latter is very small anyway ?
Thank you!
/mjt
next prev parent reply other threads:[~2005-06-09 21:08 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-02 22:24 Re:PNP parallel&serial ports: module reload fails (2.6.11)? castet.matthieu
2005-06-03 0:18 ` PNP " Michael Tokarev
2005-06-03 5:58 ` matthieu castet
2005-06-05 10:14 ` matthieu castet
2005-06-05 10:27 ` matthieu castet
2005-06-06 15:01 ` Michael Tokarev
2005-06-06 15:43 ` castet.matthieu
2005-06-06 21:18 ` Adam Belay
2005-06-06 22:43 ` Michael Tokarev
2005-06-08 9:52 ` Adam Belay
2005-06-08 20:29 ` Michael Tokarev
2005-06-08 23:52 ` Adam Belay
2005-06-09 21:07 ` Michael Tokarev [this message]
2005-06-09 21:16 ` Russell King
2005-06-10 16:01 ` Bjorn Helgaas
2005-06-10 16:20 ` Dmitry Torokhov
2005-06-10 16:26 ` Bjorn Helgaas
2005-06-10 16:30 ` Russell King
2005-06-14 19:40 ` Adam Belay
-- strict thread matches above, loose matches on Subject: below --
2005-05-31 23:01 Michael Tokarev
2005-06-01 5:04 ` Andrew Morton
2005-06-01 15:20 ` Michael Tokarev
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=42A8AFA5.3090703@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=akpm@osdl.org \
--cc=ambx1@neo.rr.com \
--cc=castet.matthieu@free.fr \
--cc=linux-kernel@vger.kernel.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