Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754060AbdCOLdo (ORCPT ); Wed, 15 Mar 2017 07:33:44 -0400 Received: from mail-sn1nam01on0063.outbound.protection.outlook.com ([104.47.32.63]:45312 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753811AbdCOLdl (ORCPT ); Wed, 15 Mar 2017 07:33:41 -0400 Authentication-Results: jonmasters.org; dkim=none (message not signed) header.d=none;jonmasters.org; dmarc=none action=none header.from=caviumnetworks.com; Date: Wed, 15 Mar 2017 04:33:23 -0700 From: Vadim Lomovtsev To: Jon Masters Cc: Bjorn Helgaas , David.Daney@cavium.com, tn@semihalf.com, linux-kernel@vger.kernel.org, stemerkhanov@CAVIUMNETWORKS.onmicrosoft.com, linux-pci@vger.kernel.org, bhelgaas@google.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization Message-ID: <20170315113323.GA28027@localhost.localdomain> References: <1485793552-12614-1-git-send-email-Vadim.Lomovtsev@caviumnetworks.com> <20170130211236.GW20550@bhelgaas-glaptop.roam.corp.google.com> <20170131102830.GA13854@localhost.localdomain> <20170131142525.GA9942@bhelgaas-glaptop.roam.corp.google.com> <20170131145720.GA14231@localhost.localdomain> <20170131203109.GA14127@bhelgaas-glaptop.roam.corp.google.com> <20170201125325.GA15805@localhost.localdomain> <20170201151807.GA15793@bhelgaas-glaptop.roam.corp.google.com> <376ae1df-da85-e576-75d6-3ae2ab0f1b41@jonmasters.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <376ae1df-da85-e576-75d6-3ae2ab0f1b41@jonmasters.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: DM5PR2201CA0060.namprd22.prod.outlook.com (10.174.180.177) To SN2PR07MB2656.namprd07.prod.outlook.com (10.167.15.144) X-MS-Office365-Filtering-Correlation-Id: 22a7153a-2c51-461b-3307-08d46b971cbc X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN2PR07MB2656; X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2656;3:YeFADIT0Cr4SMnMhc8PtiJrjmoUu/7oXsv+bC3gmeO3nhTjWI+yIMkQPLCjAMfJ5rg8pDHQ0rrDRLv3H3k8zRe82MOf10GYzgEeyMj8cl//ra7dbAUN5L4mWg34xbHremmCaXSjledplCfqEeg4S3T5XuM0YlCLBrKYcIWPCBg/G5+uuD4klZ7aV6wxWthpkbrRCOoz20hv26Gica5yLaXp4MsiOzaMH7BzNQForEon6DHC72PJbdGCY0T6zWIe2+nMVOR4Ow4mCJRZYm2F5yg==;25:b1kTGYsWMqethOqYst4TqlLbPNz6HzIhqKPnV39uGnTnJLVH+oUsaIDy5IRnMhg+vJsUZqVuaCX7aT8ompIqqaHO44DytjKNfmnoMbtjCLebCYLBBrI/VFgFPHW2xhhZncWz7sP/dXGME87sM3YT+pr7n6H+nxGqcVvjmdwyhOyqNn0TAV0/oWmrRsMx6ybU2GIs5wjwJy66fUUU7ekvljPR1qYxqGgbPyZ1RkbuSl1qTUoYC8nfXIXBDNOnJtgoSHlvfNd7Kz2t2eW+PGjbIjFTIhHMZXe/Fv+sT2iJVrRwngol2nUesZxKsDxnZMckxSnpXW/J7qxruQIVnGJYpre5azAS2M09B5VF7zxR6+EVFH4lvEyoJIq8yFJLanNSBNUHTE7O6pA5qV0XeegTATzs1LrWMFs0VtHVnHvr2c46BP/mvAiWmHHXmgv3lDOQRHq6c7N6fnG4vfecHFlt3A== X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2656;31:S+/zvIpta89H8Pvdt1guXj+NIv6KKHEYq4Nbewm/j7l6AdKFjS3Rv4WhkCYOcKRsI6HyOjtwKjjQEOdSFk/+psisMs/Dhya/QzI68IEe3Sv+hun8ZwV30uNEwkrzRm0HnTUOEqVtcFOd7xCWW/k8oxZTfyCHBp8+Mz1C1DQx0YzkhJQGVDkZGYvrreEZhULeRnAiwtNnA9yTMCXwetnMfkFAqoZsBnFj1t3GYnc4bP0=;20:6lMvbgULesryl+Ains79EIQv1oGTApjVwbL3Q/fjJPdkwMaQjO+hUhp5pr7Yf0aC3Z/f7Vx6BmgmnXcZqCxBCQ2dkB2awijOtk4yXIdKWVJ53VgYh4K8iFRRP5zPaUTtXJzg0JKx0wHxB/urx9BnrG2lt99H8JXaVGsANi8IlLe2MqbCjRnJ1O9wqAxdNfhjhuHZqAxKWuEQa2wFgQMoIziLHWeFxX0Vh5yVn0+v6Zps6rLdBC2aF1IQ2GJJJg2CBDv+s0ANoI7nxzxSrK8mSPY8IyfNuU4KFmJd8KtXoKdzG3nKYtb8deZhEJRpr1tW8SqxWFfxkxdbdHFZso8+wsA0uchIJR2srD3keNV0Vsxt/pjUctoL8EyWIwinvLWBULWU6GrZnM/0OP1W8OZCs9l6GOuYaDhqDXPcGpIQyCT2xo+eZisYK57NDTfAv8zO92LbXM86k/2wf2dIbzw2JHQoxGNf33AfjZPqOVWadgJevR9v6ZpDA7mWjzU+LUdto4JJet+rynWJ+muzHUJ7uM90qQL9Xmp1boZ9sgksrqewBGO93DzZVQiek/jCTbPi7F2OugcrKFReqyMarKAf0DmrYyg9TrUaPxUnzSMtRv4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123564025)(20161123558025)(20161123555025)(20161123562025)(20161123560025)(6072148);SRVR:SN2PR07MB2656;BCL:0;PCL:0;RULEID:;SRVR:SN2PR07MB2656; X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2656;4:3GrjxI+0hY9v6KdeMBE6fzZAaUXI/wJC7svhE1pz9fTYWIDQLYtBHizBqyPDDdcMQHzxV9eo0bJO6Y/+FEi1WSCrLO+iOkSm0YvLnH7+6O4FtNAD5ujylTmOtVL6KzK40wWAlCJ4U4a4HGL0prgqN8Kh4sANR52uDgYPLoT2pSvM4ylalwokiXGSwSMbHafmINaM6Jl0GG6lkwRubRjonb1ywCgevmldyCeklcM215S6VkpMsIVHDJ9pJ1yQ3Mjpx2pynauhSIx+LdFDm+wLFJuzKAN7SQqPgOsn67UqcwHpqGQCaQjHyiLloiOGoOZeenpowB3G9l/pkCXkQBXGvm453uiwg5DtDGXOrHLVqUT1NEU+rkBvXCaT1Bzo8u1Irp8h1ubBMgXk58EfdnFq2l/Mb0EpySLdysFVqr4nVkcE7VMbbDNpWkproUWuX9Oj7ldILiNFUaf/SHU60Fl0/AbbJnfs4p8wOI2X5XkoBVyMBm2W2vxNxaGAYNIsxAFMnILD4WNEeT2B0C4tzrtACKMj4MYBS/McOSfxU6SZlGcyFfqzySvOgKDYDtDo3/UwWaVYJVKLbprfEijcx2p/3R/y6E455FX4QfcbGjThoUc= X-Forefront-PRVS: 02475B2A01 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(39450400003)(377454003)(24454002)(6116002)(42186005)(53936002)(2950100002)(81166006)(3846002)(189998001)(4326008)(5660300001)(1076002)(38730400002)(83506001)(6506006)(305945005)(93886004)(6916009)(6666003)(110136004)(86362001)(53546007)(6246003)(7736002)(8676002)(23726003)(6306002)(50466002)(4001350100001)(229853002)(47776003)(76176999)(9686003)(2906002)(25786008)(54356999)(66066001)(50986999)(55016002)(61506002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR07MB2656;H:localhost.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR07MB2656;23:0EoMGMwO5rFQ5Lbf5Zu2fXgj8iVIWNkIfkz0CQcLI?= =?us-ascii?Q?fXekU7eKNk1lhS2BeVL3fBYFXxNyX/5n4T4JUdMxA4zvD+TcZ+q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KWRubpFR9wI1Q1WQrL7IM1KqHwNDFWjVHeGpoAD1z3?= =?us-ascii?Q?oY8OJJHI//yzHRpBmPdr7DbfBRyYI7v2cQ8hhV93u88IThJxrJi3cTEFW0OW?= =?us-ascii?Q?tB+bMa9RThVZCKqtpMQUVHl/C0yaaZkFDARRTUVtXzAnZPTD03ggy8b23NcY?= =?us-ascii?Q?/FYt8p71mU=3D?= X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2656;6:WsLIYCGNrNbARh1tJiKbiveApVo7gyAhRvMV2kF7M0zJrsFwpCckW2q0YXIejjypG5u26vju00tuoD4jKG8QO3as9hKiKevZoVJ1YCueaLqNQcqmow7CFQQ9Io3NRpCCwAlj3xB+zpBs4HQsQYRs2wRzv9Gw3UGq8XisZ5I1jo/5yFp4RRKHcFp6wOs6VflDY/zaMYzW3O+zx3/es5xTQK6dtIrk566SkAByrE0i4mOIicx/ll5VIVT9FWjt2HiJVqL+l5z68jbVIZF4M+Jw8lu206tKVA/xDJSjZahMEzcM3Uk++DL/0YJeHHoxfaaocDk6AMXbvicRFC0fQT3IJ/k78yKZNlhJAqD5yCO+hScx3NJInQ3UjCeMOP8E4fEVpIM44Z9vzrncAfFLfbK5HA==;5:iN+Z20SVOPIal4a4TYMvxPjyGiUnMAwNntvjq+wENQjpqrpl5fUnn4x+y0T3inr+mjexp82zWEQ9YLampCITCF3l7hZ1nM6wPn4GDnF0Bs/Ef5i+IYWnFHbx2H7OeEuj3lQEMPbm9aFricZDXWTyeQ==;24:4Fjuhb/+mhGGo6rA6DUAILkOEZKHFrObBaoTs5g9aBjzHI+Wn+uTa6tQLGPr0ZrJpRG+YgmKa6tVATeXAE0zSA7pNKLSzmYootMy7kisw8A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2656;7:OwxJTFeSskTYV4TbPfyj8X0qGzyRKeNqfR7WrdS/iOYU5awKK0ac4fowL5L2W3D8YXs5qL0ZRj7HUVApMSET/CQVduJZNQoeGjqkOAs4pDTYuqABxg1fM4ZC5TDsynGhqM0XTcTouL4qzYhp1Bt/rbQwanzxJBNNa3+S7ObT5OP1CtA85oZ1hw0HsWcfeUV4lkBTc+ORr1lfcBSmFM+Vf1GX367Gz4qgR4qsxoa03zgJu/cUcIlynVpKi7W5BXxaXLZRWJurA4sVRcX1+nacirMFJ22LIFBV6W/jPa4K/7sQxGeVWBAFppagOEOkMk6Co1RcijjFNJtk16in0bFKog== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2017 11:33:32.2974 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2656 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2710 Lines: 76 Hi Jon, On Wed, Mar 15, 2017 at 07:14:38AM -0400, Jon Masters wrote: > Hi Bjorn, Vadim, > > Following up to this old thread... > > On 02/01/2017 10:18 AM, Bjorn Helgaas wrote: > > On Wed, Feb 01, 2017 at 04:53:25AM -0800, Vadim Lomovtsev wrote: > > >>>> Because there is no such ACPI ID as "THRX0002" registered > >>>> (http://www.uefi.org/acpi_id_list). > > There is still no "THRX" prefix registered with UEFI as of this morning. > > >>> To be pedantically correct, I think you want "THRX" registered. Then > >>> you can manage the "0002" part internally without registering each > >>> individual device. > > The upstream Linux kernel contains a quirk matching entry that looks for > "THRX". Therefore, you have already agreed (as of at least January) that > this is the prefix that you will use in any firmware updates to support > the latest upstream Linux kernel. Please register this prefix promptly. And from what I know for now - we wont going to register this since we have already regsitered "CAV" prefix for that. And this was the part of our discussion also. We had a bit long review of proper implementation of legacy firmware support, so my apologise on that. Please take a look at link to the patchset posted by Tomasz. https://www.spinics.net/lists/arm-kernel/msg568741.html > > >> Not sure if it would be registered that way, because (AFAIK) > >> it expected to be string constructed from Vendor ID (not the Product ID) plus > >> four hex digit manged internaly. So we suggest to change it to 177DXXXX > >> which corresponds to Cavium PCI ID https://pci-ids.ucw.cz/pci.ids. > >> It's also possible to use the 3-digit PNP ID, "CAV", to construct these > >> _HID/_CID/_SUB values (http://www.uefi.org/pnp_id_list). > > > > My point was that you only need to register the prefix ("CAV" or > > "THRX") of the PNP or ACPI ID. Then you manage the suffixes > > internally. You as long as you register "CAV" or "THRX", you can > > assign and use "THRX0002" yourself without registering that > > specifically. > > And my reply here was : "Yes, exactly. And the "CAV" perfix is already registered. And I think will'll use it to keep things aligned to specs & rules." > >> So the FW will be updated accordingly. > > Indeed. Yes, it is now contains "CAVxxx" as _HID for device config object. > > The version Bjorn merged looks for "THRX". This is the version that you will > use, and you will promptly register that prefix with UEFI and provide fixes > for existing firmware to correctly use the solution that is upstream. Cavium FW is updated accordingly to use already registered prefix. For existent FW legacy support is posted by Tomasz. > > Thanks, > > Jon. > WBR, Vadim