From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290996; b=ta9VaQ5IW08kY6Yfu8jP9XQLuQqMl+7cXwX8qpNKttYcVpc6xWhLzTLIv5m4HrT4Wz0z Ym7IB6Eg1oS+jfF/lraaibgzLtc/pLDSRtEGhazLw0NacyDVfF8JmV3cdd838XRmxcISA rfJByuk/cKfsSteoavikCiLLbMEX0x+sBbaY9bLqUVGkh6Tr9qQfUAOvOLb/BKHdXAhkW up0zpgS7ucowjtSdZDzOWOEYyMqjMrXttOcrQNd4kKrVzJywRXdYLvqhXb+T5phaXUWRS VWOWj8GLeKg3+dIX3G20dwUbtsXp52eVL1oV0YJj/GmVbqkuHMXyuoADPwLrr4eSScA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796290996; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:In-Reply-To:References:Organization:X-Mailer:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=dbsc9jQX0mcICxKyloXFLpJMaDFOVGSS8a/CVeqSrNE=; b=FfvVYKjOoZCTl+7vnMqQG6lx71dw8gGLH1PTTCgOvCONfEkjPNoJxcIe9P/TOjjvT1f7 JjjNjNM1NJMDR2A35IuB+G/e2JXkWqwD1gjlSolYxfYM3pnxCzEXQzoYplrVvlgeajbCX ISZHxSiYKEBOndNnqJy/SMb9oAdqVthk7gu09PxYYefvgYirtei4wkBeZEa9OUAKFh36G cUedPsswoa82RJ/0ebgCVUkYbSk7iAaNhD4th6ht5xQ9P2Sf8XhGENT/3ssZeUThkZmD7 ZcsO1LMcFxDNQwQKUNREddHFAnPTEMgs1LJ9OTfhZCs1wYWVbYMyaVAnv2WEb+BtT1Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=CYZTFbV+; arc=none smtp.remote-ip=148.251.105.195 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2B55606A322 for ; Thu, 3 Dec 2026 09:43:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D2B55606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=CYZTFbV+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796290994; bh=rTxiDC/FGWyDGvbvgZoyLSOyo7f8Iu9LRMy2GdyQm5w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CYZTFbV+FV7/MWtRR0+JtLUziwW2ra9Rqi0hI7Inec2J8jAFfvfVDKFNFdof1c+4P h1Fko9e6P8UBzuqFCV5kFK33H94sU2+XZ7mJWWk2IBilulJnMRI3WeLRdqz3ZAT0uA eWduU6aJURH8CQJ4vg4f8ul2AlOqOv9sNyCx3HxsO8+CJ9MWFka7kVsN4DzdM6umr1 IWPGRkgvnJpGWJkul7jo9w5FN+iyVIhIG4lDWekaO/alqqWwOCl79RV3egiCZaU0qo bTOBy0+pLZrUMdsrKKp/JruHFRVV0sJ8/TqpVH+jkyELQU6yZ9HurQrJReh3pxRMzC A2H+kjGFxhVAg== Received: from fedora1.home (unknown [100.64.0.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbrezillon) by bali.collaboradmins.com (Postfix) with ESMTPSA id 541CC17E052D; Thu, 03 Dec 2026 10:43:13 +0100 (CET) Date: Thu, 3 Dec 2026 10:43:10 +0100 From: Boris Brezillon To: Steven Price , Liviu Dudau , =?UTF-8?B?QWRyacOhbg==?= Larumbe , Akash Goel Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dominik Maier Subject: Re: [PATCH v2 0/5] drm/panthor: Fix partial unmaps, again Message-ID: <20261203104310.2e8af851@fedora1.home> In-Reply-To: <20260924-panthor-fix-partial-unmap-v2-0-59a68a1f9e14@collabora.com> References: <20260924-panthor-fix-partial-unmap-v2-0-59a68a1f9e14@collabora.com> Organization: Collabora X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit +Dominik who sent a slightly different fix for the same bug. On Thu, 24 Sep 2026 13:04:37 +0200 Boris Brezillon wrote: > The first patch is just a theoretical perf improvement to avoid > unnecessary unmap+map caused by false positive returned by > iova_mapped_as_huge_page(). The second patch is a fix for a real > bug when iova_mapped_as_huge_page() is called on an imported BO. > The last 2 patches are just consolidating the logic to make things > clearer. > > Signed-off-by: Boris Brezillon > --- > Changes in v2: > - Add a commit dropping a redundant panthor_fix_sparse_map_offset() call > - Collect R-bs > - Link to v1: https://patch.msgid.link/20260917-panthor-fix-partial-unmap-v1-0-c7008f15fea3@collabora.com > > --- > Boris Brezillon (5): > drm/panthor: Avoid false positives in iova_mapped_as_huge_page() > drm/panthor: Fix iova_mapped_as_huge_page() for imported BOs > drm/panthor: Consolidate the is-huge-page-mapping test > drm/panthor: Actually check huge-page mapping on sparse regions > drm/panthor: Remove redundant panthor_fix_sparse_map_offset() call Oops, looks like another one of those fell through the cracks. Queued to drm-misc-fixes now. > > drivers/gpu/drm/panthor/panthor_mmu.c | 112 +++++++++++++++++++++++----------- > 1 file changed, 77 insertions(+), 35 deletions(-) > --- > base-commit: 45585c3aa285854face65293acc95eff73063d6d > change-id: 20260916-panthor-fix-partial-unmap-a52034f21184 > > Best regards, > -- > Boris Brezillon >