Re: PATA Sil680 Disabling IRQ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/26/08, Jeff Garzik <jeff@xxxxxxxxxx> wrote:
> Fajun Chen wrote:
> > Hi All,
> >
> > Attached is the source code to Identify Device through sg (courtesy of
> > Mark Lord).  I intentionally change the data transfer from
> > SG_DXFER_FROM_DEV to SG_DXFER_TO_DEV to expose the problem.  When the
> > code is run on SATA Sil3124 controller,  it's working well. But when
> > it is run on PATA Sil680,  IRQ was disabled right away (see dmesg log
> > below). I have a old kernel 2.6.18 rc2 but I suspect the same problem
> > exists in latest kernel release as well.  Please execute above code in
> > your system and see what happens.
>
> root has permission to do anything -- including misprogram the device
> resulting in a lockup / data corruption / nuclear explosion.
>
> We do not work around problems that only present themselves when a
> privileged administrator is doing something really wrong.
>

PIO read/writes with wrong direction is not the only failure mode,
PATA sil680 also failed with disabling IRQ with some unsupported
commands such as Trusted Send (0x5E) even with perfect TF data. Given
that some ATA commands are optional,  we may have a chance to hit the
trap even with well programmed code.

What would take to harden the PATA ISR code such that it fails more gracefully?

Thanks,
Fajun
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux