linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
@ 2019-09-05 19:24 Lee Jones
  2019-09-05 20:22 ` Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Lee Jones @ 2019-09-05 19:24 UTC (permalink / raw)
  To: alokc, agross, robh+dt, mark.rutland, bjorn.andersson, vkoul, wsa
  Cc: linux-i2c, linux-arm-msm, devicetree, Lee Jones

We have a production-level laptop (Lenovo Yoga C630) which is exhibiting
a rather horrific bug.  When I2C HID devices are being scanned for at
boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA.
When it does, the laptop reboots and the user never sees the OS.

Attempts are being made to debug the reason for the spontaneous reboot.
No luck so far, hence the requirement for this hot-fix.  This workaround
will be removed once we have a viable fix.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/i2c/busses/i2c-qcom-geni.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
index a89bfce5388e..17abf60c94ae 100644
--- a/drivers/i2c/busses/i2c-qcom-geni.c
+++ b/drivers/i2c/busses/i2c-qcom-geni.c
@@ -355,11 +355,13 @@ static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg,
 {
 	dma_addr_t rx_dma;
 	unsigned long time_left;
-	void *dma_buf;
+	void *dma_buf = NULL;
 	struct geni_se *se = &gi2c->se;
 	size_t len = msg->len;
 
-	dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
+	if (!of_machine_is_compatible("lenovo,yoga-c630"))
+		dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
+
 	if (dma_buf)
 		geni_se_select_mode(se, GENI_SE_DMA);
 	else
@@ -394,11 +396,13 @@ static int geni_i2c_tx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg,
 {
 	dma_addr_t tx_dma;
 	unsigned long time_left;
-	void *dma_buf;
+	void *dma_buf = NULL;
 	struct geni_se *se = &gi2c->se;
 	size_t len = msg->len;
 
-	dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
+	if (!of_machine_is_compatible("lenovo,yoga-c630"))
+		dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
+
 	if (dma_buf)
 		geni_se_select_mode(se, GENI_SE_DMA);
 	else
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-05 19:24 [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630 Lee Jones
@ 2019-09-05 20:22 ` Wolfram Sang
  2019-09-06  5:33 ` Stephen Boyd
  2019-09-28 17:48 ` Wolfram Sang
  2 siblings, 0 replies; 18+ messages in thread
From: Wolfram Sang @ 2019-09-05 20:22 UTC (permalink / raw)
  To: Lee Jones
  Cc: alokc, agross, robh+dt, mark.rutland, bjorn.andersson, vkoul,
	linux-i2c, linux-arm-msm, devicetree

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

On Thu, Sep 05, 2019 at 08:24:12PM +0100, Lee Jones wrote:
> We have a production-level laptop (Lenovo Yoga C630) which is exhibiting
> a rather horrific bug.  When I2C HID devices are being scanned for at
> boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA.
> When it does, the laptop reboots and the user never sees the OS.
> 
> Attempts are being made to debug the reason for the spontaneous reboot.
> No luck so far, hence the requirement for this hot-fix.  This workaround
> will be removed once we have a viable fix.
> 
> Signed-off-by: Lee Jones <lee.jones@linaro.org>

Perfect now. Applied to for-current, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-05 19:24 [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630 Lee Jones
  2019-09-05 20:22 ` Wolfram Sang
@ 2019-09-06  5:33 ` Stephen Boyd
  2019-09-06  6:14   ` Lee Jones
  2019-09-28 17:48 ` Wolfram Sang
  2 siblings, 1 reply; 18+ messages in thread
From: Stephen Boyd @ 2019-09-06  5:33 UTC (permalink / raw)
  To: Lee Jones, agross, alokc, bjorn.andersson, mark.rutland, robh+dt,
	vkoul, wsa
  Cc: linux-i2c, linux-arm-msm, devicetree, Lee Jones

Quoting Lee Jones (2019-09-05 12:24:12)
> We have a production-level laptop (Lenovo Yoga C630) which is exhibiting
> a rather horrific bug.  When I2C HID devices are being scanned for at
> boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA.
> When it does, the laptop reboots and the user never sees the OS.
> 
> Attempts are being made to debug the reason for the spontaneous reboot.
> No luck so far, hence the requirement for this hot-fix.  This workaround
> will be removed once we have a viable fix.
> 
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/i2c/busses/i2c-qcom-geni.c | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
> index a89bfce5388e..17abf60c94ae 100644
> --- a/drivers/i2c/busses/i2c-qcom-geni.c
> +++ b/drivers/i2c/busses/i2c-qcom-geni.c
> @@ -355,11 +355,13 @@ static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg,
>  {
>         dma_addr_t rx_dma;
>         unsigned long time_left;
> -       void *dma_buf;
> +       void *dma_buf = NULL;
>         struct geni_se *se = &gi2c->se;
>         size_t len = msg->len;
>  
> -       dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
> +       if (!of_machine_is_compatible("lenovo,yoga-c630"))

This compatible isn't in the 5.3 rc series nor is it in linux-next yet.
Is this "hot-fix" for the next merge window? Or is this compatible
string being generated by firmware somewhere and thus isn't part of the
kernel?

> +               dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
> +
>         if (dma_buf)
>                 geni_se_select_mode(se, GENI_SE_DMA);
>         else

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06  5:33 ` Stephen Boyd
@ 2019-09-06  6:14   ` Lee Jones
  2019-09-06  6:50     ` Wolfram Sang
  0 siblings, 1 reply; 18+ messages in thread
From: Lee Jones @ 2019-09-06  6:14 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: agross, alokc, bjorn.andersson, mark.rutland, robh+dt, vkoul,
	wsa, linux-i2c, linux-arm-msm, devicetree

On Thu, 05 Sep 2019, Stephen Boyd wrote:

> Quoting Lee Jones (2019-09-05 12:24:12)
> > We have a production-level laptop (Lenovo Yoga C630) which is exhibiting
> > a rather horrific bug.  When I2C HID devices are being scanned for at
> > boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA.
> > When it does, the laptop reboots and the user never sees the OS.
> > 
> > Attempts are being made to debug the reason for the spontaneous reboot.
> > No luck so far, hence the requirement for this hot-fix.  This workaround
> > will be removed once we have a viable fix.
> > 
> > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> > ---
> >  drivers/i2c/busses/i2c-qcom-geni.c | 12 ++++++++----
> >  1 file changed, 8 insertions(+), 4 deletions(-)
> > 
> > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
> > index a89bfce5388e..17abf60c94ae 100644
> > --- a/drivers/i2c/busses/i2c-qcom-geni.c
> > +++ b/drivers/i2c/busses/i2c-qcom-geni.c
> > @@ -355,11 +355,13 @@ static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg,
> >  {
> >         dma_addr_t rx_dma;
> >         unsigned long time_left;
> > -       void *dma_buf;
> > +       void *dma_buf = NULL;
> >         struct geni_se *se = &gi2c->se;
> >         size_t len = msg->len;
> >  
> > -       dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
> > +       if (!of_machine_is_compatible("lenovo,yoga-c630"))
> 
> This compatible isn't in the 5.3 rc series nor is it in linux-next yet.
> Is this "hot-fix" for the next merge window? Or is this compatible
> string being generated by firmware somewhere and thus isn't part of the
> kernel?

It's on the list and will be in all of the distro v5.3 release kernels.

https://lkml.org/lkml/2019/9/5/695

> > +               dma_buf = i2c_get_dma_safe_msg_buf(msg, 32);
> > +
> >         if (dma_buf)
> >                 geni_se_select_mode(se, GENI_SE_DMA);
> >         else

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06  6:14   ` Lee Jones
@ 2019-09-06  6:50     ` Wolfram Sang
  2019-09-06  7:56       ` Lee Jones
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfram Sang @ 2019-09-06  6:50 UTC (permalink / raw)
  To: Lee Jones
  Cc: Stephen Boyd, agross, alokc, bjorn.andersson, mark.rutland,
	robh+dt, vkoul, linux-i2c, linux-arm-msm, devicetree

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]


> > This compatible isn't in the 5.3 rc series nor is it in linux-next yet.
> > Is this "hot-fix" for the next merge window? Or is this compatible
> > string being generated by firmware somewhere and thus isn't part of the
> > kernel?
> 
> It's on the list and will be in all of the distro v5.3 release kernels.
> 
> https://lkml.org/lkml/2019/9/5/695

And why don't the distro kernels simply pick up this patch, too?


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06  6:50     ` Wolfram Sang
@ 2019-09-06  7:56       ` Lee Jones
  2019-09-06 10:23         ` Wolfram Sang
  0 siblings, 1 reply; 18+ messages in thread
From: Lee Jones @ 2019-09-06  7:56 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Stephen Boyd, agross, alokc, bjorn.andersson, mark.rutland,
	robh+dt, vkoul, linux-i2c, linux-arm-msm, devicetree

On Fri, 06 Sep 2019, Wolfram Sang wrote:
> > > This compatible isn't in the 5.3 rc series nor is it in linux-next yet.
> > > Is this "hot-fix" for the next merge window? Or is this compatible
> > > string being generated by firmware somewhere and thus isn't part of the
> > > kernel?
> > 
> > It's on the list and will be in all of the distro v5.3 release kernels.
> > 
> > https://lkml.org/lkml/2019/9/5/695
> 
> And why don't the distro kernels simply pick up this patch, too?

I could send it to them and find out.  They are on kernel-freeze now,
on the lead-up to the release date (next month), but I think they're
still taking bug fixes.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06  7:56       ` Lee Jones
@ 2019-09-06 10:23         ` Wolfram Sang
  2019-09-06 10:54           ` Lee Jones
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfram Sang @ 2019-09-06 10:23 UTC (permalink / raw)
  To: Lee Jones
  Cc: Stephen Boyd, agross, alokc, bjorn.andersson, mark.rutland,
	robh+dt, vkoul, linux-i2c, linux-arm-msm, devicetree

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

On Fri, Sep 06, 2019 at 08:56:00AM +0100, Lee Jones wrote:
> On Fri, 06 Sep 2019, Wolfram Sang wrote:
> > > > This compatible isn't in the 5.3 rc series nor is it in linux-next yet.
> > > > Is this "hot-fix" for the next merge window? Or is this compatible
> > > > string being generated by firmware somewhere and thus isn't part of the
> > > > kernel?
> > > 
> > > It's on the list and will be in all of the distro v5.3 release kernels.
> > > 
> > > https://lkml.org/lkml/2019/9/5/695
> > 
> > And why don't the distro kernels simply pick up this patch, too?
> 
> I could send it to them and find out.  They are on kernel-freeze now,
> on the lead-up to the release date (next month), but I think they're
> still taking bug fixes.

Please do.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06 10:23         ` Wolfram Sang
@ 2019-09-06 10:54           ` Lee Jones
  2019-09-06 18:31             ` Wolfram Sang
  0 siblings, 1 reply; 18+ messages in thread
From: Lee Jones @ 2019-09-06 10:54 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Stephen Boyd, agross, alokc, bjorn.andersson, mark.rutland,
	robh+dt, vkoul, linux-i2c, linux-arm-msm, devicetree

On Fri, 06 Sep 2019, Wolfram Sang wrote:

> On Fri, Sep 06, 2019 at 08:56:00AM +0100, Lee Jones wrote:
> > On Fri, 06 Sep 2019, Wolfram Sang wrote:
> > > > > This compatible isn't in the 5.3 rc series nor is it in linux-next yet.
> > > > > Is this "hot-fix" for the next merge window? Or is this compatible
> > > > > string being generated by firmware somewhere and thus isn't part of the
> > > > > kernel?
> > > > 
> > > > It's on the list and will be in all of the distro v5.3 release kernels.
> > > > 
> > > > https://lkml.org/lkml/2019/9/5/695
> > > 
> > > And why don't the distro kernels simply pick up this patch, too?
> > 
> > I could send it to them and find out.  They are on kernel-freeze now,
> > on the lead-up to the release date (next month), but I think they're
> > still taking bug fixes.
> 
> Please do.

Submitted.

Does this mean you plan to have this merged for v5.4?

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06 10:54           ` Lee Jones
@ 2019-09-06 18:31             ` Wolfram Sang
  2019-09-07 17:56               ` Rob Clark
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfram Sang @ 2019-09-06 18:31 UTC (permalink / raw)
  To: Lee Jones
  Cc: Stephen Boyd, agross, alokc, bjorn.andersson, mark.rutland,
	robh+dt, vkoul, linux-i2c, linux-arm-msm, devicetree

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]


> Does this mean you plan to have this merged for v5.4?

Only if the machine DTS is expected to land in 5.4. But Stephen said it
is not in liunx-next yet?


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-06 18:31             ` Wolfram Sang
@ 2019-09-07 17:56               ` Rob Clark
  2019-09-13 14:28                 ` Wolfram Sang
  0 siblings, 1 reply; 18+ messages in thread
From: Rob Clark @ 2019-09-07 17:56 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Lee Jones, Stephen Boyd, Andy Gross, alokc, Bjorn Andersson,
	Mark Rutland, Rob Herring, vkoul, linux-i2c, linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Sat, Sep 7, 2019 at 9:17 AM Wolfram Sang <wsa@the-dreams.de> wrote:
>
>
> > Does this mean you plan to have this merged for v5.4?
>
> Only if the machine DTS is expected to land in 5.4. But Stephen said it
> is not in liunx-next yet?
>

It appears to be in arm-soc for-next:

https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git/log/?h=for-next

BR,
-R

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-07 17:56               ` Rob Clark
@ 2019-09-13 14:28                 ` Wolfram Sang
  2019-09-13 16:13                   ` Bjorn Andersson
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfram Sang @ 2019-09-13 14:28 UTC (permalink / raw)
  To: Rob Clark
  Cc: Lee Jones, Stephen Boyd, Andy Gross, alokc, Bjorn Andersson,
	Mark Rutland, Rob Herring, vkoul, linux-i2c, linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

On Sat, Sep 07, 2019 at 10:56:34AM -0700, Rob Clark wrote:
> On Sat, Sep 7, 2019 at 9:17 AM Wolfram Sang <wsa@the-dreams.de> wrote:
> >
> >
> > > Does this mean you plan to have this merged for v5.4?
> >
> > Only if the machine DTS is expected to land in 5.4. But Stephen said it
> > is not in liunx-next yet?
> >
> 
> It appears to be in arm-soc for-next:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git/log/?h=for-next

Still not in linux-next. Please ping me or resend this patch once it
hits linux-next.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-13 14:28                 ` Wolfram Sang
@ 2019-09-13 16:13                   ` Bjorn Andersson
  2019-09-13 16:17                     ` Wolfram Sang
  2019-09-14 19:13                     ` Arnd Bergmann
  0 siblings, 2 replies; 18+ messages in thread
From: Bjorn Andersson @ 2019-09-13 16:13 UTC (permalink / raw)
  To: Wolfram Sang, Arnd Bergmann
  Cc: Rob Clark, Lee Jones, Stephen Boyd, Andy Gross, alokc,
	Mark Rutland, Rob Herring, vkoul, linux-i2c, linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Fri 13 Sep 07:28 PDT 2019, Wolfram Sang wrote:

> On Sat, Sep 07, 2019 at 10:56:34AM -0700, Rob Clark wrote:
> > On Sat, Sep 7, 2019 at 9:17 AM Wolfram Sang <wsa@the-dreams.de> wrote:
> > >
> > >
> > > > Does this mean you plan to have this merged for v5.4?
> > >
> > > Only if the machine DTS is expected to land in 5.4. But Stephen said it
> > > is not in liunx-next yet?
> > >
> > 
> > It appears to be in arm-soc for-next:
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git/log/?h=for-next
> 
> Still not in linux-next. Please ping me or resend this patch once it
> hits linux-next.
> 

It seems linux-next is now pulling from the soc.git, rather than
arm-soc.git, but Arnd is still pushing patches to arm-soc.git.

Arnd says that the patch will be in v5.4 and I merged Arnd's tree and
gave it a spin here and this patch makes it boot. So please merge this
patch for v5.4 as well.

Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Thanks,
Bjorn

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-13 16:13                   ` Bjorn Andersson
@ 2019-09-13 16:17                     ` Wolfram Sang
  2019-09-14  8:57                       ` Lee Jones
                                         ` (2 more replies)
  2019-09-14 19:13                     ` Arnd Bergmann
  1 sibling, 3 replies; 18+ messages in thread
From: Wolfram Sang @ 2019-09-13 16:17 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Arnd Bergmann, Rob Clark, Lee Jones, Stephen Boyd, Andy Gross,
	alokc, Mark Rutland, Rob Herring, vkoul, linux-i2c,
	linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]


> It seems linux-next is now pulling from the soc.git, rather than
> arm-soc.git, but Arnd is still pushing patches to arm-soc.git.

Can you ask them to fix this?

> Arnd says that the patch will be in v5.4 and I merged Arnd's tree and
> gave it a spin here and this patch makes it boot. So please merge this
> patch for v5.4 as well.

No worries, this is clearly a bugfix. So it will easily go in with the
same release as the DTS file.

> Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-13 16:17                     ` Wolfram Sang
@ 2019-09-14  8:57                       ` Lee Jones
  2019-09-25 15:38                       ` Lee Jones
  2019-09-27 21:17                       ` Lee Jones
  2 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2019-09-14  8:57 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Bjorn Andersson, Arnd Bergmann, Rob Clark, Stephen Boyd,
	Andy Gross, alokc, Mark Rutland, Rob Herring, vkoul, linux-i2c,
	linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Fri, 13 Sep 2019, Wolfram Sang wrote:

> 
> > It seems linux-next is now pulling from the soc.git, rather than
> > arm-soc.git, but Arnd is still pushing patches to arm-soc.git.
> 
> Can you ask them to fix this?

Linux next is on vacation for month.

The last tag was next-20190904.

> > Arnd says that the patch will be in v5.4 and I merged Arnd's tree and
> > gave it a spin here and this patch makes it boot. So please merge this
> > patch for v5.4 as well.
> 
> No worries, this is clearly a bugfix. So it will easily go in with the
> same release as the DTS file.

Thanks.  The DTS commit will go in for v5.4.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-13 16:13                   ` Bjorn Andersson
  2019-09-13 16:17                     ` Wolfram Sang
@ 2019-09-14 19:13                     ` Arnd Bergmann
  1 sibling, 0 replies; 18+ messages in thread
From: Arnd Bergmann @ 2019-09-14 19:13 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Wolfram Sang, Rob Clark, Lee Jones, Stephen Boyd, Andy Gross,
	alokc, Mark Rutland, Rob Herring, Vinod Koul, Linux I2C,
	linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Fri, Sep 13, 2019 at 6:13 PM Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:
>
> On Fri 13 Sep 07:28 PDT 2019, Wolfram Sang wrote:
>
> > On Sat, Sep 07, 2019 at 10:56:34AM -0700, Rob Clark wrote:
> > > On Sat, Sep 7, 2019 at 9:17 AM Wolfram Sang <wsa@the-dreams.de> wrote:
> > > >
> > > >
> > > > > Does this mean you plan to have this merged for v5.4?
> > > >
> > > > Only if the machine DTS is expected to land in 5.4. But Stephen said it
> > > > is not in liunx-next yet?
> > > >
> > >
> > > It appears to be in arm-soc for-next:
> > >
> > > https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git/log/?h=for-next
> >
> > Still not in linux-next. Please ping me or resend this patch once it
> > hits linux-next.
> >
>
> It seems linux-next is now pulling from the soc.git, rather than
> arm-soc.git, but Arnd is still pushing patches to arm-soc.git.

I'm still pushing identical contents to both, but plan to remove the old
tree after the merge window.

      Arnd

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-13 16:17                     ` Wolfram Sang
  2019-09-14  8:57                       ` Lee Jones
@ 2019-09-25 15:38                       ` Lee Jones
  2019-09-27 21:17                       ` Lee Jones
  2 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2019-09-25 15:38 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Bjorn Andersson, Arnd Bergmann, Rob Clark, Stephen Boyd,
	Andy Gross, alokc, Mark Rutland, Rob Herring, vkoul, linux-i2c,
	linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Fri, 13 Sep 2019, Wolfram Sang wrote:

> 
> > It seems linux-next is now pulling from the soc.git, rather than
> > arm-soc.git, but Arnd is still pushing patches to arm-soc.git.
> 
> Can you ask them to fix this?
> 
> > Arnd says that the patch will be in v5.4 and I merged Arnd's tree and
> > gave it a spin here and this patch makes it boot. So please merge this
> > patch for v5.4 as well.
> 
> No worries, this is clearly a bugfix. So it will easily go in with the
> same release as the DTS file.

DTS file now upstream (44acee207844).

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-13 16:17                     ` Wolfram Sang
  2019-09-14  8:57                       ` Lee Jones
  2019-09-25 15:38                       ` Lee Jones
@ 2019-09-27 21:17                       ` Lee Jones
  2 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2019-09-27 21:17 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Bjorn Andersson, Arnd Bergmann, Rob Clark, Stephen Boyd,
	Andy Gross, alokc, Mark Rutland, Rob Herring, vkoul, linux-i2c,
	linux-arm-msm,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Fri, 13 Sep 2019, Wolfram Sang wrote:

> 
> > It seems linux-next is now pulling from the soc.git, rather than
> > arm-soc.git, but Arnd is still pushing patches to arm-soc.git.
> 
> Can you ask them to fix this?
> 
> > Arnd says that the patch will be in v5.4 and I merged Arnd's tree and
> > gave it a spin here and this patch makes it boot. So please merge this
> > patch for v5.4 as well.
> 
> No worries, this is clearly a bugfix. So it will easily go in with the
> same release as the DTS file.

Still not in Mainline.  Is the plan to send this through the -rcs?

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
  2019-09-05 19:24 [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630 Lee Jones
  2019-09-05 20:22 ` Wolfram Sang
  2019-09-06  5:33 ` Stephen Boyd
@ 2019-09-28 17:48 ` Wolfram Sang
  2 siblings, 0 replies; 18+ messages in thread
From: Wolfram Sang @ 2019-09-28 17:48 UTC (permalink / raw)
  To: Lee Jones
  Cc: alokc, agross, robh+dt, mark.rutland, bjorn.andersson, vkoul,
	linux-i2c, linux-arm-msm, devicetree

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

On Thu, Sep 05, 2019 at 08:24:12PM +0100, Lee Jones wrote:
> We have a production-level laptop (Lenovo Yoga C630) which is exhibiting
> a rather horrific bug.  When I2C HID devices are being scanned for at
> boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA.
> When it does, the laptop reboots and the user never sees the OS.
> 
> Attempts are being made to debug the reason for the spontaneous reboot.
> No luck so far, hence the requirement for this hot-fix.  This workaround
> will be removed once we have a viable fix.
> 
> Signed-off-by: Lee Jones <lee.jones@linaro.org>

Applied to for-current, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-09-28 17:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-05 19:24 [RESEND v3 1/1] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630 Lee Jones
2019-09-05 20:22 ` Wolfram Sang
2019-09-06  5:33 ` Stephen Boyd
2019-09-06  6:14   ` Lee Jones
2019-09-06  6:50     ` Wolfram Sang
2019-09-06  7:56       ` Lee Jones
2019-09-06 10:23         ` Wolfram Sang
2019-09-06 10:54           ` Lee Jones
2019-09-06 18:31             ` Wolfram Sang
2019-09-07 17:56               ` Rob Clark
2019-09-13 14:28                 ` Wolfram Sang
2019-09-13 16:13                   ` Bjorn Andersson
2019-09-13 16:17                     ` Wolfram Sang
2019-09-14  8:57                       ` Lee Jones
2019-09-25 15:38                       ` Lee Jones
2019-09-27 21:17                       ` Lee Jones
2019-09-14 19:13                     ` Arnd Bergmann
2019-09-28 17:48 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).