From: Prarit Bhargava <prarit@redhat.com>
To: Terry Loftin <terry.loftin@hp.com>
Cc: linux-ia64@vger.kernel.org, Bernhard Walle <bwalle@suse.de>,
Khalid Aziz <khalid_aziz@hp.com>,
kexec@lists.infradead.org
Subject: Re: [IA64] [kdump] machveg=dig on hpzx1 platforms
Date: Thu, 05 Jul 2007 11:39:35 -0400 [thread overview]
Message-ID: <468D10B7.4020600@redhat.com> (raw)
In-Reply-To: <467AE260.7030906@hp.com>
>
> Here is a patch to do that. We use this internally, but
> I had forgotten to post it.
>
Not that it matters a huge amount, but this has been in RHEL5 for
sometime and does fix the "machvec=dig" nuisance.
(Sorry for not replying earlier Terry -- I had a huge backlog of things
to get to before this ...)
P.
> -T
>
> ---
> diff --git a/arch/ia64/hp/common/sba_iommu.c
> b/arch/ia64/hp/common/sba_iommu.c
> --- a/arch/ia64/hp/common/sba_iommu.c
> +++ b/arch/ia64/hp/common/sba_iommu.c
> @@ -42,6 +42,9 @@ #include <asm/dma.h>
> #include <asm/system.h> /* wmb() */
>
> #include <asm/acpi-ext.h>
> +#include <linux/crash_dump.h>
> +
> +extern int swiotlb_late_init_with_default_size (size_t size);
>
> #define PFX "IOC: "
>
> @@ -2026,11 +2029,24 @@ sba_init(void)
> if (!ia64_platform_is("hpzx1") &&
> !ia64_platform_is("hpzx1_swiotlb"))
> return 0;
>
> +#ifdef CONFIG_CRASH_DUMP
> + /* If we are booting a kdump kernel, the sba_iommu will
> + * cause devices that were not shutdown properly to MCA
> + * as soon as they are turned back on. Our only option for
> + * a successful kdump kernel boot is to use the swiotlb.
> + */
> + if (elfcorehdr_addr < ELFCORE_ADDR_MAX) {
> + if (swiotlb_late_init_with_default_size(64 * (1<<20)) != 0)
> + panic("Unable to initialize software I/O TLB:"
> + " Try machvec=dig boot option");
> + machvec_init("dig");
> + return 0;
> + }
> +#endif
> +
> acpi_bus_register_driver(&acpi_sba_ioc_driver);
> if (!ioc_list) {
> #ifdef CONFIG_IA64_GENERIC
> - extern int swiotlb_late_init_with_default_size (size_t size);
> -
> /*
> * If we didn't find something sba_iommu can claim, we
> * need to setup the swiotlb and switch to the dig machvec.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: Prarit Bhargava <prarit@redhat.com>
To: Terry Loftin <terry.loftin@hp.com>
Cc: linux-ia64@vger.kernel.org, Bernhard Walle <bwalle@suse.de>,
Khalid Aziz <khalid_aziz@hp.com>,
kexec@lists.infradead.org
Subject: Re: [IA64] [kdump] machveg=dig on hpzx1 platforms
Date: Thu, 05 Jul 2007 15:39:35 +0000 [thread overview]
Message-ID: <468D10B7.4020600@redhat.com> (raw)
In-Reply-To: <467AE260.7030906@hp.com>
>
> Here is a patch to do that. We use this internally, but
> I had forgotten to post it.
>
Not that it matters a huge amount, but this has been in RHEL5 for
sometime and does fix the "machvec=dig" nuisance.
(Sorry for not replying earlier Terry -- I had a huge backlog of things
to get to before this ...)
P.
> -T
>
> ---
> diff --git a/arch/ia64/hp/common/sba_iommu.c
> b/arch/ia64/hp/common/sba_iommu.c
> --- a/arch/ia64/hp/common/sba_iommu.c
> +++ b/arch/ia64/hp/common/sba_iommu.c
> @@ -42,6 +42,9 @@ #include <asm/dma.h>
> #include <asm/system.h> /* wmb() */
>
> #include <asm/acpi-ext.h>
> +#include <linux/crash_dump.h>
> +
> +extern int swiotlb_late_init_with_default_size (size_t size);
>
> #define PFX "IOC: "
>
> @@ -2026,11 +2029,24 @@ sba_init(void)
> if (!ia64_platform_is("hpzx1") &&
> !ia64_platform_is("hpzx1_swiotlb"))
> return 0;
>
> +#ifdef CONFIG_CRASH_DUMP
> + /* If we are booting a kdump kernel, the sba_iommu will
> + * cause devices that were not shutdown properly to MCA
> + * as soon as they are turned back on. Our only option for
> + * a successful kdump kernel boot is to use the swiotlb.
> + */
> + if (elfcorehdr_addr < ELFCORE_ADDR_MAX) {
> + if (swiotlb_late_init_with_default_size(64 * (1<<20)) != 0)
> + panic("Unable to initialize software I/O TLB:"
> + " Try machvec=dig boot option");
> + machvec_init("dig");
> + return 0;
> + }
> +#endif
> +
> acpi_bus_register_driver(&acpi_sba_ioc_driver);
> if (!ioc_list) {
> #ifdef CONFIG_IA64_GENERIC
> - extern int swiotlb_late_init_with_default_size (size_t size);
> -
> /*
> * If we didn't find something sba_iommu can claim, we
> * need to setup the swiotlb and switch to the dig machvec.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2007-07-05 15:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 18:24 [IA64] [kdump] machveg=dig on hpzx1 platforms Bernhard Walle
2007-06-21 18:24 ` Bernhard Walle
2007-06-21 20:41 ` Terry Loftin
2007-06-21 20:41 ` Terry Loftin
2007-06-22 9:41 ` Bernhard Walle
2007-06-22 9:41 ` Bernhard Walle
2007-06-26 4:28 ` Milton Miller
2007-07-05 15:39 ` Prarit Bhargava [this message]
2007-07-05 15:39 ` Prarit Bhargava
2007-07-11 20:34 ` Luck, Tony
2007-07-11 20:34 ` Luck, Tony
2007-07-12 17:33 ` Terry Loftin
2007-07-12 17:33 ` Terry Loftin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=468D10B7.4020600@redhat.com \
--to=prarit@redhat.com \
--cc=bwalle@suse.de \
--cc=kexec@lists.infradead.org \
--cc=khalid_aziz@hp.com \
--cc=linux-ia64@vger.kernel.org \
--cc=terry.loftin@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.