public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: RocketPort Linux driver errors on module reload
@ 2007-10-17 17:06 Nick Thompson
  2007-10-17 19:35 ` Jiri Slaby
  0 siblings, 1 reply; 15+ messages in thread
From: Nick Thompson @ 2007-10-17 17:06 UTC (permalink / raw)
  To: linux-kernel

>On 10/15/2007 02:57 PM, Ferenc Wagner wrote:
>> You are the man, Jiri!  That indeed fixes the problem.
>> Thank you very much.  What a turnaround...
>
>You're welcome, that's why we're here.
>
>> Shouldn't Documentation/rocket.txt also be changed?  I'm not sure
>> whether that support email is still valid.
>
>And so am I. I wouldn't change it, maybe they will contact you some later ;).
>

Darn. I don't read the mailing list for one day and there is a Comtrol related post. ;)
Anyhow, as far as the support address, Comtrol and Comtrol UK are now separate companies. I work for Comtrol. The address you will want to send Linux related Comtrol issues to is support@comtrol.com. You can also email me directly if you wish, as I handle Linux issues here in tech support at Comtrol. As far as changing the address in the rocket.txt file, it would be a good idea to change it to support@comtrol.com.

>Anyway the driver faces another problem with pci refcounting (it doesn't
>increment the counter) and the device might be removed from it any time the pci
>bus code decides. Are you willing to test to-pci-probing patches (i.e. patches
>which converts the driver to the model introduced in linux 2.4)? If not, I'll
>only increment the counter on modprobe and decrement it on rmmod, since it would
>be a safe (in the meaning of not changing that much code) way of fixing the problem.
>
>thanks,
>-- 
>Jiri Slaby (jirislaby@gmail.com)
>Faculty of Informatics, Masaryk University

I've been wanting to get the driver that is included in the kernel up to date, and there is an active project here at comtrol to get the current code (driver version 3.08 beta) up to Linux kernel programming standards. The driver version that is included in the kernel (and has been patched a bit I'm sure since it's been in there a while) is version 2.09. The latest version (3.08 beta) can be obtained from: 

ftp://ftp.comtrol.com/beta/rport/drivers/u_pci/linux/rocketport-linux-3.08.tar.gz

If anyone has any helpful pointers (no pun intended) or comments on the code, I'd love to listen. 

Regards,

Nick

Nick Thompson
Technical Support Specialist nick.thompson@comtrol.com
Comtrol Corporation ftp://ftp.comtrol.com
6655 Wedgwood Rd. Ste 120 http://www.comtrol.com
Maple Grove, MN. 55311 Sales: (800)GO-ROCKET

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RocketPort Linux driver errors on module reload
@ 2007-10-15  9:55 Ferenc Wagner
  2007-10-15 11:25 ` Jiri Slaby
  0 siblings, 1 reply; 15+ messages in thread
From: Ferenc Wagner @ 2007-10-15  9:55 UTC (permalink / raw)
  To: linux-kernel

Hi,

A few days ago I sent the enclosed bug report to the address
advertised in Documentation/rocket.txt.  Till now I got no reply.
While they think about it, I decided to air the problem here, too.

In a nutshell, the rocket module doesn't deregister its devices during
removal, they stay in /sys/class/tty causing grief on reinsert and
crippling udev.

Assuming it's an easy fix, can I plea for a patch against 2.6.23?  Or
is there a workaround like manually deregistering the devices?

Thanks,
Feri.

-------------------- Start of forwarded message --------------------
From: Ferenc Wagner <wferi@niif.hu>
To: support@comtrol.co.uk
Subject: RocketPort Linux driver errors on module reload
Date: Fri, 12 Oct 2007 00:22:17 +0200
Message-ID: <87fy0hwaue.fsf@tac.ki.iif.hu>

Hi,

I hope I send this message to the right address...

I experience the following with the 2.09 version of the driver, as
included in vanilla Linux 2.6.23.  If I insert the module, I got some
pretty normal messages, like:

RocketPort device driver module, version 2.09, 12-June-2003
ACPI: PCI Interrupt 0000:01:08.0[A] -> GSI 20 (level, low) -> IRQ 21
Comtrol PCI controller #0 ID 0x802 found in bus:slot:fn 0000:01:08.0 at address d800, 1 AIOP(s) (RocketPort UPCI 8 port w/external I/F)
Installing RocketPort UPCI 8 port w/external I/F, creating /dev/ttyR0 - 7
ACPI: PCI Interrupt 0000:02:06.0[A] -> GSI 24 (level, low) -> IRQ 22
Comtrol PCI controller #1 ID 0x802 found in bus:slot:fn 0000:02:06.0 at address c800, 1 AIOP(s) (RocketPort UPCI 8 port w/external I/F)
Installing RocketPort UPCI 8 port w/external I/F, creating /dev/ttyR8 - 15

However, if I remove the module from the kernel, and then insert it
again, lots of error messages result:

RocketPort device driver module, version 2.09, 12-June-2003
Comtrol PCI controller #0 ID 0x802 found in bus:slot:fn 0000:01:08.0 at address d800, 1 AIOP(s) (RocketPort UPCI 8 port w/external I/F)
Installing RocketPort UPCI 8 port w/external I/F, creating /dev/ttyR0 - 7
kobject_add failed for ttyR0 with -EEXIST, don't try to register things with the same name in the same directory.
 [<c01ccdb4>] kobject_shadow_add+0x156/0x188
 [<c01cd095>] kobject_set_name+0x2b/0x92
 [<c022d022>] device_add+0x87/0x50f
 [<c01cce24>] kobject_init+0x2f/0x3f
 [<c022da2c>] device_create+0x77/0x97
 [<c02154cb>] tty_register_device+0xb5/0xbd
 [<f8a130d3>] init_r_port+0x5f1/0x623 [rocket]
 [<c02409a9>] pci_read+0x29/0x2e
 [<f8b74ff7>] rp_init+0xff7/0x111a [rocket]
 [<c013fd38>] __link_module+0x0/0x1f
 [<c01421de>] sys_init_module+0x1470/0x15a9
 [<c01296a7>] __request_region+0x0/0x80
 [<c0103e12>] sysenter_past_esp+0x6b/0xa1
 =======================
And so on for each device.

However, the card seems to operate all right.  Still, the messages
suggest something isn't quite right and could use some fixing.  Hope
you can find the problem.
-- 
Regards,
Ferenc Wagner

-------------------- End of forwarded message --------------------

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-12-08 10:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 17:06 RocketPort Linux driver errors on module reload Nick Thompson
2007-10-17 19:35 ` Jiri Slaby
2007-10-17 19:48   ` Nick Thompson
2007-10-18 22:08     ` Jiri Slaby
2007-10-18 23:02       ` Nick Thompson
2007-12-08 10:00         ` Jiri Slaby
  -- strict thread matches above, loose matches on Subject: below --
2007-10-15  9:55 Ferenc Wagner
2007-10-15 11:25 ` Jiri Slaby
2007-10-15 12:57   ` Ferenc Wagner
2007-10-15 19:09     ` Jiri Slaby
2007-10-16  7:47       ` Wagner Ferenc
2007-10-16 21:19         ` Jiri Slaby
2007-10-18 21:53           ` Ferenc Wagner
2007-10-18 22:08             ` Jiri Slaby
2007-10-18 22:48               ` Ferenc Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox