From: Andrew Morton <akpm@linux-foundation.org>
To: Frans Pop <elendil@planet.nl>
Cc: zajec5@gmail.com, rjw@sisk.pl, linux-kernel@vger.kernel.org,
protasnb@gmail.com, linux-acpi@vger.kernel.org,
kernel-testers@vger.kernel.org, torvalds@linux-foundation.org,
Zhang Rui <rui.zhang@intel.com>, Len Brown <lenb@kernel.org>,
Rusty Russell <rusty@rustcorp.com.au>,
Stephen Rothwell <sfr@canb.auug.org.au>
Subject: Re: 2.6.31-rc7-git2: Reported regressions 2.6.29 -> 2.6.30
Date: Wed, 26 Aug 2009 12:36:47 -0700 [thread overview]
Message-ID: <20090826123647.e60d9555.akpm@linux-foundation.org> (raw)
In-Reply-To: <200908261833.37310.elendil@planet.nl>
On Wed, 26 Aug 2009 18:33:34 +0200
Frans Pop <elendil@planet.nl> wrote:
> (Dropped unrelated CCs.)
>
> Andrew Morton wrote:
> > I'm not seeing any linux-acpi emails from Len since August 14.
> >
> > So I merged this patch and shall send it along with
> >
> > thermal_sys-check-get_temp-return-value.patch
> > acpi-dont-call-acpi_processor_init-if-acpi-is-disabled.patch
>
> Thanks for that Andrew. Could you please do the same for my patches in
> http://bugzilla.kernel.org/show_bug.cgi?id=13389 (or
> http://lkml.org/lkml/2009/8/17/169)?
>
> That BR is on the regression list for 2.6.30. The patches apply cleanly to
> current mainline.
>
OK, shall do, thanks.
These patches make rather a big mess in linux-next.
Rusty's strangely-named patch:
commit 6949d7cbb26476cbf1ee7b45ac74faacc9eb7cdf
Author: Rusty Russell <rusty@rustcorp.com.au>
AuthorDate: Thu Aug 13 10:26:38 2009 +1000
Commit: Stephen Rothwell <sfr@canb.auug.org.au>
CommitDate: Thu Aug 13 10:26:38 2009 +1000
misc:work_on_cpu-acpi
is now in the acpi tree. It changes the throttling code so that
set/get_throttling is performed via smp_call_function_single() rather
than via cpumask fiddling.
So in my tree I reworked it so that the new `force' arg gets passed
through appropriately. It compiles cleanly but I'd suggest that Len
simply drop "misc:work_on_cpu-acpi" and we send it back to Rusty for
some rechecking (sorry).
Rusty/Len: please work out why the title for that patch went silly.
Rusty, please self-administer smackings for
struct set_throttling_info sti
= { pr, p_throttling, t_state.target_state };
these things always start out simple and end up not-simple, so some poor
schmuck has to clean them up so stuff doesn't break.
struct set_throttling_info sti = {
.pr = pr,
.p_throttling = p_throttling,
.target_state = t_state.target_state,
.force = force
};
is better!
My linux-next repair job:
drivers/acpi/processor_throttling.c | 39 +++++++++++++++++++-------
1 file changed, 29 insertions(+), 10 deletions(-)
diff -puN drivers/acpi/processor_throttling.c~linux-next-fixup drivers/acpi/processor_throttling.c
--- a/drivers/acpi/processor_throttling.c~linux-next-fixup
+++ a/drivers/acpi/processor_throttling.c
@@ -1015,10 +1015,25 @@ static int acpi_processor_set_throttling
return 0;
}
+struct set_throttling_info {
+ struct acpi_processor *pr;
+ struct acpi_processor_throttling *p_throttling;
+ int target_state;
+ bool force;
+ int ret;
+};
+
+static void set_throttling(void *_sti)
+{
+ struct set_throttling_info *s = _sti;
+
+ s->ret = s->p_throttling->acpi_processor_set_throttling(s->pr,
+ s->target_state, s->force);
+}
+
int acpi_processor_set_throttling(struct acpi_processor *pr,
int state, bool force)
{
- cpumask_var_t saved_mask;
int ret = 0;
unsigned int i;
struct acpi_processor *match_pr;
@@ -1059,10 +1074,13 @@ int acpi_processor_set_throttling(struct
* it can be called only for the cpu pointed by pr.
*/
if (p_throttling->shared_type == DOMAIN_COORD_TYPE_SW_ANY) {
- /* FIXME: use work_on_cpu() */
- set_cpus_allowed_ptr(current, cpumask_of(pr->id));
- ret = p_throttling->acpi_processor_set_throttling(pr,
- t_state.target_state, force);
+ struct set_throttling_info sti = {
+ .pr = pr,
+ .p_throttling = p_throttling,
+ .target_state = t_state.target_state,
+ .force = force };
+ smp_call_function_single(pr->id, set_throttling, &sti, 1);
+ ret = sti.ret;
} else {
/*
* When the T-state coordination is SW_ALL or HW_ALL,
@@ -1093,11 +1111,12 @@ int acpi_processor_set_throttling(struct
continue;
}
t_state.cpu = i;
- /* FIXME: use work_on_cpu() */
- set_cpus_allowed_ptr(current, cpumask_of(i));
- ret = match_pr->throttling.
- acpi_processor_set_throttling(
- match_pr, t_state.target_state, force);
+ sti.pr = match_pr;
+ sti.p_throttling = &match_pr->throttling;
+ sti.target_state = t_state.target_state;
+ sti.force = force;
+ smp_call_function_single(i, set_throttling, &sti, 1);
+ ret = sti.ret;
}
}
/*
_
next prev parent reply other threads:[~2009-08-26 19:36 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 20:37 2.6.31-rc7-git2: Reported regressions 2.6.29 -> 2.6.30 Rafael J. Wysocki
2009-08-25 20:37 ` [Bug #13180] 2.6.30-rc2: WARNING at i915_gem.c for i915_gem_idle Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13318] AGP doesn't work anymore on nforce2 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13328] b44: eth0: BUG! Timeout waiting for bit 00000002 of register 42c to clear Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13219] Intel 440GX: Since kernel 2.6.30-rc1, computers hangs randomly but not with kernel <= 2.6.29.6 Rafael J. Wysocki
2009-08-26 0:12 ` David Hill
[not found] ` <CA50EE78-9582-4F7B-84EA-40CACBDC5D0E-HTiBYHdybX7UkGsOFmftXw@public.gmane.org>
2009-08-26 20:50 ` Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13319] Page allocation failures with b43 and p54usb Rafael J. Wysocki
2009-08-26 6:25 ` Pekka Enberg
[not found] ` <84144f020908252325p88178f2yb0a76e033352b78d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-26 20:53 ` Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13306] hibernate slow on _second_ run Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13341] Random Oops at boot at loading ip6tables rules Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13362] rt2x00: slow wifi with correct basic rate bitmap Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13351] 2.6.30 - 2.6.31 corrupts my system after suspend resume with readonly mounted hard disk Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13389] Warning 'Invalid throttling state, reset' gets displayed when it should not be Rafael J. Wysocki
2009-08-26 9:29 ` Frans Pop
2009-08-25 21:05 ` [Bug #13401] pktcdvd writing is really slow with CFQ scheduler (bisected) Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13407] adb trackpad disappears after suspend to ram Rafael J. Wysocki
2009-08-26 22:20 ` Jan Scholz
[not found] ` <87hbvurzdg.fsf-X87fCqEI3snt2/fatF9ZgSk+o5UQzIjPIRYYPiSvRdM@public.gmane.org>
2009-08-26 22:27 ` Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13408] Performance regression in 2.6.30-rc7 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13502] GPE storm causes polling mode, which causes /proc/acpi/battery read to take 4 seconds - MacBookPro4,1 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13512] D43 on 2.6.30 doesn't suspend anymore Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13514] acer_wmi causes stack corruption Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13558] Tracelog during resume Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13564] random general protection fault at boot time caused by khubd Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13583] pdflush uses 5% CPU on otherwise idle system Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13581] ath9k doesn't work with newer kernels Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13694] i915 phantom TV Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13646] warn_on tty_io.c, broken bluetooth Rafael J. Wysocki
2009-08-26 6:14 ` Pekka Enberg
[not found] ` <84144f020908252314l364588bfi16e2d426cece2c5a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-29 9:36 ` Pavel Machek
[not found] ` <20090829093657.GC1634-+ZI9xUNit7I@public.gmane.org>
2009-08-29 12:31 ` Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13780] NULL pointer dereference loading powernowk8 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13797] iBook G4 doesn't suspend since 2ed8d2b3a8 Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13898] Intel 3945ABG - problems on 2.6.30.X Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13770] System freeze on XFS filesystem recovery on an external disk Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13795] abnormal boot and no suspend due to 'async' (fastboot) Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13739] 2.6.30 leaking keys on console switch Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #14049] joydev: blacklist digitizers avoids recognition of Saitek X52 joysticks Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13958] ath5k Atheros AR5001 low signal Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #14059] DomU crashes during xenfb initialization Rafael J. Wysocki
2009-08-26 14:18 ` Michal Schmidt
2009-08-26 20:55 ` Rafael J. Wysocki
2009-08-25 21:05 ` [Bug #13949] XFS regression Rafael J. Wysocki
2009-08-26 8:47 ` 2.6.31-rc7-git2: Reported regressions 2.6.29 -> 2.6.30 Rafał Miłecki
2009-08-26 14:53 ` Andrew Morton
[not found] ` <20090826075337.4230d82c.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-08-26 16:33 ` Frans Pop
2009-08-26 19:36 ` Andrew Morton [this message]
[not found] ` <20090826123647.e60d9555.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-08-27 10:53 ` Rusty Russell
[not found] ` <200908272023.21288.rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org>
2009-08-27 11:13 ` Stephen Rothwell
[not found] ` <20090827211351.f9c96bfc.sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2009-08-28 2:02 ` Rusty Russell
[not found] ` <200908281132.19765.rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org>
2009-08-28 2:39 ` Stephen Rothwell
2009-08-27 21:36 ` Andrew Morton
[not found] ` <20090827143653.52308d6d.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-08-27 23:43 ` Stephen Rothwell
2009-08-26 20:11 ` Rafael J. Wysocki
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=20090826123647.e60d9555.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=elendil@planet.nl \
--cc=kernel-testers@vger.kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=protasnb@gmail.com \
--cc=rjw@sisk.pl \
--cc=rui.zhang@intel.com \
--cc=rusty@rustcorp.com.au \
--cc=sfr@canb.auug.org.au \
--cc=torvalds@linux-foundation.org \
--cc=zajec5@gmail.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).