Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755432AbXEDQ47 (ORCPT ); Fri, 4 May 2007 12:56:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755427AbXEDQ47 (ORCPT ); Fri, 4 May 2007 12:56:59 -0400 Received: from an-out-0708.google.com ([209.85.132.249]:46141 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755419AbXEDQ45 (ORCPT ); Fri, 4 May 2007 12:56:57 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nQ22w9hBBz8edBtMiQ7XUqe08jKLjqrkaKbu4cFQo4l9QYkDcU7lcHQjIPW7N4vZ85uhPWQD8W5kj4yXpPmYROlR5bgqJsnJehXHV+RBdwrG2u8YMIcfoqHF3m9YcMIiIqfG9OR83h5fOycoDbFkfPgYSGCi93ndF7l9TqGfQug= Message-ID: <5486cca80705040956g47f634ddp80d67038e8e3305a@mail.gmail.com> Date: Fri, 4 May 2007 18:56:53 +0200 From: "Antonino Ingargiola" To: "Paul Fulghum" Subject: Re: [SOLVED] Serial buffer corruption [was Re: FTDI usb-serial possible bug] Cc: "Alan Cox" , linux-usb-users@lists.sourceforge.net, linux-kernel@vger.kernel.org In-Reply-To: <5486cca80705040904v786f13dh5614174fcc51c202@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_52488_18375891.1178297813915" References: <5486cca80705040138r6ac16e9bp77e4f6217720ea8@mail.gmail.com> <200705041049.20989.oliver@neukum.org> <5486cca80705040229g53933671m658bd028cadca155@mail.gmail.com> <5486cca80705040233y70915a27yf7cbbc08a617e3ba@mail.gmail.com> <463B46F4.6090906@microgate.com> <463B4988.9090005@microgate.com> <1178290160.3913.2.camel@amdx2.microgate.com> <5486cca80705040904v786f13dh5614174fcc51c202@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8456 Lines: 144 ------=_Part_52488_18375891.1178297813915 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/4/07, Antonino Ingargiola wrote: > On 5/4/07, Paul Fulghum wrote: > > Here is a patch against 2.6.21 which flushes the tty flip buffer > > on ioctl(TCFLSH) for input. > > > > --- a/drivers/char/tty_io.c 2007-04-25 22:08:32.000000000 -0500 > > +++ b/drivers/char/tty_io.c 2007-05-04 09:30:01.000000000 -0500 > > > Thanks! I've applied the patch and I'm building the kernel. I'll > report the result. The system blocks during booting. I can unblock it with SysReq+K but then I'm unable to log into X. The boot messages seems ok (full gzipped boot log attached): Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled kernel: serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A kernel: serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A kernel: 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A kernel: 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A and when I pres the emergency keys: kernel: EXT3-fs: mounted filesystem with ordered data mode. kernel: eth0: link up, 10Mbps, half-duplex, lpa 0x0000 kernel: NET: Registered protocol family 10 kernel: SysRq : SAK kernel: SAK: killed process 1511 (vt-is-UTF8): process_session(p)==tty->session kernel: SAK: killed process 1508 (unicode_start): process_session(p)==tty->session kernel: SAK: killed process 1409 (sh): process_session(p)==tty->session kernel: SAK: killed process 301 (rc): process_session(p)==tty->session kernel: SAK: killed process 298 (init): process_session(p)==tty->session kernel: SAK: killed process 298 (init): process_session(p)==tty->session kernel: SAK: killed process 301 (rc): process_session(p)==tty->session kernel: SAK: killed process 1409 (sh): process_session(p)==tty->session kernel: SAK: killed process 1508 (unicode_start): process_session(p)==tty->session kernel: SAK: killed process 1511 (vt-is-UTF8): process_session(p)==tty->session kernel: ACPI: Processor [CPU0] (supports 2 throttling states) kernel: [drm] Initialized drm 1.1.0 20060810 kernel: [drm] Initialized radeon 1.25.0 20060524 on minor 0 kernel: input: Power Button (FF) as /class/input/input4 kernel: ACPI: Power Button (FF) [PWRF] kernel: input: Power Button (CM) as /class/input/input5 I'll try if I can make some serial test nevertheless from the console. Regards, ~ Antonio ------=_Part_52488_18375891.1178297813915 Content-Type: application/x-gzip; name=boot.log.gz Content-Transfer-Encoding: base64 X-Attachment-Id: f_f1aw2h7d Content-Disposition: attachment; filename="boot.log.gz" H4sICFplO0YAA2Jvb3QubG9nAOVc+3PbyA3+/f4KtNfOyVeJIqk3W99UD/us2kp0kp2k48lkVuTS YsVXuKQf+esLLEn5JYeUbF1vppmJYlPcD1gsgP2AJTNhdwBN0LpGo2U02mAnruf4HFY88rlrwMoN rizQlKai/ah1q4C/ggiSyORwCPUwCsz6yhN4LWZRzC3lh0kBoKiCyUJhgNroNuyebYOpmekPavYn /aGpq0+uPPyhUM7Yj7kLHjOXdNVccnMFLMLfYm7GScRBJGEYlNN5E1bEabTjXwH32cLlFgQ+DKcX P6rFeHibAf3JCPrx0g38SuwdAJmSCxFEaEoehgRcYpZD0oXu/Wnpxj+B44s4SszYCXxFUeD9abEu /eF0jDgBWiTi147AoaCrakfV9HbJwYLH0hBHZ8MZxAGoOB4qdhR4oHJdPSiEeXd0bsCMXzk49Qgt ibaIAzNwwWae496BVlaTRSIgvgs5hKaD08kBC0dPh2P5AYPx+/kDOyiaissbR3fAYlBv7UW7p2IM MBGTqEOtHPCFIOuYgW87V0nEaHVSLYvHzzPTJiFFmG+xyJJ6RjwNQlHSMOTBURhx/Mz9teTIShYn AuYqzDWYN2HeKl7SdHA68+l4CDY6tkNKREkYQxQkNK2SKDThWRDEMIgc64rDJV5QP0OF8oChlvAv AviaONHKkE6B5m/j0Fpb7WD2cZnjoc8t7uA67upmu9uGk481L/B3gG0RLH5shp1PBlvMeLy21pnj r+Dy7N1pHyc9nv0mQIMGgrSgDR34GX1U00DTQUPc0kvzgojB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WprWwcKnT/+4ASZpSeK+HCYdd8S9L5lsuNaSyC5BduH9oDHkQMkb0wMCrI11bsriOIGGd WKFsuIhkUQsZUku6oliLRChXPFYizsTTFPiHUaSl/g8UWQYi/uIzj/8BdPEd8cUKPOb8EQxDysj3 OR936DqG2txXWvo+9uvS0quwC9JSx2iWLiw237uR2vSQ2nwKoqstSc3vImFvW9P3sV/rA6/ALvaB N9+avoO55dbUNdTGGonfOlIflE0PkjD3ydP5PUPX1zeLO/HoP/ahlqyk9MoPP/wXUAMKXRNIAAA= ------=_Part_52488_18375891.1178297813915-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/