[PATCH] drm/nouveau/acpi: de-dup use of DSM methods

2013-08-02 Thread Dave Airlie
On Fri, Aug 2, 2013 at 12:41 AM, Peter Wu wrote: > Observe that nouveau_optimus_dsm and nouveau_dsm are equal except for > the parameters handling (UUID, revision ID and function arguments). The > function arguments are passed as Buffer in the "optimus dsm" and Integer > in "nvidia dsm". As buffer

[PATCH] drm/nouveau/acpi: de-dup use of DSM methods

2013-08-02 Thread Peter Wu
On Friday 02 August 2013 15:58:38 Dave Airlie wrote: > On Fri, Aug 2, 2013 at 12:41 AM, Peter Wu wrote: > > Observe that nouveau_optimus_dsm and nouveau_dsm are equal except for > > the parameters handling (UUID, revision ID and function arguments). The > > function arguments are passed as Buffer

Re: [PATCH] drm/nouveau/acpi: de-dup use of DSM methods

2013-08-02 Thread Peter Wu
On Friday 02 August 2013 15:58:38 Dave Airlie wrote: > On Fri, Aug 2, 2013 at 12:41 AM, Peter Wu wrote: > > Observe that nouveau_optimus_dsm and nouveau_dsm are equal except for > > the parameters handling (UUID, revision ID and function arguments). The > > function arguments are passed as Buffer

Re: [PATCH] drm/nouveau/acpi: de-dup use of DSM methods

2013-08-01 Thread Dave Airlie
On Fri, Aug 2, 2013 at 12:41 AM, Peter Wu wrote: > Observe that nouveau_optimus_dsm and nouveau_dsm are equal except for > the parameters handling (UUID, revision ID and function arguments). The > function arguments are passed as Buffer in the "optimus dsm" and Integer > in "nvidia dsm". As buffer

[PATCH] drm/nouveau/acpi: de-dup use of DSM methods

2013-08-01 Thread Peter Wu
Observe that nouveau_optimus_dsm and nouveau_dsm are equal except for the parameters handling (UUID, revision ID and function arguments). The function arguments are passed as Buffer in the "optimus dsm" and Integer in "nvidia dsm". As buffers are implicitly converted to integers, merge both functio

[PATCH] drm/nouveau/acpi: de-dup use of DSM methods

2013-08-01 Thread Peter Wu
Observe that nouveau_optimus_dsm and nouveau_dsm are equal except for the parameters handling (UUID, revision ID and function arguments). The function arguments are passed as Buffer in the "optimus dsm" and Integer in "nvidia dsm". As buffers are implicitly converted to integers, merge both functio