From: Rudolf Marek <r.marek@assembler.cz>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] AGAIN: support for AMD 10H and 11H
Date: Fri, 09 Oct 2009 15:30:00 +0000 [thread overview]
Message-ID: <4ACF56F8.1000502@assembler.cz> (raw)
In-Reply-To: <200910041951.16102.hfvogt@gmx.net>
Hi all,
Thank you. It seems AMD fixed that. Maybe we would need to avoid the goto.
> if (!data->valid
> || time_after(jiffies, data->last_updated + HZ)) {
> + if (boot_cpu_data.x86 > 0xf) {
> + pci_read_config_dword(pdev, REG_TCTL,
> + &data->temp[0][0]);
> + goto update_done;
> + }
Hm goto can be used only to jump to error paths.
> +
> + if ((boot_cpu_data.x86 = 0x10) && (model = 2)) {
> + /*
> + * AMD 10H cpus rev. B report Inaccurate Temperature
> + * Measurement :
> + * http://www.amd.com/us-
> en/assets/content_type/white_papers_and_tech_docs/41322.pdf
> + * Errata #319
> + */
> + dev_err(&pdev->dev, "Reported temperature may be inconsistent, "
> + "therefore rejected here - see erratum #319\n");
Maybe the message could be - Erratum #319 detected, refusing to load.
> + err = -ENODEV;
Thank you
Rudolf
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2009-10-09 15:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-04 17:51 [lm-sensors] [PATCH] AGAIN: support for AMD 10H and 11H Hans-Frieder Vogt
2009-10-09 15:30 ` Rudolf Marek [this message]
2009-10-21 21:08 ` Hans-Frieder Vogt
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=4ACF56F8.1000502@assembler.cz \
--to=r.marek@assembler.cz \
--cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.