Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp685076ybx; Fri, 1 Nov 2019 09:35:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuBLL1O8Ibn+/woG4fnf4eQtnzx9HHkLGACtY8ii1WRWPF6Ao7rKCnsIEwDyOyqSbTSSv9 X-Received: by 2002:a17:906:2654:: with SMTP id i20mr4133852ejc.163.1572626159122; Fri, 01 Nov 2019 09:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572626159; cv=none; d=google.com; s=arc-20160816; b=lvPxSwml0fHcKjWRvDSCEnpHllbhC0PDYTRrjI0yfPcbijkoofKun0URiBRg3YsQDk NpHK9lQfoyU39UEbWjEY3CsZwTzapr+j+kg9wCbfdlPlp87KZbYBWrV1duNqMwYUMk3N 4rH/TvsiYQa2+1yyV90Bdjqtj3Fdg0XqZ0mP+niRp9A8yHZlWcYhaIh/rwpgYRH88gXE dNF9rRAZJdziKAclsHlDRQ9vBKwLfJa4CLanwy/vMfSSRKVsni4n4gFk9vad6SWk6/Ph b3bh5gb1YVHQnfXPnfit4HWXK11s1JivX9xaNS5KRDrGmOz94lh3t3kYfUzqez4+cmt6 FrrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=etTAhinynGoxqr9aZtTNB9iVKclyPN99xDnFIUo1eJo=; b=kiUaqScLmvMCBubrBBd6B3RusaVwGLT0a+1zgdosMNf6nJsCl2RHBkI3hw5qOkLcGJ r1/SFQ6MxPVHBTctJHCVEuSFpkatWxwdPBl+AvIIBmSlriD4w8vy4GK0c52rWyfzHCTU qaZ6im92mEIoa37rYAyhBK4WfSmuoHqXa5xImi46z0dc4E5MDGGIVagJ0odgkyRC4fEK pD/rZVipsY/M0BOfUdb4gxPdSA/Ord5LY4664FNsWYXW9TFlw1Gi2cx9rNi7qxtWY3HP 79ucr9l1l9O8n1y6u8NkF5bOCcbQV3HpFoMncWtqiExul/hDox2sxI8RXBVDjwRScRAg zHBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WyGXyw2K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f37si770626eda.190.2019.11.01.09.35.35; Fri, 01 Nov 2019 09:35:59 -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=pass header.i=@kernel.org header.s=default header.b=WyGXyw2K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbfKAQbn (ORCPT + 99 others); Fri, 1 Nov 2019 12:31:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:50004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727737AbfKAQbm (ORCPT ); Fri, 1 Nov 2019 12:31:42 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0798621855; Fri, 1 Nov 2019 16:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572625902; bh=lcwuDtMMVht6znRRW2+vxRC911paPSnMy5ommgfPMo0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WyGXyw2KNWgeMv/p+9wB4TlQogOYBPuCDvs/wMc3yEFpca+YjfRX24yiOHCWwrYhy SGS8W7od9h4yQTvj9ZgCLshp3CPe6la+7U/LLWOsZJWI+9JXZXqE2YacivSJfSoilJ MXowa3plebKou/xRmn1lhQyUCPFqgoseP/v/s2GU= Date: Fri, 1 Nov 2019 16:31:36 +0000 From: Will Deacon To: Sai Prakash Ranjan , agross@kernel.org Cc: Robin Murphy , Joerg Roedel , iommu@lists.linux-foundation.org, Stephen Boyd , Vivek Gautam , bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rajendra Nayak Subject: Re: [PATCHv7 0/3] QCOM smmu-500 wait-for-safe handling for sdm845 Message-ID: <20191101163136.GC3603@willie-the-truck> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 20, 2019 at 01:34:26PM +0530, Sai Prakash Ranjan wrote: > Previous version of the patches are at [1]: > > QCOM's implementation of smmu-500 on sdm845 adds a hardware logic called > wait-for-safe. This logic helps in meeting the invalidation requirements > from 'real-time clients', such as display and camera. This wait-for-safe > logic ensures that the invalidations happen after getting an ack from these > devices. > In this patch-series we are disabling this wait-for-safe logic from the > arm-smmu driver's probe as with this enabled the hardware tries to > throttle invalidations from 'non-real-time clients', such as USB and UFS. > > For detailed information please refer to patch [3/4] in this series. > I have included the device tree patch too in this series for someone who > would like to test out this. Here's a branch [2] that gets display on MTP > SDM845 device. > > This patch series is inspired from downstream work to handle under-performance > issues on real-time clients on sdm845. In downstream we add separate page table > ops to handle TLB maintenance and toggle wait-for-safe in tlb_sync call so that > achieve required performance for display and camera [3, 4]. What's the plan for getting this merged? I'm not happy taking the firmware bits without Andy's ack, but I also think the SMMU changes should go via the IOMMU tree to avoid conflicts. Andy? Will