* Re: [BUG] Devices breaking due to CONFIG_ZONE_DEVICE
[not found] ` <CAPcyv4ivKNb2=505ytkVMbmOd=49da1EsHoG=Di60XJyoQTs8g@mail.gmail.com>
@ 2016-01-24 9:40 ` Borislav Petkov
0 siblings, 0 replies; only message in thread
From: Borislav Petkov @ 2016-01-24 9:40 UTC (permalink / raw)
To: Dan Williams
Cc: Sudip Mukherjee, Christoph Hellwig, H. Peter Anvin, Ingo Molnar,
Dave Hansen, Rik van Riel, Mel Gorman, Jerome Glisse, markk,
Joerg Roedel, lkml, linux-mm
+ linux-mm
On Fri, Jan 22, 2016 at 10:15:17PM -0800, Dan Williams wrote:
> On Fri, Jan 22, 2016 at 9:47 PM, Dan Williams <dan.j.williams@intel.com> wrote:
> > On Fri, Jan 22, 2016 at 8:46 PM, Sudip Mukherjee
> > <sudipm.mukherjee@gmail.com> wrote:
> >> Hi All,
> >> Commit 033fbae988fc ("mm: ZONE_DEVICE for "device memory"") has
> >> introduced CONFIG_ZONE_DEVICE while sacrificing CONFIG_ZONE_DMA.
> >> Distributions like Ubuntu has started enabling CONFIG_ZONE_DEVICE and
> >> thus breaking parallel port. Please have a look at
> >> https://bugzilla.kernel.org/show_bug.cgi?id=110931 for the bug report.
> >>
> >> Apart from parallel port I can see some sound drivers will also break.
> >>
> >> Now what is the possible solution for this?
> >
> > The tradeoff here is enabling direct-I/O for persistent memory vs
> > support for legacy devices.
> >
> > One possible solution is to alias ZONE_DMA and ZONE_DEVICE. At early
> > boot if pmem is detected disable these legacy devices, or the reverse
> > disable DMA to persistent memory if a legacy device is detected. The
> > latter is a bit harder to do as I think we would want to make the
> > decision early during memory init before we would know if any parallel
> > ports or ISA sound cards are present.
>
> ...another option that might be cleaner is to teach GFP_DMA to get
> memory from a different mechanism. I.e. don't use the mm-zone
> infrastructure to organize that small 16MB pool of memory.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix ImendA?rffer, Jane Smithard, Graham Norton, HRB 21284 (AG NA 1/4 rnberg)
--
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-24 9:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20160123044643.GA3709@sudip-pc>
[not found] ` <CAPcyv4hiKGXWWqO09dchQ3U429zV=Hrbm5d=cMzHkRj6_EpJig@mail.gmail.com>
[not found] ` <CAPcyv4ivKNb2=505ytkVMbmOd=49da1EsHoG=Di60XJyoQTs8g@mail.gmail.com>
2016-01-24 9:40 ` [BUG] Devices breaking due to CONFIG_ZONE_DEVICE Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox