qla2xxx and feral ISP updates in their respective BK trees
I've updated both these trees
bk://linux-scsi.bkbits.net/scsi-isp-2.5
bk://linux-scsi.bkbits.net/scsi-qla2xxx-2.5
To their latest respective versions.
I've tried building these:
Qlogic:
qla2100 still refuses to build, which is the only FC card I have. Also, I could do with the directory tree being laid out in a standard fashion (i.e. with the docs under Documentation/scsi like I've done in the BK tree).
Feral:
Still giving me a HPMC on parisc in isp_reset.
James
Quoted 6 lines · James Bottomley
I've tried building these:
Qlogic:
qla2100 still refuses to build, which is the only FC card I have.
Attached is a small patch against 8.00.00b3 that should get the qla2100 driver to build properly -- some residual ip codes that are not valid with isp2100 chips.
Quoted 4 lines
Also, I could do with the directory tree being laid out in a standard fashion (i.e. with the docs under
Documentation/scsilike I've done in the BK tree).
I'll make the changes before I release 8.00.00b4 (RSN).
--
Andrew Vasquez
Makefile +34 -22
@@ -5,33 +5,45 @@ ISPTYPES := qla2100 qla2200 qla2300 ISPDIRS := $(foreach dir, $(ISPTYPES), $(addsuffix /, $(addprefix .,$(dir)))) -ISP2100_FW := ql2100tp_fw.o -ISP2200_FW := ql2200ip_fw.o -ISP2300_FW := ql2300ipx_fw.o #ql2322tpx_fw.o - COMMON_SRCS := qla_os.c qla_init.c qla_mbx.c qla_iocb.c qla_isr.c qla_xioct.c \ - qla_inioct.c qla_ip.c qla_fo.c qla_cfg.c qla_cfgln.c qla_vendor.c \ - qla_dbg.c qla_sup.c -COMMON_OBJS := $(foreach file, $(COMMON_SRCS), $(patsubst %.c, %.o, $(file))) + qla_inioct.c qla_fo.c qla_cfg.c qla_cfgln.c qla_vendor.c qla_dbg.c qla_sup.c +ISP2100_SRCS := $(COMMON_SRCS) ql2100tp_fw.c +ISP2200_SRCS := $(COMMON_SRCS) qla_ip.c ql2200ip_fw.c +ISP2300_SRCS := $(COMMON_SRCS) qla_ip.c ql2300ipx_fw.c #ql2322tpx_fw.c +ISP2100_OBJS := $(foreach file, $(ISP2100_SRCS), $(patsubst %.c, %.o, $(file))) +ISP2200_OBJS := $(foreach file, $(ISP2200_SRCS), $(patsubst %.c, %.o, $(file))) +ISP2300_OBJS := $(foreach file, $(ISP2300_SRCS), $(patsubst %.c, %.o, $(file))) -ISP2100_DIR_SRCS := $(foreach file, $(COMMON_SRCS), $(addprefix .qla2100/,$(file))) -ISP2100_DIR_OBJS := $(foreach file, $(COMMON_OBJS), $(addprefix .qla2100/,$(file))) -ISP2200_DIR_SRCS := $(foreach file, $(COMMON_SRCS), $(addprefix .qla2200/,$(file))) -ISP2200_DIR_OBJS := $(foreach file, $(COMMON_OBJS), $(addprefix .qla2200/,$(file))) -ISP2300_DIR_SRCS := $(foreach file, $(COMMON_SRCS), $(addprefix .qla2300/,$(file))) -ISP2300_DIR_OBJS := $(foreach file, $(COMMON_OBJS), $(addprefix .qla2300/,$(file))) +ISP2100_DIR_SRCS := $(foreach file, $(ISP2100_SRCS), $(addprefix .qla2100/,$(file))) +ISP2200_DIR_SRCS := $(foreach file, $(ISP2200_SRCS), $(addprefix .qla2200/,$(file))) +ISP2300_DIR_SRCS := $(foreach file, $(ISP2300_SRCS), $(addprefix .qla2300/,$(file))) +ISP2100_DIR_OBJS := $(foreach file, $(ISP2100_OBJS), $(addprefix .qla2100/,$(file))) +ISP2200_DIR_OBJS := $(foreach file, $(ISP2200_OBJS), $(addprefix .qla2200/,$(file))) +ISP2300_DIR_OBJS := $(foreach file, $(ISP2300_OBJS), $(addprefix .qla2300/,$(file))) PREPALL := $(shell for dir in $(ISPDIRS) ; \ do \ if [ ! -d $(obj)/$${dir} ] ; then \ mkdir $(obj)/$${dir} ; \ fi ; \ - for link in $(foreach file, $(COMMON_OBJS), $(patsubst %.o, %.c, $(file))) ; \ - do \ - if [ ! -h $(obj)/$${dir}$${link} ] ; then \ - ln -sf ../$${link} $(obj)/$${dir}$${link} ; \ - fi ; \ - done \ + done ; \ + for link in $(ISP2100_SRCS) ; \ + do \ + if [ ! -h $(obj)/.qla2100/$${link} ] ; then \ + ln -sf ../$${link} $(obj)/.qla2100/$${link} ; \ + fi ; \ + done ; \ + for link in $(ISP2200_SRCS) ; \ + do \ + if [ ! -h $(obj)/.qla2200/$${link} ] ; then \ + ln -sf ../$${link} $(obj)/.qla2200/$${link} ; \ + fi ; \ + done ; \ + for link in $(ISP2300_SRCS) ; \ + do \ + if [ ! -h $(obj)/.qla2300/$${link} ] ; then \ + ln -sf ../$${link} $(obj)/.qla2300/$${link} ; \ + fi ; \ done) obj-$(CONFIG_SCSI_QLA2XXX_QLA21XX) += qla2100.o
@@ -46,8 +58,8 @@ $(src)/.qla2200/%: EXTRA_CFLAGS += -Dqla22xx $(src)/.qla2300/%: EXTRA_CFLAGS += -Dqla23xx -DEXTENDED_IDS -qla2100-objs := $(ISP2100_DIR_OBJS) $(ISP2100_FW) -qla2200-objs := $(ISP2200_DIR_OBJS) $(ISP2200_FW) -qla2300-objs := $(ISP2300_DIR_OBJS) $(ISP2300_FW) +qla2100-objs := $(ISP2100_DIR_OBJS) +qla2200-objs := $(ISP2200_DIR_OBJS) +qla2300-objs := $(ISP2300_DIR_OBJS) clean-files := $(ISP2100_DIR_SRCS) $(ISP2200_DIR_SRCS) $(ISP2300_DIR_SRCS)
qla_def.h +2 -0
@@ -60,6 +60,7 @@#include "exioct.h" #include "inioct.h" +#if !defined(ISP2100 )#define FC_IP_SUPPORT #if defined(FC_IP_SUPPORT )#include <linux/ip.h>
@@ -67,6 +68,7 @@#include <linux/skbuff.h> #include "qla_ip.h" #endif +#endif /*
Quoted 11 lines · James Bottomley
I've updated both these trees
bk://linux-scsi.bkbits.net/scsi-isp-2.5
bk://linux-scsi.bkbits.net/scsi-qla2xxx-2.5To their latest respective versions.
I've tried building these:
Qlogic:
Quoted 8 lines
qla2100 still refuses to build, which is the only FC card I have. Also, I could do with the directory tree being laid out in a standard fashion (i.e. with the docs under
Documentation/scsilike I've done in the BK tree).Feral:
Still giving me a HPMC on parisc in
isp_reset.
HPMC?
Quoted 1 line · Matthew Jacob
HPMC?
High Priority Machine Check. They usually occur if the driver pokes a non-existent register using I/O cycles, or a DMA transfer overruns or something. The parisc platform I use has an IOMMU as well.
James
Quoted 8 lines · Matthew Jacob
Quoted 1 line
HPMC?
High Priority Machine Check. They usually occur if the driver pokes a non-existent register using I/O cycles, or a DMA transfer overruns or something. The parisc platform I use has an IOMMU as well.
Oh- is parisc like PPC and doesn't really support io space? That is, prefers memory mapped registers?
-matt
Quoted 2 lines · Matthew Jacob
Oh- is parisc like PPC and doesn't really support io space? That is, prefers memory mapped registers?
Well, it does, for PCI (since it's required to by the spec). However, the cost of generating an I/O cycle is very high (you essentially go via some memory mapped registers in the bus controller). Parisc certainly prefers memory mapped registers.
James
Quoted 8 lines · James Bottomley
Quoted 2 lines · Matthew Jacob
Oh- is parisc like PPC and doesn't really support io space? That is, prefers memory mapped registers?
Well, it does, for PCI (since it's required to by the spec). However, the cost of generating an I/O cycle is very high (you essentially go via some memory mapped registers in the bus controller). Parisc certainly prefers memory mapped registers.
Is there hardware that supports both PIO and MMIO... and actually prefers PIO?
I know of no such situation -- outside of hardware bugs and driver bugs, which force the use of PIO, where both are available.
Pretty much everybody prefers memory mapped registers :)
Jeff
Quoted 10 lines
Is there hardware that supports both PIO and MMIO... and actually prefers PIO?
I know of no such situation -- outside of hardware bugs and driver bugs, which force the use of PIO, where both are available.
Pretty much everybody prefers memory mapped registers :)
Of course. But there are two things that mitigate MMIO vs. PIO-
a) Historically, MMIO has been buggy on ia32. This is no longer the case, but there definitely were a lot of platforms with this broken.
b) MMIO is consumption of mapping resources, while PIO isn't.
Quoted 2 lines · Matthew Jacob
a) Historically, MMIO has been buggy on ia32. This is no longer the case, but there definitely were a lot of platforms with this broken.
Could you elaborate?
What I've mostly found is (in order of frequency): coders unfamiliar with x86 CPU write coalescing/posting rules, and PCI boards whose hardware designs contain inherent races when driven in MMIO mode (particularly on CPUs with deeply posted writes).
Quoted 1 line
b) MMIO is consumption of mapping resources, while PIO isn't.
agreed
Jeff
Quoted 6 lines
Quoted 2 lines · Matthew Jacob
a) Historically, MMIO has been buggy on ia32. This is no longer the case, but there definitely were a lot of platforms with this broken.
Quoted 6 lines
Could you elaborate?
What I've mostly found is (in order of frequency): coders unfamiliar with x86 CPU write coalescing/posting rules, and PCI boards whose hardware designs contain inherent races when driven in MMIO mode (particularly on CPUs with deeply posted writes).
The latter, I believe.
Quoted 11 lines
Quoted 3 lines
b) MMIO is consumption of mapping resources, while PIO isn't.
agreed
Jeff