Re: http://bugzilla.kernel.org/show_bug.cgi?id=11742

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

 



> diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
> index 13265a8..6943462 100644
> --- a/drivers/ide/ide-cd.c
> +++ b/drivers/ide/ide-cd.c
> @@ -1251,8 +1251,14 @@ static void cdrom_do_block_pc(ide_drive_t
> *drive, struct request *rq)
>  		 */
>  		alignment = queue_dma_alignment(q) | q->dma_pad_mask;
>  		if ((unsigned long)buf & alignment || rq->data_len & alignment
> -		    || object_is_on_stack(buf))
> +		    || object_is_on_stack(buf)) {
> +			printk(KERN_ERR "Disabling dma for ATA_PC, "
> +			       "queue_dma_alignment: 0x%x, q->dma_pad_mask: 0x%x,"
> +			       "buf: %p, rq->data_len: 0x%x, on_stack: %d\n",
> +			       queue_dma_alignment(q), q->dma_pad_mask, buf,
> +			       rq->data_len, object_is_on_stack(buf));
>  			drive->dma = 0;
> +		}
>  	}
>  }

Hi Boris, please send me patches already formatted to be applied by patch 
program, because the substitution of spaces with tabs and other indentation 
characters requires a lot of time and it has never worked (or explain me how 
to make it work :))

Anyhow, I have given a look to the patch compared to the original file. Is it 
possible to apply to plain 2.6.27 kernel? From a brief look, it is very 
different from 2.6.27 ide-cd.c file and maybe I need to download the 
development branch of the kernel with GIT to apply it or a more recent 
subversion like 2.6.27.2.

Waiting for you.

P.S: I have received messages from bugzilla, but I have subscribed to this 
mailing list on Fujita's suggestion just to ease communication. What do you 
prefer between bugzilla and linux-ide? 
--
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