mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Gabriele Gorla" <gorlik@penguintown.net>
To: "Ivan Kokshaysky" <ink@jurassic.park.msu.ru>
Cc: "Gabriele Gorla" <gorlik@penguintown.net>,
	rth@twiddle.net, gregkh@suse.de, linux-kernel@vger.kernel.org,
	"Andrew Morton" <akpm@osdl.org>
Subject: Re: [PATCH 2.6.15.3] alpha/pci: set cache line size for cards  ignored by SRM
Date: Sun, 12 Feb 2006 18:17:30 -0800 (PST)	[thread overview]
Message-ID: <24624.209.213.198.25.1139797050.squirrel@mail.penguintown.net> (raw)
In-Reply-To: <20060208113838.A28024@jurassic.park.msu.ru>

> On Tue, Feb 07, 2006 at 02:54:43PM -0800, Gabriele Gorla wrote:
>> Set the cache line size in the PCI configuration space to a reasonable
>> value. SRM does not seem to set this register for the PCI cards that it
>> does not recognize. This makes drivers that expect cache line size to be
>> set by the card bios work on alpha.
>
> I don't see such drivers in the mainline.
that sata_sil driver uses the cache line register to tune some FIFO
registers.

> Anyhow, the PCI_CACHE_LINE_SIZE setting is critical only for devices
> that do memory-write-invalidate. In this case a driver must call
> pci_set_mwi() which takes care of PCI_CACHE_LINE_SIZE.
sata_sil is not capable of MWI so it does not call pci_set_mwi()

I looked at the config space on a PC and alpha before the sata_sil driver
is loaded and it is different.
I suspect on the PC the system bios or the card bios set up this register
during post.

The sata_sil driver may not be doing the correct thing, however it seems
reasonable to assume that the device is configured properly (by system
bios or kernel fixup) before the driver init code executes.
This seems the same behavior of ppc and sparc64 pci code as well.

thanks,
GG


      reply	other threads:[~2006-02-13  2:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 22:54 Gabriele Gorla
2006-02-08  8:38 ` Ivan Kokshaysky
2006-02-13  2:17   ` Gabriele Gorla [this message]

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=24624.209.213.198.25.1139797050.squirrel@mail.penguintown.net \
    --to=gorlik@penguintown.net \
    --cc=akpm@osdl.org \
    --cc=gregkh@suse.de \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@twiddle.net \
    /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®