mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: Kasper Sandberg <lkml@metanurb.dk>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	LKML Mailinglist <linux-kernel@vger.kernel.org>,
	linux-acpi@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: Realtek 8111c weirdness problems, apic/msi, and normal bug
Date: Sat, 12 Apr 2008 21:22:15 +0200	[thread overview]
Message-ID: <20080412192215.GA17669@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <1207876315.1514.21.camel@localhost>

Kasper Sandberg <lkml@metanurb.dk> :
> Sorry for top posting, but its just easier in this case :)

Tsk, tsk.

> I may have just gotten some new information to share.
> 
> I just built -git8. and the nic didnt work.. by booting with
> noapic/nomsi i got it running though. then i did some tests, and
> rebooted into the default(has worked mostly for me) noapic/msi boot.
> Then it worked.

Can you try a simple 'nomsi' boot ?

The lspci in your previous message (2008/04/10) suggested that
something was very wrong at the PCI level:
[...]
05:00.0 0200: 10ec:8168 (rev ff) (prog-if ff)
        !!! Unknown header type 7f
        Kernel driver in use: r8169
        Kernel modules: r8169
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

(but this was on an older kernel, right ?)

When you see such an output, can you try to see if the direct access
option of lspci (-H{1/2}) makes a difference ?

[...]
> if its a boot where the nic works, i can usually rmmod/modprobe the
> module once without it giving error, however if its a boot where the nic
> doesent work, first time i rmmod and modprobe, it gives me an error..
> 
> the error is:
> PCI: cache line size of 32 is not supported by device 0000:05:00.0
> ACPI: PCI interrupt for device 0000:05:00.0 disabled
> r8169: probe of 0000:05:00.0 failed with error -22

What does lspci say here ?

> I have attached some dmesgs(sorry, but my client messes up inlines..)
> also.. link detecting isnt working properly, sometimes it will detect a
> link as down after a while.. its quite weird..

(please increase the size of your kernel log buffer)

> (oh, and this time its without nvidia just to be 100000% sure)

Thanks.

> I hope this can help to get it resolved, alot of people are having
> problems with these controllers.. i can however confirm that a similar
> controller is working perfectly on a friends gigabyte motherboard, thats
> with P35 chipset though, i have X48. He has only 1 of them onboard.

You can ask your friend to grep for the 'XID' line in the kernel log
written by the r8169 driver. If the values match, you have got the same
816x hardware.

There are different problems with the 8168
- older kernel with broken mmconfig / msi / etc.
- newer 8168 chipsets which are currently not correctly handled
- plain 8168 driver bugs
- ...

(that being said, it really works for some users too)

> also something which may be of interrest, realtek offers a modified
> r8169 driver called "r8168", which supposedly fixes this. I have been
> unable to get it to compile though, but i saw it on ubuntu forums.

I am looking very closely at Realtek's drivers but the diff between 
the different revisions of their 8168 driver are not always as
readable as I would hope for (things have improved though).

Realtek is working at fixing its 8168 driver for recent kernels. It
should be easier to compare its behavior against the in-kernel driver
with recent kernels soon. It will makes everybody's life easier.

-- 
Ueimor

  parent reply	other threads:[~2008-04-12 19:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-05 15:03 Kasper Sandberg
2008-04-06  6:23 ` Andrew Morton
2008-04-06 14:06   ` Francois Romieu
2008-04-07  4:09     ` Kasper Sandberg
2008-04-10 12:17       ` Kasper Sandberg
2008-04-11  1:11         ` Kasper Sandberg
2008-04-11 18:06           ` Kasper Sandberg
2008-04-12 12:23             ` Kasper Sandberg
2008-04-12 19:22           ` Francois Romieu [this message]
2008-04-12 22:02             ` Kasper Sandberg
     [not found]         ` <20080412180850.GA17180@electric-eye.fr.zoreil.com>
2008-04-12 19:15           ` Kasper Sandberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080412192215.GA17669@electric-eye.fr.zoreil.com \
    --to=romieu@fr.zoreil.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@metanurb.dk \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®