lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 9 Oct 2006 23:52:34 -0700
From:	"Allen Martin" <AMartin@...dia.com>
To:	"Jeff Garzik" <jeff@...zik.org>,
	"Robert Hancock" <hancockr@...w.ca>
Cc:	"linux-kernel" <linux-kernel@...r.kernel.org>,
	<linux-ide@...r.kernel.org>, <prakash@...noor.de>
Subject: RE: [RFC PATCH] nForce4 ADMA with NCQ: It's aliiiive..

> > -Jeff will probably cringe at how I implemented the 
> > bmdma_stop/start/status/setup functions. This kludge of toggling 
> > ATA_FLAG_MMIO off for the call into libata was needed since this 
> > controller is almost what libata calls ATA_FLAG_MMIO, but not quite 
> > (the ATA taskfile registers are MMIO but the BMDMA 
> registers are PIO). 
> > This is also why I needed the patch to libata-sff.c to use the 
> > adapter's bmdma_status function rather than hardcoded 
> ata_bmdma_status.
> 
> *shrug*  I don't cringe if that's the most expedient way to 
> do something.
> 
> But I really don't think that is necessary.  I will take a 
> look at docs and see how things match up, when I am much more 
> awake.  Most likely you need to be using another set of 
> registers, and be all MMIO, all the time.

You shouldn't be touching BM registers when ADMA is enabled, it can
cause bad things to happen.

You should be using BM registers when doing ATAPI protocol though, as it
doesn't work through ADMA.  So I wouldn't say you should be using MMIO
all the time.

-Allen
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ