<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    1MiB still sounds like quite a lot. Is that really the hardware
    requirement?<br>
    <br>
    On the other hand feel free to add my acked-by since it is certainly
    an improvement.<br>
    <br>
    Christian.<br>
    <br>
    <div class="moz-cite-prefix">Am 09.09.22 um 05:51 schrieb Zhang,
      Hawking:<br>
    </div>
    <blockquote type="cite" cite="mid:BN9PR12MB52579A7D564E0DA5CE50184CFC439@BN9PR12MB5257.namprd12.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style>
      <p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
        [AMD Official Use Only - General]<br>
      </p>
      <br>
      <div>
        <div class="WordSection1">
          <p class="MsoNormal"><span style="font-size:11.0pt">Thanks
              Kevin!<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt">Reviewed-by:
              Hawking Zhang <a class="moz-txt-link-rfc2396E" href="mailto:Hawking.Zhang@amd.com"><Hawking.Zhang@amd.com></a><o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt">Regards,<br>
              Hawking<o:p></o:p></span></p>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
                </span></b><span style="font-size:12.0pt;color:black">Wang,
                Yang(Kevin) <a class="moz-txt-link-rfc2396E" href="mailto:KevinYang.Wang@amd.com"><KevinYang.Wang@amd.com></a><br>
                <b>Date: </b>Friday, September 9, 2022 at 11:50<br>
                <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:amd-gfx@lists.freedesktop.org"><amd-gfx@lists.freedesktop.org></a><br>
                <b>Cc: </b>Zhang, Hawking
                <a class="moz-txt-link-rfc2396E" href="mailto:Hawking.Zhang@amd.com"><Hawking.Zhang@amd.com></a>, Wang, Yang(Kevin)
                <a class="moz-txt-link-rfc2396E" href="mailto:KevinYang.Wang@amd.com"><KevinYang.Wang@amd.com></a><br>
                <b>Subject: </b>[PATCH v3] drm/amdgpu: change the
                alignment size of TMR BO to 1M<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">align TMR BO size TO tmr size
                is not necessary,<br>
                modify the size to 1M to avoid re-create BO fail<br>
                when serious VRAM fragmentation.<br>
                <br>
                v2:<br>
                add new macro PSP_TMR_ALIGNMENT for TMR BO alignment
                size<br>
                <br>
                Signed-off-by: Yang Wang <a class="moz-txt-link-rfc2396E" href="mailto:KevinYang.Wang@amd.com"><KevinYang.Wang@amd.com></a><br>
                ---<br>
                 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-<br>
                 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 +<br>
                 2 files changed, 2 insertions(+), 1 deletion(-)<br>
                <br>
                diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
                b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c<br>
                index cfcaf890a6a1..e430a3142310 100644<br>
                --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c<br>
                +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c<br>
                @@ -766,7 +766,7 @@ static int psp_tmr_init(struct
                psp_context *psp)<br>
                         }<br>
                 <br>
                         pptr = amdgpu_sriov_vf(psp->adev) ?
                &tmr_buf : NULL;<br>
                -       ret = amdgpu_bo_create_kernel(psp->adev,
                tmr_size, PSP_TMR_SIZE(psp->adev),<br>
                +       ret = amdgpu_bo_create_kernel(psp->adev,
                tmr_size, PSP_TMR_ALIGNMENT,<br>
                                                      
                AMDGPU_GEM_DOMAIN_VRAM,<br>
                                                      
                &psp->tmr_bo, &psp->tmr_mc_addr, pptr);<br>
                 <br>
                diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
                b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h<br>
                index c32b74bd970f..e593e8c2a54d 100644<br>
                --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h<br>
                +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h<br>
                @@ -36,6 +36,7 @@<br>
                 #define PSP_CMD_BUFFER_SIZE     0x1000<br>
                 #define PSP_1_MEG               0x100000<br>
                 #define PSP_TMR_SIZE(adev)      ((adev)->asic_type
                == CHIP_ALDEBARAN ? 0x800000 : 0x400000)<br>
                +#define PSP_TMR_ALIGNMENT      0x100000<br>
                 #define PSP_FW_NAME_LEN         0x24<br>
                 <br>
                 enum psp_shared_mem_size {<br>
                -- <br>
                2.25.1<o:p></o:p></span></p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>