Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3512793pxb; Mon, 24 Jan 2022 11:07:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfqqh31YqK75Kz2cUlGd1dZteNPGesFO2KqjMtLo89djMTaxlZwkUotKVVWl1ohcbqYw5E X-Received: by 2002:a17:902:e54c:b0:14b:3548:cfc4 with SMTP id n12-20020a170902e54c00b0014b3548cfc4mr9765959plf.102.1643051232556; Mon, 24 Jan 2022 11:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643051232; cv=none; d=google.com; s=arc-20160816; b=DIWp9tnR2CjB2kfnDcgzH8A1lsLwL8ayqUxm1scHlwWSkraZ6BwySS9Dkjb2V/9fqT py33GJ1+q6ED2pbOZ2NM59Ye5Q9819CsHsw4Sr+ozp7sAxbE/JOltLuOJtOdqeBB/Gml TNfpfvQFf7puJCINND3ZXSsxSks+SfWNzHtTHiA5npmmg81EXUUvkvdtNgbLpIhja+8Q PIjtEgUIWKFfbrSaK/02CA7ORLbnNESf7T9fmJhTtqlYAd9y6gatN14H1dTJNG74kX6N 54THJaJN+S1+1joMKIxiyZFb1txddaWahNV5En6MPO9lSwva76+sTQ5RG1Q+NiNCs5DQ YDvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XArnnH4OvrxRcoFfpFy+puuAOs1zK8Kgo1S3kPJSJSw=; b=D8uPbF9QYn1XuAMDy4bKLlA2Sy7NVHNjJHX63kUxX0OMlEI3V8VH16yrmZoW1wy6O5 4wJcDTrYdewPX/2aXrIT+kPY5EFDpZsle0dWclmHIbTNwYCjudpowcATq8QbK0xrg8in jW/mHh4yHgOMZn6UFitkSQ58Lp3/FcCnAfgIiPGRfm08c6gfe88++ncfbOQ3593kUuBi ETIvzIeIE4WCFgUUJbxlmitv0HhoJUEeLBfiEe2GOqPxfFmbRrkoVqWUdpgJ+etc7d9e M3r2+/Jg19P9iuhB80mhez9fvdX59Mp2lM/HysbmRolTUe0b9Hjk6M9RU30s6EQpYpau f2og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jc276FuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si138703pjv.147.2022.01.24.11.06.59; Mon, 24 Jan 2022 11:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jc276FuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238184AbiAXMIb (ORCPT + 99 others); Mon, 24 Jan 2022 07:08:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238097AbiAXMIa (ORCPT ); Mon, 24 Jan 2022 07:08:30 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1859FC06173B; Mon, 24 Jan 2022 04:08:30 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 131so322672wmc.4; Mon, 24 Jan 2022 04:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=XArnnH4OvrxRcoFfpFy+puuAOs1zK8Kgo1S3kPJSJSw=; b=Jc276FuGvUAjhsukljJ+yBmJsnTKcW5NrocuudRyuV338c+REYomAqV50vs3b9w4gw jQUdowlUT4PRsPPsTAx3vb+xhwoOyrYKpR9Yc+Tii6O6Pa7p/nbIXGl23Dc7cyglQCdj /h5svWv15McmcBB+SVksjK92+h0n0fJw40OLE2eieebA957FhvtKGR0hjGKQV4L8E1jT ULJQlldeeOX3wdAa0621QBFB1gY3WE2BqPzwM3CJ5bFnJLxjaQPzu5VlFPBnYQIxnLda Vhqv8J9RWPMvMK4I0olcJ33FVxRcdbNGVrSgt20UGyTLJIwHtLqMfwvzw6f3J+0KLU90 m9Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=XArnnH4OvrxRcoFfpFy+puuAOs1zK8Kgo1S3kPJSJSw=; b=vFxQFofijTNIGACU3PYRhevl6jGMJEA9+8+Kgmw6Y9hrWZVia+MrO8mUGJD+mTZwAl 4Sbiwml2YpIg5Om9+lvCzJUy+y7HhUHeIhfsD8kHn+C5LAPPrwsNJ1F0i6atmGE0w/Ux 0B8//PlaVst06hGWXYPHpsZSmV1xFAI1vCpl5aps+rqCnRilzR1re1Jqyy0zfVzTkZCG jifCIgxEQ786NS4a/hPhn3UhdZtkB2GGqrcVz2HgFgzcCNghZxyaXA5rfO7I/oaN+xis iRQonN5vauePOCf7XEUkQViQOQKHUIWFWiSOGaM1efAuT+SJAsZbfumf9ADUz3Y+QnC0 +nqw== X-Gm-Message-State: AOAM530oQ0JLccCPXuwGOsTY5/WnrNoZaHZWK5pGMG/v/SytAhVNX69C kQ6utowu2Ri9GPjAStUczrU= X-Received: by 2002:a7b:c5c4:: with SMTP id n4mr1572870wmk.134.1643026108567; Mon, 24 Jan 2022 04:08:28 -0800 (PST) Received: from [192.168.178.21] (p57b0bff8.dip0.t-ipconnect.de. [87.176.191.248]) by smtp.gmail.com with ESMTPSA id c14sm17849799wri.32.2022.01.24.04.08.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jan 2022 04:08:28 -0800 (PST) Subject: Re: [PATCH V2 0/7] DRM kmap() fixes and kmap_local_page() conversions To: ira.weiny@intel.com, David Airlie , Daniel Vetter , Patrik Jakobsson , Rob Clark , Sean Paul Cc: linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org References: <20220124015409.807587-1-ira.weiny@intel.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Mon, 24 Jan 2022 13:08:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220124015409.807587-1-ira.weiny@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 24.01.22 um 02:54 schrieb ira.weiny@intel.com: > From: Ira Weiny > > Changes from V1: > Use memcpy_to_page() where appropriate > Rebased to latest > > The kmap() call may cause issues with work being done with persistent memory. > For this and other reasons it is being deprecated. I'm really wondering how we should be able to implement the kernel mapping without kmap in TTM. > This series starts by converting the last easy kmap() uses in the drm tree to > kmap_local_page(). > > The final 2 patches fix bugs found while working on the ttm_bo_kmap_ttm() > conversion. They are valid fixes but were found via code inspection not > because of any actual bug so don't require a stable tag.[1] > > There is one more call to kmap() used in ttm_bo_kmap_ttm(). Unfortunately, > fixing this is not straight forward so it is left to future work.[2] Patches #2, #4, #6 and #7 are Reviewed-by: Christian König How to you now want to push those upstream? I can pick them up for the AMD tree like Daniel suggested or you can push them through something else. Regards, Christian. > > [1] https://lore.kernel.org/lkml/fb71af05-a889-8f6e-031b-426b58a64f00@amd.com/ > [2] https://lore.kernel.org/lkml/20211215210949.GW3538886@iweiny-DESK2.sc.intel.com/ > > > Ira Weiny (7): > drm/i915: Replace kmap() with kmap_local_page() > drm/amd: Replace kmap() with kmap_local_page() > drm/gma: Remove calls to kmap() > drm/radeon: Replace kmap() with kmap_local_page() > drm/msm: Alter comment to use kmap_local_page() > drm/amdgpu: Ensure kunmap is called on error > drm/radeon: Ensure kunmap is called on error > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 8 ++++---- > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 1 + > drivers/gpu/drm/gma500/gma_display.c | 6 ++---- > drivers/gpu/drm/gma500/mmu.c | 8 ++++---- > drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 6 ++---- > drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 8 ++++---- > drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c | 4 ++-- > drivers/gpu/drm/i915/gt/shmem_utils.c | 7 ++----- > drivers/gpu/drm/i915/i915_gem.c | 8 ++++---- > drivers/gpu/drm/i915/i915_gpu_error.c | 4 ++-- > drivers/gpu/drm/msm/msm_gem_submit.c | 4 ++-- > drivers/gpu/drm/radeon/radeon_ttm.c | 4 ++-- > drivers/gpu/drm/radeon/radeon_uvd.c | 1 + > 13 files changed, 32 insertions(+), 37 deletions(-) > > -- > 2.31.1 >