Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3118219lqp; Mon, 25 Mar 2024 22:41:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZWrseo2StmmWiP70uwj4dFYATgWBlubqGZ/VJyNFQ3pu0ngIWGXD4Q+QTmoqgJ6CTSp5dVh7qhTsOZYC/RqYLv+OJYZXzjcIABWel7g== X-Google-Smtp-Source: AGHT+IEu38HEqawArbvLuLNYKmK+EseCDevevoTuKEnJE3RHOQp3a38Lz2ArEDlb4w5gcxrqiYSu X-Received: by 2002:a05:620a:8c4:b0:789:da81:8f2f with SMTP id z4-20020a05620a08c400b00789da818f2fmr8765446qkz.26.1711431703272; Mon, 25 Mar 2024 22:41:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711431703; cv=pass; d=google.com; s=arc-20160816; b=MH53y4me3f/KWTZUU1rRjnqQ7ThwZrQc7OSHT7KuCg6wX3lD5lHnqScPmgE15ZfT+8 nlFW0LYLwzQjjycvNiCSF/MHARtXylERlIn7JXjTNuLh9CB28pCevMqNz7SsDi1MaIxL Okyl0MbK4XsinbqQCvcwaXzYcqUiKWN3mlI+mrgYK9vUeY+v8s55z8k0FxrmAhHPvdki ITtiKSOBTT2B60sjjtA8cki9HR9kH4B42TVouHzUU5SqzJsGwSl27zCdsmxbwzMnjsA+ 0A+bza/bF1v0MvH3z56t3Atpoe9ALjHPospv8XA8vXXjFpDFM/XlohmXjkNqa6soV2+d nKlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:to:content-language :subject:user-agent:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:date:message-id; bh=1XSXJZbF0gryJmu/jg0hnZEgDIX7Lw5a1dce0z3J1VI=; fh=ZJg2RBc/u6RBgCy7t/bRgXblB03yKY62BkZW7FBx8OY=; b=VK7TCnDD/0s/6CTOx3XkVAcfEN5ChA4QsKwMhueveKtyxlVEVjjJLJVkRJYKhB+gwu f9YywEMOMEdW5nl2mMOd9bsHFI6sbOkz/EztVkB1bdYQEEnXG7xu0P+6YHLabKQ1/Xtr C+jUK9Jwk9UOBJdArTWKPpXTpsc2UsLWjtwe5vH5tEBOVLE4Veqky+fUBpxq/CULuVQo C4A/6H+S2wQPoGv/+it1nOGN6e0KzDYBbMURJnjbjqa2VRwchq6qVDYPUwE7OiNAFqLR QkEINXhg/Etf/j10yFQRibtH3b8nIFTfO6I1Uta5DNhmyRl+5w3qwmt1OSb1UGVgPt82 99Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-118376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118376-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u12-20020ae9c00c000000b00789ea135e62si7019578qkk.59.2024.03.25.22.41.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 22:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-118376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118376-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 00F1E1C2F7BD for ; Tue, 26 Mar 2024 05:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F050A12A17E; Tue, 26 Mar 2024 05:41:32 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 0B9C7446BA; Tue, 26 Mar 2024 05:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711431692; cv=none; b=Hv/o6UYFgeaoAYV6ddf6kxGBaBZWhW2t5FSJtNwVwix4NYPvln4URUKjxeSkAQu/YMmJQfLSmqMB8/SHMZ9XA+OcU+gP2Q8lziH2uoAC02m7nYbn0n56kjEqOskz3QaNSOWV3xfPubsCjsdmWocv5FRZc0eEaiQZ7q921TxCXK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711431692; c=relaxed/simple; bh=zdIoSYl0H+cZnP925/Fbsw4JQQ8i2NFXq9a2yvqMDBE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type; b=sipIIV8M83PKCXc2cmMTzXiVUMbb8nBOqt7OcLOfK4Wa47dZU/vZfclku+WQ2I12dXNtDSA966d+pAczAC7lpKMYVzxuWFHhTDGjLZjKVJDCQyc9VvHYcJZD0lsmCxC+AdFKgi9sTDTBLzsYgOJmVcLBuwS8NUcR3h73lqJonaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from [172.30.11.106] (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id B8C3C6075D669; Tue, 26 Mar 2024 13:41:25 +0800 (CST) Message-ID: <0e719692-a166-1f56-4226-e71f7503aa94@nfschina.com> Date: Tue, 26 Mar 2024 13:41:24 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] drm/amdkfd: return negative error code in svm_ioctl() Content-Language: en-US To: Philip Yang , Felix.Kuehling@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: Philip.Yang@amd.com, alex.sierra@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024/3/25 22:09, Philip Yang wrote: > > > On 2024-03-25 02:31, Su Hui wrote: > > Good catch, ioctl should return -errno. I will apply it to drm-next. > > Reviewed-by: Philip Yang > >> --- >> Ps: When I try to compile this file, there is a error : >> drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:28:10: fatal error: amdgpu_sync.h: >> No such file or directory. >> >> Maybe there are some steps I missed or this place need to be corrected? > > Don't know how you compile the driver, amdgpu_sync.h is located under > amdgpu folder, amdkfd/Makefile is included from amdgpu/Makefile, which > set ccflag-y -I correctly. > Got it,  I should using 'make drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.o' rather than 'make drivers/gpu/drm/amd/amdkfd/kfd_migrate.o'. Thanks a lot! Regards, Su Hui