Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2526399pxb; Tue, 12 Oct 2021 08:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBKEqbUb6VHviOROxIVpWvmdBlXXqwb8CzVt2RerqUG2R7LqKgsPfAE40mDGqRj+yCxF0x X-Received: by 2002:a05:600c:3584:: with SMTP id p4mr6197196wmq.168.1634052214894; Tue, 12 Oct 2021 08:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634052214; cv=none; d=google.com; s=arc-20160816; b=RH6iFtPCGhCtnRTNUhH/3dUvRvtV7k73ynN8jq4TdPW5hhElDUYJw04rHaW92rnFN4 H26XlP5IKuTpJJU2zcHH7v25R9oG4qu4vLr+ZpW1kwcXLTow8zvvWX7GwXw+zNWE5juq p1HcGartmYVtGZ2t3OpiolEO2lrwSyKnNcmmn1r8yIY8KvXjH/z/Ldt4lKh9OQlpznXv T3PexxfdZ9Qmz4r2AofPig248VkwkW8PebSqT04nhHlnpuJECC7uEdRzAqivkZg7ap6B KFW4qvzG4XrX0wgVmAJ7kHBgNwsjZfjH1j6ofVYdvkZyqUAG3XH8Fhwuoep6StLYHqKr HmXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=vLusdhKbeNnHOtpcDCjdNIzeQVcC2EVzmZEqYiYdoBk=; b=C0ArVSMKA1+bFFR3MM9OxLSdFCEWsJVQbDFmWafJh6ybtMG6vvp60okLcbW+uMDrwX gezGFz0TMlYjtDzUWRWdVwI5cG7mjGqbTZNTS+zz0O2mgGTwKDPeaBlvwF+T+MCLbbk4 00JMRco8iliI8DWSfrZDDFHoK+mM4ViOWq2ekD/+aQ4AOV1aShMHk83wH0gQXby1Papl noxYtWf5FBkg2vFwZMGS9jxY8uSXcXTDRVaq5HiL6tcSWw8ZZ2AD/KFmcemxgUOgWqfk NIYeqYv497A/XE8UjuYOI9+PnIrYKT6ykRFVmYtENkUuIbLHd8Xb0cb/urgOeY3xFYrp +wnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qf14si15475857ejc.165.2021.10.12.08.23.09; Tue, 12 Oct 2021 08:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237407AbhJLPUe (ORCPT + 99 others); Tue, 12 Oct 2021 11:20:34 -0400 Received: from comms.puri.sm ([159.203.221.185]:51836 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbhJLPUd (ORCPT ); Tue, 12 Oct 2021 11:20:33 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id D6D32DFAC1; Tue, 12 Oct 2021 08:18:31 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WF3Tp6OFxLqq; Tue, 12 Oct 2021 08:18:31 -0700 (PDT) Message-ID: <2d3b0e8f422b7ff08a5c4ce804a1884eaf9b5d60.camel@puri.sm> Subject: Re: [PATCH] scsi: sd: print write through due to no caching mode page as warning From: Martin Kepplinger To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: dgilbert@interlog.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 12 Oct 2021 17:18:26 +0200 In-Reply-To: <20210122083000.32598-1-martin.kepplinger@puri.sm> References: <20210122083000.32598-1-martin.kepplinger@puri.sm> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, dem 22.01.2021 um 09:30 +0100 schrieb Martin Kepplinger: > For SD cardreaders it's extremely common not to find cache on disk. > The following error messages are thus very common and don't point > to a real error one could try to fix but rather describe how the disk > works: > > sd 0:0:0:0: [sda] No Caching mode page found > sd 0:0:0:0: [sda] Assuming drive cache: write through > > Print these messages as warnings instead of errors. > > Signed-off-by: Martin Kepplinger > --- >  drivers/scsi/sd.c | 5 +++-- >  1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c > index e7c52d6df4dc..db0171c81c5b 100644 > --- a/drivers/scsi/sd.c > +++ b/drivers/scsi/sd.c > @@ -2808,7 +2808,8 @@ sd_read_cache_type(struct scsi_disk *sdkp, > unsigned char *buffer) >                         } >                 } >   > -               sd_first_printk(KERN_ERR, sdkp, "No Caching mode page > found\n"); > +               sd_first_printk(KERN_WARNING, sdkp, > +                               "No Caching mode page found\n"); >                 goto defaults; >   >         Page_found: > @@ -2863,7 +2864,7 @@ sd_read_cache_type(struct scsi_disk *sdkp, > unsigned char *buffer) >                                 "Assuming drive cache: write > back\n"); >                 sdkp->WCE = 1; >         } else { > -               sd_first_printk(KERN_ERR, sdkp, > +               sd_first_printk(KERN_WARNING, sdkp, >                                 "Assuming drive cache: write > through\n"); >                 sdkp->WCE = 0; >         } hi Bart and all who it may concern, does this "consmetic" change have any chance of being acceptible? At least it'd be nice if messages sent as error are real errors that needs fixing. the patch still applies. thank you, martin