Skip to contentSkip to conversation

Updating our sn code in 2.6

PATCH In review Pat Gefre 4 participants 24 messages Dec 19, 2003 – Mar 29, 2004

lore
Share & tools
lore

Pat Gefre

author
#0 lore raw

PATCH 1/1 Updating our sn code in 2.6

I have created a patchset at ftp://oss.sgi.com/projects/sn2/sn2-update/

It contains all the updates for our sn I/O code. The large patch that I had originally sent has been broken down into 70+ smaller patches.

-- Pat

Patrick Gefre

Silicon Graphics, Inc.                     (E-Mail)  [email protected]
2750 Blue Water Rd                         (Voice)   (651) 683-3127
Eagan, MN 55121-1400                       (FAX)     (651) 683-3054
#1 lore raw
Quoted 4 lines · Pat Gefre

I have created a patchset at ftp://oss.sgi.com/projects/sn2/sn2-update/

It contains all the updates for our sn I/O code. The large patch that I had originally sent has been broken down into 70+ smaller patches.

Thanks, this looks much better already. Comments for the patches still not OK below.

000-hwgfs-update.patch.inprogress

Mostly ok, except for reintroducing hwgraph_path_lookup().

004-fakeprom-update.patch

OK, but why is fakeprom in the kernel at all?

006-kill-big-endian-stuff.patch

This makes merging with the IP27 I/O code much much harder and doesn't buy you much, so I'd prefer if it doesn't go in. (Note that this isn't a really strong no), if you just want to get rid of the EXTRA_FLAGS using the endianess tests from <linux/endian.h> would be a much better idea. (I can cook up a patch for that for you)

014-cleanup-pci.c.patch

Mostly OK. Reintroducing snia64_pci_find_bios is bogus, but you kill it in a later patch anyway..

016-remove-non-pic.patch

As above I'm not too happy with this, as I'm working on a pcibr driver that's usable for both IP27 and SN2. Again this isn't exactly a strong no, it just makes life much harder. Also note that if you define IS_PIC to 1 always and the Bridge / XBridge test to 0 always gcc will optimize away the code for you.

017-remove-non-pic1.patch

Dito.

030-pciio-cleanup.patch

pcibr_businfo_get() with the assorted new enums looks bogus, else OK.

036-shub-redirect.patch

Wrong opening placement of first opening brace in sn_shub_redirect_intr :)

037-shub-redirect1.patch

What's the point point of these pcireq stuff? And what's the relation to the shub redirection?

048-pci_provider.patch

At least better than the previous variant.. :) set_sn_pci64() is bogus, I'm certain the qla2x00 driver uses the right dma interface and if qlogicfc doesn't either fix it or (better) don't use that broken old driver..

051-cbrick.type.patch

Code is ok, but wrong brace placement again..

065-sn_pci_find_bios-del.patch

Shouldn't be needed after getting 014-cleanup-pci.c.patch right.

071-xswitch.devfunc.patch

The whole indirection was develeted on a purpose. Do you really have different xswitches now? (Don't seem to be in this patchkit). If yes we'd better come up with a btter abstraction.

075-rename-reorg.patch

BRIDGE_TYPE_AND_PTR_GET is totally bogus..
Moving pcibr_attach2 to pic_attach2 is bogus and really wrong. Even if _you_ don't support Bridge/Xbridge anyore it's still common code for all of those. While you're at it pic.c really should move to the pcibr dir.
bridge.h -> pcibr_asic move seems really pointless to me, but if you really want it..
BUT: Please remove the random renamaing of the include/asm/sn/pci constants froms the patch, else it looks mostly okay (although that's hard with such a large patch doing just code reorganization), dito for the struct typedef names. This really breaks anyone doing work on Bridge/Xbridge without any purpose.

author
#2 lore raw

Christoph,

Some general comments/questions and then the specifics follow.

First off, some of the changed/reorg'd code is foundation code for a new ASIC that we are working on - so it now looks a little silly and maybe a little like overkill, but we would like to start moving this code into the community base.

I'm not sure where you are going with the IP27 idea. IP27 is mips so the code doesn't belong in the ia64 directories - we also don't support Bridge/Xbridge in our ia64 code which is why we'd like to get rid of it and if you wanted to use the code as framework for other work I would think you could archive a version of the tree now ? So I'm a bit confused - there must be something I'm missing.

Also I did these patches sequentially (hence the numbering) - so in some cases I may have taken out code that wasn't being used at the time, but then added in back in when it was used.

Thanks for reviewing this for me - it sounds like we are making some progress.

-- Pat

+ 004-fakeprom-update.patch
+
+ OK, but why is fakeprom in the kernel at all?

I took the fakeprom patch out.

+ 036-shub-redirect.patch
+
+ Wrong opening placement of first opening brace in
+ sn_shub_redirect_intr :)

OK - fixed.

+
+ 037-shub-redirect1.patch
+
+ What's the point point of these pcireq stuff? And what's the
+ relation to the shub redirection?

The idea was to move this code into functions - making it more portable (future changes just needed to be made to the function). This (037-shub-redirect1.patch) was actually a patch that was needed for the previous patch (I had referenced these functions in the previous patch but didn't have the functions themselves in the patch). The redirect code is for interrupt redirection - handling the interrupt on a different cpu that it was being handled on.

+
+ 048-pci_provider.patch
+
+ At least better than the previous variant.. :)
+ set_sn_pci64() is bogus, I'm certain the qla2x00 driver
+ uses the right dma interface and if qlogicfc doesn't either
+ fix it or (better) don't use that broken old driver..

OK - I see your point - I pulled out the set_sn_pci64() code.

+
+ 051-cbrick.type.patch
+
+ Code is ok, but wrong brace placement again..

OK - fixed.

+ 071-xswitch.devfunc.patch
+
+ The whole indirection was develeted on a purpose. Do you really
+ have different xswitches now? (Don't seem to be in this patchkit).
+ If yes we'd better come up with a btter abstraction.
+

This is still up in the air here - as in it hasn't been decided yet - so we can pass on this patch if you want.

+ 075-rename-reorg.patch
+
+ BRIDGE_TYPE_AND_PTR_GET is totally bogus..
+ Moving pcibr_attach2 to pic_attach2 is bogus and really wrong.
+ Even if _you_ don't support Bridge/Xbridge anyore it's still
+ common code for all of those. While you're at it pic.c
+ really should move to the pcibr dir.
+ bridge.h -> pcibr_asic move seems really pointless to me, but
+ if you really want it..
+ BUT: Please remove the random renamaing of the include/asm/sn/pci
+ constants froms the patch, else it looks mostly okay (although
+ that's hard with such a large patch doing just code reorganization),
+ dito for the struct typedef names. This really breaks anyone
+ doing work on Bridge/Xbridge without any purpose.

This is foundation work for the next ASIC. So hopefully at some point in the future it will all make sense.

Signature · 4 lines
Patrick Gefre
Silicon Graphics, Inc.                     (E-Mail)  [email protected]
2750 Blue Water Rd                         (Voice)   (651) 683-3127
Eagan, MN 55121-1400                       (FAX)     (651) 683-3054
#3 lore raw

David, can you take these patches into your tree too? We'll of course continue to clean things up, but with the application of these patches, the 2.6 kernel becomes something really usable for people with Altix machines.

Thanks,
Jesse

Quoted 22 lines · Pat Gefre

Christoph,

Some general comments/questions and then the specifics follow.

First off, some of the changed/reorg'd code is foundation code for a new ASIC that we are working on - so it now looks a little silly and maybe a little like overkill, but we would like to start moving this code into the community base.

I'm not sure where you are going with the IP27 idea. IP27 is mips so the code doesn't belong in the ia64 directories - we also don't support Bridge/Xbridge in our ia64 code which is why we'd like to get rid of it and if you wanted to use the code as framework for other work I would think you could archive a version of the tree now ? So I'm a bit confused - there must be something I'm missing.

Also I did these patches sequentially (hence the numbering) - so in some cases I may have taken out code that wasn't being used at the time, but then added in back in when it was used.

Thanks for reviewing this for me - it sounds like we are making some progress.

#4 lore raw

Andrew, I'm ok with these patches (and it looks like Christoph doesn't find them too repulsive either) and David said he'd rather have you take them directly if they look ok. Will you merge them into your tree please? Like I said, this gets the tree into a very good state for people using Altix machines, and contains a number of important bug fixes.

Thanks,
Jesse

Quoted 36 lines · Jesse Barnes

David, can you take these patches into your tree too? We'll of course continue to clean things up, but with the application of these patches, the 2.6 kernel becomes something really usable for people with Altix machines.

Thanks,
Jesse

Quoted 16 lines · Pat Gefre

Christoph,

Some general comments/questions and then the specifics follow.

First off, some of the changed/reorg'd code is foundation code for a new ASIC that we are working on - so it now looks a little silly and maybe a little like overkill, but we would like to start moving this code into the community base.

I'm not sure where you are going with the IP27 idea. IP27 is mips so the code doesn't belong in the ia64 directories - we also don't support Bridge/Xbridge in our ia64 code which is why we'd like to get rid of it and if you wanted to use the code as framework for other work I would think you could archive a version of the tree now ? So I'm a bit confused - there must be something I'm missing.

Quoted 6 lines

Also I did these patches sequentially (hence the numbering) - so in some cases I may have taken out code that wasn't being used at the time, but then added in back in when it was used.

Thanks for reviewing this for me - it sounds like we are making some progress.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#5 lore raw
Quoted 6 lines · Jesse Barnes

Andrew, I'm ok with these patches (and it looks like Christoph doesn't find them too repulsive either) and David said he'd rather have you take them directly if they look ok. Will you merge them into your tree please? Like I said, this gets the tree into a very good state for people using Altix machines, and contains a number of important bug fixes.

Well, the pci-reorg patch is just wrong with tht remaining stuff and breaks the portable I/O code for IP27 and SN2 I'm working on. Just kill that pointless renaming and it's okay - the functional changes are fine anyway. Also please let Pat fix the bunch of other issues before merging, it's not that much anyway..

author
#6 lore raw

On Sat, 20 Dec 2003, Christoph Hellwig wrote:

+ On Fri, Dec 19, 2003 at 07:05:05PM -0800, Jesse Barnes wrote:
+ > Andrew, I'm ok with these patches (and it looks like Christoph doesn't
+ > find them too repulsive either) and David said he'd rather have you take
+ > them directly if they look ok. Will you merge them into your tree
+ > please? Like I said, this gets the tree into a very good state for
+ > people using Altix machines, and contains a number of important bug
+ > fixes.
+
+ Well, the pci-reorg patch is just wrong with tht remaining stuff
+ and breaks the portable I/O code for IP27 and SN2 I'm working on.

I have not heard any compelling reasons for keeping non-ia64, non-Altix code in the ia64, Altix code base. The code re-org is aimed towards a new ASIC we are working on - we feel it is needed.

+ Just kill that pointless renaming and it's okay - the functional
+ changes are fine anyway. Also please let Pat fix the bunch of other

One can always argue that renaming is pointless - since it doesn't change the logic - but we'd like to keep the new names.

+ issues before merging, it's not that much anyway..

I think I did. I sent another email with the changes I made for the issues you raised - and updated the patches. If I missed any, please let me know.

David or Andrew can you take these patches ?

Thanks,
-- Pat

#7 lore raw
Quoted 6 lines · Pat Gefre

+ Well, the pci-reorg patch is just wrong with tht remaining stuff
+ and breaks the portable I/O code for IP27 and SN2 I'm working on.

I have not heard any compelling reasons for keeping non-ia64, non-Altix code in the ia64, Altix code base. The code re-org is aimed towards a new ASIC we are working on - we feel it is needed.

Again, you can reorganize code as much as you want. Just don't change macro names randomly. And the reason is once again that there will be a code drop supporting SN2 and IP27 in the same codebase soon, going the usual linux way of architecture-independant drivers for common hardware.

Quoted 5 lines

+ issues before merging, it's not that much anyway..

I think I did. I sent another email with the changes I made for the issues you raised - and updated the patches. If I missed any, please let me know.

Ok, I haven't looked at that yet.

Quoted 1 line

David or Andrew can you take these patches ?

Please backpourt the renaming first.

#8 lore raw
Quoted 4 lines · Christoph Hellwig
Quoted 3 lines · Pat Gefre

+ Well, the pci-reorg patch is just wrong with tht remaining stuff
+ and breaks the portable I/O code for IP27 and SN2 I'm working on.

Quoted 8 lines
Quoted 3 lines

I have not heard any compelling reasons for keeping non-ia64, non-Altix code in the ia64, Altix code base. The code re-org is aimed towards a new ASIC we are working on - we feel it is needed.

Again, you can reorganize code as much as you want. Just don't change macro names randomly. And the reason is once again that there will be a code drop supporting SN2 and IP27 in the same codebase soon, going the usual linux way of architecture-independant drivers for common hardware.

Hi Christoph,

You are ofcourse talking about linux/drivers/.. right?

IP27 is not a supported architecture under linux/arch/ia64/sn/io/.. The IP27 MIPS processor/io hardware(bridge/Xbridge)/BIOS for IP27 are very much different than our SN2 product, supported within the linux/arch/ia64 tree - ia64 processors, IO Chipsets(PIC, TIO(CP,CA)), and System BIOS.

Is that not supported under the linux/arch/mips tree?

Happy Holidays all.

colin

Quoted 19 lines
Quoted 7 lines

+ issues before merging, it's not that much anyway..

I think I did. I sent another email with the changes I made for the issues you raised - and updated the patches. If I missed any, please let me know.

Ok, I haven't looked at that yet.

Quoted 1 line

David or Andrew can you take these patches ?

Please backpourt the renaming first.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#9 lore raw
Quoted 1 line · Colin Ngam

You are ofcourse talking about linux/drivers/.. right?

My plans are to move the code to drivers/xtalk/ once it's finished, es.

Quoted 6 lines

IP27 is not a supported architecture under linux/arch/ia64/sn/io/.. The IP27 MIPS processor/io hardware(bridge/Xbridge)/BIOS for IP27 are very much different than our SN2 product, supported within the linux/arch/ia64 tree - ia64 processors, IO Chipsets(PIC, TIO(CP,CA)), and System BIOS.

Is that not supported under the linux/arch/mips tree?

It's currently supported, but I'm aiming for common code for the common parts (pcibr drivers, xbow driver, hub/shub driver, xtalk discovery, some prom interface code). I've already sent you my merged dma mapping code and I have similar code for hub and bridge/xbridge/pic/tiocp level pio mapping and xtalk discovery.

There's of course code that will stay in the per-arch directories like the lowlevel interrupt code, etc.. Now this isn't something that happens from one day to another, but not not putting stones in the way of each other would help greatly..

#10 lore raw
Quoted 18 lines · Christoph Hellwig
Quoted 1 line · Colin Ngam

You are ofcourse talking about linux/drivers/.. right?

My plans are to move the code to drivers/xtalk/ once it's finished, es.

Quoted 6 lines

IP27 is not a supported architecture under linux/arch/ia64/sn/io/.. The IP27 MIPS processor/io hardware(bridge/Xbridge)/BIOS for IP27 are very much different than our SN2 product, supported within the linux/arch/ia64 tree - ia64 processors, IO Chipsets(PIC, TIO(CP,CA)), and System BIOS.

Is that not supported under the linux/arch/mips tree?

It's currently supported, but I'm aiming for common code for the common parts (pcibr drivers, xbow driver, hub/shub driver, xtalk discovery, some prom interface code). I've already sent you my merged dma mapping code and I have similar code for hub and bridge/xbridge/pic/tiocp level pio mapping and xtalk discovery.

Quoted 4 lines

There's of course code that will stay in the per-arch directories like the lowlevel interrupt code, etc.. Now this isn't something that happens from one day to another, but not not putting stones in the way of each other would help greatly..

Hi Christoph,

Yes I agree. However, keep in mind that we are following the ia32/ia64 way of getting platforms initialized, via ACPI etc. What you see as drivers code in sn/io will probably not exist anymore. All initialization and configuration will be done at the System BIOS level and information passed down to the Linux Kernel via ACPI. This will take away much code in the kernel.

We believe that all that will be left in sn/io directory maybe files dealing with DMA mappings(IOMMU). There will not be any PIO mapping code, no configuration code, no discovery code, no init code etc. etc. This is more in line with what we see, with regards to all other ia64 platforms.

This will not take a day either, but we are trying very hard to accomplish this task

as soon as possible.

The direction that you are taking, we believe, is not the right strategy in Linux.

Thanks.

colin

#11 lore raw
Quoted 8 lines · Colin Ngam

Hi Christoph,

Yes I agree. However, keep in mind that we are following the ia32/ia64 way of getting platforms initialized, via ACPI etc. What you see as drivers code in sn/io will probably not exist anymore. All initialization and configuration will be done at the System BIOS level and information passed down to the Linux Kernel via ACPI. This will take away much code in the kernel.

Well, I've heard this a few times now and life would definitly be simpler if you're going down that route. OTOH we all know talk is cheap and code speaks, and do you really expect SGI to invest money into doing that for the now almost legacy SHUB/PIC based Altixens? Well, even if SGI does this some day it won't really hurt us to get the code in shape first even if it's only use on MIPS IP27/IP35, wouldn't it?

Quoted 2 lines

We believe that all that will be left in sn/io directory maybe files dealing with DMA mappings(IOMMU).

That's one of the candidates that really should be shared with IP27 and the once someone does them the IP30 and IP35 ports. Really, the basic dma mapping code is the same for Bridge/Xbridge/PIC/TIOCP so we should have one driver. And once all the IRIX I/O infrastructure depency is ripped out that part of pcibr is rather self-contained. I can send you my latest variant of the dma mapping code if you want, but due tue all that stupid renaming of structure and macro names it won't compile in your tree. See why I _really_ _really_ dislike that silly renaming? It breaks all those nice efforts for code-sharing without any gain.

Even IRIX TOT uses the 'old' names, so what is the point of renaming them?

#12 lore raw

Christoph Hellwig wrote:

Hi Christoph,

Quoted 10 lines · Colin Ngam
Quoted 8 lines

Hi Christoph,

Yes I agree. However, keep in mind that we are following the ia32/ia64 way of getting platforms initialized, via ACPI etc. What you see as drivers code in sn/io will probably not exist anymore. All initialization and configuration will be done at the System BIOS level and information passed down to the Linux Kernel via ACPI. This will take away much code in the kernel.

Quoted 6 lines

Well, I've heard this a few times now and life would definitly be simpler

if you're going down that route. OTOH we all know talk is cheap and code speaks, and do you really expect SGI to invest money into doing that for the now almost legacy SHUB/PIC based Altixens? Well, even if SGI does this

SHUB/PIC based Altixens are not Legacy in any form shape or manner. I expect these IO Chipsets to drive Altix for the foreseable near future ..

Please do not question my resolve to drive us towards this direction. Things can always change, but I am heading this direction.

Quoted 3 lines

some day it won't really hurt us to get the code in shape first even if it's only use on MIPS IP27/IP35, wouldn't it?

Please, you can do what you want with the maintainer for the MIPs architecture. That is not a problem at all. For ia64 Altix line, we want to follow what's being done on other ia64 platform. Is this not the right approach? You yourself had mentioned above that this is the way to go?

Quoted 5 lines
Quoted 4 lines

We believe that all that will be left in sn/io directory maybe files dealing with DMA mappings(IOMMU).

Quoted 9 lines

That's one of the candidates that really should be shared with IP27 and the once someone does them the IP30 and IP35 ports. Really, the basic dma mapping code is the same for Bridge/Xbridge/PIC/TIOCP so we should have one driver. And once all the IRIX I/O infrastructure depency is ripped out that part of pcibr is rather self-contained. I can send you my latest variant of the dma mapping code if you want, but due tue all that stupid renaming of structure and macro names it won't compile in your tree. See why I _really_ _really_ dislike that silly renaming? It breaks all those nice efforts for code-sharing without any gain.

This code sharing will not be possible when we do all of our initialization in System BIOS, just like every other ia64 platform. Moreover, the ia64 Altix line does not support Bridge/Xbridge chipsets and we do not want to be burdened by these legacy code as we move forward with the ia64 product line.

Thanks.

colin

Quoted 8 lines

Even IRIX TOT uses the 'old' names, so what is the point of renaming them? -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#13 lore raw
Quoted 4 lines · Colin Ngam
Quoted 1 line

the now almost legacy SHUB/PIC based Altixens? Well, even if SGI does this

SHUB/PIC based Altixens are not Legacy in any form shape or manner. I expect these IO Chipsets to drive Altix for the foreseable near future ..

Well, it looks like TIO is replacing it soon, doesn't it?

Quoted 2 lines

Please do not question my resolve to drive us towards this direction. Things can always change, but I am heading this direction.

Well, again talk is cheap, if you show the code this whole discussion would be avoid. I've done my part of showing the code and the only thing I get in reply is bad flames and random obsfucations to break that code.

Quoted 4 lines

architecture. That is not a problem at all. For ia64 Altix line, we want to follow what's being done on other ia64 platform. Is this not the right approach? You yourself had mentioned above that this is the way to go?

Again, I'd be more than happy if you moved that code to the PROM. But as long as we have code in the kernel to deal with that hardware different ports should share it. And as mentioned above I have that strong feeling that for the first generation Altixens this is never going to happen. Of course I'd be more than happy to be proven wrong.

Quoted 2 lines

This code sharing will not be possible when we do all of our initialization in System BIOS, just like every other ia64 platform.

Again, if you do that I'd be more than happy. But as long as we need that code in the kernel it should be done properly.

Quoted 4 lines

Moreover, the ia64
Altix line does not support Bridge/Xbridge chipsets and we do not want to be burdened by these legacy code as we move forward with the ia64 product line.

Guess what, the current iommu code has exactly three lines of code that make sense only for bridge. Not to mention that I'll have no problem with maintaining all that code, so you don't have to maintain more but rather less code. (In a double sense, given that the new code is also much smaller despite support for the older revisions)

#14 lore raw

Christoph Hellwig wrote:

Hi Christoph,

Quoted 7 lines · Colin Ngam
Quoted 4 lines
Quoted 1 line

the now almost legacy SHUB/PIC based Altixens? Well, even if SGI does this

SHUB/PIC based Altixens are not Legacy in any form shape or manner. I expect these IO Chipsets to drive Altix for the foreseable near future ..

Well, it looks like TIO is replacing it soon, doesn't it?

I am not privy to that kind of information. SGI has always maintained and supported systems with more than 1 IO Chipset on the same system. So, we will have SHUB/PIC and TIO IO Chipset on the same system once TIO goes into production.

Quoted 8 lines
Quoted 4 lines

Please do not question my resolve to drive us towards this direction. Things can always change, but I am heading this direction.

Well, again talk is cheap, if you show the code this whole discussion would be avoid. I've done my part of showing the code and the only thing I get in reply is bad flames and random obsfucations to break that code.

All I am saying is that we have an effort going towards that direction. I am trying to work with you, letting you know ahead of time what is coming down so that future effort you are expanding is not wasted.

Quoted 7 lines
Quoted 6 lines

architecture. That is not a problem at all. For ia64 Altix line, we want to follow what's being done on other ia64 platform. Is this not the right approach? You yourself had mentioned above that this is the way to go?

Quoted 5 lines

Again, I'd be more than happy if you moved that code to the PROM. But as long as we have code in the kernel to deal with that hardware different ports should share it. And as mentioned above I have that strong feeling that for the first generation Altixens this is never going to happen. Of course I'd be more than happy to be proven wrong.

I am not out to prove you right or wrong - that is irrelevent. We are not moving code to Prom, we are enhancing our current functionality in Prom so that we will not need these code in the Linux kernel anymore. Prom already has most of these functionalities.

Quoted 13 lines
Quoted 4 lines

This code sharing will not be possible when we do all of our initialization in System BIOS, just like every other ia64 platform.

Again, if you do that I'd be more than happy. But as long as we need that code in the kernel it should be done properly.

Quoted 4 lines

Moreover, the ia64
Altix line does not support Bridge/Xbridge chipsets and we do not want to be burdened by these legacy code as we move forward with the ia64 product line.

Quoted 5 lines

Guess what, the current iommu code has exactly three lines of code that make sense only for bridge. Not to mention that I'll have no problem with maintaining all that code, so you don't have to maintain more but rather less code. (In a double sense, given that the new code is also much smaller despite support for the older revisions).

I will have a problem, if SGI is not the maintainer of our IO Chipset code for ia64/Altix. When this is done, there will be very little kernel code left to be maintained anyway. It will make life much better for us all, as we can concentrate on other parts of the kernel.

I believe we have beaten this topic to death now. You know what we are trying to accomplish - that is to follow as closely as possible the current methodology ia32/ia64 platforms are using for platform initialization - in System BIOS and ACPI. This will enable us to yank a tremendous amount of code from the kernel, making sn2 only and also Generic ia64 kernel much smaller, and the sn2 platform specific code much easier to maintain and understand.

It would have been very rude of us, not to inform you of our plans, given the fact that you have shared your intention. That would just waste your time.

Thanks.

colin

Quoted 11 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#15 lore raw
In reply to Christoph Hellwig
Quoted 6 lines · Christoph Hellwig
Quoted 4 lines · Colin Ngam
Quoted 1 line

the now almost legacy SHUB/PIC based Altixens? Well, even if SGI does this

SHUB/PIC based Altixens are not Legacy in any form shape or manner. I expect these IO Chipsets to drive Altix for the foreseable near future ..

Quoted 8 lines

Well, it looks like TIO is replacing it soon, doesn't it?

Quoted 2 lines

Please do not question my resolve to drive us towards this direction. Things can always change, but I am heading this direction.

Well, again talk is cheap, if you show the code this whole discussion would be avoid. I've done my part of showing the code and the only thing I get in reply is bad flames and random obsfucations to break that code.

Hi Christoph,

I do not believe I have sent any "bad flames" or any flames, at all to you regarding this issue. That would just be rude and bad culture. It is just not that way I conduct business as we all have so much to contribute.

I am just trying to share with you our plans. That's only fair to you.

Thanks.

colin

Quoted 29 lines
Quoted 6 lines

architecture. That is not a problem at all. For ia64 Altix line, we want to follow what's being done on other ia64 platform. Is this not the right approach? You yourself had mentioned above that this is the way to go?

Again, I'd be more than happy if you moved that code to the PROM. But as long as we have code in the kernel to deal with that hardware different ports should share it. And as mentioned above I have that strong feeling that for the first generation Altixens this is never going to happen. Of course I'd be more than happy to be proven wrong.

Quoted 2 lines

This code sharing will not be possible when we do all of our initialization in System BIOS, just like every other ia64 platform.

Again, if you do that I'd be more than happy. But as long as we need that code in the kernel it should be done properly.

Quoted 4 lines

Moreover, the ia64
Altix line does not support Bridge/Xbridge chipsets and we do not want to be burdened by these legacy code as we move forward with the ia64 product line.

Guess what, the current iommu code has exactly three lines of code that make sense only for bridge. Not to mention that I'll have no problem with maintaining all that code, so you don't have to maintain more but rather less code. (In a double sense, given that the new code is also much smaller despite support for the older revisions)

#16 lore raw
In reply to Pat Gefre
Quoted 5 lines · Pat Gefre

+ issues before merging, it's not that much anyway..

I think I did. I sent another email with the changes I made for the issues you raised - and updated the patches. If I missed any, please let me know.

Looking at oss.sgi.com/projects/sn2/sn2-update:

- no change in 000-hwgfs-update.patch.inprogress, hwgraph_path_lookup shall not be reintroduced.
- 014-cleanup-pci.c.patch: no change apparently?
- 030-pciio-cleanup.patch: Dito
- 071-xswitch.devfunc.patch: Dito.
- 075-rename-reorg.patch: Dito

Quoted 1 line

David or Andrew can you take these patches ?

Really, that's not what I consider fixing. Please fix up 000,014 and 030 and drop 071 and 075, then it should be fine for merging. 071 shouldn't go in at all and 075 needs the renaming killed, everything else can go in although it's not nice.

#17 lore raw
Quoted 2 lines · Christoph Hellwig

- no change in 000-hwgfs-update.patch.inprogress, hwgraph_path_lookup shall not be reintroduced.

Pat, it looks like hwgraph_path_lookup() is only used in the PCI hotplug code, and is messed up anyway (it's looking for a SCSI controller??), so we can probably kill the addition of that function.

Quoted 1 line

- 014-cleanup-pci.c.patch: no change apparently?

Yeah, it would be nice to avoid introducing stuff that just gets deleted in later patches.

Quoted 1 line

- 030-pciio-cleanup.patch: Dito

Not sure what this is about...

Quoted 1 line

- 071-xswitch.devfunc.patch: Dito.

Yes, I think we do have more xswitches coming...

Quoted 1 line

- 075-rename-reorg.patch: Dito

If this stuff is going to be used by more than just ia64, it should probably be moved to another directory/file.

Quoted 6 lines
Quoted 1 line

David or Andrew can you take these patches ?

Really, that's not what I consider fixing. Please fix up 000,014 and 030 and drop 071 and 075, then it should be fine for merging. 071 shouldn't go in at all and 075 needs the renaming killed, everything else can go in although it's not nice.

Pat, will the patches work if we omit 071 and 075? If so, maybe we can get the others merged in and continue to work on the last two.

Jesse

author
#18 lore raw
In reply to Christoph Hellwig

On Sun, 28 Dec 2003, Christoph Hellwig wrote:

+ On Mon, Dec 22, 2003 at 08:55:10PM -0600, Pat Gefre wrote:
+ > + issues before merging, it's not that much anyway..
+ >
+ > I think I did. I sent another email with the changes I made for the
+ > issues you raised - and updated the patches. If I missed any, please
+ > let me know.
+
+ Looking at oss.sgi.com/projects/sn2/sn2-update:
+
+ - no change in 000-hwgfs-update.patch.inprogress, hwgraph_path_lookup
+ shall not be reintroduced.

+  - 014-cleanup-pci.c.patch:  no change apparently?
+  - 030-pciio-cleanup.patch: Dito
+  - 071-xswitch.devfunc.patch: Dito.
+  - 075-rename-reorg.patch: Dito

+
+
+ > David or Andrew can you take these patches ?
+
+ Really, that's not what I consider fixing. Please fix up
+ 000,014 and 030 and drop 071 and 075, then it should be fine for
+ merging. 071 shouldn't go in at all and 075 needs the renaming killed,
+ everything else can go in although it's not nice.
+

I've been out of town, so haven't responded to this yet.

I'll remove hwgraph_path_lookup() from 000, remove snia64_pci_find_bios() from 014 and remove pcibr_businfo_get() from 030.

I'll drop 071. So I can assume that if I get rid of the renaming in 075 you are OK with that ?

#19 lore raw
Quoted 2 lines · Pat Gefre

I'll drop 071. So I can assume that if I get rid of the renaming in 075 you are OK with that ?

Yes. I don't like some of the stuff it doesn, but it's defintily not a showstopper.

#20 lore raw
Quoted 12 lines · Christoph Hellwig
Quoted 4 lines · Pat Gefre

I'll drop 071. So I can assume that if I get rid of the renaming in 075 you are OK with that ?

Yes. I don't like some of the stuff it doesn, but it's defintily not a showstopper.

OK - I updated the patches as Christoph suggested (removed hwgraph_path_lookup() from 000, removed snia64_pci_find_bios() from 014, removed pcibr_businfo_get() from 030 and dropped 071).

I took the reorg patch (075) out for now - I am reworking it along with our next set of patches.

So I think they are ready to go ?

The patchset is at: ftp://oss.sgi.com/projects/sn2/sn2-update/

-- Pat

#21 lore raw
Quoted 9 lines · Patrick Gefre

OK - I updated the patches as Christoph suggested (removed hwgraph_path_lookup() from 000, removed snia64_pci_find_bios() from 014, removed pcibr_businfo_get() from 030 and dropped 071).

I took the reorg patch (075) out for now - I am reworking it along with our next set of patches.

So I think they are ready to go ?

Yes. 030 still has some really strange additions but we can back that out later.

For the next round of patched I would be nice if you could get the attribution of the patches right, though..

#22 lore raw
In reply to Patrick Gefre
Quoted 9 lines · Patrick Gefre

OK - I updated the patches as Christoph suggested (removed hwgraph_path_lookup() from 000, removed snia64_pci_find_bios() from 014, removed pcibr_businfo_get() from 030 and dropped 071).

I took the reorg patch (075) out for now - I am reworking it along with our next set of patches.

So I think they are ready to go ?

Yes. 030 still has some really strange additions but we can back that out later.

For the next round of patched I would be nice if you could get the attribution of the patches right, though..

#23 lore raw
In reply to Christoph Hellwig
Quoted 12 lines · Christoph Hellwig
Quoted 4 lines · Pat Gefre

I'll drop 071. So I can assume that if I get rid of the renaming in 075 you are OK with that ?

Yes. I don't like some of the stuff it doesn, but it's defintily not a showstopper.

OK - I updated the patches as Christoph suggested (removed hwgraph_path_lookup() from 000, removed snia64_pci_find_bios() from 014, removed pcibr_businfo_get() from 030 and dropped 071).

I took the reorg patch (075) out for now - I am reworking it along with our next set of patches.

So I think they are ready to go ?

The patchset is at: ftp://oss.sgi.com/projects/sn2/sn2-update/

-- Pat