linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Barrat <fbarrat@linux.ibm.com>
To: Alexey Kardashevskiy <aik@ozlabs.ru>, linuxppc-dev@lists.ozlabs.org
Cc: zdai@linux.ibm.com
Subject: Re: [PATCH] Revert "powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs"
Date: Thu, 27 May 2021 08:10:01 +0200	[thread overview]
Message-ID: <bd48e061-775e-9ee9-395f-743c730c540b@linux.ibm.com> (raw)
In-Reply-To: <82c308d5-7ef4-b756-35dc-eeb029b79601@ozlabs.ru>



On 27/05/2021 04:13, Alexey Kardashevskiy wrote:
> On 27/05/2021 00:45, Frederic Barrat wrote:
>> This reverts commit 3c0468d4451eb6b4f6604370639f163f9637a479.
>>
>> That commit was breaking alignment guarantees for the DMA address when
>> allocating coherent mappings, as described in
>> Documentation/core-api/dma-api-howto.rst
>>
>> It was also noticed by Mellanox' driver:
>> [ 1515.763621] mlx5_core c002:01:00.0: 
>> mlx5_frag_buf_alloc_node:146:(pid 13402): unexpected map alignment: 
>> 0x0800000000c61000, page_shift=16
>> [ 1515.763635] mlx5_core c002:01:00.0: mlx5_cqwq_create:181:(pid
>> 13402): mlx5_frag_buf_alloc_node() failed, -12
>>
>> Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
> 
> Should it be
> 
> Fixes: 3c0468d4451e ("powerpc/kernel/iommu: Align size for 
> IOMMU_PAGE_SIZE() to save TCEs")
> 
> ?


I had been wondering the same... I can see many revert commits with and 
without a "Fixes:" line. Since here the offending commit was merged in 
the latest merge window, I was thinking Fixes doesn't really bring 
anything, it will all stay internal to v5.13 development. I'd be happy 
to hear of the expected way of handling it. I'm guessing a big part of 
the answer is whether the tooling looking for a "Fixes" line is also 
looking for reverts.

   Fred



> 
> Anyway,
> 
> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>


  reply	other threads:[~2021-05-27  6:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 14:45 [PATCH] Revert "powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs" Frederic Barrat
2021-05-27  2:13 ` Alexey Kardashevskiy
2021-05-27  6:10   ` Frederic Barrat [this message]
2021-06-01  1:23     ` Michael Ellerman
2021-06-06 11:34 ` Michael Ellerman

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=bd48e061-775e-9ee9-395f-743c730c540b@linux.ibm.com \
    --to=fbarrat@linux.ibm.com \
    --cc=aik@ozlabs.ru \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=zdai@linux.ibm.com \
    /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).