Re: atkbc not loaded with ACPI enabled in 9.0

2012-03-30 Thread John Baldwin
On Thursday, January 12, 2012 4:08:09 pm John Baldwin wrote:
> On Tuesday, January 03, 2012 7:31:59 pm Adrian Connolly wrote:
> > On 2012/01/04, at 0:37, John Baldwin  wrote:
> > 
> > 
> > > On Monday, January 02, 2012 11:39:10 pm aconnoll...@yahoo.co.jp wrote:
> > >> I am running 9.0-RC3 on an Acer Aspire One D255E netbook. I have most 
of 
> the 
> > > functionality I want with one major exception, when I enable ACPI my 
> > > integrated keyboard drivers aren't loaded. Without ACPI I can use my 
> keyboard 
> > > as atkbdc and atkbd get loaded, (not psm though), but I have problems 
with 
> > > shutdown, time settings, power settings and usb controllers.
> > >> I have tried various ways of tackling this including:
> > >> 1. including "nooptions NEW_PCIB" in kernel configuration, rebuilding 
and 
> > > installing >> no effect
> > >> 2a. including "debug.acpi.disabled="pci" " >> can't mount file 
system2b. 
> > > including "debug.acpi.disabled="bus" " >> can't mount file system 2c. 
> > > including "debug.acpi.disabled="children" " >> can't mount file 
system2d. 
> > > including "debug.acpi.disabled="hostres" "
> >  no effect
> > >> 3. making the edit in r228961, rebuilding the kernel and installing >> 
no 
> > > effect
> > >> I have the latest bios (v3.x), but it features very few changeable 
> options.
> > >> Here's the output of my dmesg -aHere's the output of my devinfo -
vrHere's 
> > > the output of my devinfo -ur
> > >> Any suggestions would be greatly appreciated.
> > >> Best regards,Adrian Connolly
> > > 
> > > Hmm, none of your attachments made it to the list.  Can you post them at 
a 
> > > URL?
> > > 
> > > -- 
> > > John Baldwin
> > > ___
> > > freebsd-current@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > > To unsubscribe, send any mail to "freebsd-current-
unsubscr...@freebsd.org"
> > My apologies, here are the URLs of the output,
> > 
> > dmesg -a http://pastebin.com/rJhddt4A
> > 
> > devinfo -vr http://pastebin.com/MYd8wS7F
> > 
> > devinfo -ur http://pastebin.com/iBr62epv
> 
> Please try this patch:
> 
> Index: sys/dev/atkbdc/atkbdc_isa.c
> ===
> --- atkbdc_isa.c  (revision 230009)
> +++ atkbdc_isa.c  (working copy)
> @@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
>  
>  static struct isa_pnp_id atkbdc_ids[] = {
>   { 0x0303d041, "Keyboard controller (i8042)" },  /* PNP0303 */
> + { 0x0320d041, "Keyboard controller (i8042)" },  /* PNP0320 */
>   { 0 }
>  };

So this patch was incorrect, but jkim@ committed the proper version of
this to HEAD recently.  Can you verify that it fixes your machine?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-27 Thread John Baldwin
On Saturday, January 21, 2012 12:11:54 am aconnoll...@yahoo.co.jp wrote:
> 
> --- On Wed, 2012/1/18, John Baldwin  wrote:
> 
> On Friday, January 13, 2012 10:27:13 pm aconnoll...@yahoo.co.jp wrote:
> > Please try this patch:
> > 
> > Index: sys/dev/atkbdc/atkbdc_isa.c
> > ===
> > --- atkbdc_isa.c(revision 230009)
> > +++ atkbdc_isa.c(working copy)
> > @@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
> >  
> >  static struct isa_pnp_id atkbdc_ids[] = {
> >  { 0x0303d041, "Keyboard controller (i8042)" },/* PNP0303 */
> > +{ 0x0320d041, "Keyboard controller (i8042)" },/* PNP0320 */
> >  { 0 }
> >  };
> >  
> > 
> > -- 
> > John Baldwin
> > ___
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org
> > John,
> > Thanks for your help, but that patch doesn't appear to address the problem. 
> I edited the atkbdc_isa.c file as you instructed, rebuilt and installed my 
> kernel, but my integrated keyboard remains unresponsive with ACPI enabled.
> > Here's the new output of dmesg -a http://pastebin.com/h6ahmD2ddevinfo -ur 
> http://pastebin.com/sdNcNEJUdevinfo -vr http://pastebin.com/P2yqQBLY
> > Perhaps I was supposed to remove PNP0303 support?
> 
> No, the goal was to get atkbdc to try to attach to PNP0320 devices since 
> those 
> have your keyboard I/O ports.  Can you add some printfs to atkbdc_isa_probe() 
> to see how many times it is getting past the ID check, and how far along it 
> gets in each cases (i.e. which failure case causes the probe routine to 
> return 
> an error)?
> 
> -- 
> John Baldwin
> 
> 
> John,
> 
> I added some printfs to the isa_probe() function to see how far it was 
> getting. The function is called many times as you can see in the dmesg, 
but mostly it exits at the PnP ID check with ENXIO.
> 
> At one point it gets further, but still exits with ENXIO when port0 is found 
> to be NULL.
> 
> Any suggestions for further investigation?
> 
> edited function http://pastebin.com/uUsVLiz2
> dmesg -a http://pastebin.com/kDtC9gvM

Hmm, so this looks like it is only getting past the ID check once and is not
probing the 0320 device at all.  Please try this patch with some different
debugging printfs and let me know what you get as output during boot:

Index: atkbdc_isa.c
===
--- atkbdc_isa.c(revision 230585)
+++ atkbdc_isa.c(working copy)
@@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
 
 static struct isa_pnp_id atkbdc_ids[] = {
{ 0x0303d041, "Keyboard controller (i8042)" },  /* PNP0303 */
+   { 0x0320d041, "Keyboard controller (i8042)" },  /* PNP0320 */
{ 0 }
 };
 
@@ -111,6 +112,9 @@ atkbdc_isa_probe(device_t dev)
return ENXIO;
 
device_set_desc(dev, "Keyboard controller (i8042)");
+   if (isa_get_logicalid(dev) != 0)
+   device_printf(dev, "has PNP ID %s\n",
+   pnp_eisaformat(isa_get_logicalid(dev)));
 
/*
 * Adjust I/O port resources.
@@ -125,17 +129,25 @@ atkbdc_isa_probe(device_t dev)
 */
device_quiet(dev);
rid = 0;
-   if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0)
+   if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) {
+   device_printf(dev, "no I/O port resources\n");
return ENXIO;
+   }
+   device_printf(dev, "initial I/O port 0 is %x-%x\n", start,
+   start + count - 1);
if (start == IO_KBD + KBD_STATUS_PORT) {
start = IO_KBD;
count++;
}
-   if (count > 1)  /* adjust the count and/or start port */
+   if (count > 1)  /* adjust the count and/or start port */ {
+   device_printf(dev, "setting rid 0 to %x-%x\n", start, start);
bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1);
+   }
port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
-   if (port0 == NULL)
+   if (port0 == NULL) {
+   device_printf(dev, "Failed to allocate I/O port rid 0\n");
return ENXIO;
+   }
rid = 1;
if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0)
bus_set_resource(dev, SYS_RES_IOPORT, 1,


-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-20 Thread aconnolly08


--- On Wed, 2012/1/18, John Baldwin  wrote:

On Friday, January 13, 2012 10:27:13 pm aconnoll...@yahoo.co.jp wrote:
> Please try this patch:
> 
> Index: sys/dev/atkbdc/atkbdc_isa.c
> ===
> --- atkbdc_isa.c(revision 230009)
> +++ atkbdc_isa.c(working copy)
> @@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
>  
>  static struct isa_pnp_id atkbdc_ids[] = {
>  { 0x0303d041, "Keyboard controller (i8042)" },/* PNP0303 */
> +{ 0x0320d041, "Keyboard controller (i8042)" },/* PNP0320 */
>  { 0 }
>  };
>  
> 
> -- 
> John Baldwin
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org
> John,
> Thanks for your help, but that patch doesn't appear to address the problem. 
I edited the atkbdc_isa.c file as you instructed, rebuilt and installed my 
kernel, but my integrated keyboard remains unresponsive with ACPI enabled.
> Here's the new output of dmesg -a http://pastebin.com/h6ahmD2ddevinfo -ur 
http://pastebin.com/sdNcNEJUdevinfo -vr http://pastebin.com/P2yqQBLY
> Perhaps I was supposed to remove PNP0303 support?

No, the goal was to get atkbdc to try to attach to PNP0320 devices since those 
have your keyboard I/O ports.  Can you add some printfs to atkbdc_isa_probe() 
to see how many times it is getting past the ID check, and how far along it 
gets in each cases (i.e. which failure case causes the probe routine to return 
an error)?

-- 
John Baldwin


John,

I added some printfs to the isa_probe() function to see how far it was getting. 
The function is called many times as you can see in the dmesg, but mostly it 
exits at the PnP ID check with ENXIO.

At one point it gets further, but still exits with ENXIO when port0 is found to 
be NULL.

Any suggestions for further investigation?

edited function http://pastebin.com/uUsVLiz2
dmesg -a http://pastebin.com/kDtC9gvM
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-17 Thread John Baldwin
On Friday, January 13, 2012 10:27:13 pm aconnoll...@yahoo.co.jp wrote:
> Please try this patch:
> 
> Index: sys/dev/atkbdc/atkbdc_isa.c
> ===
> --- atkbdc_isa.c(revision 230009)
> +++ atkbdc_isa.c(working copy)
> @@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
>  
>  static struct isa_pnp_id atkbdc_ids[] = {
>  { 0x0303d041, "Keyboard controller (i8042)" },/* PNP0303 */
> +{ 0x0320d041, "Keyboard controller (i8042)" },/* PNP0320 */
>  { 0 }
>  };
>  
> 
> -- 
> John Baldwin
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org
> John,
> Thanks for your help, but that patch doesn't appear to address the problem. 
I edited the atkbdc_isa.c file as you instructed, rebuilt and installed my 
kernel, but my integrated keyboard remains unresponsive with ACPI enabled.
> Here's the new output of dmesg -a http://pastebin.com/h6ahmD2ddevinfo -ur 
http://pastebin.com/sdNcNEJUdevinfo -vr http://pastebin.com/P2yqQBLY
> Perhaps I was supposed to remove PNP0303 support?

No, the goal was to get atkbdc to try to attach to PNP0320 devices since those 
have your keyboard I/O ports.  Can you add some printfs to atkbdc_isa_probe() 
to see how many times it is getting past the ID check, and how far along it 
gets in each cases (i.e. which failure case causes the probe routine to return 
an error)?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-13 Thread aconnolly08
--- On Fri, 2012/1/13, John Baldwin  wrote:

On Tuesday, January 03, 2012 7:31:59 pm Adrian Connolly wrote:
> On 2012/01/04, at 0:37, John Baldwin  wrote:
> 
> 
> > On Monday, January 02, 2012 11:39:10 pm aconnoll...@yahoo.co.jp wrote:
> >> I am running 9.0-RC3 on an Acer Aspire One D255E netbook. I have most of 
the 
> > functionality I want with one major exception, when I enable ACPI my 
> > integrated keyboard drivers aren't loaded. Without ACPI I can use my 
keyboard 
> > as atkbdc and atkbd get loaded, (not psm though), but I have problems with 
> > shutdown, time settings, power settings and usb controllers.
> >> I have tried various ways of tackling this including:
> >> 1. including "nooptions NEW_PCIB" in kernel configuration, rebuilding and 
> > installing >> no effect
> >> 2a. including "debug.acpi.disabled="pci" " >> can't mount file system2b. 
> > including "debug.acpi.disabled="bus" " >> can't mount file system 2c. 
> > including "debug.acpi.disabled="children" " >> can't mount file system2d. 
> > including "debug.acpi.disabled="hostres" "
>  no effect
> >> 3. making the edit in r228961, rebuilding the kernel and installing >> no 
> > effect
> >> I have the latest bios (v3.x), but it features very few changeable 
options.
> >> Here's the output of my dmesg -aHere's the output of my devinfo -vrHere's 
> > the output of my devinfo -ur
> >> Any suggestions would be greatly appreciated.
> >> Best regards,Adrian Connolly
> > 
> > Hmm, none of your attachments made it to the list.  Can you post them at a 
> > URL?
> > 
> > -- 
> > John Baldwin
> > ___
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> My apologies, here are the URLs of the output,
> 
> dmesg -a http://pastebin.com/rJhddt4A
> 
> devinfo -vr http://pastebin.com/MYd8wS7F
> 
> devinfo -ur http://pastebin.com/iBr62epv

Please try this patch:

Index: sys/dev/atkbdc/atkbdc_isa.c
===
--- atkbdc_isa.c(revision 230009)
+++ atkbdc_isa.c(working copy)
@@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
 
 static struct isa_pnp_id atkbdc_ids[] = {
 { 0x0303d041, "Keyboard controller (i8042)" },/* PNP0303 */
+{ 0x0320d041, "Keyboard controller (i8042)" },/* PNP0320 */
 { 0 }
 };
 

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org
John,
Thanks for your help, but that patch doesn't appear to address the problem. I 
edited the atkbdc_isa.c file as you instructed, rebuilt and installed my 
kernel, but my integrated keyboard remains unresponsive with ACPI enabled.
Here's the new output of dmesg -a http://pastebin.com/h6ahmD2ddevinfo -ur 
http://pastebin.com/sdNcNEJUdevinfo -vr http://pastebin.com/P2yqQBLY
Perhaps I was supposed to remove PNP0303 support?
Regards,Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-12 Thread John Baldwin
On Tuesday, January 03, 2012 7:31:59 pm Adrian Connolly wrote:
> On 2012/01/04, at 0:37, John Baldwin  wrote:
> 
> 
> > On Monday, January 02, 2012 11:39:10 pm aconnoll...@yahoo.co.jp wrote:
> >> I am running 9.0-RC3 on an Acer Aspire One D255E netbook. I have most of 
the 
> > functionality I want with one major exception, when I enable ACPI my 
> > integrated keyboard drivers aren't loaded. Without ACPI I can use my 
keyboard 
> > as atkbdc and atkbd get loaded, (not psm though), but I have problems with 
> > shutdown, time settings, power settings and usb controllers.
> >> I have tried various ways of tackling this including:
> >> 1. including "nooptions NEW_PCIB" in kernel configuration, rebuilding and 
> > installing >> no effect
> >> 2a. including "debug.acpi.disabled="pci" " >> can't mount file system2b. 
> > including "debug.acpi.disabled="bus" " >> can't mount file system 2c. 
> > including "debug.acpi.disabled="children" " >> can't mount file system2d. 
> > including "debug.acpi.disabled="hostres" "
>  no effect
> >> 3. making the edit in r228961, rebuilding the kernel and installing >> no 
> > effect
> >> I have the latest bios (v3.x), but it features very few changeable 
options.
> >> Here's the output of my dmesg -aHere's the output of my devinfo -vrHere's 
> > the output of my devinfo -ur
> >> Any suggestions would be greatly appreciated.
> >> Best regards,Adrian Connolly
> > 
> > Hmm, none of your attachments made it to the list.  Can you post them at a 
> > URL?
> > 
> > -- 
> > John Baldwin
> > ___
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> My apologies, here are the URLs of the output,
> 
> dmesg -a http://pastebin.com/rJhddt4A
> 
> devinfo -vr http://pastebin.com/MYd8wS7F
> 
> devinfo -ur http://pastebin.com/iBr62epv

Please try this patch:

Index: sys/dev/atkbdc/atkbdc_isa.c
===
--- atkbdc_isa.c(revision 230009)
+++ atkbdc_isa.c(working copy)
@@ -87,6 +87,7 @@ static driver_t atkbdc_isa_driver = {
 
 static struct isa_pnp_id atkbdc_ids[] = {
{ 0x0303d041, "Keyboard controller (i8042)" },  /* PNP0303 */
+   { 0x0320d041, "Keyboard controller (i8042)" },  /* PNP0320 */
{ 0 }
 };
 

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-03 Thread Adrian Connolly
On 2012/01/04, at 0:37, John Baldwin  wrote:


> On Monday, January 02, 2012 11:39:10 pm aconnoll...@yahoo.co.jp wrote:
>> I am running 9.0-RC3 on an Acer Aspire One D255E netbook. I have most of the 
> functionality I want with one major exception, when I enable ACPI my 
> integrated keyboard drivers aren't loaded. Without ACPI I can use my keyboard 
> as atkbdc and atkbd get loaded, (not psm though), but I have problems with 
> shutdown, time settings, power settings and usb controllers.
>> I have tried various ways of tackling this including:
>> 1. including "nooptions NEW_PCIB" in kernel configuration, rebuilding and 
> installing >> no effect
>> 2a. including "debug.acpi.disabled="pci" " >> can't mount file system2b. 
> including "debug.acpi.disabled="bus" " >> can't mount file system 2c. 
> including "debug.acpi.disabled="children" " >> can't mount file system2d. 
> including "debug.acpi.disabled="hostres" "
 no effect
>> 3. making the edit in r228961, rebuilding the kernel and installing >> no 
> effect
>> I have the latest bios (v3.x), but it features very few changeable options.
>> Here's the output of my dmesg -aHere's the output of my devinfo -vrHere's 
> the output of my devinfo -ur
>> Any suggestions would be greatly appreciated.
>> Best regards,Adrian Connolly
> 
> Hmm, none of your attachments made it to the list.  Can you post them at a 
> URL?
> 
> -- 
> John Baldwin
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
My apologies, here are the URLs of the output,

dmesg -a http://pastebin.com/rJhddt4A

devinfo -vr http://pastebin.com/MYd8wS7F

devinfo -ur http://pastebin.com/iBr62epv



Thanks again.

Adrian___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: atkbc not loaded with ACPI enabled in 9.0

2012-01-03 Thread John Baldwin
On Monday, January 02, 2012 11:39:10 pm aconnoll...@yahoo.co.jp wrote:
> I am running 9.0-RC3 on an Acer Aspire One D255E netbook. I have most of the 
functionality I want with one major exception, when I enable ACPI my 
integrated keyboard drivers aren't loaded. Without ACPI I can use my keyboard 
as atkbdc and atkbd get loaded, (not psm though), but I have problems with 
shutdown, time settings, power settings and usb controllers.
> I have tried various ways of tackling this including:
> 1. including "nooptions NEW_PCIB" in kernel configuration, rebuilding and 
installing >> no effect
> 2a. including "debug.acpi.disabled="pci" " >> can't mount file system2b. 
including "debug.acpi.disabled="bus" " >> can't mount file system 2c. 
including "debug.acpi.disabled="children" " >> can't mount file system2d. 
including "debug.acpi.disabled="hostres" "
>  >> no effect
> 3. making the edit in r228961, rebuilding the kernel and installing >> no 
effect
> I have the latest bios (v3.x), but it features very few changeable options.
> Here's the output of my dmesg -aHere's the output of my devinfo -vrHere's 
the output of my devinfo -ur
> Any suggestions would be greatly appreciated.
> Best regards,Adrian Connolly

Hmm, none of your attachments made it to the list.  Can you post them at a 
URL?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"