Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1972144rwb; Thu, 29 Sep 2022 04:47:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RiImG5uEe9o0tq6btdUNJkjU/PGRjVgx9k+1hBm3+EjBTohN+i7AM2a8UH2OoHJYlbDT1 X-Received: by 2002:a05:6402:34cf:b0:454:53ae:6e83 with SMTP id w15-20020a05640234cf00b0045453ae6e83mr2911850edc.80.1664452030821; Thu, 29 Sep 2022 04:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664452030; cv=none; d=google.com; s=arc-20160816; b=KxL9vbGa70S7/75xy//0kj3J1eXEzwiD8uYj6LMQzKmaTqq7m03upsA7oSsQULC6v1 yD24rUXE91mmPXt9eVzQGc7DplIi3f3tnL0i/VDpj4Atyd7tMpRQeQV2KmRIUlxZuxkO GObWuAbPG9PypvDExyoX6WiIhO00cpcO96hBQzgJBNKmJyEudOkZe5+OT7tDIz6TlP46 4WHVUwAVL7LkNcYQ4t6wCcslj2eOWukq9W7UTH+gjJvjaiSyDF21NmKYY8HX9OL8v87X pzZXOWQyQQKn+QwSXMWYCH45y3Q2ZeCqkcugUT2toBL0It734tly43nGTCNgbev4964R aCkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=epSANtpvCZ+CmdDt2oxmNcDoGWZ1PHjpXx0FPIg+Xxw=; b=EeJAdC2R0mE3yzgRY87zLu++irk2Y9YV64q+Ino+YdEZA8uBwQntIvLhRrRTH2Xju9 3B3IN3lQwgSwLkC29C+tnsT355PSsAJLPFqdffjJ5i7Avr88Va8dK4b7lg7oNSxvm34v X4FTl3Qk7p6xqR8n+ygykvXEz9F28vE3wf8eCW7DEZ0ilSLlk84xQ+57etFSpC3Ke8ws NHMIo/XdS7gSUa+XMoz2C8EowChP8BkLR76SWpcZIukXtojX8XcnECvGq4v2HpfH/pR5 4x4Tl7VLbKWc8W71CARQP/VdAJK3QedcgxjW7faZ9zxCzmCsGB/Bu0qEQvto2Oj8UVuz zrXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=D5r41dtM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi25-20020a170906a25900b007429f0c69ccsi7015737ejb.579.2022.09.29.04.46.45; Thu, 29 Sep 2022 04:47:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=D5r41dtM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235065AbiI2Km3 (ORCPT + 99 others); Thu, 29 Sep 2022 06:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234729AbiI2Km1 (ORCPT ); Thu, 29 Sep 2022 06:42:27 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E931476A1; Thu, 29 Sep 2022 03:42:26 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 253F121E2E; Thu, 29 Sep 2022 10:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1664448145; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=epSANtpvCZ+CmdDt2oxmNcDoGWZ1PHjpXx0FPIg+Xxw=; b=D5r41dtMjPlAnaldYXV87VdSC41hZ8hL9/3lFlQNksz5JsBykNnY7++MyhzOqJm4jY8M4T XRT7xYBhogGCXgJ9kBzzJp4IYn+yUTgQ4GqgDMdxiX45neFWhcZokkhSVDoRplqUL59gRg VviJupZMIyrAAxz05wLS/y3rcX8johc= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D9BE413A71; Thu, 29 Sep 2022 10:42:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id J20bM5B2NWNqWQAAMHmgww (envelope-from ); Thu, 29 Sep 2022 10:42:24 +0000 Message-ID: <544cc60fd36647ee5257f2a863dbecb905095c51.camel@suse.com> Subject: Re: [PATCH] scsi: core: Add BLIST_NO_ASK_VPD_SIZE for some VDASD From: Martin Wilck To: Lee Duncan , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Duncan , Hannes Reinecke Date: Thu, 29 Sep 2022 12:42:24 +0200 In-Reply-To: <20220928181350.9948-1-leeman.duncan@gmail.com> References: <20220928181350.9948-1-leeman.duncan@gmail.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-09-28 at 11:13 -0700, Lee Duncan wrote: > From: Lee Duncan >=20 > Some storage, such as AIX VDASD (virtual storage) and IBM 2076 > (front end) do not like the recent commit: >=20 > commit c92a6b5d6335 ("scsi: core: Query VPD size before getting full > page") >=20 > That commit changed getting SCSI VPD pages so that we now read > just enough of the page to get the actual page size, then read > the whole page in a second read. The problem is that the above > mentioned hardware returns zero for the page size, because of > a firmware error. In such cases, until the firmware is fixed, > this new black flag says to revert to the original method of > reading the VPD pages, i.e. try to read as a whole buffer's > worth on the first try. >=20 > Fixes: c92a6b5d6335 ("scsi: core: Query VPD size before getting full > page") > Reported-by: Martin Wilck > Suggested-by: Hannes Reinecke > Signed-off-by: Lee Duncan Reviewed-by: Martin Wilck