From: Joe Perches <joe@perches.com>
To: Michael Chan <mchan@broadcom.com>, Matt Carlson <mcarlson@broadcom.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org, nsujir@broadcom.com
Subject: Re: [PATCH 1/5 net-next] tg3: Add 57766 device support.
Date: Thu, 14 Feb 2013 14:25:50 -0800 [thread overview]
Message-ID: <1360880750.3051.7.camel@joe-AO722> (raw)
In-Reply-To: <1360880022-12856-1-git-send-email-mchan@broadcom.com>
On Thu, 2013-02-14 at 14:13 -0800, Michael Chan wrote:
> From: Matt Carlson <mcarlson@broadcom.com>
>
> The patch also adds a couple of fixes
>
> - For the 57766, bootcode needs to setup the PCIE Fast Training
> Sequence (FTS) value to prevent transmit hangs. Unfortunately, it
> does not have enough room in the selfboot case (i.e. devices with no
> NVRAM). The driver needs to implement this.
[]
> diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
[]
> @@ -9179,7 +9180,14 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
> }
>
> if (GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_57765_AX) {
> - u32 grc_mode = tr32(GRC_MODE);
> + u32 grc_mode;
> +
> + /* Fix transmit hangs */
> + val = tr32(TG3_CPMU_PADRNG_CTL);
> + val |= TG3_CPMU_PADRNG_CTL_RDIV2;
> + tw32(TG3_CPMU_PADRNG_CTL, val);
> +
This seems to write this val to more devices than just
a 57766. Intentional?
> + grc_mode = tr32(GRC_MODE);
>
> /* Access the lower 1K of DL PCIE block registers. */
> val = grc_mode & ~GRC_MODE_PCIE_PORT_MASK;
next prev parent reply other threads:[~2013-02-14 22:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 22:13 [PATCH 1/5 net-next] tg3: Add 57766 device support Michael Chan
2013-02-14 22:13 ` [PATCH 2/5 net-next] tg3: Add EEE support for 5717 B0 Michael Chan
2013-02-14 22:13 ` [PATCH 3/5 net-next] tg3: Fix 5762 NVRAM sizing Michael Chan
2013-02-14 22:13 ` [PATCH 4/5 net-next] tg3: Set initial carrier state to off Michael Chan
2013-02-14 22:13 ` [PATCH 5/5 net-next] tg3: Update version to 3.130 Michael Chan
2013-02-14 22:19 ` [PATCH 2/5 net-next] tg3: Add EEE support for 5717 B0 David Miller
2013-02-14 22:25 ` Joe Perches [this message]
2013-02-14 23:13 ` [PATCH 1/5 net-next] tg3: Add 57766 device support Nithin Nayak Sujir
2013-02-14 23:16 ` Joe Perches
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=1360880750.3051.7.camel@joe-AO722 \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--cc=mcarlson@broadcom.com \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=nsujir@broadcom.com \
/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;
as well as URLs for NNTP newsgroup(s).