Re: [PATCH] usb: r8a66597-hdc: Flush the D-cache for the pipe-in transfer buffers.

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

 



Paul Mundt wrote:
> This implements the same D-cache flushing logic for r8a66597-hcd as
> Catalin's isp1760 (http://patchwork.kernel.org/patch/76391/) change,
> with the same note applying here as well:
> 
>     When the HDC driver writes the data to the transfer buffers it
>     pollutes the D-cache (unlike DMA drivers where the device writes
>     the data). If the corresponding pages get mapped into user space,
>     there are no additional cache flushing operations performed and
>     this causes random user space faults on architectures with
>     separate I and D caches (Harvard) or those with aliasing D-cache.
> 
> This fixes up crashes during USB boot on SH7724 and others:
> 
> 	http://marc.info/?l=linux-sh&m=126439837308912&w=2
> 
> Reported-by: Goda Yusuke <goda.yusuke@xxxxxxxxxxx>
> Tested-by: Goda Yusuke <goda.yusuke@xxxxxxxxxxx>
> Signed-off-by: Paul Mundt <lethal@xxxxxxxxxxxx>
> 
> ---
> 
> Shimoda-san, once you Ack these I plan to send them off to Linus for 2.6.33.

Thank you very much for your help.
Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@xxxxxxxxxxx>

Thanks,
Yoshihiro Shimoda

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux