enumerating devices from user space
If you can find this, I will be VERY interested in having a look at it... Thinking of it, this HP guy may well be me ;o)
You can contact me privately, it may happen that I know your instructor.
cheers,
lv.
Quoted 8 lines
Being as I just got done with a class from HP Education on Linux, this very issue was brought up by all of us HP-UX guys. We love our IOSCAN. The instructor told us that someone within HP actually wrote an "ioscan" for Red Hat. I'm thinking that getting a copy of that source code would be a good place to start. I'm going to do a search for the guy tomorrow or get his name from our instructor to see if I can get a hold of his code.
derek
Signature · 1 line
The software said it requires Windows 2000 or better, so I installed Linux.
Hi guys.
While developping the dump modules, I had to find a way to retrieve the hardware path of disk/hba. So I had to developpe a small hack in the kernel/firmware.c in order to retrive the right hba. But it is parisc dependant. Do you want I try to add an ioctl in my dump modules in order to print in user space this informations ? Example:
size:1500160 nr_sects:3000320 start_sect:374784
hwpath: 0/0/1/1.15.0.0.
dump device opened: 0x813 with index: 0 at hpa: 0x900
So my functions are able to print the hw path of each io modules. Is it what you are looking for ?
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]
begin:vcard
n:Bruno;VIDAL
tel;fax:01-69-82-60-14
tel;work:01-69-29-42-71
x-mozilla-html:TRUE
url:www.france.hp.com
org:Solution Center
version:2.1
email;internet:[email protected]
title:Expert Logiciel Environnement Haute Disponibilité
adr;quoted-printable:;;HP France=0D=0A;Z.A de Courtaboeuf;1 Av. du Canada;91947 Les Ulis cedex;France x-mozilla-cpt:;26208
fn:VIDAL Bruno
end:vcard
Hi Bruno,
That sounds like what I was looking for (HW path + version information)! What do you think is the best approach?
cheers,
lv.
Quoted 21 lines · On Thu, 13 Mar 2003 12:30:44 +0100 [email protected] wrote:
Hi guys.
While developping the dump modules, I had to find a way to retrieve the hardware path of disk/hba. So I had to developpe a small hack in thekernel/firmware.cin order to retrive the right hba. But it is parisc dependant. Do you want I try to add an ioctl in my dump modules in order to print in user space this informations ? Example:size:1500160 nr_sects:3000320 start_sect:374784
hwpath: 0/0/1/1.15.0.0.
dump device opened:0x813with index: 0 at hpa:0x900So my functions are able to print the hw path of each io modules. Is it what you are looking for ?
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]
Hi
I'll try to add an ioctls in my dump driver to print this list. It will give a good starting point, isn't it ?
The other choice is to create a new modules that use my functions in firmware.c. But keep in mind that it will usefull only for pa-risc. I don't know if it is the best practice.
cheers.
Quoted 33 lines · Lyonel Vincent
Hi Bruno,
That sounds like what I was looking for (HW path + version information)! What do you think is the best approach?
cheers,
lv.Quoted 12 lines · On Thu, 13 Mar 2003 12:30:44 +0100 [email protected] wrote:
Hi guys.
While developping the dump modules, I had to find a way to retrieve the hardware path of disk/hba. So I had to developpe a small hack in thekernel/firmware.cin order to retrive the right hba. But it is parisc dependant. Do you want I try to add an ioctl in my dump modules in order to print in user space this informations ? Example:size:1500160 nr_sects:3000320 start_sect:374784
hwpath: 0/0/1/1.15.0.0.
dump device opened:0x813with index: 0 at hpa:0x900Quoted 9 lines
So my functions are able to print the hw path of each io modules. Is it what you are looking for ?
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]
Quoted 4 lines
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]
begin:vcard
n:Bruno;VIDAL
tel;fax:01-69-82-60-14
tel;work:01-69-29-42-71
x-mozilla-html:TRUE
url:www.france.hp.com
org:Solution Center
version:2.1
email;internet:[email protected]
title:Expert Logiciel Environnement Haute Disponibilité
adr;quoted-printable:;;HP France=0D=0A;Z.A de Courtaboeuf;1 Av. du Canada;91947 Les Ulis cedex;France x-mozilla-cpt:;26208
fn:VIDAL Bruno
end:vcard
Hi Bruno,
The ioctl sounds great to me.
On which device would you "attach" it (as some of the devices I'd like to report don't even have an entry in /dev), create a new one? Correct me if I'm wrong (I don't know much about IOCTLs)
If you want me to help testing/developing, I have a 9000/C180 w/ Debian (unstable) ready to use.
cheers,
lv.
PS: being PA-RISC dependent is not a problem, I already have ifdefs for x86, PowerPC and Alpha
Quoted 55 lines · On Fri, 14 Mar 2003 09:45:59 +0100 [email protected] wrote:
Hi
I'll try to add an ioctls in my dump driver to print this list. It will give a good starting point, isn't it ?
The other choice is to create a new modules that use my functions infirmware.c. But keep in mind that it will usefull only for pa-risc. I don't know if it is the best practice.cheers.
Quoted 33 lines · Lyonel Vincent
Hi Bruno,
That sounds like what I was looking for (HW path + version information)! What do you think is the best approach?
cheers,
lv.Quoted 12 lines · On Thu, 13 Mar 2003 12:30:44 +0100 [email protected] wrote:
Hi guys.
While developping the dump modules, I had to find a way to retrieve the hardware path of disk/hba. So I had to developpe a small hack in thekernel/firmware.cin order to retrive the right hba. But it is parisc dependant. Do you want I try to add an ioctl in my dump modules in order to print in user space this informations ? Example:size:1500160 nr_sects:3000320 start_sect:374784
hwpath: 0/0/1/1.15.0.0.
dump device opened:0x813with index: 0 at hpa:0x900Quoted 9 lines
So my functions are able to print the hw path of each io modules. Is it what you are looking for ?
--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]Quoted 4 lines
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux--
Vidal Bruno, (770-4271)
SSD-HA Team, HP-UX & LINUX Support
[email protected]
Quoted 1 line · Lyonel Vincent
The ioctl sounds great to me.
It sounds like an awful idea to me. I'll never take that kind of patch into my tree.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
okokok I won't argue then.
I would have liked to have ioscan-like support, but anyway...
Quoted 6 lines · On Fri, 14 Mar 2003 13:19:21 +0000 Matthew Wilcox <[email protected]> wrote:
Quoted 1 line · Lyonel Vincent
The ioctl sounds great to me.
It sounds like an awful idea to me. I'll never take that kind of patch into my tree.
Quoted 2 lines · Lyonel Vincent
okokok I won't argue then.
I would have liked to have ioscan-like support, but anyway...
Well, you can have it in 2.5; start looking at sysfs.
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Quoted 5 lines · Matthew Wilcox
Quoted 2 lines · Lyonel Vincent
okokok I won't argue then.
I would have liked to have ioscan-like support, but anyway...Well, you can have it in 2.5; start looking at sysfs.
willy and I talked offline and it seems like the right answer is to backport _the user interface_ - ie something that *looks* like sysfs but could be based on /proc.
I'd basically like to see all resources in struct parisc_device exported using the same name as the field - matching sysfs field names use for PCI where appropriate. Willy suggested id be broken out into it's struct parisc_device_id parts and provided directly has hex strings (eg hw_type entry could contain "0x5"). Details of how sysfs currently looks are still changing - don't get hung up in the current details.
grant
Hi Grant,
sounds very good to me (and way cleaner)...
I'll be happy to try to help.
cheers,
lv.
Quoted 20 lines · Grant Grundler
Quoted 5 lines · Matthew Wilcox
Quoted 2 lines · Lyonel Vincent
okokok I won't argue then.
I would have liked to have ioscan-like support, but anyway...Well, you can have it in 2.5; start looking at sysfs.
willy and I talked offline and it seems like the right answer is to backport
_theuserinterface_- ie something that *looks* like sysfs but could be based on /proc.I'd basically like to see all resources in struct
parisc_deviceexported using the same name as the field - matching sysfs field names use for PCI where appropriate. Willy suggested id be broken out into it's structparisc_device_idparts and provided directly has hex strings (eghw_typeentry could contain "0x5"). Details of how sysfs currently looks are still changing - don't get hung up in the current details.grant
Signature · 1 line
The software said it requires Windows 2000 or better, so I installed Linux.