Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3257567imw; Wed, 6 Jul 2022 21:12:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tOqgd+zSBmGHtc1bL7lag89AWmqUP/Ohyvjg3qv5gBV9gvSWEVLyF8C+vjXv8lmWpKZbtJ X-Received: by 2002:a17:907:72c4:b0:726:9406:f760 with SMTP id du4-20020a17090772c400b007269406f760mr41561139ejc.247.1657167161603; Wed, 06 Jul 2022 21:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657167161; cv=none; d=google.com; s=arc-20160816; b=BCICojEpJL9OMNcKucPhwOyltSIrXVj+iHHxy8dXwf9QvUOXWh1RHIXbQtBlOJRWn+ f8roy6GIaXj33OoAUpudaAS4KfS1PUrUHANgj5thm94pppOqqYJGtomGc0syuyyrpZvB 7LpMqGC3e4PHbP2kzzOeWRtyf5YPOZ1UCvjhwX55auGbgKHDTOoMLlrsGxKA6cUZ7H72 hF2/f9Ax5xYW7TvL6yinSEOmp9t5b8bOQY0hD7086d92HwRzpCEd1mJNLt4hwD2GtcS4 fG+c2GXzXNOPodCX/xSLXojmljTgFcFIRzuhWWO/tnbCxVLe0W4w2oKfql13fF4HhgCW 7/UQ== 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:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=TlTNopJ3MCKbo1HT7KkbMd9JFcUI/v+cewwMgOF73fs=; b=ucGV8q+fHYG79KYWwHVWQiPHdTvwxNP5WX1I2qy5je1X6pU0vP6eFxFMiXLPErr0OA WVjd73ZIESPzxLn9WflSm0A8eJvSPQOz7jz4MCbSM3V0LceoIM4wYejLPs07UWFBj4tC kJQSFf181ofdqbv3DzFv7qIHVIvqM++ln4/PCjgh03tADhGupG5VnTfit1UjOpIGdQXX 7uTWJXSj/XM6SQqLKumyaHRTkIbZC4H6nidDOY0T6b5BeQ1wQc/hmTLWUCKRUNBvrq6o xNB+NUoz3Dy1UkYdfERcyJBvAxopnP6QCgJmL/z++1QYjEZzdIJtWjTNP+yvVb/T3nlX dUPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fKS5lJWS; 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 h12-20020a50c38c000000b004358145e6e1si91224edf.209.2022.07.06.21.12.14; Wed, 06 Jul 2022 21:12:41 -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=fKS5lJWS; 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 S235034AbiGGDCh (ORCPT + 99 others); Wed, 6 Jul 2022 23:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235088AbiGGDC0 (ORCPT ); Wed, 6 Jul 2022 23:02:26 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADFD430F4B for ; Wed, 6 Jul 2022 20:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657162939; x=1688698939; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=zDHr4dBa22BsNwtUtrCF8oK8mc/E+IT+JoPdjpDGUbs=; b=fKS5lJWSo2/Bq9v/t+rIKiMkB8FtX0+P6178EBiqa6f4910/OmAiBtc1 n4a7U9IaVAEg928N2U6kZQLJbLgzpgsnbdSOExViRTFgVZYBTo5FlCukX OVfZyVOO3UzU63I0wY+03mmJqRNeewJ3SLKoPiyCK0HlniMEwjKt8hV0g zcz8HUH0DrsMTtRLDy4pXQaAgCFeU9bYWmA0hMdu2GVSIDSCxRJ3CsqtV kJUWhsRFbOulM3dT9FKy2JNsKjZp7JHk8A4dVWzLnyWwWqnbYc84hIo3C jUM89My4Fh6BZ9Huwh2YQ0Cxe5eMoceW76tBOtJb3vXF9MhJRWzY7Shl1 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10400"; a="272709111" X-IronPort-AV: E=Sophos;i="5.92,251,1650956400"; d="scan'208";a="272709111" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 20:02:17 -0700 X-IronPort-AV: E=Sophos;i="5.92,251,1650956400"; d="scan'208";a="650936330" Received: from hualiu-mobl1.ccr.corp.intel.com (HELO [10.249.171.209]) ([10.249.171.209]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 20:02:12 -0700 Message-ID: <2547ae6f-9567-fd76-3a51-31ae769d8599@linux.intel.com> Date: Thu, 7 Jul 2022 11:02:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: baolu.lu@linux.intel.com, Eric Auger , "Liu, Yi L" , "Pan, Jacob jun" , Zhangfei Gao , "Zhu, Tony" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v10 08/12] iommu/sva: Refactoring iommu_sva_bind/unbind_device() Content-Language: en-US To: "Tian, Kevin" , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , "Raj, Ashok" , Will Deacon , Robin Murphy , Jean-Philippe Brucker , "Jiang, Dave" , Vinod Koul References: <20220705050710.2887204-1-baolu.lu@linux.intel.com> <20220705050710.2887204-9-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 2022/7/7 09:56, Tian, Kevin wrote: >> From: Lu Baolu >> Sent: Tuesday, July 5, 2022 1:07 PM >> >> +struct iommu_sva *iommu_sva_bind_device(struct device *dev, struct >> mm_struct *mm) >> +{ >> + struct iommu_domain *domain; >> + ioasid_t max_pasids; >> + int ret = -EINVAL; > > -EINVAL is not used. Updated. > > Reviewed-by: Kevin Tian > Best regards, baolu