From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 6054533A9DB for ; Tue, 19 May 2026 07:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175087; cv=none; b=o/vGlBp/iOtsYbAK72tPaTyZw2u8ckTiw7YUWl8TAE3MVNWJb6Uq1uKK5P9HS7O0/VTpjAUTfLhgbl5jPAi3HsdnGbR63dWe6EpT4IMmX922p8axnSweVDuIpDu0DxnuIP1AIZyHkKWxSYkXPv/fFrtcwxUL2SQPUlWOGYfFCaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779175087; c=relaxed/simple; bh=0TI6SgOh6KRaYKaxl12x2+sBlNzKAWnVwxARy6keBAA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=URF7t7BJBOMvBAhAI/Nvvu4RCTRpADXkj3HiMbOTJxvjX3iN6g9ZZJCrSoaQ3806BoCr4MPTy9Rzavb4pvAqSJ1Li8i05d4LiYAlJP8gPpBLQxx7T/f7HKkT7bmi1yfyyrWEpClddJzYylmWXxeS59a1kGLZWifMM/JPpdZF3Kg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id BCFD468D09; Tue, 19 May 2026 09:17:59 +0200 (CEST) Date: Tue, 19 May 2026 09:17:58 +0200 From: Christoph Hellwig To: Mikhail Gavrilov Cc: Leon Romanovsky , m.szyprowski@samsung.com, hch@lst.de, robin.murphy@arm.com, djbw@kernel.org, akpm@linux-foundation.org, catalin.marinas@arm.com, harry@kernel.org, ming.lei@redhat.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Keith Busch Subject: Re: [PATCH] dma-debug: skip cacheline overlap tracking on cache-coherent architectures Message-ID: <20260519071758.GB10037@lst.de> References: <20260518113251.64844-1-mikhail.v.gavrilov@gmail.com> <20260518121047.GR33515@unreal> <20260518125330.GT33515@unreal> 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=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, May 18, 2026 at 06:29:11PM +0500, Mikhail Gavrilov wrote: > DIO from userspace is unfixable from the kernel side per that > message; raid1 acknowledged as needing a fix Christoph didn't have. > Two years on, those cases (plus dm-thin and io_uring polled tests > from Ming Lei's report) still don't have an annotation path. This > patch covers what annotation can't reach without preventing future > annotation work. It is not. We could require direct I/O to/from devices that are attached without DMA coherence to require cache line alignment. Now that Keith pushed down the checking into the driver that's even fairly easily doable.