Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp888129iob; Wed, 4 May 2022 09:59:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMYnpg03D/JMXrKGyTB0+6eJCSyiX6u28gKfDbuvTWHVIC3mZAgi2zhSL6P8ka+MqTGZOe X-Received: by 2002:a50:8a96:0:b0:425:e046:76d9 with SMTP id j22-20020a508a96000000b00425e04676d9mr24114729edj.115.1651683588643; Wed, 04 May 2022 09:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651683588; cv=none; d=google.com; s=arc-20160816; b=a2AhecUGhLwU1hca2l1K25cZPH1nLooY0Ii4E0MsAjLYy1+RdVa3PagdcnaaqM/eRJ FdzhOLuNv97Xz7pNaMskfYtk3e5qxc/49G21Osw6tXDJI7JaOfFgIGNnFvMh6hBHbo0+ vbpcetmV9heYG2w9diHV0QyenogTIG1839VUo9ugZ3RgGz7JSerzbbbitrX/IubwbVuh Jx37BFQdvpnbhbemD0N59FtJOWSRINFC08FY9BCpMlU8gWc2QH74y3Y0NB8PywUQy7wA GBGAOon/9lI+Cxu2ys5YR6RaomoDClTuzfRQeZjfEZAQRu74sd1ljRO8AIN1oxEf9aPT tnVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=GAbnrbG6kh3hdgSv454vaR8lQGc6vZ8RcOgja8HIOaU=; b=WXk5o9YVTYy+ndVFJwssV+taMMy4aGZUXditIAg2++hoYPK9P8YENUVKcWMwO3LcQG aX/CtQ94nMgDKh3W7jioZYNcaCytSEsMCSJ6kvw94VdZC06i9N3Ee+X+9EgXueYcRcBK kqJKgod0HbxkURVHaHFHk0x3pQhaJWmy5byx4bHW5YY4PLvSjwosJ/XRS5PupRp7SHhB z33hMJSJZNB2O3Tyt8yXyNFqzT8getCOshL22eckxBXx+aCglnaOFv4N1nrHK39a7mcv 1+8WEbbzPPuNGPmw/7GxGi8UYmXjCczAscIfx4bgrEEp0a+DdJMIWN/l55zYhW1Z5MzO KlZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b9vyzU70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020aa7c4d2000000b00425e36c140asi15678116edr.351.2022.05.04.09.59.24; Wed, 04 May 2022 09:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b9vyzU70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349337AbiEDMPW (ORCPT + 99 others); Wed, 4 May 2022 08:15:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343788AbiEDMPU (ORCPT ); Wed, 4 May 2022 08:15:20 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4903A18359 for ; Wed, 4 May 2022 05:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651666305; x=1683202305; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=C+h/rftgRKdb1i6UwOq/0z1PcO5ClpbUoFCjucqM6iM=; b=b9vyzU702BQBjYGPYhR78vS9scTbj85n06nPWMXMP8FNFDEE7WiedUcp PCI6qDMezGOzvqoY4eg/LZMsDNJoHDDgHR229jyHL/lwqYGWZdl8QUSoa /TV4pXcz0ruMS55TY7cOz6I7m8lxeVNDzQ6aH2mygEPH9FODHPBro8mxu tXRYWuXhZiVL69m07ZeH3esJ3PVk0nyTIYj66cNZLGOBku9BC8cM6AmEF q7i5cS2f3BklGYr0tZTDNLqLckoLOgrAVbvUxen3QUpo8EbId7Qmq2PXf ZkrhIoDvUWk3lmdnzAB81pns6sc1vJtGoX17leX4DJuaHKBGgsGX/QRtW A==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="354184868" X-IronPort-AV: E=Sophos;i="5.91,198,1647327600"; d="scan'208";a="354184868" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 05:11:45 -0700 X-IronPort-AV: E=Sophos;i="5.91,198,1647327600"; d="scan'208";a="664444001" Received: from gidaly-mobl1.ger.corp.intel.com (HELO [10.213.236.183]) ([10.213.236.183]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 05:11:43 -0700 Message-ID: Date: Wed, 4 May 2022 13:11:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] drm/i915: use IOMEM_ERR_PTR() directly Content-Language: en-US To: Jani Nikula , Kefeng Wang , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220502034328.78486-1-wangkefeng.wang@huawei.com> <87h768s5f5.fsf@intel.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc In-Reply-To: <87h768s5f5.fsf@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HK_RANDOM_ENVFROM,HK_RANDOM_FROM, NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/2022 09:30, Jani Nikula wrote: > On Mon, 02 May 2022, Kefeng Wang wrote: >> Use IOMEM_ERR_PTR() instead of self defined IO_ERR_PTR(). >> >> Signed-off-by: Kefeng Wang > > Reviewed-by: Jani Nikula Pushed to drm-intel-gt-next, thanks for the patch and review! Regards, Tvrtko > >> --- >> drivers/gpu/drm/i915/i915_vma.c | 4 ++-- >> drivers/gpu/drm/i915/i915_vma.h | 1 - >> 2 files changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c >> index 94fcdb7bd21d..639605c89b7b 100644 >> --- a/drivers/gpu/drm/i915/i915_vma.c >> +++ b/drivers/gpu/drm/i915/i915_vma.c >> @@ -541,7 +541,7 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma) >> int err; >> >> if (WARN_ON_ONCE(vma->obj->flags & I915_BO_ALLOC_GPU_ONLY)) >> - return IO_ERR_PTR(-EINVAL); >> + return IOMEM_ERR_PTR(-EINVAL); >> >> if (!i915_gem_object_is_lmem(vma->obj)) { >> if (GEM_WARN_ON(!i915_vma_is_map_and_fenceable(vma))) { >> @@ -594,7 +594,7 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma) >> err_unpin: >> __i915_vma_unpin(vma); >> err: >> - return IO_ERR_PTR(err); >> + return IOMEM_ERR_PTR(err); >> } >> >> void i915_vma_flush_writes(struct i915_vma *vma) >> diff --git a/drivers/gpu/drm/i915/i915_vma.h b/drivers/gpu/drm/i915/i915_vma.h >> index 67ae7341c7e0..8e74972fdca3 100644 >> --- a/drivers/gpu/drm/i915/i915_vma.h >> +++ b/drivers/gpu/drm/i915/i915_vma.h >> @@ -331,7 +331,6 @@ static inline bool i915_node_color_differs(const struct drm_mm_node *node, >> * Returns a valid iomapped pointer or ERR_PTR. >> */ >> void __iomem *i915_vma_pin_iomap(struct i915_vma *vma); >> -#define IO_ERR_PTR(x) ((void __iomem *)ERR_PTR(x)) >> >> /** >> * i915_vma_unpin_iomap - unpins the mapping returned from i915_vma_iomap >