STATUS_BUFFER_OVERFLOW Error in ACPI control method ??

Hello All,

Is it possible to get STATUS_BUFFER_OVERFLOW for an ACPI control method which return nothing ?

Let say:-

Method (FOO, 1)
{

Store (2, local0)

} // end method

Thanks
Ravi Rathore

Hmmmm… SOMEhow, I get the idea that there’s more to this question than you’re presenting us here.

How about giving us the rest of the story, Mr. Rathore, so that we all don’t have to guess and we can do a better job of helping you with whatever your actual underlying problem may be.

Peter
OSR

Problem statement :

ACPI object is being called from function driver to set ULONG value via IOCTL_ACPI_EVAL_METHOD along with ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER and output buffer with sizeof(ACPI_EVAL_OUTPUT_BUFFER). Since ACPI object method returns nothing and we have already allocated memory for the output buffer header , then WdfIoTargetSendIoctlSynchronously should be succeeded in first call instead of STATUS_BUFFER_OVERFLOW error.

Do output buffer memory needs to be allocated (i.e. during second call to WdfIoTargetSendIoctlSynchronously with correct buffer size) for any other objects (which I doubt ) along with return object if any ?

Method (FOO, 1)
{
Store (2, local0)

} // end method

Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Monday, January 21, 2013 11:23 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] STATUS_BUFFER_OVERFLOW Error in ACPI control method ??

Hmmmm… SOMEhow, I get the idea that there’s more to this question than you’re presenting us here.

How about giving us the rest of the story, Mr. Rathore, so that we all don’t have to guess and we can do a better job of helping you with whatever your actual underlying problem may be.

Peter
OSR


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Rathore, Ravi wrote:

ACPI object is being called from function driver to set ULONG value via IOCTL_ACPI_EVAL_METHOD along with ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER and output buffer with sizeof(ACPI_EVAL_OUTPUT_BUFFER). Since ACPI object method returns nothing and we have already allocated memory for the output buffer header , then WdfIoTargetSendIoctlSynchronously should be succeeded in first call instead of STATUS_BUFFER_OVERFLOW error.

Do output buffer memory needs to be allocated (i.e. during second call to WdfIoTargetSendIoctlSynchronously with correct buffer size) for any other objects (which I doubt ) along with return object if any ?

Have you tried it? My guess is that no output buffer will be required,
but it would only take you a few minutes to TRY It.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

I’m *still* not sure I understand the question. But, my experience is, even when you do not expect output data, you should allocate space for the output buffer. IIRC, even with zero arguments out you’ll get back the output header.

What I do is allocate a small chunk of memory, say 512 bytes, for the output buffer… even when I’m not expecting any returned data.

Does that help?

Peter
OSR

Sorry for delay…

Actually I was wrong at assumption that if ACPI method (in asl) returns nothing then allocating output buffer to its output buffer header size would be adequate to pass the method-call first time.

I think it must to check for second call - even method returns nothing.

Thanks
Ravi Rathore

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Wednesday, January 23, 2013 10:25 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] STATUS_BUFFER_OVERFLOW Error in ACPI control method ??

I’m *still* not sure I understand the question. But, my experience is, even when you do not expect output data, you should allocate space for the output buffer. IIRC, even with zero arguments out you’ll get back the output header.

What I do is allocate a small chunk of memory, say 512 bytes, for the output buffer… even when I’m not expecting any returned data.

Does that help?

Peter
OSR


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer