From patchwork Mon Nov 7 00:50:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13033717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D6B1C4332F for ; Mon, 7 Nov 2022 00:50:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbiKGAum (ORCPT ); Sun, 6 Nov 2022 19:50:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbiKGAuj (ORCPT ); Sun, 6 Nov 2022 19:50:39 -0500 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318ECC76B for ; Sun, 6 Nov 2022 16:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1667782234; x=1699318234; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nQOC0Pfd3xQkIpsrM2jqz2PO66oztnRmZbo1BOuXWN0=; b=M4hig+LCcXkE52h/gz2vSpSPu8tktub6beXV9cgvSaGyA8Kj8li7B1rW I+RHa59ISHVgn9PyeYj+MMH6DOO6YShv5bERQh0OyB3Y8/Tz0pCjzVtze LCmgCveylyGwm5mUUR1kGq+BfWspe5Nc1soRMt9nIza/NppSu7PH8B2/c 5BOe7zGI3fKE8EuEi8VbnbVmjRfG9JZ/OBd3ZmNi0Kj99OAOhCjjtNEOL SqnUqrjyN85z8VMkcSTGJBamXeySTkNNqRY/uT5HL6jGkIp3upuq4vIvV SFO2qrg5xJeUMeGfhc3MW78poyg88zfN1vTG3Vl0UFwlPBtvsq3mbMeBX A==; X-IronPort-AV: E=Sophos;i="5.96,143,1665417600"; d="scan'208";a="215958495" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 07 Nov 2022 08:50:33 +0800 IronPort-SDR: f9KRHUVZ2WxEEVurufcsV5qpkPUjbdGO95OBtUI7rzP6cJffalIuHiAozBs71qUZbj6eJvapCL 7GxuzcR3s/meqCKKIw4hoBoAxXbOYqcd7yMq+/ewvZirvGHOrlOYDPtKnPvjQLNd428Fdn5Z11 nWCPvcCzTcDE28kQHI6jpB2Lm/Z7jwUSiEphhsqtBY0gOpjzMcrrbJIeOA3+a7toG1APbf33vx AeEaS/vS300fQs7lekKqA74Q5edwMtRqMiPzZqmdqAGogSQ082hLeoafK2Nz2m9pIOo9kDtUMy ObI= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Nov 2022 16:09:41 -0800 IronPort-SDR: fek6OdA0kA8qY3UDq/QCMsej3W+a2ATbOrfXppDVOQYKuB1sj4Etpt45tfBp7k1oP8tzyqJBiR Eu4Nu3Cwzgwx1uzBcQcTBHMJRNvn9nWV7AYcjn8J7wxziNKBQ8YShmeaCX7W9ppnvVUNg2UcUJ CZmCm4VBb30S/V75mAixttqctGD5krfZ7YGkOJ4pWj4ggpCIeUCIbitY4xVPYDCRdQx4fftMJo m6HG6EVgsKcnYAPcdg/Fj4asJYDqg+Nsl63m886G0aFo2Tk0OIaSvz9Ge3tJ7v9XnU6KXXd47t UeY= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Nov 2022 16:50:34 -0800 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4N5CMF4Cqmz1RwtC for ; Sun, 6 Nov 2022 16:50:33 -0800 (PST) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:mime-version :references:in-reply-to:x-mailer:message-id:date:subject:to :from; s=dkim; t=1667782233; x=1670374234; bh=nQOC0Pfd3xQkIpsrM2 jqz2PO66oztnRmZbo1BOuXWN0=; b=SdDM5nYNXvoK9pnw2cxmoQW4E5nCWcRnNP +wu/mFHBAvW9Gnlvk/l/Ljfejm+MfuZ+qCtTTB3bMtpzitEC8YaYxN6HkqBixc9o mKGEe8i3WXMUc5efYooxzTbpdYBEBwxI13eCwWEqfIx9rNkxm6EobZ+1cIPodxxD z3+HCi7V0fZBNPfexHChg65JUCjxE9rbMeuJ/jTf3V1OpU4CQPNB1naWglCZENFo jCDzXBdW69C60B3KAFZPeJDJJ8Z9cgk+jCVdAZQPab0zNbPalp4Vx/57yJ1WPyoI CjA2o886zCzOVTyzQEEL9AM86qPyg0BOHy4aN23zT/cOV1PZsI/w== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QjJf4dn3HlRv for ; Sun, 6 Nov 2022 16:50:33 -0800 (PST) Received: from washi.fujisawa.hgst.com (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4N5CMD0ycRz1RvTp; Sun, 6 Nov 2022 16:50:31 -0800 (PST) From: Damien Le Moal To: linux-ide@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe Cc: "Maciej S . Szmigiero" , Hannes Reinecke , Christoph Hellwig Subject: [PATCH v5 7/7] ata: libata: Enable fua support by default Date: Mon, 7 Nov 2022 09:50:21 +0900 Message-Id: <20221107005021.1327692-8-damien.lemoal@opensource.wdc.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221107005021.1327692-1-damien.lemoal@opensource.wdc.com> References: <20221107005021.1327692-1-damien.lemoal@opensource.wdc.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Change the default value of the fua module parameter to 1 to enable fua support by default for all devices supporting it. FUA support can be disabled for individual drives using the force=[ID]nofua libata module argument. Signed-off-by: Damien Le Moal Reviewed-by: Hannes Reinecke Reviewed-by: Maciej S. Szmigiero Reviewed-by: Chaitanya Kulkarni --- drivers/ata/libata-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 29042665c550..9e9ce1905992 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -127,9 +127,9 @@ int atapi_passthru16 = 1; module_param(atapi_passthru16, int, 0444); MODULE_PARM_DESC(atapi_passthru16, "Enable ATA_16 passthru for ATAPI devices (0=off, 1=on [default])"); -int libata_fua = 0; +int libata_fua = 1; module_param_named(fua, libata_fua, int, 0444); -MODULE_PARM_DESC(fua, "FUA support (0=off [default], 1=on)"); +MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on [default])"); static int ata_ignore_hpa; module_param_named(ignore_hpa, ata_ignore_hpa, int, 0644);