From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932744AbcHJBAz (ORCPT ); Tue, 9 Aug 2016 21:00:55 -0400 Received: from smtp78.mediacombb.net ([68.66.77.78]:58546 "EHLO dsmdc-mail-smtp.mcomdc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751119AbcHJBAy (ORCPT ); Tue, 9 Aug 2016 21:00:54 -0400 X-Originating-IP: 173.23.249.37 X-Authenticated-User: shaun@helios.aeonazure.com X-COS-Tag: onnet X-Outbound-Route: TO X-Authenticated-Sender: shaun@helios.aeonazure.com X-Authority-Analysis: v=2.1 cv=eIWdjRZ1 c=1 sm=1 tr=0 a=ZifPZbLpJbm8c8CM908FCQ==:117 a=ZifPZbLpJbm8c8CM908FCQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=7z1cN_iqozsA:10 a=NEAV23lmAAAA:8 a=4sLmZWQCcbep4k-d2ZgA:9 a=Bn2pgwyD2vrAyMmN8A2t:22 X-Authenticated-Sender: shaun@helios.aeonazure.com From: Shaun Tancheff To: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Shaun Tancheff , Christoph Hellwig , Tejun Heo , Josh Bingaman Subject: [PATCH v5 0/2] Add support for SCT Write Same Date: Tue, 9 Aug 2016 20:00:27 -0500 Message-Id: <1470790829-3793-1-git-send-email-shaun@tancheff.com> X-Mailer: git-send-email 2.8.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At some point the method of issuing Write Same for ATA drives changed. Currently write same is commonly available via SCT so expose the SCT capabilities and use SCT Write Same when it is available. This is useful for zoned based media that prefers to support discard with lbprz set, aka discard zeroes data by mapping discard operations to reset write pointer operations. Conventional zones that do not support reset write pointer can still honor the discard zeroes data by issuing a write same over the zone. It may also be nice to know if various controllers that currently disable WRITE SAME will work with the SCT Write Same code path: aacraid, arcmsr, megaraid, 3w-9xxx, 3w-sas, 3w-xxxx, gdth, hpsa, ips, megaraid, pmcraid, storvsc_drv This patch against v4.8-rc1 is also at https://github.com/stancheff/linux/tree/v4.8-rc1+ws.v5 git@github.com:stancheff/linux.git v4.8-rc1+ws.v5 Shaun Tancheff (2): Use kmap_atomic when rewriting attached page Add support for SCT Write Same drivers/ata/libata-scsi.c | 240 ++++++++++++++++++++++++++++++++++++++++------ include/linux/ata.h | 69 ++++++++----- 2 files changed, 252 insertions(+), 57 deletions(-) -- 2.8.1