Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149462 - sys-apps/hdparm - HDIO_SET_DMA failed: Operation not permitted
Summary: sys-apps/hdparm - HDIO_SET_DMA failed: Operation not permitted
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 16:49 UTC by Mauro proto
Modified: 2006-09-29 02:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro proto 2006-09-28 16:49:57 UTC
Problem at boot:
* Running hdparm on /dev/hda ...
 HDIO_SET_DMA failed: Operation not permitted [ ok ] 
* Running hdparm on /dev/hdb ...
 HDIO_SET_DMA failed: Operation not permitted [ ok ] 


Kernel DMA Config:
tabacco linux # cat .config|grep DMA
CONFIG_GENERIC_ISA_DMA=y
CONFIG_ISA_DMA_API=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_CARDMAN_4000 is not set
# CONFIG_CARDMAN_4040 is not set
tabacco linux #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-29 01:06:18 UTC
This is NOT a Gentoo Bugzilla product bug. Please, read the descriptions.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-29 01:07:15 UTC
Reopen with sys-apps/hdparm version, emerge --info and /etc/conf.d/hdparm attached.
Comment 3 Mauro proto 2006-09-29 02:10:56 UTC
sys-apps/hdparm-6.3


Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8-panic i686)
=================================================================
System uname: 2.6.17-gentoo-r8-panic i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 28 Sep 2006 23:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -msse2 -mmmx -msse -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium-m -msse2 -mmmx -msse -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT@euro"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache arts asf ati avi bash-completion beagle berkdb bitmap-fonts browserplugin bzip2 cairo caps cdr cli crd crypt cups curl daap dbus dga djvu dlloader dmi dri dts dvd dvdr dvi elibc_glibc emacs evo exif fbcon ffmpeg firefox flac foomatic fortran gdbm gif gimpprint glitz gnome gnutls gpm gtk hal i810 imagemagick input_devices_keyboard input_devices_mouse input_devices_synaptics intel ipod ipv6 isdnlog java jpeg kernel_linux libg++ libnotify libsexy linguas_it lns mad mmap mmx mng mono mozilla moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg musepack nautilus ncurses network njb nls nptl nptlonly nsplugin numeric ogg ole opengl openntpd pam pcre pdf perl php png portaudio posix ppds pppd pwdb python qt qt3 radeon readline real reflection samba sdl session sndfile spl sse sse2 ssl svg t1lib tcpd theora threads truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd video_cards_i810 video_cards_vesa video_cards_vga vorbis win32codecs wma wmf wmv wxwindows x264 x86 xine xml2 xmms xorg xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

tabacco emanuele # cat /etc/conf.d/hdparm
# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm

# You can either set hdparm arguments for each drive using hdX_args,
# discX_args, cdromX_args and genericX_args, e.g.
#
# hda_args="-d1 -X66"
# disc1_args="-d1"
# cdrom0_args="-d1"

# or you can set options for all PATA drives
pata_all_args="-d1"

# or you can set options for all SATA drives
sata_all_args=""

# or, you can set hdparm options for all drives
all_args=""
tabacco emanuele # 


tabacco emanuele # hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
tabacco emanuele #    




tabacco emanuele # dmesg |grep DMA
  DMA zone: 4096 pages, LIFO batch:0
tabacco emanuele # 
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2006-09-29 02:28:10 UTC
This error is telling you that your current IDE driver is not capable of tuning. "-march=pentium-m" suggests a Centrino laptop, in which case you should have set "Intel PIIX" for PATA or "Intel ICH" for SATA.
You failed to configure your kernel correctly, there is nothing that hdparm or our setup scripts can do about that.