Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4590129rwd; Tue, 23 May 2023 09:34:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57E21yD0sEHnErSMJq3OUggHcXcy1SmWEjljR1ZOO9f2Vv71KlPgDvi0hEw8S5+RALnCXK X-Received: by 2002:a05:6a20:938e:b0:10b:7400:cef0 with SMTP id x14-20020a056a20938e00b0010b7400cef0mr8776968pzh.39.1684859688580; Tue, 23 May 2023 09:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684859688; cv=none; d=google.com; s=arc-20160816; b=vDSc4j1jQYWIbB9ZDrf9pwDgNIW2/FKEldaCjRB9sVcHod51oQv9k6q78CCopq1B2G gIAroZBkst5Kz+kQkzFkumPqcJuewc4UjDL0SyEycNmkwP2BxuKzujXhpUCMwJCzgG+H EPXRI9HwoxNXag2ApC4kkLMDKmJOvFSWuFbPs4RKCLogA24+hli1PORuP2l+yHprFjsT J7uc8Rdf6M6DHrTONLrBkSBPX036vGGakRM5oVsh8QS1ddMh7tvm9jmzEb5EH31WtUpI nzcGWehE5Nq9ADSL2mK78T+APk3L9TUWVWgiWVgtGAdnn1YFo3AIzN2I4Y/azx+Qc8rk Ja4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q5+FTQAI4XaIJ2kafdq2jwzMOwImDBdbP7f4JSJoAxs=; b=UMZi2Vup6e/JZriyojXrYWSrgPFa6C7HjXBkl5S/w6p2kvW4rhM1DDA8XS6rUdrjQi iqtN3bcxsgY0ePIWwUIo6eoQ7zw9pkZ9X8K5S6DZ3wUs8OXgou9HQcxeihF+AV2VznZP U+bASI042aTMEulu1zHNPAVHjFWTASsTh2nSzQ9sVowZ26g+y4YRw7XOmdsKnyXl08Y3 VBuRvw26ZyALv/+bvE2lVbs5yIWI1rqxsmOwu6oPjwtF0vTDJkv9fqvy4HQzpm3ZG9yw 1kXG/Ko1l3Lgm2trta1vPobOFYb1+WV6ISJpQoQ04DWGdY9Pox1dCY0Bmn/tklehvLrG cpuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=j3fxFTnL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 b2-20020a637142000000b005346c49e06csi1661539pgn.834.2023.05.23.09.34.36; Tue, 23 May 2023 09:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@8bytes.org header.s=default header.b=j3fxFTnL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237244AbjEWQGa (ORCPT + 99 others); Tue, 23 May 2023 12:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236186AbjEWQG2 (ORCPT ); Tue, 23 May 2023 12:06:28 -0400 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 81C3ADD for ; Tue, 23 May 2023 09:06:26 -0700 (PDT) Received: from 8bytes.org (p4ff2bfbf.dip0.t-ipconnect.de [79.242.191.191]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 1D123248213; Tue, 23 May 2023 18:06:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1684857985; bh=Cc7Z575w9OHnuRMKyEykBUybs3nqdvfXSYDzqPP4KQ0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j3fxFTnLQG/Wt2JKYs78Sx+KYCeldo1rqdimm9+CdnUhkEB/3Jmv15umo9Q+3WsBP MnVvnITW8NdYZTuMbGex6zTZrtKSMS+XtX6jgCGs/BdjhBWpp7nZBZ6OoWKGZwXrz2 PeRBW+XpQwcufWekPPlHW+NnHmorN3XLxCQbzt7n8aJx4VnY1OWLtpkugpl+luQmf2 cbm3/vNNvfC+oic42KdlMw1cesK0LCgRK3Ou/sJ9Bq75uNyho1W7eMKcsghV1MC2OP wB6QEfsHk+LSVZh5GdYuCZ/n5tfRaHV/XFu/aASp7Vi/Ad1XiJn5CayQQ3w6bOFP5o qWl8jA3PEEssA== Date: Tue, 23 May 2023 18:06:23 +0200 From: Joerg Roedel To: Robin Murphy Cc: will@kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Linus Torvalds , Jakub Kicinski , John Garry Subject: Re: [PATCH v4] iommu: Optimise PCI SAC address trick Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-kernel@vger.kernel.org On Fri, Apr 14, 2023 at 06:45:57PM +0100, Robin Murphy wrote: > Sounds good - I'm considerably more confident in this approach, but although > it should not be able to break any scenario which wasn't already broken, it > could potentially still make such a breakage more noticeable. Thus in all > honesty I'd feel happiest giving it a full cycle of -next coverage as well. I had some second thoughts on this, wouldn't it be better to change the allocator to allocate from lowest addresses first? Then we can just remove the SAC trick and rely on dma-masks only. Thoughts? Regards, Joerg