From owner-freebsd-virtualization@freebsd.org Sun Feb 28 22:36:31 2016 Return-Path: Delivered-To: freebsd-virtualization@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 7EE34AB7998 for ; Sun, 28 Feb 2016 22:36:31 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 1BC431C0C for ; Sun, 28 Feb 2016 22:36:31 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id n186so25515299wmn.1 for ; Sun, 28 Feb 2016 14:36:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=/bglCnE937m5Xozerf8SXH8VoDGmolcJO2wY1Pg9xD0=; b=AYO4oQOr0TNWRi95xZZlpxv4I5Cnp6MziMHjqMtHTRutlDxx+HrfCFHnlxG/eBvA8c R39LHTzf8nPsy1/HvG5jsM/0FYQQrjeNrAkcMXE+0MrJzMw2qHIbKKqFtgQne7ViaLPU pJk5FOxZ+oupAQOBLFaXxktvoQQGn99XLUJnrbc1ZaXw71OvfdR9yGjDfnBA28OJ2a+b VTfSXtpjKoEGtmykSOlc+k5EoeWKGZ0PQV95hOwvcmMw8iZvTaTwu2quKAqXifKhjly0 3V1OLNMlV8qy8aoD7ybmeycy3gigvy0Xxt36GEoWfZE7mmgyDj2FkPcOrTvTWsMdfKSg yxgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=/bglCnE937m5Xozerf8SXH8VoDGmolcJO2wY1Pg9xD0=; b=kB88Pu153PqRQmrKD5CDum2aH8pPiLaoE9vdTremc3d3Fxl1iVbDrCoW/CWWqSyCTK ZOu3q7q55llFrBUp2M4MdUR39F6CNAQrZtDvxZagNH3yXVBVYqJ6lD6wlrj7jNDK+EzM qEBrKgFVF3HoJNxBPaL82epYn/HMNBQgHyLYlt+VtQb+sHyePu5F8CzmtU6Wk2tXk1wm R/rf6C7WwWOqH8nzUlQPb/xJTfx1/zFT+pR3t2LLf4lQJekOM5nmDR5L3J0oYHdrP7Et pqRx5h3Sgc33rlRQXpd9gqf7nYJRMjQ0VElOD0hcjA+TuqRN56j68lZLQKYXnZ35GwE6 iC7g== X-Gm-Message-State: AD7BkJL3IGvrnjsYMZJcPku97zFd2Ecm1PYRn91K0sbjZiDvGzTKmcZfJU1BzYxhZobTR1o0u12akiQX0REB9Q== MIME-Version: 1.0 X-Received: by 10.28.35.14 with SMTP id j14mr8664719wmj.80.1456698988588; Sun, 28 Feb 2016 14:36:28 -0800 (PST) Received: by 10.27.81.70 with HTTP; Sun, 28 Feb 2016 14:36:28 -0800 (PST) In-Reply-To: <56D30F9F.4050005@bader-muenchen.de> References: <56D173DC.9040805@bader-muenchen.de> <56D30F9F.4050005@bader-muenchen.de> Date: Sun, 28 Feb 2016 14:36:28 -0800 Message-ID: Subject: Re: ath0 (wlan0) not working in virtulised guest with bhyve From: Neel Natu To: richard bader Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2016 22:36:31 -0000 On Sun, Feb 28, 2016 at 7:17 AM, richard bader wrote: > Hey Neel, >> >> I suspect that the ath0 controller does not support MSI/MSI-x >> interrupts. The output of 'pciconf -lvbc' on the host will confirm if >> this is the case. >> > thanks for the hint. The controller should support MSI interrupts. > > root@test10:/usr/src/sys # pciconf -lvbc > > ath0@pci0:5:0:0: class=0x028000 card=0x30a4168c chip=0x002e168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR9287 Wireless Network Adapter (PCI-Express)' > class = network > bar [10] = type Memory, range 64, base 0xf7100000, size 65536, enabled > cap 01[40] = powerspec 3 supports D0 D1 D3 current D0 > cap 05[50] = MSI supports 1 message > cap 10[60] = PCI-Express 2 legacy endpoint max data 128(128) link x1(x1) > speed 2.5(2.5) ASPM L0s/L1(L0s/L1) > ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected > ecap 0002[140] = VC 1 max VC0 > ecap 0003[160] = Serial 1 001517ffff241412 > ecap 0004[170] = Power Budgeting 1 > > > But as I read in https://wiki.freebsd.org/dev/ath_hal%284%29/AR9300, MSI > interrupts are not supported before AR9300 HAL. > > So i'll buy an other card and try again. > > But it would be a good idea to add the check for supported MSI/MSI-x > interrupts to the https://wiki.freebsd.org/bhyve/pci_passthru . > Done, thanks for the suggestion. best Neel > thanks > > richard > >