From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47539C433B4 for ; Fri, 14 May 2021 10:31:41 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0A3E7613B5 for ; Fri, 14 May 2021 10:31:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A3E7613B5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jswEdopWz3Nx5v7U/j4Y28YMva9QvmJaRy5anmeA0Oc=; b=iddWwELHOt/9f277vt0R2TQXe oz1Npa9pf6XzjQzKoWzAf/q+nSOU2ZpJeQ1bLQAnVkq1NVzLvs84ZIhzZwAN3yGGjVnJdhGM2XGQ3 tYZ2k3OsHDeb/JxSwRL7aTsTBd5bi5YiQxLOqFlmIhe1B008lEANOoLjijFiqdgjYkqGt5mgeloXm AnYAwulpNLSCPhKk7DOOvUghtPjEaCXwELBsfGZAeJXzGDTRip44UA3Gh2Zy17ijT1ShWYxWzu+Tp CBQC8QPwv7vztb8EXF7Ht/EIHCZ/eMmk3GDYa4uY3ETS7l8eDiS5a0W9G0cDkw+seuW4qeqwcGDNi qQWMW4Orw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhV53-007m9X-BJ; Fri, 14 May 2021 10:30:05 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhV4z-007m8y-ON for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 10:30:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6k8IaLZjgSWxcEMQOINi0vFrR8Nqrjklai9I9uLqyEI=; b=nTqDEwAdglaoBFmoKWNqdD4Xrg p31yko4yzZJKPAWHU9iDNbdOopFLPWosRa+hq/dv5HiBEVmu+Jtl0MXEZ/f/VyW3FXM75dUnPyHXM yD8pWQtznZkBxPLidOb64Ud5oA1COFUotkR/M6uzMeT6eE9yVOASteUrKY7kIUavvobKGJicgMjKT 5uIHOjT43ECdTwDnQpIThS2YbpNX0own2Ykr5FPd5AldA3YhnVqxyfncZUpJo9N74DAucSKlZBMyM gJuzEZyGUMdZf+gCy7pmUev5BvFV18R5qZb9aZL/uJl0MEHG4BQe+r5h/i/v4QnkTTzg9xn0xEb1K 9QONa3+Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhV4w-00Btme-Oz for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 10:30:00 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 918BC61396; Fri, 14 May 2021 10:29:56 +0000 (UTC) Date: Fri, 14 May 2021 11:29:54 +0100 From: Catalin Marinas To: Stefano Stabellini Cc: xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, jgross@suse.com, hch@lst.de, will@kernel.org, linux-arm-kernel@lists.infradead.org, Stefano Stabellini Subject: Re: [PATCH v2 2/3] arm64: do not set SWIOTLB_NO_FORCE when swiotlb is required Message-ID: <20210514102953.GA855@arm.com> References: <20210512201823.1963-2-sstabellini@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210512201823.1963-2-sstabellini@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210514_032958_855308_A34F030A X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 12, 2021 at 01:18:22PM -0700, Stefano Stabellini wrote: > From: Christoph Hellwig > > Although SWIOTLB_NO_FORCE is meant to allow later calls to swiotlb_init, > today dma_direct_map_page returns error if SWIOTLB_NO_FORCE. > > For now, without a larger overhaul of SWIOTLB_NO_FORCE, the best we can > do is to avoid setting SWIOTLB_NO_FORCE in mem_init when we know that it > is going to be required later (e.g. Xen requires it). > > CC: boris.ostrovsky@oracle.com > CC: jgross@suse.com > CC: catalin.marinas@arm.com > CC: will@kernel.org > CC: linux-arm-kernel@lists.infradead.org > Fixes: 2726bf3ff252 ("swiotlb: Make SWIOTLB_NO_FORCE perform no allocation") > Signed-off-by: Christoph Hellwig > Signed-off-by: Stefano Stabellini Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel