Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315518 > unrolled thread

[BUG] Devices breaking due to CONFIG_ZONE_DEVICE

Started bySudip Mukherjee <sudipm.mukherjee@gmail.com>
First post2016-01-23 05:50 +0100
Last post2016-01-24 10:50 +0100
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [BUG] Devices breaking due to CONFIG_ZONE_DEVICE Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2016-01-23 05:50 +0100
    Re: [BUG] Devices breaking due to CONFIG_ZONE_DEVICE Dan Williams <dan.j.williams@intel.com> - 2016-01-23 06:50 +0100
      Re: [BUG] Devices breaking due to CONFIG_ZONE_DEVICE Dan Williams <dan.j.williams@intel.com> - 2016-01-23 07:20 +0100
        Re: [BUG] Devices breaking due to CONFIG_ZONE_DEVICE Borislav Petkov <bp@suse.de> - 2016-01-24 10:50 +0100

#1315518 — [BUG] Devices breaking due to CONFIG_ZONE_DEVICE

FromSudip Mukherjee <sudipm.mukherjee@gmail.com>
Date2016-01-23 05:50 +0100
Subject[BUG] Devices breaking due to CONFIG_ZONE_DEVICE
Message-ID<qTYj8-5TC-5@gated-at.bofh.it>
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?

Regards
Sudip

[toc] | [next] | [standalone]


#1315522

FromDan Williams <dan.j.williams@intel.com>
Date2016-01-23 06:50 +0100
Message-ID<qTZfb-6AZ-3@gated-at.bofh.it>
In reply to#1315518
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.

[toc] | [prev] | [next] | [standalone]


#1315524

FromDan Williams <dan.j.williams@intel.com>
Date2016-01-23 07:20 +0100
Message-ID<qTZId-74k-3@gated-at.bofh.it>
In reply to#1315522
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.

[toc] | [prev] | [next] | [standalone]


#1315854

FromBorislav Petkov <bp@suse.de>
Date2016-01-24 10:50 +0100
Message-ID<qUpt1-2PE-11@gated-at.bofh.it>
In reply to#1315524
+ 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 Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web