From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEB0CC63798 for ; Wed, 25 Nov 2020 18:06:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1A77F2075A for ; Wed, 25 Nov 2020 18:06:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="oZokE3b9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A77F2075A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 17D356B005C; Wed, 25 Nov 2020 13:06:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 12ECF6B0070; Wed, 25 Nov 2020 13:06:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EC33C6B0071; Wed, 25 Nov 2020 13:06:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0202.hostedemail.com [216.40.44.202]) by kanga.kvack.org (Postfix) with ESMTP id CF1246B005C for ; Wed, 25 Nov 2020 13:06:09 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9692B824999B for ; Wed, 25 Nov 2020 18:06:09 +0000 (UTC) X-FDA: 77523719658.20.tiger18_060244627378 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 68FC7180C07AF for ; Wed, 25 Nov 2020 18:06:09 +0000 (UTC) X-HE-Tag: tiger18_060244627378 X-Filterd-Recvd-Size: 5873 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Wed, 25 Nov 2020 18:06:08 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id t5so2256407qtp.2 for ; Wed, 25 Nov 2020 10:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BcVhHVVGnf3WvgX+ezgVKIjE/rfcsmBp0NN8oWI8KeQ=; b=oZokE3b9qW4wR31ltC6sLQ8tlsVQNdzsn6eGih9BX9owbzd4vdqHIicN+yS6UhLmWp 3ItMtJDGOFCY1EYvQ97JYoz+bllXwb5hSufqcrUhqWQMB1IbJJWX0CT7Dwn8uE0Nh6z5 dw+tG9V44ScSRsHrV7/VT1/OdTnZ/CQ5A6gTusM4CjwRb4DmoUyVsFAnVBK9xVV0b5VH 3Mzp15tBB2D/v7WXW1Tzd8cStJSr2M7OHyaJH0C3r+eimOrdeDIRnOZqng+EBsuckQn/ IgupkbnQ8lg3DQoP5zkAZWk208dxV0Dzx5MvaGoorv9NAiTZR3LBKtotzc+NJe+1xtrq mPrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BcVhHVVGnf3WvgX+ezgVKIjE/rfcsmBp0NN8oWI8KeQ=; b=YyHKmzkpzvW8zvKnODk1Jc//jgl30kKG/+bpPHsO2WhxlvtZTDTKGN56xhVO9oDMoB /xMBcah1r+ev5buL3edRsqjt2SnIf6QooyWQ/pok9ei6As1+Xuztdwl2zkZcnvnlPeRR BXmgmqkeOo8LuJuuat5qxXeH2XPAr4kSr5F69tlt5hvxQRc2bls4wDVOQoYd4hkRT/vu pQL8OUdQ3o5cCJPgzqW9eAR/+RqP/tfOR35rld0uBiX3NcNSzIHbnmqsRu/HI57SkOiD Rs6z/JOM3vLExN+8k+iz/fOzgVw4Kz7eZII3EPGiBgDHiU0XvKaFqgfyMdrc7+jXSbAY PTqw== X-Gm-Message-State: AOAM531BclK3OCO/CYi54gMwEiG0MDA8xCSlL1WEl4DmOU0/OBvXU8Ng qtsph6MKhe7Z26XlqFyH2RCAHA== X-Google-Smtp-Source: ABdhPJyTT0zfGule3EMk3EVFgg0sW/Gc+MYUEwA7cD2UFS4TswJqWZPz+DEHts834E3EnWVts2w0Nw== X-Received: by 2002:ac8:7a7b:: with SMTP id w27mr29725qtt.381.1606327568092; Wed, 25 Nov 2020 10:06:08 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id h4sm32176qkh.93.2020.11.25.10.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 10:06:07 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1khzB8-001Lnb-ES; Wed, 25 Nov 2020 14:06:06 -0400 Date: Wed, 25 Nov 2020 14:06:06 -0400 From: Jason Gunthorpe To: Daniel Vetter Cc: DRI Development , Intel Graphics Development , Linux MM , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, LKML , Thomas Hellstrom , Brian Paul , Daniel Vetter , Christian Koenig , Huang Rui Subject: Re: [PATCH] drm/ttm: don't set page->mapping Message-ID: <20201125180606.GQ5487@ziepe.ca> References: <20201125162532.1299794-1-daniel.vetter@ffwll.ch> <20201125162532.1299794-5-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Nov 25, 2020 at 05:28:32PM +0100, Daniel Vetter wrote: > On Wed, Nov 25, 2020 at 5:25 PM Daniel Vetter wrote: > > > > Random observation while trying to review Christian's patch series to > > stop looking at struct page for dma-buf imports. > > > > This was originally added in > > > > commit 58aa6622d32af7d2c08d45085f44c54554a16ed7 > > Author: Thomas Hellstrom > > Date: Fri Jan 3 11:47:23 2014 +0100 > > > > drm/ttm: Correctly set page mapping and -index members > > > > Needed for some vm operations; most notably unmap_mapping_range() with > > even_cows = 0. > > > > Signed-off-by: Thomas Hellstrom > > Reviewed-by: Brian Paul > > > > but we do not have a single caller of unmap_mapping_range with > > even_cows == 0. And all the gem drivers don't do this, so another > > small thing we could standardize between drm and ttm drivers. > > > > Plus I don't really see a need for unamp_mapping_range where we don't > > want to indiscriminately shoot down all ptes. > > > > Cc: Thomas Hellstrom > > Cc: Brian Paul > > Signed-off-by: Daniel Vetter > > Cc: Christian Koenig > > Cc: Huang Rui > > Apologies again, this shouldn't have been included. But at least I > have an idea now why this patch somehow was included in the git > send-email. Lovely interface :-/ I wrote a bit of a script around this because git send-email just too hard to use The key workflow change I made was to have it prepare all the emails to send and open them in an editor for review - exactly as they would be sent to the lists. It uses a empty 'cover-letter' commit and automatically transforms it into exactly the right stuff. Keeps track of everything you send in git, and there is a little tool to auto-run git range-diff to help build change logs.. https://github.com/jgunthorpe/Kernel-Maintainer-Tools/blob/master/gj_tools/cmd_send_patches.py I've been occasionaly wondering if I should suggest Konstantin add a sending side to b4, maybe using some of those ideas.. (careful if you run it, it does autosend without prompting) Jason