All of lore.kernel.org
 help / color / mirror / Atom feed
From: Murali Karicheri <m-karicheri2@ti.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
	<davem@davemloft.net>
Subject: Re: [PATCH v1 1/4] net: ti: netcp: restore get/set_pad_info() functionality
Date: Fri, 19 Feb 2016 11:48:35 -0500	[thread overview]
Message-ID: <56C74763.5040902@ti.com> (raw)
In-Reply-To: <15189559.iSkBKBkX2y@wuerfel>

On 02/19/2016 11:41 AM, Arnd Bergmann wrote:
> On Friday 19 February 2016 10:48:30 Murali Karicheri wrote:
>> On 02/19/2016 09:41 AM, Arnd Bergmann wrote:
>>> On Thursday 18 February 2016 14:46:14 Murali Karicheri wrote:
>>>> From: Arnd Bergmann <arnd@arndb.de>
>>>>
>>>> The commit 899077791403 ("netcp: try to reduce type confusion in
>>>> descriptors") introduces a regression in Kernel 4.5-rc1 and it breaks
>>>> get/set_pad_info() functionality.
>>>>
>>>> The TI NETCP driver uses pad0 and pad1 fields of knav_dma_desc to
>>>> store DMA/MEM buffer pointer and buffer size respectively. And in both
>>>> cases for Keystone 2 the pointer type size is 32 bit regardless of
>>>> LAPE enabled or not, because CONFIG_ARCH_DMA_ADDR_T_64BIT originally
>>>> is not expected to be defined.
>>>>
>>>>                      !LAPE   LPAE
>>>> sizeof(void*)                32bit   32bit
>>>> sizeof(dma_addr_t)   32bit   32bit
>>>> sizeof(phys_addr_t)  32bit   64bit
>>>
>>> As this was never relevant or true, I don't think it needs to be
>>> mentioned here, it just confuses things. Please just assume that
>>> dma_addr_t can be 64-bit wide, but will only contain 32-bit
>>> numbers on keystone.
>>>
>>
>> I can remove this from the commit description and re-send.
> 
> Ok
> 
>>>> Unfortunately, above commit changed buffer's pointers save/restore
>>>> code (get/set_pad_info()) and added intermediate conversation to u64
>>>> which works incorrectly on 32bit Keystone 2 and causes TI NETCP driver
>>>> crash in RX/TX path due to "Unable to handle kernel NULL pointer"
>>>> exception. This issue was reported and discussed in [1].
>>>
>>> Have you been able to figure out why it actually broke? I'd still
>>> like to know.
>>>
>> As Grygorii is out of office until Monday, I would like to step in.
>> I will take some time today to try review the reverted changes for
>> failure reason and get back. But as you have agreed in the discussion
>> at https://www.mail-archive.com/netdev@vger.kernel.org/msg96311.html
>> Can we fix the regression by applying this patch and rest of the series
>> if it looks good? If I need to separate this from rest of the series,
>> let me know and I can take care of that.
> 
> Yes, sounds fine.
> 
>>>> Hence, fix it by partially reverting above commit and restoring
>>>> get/set_pad_info() functionality as it was before.
>>>>
>>>> [1] https://www.mail-archive.com/netdev@vger.kernel.org/msg95361.html
>>>> Cc: Wingman Kwok <w-kwok2@ti.com>
>>>> Cc: Mugunthan V N <mugunthanvnm@ti.com>
>>>> CC: David Laight <David.Laight@ACULAB.COM>
>>>> Reported-by: Franklin S Cooper Jr <fcooper@ti.com>
>>>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>>>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>>>> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
>>>
>>> I don't think I sent this patch with a 'Signed-off-by', did I?
>>> (I could be misremembering that).
>>>
>>
>> I think you had agreed based on what I read at
>> https://www.mail-archive.com/netdev@vger.kernel.org/msg96311.html
>>
>> reproduced below for your convenience.
>> =============================================================================
>>
>>> What I could do now is update your/my patch as i mentioned in [1]
>>> and re-send it at the weekend (with your authorship and my signoff).
>>> Do you agree?
>>>
>>>
>>> [1] https://www.mail-archive.com/netdev@vger.kernel.org/msg95831.html
>>
>> Yes, let's do that in the meantime. I can also make sure that that
>> the driver doesn't build on 64-bit, just in case.
>> =============================================================================
>>
>> Hope I can keep your sign-off when I re-send this. Please confirm.
> 
> The most important part here is that you don't add a "Signed-off-by"
> tag unless it was provided by that person as part of the submission.
> 
> I'm slightly uncomfortable with having my Signed-off-by as the first
> one when I did not write the changelog myself, so I'd prefer if
> you just add my Acked-by once I provide that. If that doesn't
> work for you, let's follow up in private to sort it out.
> 
Ok. I will remove it.

> 	Arnd
> 


-- 
Murali Karicheri
Linux Kernel, Keystone

  reply	other threads:[~2016-02-19 16:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18 19:46 [PATCH v1 1/4] net: ti: netcp: restore get/set_pad_info() functionality Murali Karicheri
2016-02-18 19:46 ` [PATCH v1 2/4] soc: ti: knav_dma: rename pad in struct knav_dma_desc to sw_data Murali Karicheri
2016-02-19 14:33   ` Arnd Bergmann
2016-02-18 19:46 ` [PATCH v1 3/4] net: netcp: rename {get/set}pad_info to {get/set}_sw_data Murali Karicheri
2016-02-19 14:37   ` Arnd Bergmann
2016-02-19 16:49     ` Murali Karicheri
2016-02-19 17:22     ` Murali Karicheri
2016-02-18 19:46 ` [PATCH v1 4/4] net: netcp: rework the code for get/set sw_data in dma desc Murali Karicheri
2016-02-19 14:41 ` [PATCH v1 1/4] net: ti: netcp: restore get/set_pad_info() functionality Arnd Bergmann
2016-02-19 15:48   ` Murali Karicheri
2016-02-19 16:41     ` Arnd Bergmann
2016-02-19 16:48       ` Murali Karicheri [this message]
2016-02-19 18:01   ` Murali Karicheri
2016-02-19 20:59     ` Arnd Bergmann

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=56C74763.5040902@ti.com \
    --to=m-karicheri2@ti.com \
    --cc=arnd@arndb.de \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.