From: "Nils Wallménius" <nils.wallmenius@gmail.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: Maling list - DRI developers <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: Delete unused functions in ppevvmath.h
Date: Fri, 15 Jul 2016 22:09:50 +0200 [thread overview]
Message-ID: <CA+nq7DvTP3cw5xS_XwvAVqZ9DNHiVYS_7zZ2W1Gu6A0r-_1aWQ@mail.gmail.com> (raw)
In-Reply-To: <CA+nq7Duji2cFCi3coG0XhLSrtz9=mZ_0uRM0ZrT4Lt1AUahrTg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 5887 bytes --]
Ping?
Den 6 juni 2016 21:32 skrev "Nils Wallménius" <nils.wallmenius@gmail.com>:
> Hi Alex,
>
> Any response from the powerplay team?
>
> If they are unresponsive, would you prefer to #IF 0 the code instead of
> deleting?
>
> Regards
> Nils
>
> On Mon, Apr 25, 2016 at 10:08 PM, Alex Deucher <alexdeucher@gmail.com>
> wrote:
>
>> On Sun, Apr 24, 2016 at 7:22 AM, Nils Wallménius
>> <nils.wallmenius@gmail.com> wrote:
>> > Signed-off-by: Nils Wallménius <nils.wallmenius@gmail.com>
>>
>> Let me check with the powerplay team and make sure they are planning
>> to use these in the near future.
>>
>> Alex
>>
>>
>> > ---
>> > drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h | 59
>> +------------------------
>> > 1 file changed, 1 insertion(+), 58 deletions(-)
>> >
>> > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h
>> b/drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h
>> > index a9b40eb..8f50a03 100644
>> > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h
>> > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h
>> > @@ -64,7 +64,6 @@ static fInt fGetSquare(fInt);
>> /* Returns the square
>> > static fInt fSqrt(fInt); /* Returns
>> the Square Root of a fInt number */
>> >
>> > static int uAbs(int); /* Returns
>> the Absolute value of the Int */
>> > -static fInt fAbs(fInt); /* Returns
>> the Absolute value of the fInt */
>> > static int uPow(int base, int exponent); /* Returns
>> base^exponent an INT */
>> >
>> > static void SolveQuadracticEqn(fInt, fInt, fInt, fInt[]); /* Returns
>> the 2 roots via the array */
>> > @@ -85,21 +84,12 @@ static fInt fDecodeLeakageID (uint32_t
>> leakageID_fuse, fInt ln_max_div_min, fInt
>> > *
>> -------------------------------------------------------------------------------------
>> > * Some of the following functions take two INTs as their input - This
>> is unsafe for a variety of reasons.
>> > */
>> > -static fInt Add (int, int); /* Add two
>> INTs and return Sum as FINT */
>> > -static fInt Multiply (int, int); /* Multiply
>> two INTs and return Product as FINT */
>> > -static fInt Divide (int, int); /* You get
>> the idea... */
>> > +static fInt Divide (int, int); /* Divide
>> two INTs and return result as FINT */
>> > static fInt fNegate(fInt);
>> >
>> > static int uGetScaledDecimal (fInt); /* Internal
>> function */
>> > static int GetReal (fInt A); /* Internal
>> function */
>> >
>> > -/* Future Additions and Incomplete Functions
>> > - *
>> -------------------------------------------------------------------------------------
>> > - */
>> > -static int GetRoundedValue(fInt); /*
>> Incomplete function - Useful only when Precision is lacking */
>> > - /* Let us
>> say we have 2.126 but can only handle 2 decimal points. We could */
>> > - /* either
>> chop of 6 and keep 2.12 or use this function to get 2.13, which is more
>> accurate */
>> > -
>> > /*
>> -------------------------------------------------------------------------------------
>> > * TROUBLESHOOTING INFORMATION
>> > *
>> -------------------------------------------------------------------------------------
>> > @@ -498,51 +488,12 @@ static void SolveQuadracticEqn(fInt A, fInt B,
>> fInt C, fInt Roots[])
>> > *
>> -----------------------------------------------------------------------------
>> > */
>> >
>> > -/* Addition using two normal ints - Temporary - Use only for testing
>> purposes?. */
>> > -static fInt Add (int X, int Y)
>> > -{
>> > - fInt A, B, Sum;
>> > -
>> > - A.full = (X << SHIFT_AMOUNT);
>> > - B.full = (Y << SHIFT_AMOUNT);
>> > -
>> > - Sum.full = A.full + B.full;
>> > -
>> > - return Sum;
>> > -}
>> > -
>> > /* Conversion Functions */
>> > static int GetReal (fInt A)
>> > {
>> > return (A.full >> SHIFT_AMOUNT);
>> > }
>> >
>> > -/* Temporarily Disabled */
>> > -static int GetRoundedValue(fInt A) /*For now, round the 3rd decimal
>> place */
>> > -{
>> > - /* ROUNDING TEMPORARLY DISABLED
>> > - int temp = A.full;
>> > - int decimal_cutoff, decimal_mask = 0x000001FF;
>> > - decimal_cutoff = temp & decimal_mask;
>> > - if (decimal_cutoff > 0x147) {
>> > - temp += 673;
>> > - }*/
>> > -
>> > - return ConvertBackToInteger(A)/10000; /*Temporary - in case
>> this was used somewhere else */
>> > -}
>> > -
>> > -static fInt Multiply (int X, int Y)
>> > -{
>> > - fInt A, B, Product;
>> > -
>> > - A.full = X << SHIFT_AMOUNT;
>> > - B.full = Y << SHIFT_AMOUNT;
>> > -
>> > - Product = fMultiply(A, B);
>> > -
>> > - return Product;
>> > -}
>> > -
>> > static fInt Divide (int X, int Y)
>> > {
>> > fInt A, B, Quotient;
>> > @@ -578,14 +529,6 @@ static int uPow(int base, int power)
>> > return (base)*uPow(base, power - 1);
>> > }
>> >
>> > -static fInt fAbs(fInt A)
>> > -{
>> > - if (A.partial.real < 0)
>> > - return (fMultiply(A, ConvertToFraction(-1)));
>> > - else
>> > - return A;
>> > -}
>> > -
>> > static int uAbs(int X)
>> > {
>> > if (X < 0)
>> > --
>> > 2.8.0.rc3
>> >
>> > _______________________________________________
>> > dri-devel mailing list
>> > dri-devel@lists.freedesktop.org
>> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
>>
>
>
[-- Attachment #1.2: Type: text/html, Size: 7642 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-07-15 20:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-24 11:22 [PATCH 1/2] drm/amd/powerplay: Mark functions of ppevvmath.h static Nils Wallménius
2016-04-24 11:22 ` [PATCH 2/2] drm/amd/powerplay: Delete unused functions in ppevvmath.h Nils Wallménius
2016-04-25 20:08 ` Alex Deucher
2016-06-06 19:32 ` Nils Wallménius
2016-07-15 20:09 ` Nils Wallménius [this message]
2016-07-15 21:06 ` Alex Deucher
2016-07-16 3:51 ` Nils Wallménius
2016-07-19 16:22 ` Nils Wallménius
2016-07-28 16:19 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+nq7DvTP3cw5xS_XwvAVqZ9DNHiVYS_7zZ2W1Gu6A0r-_1aWQ@mail.gmail.com \
--to=nils.wallmenius@gmail.com \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).