Re: [PATCH tty v1 00/74] serial: wrappers for uart port lock

2023-09-15 Thread Maciej W. Rozycki
On Fri, 15 Sep 2023, Thomas Gleixner wrote: > >> Patches 2-74 switch all uart port locking call sites to use the new > >> wrappers. These patches were automatically generated using coccinelle. > > > > Hmm, no need to do this for drivers/tty/serial/zs.c? > > zs.c does not use port lock at all.

Re: [PATCH tty v1 00/74] serial: wrappers for uart port lock

2023-09-14 Thread Maciej W. Rozycki
On Thu, 14 Sep 2023, John Ogness wrote: > Patches 2-74 switch all uart port locking call sites to use the new > wrappers. These patches were automatically generated using coccinelle. Hmm, no need to do this for drivers/tty/serial/zs.c? Maciej

Re: [PATCH v9 00/14] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-06-20 Thread Maciej W. Rozycki
On Fri, 16 Jun 2023, Bjorn Helgaas wrote: > I agree that as I rearranged it, the workaround doesn't apply in all > cases simultaneously. Maybe not ideal, but maybe not terrible either. > Looking at it again, maybe it would have made more sense to move the > pcie_wait_for_link_delay() change to

Re: [PATCH v9 00/14] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-06-16 Thread Maciej W. Rozycki
On Thu, 15 Jun 2023, Bjorn Helgaas wrote: > > If doing it this way, which I actually like, I think it would be a little > > bit better performance- and style-wise if this was written as: > > > > if (pci_is_pcie(dev)) { > > bridge = pci_upstream_bridge(dev); > >

Re: [PATCH v9 00/14] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-06-14 Thread Maciej W. Rozycki
On Wed, 14 Jun 2023, Bjorn Helgaas wrote: > > This is v9 of the change to work around a PCIe link training phenomenon > > where a pair of devices both capable of operating at a link speed above > > 2.5GT/s seems unable to negotiate the link speed and continues training > > indefinitely with

Re: [PATCH v8 7/7] PCI: Work around PCIe link training failures

2023-06-11 Thread Maciej W. Rozycki
On Thu, 4 May 2023, Bjorn Helgaas wrote: > We talked about reusing pcie_retrain_link() earlier. IIRC that didn't > work: ASPM needs to use PCI_EXP_LNKSTA_LT because not all devices > support PCI_EXP_LNKSTA_DLLLA, and you need PCI_EXP_LNKSTA_DLLLA > because the erratum makes PCI_EXP_LNKSTA_LT

[PATCH v9 14/14] PCI: Work around PCIe link training failures

2023-06-11 Thread Maciej W. Rozycki
ort their data link being up. Signed-off-by: Maciej W. Rozycki Link: https://lore.kernel.org/r/alpine.deb.2.21.2203022037020.56...@angie.orcam.me.uk/ Link: https://source.denx.de/u-boot/u-boot/-/commit/a398a51ccc68 --- Changes from v8: - Rename `pcie_downstream_link_retrain' to `pcie_failed_link_retr

[PATCH v9 13/14] PCI: Add failed link recovery for device reset events

2023-06-11 Thread Maciej W. Rozycki
Request failed link recovery with any upstream bridge where a device has not come back after reset within PCI_RESET_WAIT time. Reset the polling interval if recovery succeeded, otherwise continue as usual. Signed-off-by: Maciej W. Rozycki --- New change in v9, factored out from 7/7: - Remove

[PATCH v9 12/14] PCI: Provide stub failed link recovery for device probing and hot plug

2023-06-11 Thread Maciej W. Rozycki
This now fails unconditionally and will be always optimised away, but provides for quirks to implement recovery for failed links detected in device probing and device hot plug events. Signed-off-by: Maciej W. Rozycki --- New change in v9, factored out from 7/7: - Rename

[PATCH v9 11/14] PCI: Use `pcie_wait_for_link_status' in `pcie_wait_for_link_delay'

2023-06-11 Thread Maciej W. Rozycki
time. Signed-off-by: Maciej W. Rozycki --- New change in v9. --- drivers/pci/pci.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) linux-pcie-wait-for-link-delay-status.diff Index: linux-macro/drivers/pci/pci.c

[PATCH v9 10/14] PCI: Add support for polling DLLLA to `pcie_retrain_link'

2023-06-11 Thread Maciej W. Rozycki
for the device requested. Signed-off-by: Maciej W. Rozycki --- New change in v9. --- drivers/pci/pci.c | 28 drivers/pci/pci.h |2 +- drivers/pci/pcie/aspm.c |2 +- 3 files changed, 22 insertions(+), 10 deletions(-) linux-pcie-retrain-link-use

[PATCH v9 09/14] PCI: Factor our waiting for link training end

2023-06-11 Thread Maciej W. Rozycki
Move code polling for the Link Training bit to clear into a function of its own. Signed-off-by: Maciej W. Rozycki --- New change in v9. --- drivers/pci/pci.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) linux-pcie-wait-for-link-status.diff

[PATCH v9 08/14] PCI: Use distinct local vars in `pcie_retrain_link'

2023-06-11 Thread Maciej W. Rozycki
-by: Maciej W. Rozycki --- New change in v9. --- drivers/pci/pci.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) linux-pcie-retrain-link-lnkctl-lnksta.diff Index: linux-macro/drivers/pci/pci.c

[PATCH v9 07/14] PCI: Export `pcie_retrain_link' for use outside ASPM

2023-06-11 Thread Maciej W. Rozycki
site accordingly. Document the interface. Signed-off-by: Maciej W. Rozycki --- There's a missing full stop added in a comment in the course of the move, not worth mentioning in the change description IMHO and not worth its own change either. This comment will go away in a subsequent change anyway

[PATCH v9 06/14] net/mlx5: Rely on `link_active_reporting'

2023-06-11 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. No change from v8. Changes from v7

[PATCH v9 05/14] powerpc/eeh: Rely on `link_active_reporting'

2023-06-11 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with a PPC64LE configuration. No change from v8. Changes from v7: - Reorder

[PATCH v9 04/14] PCI: Initialize `link_active_reporting' earlier

2023-06-11 Thread Maciej W. Rozycki
Determine whether Data Link Layer Link Active Reporting is available ahead of calling any fixups so that the cached value can be used there and later on. Signed-off-by: Maciej W. Rozycki --- No change from v8. Changes from v7: - Reorder from 3/7. Changes from v6: - Regenerate against 6.3

[PATCH v9 03/14] PCI: Execute `quirk_enable_clear_retrain_link' earlier

2023-06-11 Thread Maciej W. Rozycki
Make `quirk_enable_clear_retrain_link' `pci_fixup_early' so that any later fixups can rely on `clear_retrain_link' to have been already initialised. Signed-off-by: Maciej W. Rozycki --- No change from v8. Changes from v7: - Reorder from 2/7. No change from v6. No change from v5. New change

[PATCH v9 02/14] PCI: Export PCIe link retrain timeout

2023-06-11 Thread Maciej W. Rozycki
Convert LINK_RETRAIN_TIMEOUT from jiffies to milliseconds, accordingly rename to PCIE_LINK_RETRAIN_TIMEOUT_MS, and make available via "pci.h" for PCI drivers to use. Use in `pcie_wait_for_link_delay'. Signed-off-by: Maciej W. Rozycki --- Changes from v8: - Convert LINK_RETRAIN_TI

[PATCH v9 01/14] PCI: pciehp: Rely on `link_active_reporting'

2023-06-11 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki Reviewed-by: Lukas Wunner --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. No change

[PATCH v9 00/14] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-06-11 Thread Maciej W. Rozycki
Hi, This is v9 of the change to work around a PCIe link training phenomenon where a pair of devices both capable of operating at a link speed above 2.5GT/s seems unable to negotiate the link speed and continues training indefinitely with the Link Training bit switching on and off repeatedly

Re: [PATCH v5 14/26] alpha: Remove empty

2023-05-15 Thread Maciej W. Rozycki
On Mon, 6 Mar 2023, Alexandre Ghiti wrote: > diff --git a/arch/alpha/include/uapi/asm/setup.h > b/arch/alpha/include/uapi/asm/setup.h > deleted file mode 100644 > index 9b3b5ba39b1d.. > --- a/arch/alpha/include/uapi/asm/setup.h > +++ /dev/null > @@ -1,5 +0,0 @@ > -/*

Re: [PATCH v8 7/7] PCI: Work around PCIe link training failures

2023-05-14 Thread Maciej W. Rozycki
On Sun, 7 May 2023, Maciej W. Rozycki wrote: > > We're going to land this series this cycle, come hell or high water. > > Thank you for coming back to me and for your promise. I'll strive to > address your concerns next weekend. > > Unfortunately a PDU in my remo

Re: [PATCH v8 7/7] PCI: Work around PCIe link training failures

2023-05-07 Thread Maciej W. Rozycki
On Thu, 4 May 2023, Bjorn Helgaas wrote: > On Thu, Apr 06, 2023 at 01:21:31AM +0100, Maciej W. Rozycki wrote: > > Attempt to handle cases such as with a downstream port of the ASMedia > > ASM2824 PCIe switch where link training never completes and the link > > continues swi

[PATCH v8 7/7] PCI: Work around PCIe link training failures

2023-04-05 Thread Maciej W. Rozycki
ort their data link being up. Signed-off-by: Maciej W. Rozycki Link: https://lore.kernel.org/r/alpine.deb.2.21.2203022037020.56...@angie.orcam.me.uk/ Link: https://source.denx.de/u-boot/u-boot/-/commit/a398a51ccc68 --- No changes from v7. Changes from v6: - Regenerate against 6.3-rc5. - Shor

[PATCH v8 6/7] net/mlx5: Rely on `link_active_reporting'

2023-04-05 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. Changes from v7: - Reorder from 5/7

[PATCH v8 5/7] powerpc/eeh: Rely on `link_active_reporting'

2023-04-05 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with a PPC64LE configuration. Changes from v7: - Reorder from 4/7. No change

[PATCH v8 4/7] PCI: Initialize `link_active_reporting' earlier

2023-04-05 Thread Maciej W. Rozycki
Determine whether Data Link Layer Link Active Reporting is available ahead of calling any fixups so that the cached value can be used there and later on. Signed-off-by: Maciej W. Rozycki --- Changes from v7: - Reorder from 3/7. Changes from v6: - Regenerate against 6.3-rc5. New change

[PATCH v8 3/7] PCI: Execute `quirk_enable_clear_retrain_link' earlier

2023-04-05 Thread Maciej W. Rozycki
Make `quirk_enable_clear_retrain_link' `pci_fixup_early' so that any later fixups can rely on `clear_retrain_link' to have been already initialised. Signed-off-by: Maciej W. Rozycki --- Changes from v7: - Reorder from 2/7. No change from v6. No change from v5. New change in v5. --- drivers

[PATCH v8 2/7] PCI: Export PCI link retrain timeout

2023-04-05 Thread Maciej W. Rozycki
Rename LINK_RETRAIN_TIMEOUT to PCIE_LINK_RETRAIN_TIMEOUT and make it available via "pci.h" for PCI drivers to use. Signed-off-by: Maciej W. Rozycki --- Changes from v7: - Reorder from 1/7. No change from v6. No change from v5. New change in v5. --- drivers/pci/pci.h |2 +

[PATCH v8 1/7] PCI: pciehp: Rely on `link_active_reporting'

2023-04-05 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki Reviewed-by: Lukas Wunner --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. Changes

[PATCH v8 0/7] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-04-05 Thread Maciej W. Rozycki
Hi, This is v8 of the change to work around a PCIe link training phenomenon where a pair of devices both capable of operating at a link speed above 2.5GT/s seems unable to negotiate the link speed and continues training indefinitely with the Link Training bit switching on and off repeatedly

[PATCH v7 2/7] PCI: Execute `quirk_enable_clear_retrain_link' earlier

2023-04-04 Thread Maciej W. Rozycki
Make `quirk_enable_clear_retrain_link' `pci_fixup_early' so that any later fixups can rely on `clear_retrain_link' to have been already initialised. Signed-off-by: Maciej W. Rozycki --- No change from v6. No change from v5. New change in v5. --- drivers/pci/quirks.c |6 +++--- 1 file

[PATCH v7 3/7] PCI: Initialize `link_active_reporting' earlier

2023-04-04 Thread Maciej W. Rozycki
Determine whether Data Link Layer Link Active Reporting is available ahead of calling any fixups so that the cached value can be used there and later on. Signed-off-by: Maciej W. Rozycki --- Changes from v6: - Regenerate against 6.3-rc5. New change in v6. --- drivers/pci/probe.c |6

[PATCH v7 4/7] powerpc/eeh: Rely on `link_active_reporting'

2023-04-04 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with a PPC64LE configuration. No change from v6. New change in v6. --- arch

[PATCH v7 6/7] PCI: pciehp: Rely on `link_active_reporting'

2023-04-04 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. No change from v6. New change in v6

[PATCH v7 5/7] net/mlx5: Rely on `link_active_reporting'

2023-04-04 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. Changes from v6: - Regenerate

[PATCH v7 7/7] PCI: Work around PCIe link training failures

2023-04-04 Thread Maciej W. Rozycki
ort their data link being up. Signed-off-by: Maciej W. Rozycki Link: https://lore.kernel.org/r/alpine.deb.2.21.2203022037020.56...@angie.orcam.me.uk/ Link: https://source.denx.de/u-boot/u-boot/-/commit/a398a51ccc68 --- Changes from v6: - Regenerate against 6.3-rc5. - Shorten the lore.kernel.org arch

[PATCH v7 1/7] PCI: Export PCI link retrain timeout

2023-04-04 Thread Maciej W. Rozycki
Rename LINK_RETRAIN_TIMEOUT to PCIE_LINK_RETRAIN_TIMEOUT and make it available via "pci.h" for PCI drivers to use. Signed-off-by: Maciej W. Rozycki --- No change from v6. No change from v5. New change in v5. --- drivers/pci/pci.h |2 ++ drivers/pci/pcie/aspm.c |4 +--

[PATCH v7 0/7] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-04-04 Thread Maciej W. Rozycki
Hi, This is v7 of the change to work around a PCIe link training phenomenon where a pair of devices both capable of operating at a link speed above 2.5GT/s seems unable to negotiate the link speed and continues training indefinitely with the Link Training bit switching on and off repeatedly

[PING][PATCH v6 0/7] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-02-19 Thread Maciej W. Rozycki
On Sun, 5 Feb 2023, Maciej W. Rozycki wrote: > This is v6 of the change to work around a PCIe link training phenomenon > where a pair of devices both capable of operating at a link speed above > 2.5GT/s seems unable to negotiate the link speed and continues training >

[PATCH v6 7/7] PCI: Work around PCIe link training failures

2023-02-05 Thread Maciej W. Rozycki
ort their data link being up. Signed-off-by: Maciej W. Rozycki Link: https://lore.kernel.org/lkml/alpine.deb.2.21.2203022037020.56...@angie.orcam.me.uk/ Link: https://source.denx.de/u-boot/u-boot/-/commit/a398a51ccc68 --- Changes from v5: - Move from a quirk into PCI core and call at device probing,

[PATCH v6 3/7] PCI: Initialize `link_active_reporting' earlier

2023-02-05 Thread Maciej W. Rozycki
Determine whether Data Link Layer Link Active Reporting is available ahead of calling any fixups so that the cached value can be used there and later on. Signed-off-by: Maciej W. Rozycki --- New change in v6. --- drivers/pci/probe.c |6 +- 1 file changed, 5 insertions(+), 1 deletion

[PATCH v6 0/7] pci: Work around ASMedia ASM2824 PCIe link training failures

2023-02-05 Thread Maciej W. Rozycki
Hi, This is v6 of the change to work around a PCIe link training phenomenon where a pair of devices both capable of operating at a link speed above 2.5GT/s seems unable to negotiate the link speed and continues training indefinitely with the Link Training bit switching on and off repeatedly

[PATCH v6 6/7] PCI: pciehp: Rely on `link_active_reporting'

2023-02-05 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. New change in v6. --- drivers/pci

[PATCH v6 5/7] net/mlx5: Rely on `link_active_reporting'

2023-02-05 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with PPC64LE and x86-64 configurations. New change in v6. --- drivers/net

[PATCH v6 4/7] powerpc/eeh: Rely on `link_active_reporting'

2023-02-05 Thread Maciej W. Rozycki
Use `link_active_reporting' to determine whether Data Link Layer Link Active Reporting is available rather than re-retrieving the capability. Signed-off-by: Maciej W. Rozycki --- NB this has been compile-tested only with a PPC64LE configuration. New change in v6. --- arch/powerpc/kernel

[PATCH v6 2/7] PCI: Execute `quirk_enable_clear_retrain_link' earlier

2023-02-05 Thread Maciej W. Rozycki
Make `quirk_enable_clear_retrain_link' `pci_fixup_early' so that any later fixups can rely on `clear_retrain_link' to have been already initialised. Signed-off-by: Maciej W. Rozycki --- No change from v5. New change in v5. --- drivers/pci/quirks.c |6 +++--- 1 file changed, 3 insertions

[PATCH v6 1/7] PCI: Export PCI link retrain timeout

2023-02-05 Thread Maciej W. Rozycki
Rename LINK_RETRAIN_TIMEOUT to PCIE_LINK_RETRAIN_TIMEOUT and make it available via "pci.h" for PCI drivers to use. Signed-off-by: Maciej W. Rozycki --- No change from v5. New change in v5. --- drivers/pci/pci.h |2 ++ drivers/pci/pcie/aspm.c |4 +--- 2 files changed, 3

Re: [PATCH 5/6] scsi: remove stale BusLogic driver

2022-06-06 Thread Maciej W. Rozycki
On Mon, 6 Jun 2022, Arnd Bergmann wrote: > This was in turn fixed in commit 56f396146af2 ("scsi: BusLogic: Fix > 64-bit system enumeration error for Buslogic"), 8 years later. > > The fact that this was found at all is an indication that there are > users, and it seems that Maciej, Matt and

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
Hi Geert, > > Sane access would require a single CPU instruction to read or write from > > the configuration space. To access the conventional PCI configuration > > space in a direct linear manner you need 256 * 21 * 8 * 256 = 10.5MiB of > > address space. Such amount of address space seems

RE: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
On Fri, 6 May 2022, David Laight wrote: > > It was retrofitted in that x86 systems already existed for ~15 years when > > PCI came into picture. Therefore the makers of the CPU ISA couldn't have > > envisaged the need for config access instructions like they did for memory > > and port access.

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
On Fri, 6 May 2022, Geert Uytterhoeven wrote: > A lng time ago, it was suggested to add register accessor > functions to struct device, so e.g. readl(dev, offset) would call > into these accessors, which would implement the bus-specific behavior. > No more worries about readl(),

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
On Fri, 6 May 2022, Arnd Bergmann wrote: > > So what happens if the instruction is given an I/O rather than memory BAR > > as the relevant argument? Is the address space indicator bit (bit #0) > > simply ignored or what? > > Not sure. My best guess is that it would actually work as you'd

RE: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
On Fri, 6 May 2022, David Laight wrote: > > The PCI configuration space was retrofitted into x86 systems (and is > > accessed in an awkward manner with them), but with a new design such a > > clean approach is most welcome IMHO. Thank you for your explanation. > > Actually I think x86 was the

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
On Fri, 6 May 2022, Arnd Bergmann wrote: > > If this is PCI/PCIe indeed, then an I/O access is just a different bit > > pattern put on the bus/in the TLP in the address phase. So what is there > > inherent to the s390 architecture that prevents that different bit pattern > > from being used? >

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-06 Thread Maciej W. Rozycki
On Thu, 5 May 2022, Arnd Bergmann wrote: > > I'm hearing that generic powerpc kernels have to run both on machines > > that have I/O port space and those that don't. That makes me think > > s390 could do something similar. > > No, this is actually the current situation, and it makes absolutely

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-01 Thread Maciej W. Rozycki
On Fri, 29 Apr 2022, Niklas Schnelle wrote: > We introduce a new HAS_IOPORT Kconfig option to indicate support for > I/O Port access. In a future patch HAS_IOPORT=n will disable compilation > of the I/O accessor functions inb()/outb() and friends on architectures > which can not meaningfully

Re: [PATCH 10/10] ide: remove the legacy ide driver

2021-03-19 Thread Maciej W. Rozycki
On Sat, 20 Mar 2021, Maciej W. Rozycki wrote: > > been scheduled for removal for a while. Finally kill it off so that we > > can start cleaning up various bits of cruft it forced on the block layer. > > You need to adjust Documentation/admin-guide/kernel-parameters.txt too,

Re: [PATCH 10/10] ide: remove the legacy ide driver

2021-03-19 Thread Maciej W. Rozycki
On Thu, 18 Mar 2021, Christoph Hellwig wrote: > The legay ide driver has been replace with libata startin in 2003 and has s/legay/legacy/;s/replace/replaced/;s/startin/startin/ (though I'd say "back in" instead in the latter case). > been scheduled for removal for a while. Finally kill it

Re: remove the legacy ide driver

2021-03-19 Thread Maciej W. Rozycki
On Thu, 18 Mar 2021, Christoph Hellwig wrote: > we've been trying to get rid of the legacy ide driver for a while now, > and finally scheduled a removal for 2021, which is three month old now. Hmm, there's still a regression in that pata_legacy unconditionally pokes at random I/O port

Re: [PATCH 04/10] MIPS: disable CONFIG_IDE in sb1250_swarm_defconfig

2021-03-18 Thread Maciej W. Rozycki
of the driver could be improved I suppose though: scsi host0: pata_platform ata1: PATA max PIO0 mmio cmd 0x100b3e00 ctl 0x100b7ec0 irq 36 (PIO3 is actually hardwired; it's an odd interface and people reported issues with it, but I have never had any myself be it with IDE or libata). Acked-by

Re: [PATCH 2/2] MIPS: remove support for DMA_ATTR_WRITE_COMBINE

2019-09-18 Thread Maciej W. Rozycki
On Wed, 7 Aug 2019, Christoph Hellwig wrote: > Mips uses the KSEG1 kernel memory segment to map dma coherent > allocations for non-coherent devices as uncacheable, and does not have > any kind of special support for DMA_ATTR_WRITE_COMBINE in the allocation > path. Thus supporting

Re: [PATCH 06/41] drivers: tty: serial: sb1250-duart: use dev_err() instead of printk()

2019-04-30 Thread Maciej W. Rozycki
On Sat, 27 Apr 2019, Enrico Weigelt, metux IT consult wrote: > diff --git a/drivers/tty/serial/sb1250-duart.c > b/drivers/tty/serial/sb1250-duart.c > index 329aced..655961c 100644 > --- a/drivers/tty/serial/sb1250-duart.c > +++ b/drivers/tty/serial/sb1250-duart.c > @@ -663,7 +663,6 @@ static

Re: [PATCH 01/41] drivers: tty: serial: dz: use dev_err() instead of printk()

2019-04-30 Thread Maciej W. Rozycki
On Mon, 29 Apr 2019, Greg KH wrote: > > >> drivers/tty/serial/dz.c | 8 > > > > > > Do you have this hardware to test any of these changes with? > > > > Unfortunately not :( > > Then I can take the "basic" types of patches for the driver (like this > one), but not any others, sorry.

Re: [PATCH v2 10/45] drivers: tty: serial: zs: use devm_* functions

2019-03-18 Thread Maciej W. Rozycki
On Sat, 16 Mar 2019, Enrico Weigelt, metux IT consult wrote: > > No, it's just that those systems do not allow those devices to be > > removed because they are probably not on a removable bus. > > Ok, devices (hw) might not be removable - that also the case for uarts > builtin some SoCs, or the

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-30 Thread Maciej W. Rozycki
On Thu, 7 Jan 2016, Brian Norris wrote: > > Perhaps most uses of -Werror without some CONFIG_ guard > > should be removed or replaced by some other mechanism. > > +1000. I'd personally like to see all one-off uses of -Werror removed. > > > $ git grep -E "=\s*\-Werror" | grep -v CONFIG > > [...]

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-29 Thread Maciej W. Rozycki
On Thu, 28 Jan 2016, Leonid Yegoshin wrote: > In http://patchwork.linux-mips.org/patch/10505/ the very last mesg exchange > is: [...] > ... and that stops forever... Thanks for the reminder -- last June was very hectic, I travelled a lot and I lost the discussion from my radar. Apologies for

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-27 Thread Maciej W. Rozycki
On Fri, 15 Jan 2016, Leonid Yegoshin wrote: > > So you need to build a different kernel for some types of MIPS systems? > > Or do you do boot-time rewriting, like a number of other arches do? > > I don't know. I would like to have responses. Ralf asked Maciej about old > systems and that came

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-27 Thread Maciej W. Rozycki
On Wed, 27 Jan 2016, Ralf Baechle wrote: > > So you need to build a different kernel for some types of MIPS systems? > > Yes. We can't really do without. Classic MIPS code is not relocatable > without the complexity of PIC code as used by ELF DSOs - and their > performanc penalty. Plus we

Re: [PATCH V2] tty: serial: Add const to struct uart_ops declarations

2015-04-05 Thread Maciej W. Rozycki
On Sun, 5 Apr 2015, Joe Perches wrote: drivers/tty/serial/dz.c | 2 +- drivers/tty/serial/zs.c | 2 +- For these verified that the change works correctly, thanks for your work. Acked-by: Maciej W. Rozycki ma...@linux-mips.org Maciej

Re: ERR_PTR pattern in phylib

2010-09-02 Thread Maciej W. Rozycki
On Wed, 1 Sep 2010, Grant Likely wrote: I've been looking at the phylib code, and specifically at the use of the ERR_PTR() pattern. I'm personally not a big fan of ERR_PTR() because the compiler cannot type check the result and it runs completely counter to the pattern if (!ptr) than is

Re: ERR_PTR pattern in phylib

2010-09-02 Thread Maciej W. Rozycki
On Thu, 2 Sep 2010, David Miller wrote: Arguably using a union here would make things cleaner and any reasonable ABI will place small unions used as arguments or return values in registers, but I'm not sure if the cost of the rewrite is worth the Well, sparc 32-bit's ABI for one is

Re: [rtc-linux] Re: [PATCH/RFC 0/5] Generic RTC class driver

2009-02-27 Thread Maciej W. Rozycki
On Wed, 25 Feb 2009, Alessandro Zummo wrote: I didn't know NTP was broken with RTC class drivers? So we should actually keep on using genrtc instead of rtc-ppc/rtc-generic for now? ;-) broken here means that the kernel won't save the time to the hardware rtc every 11 minutes as