From patchwork Sun Aug 9 07:28:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 31011 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by bilbo.ozlabs.org (Postfix) with ESMTP id 38CB1B7B74 for ; Sun, 9 Aug 2009 17:28:38 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750725AbZHIH22 (ORCPT ); Sun, 9 Aug 2009 03:28:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750731AbZHIH22 (ORCPT ); Sun, 9 Aug 2009 03:28:28 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:54051 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbZHIH22 (ORCPT ); Sun, 9 Aug 2009 03:28:28 -0400 Received: by bwz19 with SMTP id 19so2098863bwz.37 for ; Sun, 09 Aug 2009 00:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=pa2tKeRd50Ve0BNSDdEQE4dXWaH7C1LkZDaO+H5DD0c=; b=ceKSsepFifLunpfCqqqhpADHyHFnYf2c0puoxirdNFdFShuZRMD8lJs052D8qxB97+ c97fUIuFjHDZ+yLLIqmxLKijsI2fkYjXJn0TM/FkiNUBiumBZ3eH3BqC9Lq/3BhtGbad AikOpHhdv/rO490tQeb4rfiD9A3pgZh9kMYPI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Xf0ULoTsIo70kk85I4cjOtAfH9pd1qaHjK7eAWpQWpBAHMxlLANAutk83Mt89+B8jF SeWFsWQSwqcVOAUjKbKXTNYFgozRjHfnkBWUFG+d3u0wbrMIM1rDtx4yR0DDIsT01vaV HlL8RE5FfaSMMW/bnRH0bDTXN8As3ppNVTeWs= Received: by 10.204.70.19 with SMTP id b19mr4848861bkj.62.1249802907683; Sun, 09 Aug 2009 00:28:27 -0700 (PDT) Received: from liondog.tnic (f053087117.adsl.alicedsl.de [78.53.87.117]) by mx.google.com with ESMTPS id y15sm4975247fkd.17.2009.08.09.00.28.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Aug 2009 00:28:26 -0700 (PDT) Received: by liondog.tnic (Postfix, from userid 1000) id 248024B87DB; Sun, 9 Aug 2009 09:28:23 +0200 (CEST) Date: Sun, 9 Aug 2009 09:28:23 +0200 From: Borislav Petkov To: Jim Duda Cc: linux-ide@vger.kernel.org Subject: Re: 2.6.31-rc1 with ide-tape / STT2000A Message-ID: <20090809072823.GA2130@liondog.tnic> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Hi, On Sat, Aug 08, 2009 at 04:30:35PM -0400, Jim Duda wrote: > I'm having trouble using my STT2000A ATAPE TAPE drive after > upgrading to at least kernel 2.6.30. I use the tape drive solely > for tape backup using simple tar commands. > > In previous kernels, I was able to access the tape drive using the > ide-scsi adaptation layer with /dev/st0 > > I realize that in transitioning through 2.6.30 the kernel has > abandoned the use of ide-scsi. As I understand it, ide-tape > interacts directly with the tape drive and I am supposed to now use > /dev/ht0. Bartlomiej and I were working on cleaning up IDE but were interrupted prematurely and IDE is now in deep maintenance mode. Concerning ide-tape, the driver wasn't being used for ages and was even about to be removed at a certain point but we decided to wait. Anyways, the driver lost a lot of fat in the process. I even bought an STT8000A tape off ebay just to test it here and fix it up so that it can be usable. If you'd like to test patches you can get Dave's linux-next git repo at http://git.kernel.org/?p=linux/kernel/git/davem/ide-next-2.6.git;a=summary apply the patch below and catch all boot output from your machine and send it to me. Thanks. diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 7b2032b..81181cd 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -48,7 +48,7 @@ #include /* define to see debug info */ -#undef IDETAPE_DEBUG_LOG +#define IDETAPE_DEBUG_LOG #ifdef IDETAPE_DEBUG_LOG #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args) @@ -1727,6 +1727,8 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor) int buffer_size; u16 *ctl = (u16 *)&tape->caps[12]; + drive->debug_mask = 0xffffffff; + ide_debug_log(IDE_DBG_FUNC, "minor: %d", minor); drive->pc_callback = ide_tape_callback;