Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3320811imm; Sun, 10 Jun 2018 13:33:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK2ZR0P6kGHhBP83OLy4v2Sx6/CQ2E1XupJtmLZRZgGVGGpeovDWL8j+idZhswwqxagDvQq X-Received: by 2002:a17:902:8e87:: with SMTP id bg7-v6mr15499195plb.129.1528662807824; Sun, 10 Jun 2018 13:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528662807; cv=none; d=google.com; s=arc-20160816; b=D+dq2+MaiKsqpsyRE4nEJlFQRk80dXopmMHZEE8bCGE670fFpFgli2DtY8vYaphdd3 UNBCSF1jvxFWBjdKynGYH3DiF0FiCch5W+wPY1X2TBNq10Ot481FarmYeQa4doixO6X9 zPjV8twXjfeal0pOVqCcYgFVUkQxwYmJIzWawEbusv1Pf5wQZxE1KLELmyUvb4AUKbCq vklnWmT1W2rzw/CxQdkVihRStcp8j86fCnzzn1wcceEomYeBLaiI4SRq/e6NC7bxdcdh 9g9TlQkjR9ta4mOqxLLBJM4B8T1BPbS1AncuGUhpBQpUEV6eo+ZYYcvIcI/gjOxkmKHF YAIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=9JbhxGDKxTOcA2UCMlPjMFrr7Kkm25jk86i8ePMaSL0=; b=qC3gMZ14YHWCfd8t3iW+Mc43k2GakqXqwfgwDzlBBpVpsaWFq6dr5+gUGh5lWxkbnW RIopXjA0XFN8GcqFZnO2EFAsa4cxEmMb3kNas+5pW5RKm5aNQbfoyK5AtoRlbE4ESPAg j4+O94d+QQuQMTHv8N0+FU1zaAtokLOwlkhuJRieNK1qeUPTs89ZynBVNhQiGIDk71Nv 7GKBjZ2+kkWTjT6oNRtCs2qk7LGhpcHLG7JBDjmTOX+K9/I4jVQJqPqGZvMW5h4k7P5f hAu3BhRO0DBYeNidWGWAts4zvA9h87JYM7kuZi7owTZfmzL/9qglLi/S9dlBQKZaSOuO ckmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=JMHRgrzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si61118214plb.246.2018.06.10.13.32.43; Sun, 10 Jun 2018 13:33:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=JMHRgrzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932213AbeFJUar (ORCPT + 99 others); Sun, 10 Jun 2018 16:30:47 -0400 Received: from mail-he1eur01on0049.outbound.protection.outlook.com ([104.47.0.49]:42607 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753681AbeFJUap (ORCPT ); Sun, 10 Jun 2018 16:30:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9JbhxGDKxTOcA2UCMlPjMFrr7Kkm25jk86i8ePMaSL0=; b=JMHRgrzWy/K81lWfPkZ5arDnUcZEgwVQL2v1o3Kvfo71TrD3BP8jL70DR3VHo3wF/IB5KicIHK//OwiaLpY1NvncFcF3pwliVfy7j2j0ygrsWFTILRa+kQpntgJeIWrYInrwi43+lzSxB5Mx+9Wg63W/WLKWnl6SCEEQV5J+0eo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jgg@mellanox.com; Received: from mlx.ziepe.ca (174.3.196.123) by AM0PR05MB4451.eurprd05.prod.outlook.com (2603:10a6:208:5a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.15; Sun, 10 Jun 2018 20:30:41 +0000 Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1fS6yp-0007ZN-DS; Sun, 10 Jun 2018 14:30:27 -0600 Date: Sun, 10 Jun 2018 14:30:27 -0600 From: Jason Gunthorpe To: Leon Romanovsky Cc: Matthew Wilcox , hans.westgaard.ry@oracle.com, Doug Ledford , Matthew Wilcox , linux-rdma@vger.kernel.org, =?utf-8?B?SMOla29u?= Bugge , Parav Pandit , Jack Morgenstein , Pravin Shedge , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs Message-ID: <20180610203027.GF5560@mellanox.com> References: <20180608174218.32455-1-willy@infradead.org> <20180608174218.32455-3-willy@infradead.org> <20180610063028.GH12407@mtr-leonro.mtl.com> <20180610104305.GA9284@bombadil.infradead.org> <20180610122505.GM12407@mtr-leonro.mtl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180610122505.GM12407@mtr-leonro.mtl.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [174.3.196.123] X-ClientProxiedBy: MWHPR22CA0007.namprd22.prod.outlook.com (2603:10b6:300:ef::17) To AM0PR05MB4451.eurprd05.prod.outlook.com (2603:10a6:208:5a::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:AM0PR05MB4451; X-Microsoft-Exchange-Diagnostics: 1;AM0PR05MB4451;3:CCZHD5GpUhwjHqJngsvcOXET9EgoasdFzTymQZxRROgot62RdVS8JRwg8r6PhH96Ay7vNiC/L+MOape7VSDVMH3WnCVdCD7kGVu012rcOxnXsITvBnCIqeKDCqPluK+Kmi3v0PCUWRqF5RNgGHOt93Ez9iH8DUjHNUsQgI4ldicsMRElsvT79Zp/YGqiaeTUNPCowCWyacLgqS06JMmwfw8nMhysgf4bL8Y/Z5oH7ejxn6FfI/SgBHbXEJaTH0Kn;25:DPi5kL+50ZUNQyrMXvi3ZyxY5bidqCqBdrWAmHZZz4n8VZ0ePE0cmy43EENQCdmMGymFiKZy3TqfxzWCf9IYAgMR5Cjr1jqxbybfjWHBwi6R/G8NGUHGemVjixD5oE7LRL3RxYijVm84P+27T86lM9E7zcD5rs+EXSJnSSDPo4EeVUIEkBvvW9NqoFEhZSsATmvttPedX8sBk2TkG14HoXelrtozXWLnXzK5G2/2y09zgHO0z5qRjw8j15inLnvFyxtXRnzy/piUnpKXcuDmvbyDPVfqBBbZKKBXS+im8U6XImpq7mwCPOX6lS3xqLmlL5DgdgvCDQVtIFUYz782cw==;31:3V8C20iTfoHdNstN7udnKDCbiKDmSlAoH2ljShEL2MgTvIUH7QBn6uLHIo3xeXxDKpG9Z4EongHrKZAWWeqCis6jCxX0edhQlWHd4yJOyc48FvHuX9vms16q5TwJa8FtV7O0NXbkbhl4WfNoDxCey+4gASOp7Dp57LPbe/cL5PY3zomMCS1zNWpx3sjtL4Ooa2IjoyBoo6dxZOMnpNOXCmQSpk2KrYfWIgb0fMC1WXI= X-MS-TrafficTypeDiagnostic: AM0PR05MB4451: X-Microsoft-Exchange-Diagnostics: 1;AM0PR05MB4451;20:i8iKvZJznifWpazbEislfS67JrBy5ouxAdvoWE7b/RTK0nNOjbW3ipP6inroRQ4hP0Vlm3seO9ZP0y9nb0TiWSAZfHD4VXF2ymGLDHpvMb/K4k2GJadv/eUItTuRU/aOdixtCFPxB0W1Z8GAtU/VpfB0O0CyKzD1obQ8CNluF44ZWlT2fKBmdF5u3bYGxh5HwCjbHr1bgXpe65mrmMvquEPd4KT9HpDtmbebz4ThB4Nzext6fiV2xtVMa1r4SZc+sfIGQYh82/Fq7e78XkPrLIB3SXNJXFvBDuZWHaXaGWt970+am3PFagMi1qiNBB5tv3/u/07FBSMtW41/PpS1uCSwyQA4DhyK+SCsbfQsqM75h8JYiI1LwYEy5atKtcA0po+X1N1aGhnZ7dgdhYNQq28mBVhI5/mCPeGkO29SsxTBq813qZLuVoAS5cOSjcCHEPg0c3rVTixR3t0D4gHs+jrFq/TkiXRLurv3SVRhVVkLbtB/blkR2z8QJvanUtSB;4:LIw2T2P2b0hG07qbnM1oqgnagEiCvn4YmKeDeFeFnQgrofjwsz/9tMIUZHbSOq3uqZSZ3EhMmSLHS5fQX6pkoQtxUDHQnKh9PHCDRcGs0lCRqk1wLMF068iN360u7Hmm3bWyp+x7sqeuBRbPvANx1mm3NuSrAeeLyipjqX8rnGCBc0taqrvhmTQ/eQ0CCzydxbAkesAwwMz/Ufpc8tn7DcxMpu57viwgHfbDp8i+dqPP4K3WDxg/Wsq24f/i10ex1HTi0bO1/DVBwkachz43+PVgrPcY//mr7PIHdrsgLNOWjC/VxnB39Vrf1nA1W4Dj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:AM0PR05MB4451;BCL:0;PCL:0;RULEID:;SRVR:AM0PR05MB4451; X-Forefront-PRVS: 0699FCD394 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(39380400002)(366004)(346002)(376002)(396003)(189003)(199004)(4326008)(54906003)(446003)(97736004)(2906002)(52116002)(2616005)(5660300001)(106356001)(53936002)(105586002)(1076002)(83796002)(11346002)(229853002)(76176011)(9746002)(9786002)(68736007)(122856001)(386003)(69596002)(551934003)(476003)(33656002)(86362001)(26005)(50466002)(3846002)(6116002)(8666007)(59450400001)(6916009)(6246003)(39060400002)(316002)(16586007)(36756003)(58126008)(486006)(23726003)(57986006)(93886005)(186003)(8936002)(47776003)(46656002)(66066001)(8676002)(305945005)(81166006)(478600001)(7736002)(81156014)(18370500001)(24400500001)(42262002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR05MB4451;H:mlx.ziepe.ca;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM0PR05MB4451;23:gWjoL+8J8zFR77VHbWtHeFM7VM8G3BF4hd/1Oy9xs?= =?us-ascii?Q?CJUfH+NQg4OuUKslw/QCp8ygjKTPVHYTU3fU1O3B8HjESbdit1g5AwLOXgEq?= =?us-ascii?Q?QGxe8I362hTWIYxbrBzAWVNVGGLFqi+rusMjt5inynNLPLEtrygfQP1HuJtf?= =?us-ascii?Q?+kRvsiGL4Oxo3YySTIZ9l72Ep93pi+8KFuebOof2E0F8/S7IYWHFivdqPENT?= =?us-ascii?Q?0NVv6lxihdhDqqoHSd4nllbyNY66y0owzLTGWC7EP6pI0vLo8SEiz4AdQG44?= =?us-ascii?Q?tog7xlfLL6n3iyqFT3ApzILr78GfUHsbOuDXCbE0So5I9ENttkkH2hg9n69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8QfMJOc93oU/mcOVIf6GZHJ8z5DVD2GAd3hwiSpZw4047RsaIWl27OdHa5IBA8Mf9qR2tNg4ZUcui2a2loR+QQAcE1wTB8lCCTmpmqGzebc+7lZb4Ct478PLudpRGCqlfdiL0Wd++m9kdE=;24:yIf6KT/kcY62KOF1DPJyn1LRFZl2TrAnlE0EaDGBgLM94oUw/JSUVcnfaYZ0O7tdN031+Y1E1fpxNI63IRnONY3eS5CUSkuf4TYgaxTgysM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM0PR05MB4451;7:HaCrZZ5l8k/9qrZJ22XavLeLD2FQ66roWPiVuQsutPcxSwUid+Wdlz1gsvdDJPMVuIxFvq8/uo8hZLwXlBdDQkUEzRiXeIUbOMO1llnz7rj2ZXSNn2eDJXU3plHGl1FyWE0sVzwRGMN3pgdv9Qlm2Oh+6HnctcXabotJTpsQ6Im3jwqYMwmaGiobJTcTzLC17C+MRVFlNZFQ4zMwF/UaM4bNIWP5NVh5g8zx6RZJT9HPDCTDvfvCJL1CYjcVcPIZ X-MS-Office365-Filtering-Correlation-Id: eb2a39ac-345c-4202-0b67-08d5cf110908 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2018 20:30:41.3847 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb2a39ac-345c-4202-0b67-08d5cf110908 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4451 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > > 1. IBTA spec doesn't talk at all about the size of TransactionID, more > > > on that in section "13.4.6.4 TRANSACTION ID USAGE", the specification > > > says: "The contents of the TransactionID (TID) field are implementation- > > > dependent. So let's don't call it mlx4 bug. > > > > I was loosely paraphrasing the original bug report; suggested rewording > > of the comments gratefully accepted. > > Just replace "mlx4 bug" with something like "to comply with mlx4 > implementation". Well, it is a bug. Blindly replacing the upper 8 bits of the TID in a driver without accommodation from the core is totally, bonkers wrong. The original concept was that the 1<<24 limit would come from the driver and only mlx4 would have less than 1<<32, because only mlx4 does this thing.. Thanks Matt, Jason