Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1734434 > unrolled thread
| Started by | Ville Syrjälä <ville.syrjala@linux.intel.com> |
|---|---|
| First post | 2017-09-18 21:50 +0200 |
| Last post | 2017-09-19 16:00 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()") Ville Syrjälä <ville.syrjala@linux.intel.com> - 2017-09-18 21:50 +0200
Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()") Eric Dumazet <edumazet@google.com> - 2017-09-18 22:00 +0200
Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()") Ville Syrjälä <ville.syrjala@linux.intel.com> - 2017-09-19 14:50 +0200
Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()") Eric Dumazet <eric.dumazet@gmail.com> - 2017-09-19 16:00 +0200
| From | Ville Syrjälä <ville.syrjala@linux.intel.com> |
|---|---|
| Date | 2017-09-18 21:50 +0200 |
| Subject | Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()") |
| Message-ID | <uradl-2dt-45@gated-at.bofh.it> |
On Mon, Apr 10, 2017 at 03:11:02PM +0300, Ville Syrjälä wrote:
> On Fri, Apr 07, 2017 at 11:38:49AM -0700, Eric Dumazet wrote:
> > On Fri, 2017-04-07 at 21:17 +0300, Ville Syrjälä wrote:
> > > Hi,
> > >
> > > My old P3 laptop started to die on me in the middle of larger compile
> > > jobs (using distcc) after v4.11-rc<something>. I bisected the problem
> > > to 617f01211baf ("8139too: use napi_complete_done()").
> > >
> > > Unfortunately I wasn't able to capture a full oops as the machine doesn't
> > > have serial and ramoops failed me. I did get one partial oops on vgacon
> > > which showed rtl8139_poll() being involved (EIP was around
> > > _raw_spin_unlock_irqrestore() supposedly), so seems to agree with my
> > > bisect result.
> > >
> > > So maybe some kind of nasty thing going between the hard irq and
> > > softirq? Perhaps UP related? I tried to stare at the locking around
> > > rtl8139_poll() for a while but it looked mostly sane to me.
> > >
> >
> > Thanks a lot for the detective work, I am so sorry for this !
> >
> > Could you try the following patch ?
> >
> > I do not really see what could be wrong, the code should run just fine
> > on UP.
> >
> > Thanks.
> >
> > diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c
> > index 89631753e79962d91456d93b71929af768917da1..cd2dbec331dd796f5296cd378561b3443f231673 100644
> > --- a/drivers/net/ethernet/realtek/8139too.c
> > +++ b/drivers/net/ethernet/realtek/8139too.c
> > @@ -2135,11 +2135,12 @@ static int rtl8139_poll(struct napi_struct *napi, int budget)
> > if (likely(RTL_R16(IntrStatus) & RxAckBits))
> > work_done += rtl8139_rx(dev, tp, budget);
> >
> > - if (work_done < budget && napi_complete_done(napi, work_done)) {
> > + if (work_done < budget) {
> > unsigned long flags;
> >
> > spin_lock_irqsave(&tp->lock, flags);
> > - RTL_W16_F(IntrMask, rtl8139_intr_mask);
> > + if (napi_complete_done(napi, work_done))
> > + RTL_W16_F(IntrMask, rtl8139_intr_mask);
> > spin_unlock_irqrestore(&tp->lock, flags);
> > }
> > spin_unlock(&tp->rx_lock);
> >
> >
>
> Yep, that patch does appear to make it stable again.
>
> Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
And five months later I'm still waiting for this patch to land...
--
Ville Syrjälä
Intel OTC
[toc] | [next] | [standalone]
| From | Eric Dumazet <edumazet@google.com> |
|---|---|
| Date | 2017-09-18 22:00 +0200 |
| Subject | Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()") |
| Message-ID | <uran1-2hX-29@gated-at.bofh.it> |
| In reply to | #1734434 |
On Mon, Sep 18, 2017 at 12:46 PM, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote: > And five months later I'm still waiting for this patch to land... Sure, while I was on vacation, I received thousands of emails that I simply have not read.
[toc] | [prev] | [next] | [standalone]
| From | Ville Syrjälä <ville.syrjala@linux.intel.com> |
|---|---|
| Date | 2017-09-19 14:50 +0200 |
| Message-ID | <urq8p-5xV-9@gated-at.bofh.it> |
| In reply to | #1734441 |
On Mon, Sep 18, 2017 at 12:52:15PM -0700, Eric Dumazet wrote: > On Mon, Sep 18, 2017 at 12:46 PM, Ville Syrjälä > <ville.syrjala@linux.intel.com> wrote: > > > And five months later I'm still waiting for this patch to land... > > Sure, while I was on vacation, I received thousands of emails that I > simply have not read. Ah that explains where my previous ping went. Pardon the snarky comment, and thanks for taking care of this. -- Ville Syrjälä Intel OTC
[toc] | [prev] | [next] | [standalone]
| From | Eric Dumazet <eric.dumazet@gmail.com> |
|---|---|
| Date | 2017-09-19 16:00 +0200 |
| Message-ID | <urrea-69k-21@gated-at.bofh.it> |
| In reply to | #1734879 |
On Tue, 2017-09-19 at 15:45 +0300, Ville Syrjälä wrote: > On Mon, Sep 18, 2017 at 12:52:15PM -0700, Eric Dumazet wrote: > > On Mon, Sep 18, 2017 at 12:46 PM, Ville Syrjälä > > <ville.syrjala@linux.intel.com> wrote: > > > > > And five months later I'm still waiting for this patch to land... > > > > Sure, while I was on vacation, I received thousands of emails that I > > simply have not read. > > Ah that explains where my previous ping went. Pardon the snarky comment, > and thanks for taking care of this. > No problem, this was my fault not following this bug. Thanks a lot !
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web