Re: [RFC 0/4] Intel Integrated Sensor Hub Support (ISH)

From: Srinivas Pandruvada
Date: Fri Jun 10 2016 - 09:56:14 EST


On Fri, 2016-06-10 at 10:44 +0100, Grant Likely wrote:
[...]
>
> Yes, I do see the in_*_raw_* files in sysfs, and I'm able to get data
> out of them. Gnome also seems to recognize that the accelerometers
> are
> there because it adds a rotation lock button to the system menu.
>
> However, the events are getting through yet. It may be that I'm
> missing something in my kernel config. I'm rebuilding the kernel with
> Debian's config for the 4.5.5 kernel as a quick sanity test. I'll
> report back when I've tried.
>
You need to add in /usr/lib/system/systemd/iio-sensor-*

After=multi-user.target


This service starts too early.

> I'll also take some time and review the patch series later this
> afternoon.

Atri Bhattacharya reported issues with suspend/resume. With my test
patches it is fixed for him

If you want to hold on, I will repost with fixes for susend/resume.

Thanks,
Srinivas

>

> g.
>
> >
> > Thanks,
> > Srinivas
> >
> >
> > > Thanks,
> > > g.
> > >
> > > >
> > > >
> > > > This series is tested on:
> > > > - Lenovo Yoga 260 with Skylake processor
> > > > - HP Pavilion x2 detachable with Cherrytrail
> > > >
> > > > The user mode ABI is still same as external sensor hubs using
> > > > Linux
> > > > IIO. So existing user mode software should still work without
> > > > change.
> > > > This series primarily brings in new HID transport used in ISH.
> > > >
> > > > This series submitted as a RFC to try on several devices. We
> > > > have
> > > > received request from Linux users who wanted this support. So I
> > > > hope all
> > > > those users try and give feedback.
> > > >
> > > > Daniel Drubin (3):
> > > > Â hid: intel_ish-hid: ISH Transport layer
> > > > Â hid: intel-ish-hid: ipc layer
> > > > Â hid: intel-ish-hid: ISH HID client driver
> > > >
> > > > Srinivas Pandruvada (1):
> > > > Â Documentation: hid: Intel ISH HID document
> > > >
> > > > ÂDocumentation/hid/intel-ish-hid.txtÂÂÂÂÂÂÂÂÂÂ|ÂÂ375 +++++++++
> > > > Âdrivers/hid/KconfigÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂÂ2 +
> > > > Âdrivers/hid/MakefileÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂÂ2 +
> > > > Âdrivers/hid/intel-ish-hid/KconfigÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ27 +
> > > > Âdrivers/hid/intel-ish-hid/MakefileÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ20 +
> > > > Âdrivers/hid/intel-ish-hid/ipc/hw-ish-regs.hÂÂ|ÂÂ220 +++++
> > > > Âdrivers/hid/intel-ish-hid/ipc/hw-ish.hÂÂÂÂÂÂÂ|ÂÂÂ71 ++
> > > > Âdrivers/hid/intel-ish-hid/ipc/ipc.cÂÂÂÂÂÂÂÂÂÂ|ÂÂ710
> > > > ++++++++++++++++
> > > > Âdrivers/hid/intel-ish-hid/ipc/pci-ish.cÂÂÂÂÂÂ|ÂÂ238 ++++++
> > > > Âdrivers/hid/intel-ish-hid/ipc/utils.hÂÂÂÂÂÂÂÂ|ÂÂÂ65 ++
> > > > Âdrivers/hid/intel-ish-hid/ishtp-hid-client.c |ÂÂ672
> > > > +++++++++++++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp-hid.cÂÂÂÂÂÂÂÂ|ÂÂ201 +++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp-hid.hÂÂÂÂÂÂÂÂ|ÂÂ157 ++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/bus.cÂÂÂÂÂÂÂÂ|ÂÂ670
> > > > +++++++++++++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/bus.hÂÂÂÂÂÂÂÂ|ÂÂÂ99 +++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/client.cÂÂÂÂÂ| 1131
> > > > ++++++++++++++++++++++++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/client.hÂÂÂÂÂ|ÂÂ196 +++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/dma-if.cÂÂÂÂÂ|ÂÂ175 ++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/hbm.cÂÂÂÂÂÂÂÂ|ÂÂ911
> > > > +++++++++++++++++++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/hbm.hÂÂÂÂÂÂÂÂ|ÂÂ319 ++++++++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/init.cÂÂÂÂÂÂÂ|ÂÂÂ94 +++
> > > > Âdrivers/hid/intel-ish-hid/ishtp/ishtp-dev.hÂÂ|ÂÂ276 +++++++
> > > > Âinclude/trace/events/intel_ish.hÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂÂ30 +
> > > > Â23 files changed, 6661 insertions(+)
> > > > Âcreate mode 100644 Documentation/hid/intel-ish-hid.txt
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/Kconfig
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/Makefile
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ipc/hw-ish-regs.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ipc/hw-ish.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ipc/ipc.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ipc/pci-ish.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ipc/utils.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp-hid-
> > > > client.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp-hid.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp-hid.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/bus.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/bus.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/client.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/client.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/dma-if.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/hbm.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/hbm.h
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/init.c
> > > > Âcreate mode 100644 drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h
> > > > Âcreate mode 100644 include/trace/events/intel_ish.h
> > > >
> > > > --
> > > > 1.9.1
> > > >