Re: [PATCH] media: pwc: Use correct device for DMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 17, 2021 at 04:02:53PM +0300, Matwey V. Kornilov wrote:
> вс, 17 янв. 2021 г. в 15:56, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>:
> 
> > On Sun, Jan 17, 2021 at 02:05:23PM +0300, Matwey V. Kornilov wrote:
> > > This fixes the following newly introduced warning:
> > >
> > > [   15.518253] ------------[ cut here ]------------
> > > [   15.518941] WARNING: CPU: 0 PID: 246 at kernel/dma/mapping.c:149
> > dma_map_page_attrs+0x1a8/0x1d0
> > > [   15.520634] Modules linked in: pwc videobuf2_vmalloc videobuf2_memops
> > videobuf2_v4l2 videobuf2_common videodev mc efivarfs
> > > [   15.522335] CPU: 0 PID: 246 Comm: v4l2-test Not tainted 5.11.0-rc1+ #1
> > > [   15.523281] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS
> > 0.0.0 02/06/2015
> > > [   15.524438] RIP: 0010:dma_map_page_attrs+0x1a8/0x1d0
> > > [   15.525135] Code: 10 5b 5d 41 5c 41 5d c3 4d 89 d0 eb d7 4d 89 c8 89
> > e9 48 89 da e8 68 29 00 00 eb d1 48 89 f2 48 2b 50 18 48 89 d0 eb 83 0f 0b
> > <0f> 0b 48 c7 c0 ff ff ff ff eb b8 48 89 d9 48 8b 40 40 e8 61 69 d2
> > > [   15.527938] RSP: 0018:ffffa2694047bca8 EFLAGS: 00010246
> > > [   15.528716] RAX: 0000000000000000 RBX: 0000000000002580 RCX:
> > 0000000000000000
> > > [   15.529782] RDX: 0000000000000000 RSI: ffffcdce000ecc00 RDI:
> > ffffa0b4bdb888a0
> > > [   15.530849] RBP: 0000000000000002 R08: 0000000000000002 R09:
> > 0000000000000000
> > > [   15.531881] R10: 0000000000000004 R11: 000000000002d8c0 R12:
> > 0000000000000000
> > > [   15.532911] R13: ffffa0b4bdb88800 R14: ffffa0b483820000 R15:
> > ffffa0b4bdb888a0
> > > [   15.533942] FS:  00007fc5fbb5e4c0(0000) GS:ffffa0b4fc000000(0000)
> > knlGS:0000000000000000
> > > [   15.535141] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > > [   15.535988] CR2: 00007fc5fb6ea138 CR3: 0000000003812000 CR4:
> > 00000000001506f0
> > > [   15.537025] Call Trace:
> > > [   15.537425]  start_streaming+0x2e9/0x4b0 [pwc]
> > > [   15.538143]  vb2_start_streaming+0x5e/0x110 [videobuf2_common]
> > > [   15.538989]  vb2_core_streamon+0x107/0x140 [videobuf2_common]
> > > [   15.539831]  __video_do_ioctl+0x18f/0x4a0 [videodev]
> > > [   15.540670]  video_usercopy+0x13a/0x5b0 [videodev]
> > > [   15.541349]  ? video_put_user+0x230/0x230 [videodev]
> > > [   15.542096]  ? selinux_file_ioctl+0x143/0x200
> > > [   15.542752]  v4l2_ioctl+0x40/0x50 [videodev]
> > > [   15.543360]  __x64_sys_ioctl+0x89/0xc0
> > > [   15.543930]  do_syscall_64+0x33/0x40
> > > [   15.544448]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
> > > [   15.545236] RIP: 0033:0x7fc5fb671587
> > > [   15.545780] Code: b3 66 90 48 8b 05 11 49 2c 00 64 c7 00 26 00 00 00
> > 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05
> > <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e1 48 2c 00 f7 d8 64 89 01 48
> > > [   15.548486] RSP: 002b:00007fff0f71f038 EFLAGS: 00000246 ORIG_RAX:
> > 0000000000000010
> > > [   15.549578] RAX: ffffffffffffffda RBX: 0000000000000003 RCX:
> > 00007fc5fb671587
> > > [   15.550664] RDX: 00007fff0f71f060 RSI: 0000000040045612 RDI:
> > 0000000000000003
> > > [   15.551706] RBP: 0000000000000000 R08: 0000000000000000 R09:
> > 0000000000000000
> > > [   15.552738] R10: 0000000000000000 R11: 0000000000000246 R12:
> > 00007fff0f71f060
> > > [   15.553817] R13: 00007fff0f71f1d0 R14: 0000000000de1270 R15:
> > 0000000000000000
> > > [   15.554914] ---[ end trace 7be03122966c2486 ]---
> > >
> > > Fixes: 1161db6776bd ("media: usb: pwc: Don't use coherent DMA buffers
> > for ISO transfer")
> > > Signed-off-by: Matwey V. Kornilov <matwey@xxxxxxxxxx>
> > > Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
> > > Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210777
> > > Cc: stable@xxxxxxxxxxxxxxx # v5.10+
> > > Signed-off-by: Matwey V. Kornilov <matwey@xxxxxxxxxx>
> > > ---
> > >  drivers/media/usb/pwc/pwc-if.c | 22 +++++++++++++---------
> > >  1 file changed, 13 insertions(+), 9 deletions(-)
> >
> > What is the git commit id of this commit in Linus's tree?
> >
> 
> 
> It is 69c9e825e812ec6d663e64ebf14bd3bc7f37e2c7 in next/linux-next.git

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

We can't do anything with a patch that is not in Linus's tree, sorry.
Please wait for it to show up there before asking us to backport
something that is not already tagged with a "cc: stable" mark.

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux