[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <83a1022.392.192daca499a.Coremail.andyshrk@163.com>
Date: Wed, 30 Oct 2024 08:19:03 +0800 (CST)
From: "Andy Yan" <andyshrk@....com>
To: "Johan Jonker" <jbx6244@...il.com>
Cc: "Andrew Lunn" <andrew@...n.ch>, andy.yan@...k-chips.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
david.wu@...k-chips.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-rockchip@...ts.infradead.org
Subject: Re:Re: [PATCH v1 1/2] ethernet: arc: fix the device for
dma_map_single/dma_unmap_single
Hi Johan,
At 2024-10-29 22:53:26, "Johan Jonker" <jbx6244@...il.com> wrote:
>
>
>On 10/28/24 14:03, Andrew Lunn wrote:
>> On Sun, Oct 27, 2024 at 10:41:48AM +0100, Johan Jonker wrote:
>>> The ndev->dev and pdev->dev aren't the same device, use ndev->dev.parent
>>> which has dma_mask, ndev->dev.parent is just pdev->dev.
>>> Or it would cause the following issue:
>>>
>>> [ 39.933526] ------------[ cut here ]------------
>>> [ 39.938414] WARNING: CPU: 1 PID: 501 at kernel/dma/mapping.c:149 dma_map_page_attrs+0x90/0x1f8
>>>
>>> Signed-off-by: David Wu <david.wu@...k-chips.com>
>>> Signed-off-by: Johan Jonker <jbx6244@...il.com>
>>
>> A few process issues:
>>
>> For a patch set please add a patch 0/X which explains the big picture
>> of what the patchset does. For a single patch, you don't need one.
>>
>> Please read:
>>
>> https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
>>
>
>> It is not clear which tree you intend these patches to be applied
>> to. This one looks like it should be to net, but needs a Fixes:
>> tag. The MDIO patch might be for net-next?
>
>Hi Andrew, Andy,
>
>My desktop setup has a problem compiling older kernels for rk3066 MK808 to verify.
>
>Are you able to bisect/compile for rk3036 before this one:
I will try to do it in the following days.
>
>====
>commit bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be (HEAD -> test1)
>Author: Jianglei Nie <niejianglei2021@....com>
>Date: Wed Mar 9 20:18:24 2022 +0800
>
> net: arc_emac: Fix use after free in arc_mdio_probe()
>
>====
>This is the oldest EMAC related checkout I can compile.
>At that patch it still gives this warnings in the kernel log.
>
>[ 16.678988] ------------[ cut here ]------------
>[ 16.684189] WARNING: CPU: 0 PID: 809 at kernel/dma/mapping.c:151 dma_map_page_attrs+0x2b4/0x358
>
>The driver was maintained on auto pilot recent years without a check by Rockchip users somehow.
>Currently I don't know where and when this was introduced.
>Please advise how to move forward. Should we just mark it net-next?
>
>Johan
>
>>
>> Andrew
>>
>> ---
>> pw-bot: cr
>>
>>
>
>_______________________________________________
>Linux-rockchip mailing list
>Linux-rockchip@...ts.infradead.org
>http://lists.infradead.org/mailman/listinfo/linux-rockchip
Powered by blists - more mailing lists