From owner-freebsd-wireless@freebsd.org Thu Sep 17 17:09:39 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D1E7C3E767A for ; Thu, 17 Sep 2020 17:09:39 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bsk3R1Ztgz4JlY for ; Thu, 17 Sep 2020 17:09:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-x734.google.com with SMTP id d20so3008021qka.5 for ; Thu, 17 Sep 2020 10:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=icL65RjoQlQNu3qJdHSpx0hRIOoUV9XQDa9x/IreO4E=; b=pw+Nc/Z7uRay7iFBKVQfSV+DLVX3aXwgq6XFSf5FZcxyNJRkKBLIjPKti9WzYdXMsB sG7fDkUbgXRFAAfsU7RWSYvFRedts/Kk+gf0883IgzaoInDhrL9G5AubmXa52y1k7qLX VaWQ8XdPwlJecEIS1Yo/LheT3F6xWwV5P1B5Hmrk0LzMGv16tjXElvEwlK24pi5cmon2 lQm1+jxwxwhgJBvOC0SgM4l6WF64IuwNIJ2cmuSqWMniRkzDq0eeig2ivVGS5eyLZNMX 0Ar29EQ6OKNG7BpyM2BpmEqbWQk8qqr3pzEX3X9YemGxlC0/1O2eytPqj95Cxqn2Q9iD bRoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=icL65RjoQlQNu3qJdHSpx0hRIOoUV9XQDa9x/IreO4E=; b=fDBFetZAurKh/oqTBxqsT62opLX8VXosYR/OfkVzZZxRFPso3eiPnbrS1Lk5j/7ZvV tsvkoJpffWDt4xWKSe7iBl+BnUzUonU7dNESee9rNmDYUgDdXzd9zsYYI/uZlXDloyfj /BSHUuCuP7/ZS98YRrmkTMPw5m8mJnENFPdECcPDmea+YOSG9193eOfuPJ0UfgVJvMFI Rp4+lxg5oqSIYKHKXrW9fdT7X1LRXdcXBFs7Vh4k5QsDd0nc5yb4m7pqmGxQyDHNzpjN OsAplROPMRUgJWoT9IvB/6b+XedAQPZ7qTO5X5mSXt2IN+NJ/FEuJjX/OnULy1Ofo1mR vkPw== X-Gm-Message-State: AOAM531drNxfyuB88Vj4HDhXB7OlvUaCPd8ZfhRDRC6CgNG9Miq5ychV 0QE888h10bxowVIzS4yWVonl2RX51AHTpxgeJIw= X-Google-Smtp-Source: ABdhPJwH1BHY1XRUtrTDqujLlLR7PApGUkpgNsGmfeWZ4o9q3WWL5QrfKx5WBspNX8KLcgMZ7iq2+dAiv3gTf85t/gw= X-Received: by 2002:a37:b882:: with SMTP id i124mr30116311qkf.51.1600362578067; Thu, 17 Sep 2020 10:09:38 -0700 (PDT) MIME-Version: 1.0 References: <9beac50d-6c08-0c0a-7f42-f1e95ae31d8f.ref@yahoo.com> <9beac50d-6c08-0c0a-7f42-f1e95ae31d8f@yahoo.com> <27e35111-6cee-d609-ffcd-2c78c35504b9@yahoo.com> In-Reply-To: <27e35111-6cee-d609-ffcd-2c78c35504b9@yahoo.com> From: Adrian Chadd Date: Thu, 17 Sep 2020 10:09:24 -0700 Message-ID: Subject: Re: Atheros QCA6174 (ath10k) not working To: Anthony Jenkins Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 4Bsk3R1Ztgz4JlY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=pw+Nc/Z7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::734 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.014]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.06)[0.065]; NEURAL_HAM_LONG(-1.05)[-1.049]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::734:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-wireless] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 17:09:39 -0000 Hi! We know what's missing. :-) bz is working on porting more configuration/startup related changes from the more recent linux ath10k to athp, and I'm working on some transmit side control that's needed for correct data path behaviour on the QCA6174 and newer NICs. We'll get there. :-) Thanks! -adrian On Sun, 13 Sep 2020 at 13:27, Anthony Jenkins wrote: > Thanks Adrian, > > Just wondering if there's anything I can do to help. I have the driver > repo. > > Anthony > > On 2020-09-13 14:53, Adrian Chadd wrote: > > hi! > > > > we're still working on this. It's going to take some time. > > > > thanks, > > > > > > > > -adrian > > > > > > On Sun, 13 Sep 2020 at 11:12, Anthony Jenkins via freebsd-wireless > > > > > wrote: > > > > I have a Killer 1535 802.11ac wireless card (chipset = Qualcomm > > Atheros > > QCA6174). I am using the ath10k/athp driver from git repo > > https://github.com/erikarn/athp.git . Driver loads, but trying to > > start > > the interface fails. What should I be looking at to fix this? > > > > service netif start wlan2: > > > --------------------------------------------------------------------------- > > ifconfig: SIOCIFCREATE2: Input/output error > > ifconfig: interface wlan2 does not exist > > ifconfig: interface wlan2 does not exist > > ifconfig: interface wlan2 does not exist > > ifconfig: interface wlan2 does not exist > > Starting wpa_supplicant. > > /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant > > ifconfig: interface wlan2 does not exist > > rtsol: failed to get link layer information for wlan2 > > rtsol: failed to initialize wlan2 > > Starting Network: wlan2. > > ifconfig: interface wlan2 does not exist > > > --------------------------------------------------------------------------- > > > > Kernel messages: > > > --------------------------------------------------------------------------- > > athp0: ath10k_start: called; state=0 > > athp0: ath10k_start: state=1 > > athp0: ath10k_download_cal_dt: TODO: device tree check > > athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: > > 0x00000069 > > athp0: htc ep 2 out of TX credits (0 < 1) > > athp0: htc ep 2 out of TX credits (0 < 1) > > ... > > athp0: htc ep 2 out of TX credits (0 < 1) > > athp0: htc ep 2 out of TX credits (0 < 1) > > athp0: ath10k_wmi_cmd_send: failed (-35) > > athp0: failed to enable PMF QOS: -35 > > athp0: ath10k_core_stop: state=1 > > athp0: ath10k_wait_for_suspend: state=1 > > athp0: ath10k_wmi_pdev_suspend_target: called > > athp0: htc ep 2 out of TX credits (0 < 1) > > athp0: htc ep 2 out of TX credits (0 < 1) > > ... > > athp0: htc ep 2 out of TX credits (0 < 1) > > athp0: htc ep 2 out of TX credits (0 < 1) > > athp0: ath10k_wmi_cmd_send: failed (-35) > > athp0: could not suspend target (-35) > > athp0: ath10k_pci_irq_sync: TODO > > athp0: ath10k_pci_kill_tasklet: called > > athp0: ath10k_htt_tx_free: called > > athp0: ath10k_htt_tx_free: tearing down htt locks > > athp0: athp_vap_create: ath10k_start failed; ret=-35 > > > --------------------------------------------------------------------------- > > > > Some notable errors from 'kldload if_athp.ko': > > > > * Driver fails to load firmware file > > athp_QCA6174_hw3.0/firmware-5.bin; > > it does load file 'athp_QCA6174_hw3.0_firmware-4.bin'. > > > > athp0: ath10k_fetch_fw_file: firmware_get: athp_cal-pci-athp0.bin > > athp_cal-pci-athp0.bin: could not load firmware image, error 2 > > athp0: ath10k_fetch_fw_file: firmware_get: > > athp_QCA6174_hw3.0_board.bin > > firmware: 'athp_QCA6174_hw3.0_board.bin' version 1: 8124 bytes > > loaded at > > 0xffffffff84458000 > > athp0: ath10k_fetch_fw_file: firmware_get: > > athp_QCA6174_hw3.0_firmware-5.bin > > athp_QCA6174_hw3.0_firmware-5.bin: could not load firmware image, > > error 2 > > athp0: could not fetch firmware file > > 'athp_QCA6174_hw3.0/firmware-5.bin': -1 > > athp0: ath10k_fetch_fw_file: firmware_get: > > athp_QCA6174_hw3.0_firmware-4.bin > > firmware: 'athp_QCA6174_hw3.0_firmware-4.bin' version 1: 733784 bytes > > loaded at 0xffffffff8445d000 > > > > I assume file 'athp_cal-pci-athp0.bin' is optional calibration data. > > > > * 'htc ep 2 out of TX credits (0 < 1)' repeated 144 times > > > > * ath10k_wmi_cmd_send failure > > > > athp0: ath10k_wmi_cmd_send: failed (-35) > > athp0: could not suspend target (-35) > > > > > > My full kernel messages from kldload(8) and netif are at > > http://www.qtchat.org/~ajenkins/ . > > > > Thanks, > > Anthony Jenkins > > > > > > _______________________________________________ > > freebsd-wireless@freebsd.org > > mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to > > "freebsd-wireless-unsubscribe@freebsd.org > > " > > > > >