From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fred Pedrisa Subject: RES: hw.nic_uio.bdfs Date: Wed, 26 Mar 2014 03:20:45 -0300 Message-ID: References: <013601cf48bb$0e1ed6a0$2a5c83e0$@stratosphere.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org To: "'Masaru Oki'" Return-path: In-Reply-To: <013601cf48bb$0e1ed6a0$2a5c83e0$@stratosphere.co.jp> Content-Language: pt-br List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hello, =20 You did not understand the purpose of that parameter, it is made to = =91avoid=92 nic_uio from pursuing the wanted NICs... so they are free to be used in = the system :) =20 Right now the code to handle it is wrong and I am trying to fix it = myself. =20 De: Masaru Oki [mailto:m-oki-kJJssGRo5Gr08ZWpFnN8/c8NsWr+9BEh@public.gmane.org]=20 Enviada em: quarta-feira, 26 de mar=E7o de 2014 03:16 Para: Fred Pedrisa Cc: dev-VfR2kkLFssw@public.gmane.org Assunto: Re: [dpdk-dev] hw.nic_uio.bdfs =20 Hi, I tried with Intel version 1.6.0 and FreeBSD 9.2-RELEASE on VMware = Player. kldload nic_uio by hand, works fine. But kldunload nic_uio only detach uio driver, don't re-attach kernel = driver. [oki@ ~]$ cat /boot/loader.conf ############################################################## ### User settings ########################################## ############################################################## hw.contigmem.num_buffers=3D64 hw.contigmem.buffer_size=3D2097152 hw.nic_uio.bdfs=3D"2:5:0,2:6:0" contigmem_load=3D"YES" #nic_uio_load=3D"YES" [oki@ ~]$ pciconf -l | egrep '(em|uio)' em0@pci0:2:1:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 em1@pci0:2:5:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 em2@pci0:2:6:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 [oki@ ~]$ kenv hw.nic_uio.bdfs 2:5:0,2:6:0 [oki@ ~]$ sudo kldload nic_uio Password: [oki@ ~]$ pciconf -l | egrep '(em|uio)' em0@pci0:2:1:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 nic_uio0@pci0:2:5:0: class=3D0x020000 card=3D0x075015ad = chip=3D0x100f8086 rev=3D0x01 hdr=3D0x00 nic_uio1@pci0:2:6:0: class=3D0x020000 card=3D0x075015ad = chip=3D0x100f8086 rev=3D0x01 hdr=3D0x00 [oki@ ~]$ sudo kldunload nic_uio [oki@ ~]$ pciconf -l | egrep '(em|uio)' em0@pci0:2:1:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 [oki@ ~]$ =20 2014-03-26 14:35 GMT+09:00 Fred Pedrisa : Hi, guys. This variable is not working as intended for FreeBSD :( It does not dettach nic_uio from the wanted ports :/ =20