mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: [LinuxBIOS] [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support.
@ 2006-12-09  3:16 Lu, Yinghai
  2006-12-09 10:54 ` Peter Stuge
  0 siblings, 1 reply; 18+ messages in thread
From: Lu, Yinghai @ 2006-12-09  3:16 UTC (permalink / raw)
  To: ebiederm
  Cc: Greg KH, Peter Stuge, linux-usb-devel, Stefan Reinauer,
	linux-kernel, linuxbios, Andi Kleen, David Brownell

-----Original Message-----
From: ebiederm@xmission.com [mailto:ebiederm@xmission.com] 
Sent: Thursday, December 07, 2006 11:42 PM
>> With Eric code in LinuxBIOS, it will report "No device found in debug
>> port"
>Hmm.  At least this is partial progress :)

It works in LinuxBIOS now. It will loop all connected port and find
debug device.
Will check in the code together with MCP55.

YH



^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: [LinuxBIOS] [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support.
@ 2006-12-08  3:48 Lu, Yinghai
  2006-12-08  7:14 ` Greg KH
  2006-12-08  7:42 ` Eric W. Biederman
  0 siblings, 2 replies; 18+ messages in thread
From: Lu, Yinghai @ 2006-12-08  3:48 UTC (permalink / raw)
  To: Greg KH, ebiederm
  Cc: Peter Stuge, linux-usb-devel, Stefan Reinauer, linux-kernel,
	linuxbios, Andi Kleen, David Brownell

-----Original Message-----
From: linuxbios-bounces@linuxbios.org
[mailto:linuxbios-bounces@linuxbios.org] On Behalf Of
ebiederm@xmission.com


>Ok due to popular demands here is the slightly fixed patch that works
>on both i386 and x86_64.  For the i386 version you must not have
>HIGHMEM64G enabled. 

>I just rolled it all into one patch as I'm to lazy to transmit all
>3 of them.


I got

Firmware type: LinuxBIOS
Linux version 2.6.19-smp-gc9976797-dirty (root@lbsrv) (gcc version
4.0.2) #196 6
Command line: earlyprintk=ttyS0,115200 apic=debug pci=noacpi,routeirq
snd-hda-i
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 0000000000001000 (reserved)
 BIOS-e820: 0000000000001000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000c0000 - 00000000000f0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000c0000000 (usable)
 BIOS-e820: 0000000100000000 - 0000000240000000 (usable)
dbgp_num: 0
Found EHCI debug port
bar: 10 offset: 098
bar: 10 offset: 098
dbgp pre-set_fixmap_nocache
PANIC: early exception rip ffffffff809c24b4 error 0 cr2 ffff810000203ff8

Call Trace:
 [<ffffffff809c24b4>] __set_fixmap+0x84/0x202
 [<ffffffff809c05bb>] early_dbgp_init+0x259/0x55c
 [<ffffffff8022d958>] __call_console_drivers+0x64/0x72
 [<ffffffff809b242b>] do_early_param+0x0/0x57
 [<ffffffff809c0a20>] setup_early_printk+0x162/0x17e
 [<ffffffff809b2459>] do_early_param+0x2e/0x57
 [<ffffffff8023d051>] parse_args+0x159/0x1f3
 [<ffffffff809b24c2>] parse_early_param+0x40/0x4c
 [<ffffffff809b88ca>] setup_arch+0x1c1/0x636
 [<ffffffff809b2534>] start_kernel+0x55/0x208
 [<ffffffff809b2173>] _sinittext+0x173/0x177

RIP __set_fixmap+0x84/0x202

With Greg's USB Debug, host and target can talk.
target with console=ttyUSB0,115200n8
host with cat /dev/ttyUSB0
But if use minicom in host, it will not show '\r', I guess the usb debug
cable eat return char. Greg, Can you add that back in usb_debug by
replacing '\n' with '\r', '\n'?

With Eric code in LinuxBIOS, it will report "No device found in debug
port"

YH





^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: [LinuxBIOS] [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support.
@ 2006-12-07 22:06 Lu, Yinghai
  0 siblings, 0 replies; 18+ messages in thread
From: Lu, Yinghai @ 2006-12-07 22:06 UTC (permalink / raw)
  To: Peter Stuge, linuxbios
  Cc: David Brownell, linux-kernel, Greg KH, Andi Kleen, linux-usb-devel

Two side are identical if two side are connected.

YH



^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support.
@ 2006-12-06 21:08 Lu, Yinghai
  2006-12-07  9:51 ` [LinuxBIOS] " Peter Stuge
  0 siblings, 1 reply; 18+ messages in thread
From: Lu, Yinghai @ 2006-12-06 21:08 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Eric W. Biederman, David Brownell, linux-usb-devel, Peter Stuge,
	Stefan Reinauer, Greg KH, linux-kernel, linuxbios

-----Original Message-----
From: Andi Kleen [mailto:ak@suse.de] 
Sent: Wednesday, December 06, 2006 12:59 PM

>I haven't looked how the other usb_debug works -- if it's polled
>too then it wouldn't have much advantage.

Need to verify if the two sides of debug cable are identical. 

>And it would be good if the late usb_debug still wouldn't rely
>on interrupts.

Yes, esp. when usb can not get irq assigned correctly.

YH



^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: [LinuxBIOS] [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support.
@ 2006-12-06  0:00 Lu, Yinghai
  0 siblings, 0 replies; 18+ messages in thread
From: Lu, Yinghai @ 2006-12-06  0:00 UTC (permalink / raw)
  To: ebiederm
  Cc: David Brownell, Peter Stuge, linux-usb-devel, Stefan Reinauer,
	Greg KH, linux-kernel, linuxbios, Andi Kleen



-----Original Message-----
From: ebiederm@xmission.com [mailto:ebiederm@xmission.com] 
Sent: Tuesday, December 05, 2006 3:50 PM


>If you will not reps is negative.  Roughly it is a loop
>that will timeout eventually if a usb debug cable is not present.
>Putting some deliberate delays in there so I could be certain
>of timing out after a second or two would probably be better, but
>I don't have anything that resembles a good timer at that point.

You have dbgp_mdelay in your code.

YH



^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: [LinuxBIOS] [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support.
@ 2006-12-05 23:29 Lu, Yinghai
  2006-12-05 23:50 ` Eric W. Biederman
  0 siblings, 1 reply; 18+ messages in thread
From: Lu, Yinghai @ 2006-12-05 23:29 UTC (permalink / raw)
  To: ebiederm, David Brownell
  Cc: Peter Stuge, linux-usb-devel, Stefan Reinauer, Greg KH,
	linux-kernel, linuxbios, Andi Kleen



-----Original Message-----
From: linuxbios-bounces@linuxbios.org
[mailto:linuxbios-bounces@linuxbios.org] On Behalf Of
ebiederm@xmission.com
Sent: Tuesday, December 05, 2006 3:01 AM

>+static int ehci_wait_for_port(int port)
>+{
>+	unsigned status;
>+	int ret, reps;
>+	for (reps = 0; reps >= 0; reps++) {
>+		status = readl(&ehci_regs->status);
>+		if (status & STS_PCD) {
>+			ret = ehci_reset_port(port);
>+			if (ret == 0)
>+				return 0;
>+		}
>+	}
>+	return -ENOTCONN;
>+}
>+

What do you mean by
+	for (reps = 0; reps >= 0; reps++) {
?

YH




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2006-12-13 10:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-09  3:16 [LinuxBIOS] [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support Lu, Yinghai
2006-12-09 10:54 ` Peter Stuge
  -- strict thread matches above, loose matches on Subject: below --
2006-12-08  3:48 Lu, Yinghai
2006-12-08  7:14 ` Greg KH
2006-12-08  8:52   ` Yinghai Lu
2006-12-08  7:42 ` Eric W. Biederman
2006-12-08  8:53   ` Yinghai Lu
2006-12-08  9:07     ` Eric W. Biederman
2006-12-13  7:00       ` Yinghai Lu
2006-12-13  7:29         ` Eric W. Biederman
2006-12-13 10:09           ` Yinghai Lu
2006-12-13 10:41             ` Yinghai Lu
2006-12-07 22:06 Lu, Yinghai
2006-12-06 21:08 Lu, Yinghai
2006-12-07  9:51 ` [LinuxBIOS] " Peter Stuge
2006-12-06  0:00 Lu, Yinghai
2006-12-05 23:29 Lu, Yinghai
2006-12-05 23:50 ` Eric W. Biederman
2006-12-06 15:31   ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®