Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481055

RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform

From Vadim Pasternak <vadimp@mellanox.com>
Newsgroups linux.kernel
Subject RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform
Date 2016-09-12 11:00 +0200
Message-ID <sgvfP-VS-15@gated-at.bofh.it> (permalink)
References (5 earlier) <sgua6-jn-41@gated-at.bofh.it> <sguD8-It-21@gated-at.bofh.it> <sguD8-It-19@gated-at.bofh.it> <sguMN-LC-9@gated-at.bofh.it> <sguWu-OS-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



> -----Original Message-----
> From: Greg KH [mailto:gregkh@linuxfoundation.org]
> Sent: Monday, September 12, 2016 11:35 AM
> To: Vadim Pasternak <vadimp@mellanox.com>
> 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 08:21:28AM +0000, Vadim Pasternak wrote:
> >
> >
> > > -----Original Message-----
> > > From: Greg KH [mailto:gregkh@linuxfoundation.org]
> > > Sent: Monday, September 12, 2016 11:17 AM
> > > To: Vadim Pasternak <vadimp@mellanox.com>
> > > 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 <vadimp@mellanox.com>
> > > > > 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 <vadimp@mellanox.com>
> > > > > > > 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 <vadimp@mellanox.com>
> > > > > > > > > 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 <vadimp@mellanox.com>
> > > > > > > > > >
> > > > > > > > > > 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.
> 
> "LPC"?
> 
> > Controller logic is implemented in Lattice CPLD. CPLD itself is attached to LPC.
> 
> And how is the CPLD attached to the CPU?

This is how it connected on Celeron, I7, ATOM based systems:

*--------*
| I2CLPC | i2c physical
| bridge | bus                          *---------*
| logic  |---------------------> * mux reg *
| in CPLD|                                *---------*
*--------*
    |
    |
<-------->
i2c cntrl
reg space
    | 
    |
    *------------- LPC bus ----------------- CPU

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform vadimp@mellanox.com - 2016-09-12 06:40 +0200
  Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox systems platform "H. Peter Anvin" <hpa@zytor.com> - 2016-09-12 06:50 +0200
    RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-12 07:30 +0200
  Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Guenter Roeck <linux@roeck-us.net> - 2016-09-12 07:40 +0200
    Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 08:20 +0200
  Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 08:20 +0200
    Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 09:10 +0200
      Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 09:50 +0200
        Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 10:20 +0200
          RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-12 10:30 +0200
            Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 10:40 +0200
              RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-12 11:00 +0200
              Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Geert Uytterhoeven <geert@linux-m68k.org> - 2016-09-12 11:20 +0200
                Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-12 12:30 +0200
                Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Geert Uytterhoeven <geert@linux-m68k.org> - 2016-09-12 13:00 +0200
                Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Ingo Molnar <mingo@kernel.org> - 2016-09-12 13:10 +0200
                Re: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Greg KH <gregkh@linuxfoundation.org> - 2016-09-13 10:20 +0200
                RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-13 10:40 +0200
                RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-13 16:00 +0200
        RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-12 13:30 +0200
      RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-12 10:00 +0200
    RE: [patch v1] x86/platform/mellanox: introduce support for Mellanox  systems platform Vadim Pasternak <vadimp@mellanox.com> - 2016-09-12 10:20 +0200

csiph-web