An error occurred fetching the project authors.
- 07 Sep, 2017 1 commit
-
-
Arnd Bergmann authored
gcc-7 warns about the result of a constant multiplication used as a boolean: drivers/ata/libata-core.c: In function 'ata_timing_quantize': drivers/ata/libata-core.c:3164:30: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] This slightly rearranges the macro to simplify the code and avoid the warning at the same time. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 29 Aug, 2017 2 commits
-
-
Tejun Heo authored
This reverts commit 35f0b6a7. We now conditionalize issuing of READ LOG PAGE on the TRUSTED COMPUTING SUPPORTED bit in the identity data and this shouldn't be necessary. Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Christoph Hellwig authored
ATA-8 and later mirrors the TRUSTED COMPUTING SUPPORTED bit in word 48 of the IDENTIFY DEVICE data. Check this before issuing a READ LOG PAGE command to avoid issues with buggy devices. The only downside is that we can't support Security Send / Receive for a device with an older revision due to the conflicting use of this field in earlier specifications. tj: The reason we need this is because some devices which don't support READ LOG PAGE lock up after getting issued that command. Signed-off-by:
Christoph Hellwig <hch@lst.de> Tested-by:
David Ahern <dsahern@gmail.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 28 Aug, 2017 1 commit
-
-
Christoph Hellwig authored
Ido reported that reading the log page on his systems fails, so quirk it as it won't support ZBC or security protocols. Signed-off-by:
Christoph Hellwig <hch@lst.de> Reported-by:
Ido Schimmel <idosch@mellanox.com> Tested-by:
Ido Schimmel <idosch@mellanox.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 10 Jul, 2017 1 commit
-
-
Damien Le Moal authored
The warning message "READ LOG DMA EXT failed, trying unqueued" in ata_read_log_page() as well as the macro name ATA_HORKAGE_NO_NCQ_LOG are confusing: the command READ LOG DMA EXT is not an queued NCQ command unless it is encapsulated in a RECEIVE FPDMA QUEUED command. From ACS-4 READ LOG DMA EXT description: "The device processes the READ LOG DMA EXT command in the NCQ feature set environment (see 4.13.6) if the READ LOG DMA EXT command is encapsulated in a RECEIVE FPDMA QUEUED command (see 7.30) with the inputs encapsulated as shown in 7.23.6." To avoid confusion, fix the warning messsage to mention switching to PIO and not "unqueued" and rename the macro ATA_HORKAGE_NO_NCQ_LOG to ATA_HORKAGE_NO_DMA_LOG. Signed-off-by:
Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 27 Jun, 2017 1 commit
-
-
Minwoo Im authored
SAT-4(SCSI/ATA Translation) supports for an ata pass-thru(32). This patch will allow to translate an ata pass-thru(32) SCSI cmd to an ATA cmd. Signed-off-by:
Minwoo Im <dn3108@gmail.com> Reviewed-by:
Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 05 Jun, 2017 5 commits
-
-
Christoph Hellwig authored
This allows us to use the generic OPAL code with ATA devices. Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Christoph Hellwig authored
tj: Updated line continuation style for consistency as pointed out by Sergei. Signed-off-by:
Christoph Hellwig <hch@lst.de> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Christoph Hellwig authored
Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Christoph Hellwig authored
Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Christoph Hellwig authored
It is core functionality, and only one of the users is in the EH code. Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 31 May, 2017 1 commit
-
-
Tejun Heo authored
ata_parse_force_one() was incorrectly comparing @p to @endp when it should have been comparing @id. The only consequence is that it may end up using an invalid port number in "libata.force" module param instead of rejecting it. Signed-off-by:
Tejun Heo <tj@kernel.org> Reported-by:
Petru-Florin Mihancea <petrum@gmail.com> Link: https://bugzilla.kernel.org/show_bug.cgi?id=195785
-
- 16 May, 2017 2 commits
-
-
Mauro Carvalho Chehab authored
The libata documentation is now using ReST. Update references to it to point to the new place. Signed-off-by:
Mauro Carvalho Chehab <mchehab@s-opensource.com> Acked-by:
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Mauro Carvalho Chehab authored
The libata documentation is now using ReST. Update references to it to point to the new place. Signed-off-by:
Mauro Carvalho Chehab <mchehab@s-opensource.com>
-
- 13 Mar, 2017 2 commits
-
-
Jason Yan authored
Fixes the following sparse warning: drivers/ata/libata-core.c:4913:6: warning: symbol 'ata_sg_clean' was not declared. Should it be static? Signed-off-by:
Jason Yan <yanaijie@huawei.com>
-
Geliang Tang authored
Use setup_deferrable_timer() instead of init_timer_deferrable() to simplify the code. Signed-off-by:
Geliang Tang <geliangtang@gmail.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 06 Jan, 2017 4 commits
-
-
Damien Le Moal authored
For an ATA device supporting the sense data reporting feature set, a failed command will trigger the execution of ata_eh_request_sense if the result task file of the failed command has the ATA_SENSE bit set (sense data available bit). ata_eh_request_sense executes the REQUEST SENSE DATA EXT command to retrieve the sense data of the failed command. On success of REQUEST SENSE DATA EXT, the ATA_SENSE bit will NOT be set (the command succeeded) but ata_eh_request_sense nevertheless tests the availability of sense data by testing that bit presence in the result tf of the REQUEST SENSE DATA EXT command. This leads us to falsely assume that request sense data failed and to the warning message: atax.xx: request sense failed stat 50 emask 0 Upon success of REQUEST SENSE DATA EXT, set the ATA_SENSE bit in the result task file command so that sense data can be returned by ata_eh_request_sense. Signed-off-by:
Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by:
Tejun Heo <tj@kernel.org> Cc: stable@vger.kernel.org
-
Tejun Heo authored
Marko reports that CX1-JB512-HP shows the same timeout issues as CX1-JB256-HP. Let's apply MAX_SEC_128 to all devices in the series. Signed-off-by:
Tejun Heo <tj@kernel.org> Reported-by:
Marko Koski-Vähälä <marko@koski-vahala.com> Cc: stable@vger.kernel.org # v3.19+
-
Geert Uytterhoeven authored
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/libata.ko] undefined! To fix this, protect the DMA code by #ifdef CONFIG_HAS_DMA, and provide dummies of ata_sg_clean() and ata_sg_setup() for the !CONFIG_HAS_DMA case. Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Geert Uytterhoeven authored
Commit 70e6ad0c ("[PATCH] libata: prepare ata_sg_clean() for invocation from EH") made ata_sg_clean() global, but no user outside libata-core.c has ever materialized. Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 13 Dec, 2016 1 commit
-
-
Adam Manzanares authored
Previously, when the ata device was being initialized we were probing for NCQ prio support by checking the identify information and also checking the log page that holds information about ncq prio support. This caused an error on an Intel HBA so the code is now updated to only probe for NCQ prio support when the sysfs variable controlling NCQ prio support is enabled. tj: Update formatting, switch to spin_[un]lock_irq() and update locking a bit, use REVALIDATE instead of RESET, and return -EIO instead of -EINVAL on config failure. Signed-off-by:
Adam Manzanares <adam.manzanares@wdc.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 24 Oct, 2016 1 commit
-
-
Mauro Carvalho Chehab authored
The previous patch renamed several files that are cross-referenced along the Kernel documentation. Adjust the links to point to the right places. Signed-off-by:
Mauro Carvalho Chehab <mchehab@s-opensource.com>
-
- 20 Oct, 2016 1 commit
-
-
Adam Manzanares authored
We previously had a check to see if the device has support for prioritized ncq commands and a check to see if a device flag is set, through a sysfs variable, in order to send a prioritized command. This patch only allows the sysfs variable to be set if the device supports prioritized commands enabling one check in ata_build_rw_tf in order to determine whether or not to send a prioritized command. This patch depends on ata: ATA Command Priority Disabled By Default tj: Minor subject and formatting updates. Signed-off-by:
Adam Manzanares <adam.manzanares@wdc.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 19 Oct, 2016 2 commits
-
-
Adam Manzanares authored
Add a sysfs entry to turn on priority information being passed to a ATA device. By default this feature is turned off. This patch depends on ata: Enabling ATA Command Priorities tj: Renamed ncq_prio_on to ncq_prio_enable and removed trivial ata_ncq_prio_on() and open-coded the test. Signed-off-by:
Adam Manzanares <adam.manzanares@hgst.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Adam Manzanares authored
This patch checks to see if an ATA device supports NCQ command priorities. If so and the user has specified an iocontext that indicates IO_PRIO_CLASS_RT then we build a tf with a high priority command. This is done to improve the tail latency of commands that are high priority by passing priority to the device. tj: Removed trivial ata_ncq_prio_enabled() and open-coded the test. Signed-off-by:
Adam Manzanares <adam.manzanares@hgst.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 19 Jul, 2016 1 commit
-
-
Christoph Hellwig authored
The only caller can just check for !ata_is_data instead. Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 18 Jul, 2016 1 commit
-
-
Tejun Heo authored
Since 34b48db6 ("block: remove artifical max_hw_sectors cap"), max_sectors is no longer limited to BLK_DEF_MAX_SECTORS and LITE-ON CX1-JB256-HP keeps timing out with higher max_sectors. Revert it to the previous value. Signed-off-by:
Tejun Heo <tj@kernel.org> Reported-by: dgerasimov@gmail.com Link: https://bugzilla.kernel.org/show_bug.cgi?id=121671 Cc: stable@vger.kernel.org # v3.19+ Fixes: 34b48db6 ("block: remove artifical max_hw_sectors cap") Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 14 Jul, 2016 2 commits
-
-
Hannes Reinecke authored
The taskfile protocol is a numeric value, and can not be ORed. Currently this is harmless as the protocol is always zeroed before, but if it ever has a non-zero value the ORing would create incorrect results. Signed-off-by:
Hannes Reinecke <hare@suse.de> [hch: updated patch description] Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Hannes Reinecke authored
Use accessor functions instead of the raw value. Signed-off-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 12 Jul, 2016 1 commit
-
-
Tom Yan authored
Without this fix, the DRA bit of the caching mode page would not be updated when the read look-ahead feature is toggled (e.g. with `smartctl --set`), but will only be until, for example, the write cache feature is touched. Signed-off-by:
Tom Yan <tom.ty89@gmail.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 20 Jun, 2016 1 commit
-
-
Stephan Linz authored
This patch converts the IDE specific LED trigger to a generic disk activity LED trigger. The libata core is now a trigger source just like before the IDE disk driver. It's merely a replacement of the string ide by disk. The patch is taken from http://dev.gentoo.org/~josejx/ata.patch and is widely used by any ibook/powerbook owners with great satisfaction. Likewise, it is very often used successfully on different ARM platforms. Unlike the original patch, the existing 'ide-disk' trigger is still available for backward compatibility. That reduce the amount of patches in affected device trees out of the mainline kernel. For further development, the new name 'disk-activity' should be used. Cc: Joseph Jezak <josejx@gentoo.org> Cc: Jörg Sommer <joerg@alea.gnuu.de> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by:
Stephan Linz <linz@li-pro.net> Signed-off-by:
Jacek Anaszewski <j.anaszewski@samsung.com>
-
- 09 May, 2016 4 commits
-
-
Hannes Reinecke authored
Byte 69 bits 0:1 in the IDENTIFY DEVICE data indicate a host-aware ZAC device. Host-managed ZAC devices have their own individual signature, and to not set the bits in the IDENTIFY DEVICE data. And whenever we detect a ZAC-compatible device we should be displaying the zoned block characteristics VPD page. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Hannes Reinecke authored
Add NCQ encapsulation for ZAC MANAGEMENT OUT and evaluate NCQ Non-Data log pages to figure out if NCQ encapsulation is supported. Signed-off-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Hannes Reinecke authored
When reading the NCQ Send/Recv log it might actually not supported, thereby causing irritating messages 'READ LOG DMA EXT failed'. Instead we should be reading the log directory first to figure out if the log is actually supported before trying to access it. Signed-off-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Hannes Reinecke authored
Move NCQ SEND/RECEIVE checks into a separate function. Signed-off-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 13 Apr, 2016 1 commit
-
-
Masanari Iida authored
This patch fix spelling typos found in Documentation/Docbook/libata.xml. It is because the file was generated from comments in source, I had to fix comments in libata-core.c Signed-off-by:
Masanari Iida <standby24x7@gmail.com> Acked-by:
Randy Dunlap <rdunlap@infradead.org> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 04 Apr, 2016 3 commits
-
-
Damien Le Moal authored
When spinning up a drive from powered on standby mode (PUIS), SETFEATURES_SPINUP is executed with the default timeout used for any SETFEATURES subcommand, that is 5+10 seconds. The total 15s is too short for some drives to complete spinup (e.g. drives with a large indirection table stored on media), resulting in ata_dev_read_id to fail twice on the execution of SETFEATURES_SPINUP. For this feature, allow a larger default timeout of 30 seconds. However, in the same spirit as with the timeout of other feature subcommands, do not ignore ata_probe_timeout if it is set). Signed-off-by:
Damien Le Moal <damien.lemoal@hgst.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Hannes Reinecke authored
Return U64_MAX if ata_tf_read_block() could not decode the LBA address, and do not set the information sense descriptor in ata_gen_ata_sense() in these cases. tj: s/(u64)-1/U64_MAX/ Signed-off-by:
Hannes Reinecke <hare@suse.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
Hannes Reinecke authored
ACS-4 defines a sense data reporting feature set. This patch implements support for it. tj: Cosmetic formatting updates. Signed-off-by:
Hannes Reinecke <hare@suse.de> Signed-off-by:
Tejun Heo <tj@kernel.org>
-
- 25 Jan, 2016 1 commit
-
-
Shikha Jain authored
Viking flash model VRFDFC22048UCHC-TE causes data corruption in MWDMA mode. Cc: xe-kernel@external.cisco.com Signed-off-by:
Shikha Jain <shikjain@cisco.com> Signed-off-by:
Anil Veliyankara Madam <aveliyan@cisco.com> Signed-off-by:
Tejun Heo <tj@kernel.org>
-