Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp42666pxv; Thu, 8 Jul 2021 14:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6+fyFX6Gg455urGWv+OIxDoy9pU9JYBlmgtUS9UaoaCNItLZv7ZsG/DY++Kv5nrwXpk8j X-Received: by 2002:a17:906:28d1:: with SMTP id p17mr1004540ejd.130.1625780212041; Thu, 08 Jul 2021 14:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625780212; cv=none; d=google.com; s=arc-20160816; b=pGAUeOegTOLeoz/PX7nvV/0jjVtaUNfvn5xZkY38Msl2nzf131fKZcpd0X6c/mMcYI yJ4KRmrOk/qfKpqr4mWzmN2FqLQty/qTUhVEqEyF1SPW2BiO55Movua15zHpbyOV35wa fv8lclNFdTkSiLrhdP6wi3QczsdO9OoBi5/n0nzBNl5yWPtrGQNBnz7vKEWkzFqcc5QS mx37BM94+odmJcnzyWmVmpC+8DUqovC6JqBZv3Z8SmWVakjc1EuGAnbw40uHuYn0VJhH 5ZC1EVQvDsytKEdQ3LFlEmpFtEXbP8m0UKt3U3MWQT9YCXYUNzgJBmuCW7qhrTF4OMbu S3vg== 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; bh=WgfzwELcGruOPsQI0jTdnF2Co2Ij0C3oKTex1B8OnUY=; b=sNw93Y345gcpeiOWA6C5Ol6v8unOYJIYlSO4SATzhXCwRRQWSoH7EJZmX2F5PAXtAZ 5vEDHe3oDWmZgDBqYAxB2FhYn6zZ88m1AwEEFuPBgLwLb4et0ve7fmmEl6+W681t3P34 ZWzyPYJbZFOhG8ZN7HQYJcRkxtKElqBrxjfovu9b3gadgabNt2wVV1P6/CZ0TM/4a83z 0mU8NxTDdxz/fyj+tggtH8PCeRNQh7W98IvYwKP/3jbzS2Z/ESYFPE85LZhZCneswuk+ q9KhD9GTwQfcWbWTJ55o6D3Nvf2XL7tTamBMyhdIVDAOCKzBn+yutLjjPnh9flQABQpa gHtw== 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 i14si4252914edc.537.2021.07.08.14.36.29; Thu, 08 Jul 2021 14:36:52 -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 S231341AbhGHVg6 (ORCPT + 99 others); Thu, 8 Jul 2021 17:36:58 -0400 Received: from mga03.intel.com ([134.134.136.65]:49848 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbhGHVg5 (ORCPT ); Thu, 8 Jul 2021 17:36:57 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10039"; a="209643870" X-IronPort-AV: E=Sophos;i="5.84,225,1620716400"; d="scan'208";a="209643870" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 14:34:11 -0700 X-IronPort-AV: E=Sophos;i="5.84,225,1620716400"; d="scan'208";a="482685301" Received: from otc-nc-03.jf.intel.com (HELO otc-nc-03) ([10.54.39.36]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 14:34:10 -0700 Date: Thu, 8 Jul 2021 14:33:44 -0700 From: "Raj, Ashok" To: Thomas Gleixner Cc: Jason Gunthorpe , "Dey, Megha" , linux-kernel@vger.kernel.org, "Jiang, Dave" , "Tian, Kevin" , "Pan, Jacob jun" , "Liu, Yi L" , "Kumar, Sanjay K" , "Van De Ven, Arjan" , "Williams, Dan J" , "Shankar, Ravi V" , Ashok Raj Subject: Re: Programming PASID in IMS entries Message-ID: <20210708213344.GA347913@otc-nc-03> References: <87k0m2qzgz.ffs@nanos.tec.linutronix.de> <20210707221216.GA56594@otc-nc-03> <20210707235822.GB4459@nvidia.com> <20210708003335.GC56594@otc-nc-03> <20210708120846.GD4459@nvidia.com> <20210708143657.GA70042@otc-nc-03> <87v95kod9f.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87v95kod9f.ffs@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Thu, Jul 08, 2021 at 08:45:48PM +0200, Thomas Gleixner wrote: > Ashok, > > >> > IMS core owns the format of the entries right now vs device specific driver. > >> > I suppose your use case requiring a vm_id might have a different format. > >> > So this is yet another one the core needs to learn and adapt? > >> > >> All entry format stuff is device specific, it shouldn't be in "core" > >> code. > > > > Well, this is how it started way back last year. > > > > https://lore.kernel.org/lkml/158751209583.36773.15917761221672315662.stgit@djiang5-desk3.ch.intel.com/ > > Which is wrong on so many levels as we all know. Sorry, I was just trying to point to Jason, that its how things started. Since he was suggesting to have them as device specific. > > > Where the driver functions for mask/unmask/write_msg etc. So the core > > needs > > Needs what? Fat fingered that reply.. I completed it partially but moved to a different sentence formation :-( > > > So the format or layout is device specific, but core can dictate the exact > > message that needs to be written. > > Sorry, I don't grok what you want to say here. Sorry it was unclear.. I meant things like compose_msg() Cheers, Ashok