* Re: i386 drivers on alpha ? @ 2001-07-20 18:46 Eugene Chu 2001-07-20 19:30 ` Craig Tierney 0 siblings, 1 reply; 10+ messages in thread From: Eugene Chu @ 2001-07-20 18:46 UTC (permalink / raw) To: axp-list Hi Andrei, Thanks for the information. I guess that it was not QLOGIC that developed the QL2XXX drivers for Alpha Linux? It's good to know that the support is built in. Now I have to figure out how to get funding for the new FCAL cards. eugene ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 18:46 i386 drivers on alpha ? Eugene Chu @ 2001-07-20 19:30 ` Craig Tierney 2001-07-20 20:21 ` 'Bryce' 2001-07-20 21:46 ` Peter Petrakis 0 siblings, 2 replies; 10+ messages in thread From: Craig Tierney @ 2001-07-20 19:30 UTC (permalink / raw) To: axp-list On Fri, Jul 20, 2001 at 11:46:59AM -0700, Eugene Chu wrote: > Hi Andrei, > > Thanks for the information. I guess that it was not QLOGIC that > developed the QL2XXX drivers for Alpha Linux? It's good to know that > the support is built in. Now I have to figure out how to get funding > for the new FCAL cards. Qlogic did not develop the driver that is in the kernel. However, there is a driver from Qlogic that works with Linux. However, "Linux" in this sense means i386. However, you can get the driver to work under Alpha. The problem with the Qlogic driver is that it assumes that sizeof(dma_addr_t) == BITS_PER_LONG. On the Alpha, this is not the case. If someone wants the patch I can send it out. I am running the Qlogic-4.27beta driver on an XP1000 quite successfully right now. It has been running for the last 6 weeks in production without problems. I am exporting the filesystem over NFS, so I am not always pushing the filesystem as hard as if it were local. With NFS and gigabit Ethernet I am seeing 45 MB/s for writes and reads (Local performance on writes saturates the FC card). I never had too much luck with the driver in the kernel. The last one I tried was the one in linux-2.4.3. Maybe it just didn't like something it saw from my SAN (Data Direct). Craig -- Craig Tierney (ctierney@hpti.com) phone: 303-497-3112 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 19:30 ` Craig Tierney @ 2001-07-20 20:21 ` 'Bryce' 2001-07-20 21:09 ` Craig Tierney 2001-07-20 21:46 ` Peter Petrakis 1 sibling, 1 reply; 10+ messages in thread From: 'Bryce' @ 2001-07-20 20:21 UTC (permalink / raw) To: axp-list [-- Attachment #1: Type: text/plain, Size: 1548 bytes --] Craig Tierney wrote: > On Fri, Jul 20, 2001 at 11:46:59AM -0700, Eugene Chu wrote: > > Hi Andrei, > > > > Thanks for the information. I guess that it was not QLOGIC that > > developed the QL2XXX drivers for Alpha Linux? It's good to know that > > the support is built in. Now I have to figure out how to get funding > > for the new FCAL cards. > > Qlogic did not develop the driver that is in the kernel. However, there > is a driver from Qlogic that works with Linux. However, "Linux" in this > sense means i386. However, you can get the driver to work under Alpha. The problem > with the Qlogic driver is that it assumes that sizeof(dma_addr_t) == BITS_PER_LONG. > On the Alpha, this is not the case. > > If someone wants the patch I can send it out. Humm sounds like something tbat should be useful in the kernel. Was this patch never accepted upstream? or am I going to horrified to find out it's not GPL code that we can merge with the kernel? > I am running the Qlogic-4.27beta driver on an XP1000 quite successfully right > now. It has been running for the last 6 weeks in production without problems. > I am exporting the filesystem over NFS, so I am not always pushing the filesystem > as hard as if it were local. With NFS and gigabit Ethernet I am seeing 45 MB/s for > writes and reads (Local performance on writes saturates the FC card). I never > had too much luck with the driver in the kernel. The last one I tried was the one in > linux-2.4.3. Maybe it just didn't like something it saw from my SAN (Data Direct). > [-- Attachment #2: Type: text/html, Size: 1873 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 20:21 ` 'Bryce' @ 2001-07-20 21:09 ` Craig Tierney 2001-07-20 21:38 ` Michal Jaegermann 2001-07-20 22:14 ` 'Bryce' 0 siblings, 2 replies; 10+ messages in thread From: Craig Tierney @ 2001-07-20 21:09 UTC (permalink / raw) To: axp-list On Fri, Jul 20, 2001 at 04:21:57PM -0400, 'Bryce' wrote: > Craig Tierney wrote: > > On Fri, Jul 20, 2001 at 11:46:59AM -0700, Eugene Chu wrote: > > Hi Andrei, > > > > Thanks for the information. I guess that it was not QLOGIC that > > developed the QL2XXX drivers for Alpha Linux? It's good to know that > > the support is built in. Now I have to figure out how to get funding > > for the new FCAL cards. > > Qlogic did not develop the driver that is in the kernel. However, there > > is a driver from Qlogic that works with Linux. However, "Linux" in this > > sense means i386. However, you can get the driver to work under Alpha. > The problem > with the Qlogic driver is that it assumes that sizeof(dma_addr_t) == > BITS_PER_LONG. > On the Alpha, this is not the case. > > > If someone wants the patch I can send it out. > > > > Humm sounds like something tbat should be useful in the kernel. Was this > patch never accepted upstream? or am I going to horrified to find out > it's not GPL code that we can merge with the kernel? The code looks to be under GPL v2. I don't know why it isn't integrated into the kernel. It doesn't require any patches to the rest of the kernel. I guess it would take someone to actually do that. As far as getting my patch back to Qlogic, I probably have been too lazy. At one point I talked to one of the engineers who was doing the development. We had a pretty good relationship and I got him to make a few portability changes. He left the company and I was told it was best to go though the general support email to talk to the developers. I got lazy at that point and never sent the changes to them. I should probably do it anyway. I will put it on my list of things to do. The problem is that the developers will have to change how they do things to remember that the world is more than ia32 and ia64. Craig ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 21:09 ` Craig Tierney @ 2001-07-20 21:38 ` Michal Jaegermann 2001-07-20 21:50 ` Craig Tierney 2001-07-20 22:14 ` 'Bryce' 1 sibling, 1 reply; 10+ messages in thread From: Michal Jaegermann @ 2001-07-20 21:38 UTC (permalink / raw) To: axp-list On Fri, Jul 20, 2001 at 03:09:24PM -0600, Craig Tierney wrote: > > The code looks to be under GPL v2. I don't know why it isn't integrated > into the kernel. The most likely reason in that case is that nobody ever bothered to submit it. The driver should also have a maintainer/owner. > It doesn't require any patches to the rest of the kernel. Drivers of that sort which really affect only users of a particular piece of hardware are accepted all the time even in "stable" series of kernels. But nobody is actively seeking "what else can we add here" so somebody with an itch has to show some initiative. :-) > As far as getting my patch back to Qlogic, I probably have been too lazy. A driver which works only on one architecture will likely be rejected in that form right away. It is a maintaner job to assure that a given driver has at least a fighting chance everywhere. There are also matters of conforming to a style, documentation, keeping global variables from colliding with anything else and other housekeeping chores of that sort. It does not mean that s/he has to do all that work but this will be a clearing and a coordination point for all eventual patches. There are some old drivers without a real maintainer. As long as they are "quiet" and do not create troubles then fine. From time to time somebody has to clean them up a bit and some actually go broken for quite prolonged periods. If nobody gets hands dirty that means that nobody cares. > I should probably do it anyway. Pretty good way to get your name on MAINTAINERS list. :-) Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 21:38 ` Michal Jaegermann @ 2001-07-20 21:50 ` Craig Tierney 0 siblings, 0 replies; 10+ messages in thread From: Craig Tierney @ 2001-07-20 21:50 UTC (permalink / raw) To: axp-list .. stuff deleted about getting Qlogic's driver in the main source tree. > There are some old drivers without a real maintainer. As long as they > are "quiet" and do not create troubles then fine. From time to time > somebody has to clean them up a bit and some actually go broken for > quite prolonged periods. If nobody gets hands dirty that means that > nobody cares. > > > I should probably do it anyway. > > Pretty good way to get your name on MAINTAINERS list. :-) > I would send my patches to Qlogic. Qlogic doesn't seem interested in Alpha support but wouldn't be adverse to adding the patches. To get my name on the MAINTAINERS list, I would have to be the one to get it into the kernel. I don't have a clue what the driver does, I just figured out the 32 vs. 64 bit issues and got the driver to work under Alpha. Craig > Michal > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 21:09 ` Craig Tierney 2001-07-20 21:38 ` Michal Jaegermann @ 2001-07-20 22:14 ` 'Bryce' 1 sibling, 0 replies; 10+ messages in thread From: 'Bryce' @ 2001-07-20 22:14 UTC (permalink / raw) To: axp-list Craig Tierney wrote: > On Fri, Jul 20, 2001 at 04:21:57PM -0400, 'Bryce' wrote: > > Craig Tierney wrote: > > > > On Fri, Jul 20, 2001 at 11:46:59AM -0700, Eugene Chu wrote: > > > Hi Andrei, > > > > > > Thanks for the information. I guess that it was not QLOGIC that > > > developed the QL2XXX drivers for Alpha Linux? It's good to know that > > > the support is built in. Now I have to figure out how to get funding > > > for the new FCAL cards. > > > > Qlogic did not develop the driver that is in the kernel. However, there > > > > is a driver from Qlogic that works with Linux. However, "Linux" in this > > > > sense means i386. However, you can get the driver to work under Alpha. > > The problem > > with the Qlogic driver is that it assumes that sizeof(dma_addr_t) == > > BITS_PER_LONG. > > On the Alpha, this is not the case. > > > > > > If someone wants the patch I can send it out. > > > > > > > > Humm sounds like something tbat should be useful in the kernel. Was this > > patch never accepted upstream? or am I going to horrified to find out > > it's not GPL code that we can merge with the kernel? > > The code looks to be under GPL v2. I don't know why it isn't integrated > into the kernel. It doesn't require any patches to the rest of the kernel. > I guess it would take someone to actually do that. > > As far as getting my patch back to Qlogic, I probably have been too lazy. > At one point I talked to one of the engineers who was doing the development. > We had a pretty good relationship and I got him to make a few portability > changes. He left the company and I was told it was best to go though > the general support email to talk to the developers. I got lazy at that > point and never sent the changes to them. > > I should probably do it anyway. I will put it on my list of things to do. > The problem is that the developers will have to change how they do things > to remember that the world is more than ia32 and ia64. > > Craig Ok, I'll stick my hand up for the driver/changes then 8) Phil =--= ^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: i386 drivers on alpha ? 2001-07-20 19:30 ` Craig Tierney 2001-07-20 20:21 ` 'Bryce' @ 2001-07-20 21:46 ` Peter Petrakis 2001-07-21 17:30 ` Craig Tierney 1 sibling, 1 reply; 10+ messages in thread From: Peter Petrakis @ 2001-07-20 21:46 UTC (permalink / raw) To: axp-list > Alpha. The problem > with the Qlogic driver is that it assumes that sizeof(dma_addr_t) > == BITS_PER_LONG. > On the Alpha, this is not the case. > > If someone wants the patch I can send it out. I have developed a patch for the same symptom. I'd like to see what you have done, Please send what you have to me. I've also noticed that even after this has bee enabled. proc & lspci still report the card's PCI addressing as 32 bit non-prefectable... I fear that the damn thing will need it's bios initialzed or at the very least it's NVRAM twiddled. Furthermore :-), The 64 bit addressing support is coded for linux 2.4 only. Another issue that I've realized working with 64 bit capable PCI cards latley is that the drivers make the assumption that your boxen may only have 64 bit PCI slots if the BITS_PER_LONG > 32. That simply isnt the case anymore on other platforms like IA32. IA32 SMP server clase boxen regularly come with 64 bit PCI expansion these days. It's not OUR problem but it's something that should be addressed. The less #ifdef's the better. Peter -- www.alphalinux.org Peter Petrakis Warrior/Engineer ppetrakis@alphalinux.org "Oh my God! They killed Xena! You bastards!!" "<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..." ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: i386 drivers on alpha ? 2001-07-20 21:46 ` Peter Petrakis @ 2001-07-21 17:30 ` Craig Tierney 2001-07-21 18:34 ` Ruffian PC164UX and RH7.1 Peter Watkinson 0 siblings, 1 reply; 10+ messages in thread From: Craig Tierney @ 2001-07-21 17:30 UTC (permalink / raw) To: axp-list ...discussion about patching Qlogic's FC driver deleted. Below is my patch. My strategy was to find the variables that are really dma_addr_t types, redefine those variables using that and get rid of the #ifdefs. Then I replaced all BITS_PER_LONG with DMA_ADDR_SIZE and defined DMA_ADDR_SIZE to be the correct size of dma_addr_t. Disclaimer. I don't claim what I did is correct, I just know that I can get it to work reliably by doing this. This patch is against qla2x00src-4.27Beta.tgz. Craig diff -urN qla2x00-4.27Beta-clean/qla2x00.c qla2x00-4.27Beta/qla2x00.c --- qla2x00-4.27Beta-clean/qla2x00.c Tue Apr 17 01:40:30 2001 +++ qla2x00-4.27Beta/qla2x00.c Sat Jul 21 17:25:39 2001 @@ -395,7 +395,7 @@ #define QLA2100_DELAY(sec) mdelay(sec * HZ) /* 4.10 */ -#if BITS_PER_LONG > 32 +#if DMA_BITS_SIZE > 32 #define pci_dma_lo32(a) (a & 0xffffffff) #define pci_dma_hi32(a) ((a >> 32) & 0xffffffff) #else @@ -405,7 +405,7 @@ #define VIRT_TO_BUS(a) virt_to_bus((a)) -#if BITS_PER_LONG <= 32 +#if DMA_BITS_SIZE <= 32 #define VIRT_TO_BUS_LOW(a) (uint32_t)virt_to_bus(((void *)a)) #define VIRT_TO_BUS_HIGH(a) (uint32_t)(0x0) #else @@ -418,7 +418,7 @@ #define STATIC -#if BITS_PER_LONG <= 32 +#if DMA_BITS_SIZE <= 32 #define LS_64BITS(x) (uint32_t)((unsigned long)x) #define MS_64BITS(x) (uint32_t)((unsigned long) 0x0) #else @@ -426,7 +426,7 @@ #define MS_64BITS(x) (uint32_t)(0xffffffff & (((unsigned long)x)>>32) ) #endif -#if BITS_PER_LONG <= 32 +#if DMA_BITS_SIZE <= 32 #define MSB(x) (uint8_t)(((uint16_t)(x) >> 8) & 0xff) #define LSB(x) (uint8_t)(x & 0xff) #define MSW(x) (uint16_t)(((uint32_t)(x) >> 16) & 0xffff) @@ -1593,6 +1593,7 @@ #else host->base = (u_long) ha->mmpbase; #endif + printk("qla2100: MAXCHANNELS = %d\n", maxchannels); host->max_channel = maxchannels; /* fix: 07/31 host->max_lun = MAX_LUNS-1; */ host->max_lun = ha->max_luns; @@ -4987,7 +4988,7 @@ #if BITS_PER_LONG > 32 /* Enable 64bit addressing for OS/System combination supporting it */ /* actual NVRAM bit is: nv->cntr_flags_1.enable_64bit_addressing */ - /* but we will ignore it and use BITS_PER_LONG macro to setup for */ + /* but we will ignore it and use DMA_BITS_SIZE macro to setup for */ /* 64 or 32 bit access of host memory in all x86/ia-64/Alpha systems */ ha->flags.enable_64bit_addressing = 1; #else @@ -4998,7 +4999,7 @@ if (ha->flags.enable_64bit_addressing) printk("[[[ qla2x00: 64 Bit PCI Addressing Enabled ]]]\n"); -#if BITS_PER_LONG > 32 +#if DMA_BITS_SIZE > 32 /* Update our PCI device dma_mask for full 64 bit mask */ /* ha->pdev->dma_mask = (pci_dma_t) 0xffffffffffffffffull; */ ha->pdev->dma_mask = 0xffffffffffffffff; @@ -5227,10 +5228,10 @@ ha->flags.set_cache_line_size_1 = nv->host_p.set_cache_line_size_1; ha->flags.enable_64bit_addressing = nv->host_p.enable_64bit_addressing; -#if BITS_PER_LONG > 32 +#if DMA_BITS_SIZE > 32 /* Enable 64bit addressing for OS/System combination supporting it */ /* actual NVRAM bit is: nv->cntr_flags_1.enable_64bit_addressing */ - /* but we will ignore it and use BITS_PER_LONG macro to setup for */ + /* but we will ignore it and use DMA_BITS_SIZE macro to setup for */ /* 64 or 32 bit access of host memory in all x86/ia-64/Alpha systems */ ha->flags.enable_64bit_addressing = 1; #else @@ -5241,7 +5242,7 @@ if (ha->flags.enable_64bit_addressing) printk("[[[ qla2x00: 64 Bit PCI Addressing Enabled ]]]\n"); -#if BITS_PER_LONG > 32 +#if DMA_BITS_SIZE > 32 /* Update our PCI device dma_mask for full 64 bit mask */ ha->pdev->dma_mask = 0xffffffffffffffff; #endif @@ -6198,11 +6199,7 @@ uint8_t next_port_id[3]; uint8_t host_port_id[3]; sns_data_t *sns; -#if BITS_PER_LONG > 32 - uint64_t phys_address = 0; -#else - uint32_t phys_address = 0; -#endif + dma_addr_t phys_address = 0; uint16_t mb[MAILBOX_REGISTER_COUNT]; uint8_t use_gan = 1; uint8_t retry_count = 0; @@ -6587,11 +6584,7 @@ STATIC uint8_t qla2100_sns_get_name( scsi_qla_host_t *ha, device_data_t *device, uint8_t flag ) { uint8_t lStatus = 0; uint16_t wRetryCount; -#if BITS_PER_LONG > 32 - uint64_t phys_address = 0; -#else - uint32_t phys_address = 0; -#endif + dma_addr_t phys_address = 0; uint16_t mb[MAILBOX_REGISTER_COUNT]; uint16_t subCmd, response; sns_data_t *sns; @@ -6896,11 +6889,7 @@ uint16_t mb[MAILBOX_REGISTER_COUNT]; port_list_entry_t *gn_list, *port_entry; device_data_t device; -#if BITS_PER_LONG > 32 - uint64_t phys_address = 0; -#else - uint32_t phys_address = 0; -#endif + dma_addr_t phys_address = 0; uint16_t i, size; uint16_t localdevices = 0; int retry_needed = 0; diff -urN qla2x00-4.27Beta-clean/qla2x00.h qla2x00-4.27Beta/qla2x00.h --- qla2x00-4.27Beta-clean/qla2x00.h Mon Apr 16 23:56:47 2001 +++ qla2x00-4.27Beta/qla2x00.h Sat Jul 21 17:24:47 2001 @@ -34,12 +34,18 @@ #define ISP2200 #endif +#ifdef __alpha__ +#define DMA_BITS_SIZE 32 +#else +#define DMA_BITS_SIZE BITS_PER_LONG +#endif + /* * Driver debug definitions. */ /* #define QL_DEBUG_LEVEL_1 */ /* Output register accesses to COM1 */ -/* #define QL_DEBUG_LEVEL_2 */ /* Output error msgs to COM1 */ +/* #define QL_DEBUG_LEVEL_2 */ /* Output error msgs to COM1 */ /* #define QL_DEBUG_LEVEL_3 */ /* Output function trace msgs to COM1 */ /* #define QL_DEBUG_LEVEL_4 */ /* Output NVRAM trace msgs to COM1 */ /* #define QL_DEBUG_LEVEL_5 */ /* Output ring trace msgs to COM1 */ @@ -2180,21 +2186,15 @@ /* Outstandings ISP commands. */ srb_t *outstanding_cmds[MAX_OUTSTANDING_COMMANDS]; -#if BITS_PER_LONG > 32 - uint64_t request_dma; /* Physical address. */ -#else - uint32_t request_dma; /* Physical address. */ -#endif + dma_addr_t request_dma; /* Physical address */ + request_t *request_ring; /* Base virtual address */ request_t *request_ring_ptr; /* Current address. */ uint16_t req_ring_index; /* Current index. */ uint16_t req_q_cnt; /* Number of available entries. */ -#if BITS_PER_LONG > 32 - uint64_t response_dma; /* Physical address. */ -#else - uint32_t response_dma; /* Physical address. */ -#endif + dma_addr_t response_dma; /* Physical address. */ + response_t *response_ring; /* Base virtual address */ response_t *response_ring_ptr; /* Current address. */ uint16_t rsp_ring_index; /* Current index. */ @@ -2235,11 +2235,7 @@ #endif /* Firmware Initialization Control Block data */ -#if BITS_PER_LONG > 32 - uint64_t init_cb_dma; /* Physical address. */ -#else - uint32_t init_cb_dma; /* Physical address. */ -#endif + dma_addr_t init_cb_dma; /* Physical address. */ init_cb_t *init_cb; /* Timeout timers. */ @@ -2344,11 +2340,8 @@ uint8_t IoctlPassThru_InProgress; uint8_t IoctlPassFCCT_InProgress; void *ioctl_mem; -#if BITS_PER_LONG > 32 - uint64_t ioctl_mem_phys; -#else - uint32_t ioctl_mem_phys; -#endif + dma_addr_t ioctl_mem_phys; + /* HBA serial number */ uint8_t serial0; ^ permalink raw reply [flat|nested] 10+ messages in thread
* Ruffian PC164UX and RH7.1 2001-07-21 17:30 ` Craig Tierney @ 2001-07-21 18:34 ` Peter Watkinson 0 siblings, 0 replies; 10+ messages in thread From: Peter Watkinson @ 2001-07-21 18:34 UTC (permalink / raw) To: axp-list Hi, Does anyone here have a ruffian UX system running with RedHat 7.1? I've got a UX I want to sell and it would be nice to know whether 7.1 runs on it before I stick up for auction. Kind regards, X-Signature: default Peter Watkinson Email: peterw@u.genie.co.uk Internet: http://you.genie.co.uk/peterw/ Windsurf International.com http://www.windsurf-international.com/ PW Navigate.com http://www.pwnavigate.com/ ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-07-21 18:42 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-07-20 18:46 i386 drivers on alpha ? Eugene Chu 2001-07-20 19:30 ` Craig Tierney 2001-07-20 20:21 ` 'Bryce' 2001-07-20 21:09 ` Craig Tierney 2001-07-20 21:38 ` Michal Jaegermann 2001-07-20 21:50 ` Craig Tierney 2001-07-20 22:14 ` 'Bryce' 2001-07-20 21:46 ` Peter Petrakis 2001-07-21 17:30 ` Craig Tierney 2001-07-21 18:34 ` Ruffian PC164UX and RH7.1 Peter Watkinson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox