Skip to contentSkip to conversation

mISDN still breaking the allmodconfig build...

DISCUSSION David Miller 8 participants 14 messages Jul 28, 2008 – Aug 4, 2008

lore
Share & tools
lore
#0 lore raw

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

#1 lore raw
Quoted 3 lines · David Miller

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

Lovely...

Ben.

#2 lore raw
Quoted 7 lines · On Mon, 28 Jul 2008 10:13:42 +1000 "Benjamin Herrenschmidt"…
Quoted 4 lines · David Miller

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

Lovely...

mISDN is notoriously bad on big endian machines.

Cheers,
Sean

#5 lore raw
In reply to David Miller

Hi Dave,

Quoted 3 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

Regards

Marcel

#6 lore raw

From: Marcel Holtmann <[email protected]>
Date: Mon, 28 Jul 2008 03:03:04 +0200

Quoted 9 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

One of the two mISDN drivers uses the deprecated virt_to_bus() interface for handling DMA addresses (that doesn't even work on many x86 systems these days) and the other mISDN driver gives the above big-endian compile time error.

In short, this driver was not ready for merging at all.

#7 lore raw

Hi Dave,

Quoted 10 lines
Quoted 9 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

Quoted 6 lines

One of the two mISDN drivers uses the deprecated virt_to_bus() interface for handling DMA addresses (that doesn't even work on many x86 systems these days) and the other mISDN driver gives the above big-endian compile time error.

In short, this driver was not ready for merging at all.

I am not defending it and agree that this driver should have had at least one test run in linux-next. However mISDN is a whole ISDN stack. So does mISDN has an issue too or do we only have a really broken driver. Karsten?

Regards

Marcel

#11 lore raw
In reply to David Miller
Quoted 13 lines · David Miller

From: Marcel Holtmann <[email protected]>
Date: Mon, 28 Jul 2008 03:03:04 +0200

Quoted 9 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

Quoted 6 lines

One of the two mISDN drivers uses the deprecated virt_to_bus() interface for handling DMA addresses (that doesn't even work on many x86 systems these days) and the other mISDN driver gives the above big-endian compile time error.

In short, this driver was not ready for merging at all.

Why on earth does a generic (I hope) protocol driver (some ISDN thingy in this case) care about endianess at all?

Or has things come to a "the world's an x86" ("the world's a VAX" for old-timers but add 25+ years or so) situation where the majority of coders don't even consider that machines might be different from what they use? If so, a deep sigh of sadness.

(Not that I prefer a particular endianess. My point being that coders shouldn't make endianess assumptions unless they're really^3 important.)>

#8 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 17 lines · Marcel Holtmann

Hi Dave,

Quoted 15 lines
Quoted 9 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

One of the two mISDN drivers uses the deprecated virt_to_bus() interface for handling DMA addresses (that doesn't even work on many x86 systems these days) and the other mISDN driver gives the above big-endian compile time error.

Quoted 4 lines
Quoted 1 line

In short, this driver was not ready for merging at all.

I am not defending it and agree that this driver should have had at least one test run in linux-next.

Yes my fault, sorry.

Quoted 3 lines

However mISDN is a whole ISDN stack.
So does mISDN has an issue too or do we only have a really broken driver. Karsten?

Yes this is only a issue of the hardware layer not of the stack.

OK the driver are based on the old drivers already in HiSax and for virt_to_bus() I never got a complain before and yes I already have some patches to solve the endian issues in the HFC driver, but it was not finaly confirmed, that all this work now on big endian systems and my PPC system unfortunately died some time ago, so I did leave it as it is, but with the wrong option, instead to mark it X86 only I let it break.

On the other side this remained me to check the big endian thing again ;-)

Signature · 4 lines
Karsten Keil
SuSE Labs
ISDN and VOIP development
SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg)
#3 lore raw
In reply to Sean MacLennan
Quoted 4 lines · On Sun, 27 Jul 2008 20:48:05 -0400 Sean MacLennan <[email protected]>…
Quoted 1 line · On Mon, 28 Jul 2008 10:13:42 +1000 "Benjamin Herrenschmidt"…

On Sun, 2008-07-27 at 17:02 -0700, David Miller wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

Lovely...

mISDN is notoriously bad on big endian machines.

In which case it really should not be in Linus tree but in linux-next. Karsten - will you ask Linus to revert mISDN so it can go into linux-next instead and get cleaned up in the right place ?

Alan

#12 lore raw
In reply to David Miller
Quoted 10 lines · David Miller

From: Marcel Holtmann <[email protected]>
Date: Mon, 28 Jul 2008 03:03:04 +0200

Quoted 7 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

Quoted 8 lines
Quoted 2 lines

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

One of the two mISDN drivers uses the deprecated virt_to_bus() interface for handling DMA addresses (that doesn't even work on many x86 systems these days) and the other mISDN driver gives the above big-endian compile time error.

OK this was forgotten to change in a printk from the old driver, the new allocation code should be OK it use pci_alloc_consistent().
I think it should simple use the returned dmahandle in this printk.

Signature · 4 lines
Karsten Keil
SuSE Labs
ISDN and VOIP development
SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg)
#13 lore raw
In reply to Marcel Holtmann
Quoted 11 lines · Marcel Holtmann

Hi Dave,

Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

is that only the HFC driver or the whole mISDN stack?

I know that the two old ISDN stacks where really bad on big endian, but my assumption was that we did sort this out in the end.

Well, I got it working well enough (the old one) on a ppc405 about 5 or 6 years ago... It did require some endian & dma mapping fixing, iirc, in the hisax pci driver, but nothing very tricky.

What bugs me is that we -fixed- at least some of these things in the old stack, up to the point where I could use it reliably in some commercial products, and now we are merging a new stack which, in that area, is a clear regression over the old code.

One basic premise to me for replacing a whole stack with a new one is that the new one should be -at-least- as good as the old one in all areas, and those (virt_to_bus and endianness) are pretty major.

Ben.

#4 lore raw
In reply to Alan Cox
Quoted 7 lines · Alan Cox
Quoted 4 lines · On Sun, 27 Jul 2008 20:48:05 -0400 Sean MacLennan <[email protected]>…
Quoted 1 line · On Mon, 28 Jul 2008 10:13:42 +1000 "Benjamin Herrenschmidt"…

On Sun, 2008-07-27 at 17:02 -0700, David Miller wrote:

Quoted 9 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

More fallout from the premature mISDN driver merge:

drivers/isdn/hardware/mISDN/hfcmulti.c:5255:2: error: #error "not running on big endian machines now"

Lovely...

mISDN is notoriously bad on big endian machines.

This only affect the hardware IO layer of some cards and I think it will be fixed very soon, I did not remove the very old #error line, because I did not had the hardware to verify that it is OK now.
I already reserved a PPC machine now (will get it today or tomorrow) and will test the endian robustness this week.

Quoted 4 lines

In which case it really should not be in Linus tree but in linux-next. Karsten - will you ask Linus to revert mISDN so it can go into linux-next instead and get cleaned up in the right place ?

This was my original plan and my fault, that I only included the pull URL and sent it to Linus diectely, I did not know that in this case Linus will pull it without further discussion, but I'm still glad that it is in and only show few issues (I'm very unhappy that I did not find these before, I did builds on all our architectures, but not with the all*config, only with subsets).
The good thing is, that this brought back the ENDIAN issue back on my radar and on my near time TODO list :-)

Signature · 4 lines
Karsten Keil
SuSE Labs
ISDN and VOIP development
SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg)
#9 lore raw
In reply to Karsten Keil
Quoted 3 lines · Karsten Keil

[...]
virt_to_bus() I never got a complain before and yes I already have some patches to solve the endian issues in the HFC driver, but it was not finaly

Karsten, do you have those patches available somewhere ?
I could give it a try on 4xx with a 4s card in the near future.

Thanks

Sinan Akman

#10 lore raw
Quoted 9 lines · Sinan Akman
Quoted 4 lines · Karsten Keil

[...]
virt_to_bus() I never got a complain before and yes I already have some patches
to solve the endian issues in the HFC driver, but it was not finaly

Karsten, do you have those patches available somewhere ?
I could give it a try on 4xx with a 4s card in the near future.

Already fixed in
git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6.git

Signature · 4 lines
Karsten Keil
SuSE Labs
ISDN and VOIP development
SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg)