Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1603632pxb; Mon, 8 Mar 2021 01:30:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL9js9WQqxqy80CkX21fzPFl/lU/oIZaO9UUoMx9jViCRAy7f7EMl6WlJlmlsbzc/1INSS X-Received: by 2002:a17:906:3c18:: with SMTP id h24mr14023794ejg.435.1615195829927; Mon, 08 Mar 2021 01:30:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615195829; cv=none; d=google.com; s=arc-20160816; b=CSzana7p44KijCGFVNFP+h+Wuj9fDp4cJdnQq72d7VfsytXbQ+a2iSyMm1HCkCjQ/f ltxDSirsxsba1tJK9h5CiHrKp+2OLPNiMVVC+GdiAN9xLkDGapelhq2HC5HFJgzCo48h nm3TbL9xDPSKUmPfo6+Lp0D1x7Svo5luQa0ZSQuSNLkZHD2G6sEAyrIZDZ/ZqMg0uMdG kqcQjLZcOdD5jfvis3La6zVE8xNuIJzqP3oPtd0U0ZSCuQoqfA2+o4r6VRGoYftb8rQB FCxwjADYm2cY6TQQWewuhSWnEsTg4SBaMPsOl3kWqzFSbqTuxzghjFOQoXJaTncFp0sH 3iwA== 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=Mw3YhMxze+L33OOW35Ho/s9cEaxtf/agG+UY/pcXArs=; b=svK/18d9G5DdqlWaRrdVFJfKHZLT//U02dDmca5GyrXzqZtjHSpO57YI079enyzpaL rIW083ap8ZlMEMAeFC4O7oeNvRQCgwoPGdjlc+pt0XYSAylbnZh5byjJTLzlAwL2l6uF wWSn5E75PZRJiYy+CmNpm0b80emNIt7miHzKGNU7QTrSia/VDx0VBmq2SFHZ6FInlBGd WMuuhpVVGUxL4I+xctdX2uMDWFo7Gi50Rd+0JADabWF320Twoij84m2bB2JQ9fMd93Sw qwSuJ56qxynk9qz3W01up7LMoF9w9YU9btmhEc2gTxFqa8HanGGmX5KNE35JOapByWDt nptw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hvV1hCXV; 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 z23si6971539edr.483.2021.03.08.01.30.07; Mon, 08 Mar 2021 01:30:29 -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=20161025 header.b=hvV1hCXV; 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 S229637AbhCHJ0w (ORCPT + 99 others); Mon, 8 Mar 2021 04:26:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbhCHJ03 (ORCPT ); Mon, 8 Mar 2021 04:26:29 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DD27C06174A for ; Mon, 8 Mar 2021 01:26:29 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id u18so4556797plc.12 for ; Mon, 08 Mar 2021 01:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Mw3YhMxze+L33OOW35Ho/s9cEaxtf/agG+UY/pcXArs=; b=hvV1hCXVhbql3sIE2x5KITH12j1TCohVZgr541DF/zxzZs2XPgdAnRxc1thDIHgSZe qceBGfqVr+ZsnSdEZ86dXUHxCuQDbEkO48qvc0su5Gbh/clbE+H7nacjp1B/9A2WoYxI kw4c7sMRYnTG6M+NmT8Ede+uMewZm+3JWNrX3RbQBVNhDMCGX2Cg5M0bZH4jUuDHIidw 6Vm8xT/Rz966POOGXHJtVx0LPi1o+9ARnIL0PvPvzNy/LSy8qfZgW8jnpdte51XWxBwj VUv5NxzXNBeC6lVx6N0mAnKIO9/Vui7BTPJVVuJ3o8j7KCpD7R/k+LNfdEEY6rgRuGGr vgUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=Mw3YhMxze+L33OOW35Ho/s9cEaxtf/agG+UY/pcXArs=; b=kWpAHapVlZoMD4fGlCVZYOpHhusY0q24lVCf+RH+gVLXyFarDMHx/8ttWeFmKL6YhP gb2kTo6eD8OOHJIU/0XL8hFuvJ5/27XMOK2wRTDTeVUrTuBj2eK5CYVbmp+VSgj099uF adFbBu+v9360obCE2464JxCw+hPyFL5WcqsBVV7Yfg4Eya0LW52vZ0eIpSIjHe7n2dxY N1XRTqqqp/OBuX+iHrU3jza7PmfBSsfHpoZx4sYOLkfg9qjXTZvN+dtB2XPWCyoVHLvE jGUP9cO+CN2KzRwm58zP1NuYLfV8NrNH8Ld/oTVuZquIDT8ziTSdkSKTdC24/NAPl7ox hQ0w== X-Gm-Message-State: AOAM532pbvS2yBOiv0aobFldCxFA6jv1UlUUVr3n0+/u/zhShrN7JKBS JBqV465m8l0aGxQBP2Xk5guyb8gMIod880KT X-Received: by 2002:a17:90a:8408:: with SMTP id j8mr22411294pjn.1.1615195582670; Mon, 08 Mar 2021 01:26:22 -0800 (PST) Received: from [10.187.0.14] ([45.135.186.66]) by smtp.gmail.com with ESMTPSA id k13sm10095045pfg.3.2021.03.08.01.26.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Mar 2021 01:26:22 -0800 (PST) Subject: Re: [PATCH] gpu: drm: i915: fix error return code of igt_buddy_alloc_smoke() To: Chris Wilson , airlied@linux.ie, daniel@ffwll.ch, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, lkml@SDF.ORG, matthew.auld@intel.com, rodrigo.vivi@intel.com Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20210308085952.8153-1-baijiaju1990@gmail.com> <161519509650.8241.14778072091965189208@build.alporthouse.com> From: Jia-Ju Bai Message-ID: Date: Mon, 8 Mar 2021 17:26:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <161519509650.8241.14778072091965189208@build.alporthouse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/8 17:18, Chris Wilson wrote: > Quoting Jia-Ju Bai (2021-03-08 08:59:52) >> When i915_random_order() returns NULL to order, no error return code of >> igt_buddy_alloc_smoke() is assigned. >> To fix this bug, err is assigned with -EINVAL in this case. > It would not be EINVAL since that is used for a reference failure, but > in this case the idea was to return 0 as no testing was done and the > ENOMEM was raised before testing began i.e. not an internal and > unexpected driver allocation failure. > -Chris Okay, thanks for your reply :) Best wishes, Jia-Ju Bai