Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp984583ybd; Wed, 26 Jun 2019 09:10:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoc0FycmlZ/8f9z583fWwOGmDDlOBTJzosWUU2O5MU1FOAms4AQ2GgwrH22VfGDWPFNvvy X-Received: by 2002:a63:d60c:: with SMTP id q12mr3672274pgg.176.1561565443008; Wed, 26 Jun 2019 09:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561565443; cv=none; d=google.com; s=arc-20160816; b=fXY+IGfMnLKLdJm2BgwQETp5yT9SzFkycPRTLhvFdWwYYv5tQy9gQC61HvYH9R1yiG ciOc7Fj6OLJWv2bwgjqcyWxlANk9e4bF2Wswh3FiXSfRdIhUnQX+uY5wSB0jYOIKuhaQ vQgOK7CNnIEeY7o4/5QfUDRZTZW7jwko6CWiUH/8m5i7ihxCoYZiqm8mt8Al7wE0ktoQ +yZasnuLAptRFlOnwWriccbtTc0ekImr2fCsNKCDnuoHBYXVMKGMzwCCn1SCK4og6tXN aGy4uFvwKufclKC1Qxv33LtT9rdpuNW/HYHMHGxvAnHKIEAJ+mS1HX2BU4sc/h5M0Dui NoAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=UP9Jtb98ATwN3hSuXszNgoQd5vNoaG1jrBI+gVsRe+o=; b=bJIWDRDdzdW1o5G7wRUHroCW+bY9QDFZYDlJXPuD6lbsykfnQ07QR1keXduDEAKOCJ S/xw9U4hzVffHDRPR2AoTVMyrx37XWpvKIsd41IzKFLZ/6kfVTcXYVbVOQZ0LwFqEuis zcmPIjZBXv1NcLyUl4TQHPaZgRerdbzwLiQstF4I3MOibyrPI3fWil2HJl799YNDqlEv Pp+ymIGM5uZ8byRYqi9EN6YBn0mvtS94skMqvLJOkF9HzpbmsHu18oLKM9/udJg8Hvvo MyISKvE4lG5yWF4CWY9hmzoGmg7MWBLTPxPXyvnzUJ6qamjjQTejXOXca2dsG3yHyV9X j/Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@animalcreek.com header.s=mesmtp header.b=Rg7zOvfi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=1DI51m1d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31si3754217pla.393.2019.06.26.09.10.26; Wed, 26 Jun 2019 09:10:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@animalcreek.com header.s=mesmtp header.b=Rg7zOvfi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=1DI51m1d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726470AbfFZQJg (ORCPT + 99 others); Wed, 26 Jun 2019 12:09:36 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:48037 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbfFZQJg (ORCPT ); Wed, 26 Jun 2019 12:09:36 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 5FE46159D; Wed, 26 Jun 2019 12:09:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 26 Jun 2019 12:09:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=animalcreek.com; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=UP9Jtb98ATwN3hSuXszNgoQd5vNoaG1jrBI+gVsRe+o=; b=Rg7zOvfioVGQ bAU/QB7jkqq3sywB0OidJQfTUXkUVo02+sP6Fs9FaUGu2euTFXNw5TVVS76L1D+y RSk80oJlaSRXjODpWsDSKsVBYFKaHl6MKQZ/qR4mVlN2um9bGep1nzcPPgcfVhv2 D+gH1d8OVHNfM8n2DhxPMN3lOY9tbVU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=UP9Jtb98ATwN3hSuXszNgoQd5vNoaG1jrBI+gVsRe +o=; b=1DI51m1dqlPROi0LYunyNniDnOUUdpwcCrHvUxwwjIB/Vb6BKSZK/X2GN K2EpjhcppZOu3UoCen+ySDMqftxM3igLzR3ZZIgW1KZDWqZJfkxyWmCVIyCDmHgP JZLgzZU9rHXAMIQz5kHWZPkuvS5LQt6JtF+VCUWT08bB9hafQC9tgdV7r8XM/3c1 NJkoVMDN3epXGZyO+esZGI6jb7AdM2QSEYwjZ8HWUHAR3VvZDXXYJaU7wOj88xNu 1rUH2bQYYeI9yWI3Xv7kK28rns5z+zOsMgiSpFK/1X7UK2J8yZN/Z6+DpQJ8Zy6a OfgLJVK9ZQhvDyTjQtbYmwgXyrk5A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeigdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjohgfsehtkeertddtreejnecuhfhrohhmpeforghr khcuifhrvggvrhcuoehmghhrvggvrhesrghnihhmrghltghrvggvkhdrtghomheqnecukf hppeeikedrvddrkeejrdelheenucfrrghrrghmpehmrghilhhfrhhomhepmhhgrhgvvghr segrnhhimhgrlhgtrhgvvghkrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from blue.animalcreek.com (ip68-2-87-95.ph.ph.cox.net [68.2.87.95]) by mail.messagingengine.com (Postfix) with ESMTPA id C7E6E8005C; Wed, 26 Jun 2019 12:09:33 -0400 (EDT) Received: by blue.animalcreek.com (Postfix, from userid 1000) id 2FFDDA2233F; Wed, 26 Jun 2019 09:09:33 -0700 (MST) Date: Wed, 26 Jun 2019 09:09:33 -0700 From: Mark Greer To: Christoph Hellwig Cc: Mark Greer , Paul Gortmaker , Dale Farnsworth , Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: DMA coherency in drivers/tty/serial/mpsc.c Message-ID: <20190626160933.GA28939@animalcreek.com> References: <20190625122641.GA4421@lst.de> <20190625163722.GA18626@animalcreek.com> <20190626064837.GA24531@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190626064837.GA24531@lst.de> Organization: Animal Creek Technologies, Inc. User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 26, 2019 at 08:48:37AM +0200, Christoph Hellwig wrote: > On Tue, Jun 25, 2019 at 09:37:22AM -0700, Mark Greer wrote: > > Yeah, the mpsc driver had lots of ugly cache related hacks because of > > cache coherency bugs in the early version of the MV64x60 bridge chips > > that it was embedded in. That chip is pretty much dead now and I've > > removed core support for it from the powerpc tree. Removing the mpsc > > driver is on my todo list but I've been busy and lazy. So, to sum it > > up, don't spend any more time worrying about it as it should be removed. > > > > I'll post a patch to do that tonight and I'm sorry for any time you've > > spent looking at it so far. > > No problem. And if future such broken chips show up we now have > support for per-device DMA coherency settings and could actually > handle it in a reaѕonably clean way. Ah, good to know - thanks. BTW, I just submitted a patch to remove the driver. Mark --