From patchwork Wed Feb 22 13:24:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 5734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp576902wrd; Wed, 22 Feb 2023 05:28:01 -0800 (PST) X-Google-Smtp-Source: AK7set+st30J6hJNcKqZ1eDfFlfQKPYoT6sGBFMOQRXeyfyhjr76CzUQ7YlBylxLhjp7MEBKJSuO X-Received: by 2002:a62:4e41:0:b0:5d3:81b4:db5c with SMTP id c62-20020a624e41000000b005d381b4db5cmr3121794pfb.4.1677072480747; Wed, 22 Feb 2023 05:28:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677072480; cv=none; d=google.com; s=arc-20160816; b=RCrZnhojPaw1dmCEa72m+karuW7U3UEgpk9zmCmUn+HQZuZf1RLFsozjDKgV/d589y K2EVFMvUnZrwBcrZOzYsCZzmgB316RVIxgo5vGbX0GSKZ2NibizDYc7fqXyuccaiqNqb xqvlZVTBUXmvNyCWqZ3XMPt8xZrf+p1akSvz7hlRZuUlzC/t+7uozW54818Dkv3qtUuP Q3VARFvSIKf5Mcy0Qv7LYWqvml9ia7bozxblJ+A6g2Txy4O9zhdiI4wTa1qHkTFOKT40 o4oh9cQYz2P7TmIAzqGIO1dwC43v1jUhjcfiL+KmXqWqenB6FJs2o65i8/DkymAFyr6P KGZA== 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:feedback-id:dkim-signature :dkim-signature; bh=ZM1wKgNEbzttP80ykx2KdJ15qgC/eZYBwqpxuFevkVA=; b=zeRs3z6ZfHin976t1dK3OoDD3anM91D4dUH3BTAhRvIc26+WDXdTc+DLIikgPz0rKw 4kz1egvUexGfBYUQMg/o4TnHAot8iKxQB03Z3KPR9ZvxkNwf8Yvcu5i9jilOUP+S8i32 rB9Yun79w3pvC7I+k9O7f7A6R1+TVTOnkAP46S6tbWsVFUjZCdhnn9ki4YChw2jHDJWp 8AvdjF/n8TOcJRuOS0QPekoSgsrW+g55avmA3acTXxV78o3UY7KkFvy4oNlEhrlZBE6b aJBxfmFtPUEKPq41PrPT4Saom1zkRFAq72vabaL9oIlh/7dYdOu06OQglOSswZtBqWRn MUPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=SQb+gxco; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=IM8NjXIz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a056a00224d00b005ce3fc94e2dsi4698529pfu.120.2023.02.22.05.27.48; Wed, 22 Feb 2023 05:28:00 -0800 (PST) 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=@flygoat.com header.s=fm2 header.b=SQb+gxco; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=IM8NjXIz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231695AbjBVNYj (ORCPT + 99 others); Wed, 22 Feb 2023 08:24:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjBVNYh (ORCPT ); Wed, 22 Feb 2023 08:24:37 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2FD02FCE9; Wed, 22 Feb 2023 05:24:36 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 37F165C013B; Wed, 22 Feb 2023 08:24:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 22 Feb 2023 08:24:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1677072276; x=1677158676; bh=ZM1wKgNEbzttP80ykx2KdJ15q gC/eZYBwqpxuFevkVA=; b=SQb+gxcoYAWBv+g/yNFmfNb3vsQqN7uKqNP72D87T Da2fauFAxT5ULoNpAntMFqUo/VNjsVOBFVi3Uz81u8wGvNfEn414AGVDOvEFB6+m 1VQHP/1zv+V4veI+BxBWPdmLigbwjOnug1R5+0+faZFAJMnnVxkdmWrCg9VgMtD1 5N6mW3cvfN7rMCI5vHfBZbcCwLC3OAuDRwmKGkxdyBgvyDaqin62N5rM7x4nM+qt 1m1LGSotptrKieAthtKz++vURTEzz+4E+NKMZ5fCthd7y6yGNuAAheqmZ8Nxwjdz sox1qjPUINUzkP2brUWOK7EC9oQ4s+540KYh1uFZnEVFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1677072276; x=1677158676; bh=ZM1wKgNEbzttP80ykx2KdJ15qgC/eZYBwqp xuFevkVA=; b=IM8NjXIzTgck/ZMKbQG6QxlyiodR0CxujtYBz+OiO3IOewDcjEn 4/Niu/ZQxVzdw6hZTG7oS6JvBihRFy1uIdpkYzl/GmgTNZVL4UUbP7gzESZEDOSM 51pQDhn2rYjQQErqJYjEjc3PUW/RfIu4PUV+YDuwK4gKzdGySGpJfvA5l/tWxkWY b5XtOct702wV2KvbSoKmTh+cMC7kv/76bgKn7Fx81j5yQZs2KY242obhAHUmgxU4 qhl4Mk8o331n9goauBeFFKcKkHunjQa73wNLLDzW3Qz9s1oDO6JuL+gkvOgTPhqf FurlP2pYk6D4XlT3xtVjzseZQG2s/erhqtg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejledghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhephfetuddtudevieeljeejte ffheeujeduhefgffejudfhueelleduffefgfffveeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Feb 2023 08:24:34 -0500 (EST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, hch@lst.de, Jiaxun Yang Subject: [PATCH v2 0/4] MIPS DMA coherence fixes Date: Wed, 22 Feb 2023 13:24:21 +0000 Message-Id: <20230222132425.7442-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758445736891960582?= X-GMAIL-MSGID: =?utf-8?q?1758537953416811299?= Hi all, This series fixes MIPS per-device DMA coherence support. It's mostly adjusting Kconfig options. The v1 series had some extra patches that fixing default coherency settings for OF probing but I decided to send them as a dedicated series. Thanks. - Jiaxun Jiaxun Yang (4): MIPS: Remove DMA_PERDEV_COHERENT MIPS: Always select ARCH_HAS_SETUP_DMA_OPS MIPS: Always select ARCH_HAS_SYNC_DMA_FOR_CPU for noncoherent platforms MIPS: c-r4k: Always install dma flush functions arch/mips/Kconfig | 16 ++-------------- arch/mips/mm/c-r4k.c | 12 +++--------- 2 files changed, 5 insertions(+), 23 deletions(-)