Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756014AbYHNPHe (ORCPT ); Thu, 14 Aug 2008 11:07:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751518AbYHNPH0 (ORCPT ); Thu, 14 Aug 2008 11:07:26 -0400 Received: from mtagate2.de.ibm.com ([195.212.29.151]:26134 "EHLO mtagate2.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbYHNPHZ (ORCPT ); Thu, 14 Aug 2008 11:07:25 -0400 Subject: Re: Fwd: [Patch 2.6] s390 - Allow ECKD devices to be used with older controllers and emulation From: Martin Schwidefsky Reply-To: schwidefsky@de.ibm.com To: Frans Pop Cc: linux-s390@vger.kernel.org, Ivan Warren , linux-kernel@vger.kernel.org In-Reply-To: <200808140108.00375.elendil@planet.nl> References: <489C9494.9070504@vmfacility.fr> <200808140108.00375.elendil@planet.nl> Content-Type: text/plain Organization: IBM Corporation Date: Thu, 14 Aug 2008 17:07:06 +0200 Message-Id: <1218726426.25578.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1486 Lines: 36 On Thu, 2008-08-14 at 01:07 +0200, Frans Pop wrote: > s390 dasd ECKD drivers issues a Perform Subsystem Function / Prepare > for Read SubSystem Data with a length of 16. > However, older hardware and documentation specifies a length of 12 > leading to a possible Incorrect Length indication. > This patch activates the SLI CCW flag in order to avoid reporting > the Incorrect Length indication since it is possible that the DASD > control unit may be expecting a length of 12, not 16. > -- Ivan Warren (ivan@vmfacility.fr) > > diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index 773b3fe..c4e3935 100644 > --- a/drivers/s390/block/dasd_eckd.c > +++ b/drivers/s390/block/dasd_eckd.c > @@ -810,6 +810,7 @@ static int dasd_eckd_read_features(struct dasd_device *device) > ccw->cmd_code = DASD_ECKD_CCW_PSF; > ccw->count = sizeof(struct dasd_psf_prssd_data); > ccw->flags |= CCW_FLAG_CC; > + ccw->flags |= CCW_FLAG_SLI; > ccw->cda = (__u32)(addr_t) prssdp; > > /* Read Subsystem Data - feature codes */ That makes sense, can I get a signed-off-by for the patch please? -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/