Skip to contentSkip to conversation

dump driver for parisc-linux: patch vs CVS

parisc-linux Bruno Vidal 3 participants 6 messages Feb 4, 2002 – Feb 6, 2002

lore
Share & tools
lore
#0 lore raw
	Hi.

I've a dump driver available for 2.4.17-pa3 and I'll upgrade my source to latest CVS bits and redo the modifications. But do you think it is possible to put in the CVS these modifications ?
I have modified:
./Makefile
./arch/parisc/config.in ./arch/parisc/kernel/traps.c ./arch/parisc/mm/init.c
./drivers/Makefile
./drivers/char/sysrq.c
./init/main.c
./kernel/ksyms.c
./kernel/panic.c
./kernel/sched.c

And I've added:
./include/linux/dump.h
./drivers/dump/Makefile
./drivers/dump/dump_base.c
./drivers/dump/dump_rle.c
./drivers/dump/dump_parisc.c

So my question:
-Do you think it is a good idea to have a dump driver available in the standart kernel ?
-If yes, who is able to do the code review, and put this dump module in the CVS ?

Thanks.

Signature · 3 lines
	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

#1 lore raw
Quoted 4 lines

-Do you think it is a good idea to have a dump driver available in the standart kernel ?
-If yes, who is able to do the code review, and put this dump module in the CVS ?

The usual procedure as I understand it is to post a diff to this list (cvs diff -uNp from the root of your linux tree). People will try it out/post comments and once that is done someone can check this in for you.

randolph

Signature · 4 lines
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^
#2 lore raw
In reply to Bruno Vidal
Quoted 5 lines · Bruno Vidal
	Hi.

I've a dump driver available for 2.4.17-pa3 and I'll upgrade my source to latest CVS bits and redo the modifications. But do you think it is possible to put in the CVS these modifications ?

As Randolph noted, we need to see the diff and what was changed in the generic kernel. Is the kernel and user space code GPL?

Quoted 11 lines

I have modified:
./Makefile
./arch/parisc/config.in
./arch/parisc/kernel/traps.c
./arch/parisc/mm/init.c
./drivers/Makefile
./drivers/char/sysrq.c
./init/main.c
./kernel/ksyms.c
./kernel/panic.c
./kernel/sched.c

The last four might cause trouble....

Quoted 7 lines

And I've added:
./include/linux/dump.h
./drivers/dump/Makefile
./drivers/dump/dump_base.c
./drivers/dump/dump_rle.c
./drivers/dump/dump_parisc.c

and we need to ask 2.4 maintainer if this can be added upstream too...

Quoted 3 lines

So my question:
-Do you think it is a good idea to have a dump driver available in the standart kernel ?

I do. But it's really up to linus/et al to decide that. I can choose to commit this code to *our* tree (parisc-linux) only. (and that's really not just my decision - need some consensus)

Quoted 2 lines

-If yes, who is able to do the code review, and put this dump module in the CVS ?

Ideally, I'd like to see outstanding non-arch code changes merged upstream first.. Otherwise, I don't mind maintaining that code in our tree.

thanks!
grant

#3 lore raw
	Hi.

So my work for the next few days will to create a patch of all my modification for the latest CVS bits (so you will have only the modifications). But I'll send it to which people ?

Quoted 2 lines · Grant Grundler

As Randolph noted, we need to see the diff and what was changed in the generic kernel. Is the kernel and user space code GPL?

Everything is under GPL, even the code coming from SGI. I leave all informations about the SGI code and the header of all their files. But I've modified the code to handle specific needs for p4. I'm also currently added code to handle multiple dump device. And I've also the project to dump only kernel space and not user space.

Quoted 12 lines
Quoted 11 lines

I have modified:
./Makefile
./arch/parisc/config.in
./arch/parisc/kernel/traps.c
./arch/parisc/mm/init.c
./drivers/Makefile
./drivers/char/sysrq.c
./init/main.c
./kernel/ksyms.c
./kernel/panic.c
./kernel/sched.c

Quoted 1 line

The last four might cause trouble....

I know, I can try to put kernel/ksyms.c to arch/parisc/kernel/parisc_ksyms.c but it can break the code for ia64 and other architecture. but for the other it is not possible: panic (call to dump), sched.c (another call to dump), main.c (init of dump). I've also an IA64 box where I can do test, so I've also the project to do it working on it (lots of project :-).

Quoted 10 lines
Quoted 8 lines

And I've added:
./include/linux/dump.h
./drivers/dump/Makefile
./drivers/dump/dump_base.c
./drivers/dump/dump_rle.c
./drivers/dump/dump_parisc.c

and we need to ask 2.4 maintainer if this can be added upstream too...

I defenitly think that it is a really needed feature (I'm working perhaps since a too long time in support center :-).

Quoted 8 lines
Quoted 4 lines

So my question:
-Do you think it is a good idea to have a dump driver available in the standart kernel ?

I do. But it's really up to linus/et al to decide that. I can choose to commit this code to *our* tree (parisc-linux) only. (and that's really not just my decision - need some consensus)

perfectly understand, so, you already have my vote :-)

Quoted 7 lines
Quoted 3 lines

-If yes, who is able to do the code review, and put this dump module in the CVS ?

Ideally, I'd like to see outstanding non-arch code changes merged upstream first.. Otherwise, I don't mind maintaining that code in our tree.

My main probleme is to have a up to date code, because I have to follow each modification and redo the merge each time I want to update my CVS. I agree that I need to add comments in my code, but before going further I prefer to know if this code will stay a "patch" or not.

Quoted 7 lines

thanks!
grant

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

Signature · 3 lines
	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

#4 lore raw
Quoted 3 lines

So my work for the next few days will to create a patch of all my modification for the latest CVS bits (so you will have only the modifications). But I'll send it to which people ?

Either put it on the web/ftp some place and send the URL to this list, or if the patch is not too large, just compress and attach it in a mail to the list. My guess is that this is fairly large, so you might want to go with the first option. Or you can send it to, say, Grant or myself, and we can put it up on the ftp.p-l.org site and post the URL for you.

randolph

Signature · 4 lines
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^
#5 lore raw
In reply to Bruno Vidal
Quoted 4 lines · Bruno Vidal
	Hi.

So my work for the next few days will to create a patch of all my modification for the latest CVS bits (so you will have only the modifications). But I'll send it to which people ?

1) Send "cvs diff" output to this list
2) Use ".cvsrc" from build-tools/ repository
("diff -uNp" is key here)
3) If the diff is more than 100-200 lines, post a URL instead

I think I, tausq, ESIEE, willy should review/try it.

Quoted 6 lines
Quoted 2 lines · Grant Grundler

As Randolph noted, we need to see the diff and what was changed in the generic kernel. Is the kernel and user space code GPL?

Everything is under GPL, even the code coming from SGI. I leave all informations about the SGI code and the header of all their files.

Ok. You might also want to put a URL of your tarball of programs...perhaps some debian types on debian-hppa would be interested in creating a debian package of those.

Quoted 4 lines

But I've modified the code to handle specific needs for p4. I'm
also currently added code to handle multiple dump device. And I've also the project to dump only kernel space and not user space.

Cool! if you could keep those changes seperate for now...that might make life easier in case we want to send those changes back "upstream" (to SGI I assume).

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

./init/main.c
./kernel/ksyms.c
./kernel/panic.c
./kernel/sched.c

Quoted 8 lines
Quoted 1 line

The last four might cause trouble....

I know, I can try to put kernel/ksyms.c to arch/parisc/kernel/parisc_ksyms.c but it can break the code for ia64 and other architecture. but for the other it is not possible: panic (call to dump), sched.c (another call to dump), main.c (init of dump). I've also an IA64 box where I can do test, so I've als
o
the project to do it working on it (lots of project :-).

heh...if you know it will break another arch, leave it alone.

Quoted 2 lines

I defenitly think that it is a really needed feature (I'm working perhaps since a too long time in support center :-).

Even folks outside the support center think it's a good idea.

...

Quoted 4 lines

My main probleme is to have a up to date code, because I have to follow each modification and redo the merge each time I want to update my CVS. I agree that I need to add comments in my code, but before going further I prefer to know if this code will stay a "patch" or not.

I can't promise anything. You know what I want. Comments/guidance from Alan Cox and/or Matthew Wilcox would be good here.

grant