Revision 070e76cb3ffe43f6855492e77c96680c562598f0 authored by Leonid Yegoshin on 27 November 2014, 11:13:08 UTC, committed by Ralf Baechle on 27 November 2014, 16:21:56 UTC
There is a potential race when probing the TLB in TLBL/M/S exception
handlers for a matching entry. Between the time we hit a TLBL/S/M
exception and the time we get to execute the TLBP instruction, the
HTW may have replaced the TLB entry we are interested in hence the TLB
probe may fail. However, in the existing handlers, we never checked the
status of the TLBP (ie check the result in the C0/Index register). We
fix this by adding such a check when the core implements the HTW. If
we couldn't find a matching entry, we return back and try again.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: <stable@vger.kernel.org> # v3.17+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8599/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent b4da18b
History
File Mode Size
fc
fc_encode.h -rw-r--r-- 21.6 KB
fc_frame.h -rw-r--r-- 6.9 KB
fcoe_sysfs.h -rw-r--r-- 3.8 KB
iscsi_if.h -rw-r--r-- 26.0 KB
iscsi_proto.h -rw-r--r-- 16.1 KB
libfc.h -rw-r--r-- 34.5 KB
libfcoe.h -rw-r--r-- 13.8 KB
libiscsi.h -rw-r--r-- 14.2 KB
libiscsi_tcp.h -rw-r--r-- 4.3 KB
libsas.h -rw-r--r-- 19.6 KB
osd_attributes.h -rw-r--r-- 15.0 KB
osd_initiator.h -rw-r--r-- 16.3 KB
osd_ore.h -rw-r--r-- 5.4 KB
osd_protocol.h -rw-r--r-- 17.6 KB
osd_sec.h -rw-r--r-- 1.5 KB
osd_sense.h -rw-r--r-- 9.9 KB
osd_types.h -rw-r--r-- 1020 bytes
sas.h -rw-r--r-- 12.2 KB
sas_ata.h -rw-r--r-- 2.7 KB
scsi.h -rw-r--r-- 18.2 KB
scsi_bsg_iscsi.h -rw-r--r-- 2.8 KB
scsi_cmnd.h -rw-r--r-- 9.2 KB
scsi_dbg.h -rw-r--r-- 968 bytes
scsi_device.h -rw-r--r-- 19.6 KB
scsi_devinfo.h -rw-r--r-- 2.2 KB
scsi_dh.h -rw-r--r-- 2.8 KB
scsi_driver.h -rw-r--r-- 805 bytes
scsi_eh.h -rw-r--r-- 2.7 KB
scsi_host.h -rw-r--r-- 28.2 KB
scsi_ioctl.h -rw-r--r-- 1.2 KB
scsi_tcq.h -rw-r--r-- 4.8 KB
scsi_transport.h -rw-r--r-- 3.9 KB
scsi_transport_fc.h -rw-r--r-- 27.2 KB
scsi_transport_iscsi.h -rw-r--r-- 17.2 KB
scsi_transport_sas.h -rw-r--r-- 6.5 KB
scsi_transport_spi.h -rw-r--r-- 7.1 KB
scsi_transport_srp.h -rw-r--r-- 5.0 KB
scsicam.h -rw-r--r-- 674 bytes
sg.h -rw-r--r-- 12.0 KB
srp.h -rw-r--r-- 6.1 KB

back to top