Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3672329pxp; Wed, 23 Mar 2022 03:35:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/ujBGXVzfwcCsszeGj9w3JCFbsq/jDEfyeZkrBIynTAUssdu2V08uI3cMuIs9PvodBjYt X-Received: by 2002:a05:6402:510f:b0:419:5105:f7e6 with SMTP id m15-20020a056402510f00b004195105f7e6mr11862757edd.339.1648031723027; Wed, 23 Mar 2022 03:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648031723; cv=none; d=google.com; s=arc-20160816; b=0IAX/TYn+mwal6nl8dzXuzo7Obaj+AfTNq/KiajtKNX0NRgC4YXCKL6DxUSjvoQu0P uki+9+JCeNWcXgqKmnUu66i6klijNOCnbj8s9gWbTxRk5Mo7DO3eKEk/IXMv6bYAfjvU 3KZ1Yj4dPvs1+27I8gzHQDy5vP+31pxfvDyaHT/zqSwHpHyKuaMlibc3ion1r3cQ2p/S sFVPaXzNZu0XqZ+19tSLIJJerAV7k3FVCg+ggXoEz1Uzs1BNO3WbrhdNSwmDcqhk2Kc9 11HfPHiPlPBFQibBNOT3VejOzG2JtIQL94lqRgRuA04I/hhUsDr9yhJVo6m9nhvAcpP6 mgrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Aq3wTOLIRg4bKiBb83fzJSvp8UW1zQslkrUCWcBYITQ=; b=rZCyFtsqx7m5IKnx7xrlwESzA2MkyHds09vGgfdKT0fYjIlcB1mqyFwS6LagdRdhTo wvWfLTT1M89wsSoiyoINRjCeyL3dDsIxvMR3dhwDDDnqIROgcTL6+RZxqS6xkQZlRAG0 JxOSzUtPJsb8HL+9NuaxgmqMgpPTeYawgaldfq5NPqHrrEyV6rRnKUNMHqKY1YRLmKbe Zv7kMhyqkEo99te0Bg8W4mKeX4602LDItXOLWY7e7hwLwwIsdqiSb9+pDuGOeSmNT5+T S7Q0z2D8UjgbILOX7SgyS6lPrz4BnLc3rU0MnP66r8nl37m29kNUmmhx71AgG/an+Kz7 04Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=LG3o6z1W; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs38-20020a1709073ea600b006df76385c30si10890160ejc.208.2022.03.23.03.35.03; Wed, 23 Mar 2022 03:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=LG3o6z1W; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242177AbiCWHVA (ORCPT + 70 others); Wed, 23 Mar 2022 03:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233545AbiCWHU7 (ORCPT ); Wed, 23 Mar 2022 03:20:59 -0400 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90C772E39; Wed, 23 Mar 2022 00:19:28 -0700 (PDT) Received: from spock.localnet (unknown [83.148.33.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id B6133E4442C; Wed, 23 Mar 2022 08:19:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1648019965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Aq3wTOLIRg4bKiBb83fzJSvp8UW1zQslkrUCWcBYITQ=; b=LG3o6z1WaJFYjUM/dvlifvqemxa7QhfYYuRyQw8zynNLBKallm7YPeYl4s3i1uXRuwucCa IiYCtbrGOZwKeFtfW23igHSCVIiopYSMYKtYlLf+dzplA8xjOhLHSc/W0mvqenoN9hgQBq 656paAFP8ET1YwXu8lqE2uhasmwMoNw= From: Oleksandr Natalenko To: Halil Pasic Cc: Christoph Hellwig , Linus Torvalds , Marek Szyprowski , Robin Murphy , Toke =?ISO-8859-1?Q?H=F8iland=2DJ=F8rgensen?= , Kalle Valo , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Olha Cherevyk , iommu@lists.linux-foundation.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , stable@vger.kernel.org Subject: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP Date: Wed, 23 Mar 2022 08:19:24 +0100 Message-ID: <1812355.tdWV9SEqCh@natalenko.name> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello. The following upstream commits: aa6f8dcbab47 swiotlb: rework "fix info leak with DMA_FROM_DEVICE" ddbd89deb7d3 swiotlb: fix info leak with DMA_FROM_DEVICE break ath9k-based Wi-Fi access point for me. The AP emits beacons, but no client can connect to it, either from the very beginning, or shortly after start. These are the only symptoms I've noticed (i.e., no BUG/WARNING messages in `dmesg` etc). The hardware is: ``` $ dmesg | grep -i swiotlb [ 0.426785] PCI-DMA: Using software bounce buffering for IO (SWIOTLB) BIOS Information Vendor: American Megatrends Inc. Version: P1.50 Release Date: 04/16/2018 Base Board Information Manufacturer: ASRock Product Name: J3710-ITX 02:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01) Subsystem: Lite-On Communications Inc Device 6621 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-