let ciss(4) disks use all ccbs

2010-06-28 Thread David Gwynne
if ciss(4) has multiple disks on it, this should let any one of
those disks to use all the commands. with the iopools stuff thats
now in the tree, io on another disk should then be able to start
up and get a fair share.

i want a test from someone who has multiple LDs on a single ciss(4).

if you could run iogen on both disks at the same time, or find over
both of them while running this diff, that would be great.

Index: ciss.c
===
RCS file: /cvs/src/sys/dev/ic/ciss.c,v
retrieving revision 1.55
diff -u -p -r1.55 ciss.c
--- ciss.c  15 Jun 2010 04:11:34 -  1.55
+++ ciss.c  18 Jun 2010 10:54:37 -
@@ -369,7 +369,7 @@ ciss_attach(struct ciss_softc *sc)
 
sc-sc_link.device = ciss_dev;
sc-sc_link.adapter_softc = sc;
-   sc-sc_link.openings = sc-maxcmd / (sc-maxunits? sc-maxunits : 1);
+   sc-sc_link.openings = sc-maxcmd;
sc-sc_link.adapter = ciss_switch;
sc-sc_link.luns = 1;
sc-sc_link.adapter_target = sc-maxunits;



OMG, we have the same friend!!!!

2010-06-28 Thread carlicbufriends
Oh My God, I just know that we have the same friend
http://tickl.zoomshare.com/files/photos.htm



Re: Enable speedstep on nehalem (i3/5/7) cpus

2010-06-28 Thread Dawe
On Sat, 26 Jun 2010 23:48:15 -0600 (MDT)
g...@gwk.ca (Gordon Willem Klok) wrote:

 Hello this should make speedstep work on nehalem cpu's (i3, i5, i7s) where
 est uses acpi to get the available states. Please let me know of any
 issues
 
 gwk
 

Seems to work on my i5 notebook, running amd64 with apmd -C.
Thanks a lot.

$ sysctl hw
hw.machine=amd64
hw.model=Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0,cd0,sd1
hw.diskcount=3
hw.sensors.cpu0.temp0=31.00 degC
hw.sensors.cpu1.temp0=31.00 degC
hw.sensors.cpu2.temp0=31.00 degC
hw.sensors.cpu3.temp0=31.00 degC
hw.sensors.acpitz0.temp0=47.00 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.temp0=47.00 degC
hw.sensors.acpithinkpad0.temp1=47.00 degC
hw.sensors.acpithinkpad0.temp2=47.00 degC
hw.sensors.acpithinkpad0.temp3=47.00 degC
hw.sensors.acpithinkpad0.temp4=47.00 degC
hw.sensors.acpithinkpad0.temp5=47.00 degC
hw.sensors.acpithinkpad0.temp6=47.00 degC
hw.sensors.acpithinkpad0.temp7=47.00 degC
hw.sensors.acpithinkpad0.fan0=3589 RPM
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=1199
hw.setperf=0
hw.vendor=LENOVO
hw.product=25184QG
hw.version=ThinkPad T410
hw.serialno=R843DMF
hw.uuid=70391f81-5062-11cb-a825-b09ffc8d1830
hw.physmem=1998045184
hw.usermem=1997803520
hw.ncpufound=4

OpenBSD 4.7-current (GENERIC.MP) #4: Mon Jun 28 12:48:13 CEST 2010

r...@padtree.my.domain:/home/dawe/files/openbsd_cvs/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1998045184 (1905MB)
avail mem = 1931010048 (1841MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version 6IET55WW (1.15 ) date 03/24/2010
bios0: LENOVO 25184QG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.40 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz, 2261.00 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 5 (EXP4)
acpiprt6 at acpi0: bus 13 (EXP5)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2267, 2266, 2133, 1999, 1866, 1733, 
1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor Intel, unknown product 0x0044 rev 0x02
vga1 at pci0 dev 2 function 0 Intel Mobile HD graphics rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp at vga1 not configured
Intel 3400 MEI rev 0x06 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 Intel 82577LM rev 0x06: apic 1 int 20 (irq 11), 
address 00:26:2d:fb:c7:02
ehci0 at pci0 dev 26 function 0 Intel 3400 USB rev 0x06: apic 1 int 23 (irq 
11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI 

Re: Add support to AR5424

2010-06-28 Thread Luis Henriques
Hi Tom,

On Mon, Jun 28, 2010 at 12:26 PM, Tom Murphy open...@pertho.net wrote:
 On 21/05/10 18:42, Giovanni Bechis wrote:
 Il 21/05/2010 19.31, Tom Murphy ha scritto:
Is there any update on this? Is it possible to get the chipset
 working?

 At least latest version breaks this chip (found on IBM x40):
 ath0 at pci1 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01:
 irq 11
 ath0: AR5213A 5.9 phy 4.3 rf5112a 3.6, MKK2A
  Cheers
   Giovanni

 Hi all,

  Any chance to get this patch work ingon the AR5424 in Asus 4g (701)
 laptops? The aforementioned patch here at least gets the machine no
 longer locking up so I think it would be a good candidate for going into
 the tree.

Unfortunately, I've not been able to spend too much time on this.
Besides, its something very difficult for me to get more envolved on
because 1) I do not have the hardware for testing and 2) I do not have
the knowledge on wifi network cards.

(btw, have you tried the latest patch I sent?)

--
Luis Henriques



Re: Add support to AR5424

2010-06-28 Thread Tom Murphy
On 21/05/10 18:42, Giovanni Bechis wrote:
 Il 21/05/2010 19.31, Tom Murphy ha scritto:
Is there any update on this? Is it possible to get the chipset
 working?

 At least latest version breaks this chip (found on IBM x40):
 ath0 at pci1 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01:
 irq 11
 ath0: AR5213A 5.9 phy 4.3 rf5112a 3.6, MKK2A
  Cheers
   Giovanni

Hi all,

  Any chance to get this patch work ingon the AR5424 in Asus 4g (701)
laptops? The aforementioned patch here at least gets the machine no
longer locking up so I think it would be a good candidate for going into
the tree.

  Tom



JOS� LUIS GIOJA, El gobernador con mejor imagen del pa�s

2010-06-28 Thread Opini�n P�blica - Argentina
p./p



Cozinha Compacta Civardi apenas 699,00 à vista!

2010-06-28 Thread Colombo.com.br
Se nco estiver visualizando, clique no link abaixo ou cole este endereco
no navegador:
http://www.colombo.com.br/promo/email_msg_011/email_msg_011.htm
http://www.colombo.com.br/promo/email_msg_011/email_msg_011.htm
Renove a Sua Casa com a Colombo.
http://www.colombo.com.br/produto/Moveis?utm_source=mailmarkutm_medium
=emailutm_content=utm_campaign=Email+MSG+011+-+Especial+Moveis
Curva Ipanema - Oryon Estof.
http://www.colombo.com.br/produto/Moveis/Curva+Ipanema+Oryon+Estof+?utm
_source=mailmarkutm_medium=emailutm_content=Curva+Ipanema+Oryon+Estof
utm_campaign=Email+MSG+011+-+Especial+Moveis
Cozinha Compacta Bruna 860 - Civardi
http://www.colombo.com.br/produto/Moveis/Cozinha+Compacta+Bruna+860+Civ
ardi?utm_source=mailmarkutm_medium=emailutm_content=Cozinha+Compacta+B
runa+860+Civardiutm_campaign=Email+MSG+011+-+Especial+Moveis  Roupeiro
6 Portas 3 Gavetas Xangai - Araplac
http://www.colombo.com.br/produto/Moveis/Roupeiro+6+Portas+3+Gavetas+Xa
ngai+Araplac?utm_source=mailmarkutm_medium=emailutm_content=Roupeiro+6
+Portas+3+Gavetas+Xangai+Araplacutm_campaign=Email+MSG+011+-+Especial+M
oveis
Rack Cedro - Caemmun
http://www.colombo.com.br/produto/Moveis/Rack+Cedro+Caemmun?utm_source=
mailmarkutm_medium=emailutm_content=Rack+Cedro+Caemmunutm_campaign=Em
ail+MSG+011+-+Especial+Moveis  Balcco Forno Politorno 320632
http://www.colombo.com.br/produto/Moveis/Balcao+Forno+Politorno+320632?
utm_source=mailmarkutm_medium=emailutm_content=Balcao+Forno+Politorno+
320632utm_campaign=Email+MSG+011+-+Especial+Moveis
Colchco i na Colombo.
http://www.colombo.com.br/pesquisa/colchao?q=0ordem=3utm_source=mailm
arkutm_medium=emailutm_content=Banner+Colchoesutm_campaign=Email+MSG+
011+-+Especial+Moveis
Confira toda a linha de TVs de LED.
http://www.colombo.com.br/produto/Som-e-Video/TV-LED?familia=179ordem=
2utm_source=mailmarkutm_medium=emailutm_content=Banner+TVs+LEDutm_ca
mpaign=Email+MSG+011+-+Especial+Moveis
Colombo.com.br
http://www.colombo.com.br/index.do?utm_source=mailmarkutm_medium=email
utm_content=Menuutm_campaign=Email+MSG+011+-+Especial+Moveis

http://www.colombo.com.br/index.do?utm_source=mailmarkutm_medium=email
utm_content=Menuutm_campaign=Email+MSG+011+-+Especial+Moveis
Livros
http://www.colombo.com.br/produto/Livros?utm_source=mailmarkutm_medium
=emailutm_content=Menu+-+Livrosutm_campaign=Email+MSG+011+-+Especial+M
oveis  Som e Vmdeo
http://www.colombo.com.br/produto/Som-e-Video?utm_source=mailmarkutm_m
edium=emailutm_content=Menu+-+Som+e+Videoutm_campaign=Email+MSG+011+-+
Especial+MoveisEletrodomisticos
http://www.colombo.com.br/produto/Eletrodomesticos?utm_source=mailmark;
utm_medium=emailutm_content=Menu+-+Eletrodomesticosutm_campaign=Email+
MSG+011+-+Especial+Moveis  Cine e Foto
http://www.colombo.com.br/produto/Som-e-Video/Cine-Foto?utm_source=mail
markutm_medium=emailutm_content=Menu+-+Cine+e+Fotoutm_campaign=Email+
MSG+011+-+Especial+Moveis  Telefonia
http://www.colombo.com.br/produto/Telefonia?utm_source=mailmarkutm_med
ium=emailutm_content=Menu+-+Telefoniautm_campaign=Email+MSG+011+-+Espe
cial+Moveis
http://www.colombo.com.br/index.do?utm_source=mailmarkutm_medium=email
utm_content=Menuutm_campaign=Email+MSG+011+-+Especial+Moveis

http://www.colombo.com.br/index.do?utm_source=mailmarkutm_medium=email
utm_content=Menuutm_campaign=Email+MSG+011+-+Especial+Moveis
Informatica
http://www.colombo.com.br/produto/Informatica?utm_source=mailmarkutm_m
edium=emailutm_content=Menu+-+Informaticautm_campaign=Email+MSG+011+-+
Especial+MoveisEsporte e Lazer
http://www.colombo.com.br/produto/Esporte-e-Lazer?utm_source=mailmarku
tm_medium=emailutm_content=Menu+-+Esporte+e+Lazerutm_campaign=Email+MS
G+011+-+Especial+MoveisPortateis
http://www.colombo.com.br/produto/Portateis?utm_source=mailmarkutm_med
ium=emailutm_content=Menu+-+Portateisutm_campaign=Email+MSG+011+-+Espe
cial+MoveisMsveis
http://www.colombo.com.br/produto/Moveis?utm_source=mailmarkutm_medium
=emailutm_content=Menu+-+Moveisutm_campaign=Email+MSG+011+-+Especial+M
oveis  Sazde e Beleza
http://www.colombo.com.br/produto/Saude-e-Beleza?utm_source=mailmarkut
m_medium=emailutm_content=Menu+-+Saude+e+Belezautm_campaign=Email+MSG+
011+-+Especial+Moveis
http://www.colombo.com.br/index.do?utm_source=mailmarkutm_medium=email
utm_content=Menuutm_campaign=Email+MSG+011+-+Especial+Moveis
Confira os outros departamentos.
http://www.colombo.com.br/index.do?utm_source=mailmarkutm_medium=email
utm_content=Menuutm_campaign=Email+MSG+011+-+Especial+Moveis


Twitter Colombo. http://twitter.com/lojas_colombo/Assine nosso
RSS.
http://www.colombo.com.br/rss.do?utm_source=mailmarkutm_medium=emailu
tm_content=Assine+RSSutm_campaign=Email+MSG+011+-+Especial+Moveis
Medalha do ebit.
http://www.ebit.com.br/lojas_virtuais/html/rateloja.asp?PnumNumEmpresa=
829

Parcelamento apenas nas compras feitas com cartco, i cobrada uma taxa de
ati 1,99% ao mjs e 26,68% ao ano. Parcela mmnima de R$ 9,90.
Promogco valida ati dia 29/06, somente para Internet e 

802.1X - WPA enterprise mode not yet supported ?

2010-06-28 Thread Christopher Zimmermann

Hi,

it just took me 2 hours to figure out that OpenBSD does not yet
support the WPA enterprise mode (aka 802.1X). Is this actually
true? If yes, please include the patch below to make this clear
in the man page.

I like the high quality of the OpenBSD manpages, but today I
really spent 2 hours searching where to put my certificates.


Christopher


Index: sbin/ifconfig/ifconfig.8
===
RCS file: /cvs/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.202
diff -u -p -r1.202 ifconfig.8
--- sbin/ifconfig/ifconfig.828 May 2010 13:23:43 -  1.202
+++ sbin/ifconfig/ifconfig.828 Jun 2010 17:58:11 -
@@ -980,8 +980,8 @@ and
 .Ar psk
 authentication (also known as personal mode) uses a 256-bit pre-shared 
key.

 .Ar 802.1x
-authentication (also known as enterprise mode) is meant to be used with
-an external IEEE 802.1X authentication server.
+authentication (also known as enterprise mode; not yet supported) is 
meant to

+be used with an external IEEE 802.1X authentication server.
 The default value is
 .Dq psk .
 .Dq psk



Re: Enable speedstep on nehalem (i3/5/7) cpus

2010-06-28 Thread Janne Johansson
Seems to work on my i7-930 in amd64 mode also.

2010/6/28 Dawe dawed...@gmx.de

 On Sat, 26 Jun 2010 23:48:15 -0600 (MDT)
 g...@gwk.ca (Gordon Willem Klok) wrote:

  Hello this should make speedstep work on nehalem cpu's (i3, i5, i7s)
 where
  est uses acpi to get the available states. Please let me know of any
  issues

 Seems to work on my i5 notebook, running amd64 with apmd -C.
 Thanks a lot.


-- 
To our sweethearts and wives.  May they never meet. -- 19th century toast



bnx(4) flow control support.

2010-06-28 Thread Brad
Here is an older diff I had to add flow control support to bnx(4)
which I have dug out and updated to -current src. I have tested
it with the following adapters and could use some testing with a
BCM5709 chipset. This supports flow control on all copper adapters
and BCM5706 with fiber, but not BCM5708/BCM5709 with fiber yet.

bnx0 at pci1 dev 7 function 0 Broadcom BCM5706 rev 0x02: apic 2 int 16 (irq 
12)
bnx0: address 00:10:18:15:f8:8a
brgphy1 at bnx0 phy 1: BCM5706 10/100/1000baseT/SX PHY, rev. 2

bnx1 at pci5 dev 0 function 0 Broadcom BCM5708 rev 0x11: apic 2 int 16 (irq 
12)
bnx1: address 00:10:18:15:fa:3e
brgphy2 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5

Please test with any bnx(4) chipsets and provide a dmesg.


Index: if_bnx.c
===
RCS file: /cvs/src/sys/dev/pci/if_bnx.c,v
retrieving revision 1.88
diff -u -p -r1.88 if_bnx.c
--- if_bnx.c24 May 2010 21:23:23 -  1.88
+++ if_bnx.c28 Jun 2010 19:15:52 -
@@ -913,6 +913,9 @@ bnx_attachhook(void *xsc)
/* Look for our PHY. */
ifmedia_init(sc-bnx_mii.mii_media, 0, bnx_ifmedia_upd,
bnx_ifmedia_sts);
+   if (BNX_CHIP_NUM(sc) == BNX_CHIP_NUM_5706 ||
+   (!(sc-bnx_phy_flags  BNX_PHY_SERDES_FLAG)))
+   mii_flags |= MIIF_DOPAUSE;
if (sc-bnx_phy_flags  BNX_PHY_SERDES_FLAG)
mii_flags |= MIIF_HAVEFIBER;
mii_attach(sc-bnx_dev, sc-bnx_mii, 0x,
@@ -1279,6 +1282,7 @@ bnx_miibus_statchg(struct device *dev)
 {
struct bnx_softc*sc = (struct bnx_softc *)dev;
struct mii_data *mii = sc-bnx_mii;
+   u_int32_t   rx_mode = sc-rx_mode;
int val;
 
val = REG_RD(sc, BNX_EMAC_MODE);
@@ -1286,6 +1290,15 @@ bnx_miibus_statchg(struct device *dev)
BNX_EMAC_MODE_MAC_LOOP | BNX_EMAC_MODE_FORCE_LINK | 
BNX_EMAC_MODE_25G);
 
+   /*
+* Get flow control negotiation result.
+*/
+   if (IFM_SUBTYPE(mii-mii_media.ifm_cur-ifm_media) == IFM_AUTO 
+   (mii-mii_media_active  IFM_ETH_FMASK) != sc-bnx_flowflags) {
+   sc-bnx_flowflags = mii-mii_media_active  IFM_ETH_FMASK;
+   mii-mii_media_active = ~IFM_ETH_FMASK;
+   }
+
/* Set MII or GMII interface based on the speed
 * negotiated by the PHY.
 */
@@ -1325,6 +1338,34 @@ bnx_miibus_statchg(struct device *dev)
DBPRINT(sc, BNX_INFO, Setting Full-Duplex interface.\n);
 
REG_WR(sc, BNX_EMAC_MODE, val);
+
+   /*
+* 802.3x flow control
+*/
+   if (sc-bnx_flowflags  IFM_ETH_RXPAUSE) {
+   DBPRINT(sc, BNX_INFO, Enabling RX mode flow control.\n);
+   rx_mode |= BNX_EMAC_RX_MODE_FLOW_EN;
+   } else {
+   DBPRINT(sc, BNX_INFO, Disabling RX mode flow control.\n);
+   rx_mode = ~BNX_EMAC_RX_MODE_FLOW_EN;
+   }
+
+   if (sc-bnx_flowflags  IFM_ETH_TXPAUSE) {
+   DBPRINT(sc, BNX_INFO, Enabling TX mode flow control.\n);
+   BNX_SETBIT(sc, BNX_EMAC_TX_MODE, BNX_EMAC_TX_MODE_FLOW_EN);
+   } else {
+   DBPRINT(sc, BNX_INFO, Disabling TX mode flow control.\n);
+   BNX_CLRBIT(sc, BNX_EMAC_TX_MODE, BNX_EMAC_TX_MODE_FLOW_EN);
+   }
+
+   /* Only make changes if the recive mode has actually changed. */
+   if (rx_mode != sc-rx_mode) {
+   DBPRINT(sc, BNX_VERBOSE, Enabling new receive mode: 0x%08X\n,
+   rx_mode);
+
+   sc-rx_mode = rx_mode;
+   REG_WR(sc, BNX_EMAC_RX_MODE, rx_mode);
+   }
 }
 
 //
@@ -3954,6 +3995,13 @@ bnx_init_rx_context(struct bnx_softc *sc
val = BNX_L2CTX_CTX_TYPE_CTX_BD_CHN_TYPE_VALUE |
BNX_L2CTX_CTX_TYPE_SIZE_L2 | (0x02  8);
 
+   /*
+* Set the level for generating pause frames
+* when the number of available rx_bd's gets
+* too low (the low watermark) and the level
+* when pause frames can be stopped (the high
+* watermark).
+*/
if (BNX_CHIP_NUM(sc) == BNX_CHIP_NUM_5709) {
u_int32_t lo_water, hi_water;
 
@@ -3967,7 +4015,8 @@ bnx_init_rx_context(struct bnx_softc *sc
hi_water = 0xf;
else if (hi_water == 0)
lo_water = 0;
-   val |= lo_water |
+
+   val |= (lo_water  BNX_L2CTX_RX_LO_WATER_MARK_SHIFT) |
(hi_water  BNX_L2CTX_RX_HI_WATER_MARK_SHIFT);
}
 
@@ -4202,8 +4251,9 @@ bnx_ifmedia_sts(struct ifnet *ifp, struc
mii = sc-bnx_mii;
 
mii_pollstat(mii);
-   ifmr-ifm_active = mii-mii_media_active;
ifmr-ifm_status = mii-mii_media_status;
+   ifmr-ifm_active = (mii-mii_media_active  ~IFM_ETH_FMASK) |
+   sc-bnx_flowflags;
 

pxeboot hd0a:/bsd tries to nfs_boot...

2010-06-28 Thread Nick Bender
Hi All,

First the problem. Once a machine is automatically installed we want to
change things so that it will boot from the hard drive. We have two
possibilities.

The first is to arrange so that the machine will boot first from the network
and then from the hard drive. Once the install succeeds remove the
dhcpd.conf entry and allow the pxeboot to timeout with no response.
Works fine with only a small delay for the timeout.

The second possibility is to allow the machine to pxeboot but tell it to boot
from the hard drive with the newly installed system. If I do a standard install
on wd0 and then tell pxeboot to use hd0a:/bsd the kernel will boot from
wd0a but then it notices that it is pxebooting and tries to do an nfs_boot.
Since I don't have diskless booting that fails and results in:

  panic: reverse arp not answered by rarpd(8) or dhcpd(8)

boot(8) tells me to pass -a to have it prompt for the root device which
works but that doesn't help if your not at the console (it also asks for the
swap device).

Before I start spelunking does anyone have any tips on how to set the
root and swap device from boot.conf or any pointers to code where that
capability might be added? Acceptable answers include that's stupid
just let pxeboot timeout because you have to change something and
it might as well be dhcp as /tftpboot/etc.

Thanks,
-N



Re: pxeboot hd0a:/bsd tries to nfs_boot...

2010-06-28 Thread guilherme m. schroeder
On Mon, Jun 28, 2010 at 5:30 PM, Theo de Raadt dera...@cvs.openbsd.org
wrote:
 First the problem. Once a machine is automatically installed we want to
 change things so that it will boot from the hard drive. We have two
 possibilities.

 The first is to arrange so that the machine will boot first from the
network
 and then from the hard drive. Once the install succeeds remove the
 dhcpd.conf entry and allow the pxeboot to timeout with no response.
 Works fine with only a small delay for the timeout.

 The second possibility is to allow the machine to pxeboot but tell it to
boot
 from the hard drive with the newly installed system. If I do a standard
install
 on wd0 and then tell pxeboot to use hd0a:/bsd the kernel will boot from
 wd0a but then it notices that it is pxebooting and tries to do an
nfs_boot.
 Since I don't have diskless booting that fails and results in:

   panic: reverse arp not answered by rarpd(8) or dhcpd(8)

 boot(8) tells me to pass -a to have it prompt for the root device which
 works but that doesn't help if your not at the console (it also asks for
the
 swap device).

 Before I start spelunking does anyone have any tips on how to set the
 root and swap device from boot.conf or any pointers to code where that
 capability might be added? Acceptable answers include that's stupid
 just let pxeboot timeout because you have to change something and
 it might as well be dhcp as /tftpboot/etc.

 There is no way to do what you want.

Maybe if the machine have ipmi(4), you can change the bootdev using
ipmitool after the installation?



Re: pxeboot hd0a:/bsd tries to nfs_boot...

2010-06-28 Thread Ted Unangst
You can build a kernel that knows where root is.  man config

On Mon, Jun 28, 2010 at 3:52 PM, Nick Bender nben...@gmail.com wrote:
 Hi All,

 First the problem. Once a machine is automatically installed we want to
 change things so that it will boot from the hard drive. We have two
 possibilities.

 The first is to arrange so that the machine will boot first from the
network
 and then from the hard drive. Once the install succeeds remove the
 dhcpd.conf entry and allow the pxeboot to timeout with no response.
 Works fine with only a small delay for the timeout.

 The second possibility is to allow the machine to pxeboot but tell it to
boot
 from the hard drive with the newly installed system. If I do a standard
install
 on wd0 and then tell pxeboot to use hd0a:/bsd the kernel will boot from
 wd0a but then it notices that it is pxebooting and tries to do an nfs_boot.
 Since I don't have diskless booting that fails and results in:

  panic: reverse arp not answered by rarpd(8) or dhcpd(8)

 boot(8) tells me to pass -a to have it prompt for the root device which
 works but that doesn't help if your not at the console (it also asks for
the
 swap device).

 Before I start spelunking does anyone have any tips on how to set the
 root and swap device from boot.conf or any pointers to code where that
 capability might be added? Acceptable answers include that's stupid
 just let pxeboot timeout because you have to change something and
 it might as well be dhcp as /tftpboot/etc.

 Thanks,
 -N



Architecture and development specification

2010-06-28 Thread Hudson Flavio V Mateus
Hello,

I know that this list isn't a tech support list of type how to use, but I
was looking for a specification for OpenBSD architecture (like FreeBSD) and
I didn't find. Is there one?

Thanks a lot!



Re: patch for wss(4), pss(4), ym(4) and gus(4) needs testing

2010-06-28 Thread Jacob Meuser
On Sun, Jun 13, 2010 at 08:58:17AM +, Jacob Meuser wrote:

 I haven't gotten any test results on this yet

it will be committed in the next day or so, so test and/or speak up
now if you care.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



4K Sector Disks

2010-06-28 Thread J.C. Roberts
dlg,

It took me weeks and a few failed attempts with various disk
manufacturers, but it's done, and we have victory!

The value from the modified atactl output for reg 106: 4000

Finally it seems we have a disk that is properly showing us 4k sectors
rather than lying. I kind of guessed this disk might be correct 
considering the performance drop in 512b benchmarks compared to 4k and
larger benchmarks.

I won't be home for a week, but if you can't find a Crucial C300
locally in .au, let me know and I'll deal with it.

jcr

Model: C300-CTFDDAC256MAG, Rev: 0001, Serial #: 1015C87C
Device type: ATA, fixed
Cylinders: 16383, heads: 16, sec/track: 63, total sectors: 500118192
Device capabilities:
ATA standby timer values
IORDY operation
IORDY disabling
Device supports the following standards:
ATA-4 ATA-5 ATA-6 ATA-7 ATA-8 
Device supports the following command sets:
NOP command
READ BUFFER command
WRITE BUFFER command
Host Protected Area feature set
Read look-ahead
Write cache
Power Management feature set
Security Mode feature set
SMART feature set
Flush Cache Ext command
Flush Cache command
Device Configuration Overlay feature set
48bit address feature set
Set Max security extension commands
Power-up in standby feature set
Advanced Power Management feature set
DOWNLOAD MICROCODE command
IDLE IMMEDIATE with UNLOAD FEATURE
SMART self-test
SMART error logging
Device has enabled the following command sets/features:
NOP command
READ BUFFER command
WRITE BUFFER command
Host Protected Area feature set
Read look-ahead
Write cache
Power Management feature set
SMART feature set
Flush Cache Ext command
Flush Cache command
Device Configuration Overlay feature set
48bit address feature set
DOWNLOAD MICROCODE command
  0: 0x045a
  1: 0x3fff
  2: 0x
  3: 0x0010
  4: 0x7e00
  5: 0x
  6: 0x003f
  7: 0x03d3
  8: 0xfdd0
  9: 0x
 10: 0x3030
 11: 0x3030
 12: 0x3030
 13: 0x3030
 14: 0x3031
 15: 0x3531
 16: 0x3030
 17: 0x3030
 18: 0x3843
 19: 0x4337
 20: 0x
 21: 0x
 22: 0x
 23: 0x3030
 24: 0x3130
 25: 0x
 26: 0x
 27: 0x3343
 28: 0x3030
 29: 0x432d
 30: 0x4654
 31: 0x
 32: 0x4341
 33: 0x3532
 34: 0x4d36
 35: 0x4741
 36: 0x
 37: 0x
 38: 0x
 39: 0x
 40: 0x
 41: 0x
 42: 0x
 43: 0x
 44: 0x
 45: 0x
 46: 0x
 47: 0x8010
 48: 0x4000
 49: 0x2f00
 50: 0x4000
 51: 0x
 52: 0x
 53: 0x0007
 54: 0x3fff
 55: 0x0010
 56: 0x003f
 57: 0x32b0
 58: 0x1dcf
 59: 0x0110
 60: 0x
 61: 0x0fff
 62: 0x
 63: 0x0007
 64: 0x0003
 65: 0x0078
 66: 0x0078
 67: 0x0078
 68: 0x0078
 69: 0x
 70: 0x
 71: 0x
 72: 0x
 73: 0x
 74: 0x
 75: 0x001f
 76: 0x070e
 77: 0x
 78: 0x004c
 79: 0x0040
 80: 0x01f0
 81: 0x0028
 82: 0x746b
 83: 0x7d29
 84: 0x6173
 85: 0x7469
 86: 0xbc01
 87: 0x6163
 88: 0x407f
 89: 0x0005
 90: 0x0005
 91: 0x00fe
 92: 0x
 93: 0x
 94: 0x
 95: 0x0040
 96: 0x0100
 97: 0x0100
 98: 0x
 99: 0x0001
100: 0x32b0
101: 0x1dcf
102: 0x
103: 0x
104: 0x0100
105: 0x
106: 0x4000
107: 0x
108: 0x5075
109: 0x00a1
110: 0x7cc8
111: 0x
112: 0x
113: 0x
114: 0x
115: 0x
116: 0x
117: 0x
118: 0x
119: 0x401e
120: 0x401c
121: 0x
122: 0x
123: 0x
124: 0x
125: 0x
126: 0x
127: 0x
128: 0x0029
129: 0x3030
130: 0x3031
131: 0x2e45
132: 0x312e
133: 0x3030
134: 0x
135: 0x
136: 0x
137: 0x3334
138: 0x3639
139: 0x2020
140: 0x2020
141: 0x3342
142: 0x4c36
143: 0x
144: 0x
145: 0x
146: 0x
147: 0x
148: 0x
149: 0x
150: 0x
151: 0x
152: 0x
153: 0x
154: 0x
155: 0x
156: 0x
157: 0x
158: 0x
159: 0x
160: 0x
161: 0x
162: 0x
163: 0x
164: 0x
165: 0x
166: 0x
167: 0x
168: 0x
169: 0x0001
170: 0x
171: 0x
172: 0x
173: 0x
174: 0x
175: 0x
176: 0x
177: 0x
178: 0x
179: 0x
180: 0x
181: 0x
182: 0x
183: 0x
184: 0x
185: 0x
186: 0x
187: 0x
188: 0x
189: 0x
190: 0x
191: 0x
192: 0x
193: 0x
194: 0x
195: 0x
196: 0x
197: 0x
198: 0x
199: 0x
200: 0x
201: 0x
202: 0x
203: 0x
204: 0x
205: 0x
206: 0x003d
207: 0x
208: 0x
209: 0x4000
210: 0x
211: 0x
212: 0x
213: 0x
214: 0x
215: 0x
216: 0x
217: 0x0001
218: 0x
219: 0x
220: 0x
221: 0x
222: 0x
223: 0x
224: 0x
225: 0x
226: 0x
227: 0x
228: 0x
229: 0x
230: 0x
231: 0x
232: 0x
233: 0x
234: 0x0001
235: 0x00ff
236: 0x
237: 0x
238: 0x
239: 0x
240: 0x
241: 0x
242: 0x
243: 0x
244: 0x
245: 0x
246: 

Re: 4K Sector Disks

2010-06-28 Thread David Gwynne
On 29/06/2010, at 12:20 PM, J.C. Roberts wrote:

 dlg,

 It took me weeks and a few failed attempts with various disk
 manufacturers, but it's done, and we have victory!

 The value from the modified atactl output for reg 106: 4000

 Finally it seems we have a disk that is properly showing us 4k sectors
 rather than lying. I kind of guessed this disk might be correct
 considering the performance drop in 512b benchmarks compared to 4k and
 larger benchmarks.

 I won't be home for a week, but if you can't find a Crucial C300
 locally in .au, let me know and I'll deal with it.

unfortunately 0x4000 doesnt mean the physical block size is 4k. it means that
the low bits of that field are a valid representation of the block size.
0x4000 is saying there is a 1:1 map from physical to logical blocks.

see atascsi.h:

u_int16_t   p2l_sect;   /* 106 */
#define ATA_ID_P2L_SECT_MASK0xc000
#define ATA_ID_P2L_SECT_VALID   0x4000
#define ATA_ID_P2L_SECT_SET 0x2000
#define ATA_ID_P2L_SECT_SIZESET 0x1000
#define ATA_ID_P2L_SECT_SIZE0x000f

169 is cool though ;)

u_int16_t   data_set_mgmt;  /* 169 */
#define ATA_ID_DATA_SET_MGMT_TRIM 0x0001

dlg


   jcr

 Model: C300-CTFDDAC256MAG, Rev: 0001, Serial #: 1015C87C
 Device type: ATA, fixed
 Cylinders: 16383, heads: 16, sec/track: 63, total sectors: 500118192
 Device capabilities:
   ATA standby timer values
   IORDY operation
   IORDY disabling
 Device supports the following standards:
 ATA-4 ATA-5 ATA-6 ATA-7 ATA-8
 Device supports the following command sets:
   NOP command
   READ BUFFER command
   WRITE BUFFER command
   Host Protected Area feature set
   Read look-ahead
   Write cache
   Power Management feature set
   Security Mode feature set
   SMART feature set
   Flush Cache Ext command
   Flush Cache command
   Device Configuration Overlay feature set
   48bit address feature set
   Set Max security extension commands
   Power-up in standby feature set
   Advanced Power Management feature set
   DOWNLOAD MICROCODE command
   IDLE IMMEDIATE with UNLOAD FEATURE
   SMART self-test
   SMART error logging
 Device has enabled the following command sets/features:
   NOP command
   READ BUFFER command
   WRITE BUFFER command
   Host Protected Area feature set
   Read look-ahead
   Write cache
   Power Management feature set
   SMART feature set
   Flush Cache Ext command
   Flush Cache command
   Device Configuration Overlay feature set
   48bit address feature set
   DOWNLOAD MICROCODE command
  0: 0x045a
  1: 0x3fff
  2: 0x
  3: 0x0010
  4: 0x7e00
  5: 0x
  6: 0x003f
  7: 0x03d3
  8: 0xfdd0
  9: 0x
 10: 0x3030
 11: 0x3030
 12: 0x3030
 13: 0x3030
 14: 0x3031
 15: 0x3531
 16: 0x3030
 17: 0x3030
 18: 0x3843
 19: 0x4337
 20: 0x
 21: 0x
 22: 0x
 23: 0x3030
 24: 0x3130
 25: 0x
 26: 0x
 27: 0x3343
 28: 0x3030
 29: 0x432d
 30: 0x4654
 31: 0x
 32: 0x4341
 33: 0x3532
 34: 0x4d36
 35: 0x4741
 36: 0x
 37: 0x
 38: 0x
 39: 0x
 40: 0x
 41: 0x
 42: 0x
 43: 0x
 44: 0x
 45: 0x
 46: 0x
 47: 0x8010
 48: 0x4000
 49: 0x2f00
 50: 0x4000
 51: 0x
 52: 0x
 53: 0x0007
 54: 0x3fff
 55: 0x0010
 56: 0x003f
 57: 0x32b0
 58: 0x1dcf
 59: 0x0110
 60: 0x
 61: 0x0fff
 62: 0x
 63: 0x0007
 64: 0x0003
 65: 0x0078
 66: 0x0078
 67: 0x0078
 68: 0x0078
 69: 0x
 70: 0x
 71: 0x
 72: 0x
 73: 0x
 74: 0x
 75: 0x001f
 76: 0x070e
 77: 0x
 78: 0x004c
 79: 0x0040
 80: 0x01f0
 81: 0x0028
 82: 0x746b
 83: 0x7d29
 84: 0x6173
 85: 0x7469
 86: 0xbc01
 87: 0x6163
 88: 0x407f
 89: 0x0005
 90: 0x0005
 91: 0x00fe
 92: 0x
 93: 0x
 94: 0x
 95: 0x0040
 96: 0x0100
 97: 0x0100
 98: 0x
 99: 0x0001
 100: 0x32b0
 101: 0x1dcf
 102: 0x
 103: 0x
 104: 0x0100
 105: 0x
 106: 0x4000
 107: 0x
 108: 0x5075
 109: 0x00a1
 110: 0x7cc8
 111: 0x
 112: 0x
 113: 0x
 114: 0x
 115: 0x
 116: 0x
 117: 0x
 118: 0x
 119: 0x401e
 120: 0x401c
 121: 0x
 122: 0x
 123: 0x
 124: 0x
 125: 0x
 126: 0x
 127: 0x
 128: 0x0029
 129: 0x3030
 130: 0x3031
 131: 0x2e45
 132: 0x312e
 133: 0x3030
 134: 0x
 135: 0x
 136: 0x
 137: 0x3334
 138: 0x3639
 139: 0x2020
 140: 0x2020
 141: 0x3342
 142: 0x4c36
 143: 0x
 144: 0x
 145: 0x
 146: 0x
 147: 0x
 148: 0x
 149: 0x
 150: 0x
 151: 0x
 152: 0x
 153: 0x
 154: 0x
 155: 0x
 156: 0x
 157: 0x
 158: 0x
 159: 0x
 160: 0x
 161: 0x
 162: 0x
 163: 0x
 164: 0x
 165: 0x
 166: 0x
 167: 0x
 168: 0x
 169: 0x0001
 170: 0x
 171: 0x
 172: 0x
 173: 0x
 174: 0x
 175: 0x
 176: 0x
 177: 0x
 178: 0x
 179: 0x
 180: 0x
 181: 0x
 182: 0x
 183: 0x
 184: 0x
 185: 0x
 186: 0x