From owner-freebsd-stable@freebsd.org Fri Nov 17 10:20:00 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DAFCDC0658 for ; Fri, 17 Nov 2017 10:20:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA80426C5 for ; Fri, 17 Nov 2017 10:19:59 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by mail-pf0-x22c.google.com with SMTP id a84so1650626pfl.0 for ; Fri, 17 Nov 2017 02:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MvSvYj3UYYAF9opPn/vOgipvBypgpdjzfvrfeot+p4o=; b=NQeOeMgtDpyCGwkGumtFg1Ps2jCDNH6CfA8tvnsg6bNhRQHZchV0vcuPr9TRF7Vwfa xYrdCkotg4odoUQUqi7evRtKGDrRPNFOXSQImLLTmDaSlPC8K7/GpdyeShADfrnUk7Qk zVtaOH7XxIMrUtEInw9CjaPFqycW75DZijScucGdjm6u0u4B9fiGhmmhCtb4QOSdwg94 fKah6qsBIiJJbiHXPQ11wHP9b2oJdchcqdxC/RyMyjExzNpgHBSr+wDl4TKxZR5LfRkP qV/DnZGh7ry9DMMbaiX2Wa3BYmPjC28LT5b5mBXf0l0sj1GEPmDasbGRZRpxAvvwNTas 82aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=MvSvYj3UYYAF9opPn/vOgipvBypgpdjzfvrfeot+p4o=; b=Tv+z8Z75vdtsIroE46gVFu4uiKzKQmAkB16itPkqlwTB2j3c/rcl3/XNWThh4FQzaf zJIuh15rmM7udpyHOemR7lWxVGyqKb/jFR4PeumrJF+lExGSfbU1Ytl4nTe2zrKjOdZG xHm7kLgh6nsJd13sER0GCJULDY5Ip+1EitLCMNInUTS/NU2X7AmKTPt1YIYZPogFubN1 pAv+ohVZxMVuiZvwVeXOgquw8lOkDOnnB7EMPDO/yugB4RFSidSf/B5cBEQJQUY6kB/N PkOfbxipSgkU6q7INUlATWCiKyBnCAbIX96hTOXnXg8Sq++e5bkzvTGXXeYPjH0NiOKq uuvQ== X-Gm-Message-State: AJaThX5VuSkwnNU49xui12ie4HQHPh6HyONp6n/WwpYew4ZFaAOsRuuQ kqjtYc/JwubcyIYXpXw9Bg0OGg== X-Google-Smtp-Source: AGs4zMYS5pIn7ueVKGNJ1YLCPtu1zbCPRFjk/gVcMjYv2L/p6d5CB+Wn1S2y7Q+c2HA7K+Za/tjU7g== X-Received: by 10.98.64.141 with SMTP id f13mr1535683pfd.213.1510913999262; Fri, 17 Nov 2017 02:19:59 -0800 (PST) Received: from localhost ([116.46.79.128]) by smtp.gmail.com with ESMTPSA id s71sm7330703pfa.147.2017.11.17.02.19.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 02:19:58 -0800 (PST) From: YongHyeon PYUN X-Google-Original-From: "YongHyeon PYUN" Received: by localhost (sSMTP sendmail emulation); Fri, 17 Nov 2017 19:19:55 +0900 Date: Fri, 17 Nov 2017 19:19:55 +0900 To: Mike Black Cc: freebsd-stable Subject: Re: D-Link DGE530T issue Message-ID: <20171117101954.GA1246@michelle.fasterthan.co.kr> Reply-To: pyunyh@gmail.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2017 10:20:00 -0000 On Fri, Nov 17, 2017 at 09:55:03AM +0300, Mike Black wrote: > Hello. I looked into svn code for 8.3R and 11.1R and there seems no changes > in descriptors/identifiers. So I think that NIC is being wrongly identified > during startup process - it is being recognized with a wrong PCI VID. How > can this be checked or fixed? > I use a loadable kernel module after a startup, so there is no useful > messages during boot process. > It seems it's single bit error but if it's dying there would no way to get fixed. Given that pciconf(8) says VPD capability, try to read it(i.e. pciconf -lcbvV). Generally VPD contains a readable product string so you may be able to know whether there are other errors. If vendor ID is the only corrupted one, you can simply patch the device ID in the driver. > 15 нояб. 2017 г. 11:00 PM пользователь "Mike Black" > написал: > > > Hello > > > > I've got old PCI NIC D-Link DGE530T Rev 11 with SysKonnect chip on it. > > Years ago it worked in FreeBSD 8/9 Stable with if_sk driver. > > > > Now I'm runnig > > 11.1-STABLE FreeBSD 11.1-STABLE #1 r323214: Sat Nov 11 19:06:20 MSK 2017 > > amd_miek@diablo.miekoff.local:/usr/obj/usr/src/sys/DIABLO64 amd64 > > 1101502 1101502 > > > > But recently I plugged this card back and it's not being recognized by a > > driver. > > > > pciconf says that is > > none0@pci0:5:1:0: class=0x020000 card=0x4b011086 chip=0x4b011086 > > rev=0x11 hdr=0x00 > > vendor = 'J. Bond Computer Systems' > > class = network > > subclass = ethernet > > bar [10] = type Memory, range 32, base 0xfebec000, size 16384, > > enabled > > bar [14] = type I/O Port, range 32, base 0xee00, size 512, enabled > > cap 01[48] = powerspec 2 supports D0 D1 D2 D3 current D3 > > cap 03[50] = VPD > > > > According /usr/share/misc/pci_vendors this D-link should have 4b011186 not > > 4b011086. > > I looked into driver code (if_sk) and it expects 1186 card also. > > I googled about this issue but found no one similar in a recent years > > So I'd like to know what's wrong - some changes in driver in a recent > > years or smth going wrong while OS detecting this NIC. But that's > > confusing, because this exact NIC worked years ago... > > > > -- > > amd_miek > > Think different. > > Just superior.