From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 A9E881384BF for ; Mon, 14 Oct 2024 07:58:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728892713; cv=none; b=kzLvGELdHN4J8zjPR9C6SaoN3KE+TRQx1chHx4Yp8xudKdEsHejMo/dPLJuDFJO027exaAeJrB4CxjoRE1c5dX8c4He56V9RXqC+9yl7pngxgRtNKlJh779F32IIlcfFQO03sOwiq+5IdsxmdQ4woY+wONdybjcUsZvXBxSkPVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728892713; c=relaxed/simple; bh=okUCVxZQmNBCZOnwLzSniC5oceCmOwUWK0e9RpAsbxI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pSvQFSwXASmn4zs2CZSxoJQo9iXef874i2OB5Woq6Bg+/VMr2FRdsQ3m/LLfBKo2CpTUq81+DVQnNVXkojsDNeJVxPozoes+4oKC7HshV4AMY15W9uof2m6kg9yB9q+b3uf5+yXDi1EXhfq0cez03G9SDBhqEcXupfEcZld2ZHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=M2sK+YUz; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="M2sK+YUz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728892705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wBWYGh1L8mzLbunG0zkaPybO/VfGp8yc/5u12WiFxg0=; b=M2sK+YUzAo1q5S4OCBwMU/jyN4UIyc32gZIXDLejZufFvZletaTzq5yCrj3AQpwZKjxGOM SPQZuwcfWXsjWFPA55SHrTqatNAbnp64P+61GGFobyY8ojzHVn/x/8I/WmsKtENy3duwXQ 76mL0/Jqerp495NBnMXqBLdN8R3eHpg= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-45-gto0hQeUPoivTJQQlE95vQ-1; Mon, 14 Oct 2024 03:58:19 -0400 X-MC-Unique: gto0hQeUPoivTJQQlE95vQ-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8893C1956080; Mon, 14 Oct 2024 07:58:17 +0000 (UTC) Received: from fedora (unknown [10.72.116.128]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 523B519560AA; Mon, 14 Oct 2024 07:58:10 +0000 (UTC) Date: Mon, 14 Oct 2024 15:58:05 +0800 From: Ming Lei To: Christoph Hellwig Cc: Hannes Reinecke , Hamza Mahfooz , Dan Williams , linux-block@vger.kernel.org, io-uring@vger.kernel.org, linux-raid@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [Report] annoyed dma debug warning "cacheline tracking EEXIST, overlapping mappings aren't supported" Message-ID: References: <426b5600-7489-43a7-8007-ac4d9dbc9aca@suse.de> <20241014074151.GA22419@lst.de> Precedence: bulk X-Mailing-List: io-uring@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: <20241014074151.GA22419@lst.de> X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 On Mon, Oct 14, 2024 at 09:41:51AM +0200, Christoph Hellwig wrote: > On Mon, Oct 14, 2024 at 09:23:14AM +0200, Hannes Reinecke wrote: > >> 3) some storage utilities > >> - dm thin provisioning utility of thin_check > >> - `dt`(https://github.com/RobinTMiller/dt) > >> > >> I looks like same user buffer is used in more than 1 dio. > >> > >> 4) some self cooked test code which does same thing with 1) > >> > >> In storage stack, the buffer provider is far away from the actual DMA > >> controller operating code, which doesn't have the knowledge if > >> DMA_ATTR_SKIP_CPU_SYNC should be set. > >> > >> And suggestions for avoiding this noise? > >> > > Can you check if this is the NULL page? Operations like 'discard' will > > create bios with several bvecs all pointing to the same NULL page. > > That would be the most obvious culprit. > > The only case I fully understand without looking into the details > is raid1, and that will obviously map the same data multiple times The other cases should be concurrent DIOs on same userspace buffer. Thanks, Ming