* [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
@ 2023-08-28 20:41 Matthew Howell
2023-08-29 3:52 ` Tony Lindgren
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Howell @ 2023-08-28 20:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-serial, tony, ryan.wenglarz, james.olson
From: Matthew Howell <matthew.howell@sealevel.com>
XR17V35X cards seemingly unable to register serial port. Confirmed on
Sealevel 7202C, 7204EC, and Exar XR17V352 reference board.
dmesg states: "Couldn't register serial port 0, irq 24, type 2, error -22"
I first identified the problem when I pulled down 6.6-rc1 and I was able
to trace it to d962de6ae51f9b76ad736220077cda83084090b1. I understand that this
commit is noted as being reverted in 1ef2c2df1199, but I was only able to
resolve the issue by reverting d962de6ae51f myself using this patch.
I suggest reverting using this patch unless someone more knowledgeable
about what these changes actually do has a better suggestion.
Revert "serial: core: serial core port id to not use port->line"
This reverts commit d962de6ae51f9b76ad736220077cda83084090b1
Link: https://lore.kernel.org/all/20230725054216.45696-3-tony@atomide.com/
Fixes: d962de6ae51f9b76ad736220077cda83084090b1 ("serial: core: Fix serial
core port id to not use port->line")
Signed-off-by: Matthew Howell <matthew.howell@sealevel.com>
---
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
index 3449f8790e46..ab4da98332ab 100644
--- a/drivers/tty/serial/8250/8250_core.c
+++ b/drivers/tty/serial/8250/8250_core.c
@@ -497,7 +497,6 @@ static struct uart_8250_port *serial8250_setup_port(int index)
up = &serial8250_ports[index];
up->port.line = index;
- up->port.port_id = index;
serial8250_init_port(up);
if (!base_ops)
@@ -1041,7 +1040,6 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
uart_remove_one_port(&serial8250_reg, &uart->port);
uart->port.ctrl_id = up->port.ctrl_id;
- uart->port.port_id = up->port.port_id;
uart->port.iobase = up->port.iobase;
uart->port.membase = up->port.membase;
uart->port.irq = up->port.irq;
diff --git a/drivers/tty/serial/serial_base_bus.c b/drivers/tty/serial/serial_base_bus.c
index 3dfcf20c4eb6..53ae87ae337b 100644
--- a/drivers/tty/serial/serial_base_bus.c
+++ b/drivers/tty/serial/serial_base_bus.c
@@ -169,7 +169,8 @@ struct serial_port_device *serial_base_port_add(struct uart_port *port,
err = serial_base_device_init(port, &port_dev->dev,
&ctrl_dev->dev, &serial_port_type,
serial_base_port_release,
- port->ctrl_id, port->port_id);
+ port->line);
+
if (err)
goto err_put_device;
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index a156d2ed8d9e..201813d888df 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -460,7 +460,6 @@ struct uart_port {
int (*iso7816_config)(struct uart_port *,
struct serial_iso7816 *iso7816);
unsigned int ctrl_id; /* optional serial core controller id */
- unsigned int port_id; /* optional serial core port id */
unsigned int irq; /* irq number */
unsigned long irqflags; /* irq flags */
unsigned int uartclk; /* base uart clock */
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-08-28 20:41 [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line Matthew Howell
@ 2023-08-29 3:52 ` Tony Lindgren
2023-08-29 13:42 ` Matthew Howell
0 siblings, 1 reply; 14+ messages in thread
From: Tony Lindgren @ 2023-08-29 3:52 UTC (permalink / raw)
To: Matthew Howell; +Cc: gregkh, linux-serial, ryan.wenglarz, james.olson
Hi,
* Matthew Howell <matthew.howell@sealevel.com> [230828 20:41]:
> From: Matthew Howell <matthew.howell@sealevel.com>
> XR17V35X cards seemingly unable to register serial port. Confirmed on
> Sealevel 7202C, 7204EC, and Exar XR17V352 reference board.
> dmesg states: "Couldn't register serial port 0, irq 24, type 2, error -22"
>
> I first identified the problem when I pulled down 6.6-rc1 and I was able
> to trace it to d962de6ae51f9b76ad736220077cda83084090b1. I understand that this
> commit is noted as being reverted in 1ef2c2df1199, but I was only able to
> resolve the issue by reverting d962de6ae51f myself using this patch.
Thanks for the report. Do you maybe mean 6.5-rc1 instead of 6.6-rc1 above?
If so, I suspect the issue you are reporting got already fixed during the
-rc cycle for v6.5 kernel.
> I suggest reverting using this patch unless someone more knowledgeable
> about what these changes actually do has a better suggestion.
Can you please test with v6.5 kernel? It has the two fixes below that
sounds like you may have been missing:
a4a79e03bab5 ("serial: core: Revert port_id use")
04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
Note how commit a4a79e03bab5 already did a partial revert of what you're
suggesting.
If you already have these two commits, then let's investigate further to
see what might be still wrong.
Regards,
Tony
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-08-29 3:52 ` Tony Lindgren
@ 2023-08-29 13:42 ` Matthew Howell
2023-08-29 20:15 ` Tony Lindgren
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Howell @ 2023-08-29 13:42 UTC (permalink / raw)
To: Tony Lindgren
Cc: Matthew Howell, gregkh, linux-serial, ryan.wenglarz, james.olson
On Tue, 29 Aug 2023, Tony Lindgren wrote:
> Hi,
>
> * Matthew Howell <matthew.howell@sealevel.com> [230828 20:41]:
> > From: Matthew Howell <matthew.howell@sealevel.com>
> > XR17V35X cards seemingly unable to register serial port. Confirmed on
> > Sealevel 7202C, 7204EC, and Exar XR17V352 reference board.
> > dmesg states: "Couldn't register serial port 0, irq 24, type 2, error -22"
> >
> > I first identified the problem when I pulled down 6.6-rc1 and I was able
> > to trace it to d962de6ae51f9b76ad736220077cda83084090b1. I understand that this
> > commit is noted as being reverted in 1ef2c2df1199, but I was only able to
> > resolve the issue by reverting d962de6ae51f myself using this patch.
>
> Thanks for the report. Do you maybe mean 6.5-rc1 instead of 6.6-rc1 above?
Apologies, I meant 6.5, no RC. Specifically, I first found this issue on
the v6.5 tag (2dde18cd1d8f). I then rolled back until I traced the issue
down to the patch in question (d962de6ae51f). Even more specifically,
according to my test notes I tested the following commits, with results as
indicated:
04c7f60ca477ffbf7b7910320482335050f0d23a -> Not working
3d9e6f556e235ddcdc9f73600fdd46fe1736b090 -> Not working
3c4f8333b582487a2d1e02171f1465531cde53e3 -> Not working
a4a79e03bab57729bd8046d22bf3666912e586fb -> Not working
1ef2c2df11997b8135f34adcf2c200d3b4aacbe9 -> Not working
d962de6ae51f9b76ad736220077cda83084090b1 -> Not working
282069845af388b08d622ad192b831dcd0549c62 -> Working
e6d34ced01bc3aaad616b9446bbaa96cd04617c4 -> Working
748c5ea8b8796ae8ee80b8d3a3d940570b588d59 -> Working
868a9fd9480785952336e5f119e1f75877c423a8 -> Working
> > If so, I suspect the issue you are reporting got already fixed during the
> -rc cycle for v6.5 kernel.
>
> > I suggest reverting using this patch unless someone more knowledgeable
> > about what these changes actually do has a better suggestion.
>
> Can you please test with v6.5 kernel? It has the two fixes below that
> sounds like you may have been missing:
>
> a4a79e03bab5 ("serial: core: Revert port_id use")
> 04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
>
> Note how commit a4a79e03bab5 already did a partial revert of what you're
> suggesting.
>
> If you already have these two commits, then let's investigate further to
> see what might be still wrong.
Looking at the results in my notes (see above), I had tested those
two commits specifically and found they still had the same issue.
What I can say for certain is that of the commits I have tested:
1) Commits before d962de6ae51f work on the hardware I have tested
2) Commits after d962de6ae51f don't work on the hardware I have tested
3) Pulling v6.5 and reverting d962de6ae51f with git revert resolves the
issue
> Regards,
>
> Tony
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-08-29 13:42 ` Matthew Howell
@ 2023-08-29 20:15 ` Tony Lindgren
2023-08-31 14:58 ` Matthew Howell
0 siblings, 1 reply; 14+ messages in thread
From: Tony Lindgren @ 2023-08-29 20:15 UTC (permalink / raw)
To: Matthew Howell; +Cc: gregkh, linux-serial, ryan.wenglarz, james.olson
* Matthew Howell <matthew.howell@sealevel.com> [230829 13:42]:
> On Tue, 29 Aug 2023, Tony Lindgren wrote:
>
> > Hi,
> >
> > * Matthew Howell <matthew.howell@sealevel.com> [230828 20:41]:
> > > From: Matthew Howell <matthew.howell@sealevel.com>
> > > XR17V35X cards seemingly unable to register serial port. Confirmed on
> > > Sealevel 7202C, 7204EC, and Exar XR17V352 reference board.
> > > dmesg states: "Couldn't register serial port 0, irq 24, type 2, error -22"
> > >
> > > I first identified the problem when I pulled down 6.6-rc1 and I was able
> > > to trace it to d962de6ae51f9b76ad736220077cda83084090b1. I understand that this
> > > commit is noted as being reverted in 1ef2c2df1199, but I was only able to
> > > resolve the issue by reverting d962de6ae51f myself using this patch.
> >
> > Thanks for the report. Do you maybe mean 6.5-rc1 instead of 6.6-rc1 above?
>
> Apologies, I meant 6.5, no RC. Specifically, I first found this issue on
> the v6.5 tag (2dde18cd1d8f). I then rolled back until I traced the issue
> down to the patch in question (d962de6ae51f). Even more specifically,
> according to my test notes I tested the following commits, with results as
> indicated:
>
> 04c7f60ca477ffbf7b7910320482335050f0d23a -> Not working
> 3d9e6f556e235ddcdc9f73600fdd46fe1736b090 -> Not working
> 3c4f8333b582487a2d1e02171f1465531cde53e3 -> Not working
> a4a79e03bab57729bd8046d22bf3666912e586fb -> Not working
> 1ef2c2df11997b8135f34adcf2c200d3b4aacbe9 -> Not working
> d962de6ae51f9b76ad736220077cda83084090b1 -> Not working
> 282069845af388b08d622ad192b831dcd0549c62 -> Working
> e6d34ced01bc3aaad616b9446bbaa96cd04617c4 -> Working
> 748c5ea8b8796ae8ee80b8d3a3d940570b588d59 -> Working
> 868a9fd9480785952336e5f119e1f75877c423a8 -> Working
OK
> What I can say for certain is that of the commits I have tested:
>
> 1) Commits before d962de6ae51f work on the hardware I have tested
> 2) Commits after d962de6ae51f don't work on the hardware I have tested
> 3) Pulling v6.5 and reverting d962de6ae51f with git revert resolves the
> issue
OK. To me it seems uart.port.port_id should be always 0 in exar_pci_probe()
and get automatically allocated in serial_base_port_add(). Sounds like this
is not a duplicate port_id issue though but something else as it sounds
like you're not getting duplicate sysfs entry related errors.
If it is a port_id conflict I'm not sure why commit 3d9e6f556e23 is not
working for your as it has commit a4a79e03bab5 ("serial: core: Revert
port_id use"). Care to check that again, or maybe try with v6.5 with just
the commit below reverted?
04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
Dmesg output might help also to figure out if this happens on the first
port or the second port.
Not sure yet where the -22 error here comes from.
Regards,
Tony
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-08-29 20:15 ` Tony Lindgren
@ 2023-08-31 14:58 ` Matthew Howell
2023-09-01 4:47 ` Tony Lindgren
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Howell @ 2023-08-31 14:58 UTC (permalink / raw)
To: Tony Lindgren
Cc: Matthew Howell, gregkh, linux-serial, ryan.wenglarz, james.olson
[-- Attachment #1: Type: text/plain, Size: 3385 bytes --]
On Tue, 29 Aug 2023, Tony Lindgren wrote:
> ⚠Caution: External email. Exercise extreme caution with links or attachments.⚠
>
>
> * Matthew Howell <matthew.howell@sealevel.com> [230829 13:42]:
> > On Tue, 29 Aug 2023, Tony Lindgren wrote:
> >
> > > Hi,
> > >
> > > * Matthew Howell <matthew.howell@sealevel.com> [230828 20:41]:
> > > > From: Matthew Howell <matthew.howell@sealevel.com>
> > > > XR17V35X cards seemingly unable to register serial port. Confirmed on
> > > > Sealevel 7202C, 7204EC, and Exar XR17V352 reference board.
> > > > dmesg states: "Couldn't register serial port 0, irq 24, type 2, error -22"
> > > >
> > > > I first identified the problem when I pulled down 6.6-rc1 and I was able
> > > > to trace it to d962de6ae51f9b76ad736220077cda83084090b1. I understand that this
> > > > commit is noted as being reverted in 1ef2c2df1199, but I was only able to
> > > > resolve the issue by reverting d962de6ae51f myself using this patch.
> > >
> > > Thanks for the report. Do you maybe mean 6.5-rc1 instead of 6.6-rc1 above?
> >
> > Apologies, I meant 6.5, no RC. Specifically, I first found this issue on
> > the v6.5 tag (2dde18cd1d8f). I then rolled back until I traced the issue
> > down to the patch in question (d962de6ae51f). Even more specifically,
> > according to my test notes I tested the following commits, with results as
> > indicated:
> >
> > 04c7f60ca477ffbf7b7910320482335050f0d23a -> Not working
> > 3d9e6f556e235ddcdc9f73600fdd46fe1736b090 -> Not working
> > 3c4f8333b582487a2d1e02171f1465531cde53e3 -> Not working
> > a4a79e03bab57729bd8046d22bf3666912e586fb -> Not working
> > 1ef2c2df11997b8135f34adcf2c200d3b4aacbe9 -> Not working
> > d962de6ae51f9b76ad736220077cda83084090b1 -> Not working
> > 282069845af388b08d622ad192b831dcd0549c62 -> Working
> > e6d34ced01bc3aaad616b9446bbaa96cd04617c4 -> Working
> > 748c5ea8b8796ae8ee80b8d3a3d940570b588d59 -> Working
> > 868a9fd9480785952336e5f119e1f75877c423a8 -> Working
>
> OK
>
> > What I can say for certain is that of the commits I have tested:
> >
> > 1) Commits before d962de6ae51f work on the hardware I have tested
> > 2) Commits after d962de6ae51f don't work on the hardware I have tested
> > 3) Pulling v6.5 and reverting d962de6ae51f with git revert resolves the
> > issue
>
> OK. To me it seems uart.port.port_id should be always 0 in exar_pci_probe()
> and get automatically allocated in serial_base_port_add(). Sounds like this
> is not a duplicate port_id issue though but something else as it sounds
> like you're not getting duplicate sysfs entry related errors.
>
> If it is a port_id conflict I'm not sure why commit 3d9e6f556e23 is not
> working for your as it has commit a4a79e03bab5 ("serial: core: Revert
> port_id use"). Care to check that again, or maybe try with v6.5 with just
> the commit below reverted?
>
> 04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
Just tried that, but no difference. Same error.
> Dmesg output might help also to figure out if this happens on the first
> port or the second port.
The full error in dmesg is:
[Aug30 15:48] exar_serial 0000:04:00.0: Couldn't register serial port 0, irq 24, type 2, error -22
This is on a 2-port adapter. I don't see any indication in dmesg that it
attempted to register the other port.
> Not sure yet where the -22 error here comes from.
>
> Regards,
>
> Tony
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-08-31 14:58 ` Matthew Howell
@ 2023-09-01 4:47 ` Tony Lindgren
2023-09-01 18:48 ` Matthew Howell
0 siblings, 1 reply; 14+ messages in thread
From: Tony Lindgren @ 2023-09-01 4:47 UTC (permalink / raw)
To: Matthew Howell; +Cc: gregkh, linux-serial, ryan.wenglarz, james.olson
* Matthew Howell <matthew.howell@sealevel.com> [230831 14:58]:
> On Tue, 29 Aug 2023, Tony Lindgren wrote:
> > If it is a port_id conflict I'm not sure why commit 3d9e6f556e23 is not
> > working for your as it has commit a4a79e03bab5 ("serial: core: Revert
> > port_id use"). Care to check that again, or maybe try with v6.5 with just
> > the commit below reverted?
> >
> > 04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
>
> Just tried that, but no difference. Same error.
OK thanks to testing it. So it's starting to look like the issue is
somehow related to the serial8250_setup_port() change in commit d962de6ae51f
("serial: core: Fix serial core port id to not use port->line").
The experimental patch below should confirm if the issue is related to the
port_id usage or serial8250_setup_port(). Care to give this a try against
v6.5 without other patches?
> > Dmesg output might help also to figure out if this happens on the first
> > port or the second port.
>
> The full error in dmesg is:
> [Aug30 15:48] exar_serial 0000:04:00.0: Couldn't register serial port 0, irq 24, type 2, error -22
>
> This is on a 2-port adapter. I don't see any indication in dmesg that it
> attempted to register the other port.
OK. Are there other 8520 related uarts probing before that?
Regards,
Tony
8< --------------------
diff --git a/drivers/tty/serial/serial_base_bus.c b/drivers/tty/serial/serial_base_bus.c
--- a/drivers/tty/serial/serial_base_bus.c
+++ b/drivers/tty/serial/serial_base_bus.c
@@ -169,7 +169,7 @@ struct serial_port_device *serial_base_port_add(struct uart_port *port,
err = serial_base_device_init(port, &port_dev->dev,
&ctrl_dev->dev, &serial_port_type,
serial_base_port_release,
- port->ctrl_id, port->port_id);
+ port->ctrl_id, port->line);
if (err)
goto err_put_device;
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-09-01 4:47 ` Tony Lindgren
@ 2023-09-01 18:48 ` Matthew Howell
2023-09-02 4:34 ` Tony Lindgren
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Howell @ 2023-09-01 18:48 UTC (permalink / raw)
To: Tony Lindgren
Cc: Matthew Howell, gregkh, linux-serial, ryan.wenglarz, james.olson
On Fri, 1 Sep 2023, Tony Lindgren wrote:
> * Matthew Howell <matthew.howell@sealevel.com> [230831 14:58]:
> > On Tue, 29 Aug 2023, Tony Lindgren wrote:
> > > If it is a port_id conflict I'm not sure why commit 3d9e6f556e23 is not
> > > working for your as it has commit a4a79e03bab5 ("serial: core: Revert
> > > port_id use"). Care to check that again, or maybe try with v6.5 with just
> > > the commit below reverted?
> > >
> > > 04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
> >
> > Just tried that, but no difference. Same error.
>
> OK thanks to testing it. So it's starting to look like the issue is
> somehow related to the serial8250_setup_port() change in commit d962de6ae51f
> ("serial: core: Fix serial core port id to not use port->line").
>
> The experimental patch below should confirm if the issue is related to the
> port_id usage or serial8250_setup_port(). Care to give this a try against
> v6.5 without other patches?
For some reason I am unable to apply the patch using either git apply or
the patch command. I made the change manually though and the issue still
occurs.
> > > Dmesg output might help also to figure out if this happens on the first
> > > port or the second port.
> >
> > The full error in dmesg is:
> > [Aug30 15:48] exar_serial 0000:04:00.0: Couldn't register serial port 0, irq 24, type 2, error -22
> >
> > This is on a 2-port adapter. I don't see any indication in dmesg that it
> > attempted to register the other port.
>
> OK. Are there other 8520 related uarts probing before that?
Not that I can see. The only earlier entries I see are from before I load
the patched driver. If I add another card in I can see that both are
probed, but both have the error:
[ +0.005929] exar_serial 0000:01:00.0: Couldn't register serial port 0,
irq 24, type 2, error -22
[ +0.003431] exar_serial 0000:04:00.0: Couldn't register serial port 0,
irq 25, type 2, error -22
04:00.0 is a Sealevel card and the other is a reference Exar XR17V352.
> Regards,
>
> Tony
>
> 8< --------------------
> diff --git a/drivers/tty/serial/serial_base_bus.c b/drivers/tty/serial/serial_base_bus.c
> --- a/drivers/tty/serial/serial_base_bus.c
> +++ b/drivers/tty/serial/serial_base_bus.c
> @@ -169,7 +169,7 @@ struct serial_port_device *serial_base_port_add(struct uart_port *port,
> err = serial_base_device_init(port, &port_dev->dev,
> &ctrl_dev->dev, &serial_port_type,
> serial_base_port_release,
> - port->ctrl_id, port->port_id);
> + port->ctrl_id, port->line);
> if (err)
> goto err_put_device;
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line
2023-09-01 18:48 ` Matthew Howell
@ 2023-09-02 4:34 ` Tony Lindgren
[not found] ` <c4b1db31-7814-0d22-36de-a7e6f117d89c@sealevel.com>
0 siblings, 1 reply; 14+ messages in thread
From: Tony Lindgren @ 2023-09-02 4:34 UTC (permalink / raw)
To: Matthew Howell; +Cc: gregkh, linux-serial, ryan.wenglarz, james.olson
* Matthew Howell <matthew.howell@sealevel.com> [230901 18:48]:
> On Fri, 1 Sep 2023, Tony Lindgren wrote:
> > * Matthew Howell <matthew.howell@sealevel.com> [230831 14:58]:
> > > On Tue, 29 Aug 2023, Tony Lindgren wrote:
> > > > If it is a port_id conflict I'm not sure why commit 3d9e6f556e23 is not
> > > > working for your as it has commit a4a79e03bab5 ("serial: core: Revert
> > > > port_id use"). Care to check that again, or maybe try with v6.5 with just
> > > > the commit below reverted?
> > > >
> > > > 04c7f60ca477 ("serial: core: Fix serial core port id, including multiport devices")
> > >
> > > Just tried that, but no difference. Same error.
> >
> > OK thanks to testing it. So it's starting to look like the issue is
> > somehow related to the serial8250_setup_port() change in commit d962de6ae51f
> > ("serial: core: Fix serial core port id to not use port->line").
> >
> > The experimental patch below should confirm if the issue is related to the
> > port_id usage or serial8250_setup_port(). Care to give this a try against
> > v6.5 without other patches?
>
> For some reason I am unable to apply the patch using either git apply or
> the patch command. I made the change manually though and the issue still
> occurs.
OK. If the patch did not apply against v6.5, can you please verify you don't
have other patches applied like your revert? I don't think the patch I sent
is white space damanged or anything. Doing git diff v6.5.. should show you
what might be different :)
> > > > Dmesg output might help also to figure out if this happens on the first
> > > > port or the second port.
> > >
> > > The full error in dmesg is:
> > > [Aug30 15:48] exar_serial 0000:04:00.0: Couldn't register serial port 0, irq 24, type 2, error -22
> > >
> > > This is on a 2-port adapter. I don't see any indication in dmesg that it
> > > attempted to register the other port.
> >
> > OK. Are there other 8520 related uarts probing before that?
>
> Not that I can see. The only earlier entries I see are from before I load
> the patched driver. If I add another card in I can see that both are
> probed, but both have the error:
>
> [ +0.005929] exar_serial 0000:01:00.0: Couldn't register serial port 0,
> irq 24, type 2, error -22
> [ +0.003431] exar_serial 0000:04:00.0: Couldn't register serial port 0,
> irq 25, type 2, error -22
>
> 04:00.0 is a Sealevel card and the other is a reference Exar XR17V352.
Not sure what you mean with the 8250 entries from before loading the
patched driver..
Maybe things go wrong already somewhere earlier if the integrated 8250
port(s) don't show up either? If so, maybe this issue is somehow machine
specific rather than 8250_exar specific.
Can you please post or email me your full working dmesg output, failing
dmesg output, the kernel .config used, and kernel command line?
Also, do you have any suggestions for a commonly available pcie 8250_exar
card I could try to reproduce this issue with?
Regards,
Tony
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-09-11 21:37 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28 20:41 [PATCH] serial: Revert serial: core: Fix serial core port id to not use port->line Matthew Howell
2023-08-29 3:52 ` Tony Lindgren
2023-08-29 13:42 ` Matthew Howell
2023-08-29 20:15 ` Tony Lindgren
2023-08-31 14:58 ` Matthew Howell
2023-09-01 4:47 ` Tony Lindgren
2023-09-01 18:48 ` Matthew Howell
2023-09-02 4:34 ` Tony Lindgren
[not found] ` <c4b1db31-7814-0d22-36de-a7e6f117d89c@sealevel.com>
2023-09-05 15:55 ` Tony Lindgren
2023-09-05 16:43 ` Matthew Howell
2023-09-05 16:51 ` Tony Lindgren
2023-09-11 13:04 ` Matthew Howell
2023-09-11 13:15 ` Greg KH
2023-09-11 13:58 ` Matthew Howell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox