Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp56665lfe; Fri, 15 Apr 2022 19:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM1d+t9NG5g++ySIDnO8itj3OxocbSsdcgo3toTpzt2KE0ssHZBw6pRA0zrunlgiZVQ7zk X-Received: by 2002:a17:902:b710:b0:156:47a6:c575 with SMTP id d16-20020a170902b71000b0015647a6c575mr1771218pls.37.1650075475081; Fri, 15 Apr 2022 19:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075475; cv=none; d=google.com; s=arc-20160816; b=wJ+1mFyT1ybMrFOmRVhsUYFPu2HZUthc/7RmvR2fTiI/1Jjsszp29YZZ24NsHG4hqJ dlnsLtH7DtRIw++oeaACf7OYrAETWvON2KgObFI1s8GYiMztUAod9VT7zfxBb3AywdJT C8LnnYth11HlrUR5R3hQW7pfT8SdicVNdBzIRXsgaTFhPc/riUIIJf2BY/vuJXZWawCe jdD9Dq6h1JmzhxgPhG7j6++yPaDZHpX/PAq83BVcBSyJqApdzgnUeLNKaTNI2k5yP78r pTkCxOeVYbsHR0YNrYXr3117hqsGauAskCX0dVRF/MFhe8W6iUo3slqySPpFxcQ9jhr8 dsLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N5QZMTpSuxuuC/JrRfv1HnnxupDIgOPC/dOq/bciEhQ=; b=iLjghcP0obbFcexHBnV/Gi8+2XTxwy1X8GNsOUfJwcW8azVjSnzoBlC7/Zi+oR5N2c 2kLbs9s3I6QFvFgZP/8V4n6hkZHnmjqV8Oz66MnL2e9hejCDx5VWADF2zvkI+sskrwra 21zgt2iabjA4bYR/A1tvbl1Owi8YPqEgnNWsTemBeMioUdARlmzjwKBbkEVqwG6NsA85 zt1GnowBqN2Os2zftdSlZzAiYTRG25UxFzzhTgpkBNTILEOyn4MEPK0cHPRiLpGuyFGB qpo5VkvIQMDjBAnJzwVj21Ua+ZiK4daDG6OJwPIj/WG/Zn7OEJNy7tWgdlsxBM4+Ro0k E4/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bddlrUzq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f184-20020a636ac1000000b0038217a788ccsi3026544pgc.173.2022.04.15.19.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:17:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bddlrUzq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9244A14CD3A; Fri, 15 Apr 2022 18:33:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343751AbiDOTJp (ORCPT + 99 others); Fri, 15 Apr 2022 15:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243989AbiDOTJn (ORCPT ); Fri, 15 Apr 2022 15:09:43 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED7DDAFF8 for ; Fri, 15 Apr 2022 12:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650049634; x=1681585634; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=N5QZMTpSuxuuC/JrRfv1HnnxupDIgOPC/dOq/bciEhQ=; b=bddlrUzqdecOgRVll85KwtE+/vUhqyM7/zdYckyPu/60lT18Fxmhv0Ve dw9uBtt7O6sQ0Og/uzs+FMHGh9Un5uiH35hjEkTs+faCAypD2A+Wyxg9D lA8ULOXcgb0G54wVdhy0dNO3k02doL5wTiqJwqrh/i2tj8MBS9GL0lye4 0bSZ9OVM7NVISKWd+5zuYVvFaR8Eu5WKVAqC50Pvxk7H6Uh3kO21YK5wc jlSjNWn0xkFLv44C19F0+9ClP4TzRVNa/uQgMtYIdoknfCn2vdrR+ChaH 6pPHYvmBWtXE0mWTcqN6zSYPJD85IC3+/fXO6+vGpKTd+JWrNERvpJN+U w==; X-IronPort-AV: E=McAfee;i="6400,9594,10318"; a="262068616" X-IronPort-AV: E=Sophos;i="5.90,263,1643702400"; d="scan'208";a="262068616" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2022 12:07:14 -0700 X-IronPort-AV: E=Sophos;i="5.90,263,1643702400"; d="scan'208";a="553275527" Received: from fyu1.sc.intel.com ([172.25.103.126]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2022 12:07:14 -0700 Date: Fri, 15 Apr 2022 12:07:44 -0700 From: Fenghua Yu To: "zhangfei.gao@foxmail.com" Cc: Dave Hansen , Joerg Roedel , jean-philippe , Ravi V Shankar , Tony Luck , Ashok Raj , Peter Zijlstra , Dave Hansen , x86 , linux-kernel , iommu , Ingo Molnar , Borislav Petkov , Andy Lutomirski , Josh Poimboeuf , Thomas Gleixner Subject: Re: [PATCH v4 05/11] iommu/sva: Assign a PASID to mm on PASID allocation and free it on mm exit Message-ID: References: <99bcb9f5-4776-9c40-a776-cdecfa9e1010@foxmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi, Zhangfei, On Fri, Apr 15, 2022 at 07:52:03PM +0800, zhangfei.gao@foxmail.com wrote: > > On my X86 machine, nginx doesn't trigger the kernel sva binding function > > to allocate ioasid. I tried pre- nstalled nginx/openssl and also tried my built > > a few versions of nginx/openssl. nginx does call OPENSSL_init_ssl() but > > doesn't go to the binding function. Don't know if it's my configuration issue. > > Maybe you can give me some advice? > I am using openssl engine, which use crypto driver and using sva via uacce. > nginx -> openssl -> openssl engine -> sva related. uacce is not used on X86. That's why I cannot test IOASID/PASID by nginx on X86. I only can test the RFC patch by other test tools via IDXD driver which uses PASID on X86. Thanks. -Fenghua