Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1588467rdb; Tue, 20 Feb 2024 00:14:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVsqdm43pIsIatNlUxEf/IiciRRqF6U/UMq5T9vDEPuuUMAwXbyz+uoZ3ZGCEcTtDXhp+cY8O91nHmSyTfDFAeX/EjnUSQw7NSPoqP/wA== X-Google-Smtp-Source: AGHT+IHQhA7MWVuD4XskNnWUZM1q9NpHzg4ttAJ11V2Ezt3ljm/cCWBQ0ZqT3g7hWodJv7fWdeuS X-Received: by 2002:a05:6e02:12a4:b0:365:1f83:24a3 with SMTP id f4-20020a056e0212a400b003651f8324a3mr7249982ilr.18.1708416854014; Tue, 20 Feb 2024 00:14:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708416853; cv=pass; d=google.com; s=arc-20160816; b=zMYWPyN5h9UwX1eo3MkoVNlP/nCZgRbILIjo9/8WMB/4qtVrCyRDr/JfCmdGgybw8y h1DkVU5xU4/M5BKbL04BHgtN0g1uw+16z5oLL4H4IxvJEUTxGlqFhJk1yNzirZ+cH4Y6 0TpVHH8Blwa/tGv91yz6rAVXQJonLHwjUmrbzxAcnrba21gyelM/LVtQM4tuHz8rkK01 txxKVlRHqM+sExC62dO3fvlKxAFyNlIdAgcf8tAY/eSSvLonRXQdilxnHiSYc7PZRPjT OMwqVua/sPgnKN/X+GM8Yw8faByQw7qEyszLUm66xejV1jxypy2cmbw3DoXzEl6jtBM3 MyCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YYSsdT5cZzxc2dJp/64cEFZI5O7KWuGW//PkrTpwpRk=; fh=c7R5z5VpUqbZ7SZYrZDbfyenW7R3cfDnKd0+kTGwqo8=; b=dwKd7rGuOr5N/BhyG+LPYzHlJ27DAVdT7wtB2fMufDqdRLDhu00Bl5Nq+8gno/SJdk 8TNDuRgkRvlADcUXhI7A36jAM33rm7yuEj0Nm7n9XgoYvOheYKxD81Fu59MMSwNtheRM rSDiqiZYyEzKQ8SXmvY+M08jSZsF7fW4F8f1fL8prpHOrMSIzZGFzkRQa7lxUmqGaLM2 MfAw9YAxYXghUVablzIWBfiz5JgMOclOieT8ql56xe4XtPZT09ylhcnVS7TZKnviLdYC lHBZBniBnKJw5kdPy8XcBFiQBGA7m2/+WhVah42S1JL2qXqlZlmQn+JdvFsmPeljex+6 hJWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hWAqPqIF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s185-20020a6377c2000000b005dc8f60ce09si5658019pgc.7.2024.02.20.00.14.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 00:14:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hWAqPqIF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2239CB20D65 for ; Tue, 20 Feb 2024 08:14:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E5115C611; Tue, 20 Feb 2024 08:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hWAqPqIF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 936BD5C5EF; Tue, 20 Feb 2024 08:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708416841; cv=none; b=EPAY9VqBMMDxgmCB4UDWe+XeIGtDsdtBSV3LRNelDvgn3qsZE4FZmskpCCL816KXtgaCkrQ0tLhz4FFVmvp6o6X3AWya3CEyHU0NcRbjAmSSI0LWYRGh2nE0Zgs8pegLNLIxneyK/M1oD2XWynv4e1BEdJbn6NxDIHypXYYKL5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708416841; c=relaxed/simple; bh=KMaiaCUm3bZGBK7I5/F1KQ3UkBMCQjLFXyGs6MrrrZU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mJlQB1BKx7r/koL3EYIcHCVLDmIPD8LUal7REtOnsG2zKEKfbmtm7JQIl7sNODMelrVcz3P0p1Vs07GIkfYkcIQpq8uh77D669mcVfeRGZCjharORM6qhFjubTxNv6HHKKQ+Bzq+POJMmfiygCu0Fp60/8IbC8mFVwN0iWTLFe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hWAqPqIF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15A99C433F1; Tue, 20 Feb 2024 08:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708416841; bh=KMaiaCUm3bZGBK7I5/F1KQ3UkBMCQjLFXyGs6MrrrZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hWAqPqIFYAZcp/X5cbUN4fXO8zQJX/f6D4UJtzxFT6y6m5gyG3oKuoyLyKCf6r6Np bHxHY+ewlI5Loa2rf5avoXxV7CrD6+ALSzIiHSWDVhHYjfzr8O7AlZOYCQ+5MF7fqv 5avMiRaq3S3N4IBGWssZdSlZbpiZED8r8rwXL3dA/xuPMaO3XXoym7jDw5qlYD75+r qTCuA0UYbEVEQ/dDDyvoTExr1WLTNadhOWBz6MI+2wm5we1NzvkYcklutzMXfXStn5 qRtBEHp4ZmitTxwcP/I3jc0w5avu3ifpbqNlHzrJDtbU055PBcjgSF0W1JJZxS9Vnc 7ap2cwluTBrzw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rcLGJ-000000002QZ-0PDo; Tue, 20 Feb 2024 09:13:59 +0100 Date: Tue, 20 Feb 2024 09:13:59 +0100 From: Johan Hovold To: Rob Clark Cc: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Robin Murphy , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Bjorn Andersson , Jordan Crouse , open list Subject: Re: [PATCH] drm/msm: Wire up tlb ops Message-ID: References: <20240213172340.228314-1-robdclark@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Feb 15, 2024 at 07:28:53AM -0800, Rob Clark wrote: > On Wed, Feb 14, 2024 at 11:34 PM Johan Hovold wrote: > > > > On Tue, Feb 13, 2024 at 09:23:40AM -0800, Rob Clark wrote: > > > From: Rob Clark > > > > > > The brute force iommu_flush_iotlb_all() was good enough for unmap, but > > > in some cases a map operation could require removing a table pte entry > > > to replace with a block entry. This also requires tlb invalidation. > > > Missing this was resulting an obscure iova fault on what should be a > > > valid buffer address. > > > > > > Thanks to Robin Murphy for helping me understand the cause of the fault. > > > > > > Cc: Robin Murphy > > > Fixes: b145c6e65eb0 ("drm/msm: Add support to create a local pagetable") > > > > Sounds like you're missing a > > > > Cc: stable@vger.kernel.org > > > > here? Or is there some reason not to backport this fix (to 5.9 and later > > kernels)? > > No reason, I just expected the Fixes tag was sufficient No, you should still mark patches intended for stable with an explicit CC-stable tag (as per the documentation). The fact that Sasha and his AI tries to catch fixes which the author and maintainer failed to tag as a fallback should not be relied upon. It also makes it harder for the stable team and others to determine what the intention with a fix was. Johan