adding disable_ide_dma true in the kernel settings file

From a quick look, the ATA driver only looks to safe mode settings for
that, and not the kernel file. The attached patch should address that.

ticket : #10253

Change-Id: I5e5c2474fecbd441a36a3600f7f16a964e0945dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/56
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Rene Gollent
2020-05-03 13:22:31 +00:00
committed by Adrien Destugues
parent 1f3909ade1
commit 28b3438ecd
@@ -32,15 +32,9 @@ ATAChannel::ATAChannel(device_node *node)
snprintf(fDebugContext, sizeof(fDebugContext), " %" B_PRIu32, fChannelID);
if (fUseDMA) {
void *settings = load_driver_settings(B_SAFEMODE_DRIVER_SETTINGS);
if (settings != NULL) {
if (get_driver_boolean_parameter(settings,
B_SAFEMODE_DISABLE_IDE_DMA, false, false)) {
TRACE_ALWAYS("disabling DMA because of safemode setting\n");
fUseDMA = false;
}
unload_driver_settings(settings);
if (get_safemode_boolean(B_SAFEMODE_DISABLE_IDE_DMA, false)) {
TRACE_ALWAYS("disabling DMA because of safemode setting\n");
fUseDMA = false;
}
}