[lkml]   [2020]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[BUG] scsi: wd719x: accessing the data mapped to streaming DMA
In wd719x_queuecommand(), "scb" is mapped to streaming DMA:
  scb->phys = dma_map_single(..., scb, ...);

Then "scb" is accessed at many places in this function, such as:
  scb->data_length = 0;
  scb->data_p = 0;

These accesses may cause data inconsistency between CPU cache and hardware.

I am not sure how to properly fix this problem, and thus I only report it.

Best wishes,
Jia-Ju Bai

 \ /
  Last update: 2020-08-02 15:19    [W:0.022 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site