2.6.31-rc7-git2: Reported regressions from 2.6.30
Subsystems (7)
This message contains a list of some regressions from 2.6.30, for which there are no fixes in the mainline I know of. If any of them have been fixed already, please let me know.
If you know of any other unresolved regressions from 2.6.30, please let me know either and I'll add them to the list. Also, please let me know if any of the entries below are invalid.
Each entry from the list will be sent additionally in an automatic reply to this message with CCs to the people involved in reporting and handling the issue.
Listed regressions statistics:
Date Total Pending Unresolved
----------------------------------------
2009-08-26 108 33 26 2009-08-20 102 32 29 2009-08-10 89 27 24 2009-08-02 76 36 28 2009-07-27 70 51 43 2009-07-07 35 25 21 2009-06-29 22 22 15
Unresolved regressions
----------------------
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14060
Subject : oops: sysfs_remove_link and i915
Submitter : Dominik Brodowski <[email protected]>
Date : 2009-08-22 5:48 (4 days old)
References : http://marc.info/?l=linux-kernel&m=125092139113955&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14058
Subject : Oops in fsnotify
Submitter : Grant Wilson <grant.wilson-1HOZaDBbGgxaa/[email protected]>
Date : 2009-08-20 15:48 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125078450923133&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14057
Subject : Strange network timeouts w/ e100
Submitter : Walt Holman <walt-Wo+ox+avW/[email protected]>
Date : 2009-08-20 0:21 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125072831831443&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14031
Subject : dvb_usb_af9015: Oops on hotplugging
Submitter : Stefan Lippers-Hollmann <[email protected]>
Date : 2009-08-05 20:32 (21 days old)
References : http://marc.info/?l=linux-kernel&m=124949716608828&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14018
Subject : kernel freezes, inotify problem
Submitter : Christoph Thielecke <[email protected]>
Date : 2009-08-19 12:48 (7 days old)
References : http://marc.info/?l=linux-kernel&m=125068616818353&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14016
Subject : mm/ipw2200 regression
Submitter : Bartlomiej Zolnierkiewicz <[email protected]>
Date : 2009-08-15 16:56 (11 days old)
References : http://marc.info/?l=linux-kernel&m=125036437221408&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=linux-kernel&m=125029329805643&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14013
Subject : hd don't show up
Submitter : Tim Blechmann <tim-xpEK/[email protected]>
Date : 2009-08-14 8:26 (12 days old)
References : http://marc.info/?l=linux-kernel&m=125023842514480&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried my x86_64 imac
Submitter : Justin P. Mattock <[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14011
Subject : Kernel paging request failed in kmem_cache_alloc
Submitter : Matthias Dahl <[email protected]>
Date : 2009-08-10 22:26 (16 days old)
References : http://marc.info/?l=linux-kernel&m=124993603825082&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13987
Subject : Received NMI interrupt at resume
Submitter : Christian Casteyde <[email protected]>
Date : 2009-08-15 07:55 (11 days old)
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13950
Subject : Oops when USB Serial disconnected while in use
Submitter : Bruno Prémont <bonbons-ud5FBsm0p/xEiooADzr8i9i2O/[email protected]>
Date : 2009-08-08 17:47 (18 days old)
References : http://marc.info/?l=linux-kernel&m=124975432900466&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13943
Subject : WARNING: at net/mac80211/mlme.c:2292 with ath5k
Submitter : Fabio Comolli <[email protected]>
Date : 2009-08-06 20:15 (20 days old)
References : http://marc.info/?l=linux-kernel&m=124958978600600&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13942
Subject : Troubles with AoE and uninitialized object
Submitter : Bruno Prémont <bonbons-ud5FBsm0p/xEiooADzr8i9i2O/[email protected]>
Date : 2009-08-04 10:12 (22 days old)
References : http://marc.info/?l=linux-kernel&m=124938117104811&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13941
Subject : x86 Geode issue
Submitter : Martin-Éric Racine <[email protected]>
Date : 2009-08-03 12:58 (23 days old)
References : http://marc.info/?l=linux-kernel&m=124930434732481&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13940
Subject : iwlagn and sky2 stopped working, ACPI-related
Submitter : Ricardo Jorge da Fonseca Marques Ferreira <[email protected]>
Date : 2009-08-07 22:33 (19 days old)
References : http://marc.info/?l=linux-kernel&m=124968457731107&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13935
Subject : 2.6.31-rcX breaks Apple MightyMouse (Bluetooth version)
Submitter : Adrian Ulrich <[email protected]>
Date : 2009-08-08 22:08 (18 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fa047e4f6fa63a6e9d0ae4d7749538830d14a343
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13906
Subject : Huawei E169 GPRS connection causes Ooops
Submitter : Clemens Eisserer <[email protected]>
Date : 2009-08-04 09:02 (22 days old)
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13869
Subject : Radeon framebuffer (w/o KMS) corruption at boot.
Submitter : Duncan <[email protected]>
Date : 2009-07-29 16:44 (28 days old)
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13848
Subject : iwlwifi (4965) regression since 2.6.30
Submitter : Lukas Hejtmanek <xhejtman-8qz54MUs51PtwjQa/[email protected]>
Date : 2009-07-26 7:57 (31 days old)
References : http://marc.info/?l=linux-kernel&m=124859658502866&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13836
Subject : suspend script fails, related to stdout?
Submitter : Tomas M. <[email protected]>
Date : 2009-07-17 21:24 (40 days old)
References : http://marc.info/?l=linux-kernel&m=124785853811667&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13819
Subject : system freeze when switching to console
Submitter : Reinette Chatre <[email protected]>
Date : 2009-07-23 17:57 (34 days old)
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13809
Subject : oprofile: possible circular locking dependency detected
Submitter : Jerome Marchand <[email protected]>
Date : 2009-07-22 13:35 (35 days old)
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13740
Subject : X server crashes with 2.6.31-rc2 when options are changed
Submitter : Michael S. Tsirkin <[email protected]>
Date : 2009-07-07 15:19 (50 days old)
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13733
Subject : 2.6.31-rc2: irq 16: nobody cared
Submitter : Niel Lambrechts <[email protected]>
Date : 2009-07-06 18:32 (51 days old)
References : http://marc.info/?l=linux-kernel&m=124690524027166&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13645
Subject : NULL pointer dereference at (null) (level2_spare_pgt)
Submitter : poornima nayak <[email protected]>
Date : 2009-06-17 17:56 (70 days old)
References : http://lkml.org/lkml/2009/6/17/194
Regressions with patches
------------------------
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14062
Subject : Failure to boot as xen guest
Submitter : Arnd Hannemann <[email protected]>
Date : 2009-08-25 15:48 (1 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83b519e8b9572c319c8e0c615ee5dd7272856090
References : http://marc.info/?l=linux-kernel&m=125121534229538&w=4
Patch : http://patchwork.kernel.org/patch/43799/
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14061
Subject : Crash due to buggy flat_phys_pkg_id
Submitter : Ravikiran G Thirumalai <[email protected]>
Date : 2009-08-24 18:26 (2 days old)
References : http://marc.info/?l=linux-kernel&m=125114085701508&w=4
Patch : http://patchwork.kernel.org/patch/43806/
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14030
Subject : Kernel NULL pointer dereference at 0000000000000008, pty-related
Submitter : Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/[email protected]>
Date : 2009-08-20 5:46 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125074724623423&w=4
Patch : http://patchwork.kernel.org/patch/43679/
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14017
Subject : _end symbol missing from Symbol.map
Submitter : Hannes Reinecke <[email protected]>
Date : 2009-08-13 6:45 (13 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=091e52c3551d3031343df24b573b770b4c6c72b6
References : http://marc.info/?l=linux-kernel&m=125014649102253&w=4
Patch : http://marc.info/?l=linux-kernel&m=125014649102253&w=4
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13960
Subject : rtl8187 not connect to wifi
Submitter : okias <[email protected]>
Date : 2009-08-10 19:16 (16 days old)
Patch : http://bugzilla.kernel.org/attachment.cgi?id=22798
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13948
Subject : ath5k broken after suspend-to-ram
Submitter : Johannes Stezenbach <[email protected]>
Date : 2009-08-07 21:51 (19 days old)
References : http://marc.info/?l=linux-kernel&m=124968192727854&w=4
Patch : http://patchwork.kernel.org/patch/38550/
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13947
Subject : Libertas: Association request to the driver failed
Submitter : Daniel Mack <[email protected]>
Date : 2009-08-07 19:11 (19 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=57921c312e8cef72ba35a4cfe870b376da0b1b87
References : http://marc.info/?l=linux-kernel&m=124967234311481&w=4
Dan Williams <[email protected]>
Patch : http://patchwork.kernel.org/patch/43114/
For details, please visit the bug entries and follow the links given in references.
As you can see, there is a Bugzilla entry for each of the listed regressions. There also is a Bugzilla entry used for tracking the regressions from 2.6.30, unresolved as well as resolved, at:
http://bugzilla.kernel.org/show_bug.cgi?id=13615
Please let me know if there are any Bugzilla entries that should be added to the list in there.
Thanks,
Rafael
[Bug #13645] NULL pointer dereference at (null) (level2_spare_pgt)
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13645
Subject : NULL pointer dereference at (null) (level2_spare_pgt)
Submitter : poornima nayak <[email protected]>
Date : 2009-06-17 17:56 (70 days old)
References : http://lkml.org/lkml/2009/6/17/194
[Bug #13740] X server crashes with 2.6.31-rc2 when options are changed
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13740
Subject : X server crashes with 2.6.31-rc2 when options are changed
Submitter : Michael S. Tsirkin <[email protected]>
Date : 2009-07-07 15:19 (50 days old)
[Bug #13733] 2.6.31-rc2: irq 16: nobody cared
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13733
Subject : 2.6.31-rc2: irq 16: nobody cared
Submitter : Niel Lambrechts <[email protected]>
Date : 2009-07-06 18:32 (51 days old)
References : http://marc.info/?l=linux-kernel&m=124690524027166&w=4
[Bug #13819] system freeze when switching to console
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13819
Subject : system freeze when switching to console
Submitter : Reinette Chatre <[email protected]>
Date : 2009-07-23 17:57 (34 days old)
[Bug #13809] oprofile: possible circular locking dependency detected
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13809
Subject : oprofile: possible circular locking dependency detected
Submitter : Jerome Marchand <[email protected]>
Date : 2009-07-22 13:35 (35 days old)
[Bug #13848] iwlwifi (4965) regression since 2.6.30
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13848
Subject : iwlwifi (4965) regression since 2.6.30
Submitter : Lukas Hejtmanek <[email protected]>
Date : 2009-07-26 7:57 (31 days old)
References : http://marc.info/?l=linux-kernel&m=124859658502866&w=4
[Bug #13836] suspend script fails, related to stdout?
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13836
Subject : suspend script fails, related to stdout?
Submitter : Tomas M. <[email protected]>
Date : 2009-07-17 21:24 (40 days old)
References : http://marc.info/?l=linux-kernel&m=124785853811667&w=4
Re: [Bug #13836] suspend script fails, related to stdout?
yes, this is still the case, the same script (netcfg from archlinux) fails during boot too.
Rafael J. Wysocki wrote:
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13836
Subject : suspend script fails, related to stdout?
Submitter : Tomas M. <[email protected]>
Date : 2009-07-17 21:24 (40 days old)
References : http://marc.info/?l=linux-kernel&m=124785853811667&w=4
Re: [Bug #13836] suspend script fails, related to stdout?
Quoted 2 lines · Tomas M.
yes, this is still the case, the same script (netcfg from archlinux) fails during boot too.
Thanks for the update.
Rafael
Quoted 15 lines
Rafael J. Wysocki wrote:
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13836
Subject : suspend script fails, related to stdout?
Submitter : Tomas M. <[email protected]>
Date : 2009-07-17 21:24 (40 days old)
References : http://marc.info/?l=linux-kernel&m=124785853811667&w=4
[Bug #13869] Radeon framebuffer (w/o KMS) corruption at boot.
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13869
Subject : Radeon framebuffer (w/o KMS) corruption at boot.
Submitter : Duncan <[email protected]>
Date : 2009-07-29 16:44 (28 days old)
[Bug #13906] Huawei E169 GPRS connection causes Ooops
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13906
Subject : Huawei E169 GPRS connection causes Ooops
Submitter : Clemens Eisserer <[email protected]>
Date : 2009-08-04 09:02 (22 days old)
[Bug #13935] 2.6.31-rcX breaks Apple MightyMouse (Bluetooth version)
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13935
Subject : 2.6.31-rcX breaks Apple MightyMouse (Bluetooth version)
Submitter : Adrian Ulrich <[email protected]>
Date : 2009-08-08 22:08 (18 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fa047e4f6fa63a6e9d0ae4d7749538830d14a343
[Bug #13942] Troubles with AoE and uninitialized object
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13942
Subject : Troubles with AoE and uninitialized object
Submitter : Bruno Prémont <bonbons-ud5FBsm0p/xEiooADzr8i9i2O/[email protected]>
Date : 2009-08-04 10:12 (22 days old)
References : http://marc.info/?l=linux-kernel&m=124938117104811&w=4
[Bug #13940] iwlagn and sky2 stopped working, ACPI-related
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13940
Subject : iwlagn and sky2 stopped working, ACPI-related
Submitter : Ricardo Jorge da Fonseca Marques Ferreira <[email protected]>
Date : 2009-08-07 22:33 (19 days old)
References : http://marc.info/?l=linux-kernel&m=124968457731107&w=4
Re: [Bug #13940] iwlagn and sky2 stopped working, ACPI-related
A patch has been proposed in the bugreport that fixes the problem, so if the patch is commited, the regression is fixed for me. I don't think the patch was commited yet.
Quoted 14 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13940
Subject : iwlagn and sky2 stopped working, ACPI-related
Submitter : Ricardo Jorge da Fonseca Marques Ferreira <[email protected]>
Date : 2009-08-07 22:33 (19 days old)
References : http://marc.info/?l=linux-kernel&m=124968457731107&w=4
Re: [Bug #13940] iwlagn and sky2 stopped working, ACPI-related
Quoted 3 lines · Ricardo Jorge da Fonseca Marques Ferreira
A patch has been proposed in the bugreport that fixes the problem, so if the patch is commited, the regression is fixed for me. I don't think the patch was commited yet.
Well, honestly, it doesn't seem it will be applied.
Thanks for the update anyway.
Rafael
Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13940
Subject : iwlagn and sky2 stopped working, ACPI-related
Submitter : Ricardo Jorge da Fonseca Marques Ferreira <[email protected]>
Date : 2009-08-07 22:33 (19 days old)
References : http://marc.info/?l=linux-kernel&m=124968457731107&w=4
[Bug #13943] WARNING: at net/mac80211/mlme.c:2292 with ath5k
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13943
Subject : WARNING: at net/mac80211/mlme.c:2292 with ath5k
Submitter : Fabio Comolli <[email protected]>
Date : 2009-08-06 20:15 (20 days old)
References : http://marc.info/?l=linux-kernel&m=124958978600600&w=4
Re: [Bug #13943] WARNING: at net/mac80211/mlme.c:2292 with ath5k
Still present as of -rc6-git7 (didn't try -rc7)
Quoted 16 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13943
Subject : WARNING: atnet/mac80211/mlme.c:2292with ath5k Submitter : Fabio Comolli <[email protected]> Date : 2009-08-06 20:15 (20 days old)
References : http://marc.info/?l=linux-kernel&m=124958978600600&w=4
Re: [Bug #13943] WARNING: at net/mac80211/mlme.c:2292 with ath5k
Quoted 1 line · Fabio Comolli
Still present as of -rc6-git7 (didn't try -rc7)
Thanks for the update.
Rafael
Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13943
Subject : WARNING: atnet/mac80211/mlme.c:2292with ath5k
Submitter : Fabio Comolli <[email protected]>
Date : 2009-08-06 20:15 (20 days old)
References : http://marc.info/?l=linux-kernel&m=124958978600600&w=4
[Bug #13941] x86 Geode issue
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13941
Subject : x86 Geode issue
Submitter : Martin-Éric Racine <[email protected]>
Date : 2009-08-03 12:58 (23 days old)
References : http://marc.info/?l=linux-kernel&m=124930434732481&w=4
Re: [Bug #13941] x86 Geode issue
Yes, it still is valid.
Screen dumps of the kernel panic were provided. Can we get anyone to investigate them now and find a fix? Thanks!
Quoted 16 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13941
Subject : x86 Geode issue
Submitter : Martin-Éric Racine <[email protected]>
Date : 2009-08-03 12:58 (23 days old)
References : http://marc.info/?l=linux-kernel&m=124930434732481&w=4
Re: [Bug #13941] x86 Geode issue
Quoted 1 line · Martin-Éric Racine
Yes, it still is valid.
Thanks for the update.
Rafael
Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13941
Subject : x86 Geode issue
Submitter : Martin-Éric Racine <[email protected]>
Date : 2009-08-03 12:58 (23 days old)
References : http://marc.info/?l=linux-kernel&m=124930434732481&w=4
[Bug #13948] ath5k broken after suspend-to-ram
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13948
Subject : ath5k broken after suspend-to-ram
Submitter : Johannes Stezenbach <[email protected]>
Date : 2009-08-07 21:51 (19 days old)
References : http://marc.info/?l=linux-kernel&m=124968192727854&w=4
[Bug #13950] Oops when USB Serial disconnected while in use
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13950
Subject : Oops when USB Serial disconnected while in use
Submitter : Bruno Prémont <bonbons-ud5FBsm0p/xEiooADzr8i9i2O/[email protected]>
Date : 2009-08-08 17:47 (18 days old)
References : http://marc.info/?l=linux-kernel&m=124975432900466&w=4
[Bug #13960] rtl8187 not connect to wifi
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13960
Subject : rtl8187 not connect to wifi
Submitter : okias <[email protected]>
Date : 2009-08-10 19:16 (16 days old)
[Bug #13947] Libertas: Association request to the driver failed
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13947
Subject : Libertas: Association request to the driver failed
Submitter : Daniel Mack <[email protected]>
Date : 2009-08-07 19:11 (19 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=57921c312e8cef72ba35a4cfe870b376da0b1b87
References : http://marc.info/?l=linux-kernel&m=124967234311481&w=4
Dan Williams <[email protected]>
Patch : http://patchwork.kernel.org/patch/43114/
[Bug #13987] Received NMI interrupt at resume
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13987
Subject : Received NMI interrupt at resume
Submitter : Christian Casteyde <[email protected]>
Date : 2009-08-15 07:55 (11 days old)
[Bug #14011] Kernel paging request failed in kmem_cache_alloc
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14011
Subject : Kernel paging request failed in kmem_cache_alloc
Submitter : Matthias Dahl <[email protected]>
Date : 2009-08-10 22:26 (16 days old)
References : http://marc.info/?l=linux-kernel&m=124993603825082&w=4
Re: [Bug #14011] Kernel paging request failed in kmem_cache_alloc
Hi Matthias,
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14011
Subject : Kernel paging request failed inkmem_cache_allocSubmitter : Matthias Dahl <[email protected]> Date : 2009-08-10 22:26 (16 days old)
References : http://marc.info/?l=linux-kernel&m=124993603825082&w=4
Can you reproduce the bug without the proprietary nvidia module that seems to be loaded?
Pekka
Re: [Bug #14011] Kernel paging request failed in kmem_cache_alloc
Hi Pekka,
Quoted 2 lines
Can you reproduce the bug without the proprietary nvidia module that seems to be loaded?
I am sorry but I forgot to test that and right now I am not very keen on trying again since this is my primary machine and I had quite some fs corruption (ext4 on md raid5 -> no barriers) the last times. :-( But this also happened w/o Xorg ever being run during that session (though naturally the nvidia kernel module was still loaded).
So long,
Matthias
Re: [Bug #14011] Kernel paging request failed in kmem_cache_alloc
Quoted 8 lines · Matthias Dahl
Quoted 2 lines
Can you reproduce the bug without the proprietary nvidia module that seems to be loaded?
I am sorry but I forgot to test that and right now I am not very keen on trying again since this is my primary machine and I had quite some fs corruption (ext4 on md raid5 -> no barriers) the last times. :-( But this also happened w/o Xorg ever being run during that session (though naturally the nvidia kernel module was still loaded).
Sure, I can understand that. The bug looks like regular slab corruption which could have been caused the nvidia blob. So I think the issue should be closed unless someone can reproduce it without the blob.
That said, sys_inotify_add_watch() also appears in the trace and there's been quite a few bug fixes in that area recently so I guess we should CC Eric Paris just in case the oops rings a bell to him.
Pekka
Re: [Bug #14011] Kernel paging request failed in kmem_cache_alloc
Quoted 10 lines · Pekka Enberg
Quoted 8 lines · Matthias Dahl
Quoted 2 lines
Can you reproduce the bug without the proprietary nvidia module that seems to be loaded?
I am sorry but I forgot to test that and right now I am not very keen on trying again since this is my primary machine and I had quite some fs corruption (ext4 on md raid5 -> no barriers) the last times. :-( But this also happened w/o Xorg ever being run during that session (though naturally the nvidia kernel module was still loaded).
Quoted 8 lines
Sure, I can understand that. The bug looks like regular slab corruption which could have been caused the nvidia blob. So I think the issue should be closed unless someone can reproduce it without the blob.
That said,
sys_inotify_add_watch()also appears in the trace and there's been quite a few bug fixes in that area recently so I guess we should CC Eric Paris just in case the oops rings a bell to him.
Nope, no bells here :( That slab cache is declared globally and
allocated at __init time. I haven't seen any reports of writes off the ends of marks which might mess up a chache... sorry.....
-Eric
Re: [Bug #14011] Kernel paging request failed in kmem_cache_alloc
In reply to Pekka EnbergQuoted 10 lines · Pekka Enberg
Quoted 8 lines · Matthias Dahl
Quoted 2 lines
Can you reproduce the bug without the proprietary nvidia module that seems to be loaded?
I am sorry but I forgot to test that and right now I am not very keen on trying again since this is my primary machine and I had quite some fs corruption (ext4 on md raid5 -> no barriers) the last times. :-( But this also happened w/o Xorg ever being run during that session (though naturally the nvidia kernel module was still loaded).
Quoted 4 lines
Sure, I can understand that. The bug looks like regular slab corruption which could have been caused the nvidia blob. So I think the issue should be closed unless someone can reproduce it without the blob.
I've closed it as "insufficient data".
Thanks,
Rafael
[Bug #14012] latest git fried my x86_64 imac
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried my x86_64 imac
Submitter : Justin P. Mattock <[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4
Re: [Bug #14012] latest git fried my x86_64 imac
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 9 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4
if I revert this commit:af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.
Justin P. Mattock
Re: [Bug #14012] latest git fried my x86_64 imac
Quoted 18 lines · Justin P. Mattock
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 9 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4
Quoted 3 lines
if I revert this commit:
af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.
Hm, that's
commit af6af30c0fcd77e621638e53ef8b176bca8bd3b4
Author: Peter Zijlstra <[email protected]> Date: Wed Aug 5 20:41:04 2009 +0200
ftrace: Fix perf-tracepoint OOPS
I wonder what happens if you compile out ftrace?
Quoted 8 lines
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build
x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.
OK, I'll close it for now.
Thanks,
Rafael
Re: [Bug #14012] latest git fried my x86_64 imac
Quoted 50 lines · Rafael J. Wysocki
Quoted 20 lines · Justin P. Mattock
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 10 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4Quoted 4 lines
if I revert this commit:
af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.Hm, that's
commit
af6af30c0fcd77e621638e53ef8b176bca8bd3b4Author: Peter Zijlstra<[email protected]> Date: Wed Aug 5 20:41:04 2009 +0200ftrace: Fix perf-tracepoint OOPS
I wonder what happens if you compile out ftrace?
Quoted 9 lines
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build
x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.OK, I'll close it for now.
Quoted 9 lines
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Ill give that a try and see.
Justin P. Mattock
Re: [Bug #14012] latest git fried my x86_64 imac
In reply to Rafael J. WysockiQuoted 50 lines · Rafael J. Wysocki
Quoted 20 lines · Justin P. Mattock
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 10 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4Quoted 4 lines
if I revert this commit:
af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.Hm, that's
commit
af6af30c0fcd77e621638e53ef8b176bca8bd3b4Author: Peter Zijlstra<[email protected]> Date: Wed Aug 5 20:41:04 2009 +0200ftrace: Fix perf-tracepoint OOPS
I wonder what happens if you compile out ftrace?
Quoted 9 lines
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build
x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.OK, I'll close it for now.
Quoted 9 lines
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
o.k. I tried disabling all of ftrace in the kernel, unfortunately the only one left
is HAVE_FTRACE_SYSCALLS
which seems to be selected by x86.
seems the system still sticks
without reverting perf-tracepoint oops.
Justin P. Mattock
Re: [Bug #14012] latest git fried my x86_64 imac
Quoted 60 lines · Justin P. Mattock
Quoted 50 lines · Rafael J. Wysocki
Quoted 20 lines · Justin P. Mattock
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 10 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4Quoted 4 lines
if I revert this commit:
af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.Hm, that's
commit
af6af30c0fcd77e621638e53ef8b176bca8bd3b4Author: Peter Zijlstra<[email protected]> Date: Wed Aug 5 20:41:04 2009 +0200ftrace: Fix perf-tracepoint OOPS
I wonder what happens if you compile out ftrace?
Quoted 9 lines
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build
x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.OK, I'll close it for now.
Quoted 9 lines
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines
o.k. I tried disabling all of ftrace in the kernel, unfortunately the only one left
isHAVE_FTRACE_SYSCALLS
which seems to be selected by x86.
seems the system still sticks
without reverting perf-tracepoint oops.
That's kind of strange. Can you attach the .config, please?
Rafael
Re: [Bug #14012] latest git fried my x86_64 imac
Quoted 61 lines · On Thu, 27 Aug 2009 21:45:01 +0200 Rafael J. Wysocki wrote:
Quoted 60 lines · Justin P. Mattock
Quoted 59 lines · Rafael J. Wysocki
Quoted 20 lines · Justin P. Mattock
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 10 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4Quoted 4 lines
if I revert this commit:
af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.Hm, that's
commit
af6af30c0fcd77e621638e53ef8b176bca8bd3b4Author: Peter Zijlstra<[email protected]> Date: Wed Aug 5 20:41:04 2009 +0200ftrace: Fix perf-tracepoint OOPS
I wonder what happens if you compile out ftrace?
Quoted 9 lines
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build
x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.OK, I'll close it for now.
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 8 lines
Quoted 6 lines
o.k. I tried disabling all of ftrace in the kernel, unfortunately the only one left
isHAVE_FTRACE_SYSCALLS
which seems to be selected by x86.
seems the system still sticks
without reverting perf-tracepoint oops.That's kind of strange. Can you attach the .config, please?
That's what arch/x86/Kconfig does:
### Arch settings
config X86
def_bool y
...
select HAVE_FTRACE_SYSCALLS
It just means that the $arch has that capability, not that it is enabled.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
Re: [Bug #14012] latest git fried my x86_64 imac
Quoted 89 lines · Randy Dunlap
Quoted 68 lines · On Thu, 27 Aug 2009 21:45:01 +0200 Rafael J. Wysocki wrote:
Quoted 66 lines · Justin P. Mattock
Quoted 64 lines · Rafael J. Wysocki
Quoted 22 lines · Justin P. Mattock
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 11 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14012
Subject : latest git fried myx86_64imac
Submitter : Justin P. Mattock<[email protected]>
Date : 2009-08-13 07:20 (13 days old)
References : http://marc.info/?l=linux-kernel&m=125014080427090&w=4Quoted 5 lines
if I revert this commit:
af6af30c0fcd77e621638e53ef8b176bca8bd3b4
I can get a normal bootup.Hm, that's
commit
af6af30c0fcd77e621638e53ef8b176bca8bd3b4Author: Peter Zijlstra<[email protected]> Date: Wed Aug 5 20:41:04 2009 +0200ftrace: Fix perf-tracepoint OOPS
I wonder what happens if you compile out ftrace?
Quoted 10 lines
As for this bug, it seems I'm the only hitting this. The system is a fresh LFS build
x86_64.
In regards to keeping this open
not sure, I don't have a problem with closing this and taking the blame as something I did during my build of the system, then if this becomes more frequent then open a new bug.OK, I'll close it for now.
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/Quoted 9 lines
Quoted 7 lines
o.k. I tried disabling all of ftrace in the kernel, unfortunately the only one left
isHAVE_FTRACE_SYSCALLS
which seems to be selected by x86.
seems the system still sticks
without reverting perf-tracepoint oops.That's kind of strange. Can you attach the .config, please?
That's what
arch/x86/Kconfigdoes:### Arch settings
config X86
def_booly
...
selectHAVE_FTRACE_SYSCALLS
Quoted 8 lines
It just means that the $arch has that capability, not that it is enabled.
---
~Randy
*** Remember to useDocumentation/SubmitChecklistwhen testing your code ***
Alright(see how much of newbie I am),
then disabling ftrace(if its safe to say)
still doesn't resolve the issue
for me then.
best bet, in my honest opinion
is to hold off on anything, until
"if any", other reports start showing up in this manner. if in the future there is no such reports then it's probably safe to say I did something wrong.
Then if there is issues later in time by anybody, then we have an idea of where/what might be the causing this.
Justin P. Mattock
[Bug #14016] mm/ipw2200 regression
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14016
Subject : mm/ipw2200 regression
Submitter : Bartlomiej Zolnierkiewicz <[email protected]>
Date : 2009-08-15 16:56 (11 days old)
References : http://marc.info/?l=linux-kernel&m=125036437221408&w=4
Re: [Bug #14016] mm/ipw2200 regression
Quoted 7 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14016
Subject : mm/ipw2200 regression
Submitter : Bartlomiej Zolnierkiewicz <[email protected]> Date : 2009-08-15 16:56 (11 days old)
References : http://marc.info/?l=linux-kernel&m=125036437221408&w=4
If am reading the page allocator dump correctly, there's plenty of pages left but we're unable to satisfy an order 6 allocation. There's no slab allocator involved so the page allocator changes that went into 2.6.31 seem likely. Mel, ideas?
Bartlomiej, can we see your .config, please?
Pekka
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [Bug #14016] mm/ipw2200 regression
[Cc netdev]
Quoted 14 lines · Pekka Enberg
Quoted 7 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14016
Subject : mm/ipw2200 regression
Submitter : Bartlomiej Zolnierkiewicz <[email protected]> Date : 2009-08-15 16:56 (11 days old)
References : http://marc.info/?l=linux-kernel&m=125036437221408&w=4
Quoted 4 lines
If am reading the page allocator dump correctly, there's plenty of pages left but we're unable to satisfy an order 6 allocation. There's no slab allocator involved so the page allocator changes that went into 2.6.31 seem likely. Mel, ideas?
It's an atomic order-6 allocation, the chances for this to succeed after some uptime become infinitesimal. The chunks > order-2 are pretty much exhausted on this dump.
64 pages, presumably 256k, for fw->boot_size while current ipw firmware images have ~188k. I don't know jack squat about this driver, but given the field name and the struct:
struct ipw_fw {
__le32 ver;
__le32 boot_size;
__le32 ucode_size;
__le32 fw_size;
u8 data[0];
};fw->boot_size alone being that big sounds a bit fishy to me.
Hannes
Re: [Bug #14016] mm/ipw2200 regression
Quoted 38 lines · Johannes Weiner
[Cc netdev]
Quoted 14 lines · Pekka Enberg
Quoted 7 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14016
Subject : mm/ipw2200 regression
Submitter : Bartlomiej Zolnierkiewicz <[email protected]> Date : 2009-08-15 16:56 (11 days old)
References : http://marc.info/?l=linux-kernel&m=125036437221408&w=4Quoted 4 lines
If am reading the page allocator dump correctly, there's plenty of pages left but we're unable to satisfy an order 6 allocation. There's no slab allocator involved so the page allocator changes that went into 2.6.31 seem likely. Mel, ideas?
It's an atomic order-6 allocation, the chances for this to succeed after some uptime become infinitesimal. The chunks > order-2 are pretty much exhausted on this dump.
64 pages, presumably 256k, for
fw->boot_sizewhile current ipw firmware images have ~188k. I don't know jack squat about this driver, but given the field name and the struct:struct ipw_fw { __le32 ver; __le32 boot_size; __le32 ucode_size; __le32 fw_size; u8 data[0]; };
Quoted 2 lines
fw->boot_sizealone being that big sounds a bit fishy to me.
Agreed. While there are a low number of order-6 pages free in the page allocation failure dump, there are not enough for watermarks to be satisified. As it's atomic, there is little that can be done from a VM perspective and it's the responsibility of the driver. I'm no driver expert but I'll have a go at fixing it anyway.
My reading of this is that the firmware is being loaded from a workqueue and I am failing to see any restriction on sleeping in the path. It would appear that the driver just used the most convenient *_alloc_coherent function available forgetting that it assumes GFP_ATOMIC. Can someone who does know which way is up with a driver tell me why the patch below might not work?
Bartlomiej, any chance you could give this a spin? Preferably, you'd have preempt enabled and CONFIG_DEBUG_SPINLOCK_SLEEP on as well because that combination will complain loudly if we really can't sleep in this path.
=====
ipw2200: Avoid large GFP_ATOMIC allocation during firmware loading
ipw2200 uses pci_alloc_consistent() to allocate a large coherent buffer for the loading of firmware which is an order-6 allocation of GFP_ATOMIC. At system start-up time, this is not a problem. However, the firmware on the card can get confused and the corrective action taken is to reload the firmware and reinit the card. High-order GFP_ATOMIC allocations of this type can and will fail when the system is already up and running.
As the firmware is loaded from a workqueue, it should be possible for the driver to go to sleep. This patch converts the call of pci_alloc_consistent() which assumes GFP_ATOMIC to dma_alloc_coherent() which can specify its own flags.
The big downside with this patch is that it uses GFP_REPEAT to avoid the driver unloading. There is potential that this will cause a reclaim storm as the machine tries to find a free order-6 buffer. A suggested alternative for the driver owner is in the comments.
---
drivers/net/wireless/ipw2x00/ipw2200.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/net/wireless/ipw2x00/ipw2200.c +13 -1
@@ -3167,7 +3167,19 @@ static int ipw_load_firmware(struct ipw_priv *priv, u8 * data, size_t len)u8 *shared_virt;IPW_DEBUG_TRACE ("<< : \n" ); - shared_virt =pci_alloc_consistent (priv->pci_dev, len, &shared_phys); + +/* +* This is a whopping large allocation, in or around order-6 so +* dma_alloc_coherent is used to specify the GFP_KERNEL|__GFP_REPEAT +* flags. Note that this action means the system could go into a +* reclaim loop until it cannot reclaim any more trying to satisfy +* the allocation. It would be preferable if one buffer is allocated +* at driver initialisation and reused when the firmware needs to +* be reloaded, overwriting the existing firmware each time +*/ + shared_virt =dma_alloc_coherent ( + priv->pci_dev ==NULL ?NULL : &priv->pci_dev->dev, + len, &shared_phys,GFP_KERNEL |__GFP_REPEAT);if (!shared_virt)return -ENOMEM ;
Andrew Morton
maintainerRe: [Bug #14016] mm/ipw2200 regression
(cc IPW maintainers and mailing lists)
Quoted 100 lines · On Wed, 26 Aug 2009 10:37:49 +0100 Mel Gorman <[email protected]> wrote:
Quoted 38 lines · Johannes Weiner
[Cc netdev]
Quoted 14 lines · Pekka Enberg
Quoted 7 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30.
__Pleaseverify if it still should be listed and let me know (either way).Quoted 5 lines
Bug-Entry __ __ __ : http://bugzilla.kernel.org/show_bug.cgi?id=14016
Subject __ __ __ __ : mm/ipw2200 regression
Submitter __ __ __ : Bartlomiej Zolnierkiewicz <[email protected]> Date __ __ __ __ __ __: 2009-08-15 16:56 (11 days old) References __ __ __: http://marc.info/?l=linux-kernel&m=125036437221408&w=4Quoted 4 lines
If am reading the page allocator dump correctly, there's plenty of pages left but we're unable to satisfy an order 6 allocation. There's no slab allocator involved so the page allocator changes that went into 2.6.31 seem likely. Mel, ideas?
It's an atomic order-6 allocation, the chances for this to succeed after some uptime become infinitesimal. The chunks > order-2 are pretty much exhausted on this dump.
64 pages, presumably 256k, for
fw->boot_sizewhile current ipw firmware images have ~188k. I don't know jack squat about this driver, but given the field name and the struct:struct ipw_fw { __le32 ver; __le32 boot_size; __le32 ucode_size; __le32 fw_size; u8 data[0]; };Quoted 2 lines
fw->boot_sizealone being that big sounds a bit fishy to me.Agreed. While there are a low number of order-6 pages free in the page allocation failure dump, there are not enough for watermarks to be satisified. As it's atomic, there is little that can be done from a VM perspective and it's the responsibility of the driver. I'm no driver expert but I'll have a go at fixing it anyway.
My reading of this is that the firmware is being loaded from a workqueue and I am failing to see any restriction on sleeping in the path. It would appear that the driver just used the most convenient
*_alloc_coherentfunction available forgetting that it assumesGFP_ATOMIC. Can someone who does know which way is up with a driver tell me why the patch below might not work?Bartlomiej, any chance you could give this a spin? Preferably, you'd have preempt enabled and
CONFIG_DEBUG_SPINLOCK_SLEEPon as well because that combination will complain loudly if we really can't sleep in this path.=====
ipw2200: Avoid largeGFP_ATOMICallocation during firmware loadingipw2200 uses
pci_alloc_consistent()to allocate a large coherent buffer for the loading of firmware which is an order-6 allocation ofGFP_ATOMIC. At system start-up time, this is not a problem. However, the firmware on the card can get confused and the corrective action taken is to reload the firmware and reinit the card. High-orderGFP_ATOMICallocations of this type can and will fail when the system is already up and running.As the firmware is loaded from a workqueue, it should be possible for the driver to go to sleep. This patch converts the call of
pci_alloc_consistent()which assumesGFP_ATOMICtodma_alloc_coherent()which can specify its own flags.The big downside with this patch is that it uses
GFP_REPEATto avoid the driver unloading. There is potential that this will cause a reclaim storm as the machine tries to find a free order-6 buffer. A suggested alternative for the driver owner is in the comments.Signed-off-by Mel Gorman <[email protected]>---
drivers/net/wireless/ipw2x00/ipw2200.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)drivers/net/wireless/ipw2x00/ipw2200.c +6
-1@@ -3167,7 +3167,19 @@ static int ipw_load_firmware(struct ipw_priv *priv, u8 * data, size_t len)u8 *shared_virt;IPW_DEBUG_TRACE ("<< : \n" ); - shared_virt =pci_alloc_consistent (priv->pci_dev, len, &shared_phys); + +/* +* This is a whopping large allocation, in or around order-6 so +* dma_alloc_coherent is used to specify the GFP_KERNEL|__GFP_REPEAT +* flags. Note that this action means the system could go into a +* reclaim loop until it cannot reclaim any more trying to satisfy
drivers/net/wireless/ipw2x00/ipw2200.c static int ipw_load_firmware(struct ipw_priv *priv, u8 * data, size_t len) · line 3185
Quoted 10 lines
drivers/net/wireless/ipw2x00/ipw2200.c +7
-0+* the allocation. It would be preferable if one buffer is allocated +* at driver initialisation and reused when the firmware needs to +* be reloaded, overwriting the existing firmware each time +*/ + shared_virt =dma_alloc_coherent ( + priv->pci_dev ==NULL ?NULL : &priv->pci_dev->dev, + len, &shared_phys,GFP_KERNEL |__GFP_REPEAT);if (!shared_virt)return -ENOMEM ;
Of course, the risk of making a change like this is that we'll then go and leave it there.
To fix this code properly we should, as you say, stop doing an order-6 allocation altogether.
And right now I think it's doing _two_ order-6 allocations:
shared_virt = pci_alloc_consistent(priv->pci_dev, len, &shared_phys); if (!shared_virt) return -ENOMEM; memmove(shared_virt, data, len);
whoever allocated `data' is being obnoxious as well.
It is perhaps pretty simple to make the second (GFP_ATOMIC) allocation go away. The code is already conveniently structured to do this:
do {
chunk = (struct fw_chunk *)(data + offset);
offset += sizeof(struct fw_chunk);
/* build DMA packet and queue up for sending */
/* dma to chunk->address, the chunk->length bytes from data +
* offeset*/
/* Dma loading */
rc = ipw_fw_dma_add_buffer(priv, shared_phys + offset,
le32_to_cpu(chunk->address),
le32_to_cpu(chunk->length));
if (rc) {
IPW_DEBUG_INFO("dmaAddBuffer Failed\n");
goto out;
}
offset += le32_to_cpu(chunk->length);
} while (offset < len);what is the typical/expected value of chunk->length here? If it's significantly less than 4096*(2^6), could we convert this function to use a separate DMAable allocation per fw_chunk?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [Bug #14016] mm/ipw2200 regression
Quoted 25 lines · Andrew Morton
It is perhaps pretty simple to make the second (
GFP_ATOMIC) allocation go away. The code is already conveniently structured to do this:do { chunk = (struct fw_chunk *)(data + offset); offset += sizeof(struct fw_chunk); /* build DMA packet and queue up for sending */ /* dma to chunk->address, the chunk->length bytes fromdata +
* offeset*/
/* Dma loading */
rc = ipw_fw_dma_add_buffer(priv,shared_phys+ offset,
le32_to_cpu(chunk->address),le32_to_cpu(chunk->length)); if (rc) { IPW_DEBUG_INFO("dmaAddBuffer Failed\n"); goto out; } offset += le32_to_cpu(chunk->length); } while (offset < len);
Quoted 3 lines
what is the typical/expected value of
chunk->lengthhere? If it's significantly less than 4096*(2^6), could we convert this function to use a separate DMAable allocation perfw_chunk?
Unfortunately, the largest chunk size for the latest 3.1 firmware is 0x20040, which also requires order 6 page allocation. I'll try to use the firmware DMA command block (64 slots) to handle the image (each for 4k, totally 256k).
Thanks,
-yi
Re: [Bug #14016] mm/ipw2200 regression
Quoted 26 lines · Zhu Yi
Quoted 25 lines · Andrew Morton
It is perhaps pretty simple to make the second (
GFP_ATOMIC) allocation go away. The code is already conveniently structured to do this:do { chunk = (struct fw_chunk *)(data + offset); offset += sizeof(struct fw_chunk); /* build DMA packet and queue up for sending */ /* dma to chunk->address, the chunk->length bytes fromdata +
* offeset*/
/* Dma loading */
rc = ipw_fw_dma_add_buffer(priv,shared_phys+ offset,
le32_to_cpu(chunk->address),le32_to_cpu(chunk->length)); if (rc) { IPW_DEBUG_INFO("dmaAddBuffer Failed\n"); goto out; } offset += le32_to_cpu(chunk->length); } while (offset < len);
Quoted 9 lines
Quoted 3 lines
what is the typical/expected value of
chunk->lengthhere? If it's significantly less than 4096*(2^6), could we convert this function to use a separate DMAable allocation perfw_chunk?Unfortunately, the largest chunk size for the latest 3.1 firmware is
0x20040, which also requires order 6 page allocation. I'll try to use the firmware DMA command block (64 slots) to handle the image (each for 4k, totally 256k).
That would be preferable as trying to make alloc-6 atomic allocations isn't going to pan out. As I noted, doing it as GFP_KERNEL is possible but it'll manifest as weird stalls periodically when the driver is loaded due to reclaim and if the system is swapless, it might not work at all if memory is mostly anonymous.
If the DMA command block doesn't work out, what is the feasibility of holding onto the order-6 allocation once the module is loaded instead of allocing for the duration of the firmware loading and then freeing it again?
Signature · 9 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
ipw2200: firmware DMA loading rework
In reply to Andrew MortonBartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is likely to fail and should always be avoided.
The patch fixes this problem by replacing the original order-6 pci_alloc_consistent() with an array of order-1 pages from a pci pool. This utilized the ipw2200 DMA command blocks (up to 64 slots). The maximum firmware size support remains the same (64*8K).
This patch fixes bug http://bugzilla.kernel.org/show_bug.cgi?id=14016
--- drivers/net/wireless/ipw2x00/ipw2200.c | 120 ++++++++++++++++++-------------- 1 files changed, 67 insertions(+), 53 deletions(-)
drivers/net/wireless/ipw2x00/ipw2200.c +67 -53
@@ -2874,45 +2874,27 @@ static int ipw_fw_dma_add_command_block(struct ipw_priv *priv,return 0 ; } -static int ipw_fw_dma_add_buffer (struct ipw_priv *priv, -u32 src_phys,u32 dest_address,u32 length) +static int ipw_fw_dma_add_buffer (struct ipw_priv *priv,dma_addr_t *src_address, +int nr,u32 dest_address,u32 len) { -u32 bytes_left = length; -u32 src_offset =0 ; -u32 dest_offset =0 ; -int status =0 ; +int ret, i; +u32 size; +IPW_DEBUG_FW (">> \n" ); -IPW_DEBUG_FW_INFO ("src_phys=0x%x dest_address=0x%x length=0x%x\n" , - src_phys, dest_address, length); -while (bytes_left >CB_MAX_LENGTH ) { - status =ipw_fw_dma_add_command_block (priv, - src_phys + src_offset, - dest_address + - dest_offset, -CB_MAX_LENGTH ,0 ,0 ); -if (status) { +IPW_DEBUG_FW_INFO ("nr=%d dest_address=0x%x len=0x%x\n" , + nr, dest_address, len); + +for (i =0 ; i < nr; i++) { + size =min_t (u32, len - i *CB_MAX_LENGTH ,CB_MAX_LENGTH ); + ret =ipw_fw_dma_add_command_block (priv, src_address[i], + dest_address + + i *CB_MAX_LENGTH , size, +0 ,0 ); +if (ret) {IPW_DEBUG_FW_INFO (": Failed\n" );return -1 ; }else IPW_DEBUG_FW_INFO (": Added new cb\n" ); - - src_offset +=CB_MAX_LENGTH ; - dest_offset +=CB_MAX_LENGTH ; - bytes_left -=CB_MAX_LENGTH ; - } - -/* add the buffer tail */ -if (bytes_left >0 ) { - status = -ipw_fw_dma_add_command_block (priv, src_phys + src_offset, - dest_address + dest_offset, - bytes_left,0 ,0 ); -if (status) { -IPW_DEBUG_FW_INFO (": Failed on the buffer tail\n" ); -return -1 ; - }else -IPW_DEBUG_FW_INFO - (": Adding new cb - the buffer tail\n" ); }IPW_DEBUG_FW ("<< \n" );
@@ -3160,59 +3142,91 @@ static int ipw_load_ucode(struct ipw_priv *priv, u8 * data, size_t len)static int ipw_load_firmware (struct ipw_priv *priv,u8 * data,size_t len) { -int rc =-1 ; +int ret =-1 ;int offset =0 ;struct fw_chunk *chunk; -dma_addr_t shared_phys; -u8 *shared_virt; +int total_nr =0 ; +int i; +struct pci_pool *pool; +u32 *virts[CB_NUMBER_OF_ELEMENTS_SMALL ]; +dma_addr_t phys[CB_NUMBER_OF_ELEMENTS_SMALL ];IPW_DEBUG_TRACE ("<< : \n" ); - shared_virt =pci_alloc_consistent (priv->pci_dev, len, &shared_phys); -if (!shared_virt) + pool =pci_pool_create ("ipw2200" , priv->pci_dev,CB_MAX_LENGTH ,0 ,0 ); +if (!pool) { +IPW_ERROR ("pci_pool_create failed\n" );return -ENOMEM ; - -memmove (shared_virt, data, len); + }/* Start the Dma */ - rc =ipw_fw_dma_enable (priv); + ret =ipw_fw_dma_enable (priv);/* the DMA is already ready this would be a bug. */ BUG_ON (priv->sram_desc.last_cb_index >0 );do { +u32 chunk_len; +u8 *start; +int size; +int nr =0 ; + chunk = (struct fw_chunk *)(data + offset); offset +=sizeof (struct fw_chunk ); + chunk_len =le32_to_cpu (chunk->length); + start = data + offset; + + nr = (chunk_len +CB_MAX_LENGTH -1 ) /CB_MAX_LENGTH ; +for (i =0 ; i < nr; i++) { + virts[total_nr] =pci_pool_alloc (pool,GFP_KERNEL , + &phys[total_nr]); +if (!virts[total_nr]) { + ret = -ENOMEM ; + goto out; + } + size =min_t (u32, chunk_len - i *CB_MAX_LENGTH , +CB_MAX_LENGTH ); +memcpy (virts[total_nr], start, size); + start += size; + total_nr++; +/* We don't support fw chunk larger than 64*8K */ +BUG_ON (total_nr >CB_NUMBER_OF_ELEMENTS_SMALL ); + } +/* build DMA packet and queue up for sending */ /* dma to chunk->address, the chunk->length bytes from data + * offeset*/ /* Dma loading */ - rc =ipw_fw_dma_add_buffer (priv, shared_phys + offset, -le32_to_cpu (chunk->address), -le32_to_cpu (chunk->length)); -if (rc) { + ret =ipw_fw_dma_add_buffer (priv, &phys[total_nr - nr], + nr,le32_to_cpu (chunk->address), + chunk_len); +if (ret) {IPW_DEBUG_INFO ("dmaAddBuffer Failed\n" ); goto out; } - offset +=le32_to_cpu (chunk->length); + offset += chunk_len; }while (offset < len);/* Run the DMA and wait for the answer */ - rc =ipw_fw_dma_kick (priv); -if (rc) { + ret =ipw_fw_dma_kick (priv); +if (ret) {IPW_ERROR ("dmaKick Failed\n" ); goto out; } - rc =ipw_fw_dma_wait (priv); -if (rc) { + ret =ipw_fw_dma_wait (priv); +if (ret) {IPW_ERROR ("dmaWaitSync Failed\n" ); goto out; } - out: -pci_free_consistent (priv->pci_dev, len, shared_virt, shared_phys); -return rc; + out: +for (i =0 ; i < total_nr; i++) +pci_pool_free (pool, virts[i], phys[i]); + +pci_pool_destroy (pool); + +return ret; }/* stop nic */
Signature · 1 line
1.5.3.6
Re: ipw2200: firmware DMA loading rework
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
Quoted 7 lines
likely to fail and should always be avoided.
The patch fixes this problem by replacing the original order-6
pci_alloc_consistent()with an array of order-1 pages from a pci pool. This utilized the ipw2200 DMA command blocks (up to 64 slots). The maximum firmware size support remains the same (64*8K).
Quoted 5 lines
This patch fixes bug http://bugzilla.kernel.org/show_bug.cgi?id=14016
Cc Andrew Morton <[email protected]>Cc Mel Gorman <[email protected]>Signed-off-by Zhu Yi <[email protected]>
Thanks for the fix (also kudos to other people helping with the bugreport), it works fine so far and looks OK to me:
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 8 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (mb_history is optional so the mount succeeded):
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78
Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36
Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data mode
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.config
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):
OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data mode
Quoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.config
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra kmalloc() allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.
A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.git
Luis
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 77 lines · On Wednesday 02 September 2009 20:02:14 Luis R. Rodriguez wrote:
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeQuoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.config
Quoted 8 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.git
Thanks for the pointer but the page allocation failures that I hit seem to be caused by the memory management itself and the ext4 issue fixed by:
is a different problem (unrelated to this one).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 87 lines · On Wednesday 02 September 2009 20:26:17 Bartlomiej Zolnierkiewicz wrote:
Quoted 77 lines · On Wednesday 02 September 2009 20:02:14 Luis R. Rodriguez wrote:
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeQuoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.configQuoted 8 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.git
Quoted 6 lines
Thanks for the pointer but the page allocation failures that I hit seem to be caused by the memory management itself and the ext4 issue fixed by:
is a different problem (unrelated to this one).
Here is another data point.
This time it is an order-6 page allocation failure for rt2870sta (w/ upcoming driver changes) and Linus' tree from few days ago..
ifconfig: page allocation failure. order:6, mode:0x8020
Pid: 4752, comm: ifconfig Tainted: G WC 2.6.31-04082-g1824090-dirty #80
Call Trace: [<c03996f2>] ? printk+0xf/0x15 [<c016b841>] __alloc_pages_nodemask+0x41d/0x462 [<c010681e>] dma_generic_alloc_coherent+0x53/0xbd [<c02f83aa>] hcd_buffer_alloc+0xdb/0xe8 [<c01067cb>] ? dma_generic_alloc_coherent+0x0/0xbd [<c02ee2d6>] usb_buffer_alloc+0x16/0x1d [<e121b627>] NICInitTransmit+0xe2/0x7e4 [rt2870sta] [<e121bfb1>] RTMPAllocTxRxRingMemory+0x11c/0x17b [rt2870sta] [<e11f0960>] rt28xx_init+0xa5/0x3f8 [rt2870sta] [<e121194a>] rt28xx_open+0x53/0xa2 [rt2870sta] [<e1211b77>] MainVirtualIF_open+0x23/0xf6 [rt2870sta] [<c03383a4>] dev_open+0x86/0xbb [<c0337b1a>] dev_change_flags+0x96/0x147 [<c036e9cb>] devinet_ioctl+0x20f/0x4f8 [<c036fc8f>] inet_ioctl+0x8e/0xa7 [<c032ab50>] sock_ioctl+0x1c9/0x1ed [<c032a987>] ? sock_ioctl+0x0/0x1ed [<c0195732>] vfs_ioctl+0x18/0x71 [<c0195cbb>] do_vfs_ioctl+0x491/0x4cf [<c01779d6>] ? handle_mm_fault+0x242/0x4ff [<c0119609>] ? do_page_fault+0x102/0x292 [<c0140721>] ? up_read+0x16/0x29 [<c0195d27>] sys_ioctl+0x2e/0x48 [<c0102908>] sysenter_do_call+0x12/0x36
Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 84
Active_anon:14664 active_file:30057 inactive_anon:31744
inactive_file:29940 unevictable:2 dirty:11 writeback:0 unstable:0
free:5421 slab:4037 mapped:7781 pagetables:963 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:0kB inactive_anon:124kB active_file:3284kB inactive_file:972kB unevictable:0kB present:15788kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:19624kB min:2788kB low:3484kB high:4180kB active_anon:58656kB inactive_anon:126852kB active_file:116944kB inactive_file:118788kB unevictable:8kB present:501392kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 3*4kB 0*8kB 2*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2060kB
Normal: 2180*4kB 625*8kB 303*16kB 33*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 19624kB
64568 total pagecache pages
3652 pages in swap cache
Swap cache stats: add 21642, delete 17990, find 4906/6079
Free swap = 981700kB
Total swap = 1020116kB
131056 pages RAM
4262 pages reserved
91941 pages shared
60834 pages non-shared
<-- ERROR in Alloc TX TxContext[0] HTTX_BUFFER !!
<-- RTMPAllocTxRxRingMemory, Status=3
ERROR!!! RTMPAllocDMAMemory failed, Status[=0x00000003]
!!! rt28xx Initialized fail !!!
Re: ipw2200: firmware DMA loading rework
Quoted 91 lines · Bartlomiej Zolnierkiewicz
Quoted 90 lines · On Wednesday 02 September 2009 20:26:17 Bartlomiej Zolnierkiewicz wrote:
Quoted 77 lines · On Wednesday 02 September 2009 20:02:14 Luis R. Rodriguez wrote:
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeQuoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.configQuoted 8 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.gitThanks for the pointer but the page allocation failures that I hit seem to be caused by the memory management itself and the ext4 issue fixed by:
Quoted 9 lines
Quoted 3 lines
is a different problem (unrelated to this one).
Here is another data point.
This time it is an order-6 page allocation failure for rt2870sta (w/ upcoming driver changes) and Linus' tree from few days ago..
It's another high-order atomic allocation which is difficult to grant. I didn't look closely, but is this the same type of thing - large allocation failure during firmware loading? If so, is this during resume or is the device being reloaded for some other reason?
I suspect that there are going to be a few of these bugs cropping up every so often where network devices are assuming large atomic allocations will succeed because the "only time they happen" is during boot but these days are happening at runtime for other reasons.
Quoted 55 lines
ifconfig: page allocation failure. order:6, mode:0x8020
Pid: 4752, comm: ifconfig Tainted: G WC 2.6.31-04082-g1824090-dirty #80Call Trace: [<c03996f2>] ? printk+0xf/0x15 [<c016b841>] __alloc_pages_nodemask+0x41d/0x462 [<c010681e>] dma_generic_alloc_coherent+0x53/0xbd [<c02f83aa>] hcd_buffer_alloc+0xdb/0xe8 [<c01067cb>] ? dma_generic_alloc_coherent+0x0/0xbd [<c02ee2d6>] usb_buffer_alloc+0x16/0x1d [<e121b627>] NICInitTransmit+0xe2/0x7e4 [rt2870sta] [<e121bfb1>] RTMPAllocTxRxRingMemory+0x11c/0x17b [rt2870sta] [<e11f0960>] rt28xx_init+0xa5/0x3f8 [rt2870sta] [<e121194a>] rt28xx_open+0x53/0xa2 [rt2870sta] [<e1211b77>] MainVirtualIF_open+0x23/0xf6 [rt2870sta] [<c03383a4>] dev_open+0x86/0xbb [<c0337b1a>] dev_change_flags+0x96/0x147 [<c036e9cb>] devinet_ioctl+0x20f/0x4f8 [<c036fc8f>] inet_ioctl+0x8e/0xa7 [<c032ab50>] sock_ioctl+0x1c9/0x1ed [<c032a987>] ? sock_ioctl+0x0/0x1ed [<c0195732>] vfs_ioctl+0x18/0x71 [<c0195cbb>] do_vfs_ioctl+0x491/0x4cf [<c01779d6>] ? handle_mm_fault+0x242/0x4ff [<c0119609>] ? do_page_fault+0x102/0x292 [<c0140721>] ? up_read+0x16/0x29 [<c0195d27>] sys_ioctl+0x2e/0x48 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 84
Active_anon:14664 active_file:30057 inactive_anon:31744
inactive_file:29940 unevictable:2 dirty:11 writeback:0 unstable:0
free:5421 slab:4037 mapped:7781 pagetables:963 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:0kB inactive_anon:124kB active_file:3284kB inactive_file:972kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:19624kB min:2788kB low:3484kB high:4180kB active_anon:58656kB inactive_anon:126852kB active_file:116944kB inactive_file:118788kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 3*4kB 0*8kB 2*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 2060kB
Normal: 2180*4kB 625*8kB 303*16kB 33*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 19624kB
64568 total pagecache pages
3652 pages in swap cache
Swap cache stats: add 21642, delete 17990, find 4906/6079
Free swap = 981700kB
Total swap = 1020116kB
131056 pages RAM
4262 pages reserved
91941 pages shared
60834 pages non-shared
<-- ERROR in Alloc TX TxContext[0]HTTX_BUFFER!!
<-- RTMPAllocTxRxRingMemory, Status=3
ERROR!!! RTMPAllocDMAMemory failed, Status[=0x00000003]
!!! rt28xx Initialized fail !!!
Signature · 9 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 98 lines · On Monday 21 September 2009 10:58:44 Mel Gorman wrote:
Quoted 97 lines · Bartlomiej Zolnierkiewicz
Quoted 87 lines · On Wednesday 02 September 2009 20:26:17 Bartlomiej Zolnierkiewicz wrote:
Quoted 77 lines · On Wednesday 02 September 2009 20:02:14 Luis R. Rodriguez wrote:
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeQuoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.configQuoted 8 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.gitQuoted 6 lines
Thanks for the pointer but the page allocation failures that I hit seem to be caused by the memory management itself and the ext4 issue fixed by:
is a different problem (unrelated to this one).
Here is another data point.
Quoted 8 lines
Quoted 3 lines
This time it is an order-6 page allocation failure for rt2870sta (w/ upcoming driver changes) and Linus' tree from few days ago..
It's another high-order atomic allocation which is difficult to grant. I didn't look closely, but is this the same type of thing - large allocation failure during firmware loading? If so, is this during resume or is the device being reloaded for some other reason?
Just modprobing the driver on a system running for some time.
Quoted 4 lines
I suspect that there are going to be a few of these bugs cropping up every so often where network devices are assuming large atomic allocations will succeed because the "only time they happen" is during boot but these days are happening at runtime for other reasons.
I wouldn't go so far as calling a normal order-6 (256kB) allocation on 512MB machine with 1024MB swap a bug. Moreover such failures just never happened before 2.6.31-rc1.
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 97 lines · Bartlomiej Zolnierkiewicz
Quoted 97 lines
Quoted 96 lines
Quoted 84 lines
Quoted 75 lines
Quoted 5 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 4 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Quoted 2 lines
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeQuoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.configQuoted 8 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.gitQuoted 6 lines
Thanks for the pointer but the page allocation failures that I hit seem to be caused by the memory management itself and the ext4 issue fixed by:
is a different problem (unrelated to this one).
Here is another data point.
This time it is an order-6 page allocation failure for rt2870sta (w/ upcoming driver changes) and Linus' tree from few days ago..
Quoted 7 lines
Quoted 4 lines
It's another high-order atomic allocation which is difficult to grant. I didn't look closely, but is this the same type of thing - large allocation failure during firmware loading? If so, is this during resume or is the device being reloaded for some other reason?
Just modprobing the driver on a system running for some time.
Was this a common situation before?
Quoted 8 lines
Quoted 4 lines
I suspect that there are going to be a few of these bugs cropping up every so often where network devices are assuming large atomic allocations will succeed because the "only time they happen" is during boot but these days are happening at runtime for other reasons.
I wouldn't go so far as calling a normal order-6 (256kB) allocation on 512MB machine with 1024MB swap a bug. Moreover such failures just never happened before 2.6.31-rc1.
It's not that normal, it's an allocation that cannot sleep and cannot reclaim. Why is something like firmware loading allocating memory like that? Is this use of GFP_ATOMIC relatively recent or has it always been that way?
Quoted 3 lines
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
Possibly but drivers that reload their firmware as a response to an error condition is relatively new and loading network drivers while the system is already up and running a long time does not strike me as typical system behaviour.
Signature · 3 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab
Re: ipw2200: firmware DMA loading rework
Quoted 103 lines · On Monday 21 September 2009 12:08:13 Mel Gorman wrote:
Quoted 102 lines · Bartlomiej Zolnierkiewicz
Quoted 101 lines
Quoted 87 lines
Quoted 87 lines
Quoted 75 lines
Quoted 5 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 4 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Quoted 2 lines
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 52 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeQuoted 7 lines
Thus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.configQuoted 8 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.gitThanks for the pointer but the page allocation failures that I hit seem to be caused by the memory management itself and the ext4 issue fixed by:
Quoted 9 lines
Quoted 3 lines
is a different problem (unrelated to this one).
Here is another data point.
This time it is an order-6 page allocation failure for rt2870sta (w/ upcoming driver changes) and Linus' tree from few days ago..
It's another high-order atomic allocation which is difficult to grant. I didn't look closely, but is this the same type of thing - large allocation failure during firmware loading? If so, is this during resume or is the device being reloaded for some other reason?
Quoted 4 lines
Quoted 2 lines
Just modprobing the driver on a system running for some time.
Was this a common situation before?
Yes, just like firmware restarts with ipw2200.
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
I suspect that there are going to be a few of these bugs cropping up every so often where network devices are assuming large atomic allocations will succeed because the "only time they happen" is during boot but these days are happening at runtime for other reasons.
I wouldn't go so far as calling a normal order-6 (256kB) allocation on 512MB machine with 1024MB swap a bug. Moreover such failures just never happened before 2.6.31-rc1.
It's not that normal, it's an allocation that cannot sleep and cannot reclaim. Why is something like firmware loading allocating memory like
OK.
Quoted 2 lines
that? Is this use of
GFP_ATOMICrelatively recent or has it always been that way?
It has always been like that.
Quoted 8 lines
Quoted 3 lines
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
Possibly but drivers that reload their firmware as a response to an error condition is relatively new and loading network drivers while the system is already up and running a long time does not strike me as typical system behaviour.
Loading drivers after boot is a typical desktop/laptop behavior, please think about hotplug (the hardware in question is an USB dongle).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 10 lines · Bartlomiej Zolnierkiewicz
Quoted 7 lines
Quoted 2 lines
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
Possibly but drivers that reload their firmware as a response to an error condition is relatively new and loading network drivers while the system is already up and running a long time does not strike me as typical system behaviour.
Loading drivers after boot is a typical desktop/laptop behavior, please think about hotplug (the hardware in question is an USB dongle).
Yeah, I wonder what broke things. Did the wireless stack change in 2.6.31-rc1 too? IIRC Mel ruled out page allocator changes as a suspect.
Pekka
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 9 lines · On Monday 21 September 2009 12:56:48 Pekka Enberg wrote:
Quoted 8 lines · Bartlomiej Zolnierkiewicz
Quoted 7 lines
Quoted 2 lines
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
Possibly but drivers that reload their firmware as a response to an error condition is relatively new and loading network drivers while the system is already up and running a long time does not strike me as typical system behaviour.
Quoted 5 lines
Quoted 2 lines
Loading drivers after boot is a typical desktop/laptop behavior, please think about hotplug (the hardware in question is an USB dongle).
Yeah, I wonder what broke things. Did the wireless stack change in 2.6.31-rc1 too? IIRC Mel ruled out page allocator changes as a suspect.
The thing is that the mm behavior change has been narrowed down already over a month ago to -mm merge in 2.6.31-rc1 (as has been noted in my initial reports), I first though that that it was -next breakage but it turned out that it came the other way around (because -mm is not even pulled into -next currently -- great way to set an example for other kernel maintainers BTW).
I understand that behavior change may be justified and technically correct in itself. I also completely agree that high order allocations in certain drivers need fixing anyway.
However there is something wrong with the big picture and the way changes are happening. I'm not saying that I'm surprised though, especially given the recent decline in the quality assurance and the paradigm shift that I'm seeing (some influential top level people talking that -rc1 is fine for testing new code now or the "new kernel new hardware" thing).
Sorry but I have no more time currently to narrow down the issue some more (guess what, there are other kernel bugs standing in the way to bisect it and I would have to provide some reliable way to reproduce it first) so I see no more point in wasting people's time on this. I can certainly get by with allocation failure here and there. Not a big deal for me personally..
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 13 lines · Bartlomiej Zolnierkiewicz
Quoted 12 lines · On Monday 21 September 2009 12:56:48 Pekka Enberg wrote:
Quoted 10 lines · Bartlomiej Zolnierkiewicz
Quoted 7 lines
Quoted 2 lines
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
Possibly but drivers that reload their firmware as a response to an error condition is relatively new and loading network drivers while the system is already up and running a long time does not strike me as typical system behaviour.
Loading drivers after boot is a typical desktop/laptop behavior, please think about hotplug (the hardware in question is an USB dongle).
Quoted 9 lines
Quoted 2 lines
Yeah, I wonder what broke things. Did the wireless stack change in 2.6.31-rc1 too? IIRC Mel ruled out page allocator changes as a suspect.
The thing is that the mm behavior change has been narrowed down already over a month ago to -mm merge in 2.6.31-rc1 (as has been noted in my initial reports), I first though that that it was -next breakage but it turned out that it came the other way around (because -mm is not even pulled into -next currently -- great way to set an example for other kernel maintainers BTW).
Is there a reliable reproduction case for this that narrowed it down to 2.6.31-rc1? That is the window where a number of page-allocator optimisation patches made it in. None of them should have affected the allocator from a fragmentation perspective though.
If you have a reliable reproduction case, testing between commits d239171e4f6efd58d7e423853056b1b6a74f1446..a1dd268cf6306565a31a48deff8bf4f6b4b105f7 would be nice, particularly if it can be bisected within that small window rather than a full bisect of an rc1 which I know can be a major mess.
Quoted 10 lines
I understand that behavior change may be justified and technically correct in itself. I also completely agree that high order allocations in certain drivers need fixing anyway.
However there is something wrong with the big picture and the way changes are happening. I'm not saying that I'm surprised though, especially given the recent decline in the quality assurance and the paradigm shift that I'm seeing (some influential top level people talking that -rc1 is fine for testing new code now or the "new kernel new hardware" thing).
The quality assurance comment is a bit unfair with respect to the page allocator. There are a lot of things that can have changed that would hose order-6 atomic allocations. Furthermore, test cases used for mm patches would not have taken into account such allocations as being critical. Even if it was considered, it would have been dismissed as "it makes no sense for drivers to be doing order-6 GFP_ATOMIC" allocations.
Quoted 6 lines
Sorry but I have no more time currently to narrow down the issue some more (guess what, there are other kernel bugs standing in the way to bisect it and I would have to provide some reliable way to reproduce it first) so I see no more point in wasting people's time on this. I can certainly get by with allocation failure here and there. Not a big deal for me personally..
That is somewhat unfortunate. Even testing within the window above if possible would be very helpful if you get the chance.
Signature · 3 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab
Re: ipw2200: firmware DMA loading rework
In reply to Bartlomiej ZolnierkiewiczQuoted 30 lines · Bartlomiej Zolnierkiewicz
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines
<SNIP>
This time it is an order-6 page allocation failure for rt2870sta (w/ upcoming driver changes) and Linus' tree from few days ago..
It's another high-order atomic allocation which is difficult to grant. I didn't look closely, but is this the same type of thing - large allocation failure during firmware loading? If so, is this during resume or is the device being reloaded for some other reason?
Quoted 4 lines
Quoted 2 lines
Just modprobing the driver on a system running for some time.
Was this a common situation before?
Yes, just like firmware restarts with ipw2200.
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
I suspect that there are going to be a few of these bugs cropping up every so often where network devices are assuming large atomic allocations will succeed because the "only time they happen" is during boot but these days are happening at runtime for other reasons.
I wouldn't go so far as calling a normal order-6 (256kB) allocation on 512MB machine with 1024MB swap a bug. Moreover such failures just never happened before 2.6.31-rc1.
It's not that normal, it's an allocation that cannot sleep and cannot reclaim. Why is something like firmware loading allocating memory like
Quoted 7 lines
OK.
Quoted 2 lines
that? Is this use of
GFP_ATOMICrelatively recent or has it always been that way?It has always been like that.
Nuts, why is firmware loading depending on GFP_ATOMIC?
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
I don't know why people don't see it but for me it has a memory management regression and reliability issue written all over it.
Quoted 8 lines
Quoted 4 lines
Possibly but drivers that reload their firmware as a response to an error condition is relatively new and loading network drivers while the system is already up and running a long time does not strike me as typical system behaviour.
Loading drivers after boot is a typical desktop/laptop behavior, please think about hotplug (the hardware in question is an USB dongle).
In that case, how reproducible is this problem so it can be bisected? Basically, there are no guarantees that GFP_ATOMIC allocations of this order will succeed although you can improve the odds by increasing min_free_kbytes. Network drivers should never have been depending on GFP_ATOMIC succeeding like this but the hole has been dug now.
If it's happening more frequently now than it used to then either
1. The allocations are occuring more frequently where as previously a pool might have been reused or the memory not freed for the lifetime of the system.
2. Something has changed in the allocator. I'm not aware of recent changes that could cause this though in such a recent time-frame.
3. Something has changed recently with respect to reclaim. There have been changes made recently to lumpy reclaim and that might be impacting kswapd's efforts at keeping large contiguous regions free.
4. Hotplug events that involve driver loads are more common now than they were previously for some reason. You mention that this is a USB dongle for example. Was it a case before that the driver loaded early and remained resident but only active after a hotplug event? If that was the case, the memory would be allocated once at boot. However, if an optimisation made recently unloads those unused drivers and re-loads them later, there would be more order-6 allocations than they were previously and manifest as these bug reports. Is this a possibility?
The ideal would be that network drivers not make allocations like this in the first place by, for example, DMAing the firmware across in page-size chunks instead of one contiguous lump :/
Signature · 3 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab
Re: ipw2200: firmware DMA loading rework
In reply to Luis R. RodriguezQuoted 74 lines · Luis R. Rodriguez
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · On Sunday 30 August 2009 14:37:42 Bartlomiej Zolnierkiewicz wrote:
Quoted 2 lines · On Friday 28 August 2009 05:42:31 Zhu Yi wrote:
Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
Quoted 7 lines
Quoted 4 lines
s/2.6.30/2.6.31-rc6/
The issue has always been there but it was some recent change that explicitly triggered the allocation failures (after 2.6.31-rc1).
ipw2200 fix works fine but yesterday I got the following error while mounting ext4 filesystem (
mb_historyis optional so the mount succeeded):OK so the mount succeeded.
Quoted 57 lines
EXT4-fs (dm-2): barriers enabled
kjournald2 starting: pid 3137, dev dm-2:8, commit interval 5 seconds EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
mount: page allocation failure. order:5, mode:0xc0d0
Pid: 3136, comm: mount Not tainted 2.6.31-rc8-00015-gadda766-dirty #78Call Trace: [<c0394de3>] ? printk+0xf/0x14 [<c016a693>] __alloc_pages_nodemask+0x400/0x442 [<c016a71b>] __get_free_pages+0xf/0x32 [<c01865cf>] __kmalloc+0x28/0xfa [<c023d96f>] ? __spin_lock_init+0x28/0x4d [<c01f529d>] ext4_mb_init+0x392/0x460 [<c01e99d2>] ext4_fill_super+0x1b96/0x2012 [<c0239bc8>] ? snprintf+0x15/0x17 [<c01c0b26>] ? disk_name+0x24/0x69 [<c018ba63>] get_sb_bdev+0xda/0x117 [<c01e6711>] ext4_get_sb+0x13/0x15 [<c01e7e3c>] ? ext4_fill_super+0x0/0x2012 [<c018ad2d>] vfs_kern_mount+0x3b/0x76 [<c018adad>] do_kern_mount+0x33/0xbd [<c019d0af>] do_mount+0x660/0x6b8 [<c016a71b>] ? __get_free_pages+0xf/0x32 [<c019d168>] sys_mount+0x61/0x99 [<c0102908>] sysenter_do_call+0x12/0x36Mem-Info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
Normal per-cpu:
CPU 0: hi: 186, btch: 31 usd: 0
Active_anon:25471 active_file:22802 inactive_anon:25812
inactive_file:33619 unevictable:2 dirty:2452 writeback:135 unstable:0
free:4346 slab:4308 mapped:26038 pagetables:912 bounce:0
DMA free:2060kB min:84kB low:104kB high:124kB active_anon:1660kB inactive_anon:1848kB active_file:144kB inactive_file:868kB unevictable:0kB present:15788kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 489 489
Normal free:15324kB min:2788kB low:3484kB high:4180kB active_anon:100224kB inactive_anon:101400kB active_file:91064kB inactive_file:133608kB unevictable:8kB present:501392kB pages_scanned:0all_unreclaimable? no lowmem_reserve[]: 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2060kB
Normal: 1283*4kB 648*8kB 159*16kB 53*32kB 10*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 15324kB
57947 total pagecache pages
878 pages in swap cache
Swap cache stats: add 920, delete 42, find 11/11
Free swap = 1016436kB
Total swap = 1020116kB
131056 pages RAM
4233 pages reserved
90573 pages shared
77286 pages non-shared
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data modeThus it seems like the original bug is still there and any ideas how to debug the problem further are appreciated..
The complete dmesg and kernel config are here:
Quoted 9 lines
Quoted 2 lines
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.dmesg
http://www.kernel.org/pub/linux/kernel/people/bart/ext4-paf.configThis looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.
I suspect the more pressing concern is why is this kmalloc() resulting in an order-5 allocation request? What size is the buffer being requested? Was that expected? What is the contents of /proc/slabinfo in case a buffer that should have required order-1 or order-2 is using a higher order for some reason.
Quoted 3 lines
A patch fix is part of the ext4-patchqueue
http://repo.or.cz/w/ext4-patch-queue.git
p.s. I'm will be offline until Tuesday so will not be initially very responsive.
Signature · 9 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
Quoted 6 lines · Mel Gorman
Quoted 6 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.
No, it's a different problem.
Quoted 5 lines
I suspect the more pressing concern is why is this
kmalloc()resulting in an order-5 allocation request? What size is the buffer being requested? Was that expected? What is the contents of/proc/slabinfoin case a buffer that should have required order-1 or order-2 is using a higher order for some reason.
It's allocating 68,000 bytes for the mb_history structure, which is used for debugging purposes. That's why it's optional and we continue if it's not allocated. We should fix it to use vmalloc() and I'm inclined to turn it off by default since it's not worth the overhead, and most ext4 users won't find it useful or interesting.
- Ted
Re: ipw2200: firmware DMA loading rework
Quoted 16 lines · Theodore Tso
Quoted 6 lines · Mel Gorman
Quoted 6 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.No, it's a different problem.
Quoted 5 lines
I suspect the more pressing concern is why is this
kmalloc()resulting in an order-5 allocation request? What size is the buffer being requested? Was that expected? What is the contents of/proc/slabinfoin case a buffer that should have required order-1 or order-2 is using a higher order for some reason.
Quoted 3 lines
It's allocating 68,000 bytes for the
mb_historystructure, which is used for debugging purposes. That's why it's optional and we continue if it's not allocated. We should fix it to usevmalloc()
You could call with kmalloc(FLAGS|GFP_NOWARN) with a fallback to vmalloc() and a disable if vmalloc() fails as well. Maybe check out what kernel/profile.c#profile_init() to allocate a large buffer and do something similar?
Quoted 4 lines
and I'm
inclined to turn it off by default since it's not worth the overhead, and most ext4 users won't find it useful or interesting.
I can't comment as I don't know what sort of debugging it's useful for.
Signature · 3 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab
Re: ipw2200: firmware DMA loading rework
Quoted 26 lines · Mel Gorman
Quoted 16 lines · Theodore Tso
Quoted 6 lines · Mel Gorman
Quoted 6 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.No, it's a different problem.
Quoted 5 lines
I suspect the more pressing concern is why is this
kmalloc()resulting in an order-5 allocation request? What size is the buffer being requested? Was that expected? What is the contents of/proc/slabinfoin case a buffer that should have required order-1 or order-2 is using a higher order for some reason.Quoted 3 lines
It's allocating 68,000 bytes for the
mb_historystructure, which is used for debugging purposes. That's why it's optional and we continue if it's not allocated. We should fix it to usevmalloc()You could call with
kmalloc(FLAGS|GFP_NOWARN)with a fallback tovmalloc()and a disable ifvmalloc()fails as well. Maybe check out what kernel/profile.c#profile_init() to allocate a large buffer and do something similar?
Quoted 7 lines
Quoted 4 lines
and I'm
inclined to turn it off by default since it's not worth the overhead, and most ext4 users won't find it useful or interesting.I can't comment as I don't know what sort of debugging it's useful for.
Perhaps this is a suitable use for the new proposed flex_array? From an initial glance, I can't see why the allocated memory has to be contiguous..
http://lwn.net/Articles/345273/
Cheers, Simon
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: ipw2200: firmware DMA loading rework
In reply to Theodore TsoQuoted 16 lines · Theodore Tso
Quoted 6 lines · Mel Gorman
Quoted 6 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.No, it's a different problem.
Quoted 5 lines
I suspect the more pressing concern is why is this
kmalloc()resulting in an order-5 allocation request? What size is the buffer being requested? Was that expected? What is the contents of/proc/slabinfoin case a buffer that should have required order-1 or order-2 is using a higher order for some reason.
Quoted 3 lines
It's allocating 68,000 bytes for the
mb_historystructure, which is used for debugging purposes. That's why it's optional and we continue if it's not allocated. We should fix it to usevmalloc()
You could call with kmalloc(FLAGS|GFP_NOWARN) with a fallback to vmalloc() and a disable if vmalloc() fails as well. Maybe check out what kernel/profile.c#profile_init() to allocate a large buffer and do something similar?
Quoted 4 lines
and I'm
inclined to turn it off by default since it's not worth the overhead, and most ext4 users won't find it useful or interesting.
I can't comment as I don't know what sort of debugging it's useful for.
Signature · 3 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: ipw2200: firmware DMA loading rework
Quoted 16 lines · Theodore Tso
Quoted 6 lines · Mel Gorman
Quoted 6 lines
This looks very similar to the kmemleak ext4 reports upon a mount. If it is the same issue, which from the trace it seems it is, then this is due to an extra
kmalloc()allocation and this apparently will not get fixed on 2.6.31 due to the closeness of the merge window and the non-criticalness this issue has been deemed.No, it's a different problem.
Quoted 5 lines
I suspect the more pressing concern is why is this
kmalloc()resulting in an order-5 allocation request? What size is the buffer being requested? Was that expected? What is the contents of/proc/slabinfoin case a buffer that should have required order-1 or order-2 is using a higher order for some reason.
Quoted 3 lines
It's allocating 68,000 bytes for the
mb_historystructure, which is used for debugging purposes. That's why it's optional and we continue if it's not allocated. We should fix it to usevmalloc()
You could call with kmalloc(FLAGS|GFP_NOWARN) with a fallback to vmalloc() and a disable if vmalloc() fails as well. Maybe check out what kernel/profile.c#profile_init() to allocate a large buffer and do something similar?
Quoted 4 lines
and I'm
inclined to turn it off by default since it's not worth the overhead, and most ext4 users won't find it useful or interesting.
I can't comment as I don't know what sort of debugging it's useful for.
Signature · 3 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab
Re: [Bug #14016] mm/ipw2200 regression
In reply to Johannes WeinerQuoted 12 lines · Johannes Weiner
64 pages, presumably 256k, for
fw->boot_sizewhile current ipw firmware images have ~188k. I don't know jack squat about this driver, but given the field name and the struct:struct ipw_fw { __le32 ver; __le32 boot_size; __le32 ucode_size; __le32 fw_size; u8 data[0]; };
Quoted 1 line
fw->boot_sizealone being that big sounds a bit fishy to me.
Scrap that, I just noticed the second call to ipw_load_firmware() a few lines later... :)
Hannes 'when logic and proportion have fallen sloppy dead...'
[Bug #14013] hd don't show up
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14013
Subject : hd don't show up
Submitter : Tim Blechmann <[email protected]>
Date : 2009-08-14 8:26 (12 days old)
References : http://marc.info/?l=linux-kernel&m=125023842514480&w=4
[Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=linux-kernel&m=125029329805643&w=4
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 10 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4
Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 6 lines · Mikael Pettersson
Quoted 5 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 8 lines
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Thanks for the update.
I guess 2.6.31-rc8 doesn't make any difference, does it?
Rafael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 13 lines · Rafael J. Wysocki
Quoted 12 lines · Mikael Pettersson
Quoted 10 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4
Quoted 6 lines
Quoted 2 lines
Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Thanks for the update.
I guess 2.6.31-rc8 doesn't make any difference, does it?
I've scheduled a number of gcc bootstraps and testsuite runs with -rc8 on x86, powerpc64, and arm. I'll post an update in a day or so.
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 17 lines · Mikael Pettersson
Quoted 16 lines · Rafael J. Wysocki
Quoted 14 lines · Mikael Pettersson
Quoted 10 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Quoted 7 lines
Quoted 3 lines
Thanks for the update.
I guess 2.6.31-rc8 doesn't make any difference, does it?
I've scheduled a number of gcc bootstraps and testsuite runs with -rc8 on x86, powerpc64, and arm. I'll post an update in a day or so.
2.6.31-rc8 results in bogus testsuite failures on all three platforms.
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 20 lines · Mikael Pettersson
Quoted 19 lines · Mikael Pettersson
Quoted 18 lines · Rafael J. Wysocki
Quoted 6 lines · Mikael Pettersson
Quoted 5 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 8 lines
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Thanks for the update.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
I guess 2.6.31-rc8 doesn't make any difference, does it?
I've scheduled a number of gcc bootstraps and testsuite runs with -rc8 on x86, powerpc64, and arm. I'll post an update in a day or so.
2.6.31-rc8 results in bogus testsuite failures on all three platforms.
That may be a result of the known inotify borkage in -rc8 that has been fixed in the current Linus' tree.
Thanks,
Rafael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 23 lines · Rafael J. Wysocki
Quoted 22 lines · Mikael Pettersson
Quoted 21 lines · Mikael Pettersson
Quoted 19 lines · Rafael J. Wysocki
Quoted 6 lines · Mikael Pettersson
Quoted 5 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 8 lines
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Thanks for the update.
I guess 2.6.31-rc8 doesn't make any difference, does it?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I've scheduled a number of gcc bootstraps and testsuite runs with -rc8 on x86, powerpc64, and arm. I'll post an update in a day or so.
2.6.31-rc8 results in bogus testsuite failures on all three platforms.
That may be a result of the known inotify borkage in -rc8 that has been fixed in the current Linus' tree.
No, it's the same old semi-random pty breakage. My kernels are built without inotify.
A bisection has identified Alan's
pty: Rework the pty layer to use the normal buffering logic d945cb9cce20ac7143c2de8d88b187f62db99bdc
as the culprit. This patch introduces a massive number of bogus failures in the gcc testsuite. Subsequent pty/tty patches do fix most of those failures, but clearly not all.
/Mikael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 36 lines · Mikael Pettersson
Quoted 23 lines · Rafael J. Wysocki
Quoted 22 lines · Mikael Pettersson
Quoted 21 lines · Mikael Pettersson
Quoted 19 lines · Rafael J. Wysocki
Quoted 6 lines · Mikael Pettersson
Quoted 5 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 8 lines
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Thanks for the update.
I guess 2.6.31-rc8 doesn't make any difference, does it?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I've scheduled a number of gcc bootstraps and testsuite runs with -rc8 on x86, powerpc64, and arm. I'll post an update in a day or so.
2.6.31-rc8 results in bogus testsuite failures on all three platforms.
That may be a result of the known inotify borkage in -rc8 that has been fixed in the current Linus' tree.
No, it's the same old semi-random pty breakage. My kernels are built without inotify.
Quoted 8 lines
A bisection has identified Alan's
pty: Rework the pty layer to use the normal buffering logic
d945cb9cce20ac7143c2de8d88b187f62db99bdcas the culprit. This patch introduces a massive number of bogus failures in the gcc testsuite. Subsequent pty/tty patches do fix most of those failures, but clearly not all.
Starting with 2.6.31-rc8 and reverting
85dfd81dc57e8183a277ddd7a56aa65c96f3f487 pty: fix data loss when stopped (^S/^Q) d945cb9cce20ac7143c2de8d88b187f62db99bdc pty: Rework the pty layer to use the normal buffering logic
in that order gives me a kernel that works on both x86 and powerpc64.
So the bug is definitely limited to the pty buffering logic change.
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 46 lines · Mikael Pettersson
Quoted 36 lines · Mikael Pettersson
Quoted 23 lines · Rafael J. Wysocki
Quoted 22 lines · Mikael Pettersson
Quoted 21 lines · Mikael Pettersson
Quoted 19 lines · Rafael J. Wysocki
Quoted 6 lines · Mikael Pettersson
Quoted 5 lines · Rafael J. Wysocki
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 8 lines
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=3D14015
Subject : pty regressed again, breaking expect and gcc's testsuite
Submitter : Mikael Pettersson <[email protected]>
Date : 2009-08-14 23:41 (12 days old)
References : http://marc.info/?l=3Dlinux-kernel&m=3D125029329805643&w=3D4Not fixed. With 2.6.31-rc7 I'm still seeing repeatable testsuite failures on powerpc64. Reverting to 2.6.30 makes the failures go away.
Thanks for the update.
I guess 2.6.31-rc8 doesn't make any difference, does it?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I've scheduled a number of gcc bootstraps and testsuite runs with -rc8 on x86, powerpc64, and arm. I'll post an update in a day or so.
2.6.31-rc8 results in bogus testsuite failures on all three platforms.
That may be a result of the known inotify borkage in -rc8 that has been fixed in the current Linus' tree.
No, it's the same old semi-random pty breakage. My kernels are built without inotify.
Quoted 8 lines
A bisection has identified Alan's
pty: Rework the pty layer to use the normal buffering logic
d945cb9cce20ac7143c2de8d88b187f62db99bdcas the culprit. This patch introduces a massive number of bogus failures in the gcc testsuite. Subsequent pty/tty patches do fix most of those failures, but clearly not all.
Quoted 8 lines
Starting with 2.6.31-rc8 and reverting
85dfd81dc57e8183a277ddd7a56aa65c96f3f487pty: fix data loss when stopped (^S/^Q)d945cb9cce20ac7143c2de8d88b187f62db99bdcpty: Rework the pty layer to use the normal buffering logicin that order gives me a kernel that works on both x86 and powerpc64.
So the bug is definitely limited to the pty buffering logic change.
Thanks a lot for this information, adding somme CCs to the list.
Best,
Rafael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 4 lines · Rafael J. Wysocki
Quoted 3 lines · Mikael Pettersson
Starting with 2.6.31-rc8 and reverting
Quoted 8 lines
Quoted 6 lines
85dfd81dc57e8183a277ddd7a56aa65c96f3f487pty: fix data loss when stopped (^S/^Q)d945cb9cce20ac7143c2de8d88b187f62db99bdcpty: Rework the pty layer to use the normal buffering logicin that order gives me a kernel that works on both x86 and powerpc64.
So the bug is definitely limited to the pty buffering logic change.
Thanks a lot for this information, adding somme CCs to the list.
Mikael, is there any way to get the gcc testsuite to show the "expected" vs "result" cases when the failures occur, so that we can see what the pattern is ("it drops one character every 8kB" or something like that).
However, I get the feeling that it's really the same bug that OGAWA-san already fixed - and that his fix just doesn't always do a 100% of the job.
So what Ogawa did was to make sure that we flush any pending data whenever we;re checking "do we have any data left". He did that by calling out to tty_flush_to_ldisc(), which should flush the data through to the ldisc.
The keyword here being "should". In flush_to_ldisc(), we have at least one case where we say "we'll delay it a bit more":
if (!tty->receive_room) {
schedule_delayed_work(&tty->buf.work, 1);
break;
}and while I think this _should_ be ok (because if there is no receive-room, then we'll hopefully always return non-zero from "input_available_p()". However, we do have this really odd case that the reader side will do "n_tty_set_room()" onlyl _after_ having checked for input_available_p(), and so maybe we do sometimes trigger the case that
- input_available_p() tries to flush to the input buffer before checking how much data is available, by calling 'tty_flush_to_ldisc()'
- but 'tty_flush_to_ldisc()' won't do anything, because tty->receive_room is zero.
- so now input_available_p will say "I don't have any data", even though there was data in the write buffers.
- we'll notice that the other end has hung up, and return EOF/EIO.
- which is very WRONG, because the other end may have hung up, but before it did that, it wrote data that is still in the write queues, and we should have returned that data.
Anyway, I'm not at all sure that the "receive_room == 0" case can happen at all, but maybe it can. Ogawa-san?
Here's a totally untested trial patch. I only have this dead-slow netbook for reading email with me, and I don't have a failing test-case anyway, but if my analysis is right, then the patch might fix it. It just forces the re-calculation of the receive buffer before flushing the ldisc.
(And btw, from a performance standpoint, it might make more sense to only do this whole read-room / ldisc-flush thing if we are about to return zero. If we already have data available, we probably shouldn't waste time trying to see if we need to do anything fancy like this.)
CAVEAT EMPTOR. Not tested. It compiled for me, but maybe that was due to me compiling the wrong file or something.
Linus
--- drivers/char/n_tty.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/char/n_tty.c +1 -0
@@ -1583,6 +1583,7 @@ static int n_tty_open(struct tty_struct *tty)static inline int input_available_p (struct tty_struct *tty,int amt) { +n_tty_set_room (tty);tty_flush_to_ldisc (tty);if (tty->icanon) {if (tty->canon_data)
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 49 lines · Linus Torvalds
Quoted 4 lines · Rafael J. Wysocki
Quoted 3 lines · Mikael Pettersson
Starting with 2.6.31-rc8 and reverting
Quoted 8 lines
Quoted 6 lines
85dfd81dc57e8183a277ddd7a56aa65c96f3f487pty: fix data loss when stopped (^S/^Q)d945cb9cce20ac7143c2de8d88b187f62db99bdcpty: Rework the pty layer to use the normal buffering logicin that order gives me a kernel that works on both x86 and powerpc64.
So the bug is definitely limited to the pty buffering logic change.
Thanks a lot for this information, adding somme CCs to the list.
Mikael, is there any way to get the gcc testsuite to show the "expected" vs "result" cases when the failures occur, so that we can see what the pattern is ("it drops one character every 8kB" or something like that).
However, I get the feeling that it's really the same bug that OGAWA-san already fixed - and that his fix just doesn't always do a 100% of the job.
So what Ogawa did was to make sure that we flush any pending data whenever we;re checking "do we have any data left". He did that by calling out to
tty_flush_to_ldisc(), which should flush the data through to the ldisc.The keyword here being "should". In
flush_to_ldisc(), we have at least one case where we say "we'll delay it a bit more":if (!tty->receive_room) { schedule_delayed_work(&tty->buf.work, 1); break; }and while I think this _should_ be ok (because if there is no receive-room, then we'll hopefully always return non-zero from "
input_available_p()". However, we do have this really odd case that the reader side will do "n_tty_set_room()" onlyl _after_ having checked forinput_available_p(), and so maybe we do sometimes trigger the case that-
input_available_p()tries to flush to the input buffer before checking how much data is available, by calling 'tty_flush_to_ldisc()'- but '
tty_flush_to_ldisc()' won't do anything, becausetty->receive_roomis zero.- so now
input_available_pwill say "I don't have any data", even though there was data in the write buffers.
Quoted 8 lines
- we'll notice that the other end has hung up, and return EOF/EIO.
- which is very WRONG, because the other end may have hung up, but before it did that, it wrote data that is still in the write queues, and we should have returned that data.
Anyway, I'm not at all sure that the "
receive_room== 0" case can happen at all, but maybe it can. Ogawa-san?
If I'm not missing, I think it doesn't have big change with old code. But I would need to check more deeply.
Um.., If "receive_room == 0 && tty->read_cnt == 0" is possible, I wonder why reverting buffer handling fixes the problem.
Well, anyway, I'd like to reproduce this on my machine. Could you tell me the version of tools? I guess gcc testsuite using the gcc's source (svn revision?), expect, dejagnu, tcl. (BTW, I'm using debian testing. If it can be reproduced on kvm, I can install distro version which you are using)
Thanks.
Signature · 1 line
OGAWA Hirofumi <[email protected]>
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 5 lines · OGAWA Hirofumi
Well, anyway, I'd like to reproduce this on my machine. Could you tell me the version of tools? I guess gcc testsuite using the gcc's source (svn revision?), expect, dejagnu, tcl. (BTW, I'm using debian testing. If it can be reproduced on kvm, I can install distro version which you are using)
Nothing fancy needed. You can use the gcc-4.4.1 release tarball and any recent gcc-4.3 weekly snapshot tarball, like 4.3-20090830.
I've always seen the bogus errors in the C or C++ testsuites, so to save some time you can just --enable-languages=c,c++ when building gcc.
The machines I've been running the testsuites on are a mix of architectures running older or stability-oriented distros:
M1: i686 PC, Fedora Core 6, dejagnu-1.4.4-5.1, expect-5.43.0-5.1, tcl-8.4.13-3.fc6
M2: powerpc64 (G5), YellowDog 6.2, dejagnu-1.4.4-5.1, expect-5.43.0-5.1, tcl-8.4.13-3
M3: ARM, FC8-based, dejagnu-1.4.4-12.fc8, expect-5.43.0-9.fc8, tcl-8.4.17-1.fc8
/Mikael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to OGAWA HirofumiQuoted 3 lines · OGAWA Hirofumi
If I'm not missing, I think it doesn't have big change with old code. But I would need to check more deeply.
The thing is, the old pty code pushed _directly_ to the receiving ldisc, with no buffering. I'm not entirely sure why Alan felt it needed changing, but moving over to the generic tty buffering code did get rid of some duplicate logic, and the locking is now done in one place, so that's probably the main reason.
Anyway, the old pty code would be entirely synchronous, and would do the
ld->ops->receive_buf(to, buf, NULL, c);
to push the data all the way to the receive side frm pty_write(). So with the old code, the destination "receive_room" was always accurate, because both the reading side and the writing side basically accessed it directly.
With the new code, it all goes through tty_buffer.c, and the bugs have been mostly about the receiving side not seeing all the data in the buffers. And those buffers simply didn't use to exist before.
Quoted 2 lines
Um.., If "
receive_room== 0 &&tty->read_cnt== 0" is possible, I wonder why reverting buffer handling fixes the problem.
In the old code, if 'receive_room' was zero, then the writer would simply stop writing (no buffers in between). So in the old code, you could never get into a situation where receive_room was zero and there was still pending data.
At least that's how I read the situation.
If I'm right, I'm hoping that the patch I sent out fixes it, and if so, we'll do that for 2.6.31 (and then after that maybe re-think whether the extra buffering is worth all this pain).
And if it _doesn't_ fix it, then I think we'll just have to revert the commits in question. We won't have time to root-cause it if the above isn't it.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 7 lines · Linus Torvalds
Quoted 3 lines · OGAWA Hirofumi
If I'm not missing, I think it doesn't have big change with old code. But I would need to check more deeply.
The thing is, the old pty code pushed _directly_ to the receiving ldisc, with no buffering.
Yes.
Quoted 4 lines
I'm not entirely sure why Alan felt it needed changing, but moving over to the generic tty buffering code did get rid of some duplicate logic, and the locking is now done in one place, so that's probably the main reason.
IIRC, ppp had the locking issue without that patch?
Quoted 11 lines
Anyway, the old pty code would be entirely synchronous, and would do the
ld->ops->receive_buf(to, buf, NULL, c);to push the data all the way to the receive side frm
pty_write(). So with the old code, the destination "receive_room" was always accurate, because both the reading side and the writing side basically accessed it directly.With the new code, it all goes through
tty_buffer.c, and the bugs have been mostly about the receiving side not seeing all the data in the buffers. And those buffers simply didn't use to exist before.
Yes. However, pty_write() checks tty_buffer instead of receive_room. So I thought, the change of write side is mainly buffer size (receive_room size + tty_buffer size). It will stop after filling tty_buffer, not receive_room.
And (I hope) the read side guarantees to consume both buffers. If it is right, I guessed the change is timing issues with more larger buffer size.
Quoted 9 lines
Quoted 2 lines
Um.., If "
receive_room== 0 &&tty->read_cnt== 0" is possible, I wonder why reverting buffer handling fixes the problem.In the old code, if '
receive_room' was zero, then the writer would simply stop writing (no buffers in between). So in the old code, you could never get into a situation wherereceive_roomwas zero and there was still pending data.At least that's how I read the situation.
Another possibility in my guess is the change of pty_flush_buffer() and pty_chars_in_buffer(). I'm not sure at all though, especially, I'm suspecting pty_flush_buffer() may change the behaviors.
Quoted 3 lines
If I'm right, I'm hoping that the patch I sent out fixes it, and if so, we'll do that for 2.6.31 (and then after that maybe re-think whether the extra buffering is worth all this pain).
I also hope it works.
Quoted 3 lines
And if it _doesn't_ fix it, then I think we'll just have to revert the commits in question. We won't have time to root-cause it if the above isn't it.
At least for me, it sounds like good if revert works. I have no preference about it.
FWIW, meanwhile, I'll just try to see the root-cause of this as another/fallback solution.
Thanks.
Signature · 1 line
OGAWA Hirofumi <[email protected]>
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 4 lines · OGAWA Hirofumi
Yes. However,
pty_write()checkstty_bufferinstead ofreceive_room. So I thought, the change of write side is mainly buffer size (receive_roomsize +tty_buffersize).
The problem has never been the write side. That side works - just with extra buffering.
Quoted 1 line
It will stop after filling
tty_buffer, notreceive_room.
Yes.
Quoted 3 lines
And (I hope) the read side guarantees to consume both buffers. If it is right, I guessed the change is timing issues with more larger buffer size.
That's the change. The read side only consumes the buffers it _sees_. And it doesn't look at the buffers that the write side has written, only at the 'received' buffers. That's why we had to add that 'tty_flush_to_ldisc' so that the buffers that got written were properly moved to the receive side.
And that's the part that I suspect is broken - ie tty_flush_to_ldisc doesn't always guarantee that it moves all the written stuff to the receive side.
Before, this wasn't an issue, because the writer always filled up the receive buffers directly, so there was never any flushing issues.
Quoted 3 lines
Another possibility in my guess is the change of
pty_flush_buffer()andpty_chars_in_buffer(). I'm not sure at all though, especially, I'm suspectingpty_flush_buffer()may change the behaviors.
I don't think 'pty_flush_buffer()' is ever called in any normal circumstances. Afaik, it's only called for a TIOCFLUSH ioctl (or whatever it's called) when the user asks for all the contents to be thrown away.
Quoted 2 lines
FWIW, meanwhile, I'll just try to see the root-cause of this as another/fallback solution.
Absolutely. If you can find some other possibility, that would be great. I'm not really sure how that 'receive_room == 0' case would ever happen in practice, so my patch was really based on the assumption that the bug is in the flushing code.
The bug could easily be elsewhere.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to Linus TorvaldsQuoted 3 lines
And if it _doesn't_ fix it, then I think we'll just have to revert the commits in question. We won't have time to root-cause it if the above isn't it.
In which case ppp will no longer work properly in some cases (ditto other protocols) and things like the pppoe gateway wont work as they don't in 2.6.30 - you need to go back to somewhere between 2.6.28/29 to undo this, then apply the alternative locking patches to the ppp/slip/ax25/etc ldiscs
Is the missing byte always part of the \r\n - that is handled slightly specially by the n_tty ldisc code and has always been buggy if there is flow control buffering - back to 1.3 and probably earlier. It happens on real ttys too given sufficient flow control blockage because the char by char opost stuff never did space/buffering checks. At least I don't think the n_tty rework fixed it.
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 6 lines · Alan Cox
In which case ppp will no longer work properly in some cases (ditto other protocols) and things like the pppoe gateway wont work as they don't in 2.6.30 - you need to go back to somewhere between 2.6.28/29 to undo this, then apply the alternative locking patches to the ppp/slip/ax25/etc ldiscs
It should be fairly trivial to just add the locking to the pty write routines. That said, we need to fix the 2.6.31 regression, and right now that is the big one. If we go back to broken 2.6.30 situation, that's way more acceptable.
But I'm still hoping we can fix this.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to Linus TorvaldsQuoted 12 lines · Linus Torvalds
Quoted 9 lines · Rafael J. Wysocki
Quoted 8 lines · Mikael Pettersson
Starting with 2.6.31-rc8 and reverting
85dfd81dc57e8183a277ddd7a56aa65c96f3f487pty: fix data loss when stopped (^S/^Q)d945cb9cce20ac7143c2de8d88b187f62db99bdcpty: Rework the pty layer to use the normal buffering logicin that order gives me a kernel that works on both x86 and powerpc64.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
So the bug is definitely limited to the pty buffering logic change.
Thanks a lot for this information, adding somme CCs to the list.
Mikael, is there any way to get the gcc testsuite to show the "expected" vs "result" cases when the failures occur, so that we can see what the pattern is ("it drops one character every 8kB" or something like that).
I don't know. It dumps a summary on stdout and saves logs in various subdirs. Those logs do show the gcc commands executed and the output from those commands, but they don't show why some test is considered failed, or the exact boundaries of each fragment of text returned by read(2) [which I guess may be significant].
What I can say for certain is that the test cases I've seen fail most frequently deliberately generate lots of diagnostic output from the compiler, like 100s or 1000s of lines of warning/error messages. So the comments in the pty changes that talk about using some 8KB buffer instead of a 64KB tty flip buffer definitely made me nervous.
Quoted 50 lines
However, I get the feeling that it's really the same bug that OGAWA-san already fixed - and that his fix just doesn't always do a 100% of the job.
So what Ogawa did was to make sure that we flush any pending data whenever we;re checking "do we have any data left". He did that by calling out to
tty_flush_to_ldisc(), which should flush the data through to the ldisc.The keyword here being "should". In
flush_to_ldisc(), we have at least one case where we say "we'll delay it a bit more":if (!tty->receive_room) { schedule_delayed_work(&tty->buf.work, 1); break; }and while I think this _should_ be ok (because if there is no receive-room, then we'll hopefully always return non-zero from "
input_available_p()". However, we do have this really odd case that the reader side will do "n_tty_set_room()" onlyl _after_ having checked forinput_available_p(), and so maybe we do sometimes trigger the case that-
input_available_p()tries to flush to the input buffer before checking how much data is available, by calling 'tty_flush_to_ldisc()'- but '
tty_flush_to_ldisc()' won't do anything, becausetty->receive_roomis zero.- so now
input_available_pwill say "I don't have any data", even though there was data in the write buffers.- we'll notice that the other end has hung up, and return EOF/EIO.
- which is very WRONG, because the other end may have hung up, but before it did that, it wrote data that is still in the write queues, and we should have returned that data.
Anyway, I'm not at all sure that the "
receive_room== 0" case can happen at all, but maybe it can. Ogawa-san?Here's a totally untested trial patch. I only have this dead-slow netbook for reading email with me, and I don't have a failing test-case anyway, but if my analysis is right, then the patch might fix it. It just forces the re-calculation of the receive buffer before flushing the ldisc.
(And btw, from a performance standpoint, it might make more sense to only do this whole read-room / ldisc-flush thing if we are about to return zero. If we already have data available, we probably shouldn't waste time trying to see if we need to do anything fancy like this.)
Quoted 4 lines
CAVEAT EMPTOR. Not tested. It compiled for me, but maybe that was due to me compiling the wrong file or something.
Linus
Thanks. I'll give this a try tomorrow.
/Mikael
Quoted 16 lines
drivers/char/n_tty.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/char/n_tty.c +1
-0@@ -1583,6 +1583,7 @@ static int n_tty_open(struct tty_struct *tty)static inline int input_available_p (struct tty_struct *tty,int amt) { +n_tty_set_room (tty);tty_flush_to_ldisc (tty);if (tty->icanon) {if (tty->canon_data)
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to Linus TorvaldsQuoted 25 lines · Linus Torvalds
Here's a totally untested trial patch. I only have this dead-slow netbook for reading email with me, and I don't have a failing test-case anyway, but if my analysis is right, then the patch might fix it. It just forces the re-calculation of the receive buffer before flushing the ldisc.
(And btw, from a performance standpoint, it might make more sense to only do this whole read-room / ldisc-flush thing if we are about to return zero. If we already have data available, we probably shouldn't waste time trying to see if we need to do anything fancy like this.)
CAVEAT EMPTOR. Not tested. It compiled for me, but maybe that was due to me compiling the wrong file or something.
Linus
--- drivers/char/n_tty.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/char/n_tty.c +0
-0
drivers/char/n_tty.c static int n_tty_open(struct tty_struct *tty) · line 1589
Quoted 7 lines
drivers/char/n_tty.c +1
-0@@ -1583,6 +1583,7 @@ static int n_tty_open(struct tty_struct *tty)static inline int input_available_p (struct tty_struct *tty,int amt) { +n_tty_set_room (tty);tty_flush_to_ldisc (tty);if (tty->icanon) {if (tty->canon_data)
Unfortunately this did not fix the bug. The gcc-4.3 testsuite failed as usual in gcc.dg/c99-typespec-1.c.
Comparing the gcc outputs for this test case from runs with 2.6.30 and 2.6.31-rc8 shows that 2.6.31-rc8 lost a single newline (\n) byte at byte offset 131660. So two lines of diagnostics were fused together and the testsuite framework failed to match the second of those lines.
This is what 2.6.30 output at that place:
/mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1143: error: two or more data types in declaration specifiers /mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1144: error: two or more data types in declaration specifiers /mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1145: error: both 'long' and 'short' in declaration specifiers /mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1146: error: two or more data types in declaration specifiers
And this is what 2.6.31-rc8 + the patch output at that place:
/mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1143: error: two or more data types in declaration specifiers/mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1144: error: two or more data types in declaration specifiers/mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1145: error: both 'long' and 'short' in declaration specifiers /mnt/work1/gcc-4.3-20090830/gcc/testsuite/gcc.dg/c99-typespec-1.c:1146: error: two or more data types in declaration specifiers
The actual logs use \r\n line endings, so between the diagnostics for source lines 1144 and 1145 there is now a single \r. Some software will display \r line ending as \r\n, so a missing \n may not be visible. So I've removed the \r characters in the text above to avoid affecting how it is presented. The original logs are available in <http://user.it.uu.se/~mikpe/linux/pty-bug/>
if you need them.
/Mikael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 5 lines · Mikael Pettersson
Comparing the gcc outputs for this test case from runs with 2.6.30 and 2.6.31-rc8 shows that 2.6.31-rc8 lost a single newline (\n) byte at byte offset 131660. So two lines of diagnostics were fused together and the testsuite framework failed to match the second of those lines.
Goodie. That was the kind of hint I was looking for.
And I suspect that that means that the bug is related to do_output_char() expanding '\n' into '\r\n'. And the different buffering (and the pty 'space' logic) just means that we now hit a case that we didn't use to hit. The relevant call chain is
- n_tty handling:
n_tty_write() -> process_output() -> do_output_char() -> tty_put_char(tty, '\r') tty_put_char(tty, '\n')
I'll see what I can find. But your "loses \n character" does mean that the 'lost bytes at the end when the other end closed it' is probably not the issue, and we're talking about a different kind of bug entirely.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 6 lines · Linus Torvalds
And I suspect that that means that the bug is related to
do_output_char()expanding '\n' into '\r\n'. And the different buffering (and the pty 'space' logic) just means that we now hit a case that we didn't use to hit. The relevant call chain is
Quoted 6 lines
-
n_ttyhandling:n_tty_write() -> process_output() -> do_output_char() -> tty_put_char(tty, '\r') tty_put_char(tty, '\n')
Hmm. I think I have a clue.
process_output() does
space = tty_write_room(tty);
retval = do_output_char(c, tty, space);so 'space' can never become off-by-one, since it's always re-calculated just before. And do_output_char() checks that there is room for two characters, and won't do just the '\r'.
So the fact that you see the '\r' and not the '\n' means that something dropped the second character _despite_ tty_write_room() saying there was room for two characters.
Now, with flow control that can in theory happen in case 'tty->stopped' gets set asynchronously in between, but that's not an issue here.
So the most likely cause is just that the pty_write_room() function is simply buggered, or at least doesn't work together with the new world order.
How about something like this? It's way too anal - it says that we can only write data if there's enough space to always push it all the way to the receive buffer (including all the data that was already buffered up, ie the "memory_used" part). But if it finally makes the problem go away, we have another clue.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 6 lines · Linus Torvalds
How about something like this? It's way too anal - it says that we can only write data if there's enough space to always push it all the way to the receive buffer (including all the data that was already buffered up, ie the "
memory_used" part). But if it finally makes the problem go away, we have another clue.
I forgot to actually include the patch. Duh.
And again - UNTESTED. Maybe this makes the buffering _too_ small (the 'memory_used' thing is not really counted in bytes buffered, it's counted in how much buffer space we've allocated) and things break even worse and pty's don't work at all. But I think it might work.
Linus
--- drivers/char/pty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/pty.c +1 -1
@@ -91,7 +91,7 @@ static void pty_unthrottle(struct tty_struct *tty)static int pty_space (struct tty_struct *to) { -int n =8192 - to->buf.memory_used; +int n = to->receive_room - to->buf.memory_used;if (n <0 )return 0 ;return n;
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 5 lines · Linus Torvalds
And again - UNTESTED. Maybe this makes the buffering _too_ small (the '
memory_used' thing is not really counted in bytes buffered, it's counted in how much buffer space we've allocated) and things break even worse and pty's don't work at all. But I think it might work.
Actually, scratch that patch.
After writing the above, the voices in my head started clamoring about this "space allocated" vs "bytes buffered" thing, which I was obviously aware of, but hadn't thought about as an issue.
And you know what? The thing about "space allocated" vs "bytes buffered" is that writing _one_ byte (the '\r') can cause a lot more than one byte to be allocated for a buffer (we do minimum 256-byte buffers).
So let's say that 'space' was initially 20 - plenty big enough to hold two characters. But if the '\r' just happened to need a new buffer, it would actually increase 'memory_used' by 256, and now the next time we call 'pty_space()' it doesn't return 19, but 0 - because now memory_used is larger than the 8192 we allowed.
So I'm starting to suspect that the real bug is that we do that 'pty_space()' in pty_write() call at all. The _callers_ should already have done the write_room() check, and if somebody doesn't do it, then the tty buffering will eventually do a hard limit at the 65kB allocation mark.
So doing it in pty_write() is (a) unnecessary and (b) actively wrong, because it means that in the situation above, pty_write() won't be allowin the slop that it _needs_ to allow due to the buffering not being exact "this many bytes buffered up", but "this many bytes allocated for buffering".
So rather than the previous patch, try this one instead.
Linus
--- drivers/char/pty.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
drivers/char/pty.c +0 -6
@@ -118,12 +118,6 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf,if (tty->stopped)return 0 ; -/* This isn't locked but our 8K is quite sloppy so no -big deal */ - - c =pty_space (to); -if (c > count) - c = count;if (c >0 ) {/* Stuff the data into the input queue of the other end */ c =tty_insert_flip_string (to, buf, c);
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 5 lines · Linus Torvalds
So I'm starting to suspect that the real bug is that we do that '
pty_space()' inpty_write()call at all. The _callers_ should already have done thewrite_room()check, and if somebody doesn't do it, then the tty buffering will eventually do a hard limit at the 65kB allocation mark.
Ok, so the thought was right, but the patch was obviously not even compiled, because the compiler points out that 'c' was not initialized.
I'm sure you already figured the obvious meaning out, but here's a fixed version.
Linus
--- drivers/char/pty.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)
drivers/char/pty.c +1 -9
@@ -109,21 +109,13 @@ static int pty_space(struct tty_struct *to)* the other side of the pty/tty pair. */ -static int pty_write (struct tty_struct *tty,const unsigned char *buf, -int count) +static int pty_write (struct tty_struct *tty,const unsigned char *buf,int c) {struct tty_struct *to = tty->link; -int c;if (tty->stopped)return 0 ; -/* This isn't locked but our 8K is quite sloppy so no -big deal */ - - c =pty_space (to); -if (c > count) - c = count;if (c >0 ) {/* Stuff the data into the input queue of the other end */ c =tty_insert_flip_string (to, buf, c);
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 3 lines · Linus Torvalds
I'm sure you already figured the obvious meaning out, but here's a fixed version.
And here's another patch that may also fix this, simply by virtue of writing the "\r\n" as a single string, rather than as two characters. That way, we should never get into the situation that th '\r' allocates a new buffer (larger than one character), and then the later '\n' writing decides that we've filled up.
Besides, it's a cleanup. An untested one, naturally.
Linus
--- drivers/char/n_tty.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/char/n_tty.c +1 -2
@@ -300,8 +300,7 @@ static int do_output_char(unsigned char c, struct tty_struct *tty, int space)if (space <2 )return -1 ; tty->canon_column = tty->column =0 ; -tty_put_char (tty,'\r' ); -tty_put_char (tty, c); + tty->ops->write (tty,"\r\n" ,2 );return 2 ; } tty->canon_column = tty->column;
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 4 lines · Linus Torvalds
Quoted 1 line · Linus Torvalds
Quoted 8 lines
Quoted 2 lines
I'm sure you already figured the obvious meaning out, but here's a fixed version.
And here's another patch that may also fix this, simply by virtue of writing the "\r\n" as a single string, rather than as two characters. That way, we should never get into the situation that th '\r' allocates a new buffer (larger than one character), and then the later '\n' writing decides that we've filled up.
Thanks, I'm testing this and the pty_write() fix on i686 and ppc64 now.
Sometimes the bug is difficult to trigger, so I may need to do loads of testing with different gcc versions before I dare to say that it's fixed.
/Mikael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 5 lines · Mikael Pettersson
Thanks, I'm testing this and the
pty_write()fix on i686 and ppc64 now.Sometimes the bug is difficult to trigger, so I may need to do loads of testing with different gcc versions before I dare to say that it's fixed.
Ok, I'm going to commit the two patches, because even if there is some other bug hiding too (and it doesn't fix your thing - although I think it will), this is definitely a real fix regardless.
And I want to do a -rc9 and let it get a couple of days of testing, since I got way more pull requests than I hoped for while I was off diving.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 9 lines · Linus Torvalds
Quoted 5 lines · Mikael Pettersson
Thanks, I'm testing this and the
pty_write()fix on i686 and ppc64 now.Sometimes the bug is difficult to trigger, so I may need to do loads of testing with different gcc versions before I dare to say that it's fixed.
Quoted 6 lines
Ok, I'm going to commit the two patches, because even if there is some other bug hiding too (and it doesn't fix your thing - although I think it will), this is definitely a real fix regardless.
And I want to do a -rc9 and let it get a couple of days of testing, since I got way more pull requests than I hoped for while I was off diving.
With these two fixes my i686 box finished all gcc bootstrap/regtest cycles I had scheduled with no signs of pty errors. My ppc64 box isn't done yet, but so far it's not seen any errors either. So I'm reasonably optimistic about these fixes.
/Mikael
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to Linus TorvaldsQuoted 7 lines · Linus Torvalds
Quoted 5 lines · Linus Torvalds
So I'm starting to suspect that the real bug is that we do that '
pty_space()' inpty_write()call at all. The _callers_ should already have done thewrite_room()check, and if somebody doesn't do it, then the tty buffering will eventually do a hard limit at the 65kB allocation mark.
Quoted 5 lines
Ok, so the thought was right, but the patch was obviously not even compiled, because the compiler points out that 'c' was not initialized.
I'm sure you already figured the obvious meaning out, but here's a fixed version.
This is not meaning to object to your patch though, I think we would be good to fix pty_space(), not leaving as wrong. With fix it, I guess we don't get strange behavior in the near of buffer limit.
Also, it seems the non-n_tty path doesn't use tty_write_room() check, and instead it just try to write and check written bytes which returned by tty->ops->write().
So, it will use the 64kb limit at least few paths, and I'm not sure though, non-n_tty path (e.g. ppp) doesn't use tty_write_room() check always. It may not be consistent if we removed pty_space() in pty_write().
So, it may not be issue though, I made this patch to fix pty_space(). What do you think?
Well, anyway, I've tested your patch and this patch fixed the gcc-testsuite on my machine.
Thanks.
Signature · 65 lines
OGAWA Hirofumi <[email protected]> Signed-off-by: OGAWA Hirofumi <[email protected]> --- diff -puN drivers/char/pty.c~tty-debug drivers/char/pty.c --- linux-2.6/drivers/char/pty.c~tty-debug 2009-09-05 20:10:35.000000000 +0900 +++ linux-2.6-hirofumi/drivers/char/pty.c 2009-09-06 01:50:44.000000000 +0900 @@ -91,7 +91,7 @@ static void pty_unthrottle(struct tty_st static int pty_space(struct tty_struct *to) { - int n = 8192 - to->buf.memory_used; + int n = 8192 - tty_buffer_used(to); if (n < 0) return 0; return n; diff -puN drivers/char/tty_buffer.c~tty-debug drivers/char/tty_buffer.c --- linux-2.6/drivers/char/tty_buffer.c~tty-debug 2009-09-05 21:02:48.000000000 +0900 +++ linux-2.6-hirofumi/drivers/char/tty_buffer.c 2009-09-05 21:08:47.000000000 +0900 @@ -231,6 +231,30 @@ int tty_buffer_request_room(struct tty_s EXPORT_SYMBOL_GPL(tty_buffer_request_room); /** + * tty_buffer_used - return used tty buffer size + * @tty: tty structure + * + * Return used tty buffer size. + */ +size_t tty_buffer_used(struct tty_struct *tty) +{ + size_t size; + int left; + unsigned long flags; + + spin_lock_irqsave(&tty->buf.lock, flags); + if (tty->buf.tail) + left = tty->buf.tail->size - tty->buf.tail->used; + else + left = 0; + size = tty->buf.memory_used - left; + spin_unlock_irqrestore(&tty->buf.lock, flags); + + return size; +} +EXPORT_SYMBOL_GPL(tty_buffer_used); + +/** * tty_insert_flip_string - Add characters to the tty buffer * @tty: tty structure * @chars: characters diff -puN include/linux/tty_flip.h~tty-debug include/linux/tty_flip.h --- linux-2.6/include/linux/tty_flip.h~tty-debug 2009-09-05 21:06:25.000000000 +0900 +++ linux-2.6-hirofumi/include/linux/tty_flip.h 2009-09-05 21:06:39.000000000 +0900 @@ -2,6 +2,7 @@ #define _LINUX_TTY_FLIP_H extern int tty_buffer_request_room(struct tty_struct *tty, size_t size); +extern size_t tty_buffer_used(struct tty_struct *tty); extern int tty_insert_flip_string(struct tty_struct *tty, const unsigned char *chars, size_t size); extern int tty_insert_flip_string_flags(struct tty_struct *tty, const unsigned char *chars, const char *flags, size_t size); extern int tty_prepare_flip_string(struct tty_struct *tty, unsigned char **chars, size_t size); _
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 4 lines · OGAWA Hirofumi
This is not meaning to object to your patch though, I think we would be good to fix
pty_space(), not leaving as wrong. With fix it, I guess we don't get strange behavior in the near of buffer limit.
I'd actually rather not make that function any more complicated.
Just make the rules be very simple:
- the pty layer has ~64kB buffering, and if you just blindly do a ->write() op, you can see how many characters you were able to write.
- before doing a ->write() op, you can ask how many characters you are guaranteed to be able to write by doing a "->write_room()" call.
..and then the bug literally was just that "pty_write()" was confused, and thought that it should do that "write_room()" thing, which it really shouldn't ever have done.
So I really think that the true fix is to just remove the code from pty_write(), and not do anything more complicated. I'll also commit the change to write '\r\n' as one single string, because quite frankly, it's just stupid to do it as two characters, but at that point it's just a cleanup.
Quoted 3 lines
Also, it seems the non-n_tty path doesn't use
tty_write_room()check, and instead it just try to write and check written bytes which returned bytty->ops->write().
.. and I think that's fine. I think write_room() should be used sparingly, and only by code that cares about being able to fit at least 'n' characters in the tty buffers. In fact, I think even n_tty would likely in general be better off without it (and just check the return value), but because of the stateful character translation (that doesn't actually keep any state around, it just wants to expand things as it goes along), and because of historical reasons, we'll just keep it using write_room.
Linus
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 20 lines · Linus Torvalds
Quoted 4 lines · OGAWA Hirofumi
This is not meaning to object to your patch though, I think we would be good to fix
pty_space(), not leaving as wrong. With fix it, I guess we don't get strange behavior in the near of buffer limit.I'd actually rather not make that function any more complicated.
Just make the rules be very simple:
- the pty layer has ~64kB buffering, and if you just blindly do a ->write() op, you can see how many characters you were able to write.
- before doing a ->write() op, you can ask how many characters you are guaranteed to be able to write by doing a "->write_room()" call.
..and then the bug literally was just that "
pty_write()" was confused, and thought that it should do that "write_room()" thing, which it really shouldn't ever have done.
Quoted 5 lines
So I really think that the true fix is to just remove the code from
pty_write(), and not do anything more complicated. I'll also commit the change to write '\r\n' as one single string, because quite frankly, it's just stupid to do it as two characters, but at that point it's just a cleanup.
But, current write_room() returns almost all wrong value. For example, if we have the 4kb preallocated buffer in some state and used it, ->memory_used will be 4kb even if we are using only a byte actually.
I thought it's strange/wrong, even if we removed the pty_space() in pty_write().
Quoted 11 lines
Quoted 3 lines
Also, it seems the non-n_tty path doesn't use
tty_write_room()check, and instead it just try to write and check written bytes which returned bytty->ops->write()... and I think that's fine. I think
write_room()should be used sparingly, and only by code that cares about being able to fit at least 'n' characters in the tty buffers. In fact, I think evenn_ttywould likely in general be better off without it (and just check the return value), but because of the stateful character translation (that doesn't actually keep any state around, it just wants to expand things as it goes along), and because of historical reasons, we'll just keep it usingwrite_room.
As a bit long term solution, I agree. Current code seems to have fragile buffer handling about echoes, \n etc. And yes, perhaps, to avoid write_room() is clean way.
But, I felt 64kb (pty_write) vs 8kb (pty_write_room) sounds strange currently.
Thanks.
Signature · 1 line
OGAWA Hirofumi <[email protected]>
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to OGAWA HirofumiQuoted 3 lines
So, it will use the 64kb limit at least few paths, and I'm not sure though, non-n_tty path (e.g. ppp) doesn't use
tty_write_room()check always. It may not be consistent if we removedpty_space()inpty_write().
The correct behaviour for most network protocols to overflow is to drop packets so the behaviour of not checking was intentional.
Alan
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
Quoted 6 lines · Alan Cox
Quoted 3 lines
So, it will use the 64kb limit at least few paths, and I'm not sure though, non-n_tty path (e.g. ppp) doesn't use
tty_write_room()check always. It may not be consistent if we removedpty_space()inpty_write().The correct behaviour for most network protocols to overflow is to drop packets so the behaviour of not checking was intentional.
I see. I meant, ppp doesn't check (64kb) on write, but post-process(?) checks (8kb). If there is this situation, I just worried it becomes the cause of wrong behavior.
Thanks.
Signature · 1 line
OGAWA Hirofumi <[email protected]>
Re: [Bug #14015] pty regressed again, breaking expect and gcc's testsuite
In reply to Linus TorvaldsQuoted 7 lines
After writing the above, the voices in my head started clamoring about this "space allocated" vs "bytes buffered" thing, which I was obviously aware of, but hadn't thought about as an issue.
And you know what? The thing about "space allocated" vs "bytes buffered" is that writing _one_ byte (the '\r') can cause a lot more than one byte to be allocated for a buffer (we do minimum 256-byte buffers)
Doh yes thats an utterly dumb bug on my part - we do have to work on chars.
100% agree with the diagnosis
[Bug #14018] kernel freezes, inotify problem
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14018
Subject : kernel freezes, inotify problem
Submitter : Christoph Thielecke <[email protected]>
Date : 2009-08-19 12:48 (7 days old)
References : http://marc.info/?l=linux-kernel&m=125068616818353&w=4
[Bug #14017] _end symbol missing from Symbol.map
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14017
Subject : _end symbol missing from Symbol.map
Submitter : Hannes Reinecke <[email protected]>
Date : 2009-08-13 6:45 (13 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=091e52c3551d3031343df24b573b770b4c6c72b6
References : http://marc.info/?l=linux-kernel&m=125014649102253&w=4
Patch : http://marc.info/?l=linux-kernel&m=125014649102253&w=4
[Bug #14030] Kernel NULL pointer dereference at 0000000000000008, pty-related
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14030
Subject : Kernel NULL pointer dereference at 0000000000000008, pty-related
Submitter : Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/[email protected]>
Date : 2009-08-20 5:46 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125074724623423&w=4
Re: [Bug #14030] Kernel NULL pointer dereference at 0000000000000008, pty-related
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 7 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14030
Subject : Kernel NULL pointer dereference at 0000000000000008, pty-related
Submitter : Eric W. Biederman <[email protected]>
Date : 2009-08-20 5:46 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125074724623423&w=4Handled-By Linus Torvalds <[email protected]>
This is now committed as 5c58ceff103d8a654f24769bb1baaf84a841b0cc.
Linus
Re: [Bug #14030] Kernel NULL pointer dereference at 0000000000000008, pty-related
Quoted 19 lines · Linus Torvalds
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 7 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14030
Subject : Kernel NULL pointer dereference at 0000000000000008, pty-related
Submitter : Eric W. Biederman <[email protected]>
Date : 2009-08-20 5:46 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125074724623423&w=4Handled-By Linus Torvalds <[email protected]>
Quoted 1 line
This is now committed as
5c58ceff103d8a654f24769bb1baaf84a841b0cc.
Thanks, closed.
Rafael
[Bug #14031] dvb_usb_af9015: Oops on hotplugging
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14031
Subject : dvb_usb_af9015: Oops on hotplugging
Submitter : Stefan Lippers-Hollmann <[email protected]>
Date : 2009-08-05 20:32 (21 days old)
References : http://marc.info/?l=linux-kernel&m=124949716608828&w=4
Re: [Bug #14031] dvb_usb_af9015: Oops on hotplugging
Hi
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14031
Subject :dvb_usb_af9015: Oops on hotplugging
Submitter : Stefan Lippers-Hollmann <[email protected]>
Date : 2009-08-05 20:32 (21 days old)
References : http://marc.info/?l=linux-kernel&m=124949716608828&w=4
This issue does not exist in 2.6.31-rc7(-git2) anymore.
Unfortunately I've been away from my system and with limited testing abilities recently, so I can't pinpoint the actual patch that fixed this (it was not in the first DVB pull request following that report, but maybe in the second or third), but it does work very well again. Thank you.
Regards
Stefan Lippers-Hollmann
usb 1-6: new high speed USB device using ehci_hcd and address 4
usb 1-6: New USB device found, idVendor=0ccd, idProduct=0069
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: Product: Cinergy T USB XE Ver.2
usb 1-6: Manufacturer: TerraTec
usb 1-6: SerialNumber: 10012007
usb 1-6: configuration #1 chosen from 1 choice
dvb-usb: found a 'TerraTec Cinergy T USB XE' in cold state, will try to load a firmware usb 1-6: firmware: requesting dvb-usb-af9015.fw
dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
dvb-usb: found a 'TerraTec Cinergy T USB XE' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (TerraTec Cinergy T USB XE)
af9013: firmware version:4.95.0
DVB: registering adapter 0 frontend 0 (Afatech AF9013 DVB-T)...
mc44s803: successfully identified (ID = 14)
dvb-usb: TerraTec Cinergy T USB XE successfully initialized and connected.
usbcore: registered new interface driver dvb_usb_af9015
Re: [Bug #14031] dvb_usb_af9015: Oops on hotplugging
Quoted 17 lines · Stefan Lippers-Hollmann
Hi
Quoted 8 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Quoted 5 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14031
Subject :dvb_usb_af9015: Oops on hotplugging
Submitter : Stefan Lippers-Hollmann <[email protected]>
Date : 2009-08-05 20:32 (21 days old)
References : http://marc.info/?l=linux-kernel&m=124949716608828&w=4
Quoted 6 lines
This issue does not exist in 2.6.31-rc7(-git2) anymore.
Unfortunately I've been away from my system and with limited testing abilities recently, so I can't pinpoint the actual patch that fixed this (it was not in the first DVB pull request following that report, but maybe in the second or third), but it does work very well again. Thank you.
Thanks, bug closed.
Rafael
[Bug #14057] Strange network timeouts w/ e100
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14057
Subject : Strange network timeouts w/ e100
Submitter : Walt Holman <walt-Wo+ox+avW/[email protected]>
Date : 2009-08-20 0:21 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125072831831443&w=4
[Bug #14058] Oops in fsnotify
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14058
Subject : Oops in fsnotify
Submitter : Grant Wilson <[email protected]>
Date : 2009-08-20 15:48 (6 days old)
References : http://marc.info/?l=linux-kernel&m=125078450923133&w=4
[Bug #14060] oops: sysfs_remove_link and i915
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14060
Subject : oops: sysfs_remove_link and i915
Submitter : Dominik Brodowski <[email protected]>
Date : 2009-08-22 5:48 (4 days old)
References : http://marc.info/?l=linux-kernel&m=125092139113955&w=4
[Bug #14061] Crash due to buggy flat_phys_pkg_id
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14061
Subject : Crash due to buggy flat_phys_pkg_id
Submitter : Ravikiran G Thirumalai <[email protected]>
Date : 2009-08-24 18:26 (2 days old)
References : http://marc.info/?l=linux-kernel&m=125114085701508&w=4
[Bug #14062] Failure to boot as xen guest
In reply to Rafael J. WysockiThis message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14062
Subject : Failure to boot as xen guest
Submitter : Arnd Hannemann <[email protected]>
Date : 2009-08-25 15:48 (1 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83b519e8b9572c319c8e0c615ee5dd7272856090
References : http://marc.info/?l=linux-kernel&m=125121534229538&w=4
Re: [Bug #14062] Failure to boot as xen guest
Quoted 7 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of recent regressions.
The following bug entry is on the current list of known regressions from 2.6.30. Please verify if it still should be listed and let me know (either way).
I think this is fixed by d560bc61.
J
Quoted 12 lines
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14062
Subject : Failure to boot as xen guest
Submitter : Arnd Hannemann <[email protected]>
Date : 2009-08-25 15:48 (1 days old)
First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83b519e8b9572c319c8e0c615ee5dd7272856090
References : http://marc.info/?l=linux-kernel&m=125121534229538&w=4Handled-By Jeremy Fitzhardinge <[email protected]>