From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932657AbcILIVe (ORCPT ); Mon, 12 Sep 2016 04:21:34 -0400 Received: from mail-db5eur01on0070.outbound.protection.outlook.com ([104.47.2.70]:3104 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750896AbcILIVb (ORCPT ); Mon, 12 Sep 2016 04:21:31 -0400 From: Vadim Pasternak To: Greg KH CC: "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "davem@davemloft.net" , "geert@linux-m68k.org" , "akpm@linux-foundation.org" , "kvalo@codeaurora.org" , "mchehab@kernel.org" , "linux@roeck-us.net" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "jiri@resnulli.us" Subject: RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform Thread-Topic: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform Thread-Index: AQHSDK6g3FF6rFhDVESYzSYzLgvtaqB1X/SAgAAE5ECAAAm7gIAAA3XQgAAGnICAAACgEIAACX4AgAAAahA= Date: Mon, 12 Sep 2016 08:21:28 +0000 Message-ID: References: <1473661798-112691-1-git-send-email-vadimp@mellanox.com> <20160912061237.GB11230@kroah.com> <20160912070457.GA4590@kroah.com> <20160912074059.GA19325@kroah.com> <20160912081712.GA27368@kroah.com> In-Reply-To: <20160912081712.GA27368@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [193.47.165.251] x-ms-office365-filtering-correlation-id: 7c597ff4-411e-4033-67ea-08d3dae5cba6 x-microsoft-exchange-diagnostics: 1;AM5PR0501MB2097;6:xM8zYVa6Iq1EmLvAyW0oyGSZ/q/kPvxPH1goOBDNpdz9+bEaT3bhVWM9HY3YDa+0JNGo7MA+pncdR7AdP1nb8h06XfXcrDuDMAVB22sj8Bjslbm//HvkHtblmf7Xw9O6I+sE8ge0MzjZ5eG7SMQlhwRhJCq2EHW3AkN8CEF9Myquq6yagGgNcYXUSIptpPf18+yVLiLQvQBCCwOLUMuGpXwSLgNZ4k/KxyUYI3bQwCNgp6RpR8YNoBxZ4lY3eiW0cBuy6RERogEcGwJoXydAwcqj5u4GOY8Ko1Cg23o7JtoY/gp3tgoPtAVMkeiNLG7vNFDA3GmsqpzKGMyV7gtSQQ==;5:K/1J6YCOD7IzOZPUjGE4NDOw0CNQu/rjCEbvG6nLV9QjMDcvxfVXapZsEFlDUEcWc14SV0Ho3ufJcTcHwPXwiE+uO8JNDTMHsHPFCS6L8vdtDN1NUy3UYzanXm5NeXoApoN29HfnOlGF8/6LGXLkJw==;24:1sddK3WwDhWo+1RRhqaeg3E/1DxgFkApSj3Rk9bk7SH4TGAmCvHbwvxpPlmGk0r1siaZUt/GtLE0iaz5234suwhDQR43WsDQCl/PbJAgsxw=;7:IXMz4lWWOzQDhzYMf6KEeF4OnlVWL+XhGUEw6sZM8QL3XbNmy4k1bzS0UOAYl63U1w/0qKOAp+0nqntZc8U6e2z2qmLXHsjGb7XlCpB4FsuHBmtcd6r6EaHAM2asdTnOSpt8cYkVnkrs/oJqSt6KoEUc16L25lhD5xqyIKlrpLowQ1WZ4nq4K1vB5Bm4keqLi5lfCyCKpgiKO5qJOhX5Zc75BdW845b9AydJG/itcCBY4jXdMn/eM+CS5cDYtQD5 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0501MB2097; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(72170088055959)(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:AM5PR0501MB2097;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0501MB2097; x-forefront-prvs: 006339698F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(377454003)(24454002)(13464003)(4326007)(66066001)(5002640100001)(4001520100001)(11100500001)(189998001)(93886004)(9686002)(7846002)(2906002)(33656002)(74316002)(110136002)(81166006)(2950100001)(2900100001)(8676002)(7696004)(76176999)(7416002)(3280700002)(305945005)(586003)(7736002)(50986999)(3660700001)(5890100001)(87386001)(19580405001)(19580395003)(87936001)(10400500002)(122556002)(54356999)(102836003)(86362001)(5660300001)(92566002)(8936002)(6116002)(3846002)(106116001)(76576001)(77096005)(5001760100003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0501MB2097;H:AM5PR0501MB2097.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2016 08:21:28.6696 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2097 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u8C8LceC010928 > -----Original Message----- > From: Greg KH [mailto:gregkh@linuxfoundation.org] > Sent: Monday, September 12, 2016 11:17 AM > To: Vadim Pasternak > Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com; > davem@davemloft.net; geert@linux-m68k.org; akpm@linux-foundation.org; > kvalo@codeaurora.org; mchehab@kernel.org; linux@roeck-us.net; > x86@kernel.org; linux-kernel@vger.kernel.org; platform-driver- > x86@vger.kernel.org; jiri@resnulli.us > Subject: Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox > systems platform > > On Mon, Sep 12, 2016 at 07:48:24AM +0000, Vadim Pasternak wrote: > > > > > > > -----Original Message----- > > > From: Greg KH [mailto:gregkh@linuxfoundation.org] > > > Sent: Monday, September 12, 2016 10:41 AM > > > To: Vadim Pasternak > > > Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com; > > > davem@davemloft.net; geert@linux-m68k.org; > > > akpm@linux-foundation.org; kvalo@codeaurora.org; mchehab@kernel.org; > > > linux@roeck-us.net; x86@kernel.org; linux-kernel@vger.kernel.org; > > > platform-driver- x86@vger.kernel.org; jiri@resnulli.us > > > Subject: Re: [patch v1] x86/platform/mellanox: introduce support for > > > Mellanox systems platform > > > > > > On Mon, Sep 12, 2016 at 07:23:59AM +0000, Vadim Pasternak wrote: > > > > > > > > > > > > > -----Original Message----- > > > > > From: Greg KH [mailto:gregkh@linuxfoundation.org] > > > > > Sent: Monday, September 12, 2016 10:05 AM > > > > > To: Vadim Pasternak > > > > > Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com; > > > > > davem@davemloft.net; geert@linux-m68k.org; > > > > > akpm@linux-foundation.org; kvalo@codeaurora.org; > > > > > mchehab@kernel.org; linux@roeck-us.net; x86@kernel.org; > > > > > linux-kernel@vger.kernel.org; > > > > > platform-driver- x86@vger.kernel.org; jiri@resnulli.us > > > > > Subject: Re: [patch v1] x86/platform/mellanox: introduce support > > > > > for Mellanox systems platform > > > > > > > > > > On Mon, Sep 12, 2016 at 06:44:03AM +0000, Vadim Pasternak wrote: > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Greg KH [mailto:gregkh@linuxfoundation.org] > > > > > > > Sent: Monday, September 12, 2016 9:13 AM > > > > > > > To: Vadim Pasternak > > > > > > > Cc: tglx@linutronix.de; mingo@redhat.com; hpa@zytor.com; > > > > > > > davem@davemloft.net; geert@linux-m68k.org; > > > > > > > akpm@linux-foundation.org; kvalo@codeaurora.org; > > > > > > > mchehab@kernel.org; linux@roeck-us.net; x86@kernel.org; > > > > > > > linux-kernel@vger.kernel.org; > > > > > > > platform-driver- x86@vger.kernel.org; jiri@resnulli.us > > > > > > > Subject: Re: [patch v1] x86/platform/mellanox: introduce > > > > > > > support for Mellanox systems platform > > > > > > > > > > > > > > On Mon, Sep 12, 2016 at 06:29:58AM +0000, > > > > > > > vadimp@mellanox.com > > > wrote: > > > > > > > > From: Vadim Pasternak > > > > > > > > > > > > > > > > Enable system support for the Mellanox Technologies > > > > > > > > platform, which provides support for the next Mellanox basic > systems: > > > > > > > > "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", > > > > > > > > "msn2410", "msb7800", "msn2740", "msn2100" and also > > > > > > > > various number of derivative systems from the above basic types. > > > > > > > > > > > > > > What does "system support" mean? > > > > > > > > > > > > > > Why can't this just be a "normal" PCI driver, as you are > > > > > > > just accessing a PCI device and doing something with it, > > > > > > > seems odd to claim it is a > > > > > "platform" driver. > > > > > > > > > > > > > > > > > > > This driver also activates probes to create i2c platform driver and > muxes. > > > > > > > > > > And how does it do that? Through the PCI device? > > > > > > > > > > > For ARM and PPC based systems I can activate such stuff through dts. > > > > > > To be honest I don't know what is the right way to do such > > > > > > things for > > > > > > x86 systems. > > > > > > > > > > How is it found in a x86 system, in ACPI? > > > > > > > > > > > > > We have no support in ACPI. > > > > Currently it could be found through DMI. > > > > > > > > > > If I will move PCI related stuff to separate driver, could you > > > > > > suggest some right location for that? > > > > > > > > > > Depends on what it does. > > > > > > > > It creates platform i2c driver (Mellanox controller), like: > > > > platform_device_register_simple("i2c_mlxcpld", -1, > > > > NULL, 0); > > > > And two mux platform device instances, like: > > > > platform_device_register_resndata(dev, > > > > " i2c-mux-reg", i, NULL, > > > > 0, > > > > &mlxplat_mux_data[i], > > > > > > > > sizeof(mlxplat_mux_data[i])); > > > > > > Ugh. Really? These aren't on a real bus? What is this, the 1990's? > > > > Actually this is 2015-2016. > > Many switches use i2c virtual buses infrastructure for placing slow > > devices for system monitoring and control. > > Yes, but that i2c controller is on what type of bus? A non-discoverable one? > That's what I'm complaining about... This is LPC to I2C bridge. Controller logic is implemented in Lattice CPLD. CPLD itself is attached to LPC. > > thanks, > > greg k-h