Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1439450ybt; Thu, 18 Jun 2020 08:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwOANg/RRVxn40N802gCViwG/IsKxQOaNcCsFqi0GSXrIZBOv4GTBeTHTVuoChNSP6hc0x X-Received: by 2002:aa7:d041:: with SMTP id n1mr4412009edo.196.1592494945101; Thu, 18 Jun 2020 08:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592494945; cv=none; d=google.com; s=arc-20160816; b=aHjFa/5KP8mG95OLYiphgzqkWDk3jVFGeCa4FM6PedSrMhXwBGskOe/GZ8b9T9+FRn BZIaXNau4mQ+NxVSB1+NH78LLI8V+1aTRefLjVaxh9Jahq9mYTzfZtxWsZZgQw+/eV4T xzqw/cnqUZCC4jtYcdOlY74fILNtvQrAv8x8Qn35FCHHmhjsb3FHai/MTV/LAAlhyK4L 92C+Ji9zuLG44APYjiFT79qIp6pmDbOpAF0a7/lCvX2866ufJr3wNcb/4U4IMe7UXMmc fiHYV5lgC0j59cyJB8RfUxgS0wyEiVLc/l9H0VKL6c/gHQKx9fWFNCDtnyxezWLf8lGX ljdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=xpN++TMwTsyvIfSS5o5NfUJFqrTgH5D6d0CXuEAjlg8=; b=0ProqCKxtA4f0A0h3xvHtFY+P8XWzUwi0cDI8fZJF5RZUETqe0gykAHYoFecU0oIuY nXHTZm3BUHDbrISJLDdLvu/+8WDpPMAPxTEIDJGDmVVtCM1Qb0gWYrYeUW4U7+rBOwIR VSudzAztlilcigYjylCDfUNfL+dwlxndEEuT8k8C83l4OOKSXUT9FQNNyWpZic7QXKAv X9LNs6+H6AtTI7YCVpJwyVtVn7c0lDBc/KU16KrS0kA48gHyTc6ykmZkSJyOLSb8YL9B sNhaaFjLAv6JtIU9tSkq1fxd+rttTuqSlxwt9G+yYE3l3Ytb1PTAahdKlLt60ZuBy4MV yCzw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh24si2035545ejb.700.2020.06.18.08.42.01; Thu, 18 Jun 2020 08:42:25 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731421AbgFRPhs (ORCPT + 99 others); Thu, 18 Jun 2020 11:37:48 -0400 Received: from mga18.intel.com ([134.134.136.126]:42434 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbgFRPhs (ORCPT ); Thu, 18 Jun 2020 11:37:48 -0400 IronPort-SDR: CNNBvHKsDM5GSohAS/CjD9gyPyD1GErxSc3fgE4GVQsBj0U+rRBkMPtO0GiRzinSGlU3BC4D0w 3G68RYre8QJg== X-IronPort-AV: E=McAfee;i="6000,8403,9656"; a="129979308" X-IronPort-AV: E=Sophos;i="5.75,251,1589266800"; d="scan'208";a="129979308" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 08:37:47 -0700 IronPort-SDR: CzS5MoOz9LW2W8ufcf7VltJ40EwQvdPZ9f1UIByPKyXcF7fjAaxqMgTRiN1ED9CIyfAtjpBrfb JU43hSx3nDnA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,251,1589266800"; d="scan'208";a="291807299" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by orsmga002.jf.intel.com with ESMTP; 18 Jun 2020 08:37:47 -0700 Date: Thu, 18 Jun 2020 08:37:47 -0700 From: Fenghua Yu To: Frederic Barrat Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , David Woodhouse , Lu Baolu , Andrew Donnellan , Felix Kuehling , Joerg Roedel , Dave Hansen , Tony Luck , Ashok Raj , Jacob Jun Pan , Dave Jiang , Yu-cheng Yu , Sohil Mehta , Ravi V Shankar , linux-kernel , x86 , iommu@lists.linux-foundation.org, amd-gfx , linuxppc-dev Subject: Re: [PATCH v2 02/12] ocxl: Change type of pasid to unsigned int Message-ID: <20200618153747.GE15763@romley-ivt3.sc.intel.com> References: <1592008893-9388-1-git-send-email-fenghua.yu@intel.com> <1592008893-9388-3-git-send-email-fenghua.yu@intel.com> <972dc2cb-9643-53af-b11d-ebb56d96053d@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <972dc2cb-9643-53af-b11d-ebb56d96053d@linux.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Frederic, On Thu, Jun 18, 2020 at 10:05:19AM +0200, Frederic Barrat wrote: > > > Le 13/06/2020 ? 02:41, Fenghua Yu a ?crit?: > >PASID is defined as "int" although it's a 20-bit value and shouldn't be > >negative int. To be consistent with type defined in iommu, define PASID > >as "unsigned int". > > > It looks like this patch was considered because of the use of 'pasid' in > variable or function names. The ocxl driver only makes sense on powerpc and > shouldn't compile on anything else, so it's probably useless in the context > of that series. > The pasid here is defined by the opencapi specification > (https://opencapi.org), it is borrowed from the PCI world and you could > argue it could be an unsigned int. But then I think the patch doesn't go far > enough. But considering it's not used on x86, I think this patch can be > dropped. The first 3 patches clean up pasid and flag defitions to prepare for following patches. If you think this patch can be dropped, we will drop it. Thanks. -Fenghua