Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4475617pxb; Sun, 27 Mar 2022 19:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQw42euNKsH938pd7feNNOjF9wMJndMnRmgCfFJduK7Ntabf8cPzZOlNaztNEqLhkAY+Wu X-Received: by 2002:a63:981a:0:b0:398:49ba:a65e with SMTP id q26-20020a63981a000000b0039849baa65emr2723476pgd.231.1648436296144; Sun, 27 Mar 2022 19:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648436296; cv=none; d=google.com; s=arc-20160816; b=vOLgD6k96HYI6/rqji0QhDGwRO2X75sJVVmUhoOVPtZkOZN5DFnFnJqp5nt8o6Kxa7 xFP3z23soLZdB/PprAmxpoLBMRJmHEdx7tglXb9vSYIePhbBoDcimLsnL398ZNW0HaWT 0Gk7rpDgSGymFh79bJ/7at5z4JL24Bn819ZWLm3F2Fmq5KD087Xy9vtHSz0OP7ezGpQ2 mGiE1QqnW5u3DgvxapZVZSDjd5+qUdm6DBleFCgIYH5tmU1q0N+qOh3XIPVMZxzcbC/M 1qJvLnhM3omRZPxUhaXGuqnztrHG3cH2b0htjvnoR09TXOH4Zk8zzE/XsGq4fi9cjhCN 36jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LRo9b3MUkbZre2OxOOlq/WFZn88JngO4mNALahdqLLo=; b=FrJF8GUEHeYUSHTK/kTQyJdQFEOYBLVurJC2MRoVWUOhk+yhy1heojrioVgU2defM1 HDKcECmdsJ+ItpamkNAyuVLXNTJMSOlk/uykXuG3GqHT5kxI/O6w+uJpodadRKcODpoS VVT49nwfzzF+SWEBg6abkHtq8M95aWMXRx9Ch+xQ6fYdsDhDW9ONqsn3J862DcSFbUmi Qo3/wHet/O5QeFosIPL6BCDmRfIKUPPRhq6WcXUKiypW6I3Fzfi6KhQ+MGQPGTspzZkK 5ZmygqIp8Tj6PIeJ51RUBiFWEe8rP711jVLHJGiP4M2Hi1rTmNr697ZJnT6wv7mNq4HM sw+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LOyMW3j2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a17090340ce00b00153b2d164bfsi11256359pld.199.2022.03.27.19.57.57; Sun, 27 Mar 2022 19:58:16 -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=@linux-foundation.org header.s=google header.b=LOyMW3j2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237153AbiC1Ajm (ORCPT + 68 others); Sun, 27 Mar 2022 20:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237094AbiC1Aj2 (ORCPT ); Sun, 27 Mar 2022 20:39:28 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2341B4ECD8 for ; Sun, 27 Mar 2022 17:37:49 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id s13so56268ljd.5 for ; Sun, 27 Mar 2022 17:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LRo9b3MUkbZre2OxOOlq/WFZn88JngO4mNALahdqLLo=; b=LOyMW3j2NDs+H2edr432o6t72bJ9rAAidtE6uQtKka0v04jJxIfLU52bcaFDLDlYM/ JetNnRKqVZGNI5IDhgLZasSqq5nol47bGRc3ngtiYDkZguPV/FKkhqaz+XAlXyUCnfUj hkQqnDJ74mGQw+89wAM/GMeJRvAJS7NceW9Uk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LRo9b3MUkbZre2OxOOlq/WFZn88JngO4mNALahdqLLo=; b=escTncov3lm3CFcFPMSWFIlgFRZqmXrhi1qjsABiETbO/1a5W0+gd9P7oyhXMHQBmu tx/Jd4jh2cxOz5Sy49n8hV+rsir51UMK3UO80FObsmzMGNNKNTaRNzmJ1OgT2tKiaJO+ edr+CQKu/aerNMwYkb4GUErovnS7Rnc8M/wRX9LR5194hd7yG1PFXBEEP17IfOuzd+78 2aOZWfeCurmG53YGmjkwZ6HJX5lM2Kncx4BVI5zmMzH6Xd8YUg0hVUnTxA+x7J9wYLMJ ROijNRwbUcvQaRzjy2qV33WesvGP2tqRaiAB0bhdpqYazG4gizUChf0YeX6bJv33bIth fKLw== X-Gm-Message-State: AOAM5325Q8T8P0RgckWmbSLiHfi1mtHYL1KHq0lwU6sNXa02qmMESGe5 vcEIHU2iyTy5PFgQqrr65+lPt159FGm5lUJZwMk= X-Received: by 2002:a2e:9693:0:b0:249:72b3:a2b with SMTP id q19-20020a2e9693000000b0024972b30a2bmr17587027lji.373.1648427867139; Sun, 27 Mar 2022 17:37:47 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id d7-20020a056512320700b0044a24e2a64asm1479179lfe.269.2022.03.27.17.37.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Mar 2022 17:37:44 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id 5so22112614lfp.1 for ; Sun, 27 Mar 2022 17:37:41 -0700 (PDT) X-Received: by 2002:a05:6512:3d8f:b0:44a:2c65:8323 with SMTP id k15-20020a0565123d8f00b0044a2c658323mr17468965lfv.52.1648427861326; Sun, 27 Mar 2022 17:37:41 -0700 (PDT) MIME-Version: 1.0 References: <1812355.tdWV9SEqCh@natalenko.name> <20220324055732.GB12078@lst.de> <4386660.LvFx2qVVIh@natalenko.name> <81ffc753-72aa-6327-b87b-3f11915f2549@arm.com> <878rsza0ih.fsf@toke.dk> <4be26f5d8725cdb016c6fdd9d05cfeb69cdd9e09.camel@freebox.fr> <20220324163132.GB26098@lst.de> <871qyr9t4e.fsf@toke.dk> <20220327054848.1a545b12.pasic@linux.ibm.com> <20220328013731.017ae3e3.pasic@linux.ibm.com> In-Reply-To: <20220328013731.017ae3e3.pasic@linux.ibm.com> From: Linus Torvalds Date: Sun, 27 Mar 2022 17:37:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP To: Halil Pasic Cc: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Robin Murphy , Christoph Hellwig , Maxime Bizon , Oleksandr Natalenko , Marek Szyprowski , Kalle Valo , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Olha Cherevyk , iommu , linux-wireless , Netdev , Linux Kernel Mailing List , Greg Kroah-Hartman , stable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sun, Mar 27, 2022 at 4:37 PM Halil Pasic wrote: > > > For the record, I believe that the partial revert proposed here > https://www.spinics.net/lists/linux-wireless/msg222300.html > would have been a wiser choice, than a complete revert of commit > aa6f8dcbab47 ("swiotlb: rework "fix info leak with DMA_FROM_DEVICE""). Yeah, the revert is basically my standard "this doesn't work, discussion is still ongoing" thing. I agree that the revert then brought back that DMA_ATTR_SKIP_CPU_SYNC complexity. So that part of commit aa6f8dcbab47 was probably all good. I somehow missed that Oleksandr had a tested-by for that smaller change too. Linus